Commit Graph

17482 Commits

Author SHA1 Message Date
Sunny Goyal e3fec0f177 Ignore any error when killing our process
Bug: 113929153
Change-Id: Ie9a8b59fda1f813748404ed529269cccb1e28c61
2018-09-06 16:26:52 -07:00
Tony Wickham 77a1efed36 Merge "Gracefully fallback to new ComponentName if one is renamed/removed" into ub-launcher3-master 2018-09-06 19:21:35 +00:00
Tony Wickham f9d9df7d3a Gracefully fallback to new ComponentName if one is renamed/removed
Previously, if a developer renamed their launcher activity, we removed
all instances of their icon from the home screen, since technically the
activity they pointed to no longer exists. However, in the vast majority
of cases, the developer simply renamed their activity and nothing should
change from a user's perspective. So instead of removing icons that no
longer point to a valid activity, we now redirect them to point to the
first activity in the manifest (or remove them if there is none).

Test:
- Install app with Activity A and place on home screen
- Rename A to B and reinstall - verify home screen icon remains
- Add new launcher activity C - verify icons still go to B
- Force stop launcher and rename B to A - verify icons go to A (same activity)
- Remove activity A - verify icons go to C
- Remove activity C - verify icons are removed

Bug: 28907647
Change-Id: If9da251bd588908c4c425e7dd32e38fcbe54bab2
2018-09-05 18:23:54 -07:00
Vadim Tryshev 0831c7cefb Adding README for TAPL
Bug: 113287120
Test: Opening http://go/tapl
Change-Id: I77faf1474c582b08386298ed45ff4392885b05a7
2018-09-05 18:08:55 -07:00
Sunny Goyal cf300fc980 Creating a separate state for launcehr as background app
This makes is simpler to control the swipe to overview UI, and ties the
transition with the state machine

Bug: 113287120
Bug: 79755195
Bug: 112203163
Change-Id: I3041dbb659b46ccea6284855addc91e370815be6
2018-09-05 17:32:50 -07:00
Vadim Tryshev 6b597b823d Merge "Revert "Avoiding crash upon pressing Alt-Tab"" into ub-launcher3-master 2018-09-05 23:30:47 +00:00
Vadim Tryshev b187a92599 Revert "Avoiding crash upon pressing Alt-Tab"
This reverts commit af34f4115b.

Reason for revert: Broke swipe from app

Change-Id: I2c6ff179c9731205633aa96395719f544d3575fb
2018-09-05 23:29:44 +00:00
TreeHugger Robot 5e238bb16e Merge "Avoiding crash upon pressing Alt-Tab" into ub-launcher3-master 2018-09-05 22:15:13 +00:00
Vadim Tryshev af34f4115b Avoiding crash upon pressing Alt-Tab
Having invalid downPos leads to incorrect calculations, causing crash.

Bug: 113287120
Test: Alt-Tabbing?
Change-Id: I44cf733d97da4938bd2bbff28b1c08009f3f602a
2018-09-05 15:04:28 -07:00
TreeHugger Robot c63461f56b Merge "Move tapl build rule to Android.bp" into ub-launcher3-master 2018-09-05 20:43:00 +00:00
Android Build Merger (Role) a6d4c72df9 [automerger skipped] Import translations. DO NOT MERGE skipped: d2b09cd4b9 skipped: 631f4c4570
Change-Id: Icd29dc9d26ded55326facaf0b1a53ce7d757507f
2018-09-05 17:59:54 +00:00
Android Build Merger (Role) 631f4c4570 [automerger skipped] Import translations. DO NOT MERGE skipped: d2b09cd4b9
Change-Id: I20a76d01c9b484497156604fc264c729ff11c645
2018-09-05 17:59:53 +00:00
Bill Yi d2b09cd4b9 Import translations. DO NOT MERGE
Change-Id: Ia58f8abb38e258504ee5d103d70ecf0e4bf5d5d4
Auto-generated-cl: translation import
2018-09-05 10:59:45 -07:00
Hyunyoung Song da4fcfea63 Move tapl build rule to Android.bp
Bug: 113683301
Test: make Launcher3Tests

Change-Id: I9f279bb80f3f399a2271ed8ee94445afbebacb2e
2018-09-05 10:18:28 -07:00
TreeHugger Robot 2d8de88448 Merge changes from topic "am-f553b0f9-eb52-4251-808b-e8ab4206b861" into ub-launcher3-master
* changes:
  [automerger skipped] Import translations. DO NOT MERGE skipped: eba7518300 skipped: a75505ee18
  [automerger skipped] Import translations. DO NOT MERGE skipped: eba7518300
  Import translations. DO NOT MERGE
2018-09-04 23:55:06 +00:00
TreeHugger Robot 690f00a07e Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2018-09-04 23:54:49 +00:00
Bill Yi 07f81e00f3 Import translations. DO NOT MERGE
Change-Id: I55f66fb29371969630a7c86c2f47bc8f1d6e9f0b
Auto-generated-cl: translation import
2018-09-04 16:15:46 -07:00
Android Build Merger (Role) af40125e00 [automerger skipped] Import translations. DO NOT MERGE skipped: eba7518300 skipped: a75505ee18
Change-Id: Ib3e9b32842635497f986cb0c1e32292036f165f1
2018-09-04 23:12:45 +00:00
Android Build Merger (Role) a75505ee18 [automerger skipped] Import translations. DO NOT MERGE skipped: eba7518300
Change-Id: I1c8ff9d324d1971a42d93e1d9cb94e24471af145
2018-09-04 23:12:44 +00:00
Bill Yi eba7518300 Import translations. DO NOT MERGE
Change-Id: I29ab435c62c400facc55e8aeee7c1849e39a29b3
Auto-generated-cl: translation import
2018-09-04 16:12:35 -07:00
TreeHugger Robot b75f5366f9 Merge "Removing tryGetAllApps" into ub-launcher3-master 2018-09-04 21:01:05 +00:00
Shibin George 6da0c5d433 Launcher3Go should override Launcher3QuickStep
Now that Launcher3QuickStep is the default launcher,
Launcher3Go should override Launcher3QuickStep as well
else Go targets will have both Launcher3Go and
Launcher3QuickStep apks installed in system image.

Also, Launcher3QuickStepGo should override Launcher3QuickStep.

BUG: 113564404

Test: With this, on Go targets where Launcher3Go is
      included in PRODUCT_PACKAGES, only one apk i.e. Launcher3Go
      will be present in /system/priv-app.

Change-Id: I84d2e3c23c5acdced70d028e9518e04834577049
2018-09-04 13:29:17 -07:00
Hyunyoung Song f120e0a626 Link SystemUISharedLib from source if it exists
Bug: 113683301

Test: mmma -j31 packages/apps/Launcher3
Change-Id: I93671a788a322b474fd5bd4750e188faad958060
2018-08-31 13:57:30 -07:00
Hyunyoung Song 74176d6ba7 Link SysUISharedLib from source if it exists
Bug: 113128349

Test: mmma -j31 packages/apps/Launcher3
Change-Id: I4bee3d59df403db46ed848d839b09c3df4ec874b
2018-08-31 10:48:46 -07:00
TreeHugger Robot 1ccaacddc1 Merge "Add undo snackbar for deleting items" into ub-launcher3-master 2018-08-31 00:16:25 +00:00
Tony Wickham 6a71a5bd77 Add undo snackbar for deleting items
- Add methods to ModelWriter to prepareForUndoDelete, then
  enqueueDeleteRunnable, followed by commitDelete or abortDelete.
- Add Snackbar floating view
- Show Undo snackbar when dropping or flinging to delete target; if the
  undo action is clicked, we abort the delete, otherwise we commit it.

Bug: 24238108
Change-Id: I9997235e1f8525cbb8b1fa2338099609e7358426
2018-08-30 16:22:25 -07:00
Vadim Tryshev 46e81de3d2 Not assuming that all accessibility events contain bundle
Bundles come from Launcher being explicitly asked a question.
When waiting for ANY event, it may contain any parcelable, so it's
incorrect to cast it to Bundle.

See this:
https://sponge.corp.google.com/target?show=FAILED&sortBy=STATUS&id=9b8d0d26-f81d-427f-8857-b8d71e012504&target=android.test.appsmoke

Bug: 110103162
Test: will watch for reducing flakes in platform tests.
Change-Id: I989cee018183140d7fd672c0a925f03441ca339c
2018-08-30 12:07:39 -07:00
Vadim Tryshev a90d17b411 Removing tryGetAllApps
There were plans to use it from platform tests, but this turned to be
unnecessary.

Bug: 110103162
Test: compiling
Change-Id: I39bf3f4cff57018bec87dcb3e8dfee522121d85b
2018-08-29 11:54:49 -07:00
Vadim Tryshev 530c3cd018 Removing AllApps.getObjectDeprecated()
I was planning to use it from platform tests, but managed to avoid this.

Bug: 110103162
Test: TaplTests
Change-Id: Ic7bd6afe2097d64f8baca59b74d61e2ff7ff9c76
2018-08-29 18:33:39 +00:00
Hyunyoung Song 83fcde8d08 Merge "Create a distinction between prebuilt tapl and tapl built from source. Bug: 113128349" into ub-launcher3-master 2018-08-28 23:42:37 +00:00
Hyunyoung Song b441a7e765 Create a distinction between prebuilt tapl and tapl built from source.
Bug: 113128349

Change-Id: Ib1e09f13ee677a903f607b89d6bbb6af419677c4
2018-08-28 14:55:19 -07:00
TreeHugger Robot bb512774e1 Merge "Kicking the trim memory callback off the main thread" into ub-launcher3-master 2018-08-28 21:43:07 +00:00
TreeHugger Robot 1654c9e1c0 Merge "Reading window_animation_scale from Settings.Global" into ub-launcher3-master 2018-08-28 18:07:17 +00:00
Tony Wickham cb3f870054 Reading window_animation_scale from Settings.Global
It moved from Settings.System, so there were constant warnings in the
logs. This only affects dogfood builds.

Change-Id: Ic3c179837f78a8040579fcc6ad485f6fabe1c2a1
2018-08-27 17:36:03 -07:00
Winson Chung 8989a2263b Kicking the trim memory callback off the main thread
- It can cause a deadlock with other synchronized calls on a background
  thread that use a MainThreadInitializedObject

Bug: 112744388

Change-Id: Icbfe6fe84de41eeb19f68014905154dfca988288
2018-08-27 17:00:34 -07:00
TreeHugger Robot a42505c385 Merge "Using a placeholder icon shape instead of low-res/blurry icon" into ub-launcher3-master 2018-08-27 18:44:24 +00:00
Sunny Goyal 2b787e5bd6 Using a placeholder icon shape instead of low-res/blurry icon
Bug: 111142970
Change-Id: I867224464ae9c026f4dcb5256ef14fc39c8e751d
2018-08-27 10:43:46 -07:00
TreeHugger Robot a537578498 Merge "Fixing AOSP tests after AndroidX migration" into ub-launcher3-master 2018-08-27 17:02:19 +00:00
Vadim Tryshev a3fd1e5bfe Fixing AOSP tests after AndroidX migration
Test: adb shell am instrument -w -r -e debug false com.android.launcher3.tests/androidx.test.runner.AndroidJUnitRunner
Change-Id: I72bf7095087b012a6eceac71ee02f2d7a5c8c51b
2018-08-24 17:48:38 -07:00
Vadim Tryshev 12daab5597 Enabling some test suites that miss from ATP
ATP requires the test size attribute, or else the test won't be run.

Test: Will see on ATP
Change-Id: If231781b5188c022e47cc40e46af933d753fa114
2018-08-24 14:04:43 -07:00
Vadim Tryshev 98afc96461 Increasing wait time to populate suggested apps
Bug: 110103162
Test: ReflectionBasicUiTest
Change-Id: Iee5d4f328bdde93e6d9c2db9869314aa3a8eb00f
2018-08-23 15:06:37 -07:00
TreeHugger Robot 25cb600f50 Merge "Lint fix: IS_DEBUG_DEVICE: Implied default locale" into ub-launcher3-master 2018-08-23 20:51:01 +00:00
TreeHugger Robot fb65fd3505 Merge "Comment fix" into ub-launcher3-master 2018-08-23 20:24:52 +00:00
Sunny Goyal 911378c8d9 Merge "Use View.getHeight() instead of Canvas.getHeight() for PageIndicatorDots" into ub-launcher3-master 2018-08-23 18:57:06 +00:00
Vadim Tryshev d819b8f743 Comment fix
Bug: 110103162
Test: ReflectionBasicUiTest
Change-Id: Ic9cfe925bb396e3fa0257009d5d9f53db728f9f0
2018-08-23 18:48:06 +00:00
Tobias Dubois 53da286c05 Use View.getHeight() instead of Canvas.getHeight() for PageIndicatorDots
Use View.getHeight() instead of Canvas.getHeight() to get the same height
regardless of using hardware or software accelerated drawing.

Test: manual
Change-Id: I475afef017102d7968f28a7aab8116238af3d90d
2018-08-23 10:37:58 -07:00
Tobias Dubois 9c0ad56d11 Lint fix: IS_DEBUG_DEVICE: Implied default locale
Use the ROOT locale to make sure toLowerCase has consistent behavior
regardless of the currently set language.

Test: Manual
Change-Id: Ie43f76cbc15eee0d96314e92d2acd5abb22f7077
2018-08-23 10:32:59 -07:00
Vadim Tryshev 9aca88cbf9 Fixing tests on a larger device
See atp for failed tests.

Widget container may return objects outside of screen, hence the test
failures.

Test: AddConfigWidgetTest.com.android.launcher3.ui.widget.AddConfigWidgetTest etc
Change-Id: Ia402dae0c9bc8f0585e57ac5f562a59e8ff4ed53
2018-08-22 17:35:18 -07:00
TreeHugger Robot 99d586a4fb Merge "Passing instrumentation to LauncherInstrumentation" into ub-launcher3-master 2018-08-22 23:54:06 +00:00
Winson Chung 6ed64355b4 Use clear-all recent tasks call
Change-Id: I1c93bffa0573d0a37a86b62f5a7ec948ac11799e
2018-08-22 16:16:16 -07:00