Commit Graph

17708 Commits

Author SHA1 Message Date
Tony Wickham 36b2dba1de TaskView has fullscreen progress instead of boolean
This way we can update the insets of the adjacent task throughout
the swipe up from an app.

Bug: 111699315
Change-Id: Ieeaa5b6667e44f82e7e097acb9f0552609b15809
2018-12-21 15:49:45 -08:00
Hyunyoung Song a7a9583bb8 Remove IconShapeOverride
Bug: 120736782
Change-Id: Iee44f10ff2b9ec447ae74d9ad6a0aa3668c401d6
2018-12-19 17:16:56 -08:00
TreeHugger Robot afe57dd0ef Merge "Add a secondary launcher activity (1/2)" into ub-launcher3-master 2018-12-20 00:28:57 +00:00
vadimt 943b28464d Test swiping up from a killed launcher
Bug: 121164587
Test: StartLauncherViaGestureTests
Change-Id: I01c5bfc0aa23418bad7d44b8d9cf8b95cbe0b320
2018-12-17 18:09:07 -08:00
Vadim Tryshev 57e98b8006 Merge "Adding tests that would reliably reproduce shifted search." into ub-launcher3-master 2018-12-17 23:21:55 +00:00
vadimt 00d4255272 Adding tests that would reliably reproduce shifted search.
This would guaranteed to repro b/118441555 before it was fixed.

The test doesn't use the most powerful feature of race condition
reproducer, which is enumerating all possible event sequences.

Instead, it uses explicit repro sequences, which makes the test much
faster.

Bug: 120628042
Test: The added test
Change-Id: I89a7a9964f160a8a20ba3d9dda2f248237713014
2018-12-17 14:41:20 -08:00
Tony Wickham bf560728c1 Merge "Remove notification dot if app is disabled" into ub-launcher3-master 2018-12-14 00:10:24 +00:00
Vadim Tryshev 1ebf6f5d77 Merge "Not relying on activity manager when choosing a touch consumer." into ub-launcher3-master 2018-12-13 21:33:05 +00:00
vadimt 195d5694e4 Not relying on activity manager when choosing a touch consumer.
Activity manager can report launcher activity as running when is hasn't
yet been resumed.

Bug: 120628042
Test: TaplTests, Fallback tests, manual tests
Change-Id: I6b382b17d05066a63360acc19e094674ecca7130
2018-12-13 12:41:53 -08:00
vadimt d177aba4a2 Fixing ConcurrentModificationException
Bug: 120664974
Test: Manual
Change-Id: I67e88c6980fbabb9afb9f4946baf731852f19b19
2018-12-13 11:53:56 -08:00
Chilun 3516bd89d9 Add a secondary launcher activity (1/2)
This secondary launcher activity with new category SECONDARY_HOME and
multiple instance supporrted could be used on sencondary display.

Bug: 118206886
Bug: 114329798
Test: Manual
Change-Id: Ibaecf8ef7614389760d0fcc547ef6d378a921583
2018-12-13 09:21:47 +00:00
Winson Chung 381a75c194 Fix issue with sync rt applier
- Use the shared lib call to ensure that we always have the sync rt
  applier with viewroot.

Change-Id: I911362d105a2c0223693640a28d358caf6dd29d0
2018-12-11 13:04:38 -08:00
TreeHugger Robot 345273b6a5 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2018-12-11 19:02:34 +00:00
Bill Yi 80f5c19fd2 Import translations. DO NOT MERGE
Change-Id: I1539df9cc5f5633585a5714fc8069163d7edb951
Auto-generated-cl: translation import
2018-12-11 10:47:07 -08:00
Winson Chung 282ad21f71 Fix issue with swipe up animation stalling after swiping up
- When the launcher activity is killed, the next init will attempt to
  create a sync applier, which uses the ViewRootImpl of the target
  view. But when onActivityInit() is called, the recents view has not
  been attached to the hierarchy so the view root is not accessible.
  The SyncRtSurfaceTransactionApplier also ignores scheduling all
  updates when it has a non-existant view root, which leads to the
  app surface getting stuck midway during a swipe up (only affects the
  duration of the animation)

Bug: 119661847
Test: adb shell am force-stop com.google.android.apps.nexuslauncher
      then try and swipe up slowly

Change-Id: I8eef9fe38c55c0cb438d63b41c335f78679278a3
2018-12-10 19:08:44 -08:00
Lucas Dupin b93e419e8b Speed up corner animation
The size of the window changes during the animation progress, making the
window look rounded for longer. What we want is to animate it from the
shape of the icon to the shape of the display.

Change-Id: Ib4889b697bf78cdc37c160130fde961650080fb7
Fixes: 120553563
Test: visual
2018-12-11 00:03:54 +00:00
Sunny Goyal 5469fad289 Merge "Bye bye workspace screens table" into ub-launcher3-master 2018-12-10 21:25:18 +00:00
Sunny Goyal c5939393a9 Bye bye workspace screens table
Removing a separate table for workspace screens. List of screens are
automatically parsed using the items in the favorites DB. Order of the
screen based on the screen id and rearranging screens is no longer
supported. In case the screens need to be rearranged, all the items
in the favorites db will need to be updated with new screen ids.

This makes backing up the DB (in the same database) easier as only
one table needs to be duplicates.

Change-Id: I8ba947a898f637d780e2f49925e78604263126e8
2018-12-10 11:43:35 -08:00
TreeHugger Robot ee6e6ea4b6 Merge "Moving TaplTests to AOSP" into ub-launcher3-master 2018-12-10 18:33:57 +00:00
Vadim Tryshev ed01e28408 Moving TaplTests to AOSP
And fixing TAPL for AOSP.

Bug: 110103162
Test: TaplTests
Change-Id: Ib9fef02b789a9c7444643550d56b9dda4e085b03
2018-12-07 12:00:41 -08:00
Sunny Goyal 415f173331 Changing the format for device profile definition
Device profiles are defined such that the grid size is fixed
and only the icon and text sizes change. For every grid size option
there are multiple display configurations.

Bug: 118758696
Change-Id: I54aac9106c576324b02530913c447e849b4ae1da
2018-12-07 00:06:25 -08:00
TreeHugger Robot dab230f63c Merge "Add framework for reliably reproducing race conditions." into ub-launcher3-master 2018-12-07 07:14:01 +00:00
Vadim Tryshev 0d4ac57128 Add framework for reliably reproducing race conditions.
Bug: 120628042
Test: RaceConditionReproducerTest
Change-Id: Id658e2b0da6af186b76501ff16edbd135dda3c9b
2018-12-06 16:11:18 -08:00
Winson Chung affe2bc261 Merge "Revert "Revert "Specify display ID while calling getNavBarPosition()""" into ub-launcher3-master 2018-12-06 19:58:25 +00:00
Winson Chung 5466f284f3 Merge changes from topic "rounded_corners_ub_launcher" into ub-launcher3-master
* changes:
  Revert "Revert "Correct 🕳️ 👊👊👊👊👊👊""
  Revert "Revert "Rounded corners on app transitions""
2018-12-06 19:58:25 +00:00
Winson Chung 54228d70b4 Merge "Revert "Revert "Updating shared lib for rounded corners.""" into ub-launcher3-master 2018-12-06 19:58:25 +00:00
Winson Chung 995478aee3 Revert "Revert "Correct 🕳️ 👊👊👊👊👊👊""
This reverts commit 33226ec0e1.

Reason for revert: Most test devices have the platform changes

Change-Id: Ic3f1c144537d127c690c7949f7144dedf0611c49
2018-12-06 19:37:16 +00:00
Winson Chung 506565aaa0 Revert "Revert "Specify display ID while calling getNavBarPosition()""
This reverts commit 5859f7d62c.

Reason for revert: Most test devices have the platform changes

Change-Id: I86b61f07f873e0d231aaac322001065730436233
2018-12-06 19:37:01 +00:00
Winson Chung 5f593c382f Revert "Revert "Updating shared lib for rounded corners.""
This reverts commit de72d339e5.

Reason for revert: Most test devices have the platform changes

Change-Id: Ibe7e22c5073f2405483945ac726e528bef88fbc9
2018-12-06 19:36:52 +00:00
Winson Chung c7565862e2 Revert "Revert "Rounded corners on app transitions""
This reverts commit 2c9b1043a6.

Reason for revert: Most test devices have the platform changes

Change-Id: I1e608395b186df3148562afa7c1d791e3c9e2eb5
2018-12-06 19:36:10 +00:00
TreeHugger Robot edbf4cf0bb Merge "Fixing widget entering drag mode when clicked on an empty area" into ub-launcher3-master 2018-12-06 17:41:00 +00:00
TreeHugger Robot 0cbe34b297 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2018-12-06 17:11:12 +00:00
Bill Yi c4e957cb9b Import translations. DO NOT MERGE
Change-Id: Ica50c5055efc0de3a9783184977b7d8f78441bf1
Auto-generated-cl: translation import
2018-12-06 07:47:42 -08:00
Sunny Goyal 25849b0a27 Fixing widget entering drag mode when clicked on an empty area
Bug: 119623336
Change-Id: I9e2281f57f07d98a414febb1e3052cb89ef5cb60
2018-12-06 04:02:07 -08:00
Vadim Tryshev 4463cd242c Merge "Desaturating thumbnails for tasks over their usage limit" into ub-launcher3-master 2018-12-06 01:19:24 +00:00
Vadim Tryshev 2e8205d3f9 Desaturating thumbnails for tasks over their usage limit
Bug: 118319143
Test: Manual
Change-Id: Iae78c42fb392a49d734d35a80f6331438149d458
2018-12-05 17:08:24 -08:00
Tony Wickham e2c724204e Merge "Remove some obsolete notification badging code" into ub-launcher3-master 2018-12-05 21:20:14 +00:00
Tony Wickham 7120490595 Merge "Rename "badges" to "dots" where appropriate" into ub-launcher3-master 2018-12-05 21:19:57 +00:00
Sunny Goyal c6726f5c36 Merge "Adding support for launcher preview generation" into ub-launcher3-master 2018-12-05 09:10:17 +00:00
Sunny Goyal ef92b82778 Adding support for launcher preview generation
Creating a utility class which generates a launcher preview
for a provided InvariantDeviceProfile

Bug: 118758696
Change-Id: I0aebeb6eed37f72edd1cc305e58eece305aae3ff
2018-12-04 20:19:14 -08:00
Tony Wickham c70f2fd5f1 Remove some obsolete notification badging code
Now that we only show dots instead of badges, we can simplify some logic
and remove a couple unused methods.

Change-Id: I72056eeb12e8968ec67b4c5b3a450d2ed5d4ee84
2018-12-04 15:58:56 -08:00
Tony Wickham 1e58cd7270 Remove notification dot if app is disabled
For instance, when turning off work profile, all work profile apps are
disabled and notifications are removed. Previously, we weren't updating
the dots in this case because we ignore unsupported ItemInfos (e.g.
disabled items in this case).

Note that this was only user-visible for Folders, because regular
shortcuts were updated when the disabled state changes.

Bug: 111791593
Change-Id: I3c49e6e3bf18753a868eb993b29c77abbefd3466
2018-12-04 14:42:52 -08:00
Tony Wickham f34bee819c Rename "badges" to "dots" where appropriate
This will reduce confusion with the other "badging" concept we use for,
e.g. work profiles. It is also consistent with the external name
"notification dots".

Change-Id: I2a2c9d96dc0d6284eb0c48adc78a856271caad4d
2018-12-04 10:46:40 -08:00
Winson Chung de78d7ca78 Merge "Revert "Updating shared lib for rounded corners."" into ub-launcher3-master 2018-12-04 18:44:18 +00:00
Winson Chung 441fc5353e Merge changes from topic "rounded_corners_ub_launcher" into ub-launcher3-master
* changes:
  Revert "Rounded corners on app transitions"
  Revert "Correct 🕳️ 👊👊👊👊👊👊"
2018-12-04 18:44:18 +00:00
Winson Chung 2c9b1043a6 Revert "Rounded corners on app transitions"
This reverts commit d0ab1d0578.

Reason for revert: <INSERT REASONING HERE>

Change-Id: Id37615986fc859f3f2d9344402b737926fb7b9a5
2018-12-04 18:42:47 +00:00
Winson Chung 5859f7d62c Revert "Specify display ID while calling getNavBarPosition()"
This reverts commit 6f43bc63f4.

Reason for revert: <INSERT REASONING HERE>

Change-Id: Ia5c728abd4690acad721b1edcab3f42b7b073cd7
2018-12-04 18:40:59 +00:00
Winson Chung de72d339e5 Revert "Updating shared lib for rounded corners."
This reverts commit 8bcc8d627a.

Reason for revert: <INSERT REASONING HERE>

Change-Id: I310c428980640f54a5590763f57f01cac2ef061b
2018-12-04 18:40:56 +00:00
Winson Chung 33226ec0e1 Revert "Correct 🕳️ 👊👊👊👊👊👊"
This reverts commit aaf859f238.

Reason for revert: <INSERT REASONING HERE>

Change-Id: Iedd45033adb29664107471f7af6b0249e5370470
2018-12-04 18:40:54 +00:00
Tiger Huang 6f43bc63f4 Specify display ID while calling getNavBarPosition()
Navigation bar can show on non-default display now. So the caller
should specify which display the desired navigation bar is on.

Bug: 117474929
Test: atest Launcher3Tests
Change-Id: Ibb22e51730ab145a42a129b4d964299acd4efd56
(cherry picked from commit f1bb3a4d4c)
2018-12-04 10:14:44 -08:00