Commit Graph

891995 Commits

Author SHA1 Message Date
Tiger Huang
6593d03bc6 Merge "Refine InsetsSourceTest#testGetIndex,testGetType" into udc-dev 2023-05-12 08:55:21 +00:00
Chaohui Wang
ee760d7e2b Merge "Fix pager state after configuration change" into udc-dev 2023-05-12 08:27:48 +00:00
Graciela Putri
642068a9d5 Merge "[7/n] Camera Compat: Tooltip with shell transitions" into udc-dev 2023-05-12 08:26:50 +00:00
Reema Bajwa
f7b23ffc4c Fix bug that filters out system providers
When setAllowedProvider is specified, currently we are filtering out all
the system providers. With this change, we will always ping the system providers
+ the providers specified in the allow list.

Bug: 277773297
Test: built locally & deployed on devive

Change-Id: I8a82f68edbd75b9a879d7e32aa32413af3a35cd9
2023-05-12 08:24:03 +00:00
omarmt
11fccc4afb Call onBackCancelled() when an active callback is removed from the WindowOnBackInvokedDispatcher
When an OnBackInvokedCallback is unregistered from a WindowOnBackInvokedDispatcher, it is important to check if the callback is the current top one and if the back animation is in progress. If it is, we should call onBackCancelled() on the callback as a final step.

Test: atest WindowOnBackInvokedDispatcherTest
Bug: 276816667
Change-Id: Icaf98899c474c4e8d89d4a9c77acc309d37e9582
2023-05-12 08:20:33 +00:00
shaoweishen
3983f096b9 [Output Switcher] Update device icon and Media metadata
1. add new route type and icons
2. update the way to get Media information to consist with UMO

Bug: 279641026
Bug: 278728942
Test: atest MediaOutputAdapterTest MediaOutputControllerTest MediaOutputBaseDialogTest MediaOutputDialogTest
Change-Id: I42f1bbc433d7471f54417332102ed7be345df5be
2023-05-12 07:38:11 +00:00
shaoweishen
53ed17fffc [Output Switcher] Fix SASS device update in U
SASS device should also work in U, this change fixs color update for
SASS device layout, consistently use setBackgroundTintList.

Bug: 281521758
Test: atest MediaOutputAdapterTest
Change-Id: Ie9fe55b829d6326ac22322b6c4a1b38b15726119
2023-05-12 07:36:29 +00:00
Sumedh Sen
2bb931237e Replacing overlapping flag value
FLAG_IGNORE_EPHEMERAL shared its value with FLAG_ACTIVITY_REQUIRE_DEFAULT
which was problematic since these flags were used or checked together
in a few cases. A short term solution was to replace the value of
FLAG_IGNORE_EPHEMERAL with another flag value - FLAG_RECEIVER_OFFLOAD -
which isnot used with the former flag.
This will be revisited in the future, with a concrete solution, since
there are no 32bit flags left in Intent.java.

Bug: b/269674648
Test: None
Change-Id: I9e3d282bb12a630d0a170871fe8e2da5d259ad57
2023-05-12 00:35:48 -07:00
Haining Chen
e427b5cba0 Merge "Revert "Add ComponentInfo in sensor properties into dumpsys"" into udc-dev am: 2e637bb64b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23149557

Change-Id: Ie73f11f4d8968f7ea5bb948dde58aa5b6dc899eb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-12 06:50:09 +00:00
Riddle Hsu
f072e729d6 Merge "Cache decor insets for display switch" into udc-dev am: 95dff23f60
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22857217

Change-Id: I4237c11614bf922b2d2dab078a22dbc2a1cba241
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-12 06:48:33 +00:00
Anna Bauza
6f85af4397 Merge "Add elapsed time to user journey report and user lifecycle journey (from create to delete)" into udc-dev am: cdd7f04ff5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23168143

Change-Id: Ic82d17488ecdd526c7d27193c9f9a9947763dcf2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-12 06:37:25 +00:00
Kunal Malhotra
e45ad7c058 Merge "Updating API to be one way." into udc-dev am: 17d5ffdf00
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22914505

Change-Id: Ief5a2b46d32bcb31fe92e856e3a00a328710c3e7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-12 06:36:26 +00:00
Ajinkya Chalke
92dbb1c54d Merge "Implement work profile considerations in app clips" into udc-dev am: 5d63998d8f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22930877

Change-Id: I761b3bb416a2ff4bbff4c9635c48b3875814007e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-12 06:20:29 +00:00
Tiger
c74e81dd34 Refine InsetsSourceTest#testGetIndex,testGetType
This CL adds owners into the tests.

Bug: 281709596
Test: atest InsetsSourceTest#testGetIndex,testGetType
Change-Id: I1ededa130ecc6e579403ac4ddd53585369848fa8
2023-05-12 06:16:59 +00:00
Jean-Michel Trivi
b43455a158 AudioService: fix NOTIFICATION unmuted while in silent/vibrate mode
Fix support of AudioManager.FLAG_ALLOW_RINGER_MODES which enables
the change of ringer mode in response to the unmuting of a stream
currently muted by the ringer mode.
  When this flag is not present, the unmuting of a muted stream
is not allowed, and that call shouldn't change the ringer mode.
  This prevents entering situations where NOTIFICATION is unmuted
but the ringer mode is VIBRATE or SILENT.

Bug: 278661956
Test: atest CtsMediaAudioTestCases:android.media.audio.cts.AudioManagerTest#testAdjustUnmuteNotificationInSilent
Test: atest CtsMediaAudioTestCases:android.media.audio.cts.AudioManagerTest#testAdjustUnmuteNotificationInVibrate
Change-Id: Ib1306be48ba61a0294e12e3bf7ac74fb54a0bd6c
2023-05-11 23:15:51 -07:00
Haining Chen
2e637bb64b Merge "Revert "Add ComponentInfo in sensor properties into dumpsys"" into udc-dev 2023-05-12 06:12:27 +00:00
Candice Lo
d1cc48c14c Fix truncation in Allow diagonal scrolling
Fixing the truncation in the text that exceeds the boundary of textview
with settings ellipsize=marquee and allow horizontally scrolling.

Bug: 280162065
Test: manually - attach videos in the bug
Change-Id: I7965ced2dfdccfa83c2add8fa7f81ba12e8fc720
2023-05-12 05:56:01 +00:00
Riddle Hsu
95dff23f60 Merge "Cache decor insets for display switch" into udc-dev 2023-05-12 05:51:13 +00:00
Anna Bauza
cdd7f04ff5 Merge "Add elapsed time to user journey report and user lifecycle journey (from create to delete)" into udc-dev 2023-05-12 05:47:28 +00:00
Kunal Malhotra
17d5ffdf00 Merge "Updating API to be one way." into udc-dev 2023-05-12 05:44:09 +00:00
Ajinkya Chalke
5d63998d8f Merge "Implement work profile considerations in app clips" into udc-dev 2023-05-12 05:43:34 +00:00
Jing Ji
efc4125964 Limit the background FGS start with foreground only permission
Since Android R, background-started FGS can't access the mic/camera
even if the user has granted "while-in-use" permission, so does for
the foreground location permission. Now, if the app tries to start
a FGS from the background with the type mic/camera/location,
the start would be denied, since they can't access those sensors
from that FGS anyway, it makes no sense to start such a FGS.
If the app has the background location permission and tries to
start FGS from the background, this is still allowed.

Bug: 280936347
Test: atest CtsAppFgsTestCases
Change-Id: I56865b4f9e9c317c968a6cbfced5b3b4cdccda79
2023-05-11 22:29:23 -07:00
TreeHugger Robot
11b9b6bd0b Merge "Metric System Cleanup" into udc-dev am: 325a4e206c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23181460

Change-Id: Ib4ba05858a054a2de269710a4bcb44107a848863
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-12 05:21:12 +00:00
Evan Rosky
f7cfbbfd0d Merge "Swap z-order of tasks for default wallpaper-open animation" into udc-dev am: 34fb513c85
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23149774

Change-Id: I96a576c2e958b3b500c5aceaae72fa7d4ce179b4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-12 05:20:44 +00:00
TreeHugger Robot
325a4e206c Merge "Metric System Cleanup" into udc-dev 2023-05-12 04:36:38 +00:00
Evan Rosky
34fb513c85 Merge "Swap z-order of tasks for default wallpaper-open animation" into udc-dev 2023-05-12 04:34:11 +00:00
Treehugger Robot
6339456daf Merge "Make sure stickies get resent from the same UID." into udc-dev am: f45c483022
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22860109

Change-Id: I0d4c78f4195f16442482917066e45a574a3e1861
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-12 03:38:16 +00:00
Treehugger Robot
f45c483022 Merge "Make sure stickies get resent from the same UID." into udc-dev 2023-05-12 02:47:24 +00:00
Evan Rosky
27c8c5ec7d Fix graphical glitches on keyguard-unlock with PIP
Since keyguard animations sync transactions to view rendering,
it's possible for them to apply changes after the finishtransaction,
so wrap containers in leashes so that we can just detach them.

Also, remove the single-task-opening restriction now that keyguard
animations support multiple tasks.

Bug: 278886491
Test: app in pip, turn screen off, turn screen on+unlock.
Change-Id: Iea2fc2d5ae16c59e7983b87fea2cd62d327f4ac9
2023-05-11 19:38:30 -07:00
Faye Yan
d5a1702537 Merge "Cleanup step to reverts the USE_FULL_SCREEN_INTENT app op mode to MODE_DEFAULT if the permission flags for the USE_FULL_SCREEN_INTENT permission does not have USER_SET." into udc-dev am: 2256e4bac2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23065541

Change-Id: I42ec9b190905b96cf1e8d98c7699a5dbb3568367
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-12 02:33:26 +00:00
Candice Lo
8facd027e6 Merge "Hide fullscreen button in partial only mode" into udc-dev am: edbdb9776e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23087459

Change-Id: Idc526470cfdf974eb2d32dac2a12cc7bbd22fb23
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-12 02:29:52 +00:00
Arpan Kaphle
7b1399ec6d Metric System Cleanup
This fixes any final issues in the metric collection and emission
system, including logs. The fixes primarily focus on ensuring the
timestamps are properly recorded, the aggregations are done properly for
the total canddiate, and that all types and values are recorded or
collected as they should be and emitted when they should be.
Statuses and TODOs are also fixed here, alongside any final logs.

Bug: 271135048
Bug: 270568738
Test: Build, won't submit without E2E Test (No Affect + Validate Metric Emits)
Change-Id: I3637bf4a84596ba72bdab9ef225e4e5c77ab0bb6
2023-05-12 02:27:01 +00:00
Faye Yan
2256e4bac2 Merge "Cleanup step to reverts the USE_FULL_SCREEN_INTENT app op mode to MODE_DEFAULT if the permission flags for the USE_FULL_SCREEN_INTENT permission does not have USER_SET." into udc-dev 2023-05-12 02:25:22 +00:00
Candice Lo
edbdb9776e Merge "Hide fullscreen button in partial only mode" into udc-dev 2023-05-12 01:45:55 +00:00
Kevin Chyn
3af2b0339b Merge changes from topic "concurrent-keyguard" into udc-dev am: cc5495e933
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23121840

Change-Id: I7b78ac7de2d56bf73c130d317804feed28ce0d96
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-12 01:31:58 +00:00
TreeHugger Robot
4721f3649f Merge "[Autofill PCC] Restrict complete logging to debug bulids" into udc-dev am: d4460ca5cc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23156537

Change-Id: I6ab0042d1f66a128406336fa912b149228ecbf0d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-12 01:31:11 +00:00
Evan Rosky
20f7972eb6 collect task moving-to-back
Otherwise it will flicker.

Bug: 281944233
Test: open chrome+gmail in split, close gmail via back.
Change-Id: Ibf3f0f98aa8dfc4476b246b6906978e4439d8ff7
2023-05-11 18:30:47 -07:00
Roy Chou
9c43eba543 Merge "fix(non linear font scaling)!: fix QS text being cut off when 200% font scaling" into udc-dev am: 0acac4d370
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23087397

Change-Id: Ia02268e88b3b8317cd22e38c51cd640af119ae92
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-12 01:30:43 +00:00
Hawkwood Glazier
d76dea0971 Merge "Subsequent blind fix for runBlocking Interrupted Exceptions" into udc-dev am: f175ad01cd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23060778

Change-Id: I5a9f704429c2e3298575ab859a04b1e64c0ca4e4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-12 01:25:47 +00:00
Mady Mellor
3cd4cf039a Merge "Fix potential NPE when removing bubble" into udc-dev am: 8afb4df8dd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23174051

Change-Id: Ib822a53d37cc3430e90c7bcf4d279a67263e828c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-12 01:22:38 +00:00
Kevin Chyn
cc5495e933 Merge changes from topic "concurrent-keyguard" into udc-dev
* changes:
  Cleanup mRearDisplayPresentationController if SecurityException caught
  Add foreground check for controlling or requesting device state
  Do not show Keyguard Presentation when occluded
2023-05-12 01:13:46 +00:00
Ruslan Tkhakokhov
48dbc393b4 Allow BackupManagerMonitorWrapper to wrap null values
Check the underlying monitor value is not null before proxying the call
in the onEvent() method.

Bug: 282075312
Test: atest BackupManagerMonitorWrapperTest
Change-Id: Iece25d81bc9ec765244898589222491c16ca629a
2023-05-12 01:13:27 +00:00
Haining Chen
979c15e63f Revert "Add ComponentInfo in sensor properties into dumpsys"
This reverts commit 62f291ffd8.

Reason for revert: ComponentInfo can be retrieved using BiometricManager API with proper permissions and the info doesn't need to be exposed in dumpsys.

Bug: 281914035

Change-Id: If3575c5b9a66f65593ff377834d660561886b079
2023-05-12 01:13:24 +00:00
TreeHugger Robot
d4460ca5cc Merge "[Autofill PCC] Restrict complete logging to debug bulids" into udc-dev 2023-05-12 01:04:42 +00:00
Roy Chou
0acac4d370 Merge "fix(non linear font scaling)!: fix QS text being cut off when 200% font scaling" into udc-dev 2023-05-12 00:59:38 +00:00
Hawkwood Glazier
f175ad01cd Merge "Subsequent blind fix for runBlocking Interrupted Exceptions" into udc-dev 2023-05-12 00:51:11 +00:00
Mady Mellor
8afb4df8dd Merge "Fix potential NPE when removing bubble" into udc-dev 2023-05-12 00:42:21 +00:00
Aaron Liu
a2614f20b4 Fix lockout state for auto pin confirm
In Autoconfirmation, if we lockout, we want to have the backspace key
have the same behavior as the enter key. We also want to remove pin
hinting.

Fixes: 281661030
Test: autoconfirmation, long press backspace key
Test: autoconfirmation lockout and regular authenticate
Change-Id: Ia1128b9d2f98b1758b23e3a75909900810fd051a
2023-05-11 17:29:23 -07:00
Aaron Liu
0d364c7379 Fix pin error scenario for talkback.
There were a couple of issues with the accessibility of the wrong pin
scenario.

1. the user activity signal from the password view is trying to set the
   error message to an empty string. Move setting the error message to
   after resetting the password view.
2. No text is set yet while we are animating the view and this prevents
   the text from being announced. I remedied this by relying on a
   textwatcher to keep track of the textview.
3. The password view is constantly being selected, which shouldn't
   really be the case. This is because we set the input to be disabled
   as we check the password and re-enable it. While in this process, we
   requestfocus if focus is not on the password view.
4. For some reason we set the textview to "wrong pin" and then
   immediately an empty string. There is a 250ms delay to make the
   accessibility announcement. After 250ms, we want to ensure that the
   text is still displayed in the textview.

Consequently, once a wrong pin in inputted, the only talkback text is now
"Wrong Pin"

Fixes: 281635711
Fixes: 281787557
Test: wrong pin scenario in bouncer.
Test: password, simpin, and sim puk views.
Change-Id: I018e067e0a3b17fbd7921f40924ced401707297c
2023-05-11 17:29:16 -07:00
Treehugger Robot
901bd06547 Merge "Send userdata from ES response to purchase webapp" into udc-dev am: 071795c050
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23151916

Change-Id: I9c18d5f5f8ddd67da96081a264b3c47eb44ec0b1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-12 00:23:05 +00:00