Commit Graph

17351 Commits

Author SHA1 Message Date
Vadim Tryshev ee598ada79 Adding logging to debug jank test problems
Bug: 110103162
Test: TaplTests
Change-Id: I0bae4f2242031ebcdbb24638f61a6b8d37b162e2
2018-09-13 14:56:49 -07:00
TreeHugger Robot abbf01b782 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2018-09-12 20:40:45 +00:00
Bill Yi 87dbaec75a Import translations. DO NOT MERGE
Change-Id: Iefd9e37d4e8c34985f0b7a62841d724297ff051b
Auto-generated-cl: translation import
2018-09-12 13:01:31 -07:00
Tony Wickham 05b351dd42 Merge "Update undo snackbar visuals" into ub-launcher3-master 2018-09-12 00:28:06 +00:00
TreeHugger Robot 297ee90d60 Merge "Ignore any error when killing our process" into ub-launcher3-master 2018-09-11 22:47:06 +00:00
Tony Wickham 08c7cd5625 Update undo snackbar visuals
- Use accent color for action
- Update font-family to use TextTitle style
- Reduce elevation to 3dp
- Inset snackbar left/right margins more, unless we need to increase the
  width to fit the text
- For largest display/font size, fallback to 2 lines and smaller font if
  necessary to not cut off the label
- Remove top/bottom padding on action (b/114084048)
- Allow up to 20 char for the action (b/114317987)

Change-Id: I833c102aaac3ba3db2283997c142926c3830336d
2018-09-11 15:35:47 -07:00
TreeHugger Robot 04dce79849 Merge "Including go/tapl in error messages" into ub-launcher3-master 2018-09-11 17:46:43 +00:00
TreeHugger Robot 64d5f27f03 Merge "Do not ask for rotation lock when controlling quickscrub from launcher activtiy" into ub-launcher3-master 2018-09-11 17:25:44 +00:00
Sunny Goyal 05fbc53817 Do not ask for rotation lock when controlling quickscrub from launcher activtiy
When controlling from launcher activtiy, there is no activity focus change, and rotation
lock is not required.

Bug: 114074832
Change-Id: Ia976f9daa9b0f87d3493138d12cb37a490b8b1bd
2018-09-10 16:53:14 -07:00
Hyunyoung Song 447036d0d7 Make tapl java_library_static
Bug: 113683301

Change-Id: I06815fcae2f115e5605b978fa2a9e99c87783a9c
2018-09-10 14:15:19 -07:00
Bill Yi 6b35469e0e Import translations. DO NOT MERGE
Change-Id: I7ba9b11754c0cef0a025597b94a34c744d5c0b73
Auto-generated-cl: translation import
2018-09-07 22:20:54 -07:00
Vadim Tryshev e02e06a9d4 Including go/tapl in error messages
Bug: 110103162
Test: making a test fail, checking a link
Change-Id: If64948a6656214c5065150803b2a1a7020fb82c5
2018-09-07 15:46:59 -07:00
TreeHugger Robot 1c2fb561e0 Merge "Fixing Launcher stuck in BACKGROUND_APP state when using overview button" into ub-launcher3-master 2018-09-07 21:21:10 +00:00
Tony Wickham eaa3ee39ce Merge "Fix auto install add of installed activity" into ub-launcher3-master 2018-09-07 21:15:15 +00:00
TreeHugger Robot d527716cf3 Merge "Adding README for TAPL" into ub-launcher3-master 2018-09-07 21:08:51 +00:00
Tobias Dubois a4c1002bac Fix auto install add of installed activity
Reset the restore status for auto install icons where the activity is
installed and enabled so the item is not stuck in the auto install
state.

Bug: 112664405
Test: manual - See issue
Change-Id: I37116b6e6ecbe4215d96627f9b1ea6909d12a6c0
2018-09-07 13:59:04 -07:00
Sunny Goyal c6043e4568 Fixing Launcher stuck in BACKGROUND_APP state when using overview button
When using overview button, we skip the activtiy animation, which leads
to wrong state. Instead always running the animation and changing the endpoints
accordingly.

Change-Id: Id071b4e74da42c78760519aa29644621afc822e2
2018-09-07 13:46:47 -07:00
Hyunyoung Song 680e03847d tapl should be java_library
Bug: 113683301

Tests failures that we are trying to fix.
https://sponge.corp.google.com/invocations?searchFor=target%3Aandroid.platform.systemui.tests.jank%20label%3Ab%2Fgit_master

When the build rule is android_library, AndroidManifest.xml is pulled into
the the final apk that is being built. Hence, the platform jank and platform test
AndroidManifest.xml is extended with the one we have for Launcher3.
This causes the tests to fail due to existence of disambiguation screen.
We do not want this behavior.

Change-Id: I1a551abf37bb75b4efa8a5e5324ab1b4d8a3eb13
2018-09-07 12:04:09 -07:00
Sunny Goyal 0c98d0c05f Updating the SystemUI jar as per API changes
Change-Id: I7c7099da2146618113a22b5ec43acebf90bad783
2018-09-07 10:11:34 -07:00
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