Commit Graph
46908 Commits
Author SHA1 Message Date
TreeHugger Robot 29448d7ee2 Merge "Tracing the cause for saving bugreports" into tm-dev am: 0716b0c104
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17963247

Change-Id: Ia50b6cad9ccb7d7a3c8fe156ff6296261a60275b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-28 20:40:24 +00:00
TreeHugger Robot 0716b0c104 Merge "Tracing the cause for saving bugreports" into tm-dev 2022-04-28 18:20:06 +00:00
TreeHugger Robot 7cddb43bb1 Merge "Cleanup tapl test workaround" into tm-dev am: fd64b4f2b3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17983442

Change-Id: Ic36159dec08756e9c2cf0c5bc51e7e6c0dc24d68
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-28 13:30:01 +00:00
TreeHugger Robot fd64b4f2b3 Merge "Cleanup tapl test workaround" into tm-dev 2022-04-28 12:51:48 +00:00
Raj Garg 3d97bc1251 Merge "Making the parseAndAddDeepShortcut api private." into tm-dev am: 0191a02a02
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17988066

Change-Id: I7685e12a4b93035605e3885aec0efb2f24eb8a05
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-28 10:08:47 +00:00
Thales Lima 444b3eec96 Merge "Increase empty space limits" into tm-dev am: d7a9408696
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17943882

Change-Id: I990b65db7121f681e91955fe4ff8b9de6d3debc2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-28 10:08:39 +00:00
Raj Garg 0191a02a02 Merge "Making the parseAndAddDeepShortcut api private." into tm-dev 2022-04-28 09:58:37 +00:00
Thales Lima d7a9408696 Merge "Increase empty space limits" into tm-dev 2022-04-28 09:41:56 +00:00
Anushree Ganjam 9ca4eedee6 Merge "Revert "Refactors Search results into separate RV for Toast."" into tm-dev am: fa693be19f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18011182

Change-Id: Ia39c474f0b5c640ac4e15c229d45ac7e1dc785a4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-28 05:28:38 +00:00
Raj Garg b6ba0b4739 Merge "Adding support to parse deep-shortcuts." into tm-dev am: f3924d62b0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17956680

Change-Id: Ifba791d54a24d8ac31f5be073ff5c18147cb72c7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-28 05:27:03 +00:00
My Name 9a6dbac68c Making the parseAndAddDeepShortcut api private.
There is no need to expose this api. Missed the comment https://googleplex-android-review.git.corp.google.com/c/platform/packages/apps/Launcher3/+/17956680/comments/1c9b7443_cc54296d

Test: Tested manually on device.
Change-Id: If71e203f32a59fa59c406303411a37cba7b6c62e
2022-04-28 05:17:40 +00:00
Anushree Ganjam fa693be19f Merge "Revert "Refactors Search results into separate RV for Toast."" into tm-dev 2022-04-28 04:52:01 +00:00
Raj Garg f3924d62b0 Merge "Adding support to parse deep-shortcuts." into tm-dev 2022-04-28 04:32:38 +00:00
Anushree Ganjam 5cc7ff0990 Revert "Refactors Search results into separate RV for Toast."
This reverts commit 6729f0b950.

Reason for revert: This change caused b/230648542.

Please see https://b.corp.google.com/issues/230648542#comment5 for the video after reverting this change.

Bug: 206905515
Bug: 230648542

Change-Id: I85f063c56cad137c05b810204244bba7e8f94ee7
2022-04-28 01:37:49 +00:00
Sebastián Franco 660b09e2d4 Merge "Give the tests the ability to emulate other devices screens" into tm-dev am: 84051cd8bf
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17413625

Change-Id: Iad9381b40f1080c0f77e1d3b5bd36760a4c13ca4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-27 17:51:09 +00:00
Sebastián Franco 84051cd8bf Merge "Give the tests the ability to emulate other devices screens" into tm-dev 2022-04-27 17:25:55 +00:00
TreeHugger Robot 0050bdf877 Merge "Remove unnecessary updatePivots" into tm-dev am: e19522bede
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17983443

Change-Id: I7f2cd13a7cd1af01d78a10acae3010b59a823399
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-27 16:42:31 +00:00
TreeHugger Robot 656eb69dcc Merge "Move spring loaded scale calculation to DeviceProfile." into tm-dev am: 84bff57d8d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17909525

Change-Id: Ib0ac0582eed1ea17a6ec9452bdafebc9d4219667
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-27 16:42:03 +00:00
TreeHugger Robot e19522bede Merge "Remove unnecessary updatePivots" into tm-dev 2022-04-27 14:49:12 +00:00
TreeHugger Robot 84bff57d8d Merge "Move spring loaded scale calculation to DeviceProfile." into tm-dev 2022-04-27 13:51:59 +00:00
Alex Chau 2a6e364e91 Remove unnecessary updatePivots
- Follow-up of http://ag/17888303 to remove extra code that didn't get clean up

Bug: 209981696
Test: manual
Change-Id: I37f68dd52adacfd033eaeaeca52c98a4a06d556d
2022-04-27 13:57:39 +01:00
András Klöczl b8caa791a9 Merge "Change home dragging logic for dead zones" into tm-dev am: 143b71203f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17217228

Change-Id: I31188d6b8ec40b91c605e27dac0920049732c091
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-27 12:46:09 +00:00
Alex Chau 087e1143cc Merge "Update overview actions alignment" into tm-dev am: a80efcee9f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17888303

Change-Id: Ib142b0cc958fcafbaf7d2a1c9ff619fa5546a41f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-27 12:45:57 +00:00
András Klöczl 143b71203f Merge "Change home dragging logic for dead zones" into tm-dev 2022-04-27 12:44:34 +00:00
Alex Chau a80efcee9f Merge "Update overview actions alignment" into tm-dev 2022-04-27 12:24:24 +00:00
Andras Kloczl 015d44aee3 Cleanup tapl test workaround
There was a bug in the framework (b/219711163) so
we needed a workaround to make the tapl test pass.

Test: Run TAPL tests
Bug: 219919285
Change-Id: I3eb4ca8c5b1d24f38330ad41b58c31c81eb01501
2022-04-27 12:24:43 +01:00
My Name 2f5a1b6756 Adding support to parse deep-shortcuts.
Actual problem space is to prebundle YouTube Shorts shortcut to the
JioPhone Next device. The parsers don't support parsing the deep shortcut. In this CL we have added support for parsing deep-shortcuts.

Test: Tested manually on device.
Bug: 227290255
Change-Id: I7ea240a29639b88254fa679733541ff98ddfaa48
2022-04-27 08:14:46 +00:00
Sunny Goyal d0dd1d5c58 Revert^2 "Removing some unused code from All-Apps" am: 52f4c16a94
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17923858

Change-Id: Icd99fa425640e94ecfe65e4a2521b49c85a97d0b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-27 06:35:18 +00:00
Jerry Chang 8e6c561fee Merge "Fix divider bar won't fade-in as the other splitting tasks" into tm-dev am: 59939e9e94
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17935107

Change-Id: I18da09053d289addee5d0aad397620efd5bba736
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-27 03:49:13 +00:00
Sunny Goyal 52f4c16a94 Revert^2 "Removing some unused code from All-Apps"
13ae6784b5

Change-Id: I06a4c9cc6beba4fc87b4a9375872c68e71e1c5f6
2022-04-27 03:22:58 +00:00
Jerry Chang 59939e9e94 Merge "Fix divider bar won't fade-in as the other splitting tasks" into tm-dev 2022-04-27 03:02:57 +00:00
Bill Yi e1824d361f [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 5f02b2d52c -s ours am: a2d3bbe27e -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17937863

Change-Id: Id610cf9a13c75f52dab1428155a3dd8025cf5d02
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-26 23:09:01 +00:00
Bill Yi a2d3bbe27e [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 5f02b2d52c -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17937863

Change-Id: Ibef2d2371414b7d35b903df4892506dca573cc85
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-26 23:01:53 +00:00
vadimt 6df9aa3086 Tracing the cause for saving bugreports
Bug: 229115383
Test: presubmit
Change-Id: I8ce42c67b4679e23b2e7ea68ee27ee9738a8b4b5
2022-04-26 13:18:19 -07:00
Tracy Zhou e8f2f145b7 Merge "Add originalView of the menu to SystemShortcut" into tm-dev am: 7183e4b460
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17677218

Change-Id: I541df065b955cee103d1df798c23a862023b33d1
Ignore-AOSP-First: this is an automerge
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-26 17:52:08 +00:00
Tracy Zhou 7183e4b460 Merge "Add originalView of the menu to SystemShortcut" into tm-dev 2022-04-26 17:28:40 +00:00
TreeHugger Robot ac74647c44 Merge "Refactors Search results into separate RV for Toast." into tm-dev am: 0a6e9b4751
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17699868

Change-Id: I01d42422cdf61aa9f8d8f46639e4dd2eaaa7afa9
Ignore-AOSP-First: this is an automerge
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-26 15:35:37 +00:00
Andras Kloczl 0056e95d8e Change home dragging logic for dead zones
- If a dragged item is not over a valid drop target
then we don't highlight anything and on drop we move
it back to its original position.
- Instead of checking if the dragged item is over the
hotseat view, now we check if the item is over the hotseat
shortcuts.
- Smartspace is a dead zone

Test: drag items from different workspaces, allapps, widget
  picker etc. to all parts of the screen and verify which
  view is targeted and where the item gets dropped.
  Check on phone/foldable/tablet.
Bug: 228201267
Change-Id: I18de576ea300d58ae645e511b238e0b946b5595a
2022-04-26 16:28:11 +01:00
TreeHugger Robot 0a6e9b4751 Merge "Refactors Search results into separate RV for Toast." into tm-dev 2022-04-26 15:06:49 +00:00
Pablo Gamito 7976d46fc2 Merge "Use shared background color animation for settings activity" into tm-dev am: 7379074007
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17875203

Change-Id: I049cb742067d12a36d9ea22742f9a7791e3cf279
Ignore-AOSP-First: this is an automerge
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-25 21:42:59 +00:00
Pablo Gamito 7379074007 Merge "Use shared background color animation for settings activity" into tm-dev 2022-04-25 21:22:21 +00:00
Alex Chau a2fc764405 Update overview actions alignment
- Align overview actions to the top with a defined margin below task thumbnail, except for vertical bar layout
- In modal state, use task view's bottom as pivot, and expand using all the space about pivot
- Simplified overview actions margin calculation and moved some logic to DeviceProfile

Bug: 209981696
Test: manual on various devices
Change-Id: I4c96cb02c6f3d6adf30633ddeb883bc4eec16f36
2022-04-25 19:20:21 +01:00
Pat Manning a2e1499a2f Move spring loaded scale calculation to DeviceProfile.
Fix: 229838395
Test: manual
Change-Id: I6dbbc850e88aaacceb1363e342404b06104f8c10
2022-04-25 18:58:09 +01:00
Thales Lima 25ac8b804f Increase empty space limits
Bug: 227344807
Test: manual
Change-Id: Id5d484d57da60f3cf90db9bf0571919d93288de3
2022-04-25 18:49:33 +01:00
Sebastian Franco 00aff95ac0 Give the tests the ability to emulate other devices screens
This code contains utility clases that can change the display
of a device and make it look like another device.
The function DisplayEmulator#emulate receives a DeviceEmulationData
a certain grid to emulate and a callback, everyting that happens
inside of the callback will happen when the device is being emulated
and can be used by other tests.

Example test:
package com.android.launcher3.deviceemulator;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.filters.MediumTest;
import com.android.launcher3.deviceemulator.models.DeviceEmulationData;
import com.android.launcher3.ui.AbstractLauncherUiTest;
import org.junit.Test;
import org.junit.runner.RunWith;
import java.util.concurrent.TimeUnit;

@MediumTest
@RunWith(AndroidJUnit4.class)
public class TestTest extends AbstractLauncherUiTest {
    @Test
    public void testEmulation() throws Exception {
        String deviceCode = "pixel6pro";
        DeviceEmulationData deviceData = DeviceEmulationData.getDevice(deviceCode);
        String grid = "normal";
        DisplayEmulator displayEmulator = new DisplayEmulator(mTargetContext);

        displayEmulator.emulate(deviceData, grid, () ->{
            TimeUnit.SECONDS.sleep(10);
            return true;
        });
    }
}

Test: You could use the test above to make your device look like a
Pixel6 pro for 10 secons.
Fix: 229028257

Change-Id: Icd79be405a2e14dda0bc5f555b0e46149e16f912
2022-04-25 11:57:58 -05:00
Jerry Chang c3865b86e4 Fix divider bar won't fade-in as the other splitting tasks
Bug: 226271407
Test: manual check the divider bar fade-in animation after launchTasks
Change-Id: I5ea7c6ea5ac3f3550b28e9c0f854e70edcfc97b0
2022-04-25 15:41:28 +00:00
Bill Yi 5f02b2d52c Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ibf24622e458e5b2029a3cb0486f51cefa16372d2
2022-04-25 02:43:37 +00:00
Andy Wickham 94a202c4a8 Merge "Adds Search Onboarding count and renames existing edu pref." into tm-dev am: 833b0a0b5b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17876281

Change-Id: Ic72037b8c20a30795404321d1ef61e42d8d03c84
Ignore-AOSP-First: this is an automerge
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-25 00:50:22 +00:00
Andy Wickham 6729f0b950 Refactors Search results into separate RV for Toast.
This will help enable transitions between A-Z apps lists and
search results because both can be seen simultaneously and
manipulated independently.

Some high level items of the refactor:
 - SearchRecyclerView is added; logic that populated the main
   (personal) tab with search results was simply redirected to
   this RV instead.
 - BaseAllAppsContainerView added isSearching() method. Returns
   false, and ActivityAllAppsContainerView overrides (as search
   is handled there).
 - Renamed BaseRecyclerView to FastScrollRecyclerView to better
   describe what it does. SearchRecyclerView extends this, but
   returns false for supportsFastScrolling().
 - AlphabeticalAppsList#mAllAppsStore is now optional, so the
   Search RV doesn't need to store/listen to apps. Note this
   doesn't affect the predicted app row which is still updated
   if one of the predicted apps is uninstalled (I tested this).

Future work:
 - Determine why dispatchRestoreInstanceState is not called for
   BaseAllAppsContainerView. Save is called, e.g. on rotation.
   Effect of restore not called: rotating while searching goes
   back to A-Z list.
 - Keep suggested apps in Header while searching. Currently they
   are rendered in the SearchRV above search results, as before.
 - Potentially extract Personal/Work tabs to move independently of
   header.
 - AlphabeticalAppsList is a misleading name because it can also
   contains search results. However, things are pretty intertwined
   between that and BaseAllAppsAdapter (effectively a circular
   dependency), so I figured cleaning all that up was out of the
   immediate scope of this refactor, which is mainly meant to
   unblock transition work.

Bug: 206905515
Test: Manually checked for regressions, ran tests.
Change-Id: I4d3757c8a8f9b774956ca6be541dd4fcdad1de13
2022-04-24 17:36:48 -07:00
Andy Wickham 833b0a0b5b Merge "Adds Search Onboarding count and renames existing edu pref." into tm-dev 2022-04-25 00:26:51 +00:00