Commit Graph

34630 Commits

Author SHA1 Message Date
Winson Chung 7f534cf2a8 Merge "Fix issue with quickswitch not updating system bar flags" into ub-launcher3-rvc-dev 2020-04-30 22:48:43 +00:00
TreeHugger Robot c0b1427269 Merge "Removing old unused code from PageView" into ub-launcher3-rvc-dev am: 403640c393
Change-Id: Iff2b487f930b9724321da05292f61210ee32fa7f
2020-04-30 22:30:40 +00:00
TreeHugger Robot 403640c393 Merge "Removing old unused code from PageView" into ub-launcher3-rvc-dev 2020-04-30 22:13:51 +00:00
thiruram 0707f2c702 Fixes missing components info when logging Widget item.
Sample Log:

LAUNCHER_ITEM_DRAG_STARTED
    # com.android.launcher3.logger.LauncherAtom$ItemInfo@5c06a6d1
    container_info {
      workspace {
        grid_x: 3
        grid_y: 3
        page_index: 3
      }
    }
    is_work: false
    widget {
      component_name: "com.google.android.deskclock/com.android.alarmclock.DigitalAppWidgetProvider"
      package_name: "com.google.android.deskclock"
      span_x: 2
      span_y: 1
    }

Change-Id: I3d468c77632c694454fcdca24f9d2ccd1c4f918c
2020-04-30 15:03:43 -07:00
thiruram f81e8b002a Implement LAUNCHER_ITEM_DRAG_STARTED event.
* Fixes null component issue when ItemInfo object copiedFrom.
* Fixes missing container when item is dragged from hybrid hotseat.

Sample Logs:
2020-04-30 14:09:45.499 30472-30472/com.google.android.apps.nexuslauncher D/StatsLogManager: LAUNCHER_ITEM_DRAG_STARTED
    # com.android.launcher3.logger.LauncherAtom$ItemInfo@260f31f8
    application {
      component_name: "com.android.chrome/com.google.android.apps.chrome.Main"
      package_name: "com.android.chrome"
    }
    container_info {
      workspace {
        grid_x: 2
        grid_y: 2
        page_index: 2
      }
    }
    is_work: false

2020-04-30 14:23:15.230 31320-31320/com.google.android.apps.nexuslauncher D/StatsLogManager: LAUNCHER_ITEM_DRAG_STARTED
    # com.android.launcher3.logger.LauncherAtom$ItemInfo@608f101
    application {
      component_name: "com.google.android.gm/.ConversationListActivityGmail"
      package_name: "com.google.android.gm"
    }
    container_info {
      hotseat {
        index: 1
      }
    }
    is_work: false

Bug: 152978018

Change-Id: I3d3ce213fd2fc6eb5ffb239e048ceb7c0fa88b53
2020-04-30 15:03:43 -07:00
Andy Wickham f7c033f5e3 Updates Back and Home tutorial animations.
Also adds Overview and Assistant for future use.

Back: https://drive.google.com/open?id=1-VWcGelSZLHQysCn4Bm1tv7vyXbeMpDX
Home: https://drive.google.com/open?id=1YnpMuZcjs3bdQwQkdCOv5px5Ktpm_aBM

Bug: 148542211
Change-Id: Iaaf24e43f24af5ffca1a040e3c0d71e7d26a2175
2020-04-30 21:44:48 +00:00
Winson Chung a7ac7192c3 Fix issue with quickswitch not updating system bar flags
- Separate the calls to minimize split and to update the flags (we only
  want to minimize in split when swiping up, but we want to update the
  flags when quickswitching as well)

Bug: 155410195
Change-Id: I56308cc0fbaa8a855383012738f129671d72feff
2020-04-30 13:58:22 -07:00
TreeHugger Robot eb2549251c Merge "Overriding density when initializing device-profile as the app-context may not point to the correct density in multi-display" into ub-launcher3-rvc-dev am: 28ad91b01b
Change-Id: Ie6ae1c379d3a71f9033b5b99e62e8639d1dad173
2020-04-30 20:38:52 +00:00
TreeHugger Robot afbda10328 Merge "More logging for LogEventChecker appearing to skip events" into ub-launcher3-rvc-dev am: dfd8c4806f
Change-Id: Id6af06aa2dc13d82b5f0e2fbe3e4b85531296cb7
2020-04-30 20:38:42 +00:00
TreeHugger Robot 28ad91b01b Merge "Overriding density when initializing device-profile as the app-context may not point to the correct density in multi-display" into ub-launcher3-rvc-dev 2020-04-30 20:25:47 +00:00
TreeHugger Robot dfd8c4806f Merge "More logging for LogEventChecker appearing to skip events" into ub-launcher3-rvc-dev 2020-04-30 20:24:21 +00:00
Zak Cohen 65a37ba3a9 Overview - position the modal task in the correct place. am: 7f48b0aa34
Change-Id: Ide59f3cd06d40b9f047f8d9039ca3053a410daf7
2020-04-30 19:52:05 +00:00
Sunny Goyal 1890f67800 Overriding density when initializing device-profile as the app-context may not
point to the correct density in multi-display

Bug: 154665987
Bug: 153293358
Change-Id: I9a95bf314049ce783067f70c735ea29a64388ce5
2020-04-30 12:29:02 -07:00
Zak Cohen 7f48b0aa34 Overview - position the modal task in the correct place.
video of new behavoir
https://drive.google.com/a/google.com/file/d/1vFTtjjpwamj5H7dhmB1-5JSFS6fv6vMw/view?usp=sharing


Test: local
Bug: 155205932
Change-Id: I7fe79c848af92013587de32a777645cc472ae910
2020-04-30 18:34:46 +00:00
Winson Chung 895f57f610 Bound the thumbnail insets to the launcher insets
- We currently end up using the launcher insets when swiping
  up into overview due to how we scale the target rect to
  the source bounds, but the thumbnail crop is calculated
  only from the task thumbnail insets.  For apps that are
  letterboxed, this results in a jump after the transition
  completes when we crop too far (including the letterbox)
  and end up showing the task background.

  For now, since we are just cropping by the launcher
  insets, we can also take the min of those and the
  thumbnail insets to calculate the thumbnail view crop.

Bug: 151770104
Test: Test swiping up with a normal app, a letterboxed app
      (like authenticator), an app that has no insets (like
Change-Id: I08342b19c54f9078be4613fca9024e2558403bc9
2020-04-30 11:30:05 -07:00
TreeHugger Robot 8c7e5deac1 Merge "Removing tracking activity start/stop events" into ub-launcher3-rvc-dev am: 0199fa46de
Change-Id: I44b41b253263630cc323f9e5cdb8c717dd6ef02d
2020-04-30 18:23:03 +00:00
TreeHugger Robot 0199fa46de Merge "Removing tracking activity start/stop events" into ub-launcher3-rvc-dev 2020-04-30 18:06:00 +00:00
Lucas Dupin 006adace4f Merge "Do not blur if all apps is fully visible" into ub-launcher3-rvc-dev am: 20051e22e5
Change-Id: I0a8a74078276e1e00ecc3bffa9898392c650b742
2020-04-30 17:37:50 +00:00
vadimt 232737c854 More logging for LogEventChecker appearing to skip events
Bug: 155347466
Change-Id: I6598bcf36c1f7ae76e9bb6b2eccefbd00899de2e
2020-04-30 10:19:10 -07:00
Lucas Dupin 20051e22e5 Merge "Do not blur if all apps is fully visible" into ub-launcher3-rvc-dev 2020-04-30 17:11:53 +00:00
Sunny Goyal 3402f3da7d Generalizing LauncherState definition so that it can be used in RecentsActivity am: 8f96546e79
Change-Id: I1d51f79d9e3fc8eb1c194e895c03111c608fc8aa
2020-04-30 08:54:09 +00:00
Sunny Goyal b3fe564560 Allow synchronous modification of update listeners list am: d75c1da9c7
Change-Id: Iddd63e2f0f1cd09d3b81be1b9949c004a5dae84c
2020-04-30 08:20:13 +00:00
Sunny Goyal 8f96546e79 Generalizing LauncherState definition so that it can be used in RecentsActivity
> Removing 'Launcher' as parameter from state methods called by StateManager
> Converting state properties to methods for easier abstraction
> Moving state handling drom state definition to activity class

Change-Id: I997627df606a7e0bb3bf32688d045a942a47fc94
2020-04-30 01:01:51 -07:00
Sunny Goyal d75c1da9c7 Allow synchronous modification of update listeners list
We create a copy of the listeners before notifying update, so that
the original list can be changed

Bug: 154879110
Change-Id: If9de06682b189d199a40a9171d7d3cfb23eea062
2020-04-29 23:36:54 -07:00
Vinit Nayak 76f8a7d939 Enable edge back gesture on app launch am: 709a52074d am: 8116388e82 am: c0456bc0e2 am: c8cb76afd0 am: 6edf5adcc6
Change-Id: Ic11f7dad91374cb3c971151a63091426d9662ea9
2020-04-30 05:22:59 +00:00
Vinit Nayak 19f59cc9c1 Enable edge back gesture on app launch am: 709a52074d am: 8029a70ee8 am: aa5b3774c9 am: 2e2e92db8f
Change-Id: If51590215e359fde60ff70af3ca84cdb4143c05e
2020-04-30 05:22:47 +00:00
Vinit Nayak ea4877e973 Enable edge back gesture on app launch am: 709a52074d am: 8116388e82 am: 77bd4a872f am: d98717d585
Change-Id: Ic65f604719fc49b4f66114b68a2e159f3e44b64a
2020-04-30 05:22:03 +00:00
Vinit Nayak 6edf5adcc6 Enable edge back gesture on app launch am: 709a52074d am: 8116388e82 am: c0456bc0e2 am: c8cb76afd0
Change-Id: I7eb9fe10d5c4cc2c54b91470a5472734e50e92d8
2020-04-30 05:21:29 +00:00
Vinit Nayak 2e2e92db8f Enable edge back gesture on app launch am: 709a52074d am: 8029a70ee8 am: aa5b3774c9
Change-Id: I702b155c259cab6aba846c929cefc32e0b307e73
2020-04-30 05:04:46 +00:00
Vinit Nayak d98717d585 Enable edge back gesture on app launch am: 709a52074d am: 8116388e82 am: 77bd4a872f
Change-Id: I9005f27e024af4f66447427d1be3ec0a998df28e
2020-04-30 05:04:31 +00:00
Vinit Nayak c8cb76afd0 Enable edge back gesture on app launch am: 709a52074d am: 8116388e82 am: c0456bc0e2
Change-Id: I105d50619314ddf86ac5c504bcde131e659fd039
2020-04-30 05:04:21 +00:00
Vinit Nayak aa5b3774c9 Enable edge back gesture on app launch am: 709a52074d am: 8029a70ee8
Change-Id: Ib7c1da3b3fd53d8aaf53c22e010a762c1b693e82
2020-04-30 04:52:51 +00:00
Vinit Nayak c0456bc0e2 Enable edge back gesture on app launch am: 709a52074d am: 8116388e82
Change-Id: I7fa6b9aadfb4e5cbc437fbd429daabfac7d3b3ba
2020-04-30 04:52:44 +00:00
Vinit Nayak 77bd4a872f Enable edge back gesture on app launch am: 709a52074d am: 8116388e82
Change-Id: Ide34044ad2ac0dcde49d825b96694bdd6b635e50
2020-04-30 04:52:34 +00:00
Vinit Nayak 8029a70ee8 Enable edge back gesture on app launch am: 709a52074d
Change-Id: Ie86fc76ca497940c3efc8214ba551de2a929e273
2020-04-30 04:41:21 +00:00
Vinit Nayak 8116388e82 Enable edge back gesture on app launch am: 709a52074d
Change-Id: I7e6d17d5b662d399f90356383c10994dc0863c7f
2020-04-30 04:40:50 +00:00
android-build-team Robot 624a2db975 Snap for 6445537 from 82902c0da6 to rvc-release
Change-Id: I1eea3088d5d17c4c0c09e94fb18ff7d4befb1fe3
2020-04-30 01:05:24 +00:00
TreeHugger Robot 734d102574 Merge "Various multi-window fixes" into ub-launcher3-rvc-dev am: 2d60935e1c
Change-Id: If002afd3a08fe25b203a6882e43f2df82385caa9
2020-04-29 23:59:57 +00:00
TreeHugger Robot 2d60935e1c Merge "Various multi-window fixes" into ub-launcher3-rvc-dev 2020-04-29 23:43:57 +00:00
Vinit Nayak 709a52074d Enable edge back gesture on app launch
We don't clear state on EdgeBackGestureHandler
when we go to Recents or Home.
A more robust solution is in the works with
WM team and will probably be built on top of this.
Needs ag/11273364 to work.

Bug: 154580671
Test: Launch app directly in landscape,
should be able to swipe home on first try.

Change-Id: Ia4c685e16645d0237f278a611f6c61f252f3b79c
(cherry picked from commit 3f3cc3e96e)
2020-04-29 23:34:57 +00:00
vadimt a1f0a10662 Removing tracking activity start/stop events
They were not especially useful in investigations; besides, these events
can be sent by the system asynchronously for actions that happened
before entering TAPL, causing flakes.

Change-Id: I72b5aad5521c6c0969f5b657b3db3e4d855f1d64
2020-04-29 14:23:53 -07:00
TreeHugger Robot cb7f93757d Merge "Dump RecentsOrientationState for bug reports" into ub-launcher3-rvc-dev am: 875f381dbb
Change-Id: I8848ee8e4d3af64a6f6315c3f8753aba11f5f205
2020-04-29 20:00:06 +00:00
TreeHugger Robot 875f381dbb Merge "Dump RecentsOrientationState for bug reports" into ub-launcher3-rvc-dev 2020-04-29 19:56:54 +00:00
Vinit Nayak 67e7b8baee Merge "Use appropriate start padding for clear all button" into ub-launcher3-rvc-dev am: 3aed7aeb67
Change-Id: Ie7a3eff5c67d124391b3cf20fdd9761f9d4641f5
2020-04-29 19:53:21 +00:00
Vinit Nayak 3aed7aeb67 Merge "Use appropriate start padding for clear all button" into ub-launcher3-rvc-dev 2020-04-29 19:31:38 +00:00
Vinit Nayak a5877307d1 Dump RecentsOrientationState for bug reports
Bug: 154951045
Test: New output shows up when running
"adb shell dumpsys activity
com.google.android.apps.nexuslauncher.NexusLauncherActivity
[--all]"

Change-Id: I5e9ace7d370eb0e9d278d7d9f7f9156674ca1a50
2020-04-29 12:19:49 -07:00
TreeHugger Robot 6d04b3e880 [automerger skipped] Merge "Import translations. DO NOT MERGE" into ub-launcher3-rvc-dev am: a1925a28aa -s ours
am skip reason: subject contains skip directive

Change-Id: Idd851bc41999545ec76cf05ffad8f1869c90cf77
2020-04-29 19:08:49 +00:00
Sunny Goyal 0addbf0512 Various multi-window fixes
> Fixing scale up calculator for swipe-down
> Offsetting pivot so that the preview is aligned to bottom-right
> Allowing insets to be available in multi-window mode as well
> Offsetting taskViewSimulator appropriately in multi-window mode

Change-Id: I7da4c145efca72ef219a5ffcaf23d726812df270
2020-04-29 11:50:33 -07:00
TreeHugger Robot a1925a28aa Merge "Import translations. DO NOT MERGE" into ub-launcher3-rvc-dev 2020-04-29 18:47:25 +00:00
Bill Yi 2d65e2202e Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: Ie7e058e9ca81e402b0877d430badb4be25ba06b5
2020-04-29 11:12:27 -07:00