Commit Graph

497922 Commits

Author SHA1 Message Date
Louis Chang
2e4efe7be2 Detects all activities for whether showing work challenge
Work challenge did not show when a work activity is not on top, but
still visible after screen turns on.

Also show work challenge even if the work activity is behind a top
fullscreen activity of another profile because the user can still
navigate back to the work activity when top activity finishes.

Bug: 177457096
Test: RootWindowContainerTests

Change-Id: I5e09b09be547d04fdfd709cb9cd4bcd4a94bbf21
Merged-In: I5e09b09be547d04fdfd709cb9cd4bcd4a94bbf21
(cherry picked from commit 87fa64ebe4)
2021-05-20 00:00:46 +00:00
Nate Myren
1dcac12a9e Ensure storage permission revoke happens for all users
When revoking storage permissions due to storage escalation, ensure the
revoke happens for all users

Fixes: 186034260
Bug: 171430330
Test: atest --user-type secondary_user StorageEscalationTest
Merged-In: Ieb8bb9cde1576e9eee131338d393b8a3528341ec
Change-Id: Ieb8bb9cde1576e9eee131338d393b8a3528341ec
(cherry picked from commit 8a1085bdcb)
2021-05-20 00:00:40 +00:00
lucaslin
63c67f0304 Remove sendNetworkConditionsBroadcast
sendNetworkConditionsBroadcast is removed, so
TestNetworkStackService.kt cannot override it anymore,
otherwise there will be a build break when running this
test.
Also add a comment for NETWORK_CONDITIONS_MEASURED in
AndroidManifest.xml.

Bug: 175213041
Test: atest FrameworksNetIntegrationTests
Change-Id: I7b43940dc32826c70fa82f471b35bc5cb8394aad
Merged-In: I7b43940dc32826c70fa82f471b35bc5cb8394aad
(cherry picked from commit c737926795)
2021-05-20 00:00:34 +00:00
android-build-team Robot
ba595d5deb Merge cherrypicks of [14217257, 14217258, 14217339, 14217529, 14217566, 14214972, 14217508, 14216278, 14216279, 14217530, 14217281, 14215011] into rvc-qpr3-release
Change-Id: I6d9ce7c32a28ca52edd1a595c957c9926979caf5
2021-04-17 00:08:48 +00:00
Mohammad Samiul Islam
301aaf691f Prevent apk-in-apex from being registered under wrong apex
Without this fix, an apk-in-apex located in path
/apex/com.android.mediaprovider will be added as apk-in-apex
for com.android.media too, just because they have the same
prefix.

Added a info log too to make it easier to understand which apk-in-apex
is being registered under which apex.

Bug: 170640411
Test: Manual testing
Change-Id: Idc989ac84777589b4bdd72012833cdbdab7e872c
Merged-In: Idc989ac84777589b4bdd72012833cdbdab7e872c
(cherry picked from commit c45a426e8e)
(cherry picked from commit 58cd8bc29e)
2021-04-17 00:08:23 +00:00
android-build-team Robot
de4179c624 Snap for 7266183 from 90be1b5d2c to rvc-qpr3-release
Change-Id: I8b6575f0fe8fccc8042c44ea9b8eddc3afae25a7
2021-04-07 22:04:32 +00:00
Julia Reynolds
90be1b5d2c Mark intents as immutable
Test: manual
Fixes: 169792886
Fixes: 169793537
Fixes: 169793764
Change-Id: I8ae9efe732b468b8e13e264b0af8f81c596e2e89
(cherry picked from commit 11f2e28846)
2021-04-07 18:10:00 +00:00
android-build-team Robot
e95c0fd0a8 Snap for 7262953 from 1de72903d4 to rvc-qpr3-release
Change-Id: I583350e00ace8e0f841321c386aed6b16885b1dd
2021-04-06 22:04:34 +00:00
Chris Tate
1de72903d4 Merge "DO NOT MERGE - Disallow deletion of channels with FGS notifications" into rvc-dev am: 68a604b920
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13533155

Change-Id: I919b0c3ec34d7c0eb0384a65be961d9191429f1b
2021-04-06 16:49:32 +00:00
Christopher Tate
69a77a4185 DO NOT MERGE - Disallow deletion of channels with FGS notifications am: 8cb7e0a881
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13533155

Change-Id: I16971c6bbbb7db5c8d63249b14d737c9b2867461
2021-04-06 16:49:26 +00:00
Chris Tate
68a604b920 Merge "DO NOT MERGE - Disallow deletion of channels with FGS notifications" into rvc-dev 2021-04-06 16:23:21 +00:00
Chris Tate
ced44641d9 Merge "DO NOT MERGE - Disallow deletion of channels with FGS notifications" into rvc-qpr-dev 2021-04-06 16:22:21 +00:00
Julia Reynolds
1c08e32233 Restrict alarm broadcast
To android only

Test: NotificationManagerTest, NotificationManagerServiceTest
Bug: 175614289
Change-Id: I4f8e56729d90f8f5288d08881129b1c45d5790e7
Merged-In: I4f8e56729d90f8f5288d08881129b1c45d5790e7
(cherry picked from commit abf15b731a)
2021-04-06 14:45:28 +00:00
TreeHugger Robot
44ac913d6c Merge "Rebind InstallSuccess UI on resume" into rvc-qpr-dev 2021-04-06 09:29:16 +00:00
TreeHugger Robot
519f96ccfe Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-04-06 06:10:13 +00:00
Bill Yi
224f68663e Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I70e274cae24244dfd7ced1489a511888aae50751
2021-04-05 21:38:51 -07:00
Bill Yi
bcfcd4018b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ib0cd31b7f0d4267bb80a790d9720a2eee4eeb2ed
2021-04-05 12:58:00 -07:00
android-build-team Robot
fd1311893d Snap for 7256547 from 3a6b247ec0 to rvc-qpr3-release
Change-Id: If544b68af2156503a1eedfe05f197b4c980cca48
2021-04-03 21:04:16 +00:00
Jayant Chowdhary
3a6b247ec0 Merge "getCameraIdListNoLazy : remove system cameras from mTorchStatus as well." into rvc-qpr-dev 2021-04-03 05:50:07 +00:00
android-build-team Robot
8d12f4feae Snap for 7255997 from 1568caedd4 to rvc-qpr3-release
Change-Id: I29d11383e42fed8c4ec053fe54d9e76289d17716
2021-04-03 01:04:21 +00:00
TreeHugger Robot
1568caedd4 Merge "DO NOT MERGE Set focus to PasswordTextView by default." into rvc-qpr-dev 2021-04-02 22:27:37 +00:00
Beth Thibodeau
38bdfc79e3 Merge "Increase maximum allowed size for status bar icons" into rvc-dev am: 4fdf4a5cee
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14054273

Change-Id: I74944f0f56979ed1a1029df066fa1de5663fde87
2021-04-02 22:10:41 +00:00
Beth Thibodeau
b9f3c7138d Merge "Increase maximum allowed size for status bar icons" into rvc-qpr-dev 2021-04-02 21:35:46 +00:00
Beth Thibodeau
4fdf4a5cee Merge "Increase maximum allowed size for status bar icons" into rvc-dev 2021-04-02 21:35:43 +00:00
Beth Thibodeau
6f6c9c22e4 Merge "Sanitize text fields" into rvc-qpr-dev 2021-04-02 21:29:49 +00:00
Jayant Chowdhary
02622abbe2 getCameraIdListNoLazy : remove system cameras from mTorchStatus as well.
Bug: 182530469

Test: Make Emulator back camera system camera; atest FlashlightTest.java

Merged-In: I0a149ba3d93a740cfbfdc2d04c1235e648061156
Change-Id: I0a149ba3d93a740cfbfdc2d04c1235e648061156
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
(cherry picked from commit bedb9950c8)
2021-04-02 18:55:48 +00:00
Sarah Chin
5ccc5d56fb Merge "Update carrier privilege check in enforceSubscriptionPlanAccess" into rvc-qpr-dev 2021-04-02 18:47:36 +00:00
Youngjun Kwak
8ddd24d39d DO NOT MERGE Set focus to PasswordTextView by default.
This ensures that password will be entered reliably programmatically in
CTS.

Bug:183644428
Test: atest CtsWindowManagerDeviceTestCases:KeyguardLockedTests &&
atest CtsWindowManagerDeviceTestCases:MultiDisplayLockedKeyguardTests

Change-Id: I35fa005e4571b150995efe8b0cc07a4556e06619
2021-04-02 00:15:43 +00:00
Sarah Chin
172f15e5e1 Update carrier privilege check in enforceSubscriptionPlanAccess
Remove isEmbedded() check, since this can be called on both PSIM and
ESIM. Replace SM#canManageSubscription with TM#hasCarrierPrivileges,
since it is a superset of the checks done in SM#canManageSubscription
and applies to both PSIMs as well as ESIMS. Updated the documentation
for the two APIs to clarify the differences.

Test: atest CtsTelephonyTestCases (SubscriptionManagerTest)
Fix: 180451446
Change-Id: Icb4e2c619dacaea9e74cedea31865ec1eb689dce
2021-04-01 16:55:50 -07:00
android-build-team Robot
ce6bc5e46a Snap for 7252659 from 3c8e090455 to rvc-qpr3-release
Change-Id: I063534d34426d65b69bb158a1cf3c6c2393f96ca
2021-04-01 22:04:18 +00:00
Beth Thibodeau
bca2b3aeab Increase maximum allowed size for status bar icons
The previous size was causing some apps to crash which otherwise worked
fine. This more closely matches the hard limit in RecordingCanvas
(which we need to stay below to prevent SystemUI from crashing).

Fixes: 182891864
Fixes: 182232777
Bug: 169255797
Test: atest StatusBarIconViewTest
Test: manual - posting notifications with different drawable sizes
Change-Id: I8deacc651e05a202ec980eeb8bcdf4f92daea8eb
(cherry picked from commit 5cd7976f7d)
2021-04-01 18:16:59 +00:00
Beth Thibodeau
001d4e68bb Increase maximum allowed size for status bar icons
The previous size was causing some apps to crash which otherwise worked
fine. This more closely matches the hard limit in RecordingCanvas
(which we need to stay below to prevent SystemUI from crashing).

Fixes: 182891864
Fixes: 182232777
Bug: 169255797
Test: atest StatusBarIconViewTest
Test: manual - posting notifications with different drawable sizes
Change-Id: I8deacc651e05a202ec980eeb8bcdf4f92daea8eb
(cherry picked from commit 5cd7976f7d)
2021-04-01 18:16:52 +00:00
Winson Chiu
f4e71476d7 Rebind InstallSuccess UI on resume
Similar to a previous fix for the main Activity, AlertDialog doesn't
work properly if the UI is set up when it's not visible. To avoid this,
rebind in onResume. A future refactor should clean this up to avoid the
use of AlertDialog.

Bug: 182493158

Test: manual, verify fail/success of steps in linked bug

Change-Id: I6547385900d4c58ed3d113d7d0162c0cb8c20cba
2021-04-01 17:58:50 +00:00
Youngjun Kwak
3c8e090455 Merge "Revert "DO NOT MERGE Remove focus on PasswordTextView"" into rvc-qpr-dev 2021-04-01 17:11:33 +00:00
Miranda Kephart
fe4462eecb Merge "[DO NOT MERGE] Make PendingIntents in screenshots immutable" into rvc-dev am: 637a90a745
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13950908

Change-Id: I8324ef24c628b57df36fb5c856179ed112651652
2021-04-01 15:23:09 +00:00
Miranda Kephart
22945b7673 [DO NOT MERGE] Make PendingIntents in screenshots immutable am: cdd1d2a4fe
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13950908

Change-Id: I78586b52a5b8930a92ae9fcf421f1de5cb2b3e04
2021-04-01 15:23:03 +00:00
Miranda Kephart
1672873e27 Merge "[DO NOT MERGE] Make PendingIntents in screenshots immutable" into rvc-qpr-dev 2021-04-01 14:51:14 +00:00
Miranda Kephart
637a90a745 Merge "[DO NOT MERGE] Make PendingIntents in screenshots immutable" into rvc-dev 2021-04-01 14:51:05 +00:00
Jimmy Chen
62e79738c3 Merge "wifidisplay: restrict broadcast by the proper permission" into rvc-dev am: 3d6cf521c1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13824717

Change-Id: I38dca494da96afdf2932c94914ba6fce412f308e
2021-04-01 02:35:27 +00:00
Jimmy Chen
e851fc58d6 Merge "wifidisplay: restrict broadcast by the proper permission" into rvc-qpr-dev 2021-04-01 01:42:28 +00:00
Jimmy Chen
3d6cf521c1 Merge "wifidisplay: restrict broadcast by the proper permission" into rvc-dev 2021-04-01 01:42:20 +00:00
android-build-team Robot
4d3951d9f1 Snap for 7249461 from 215fe70123 to rvc-qpr3-release
Change-Id: I5096ce883c9065d0d29a2d0957ae57e42dea9fbb
2021-03-31 22:04:31 +00:00
Seigo Nonaka
39c49f8daa Merge "Override isRestricted for preventing unexpected resource loading" into rvc-qpr-dev 2021-03-31 21:53:43 +00:00
Youngjun Kwak
44c4a7496e Revert "DO NOT MERGE Remove focus on PasswordTextView"
This reverts commit 1a96556be5.

Reason for revert: Although it makes sense in terms of UX that the PasswordView need not be highlightable, 
this change caused CTS failures, so we decided to revert this change.

Bug:183644428
Test: atest CtsWindowManagerDeviceTestCases:KeyguardLockedTests && 
atest CtsWindowManagerDeviceTestCases:MultiDisplayLockedKeyguardTests

Change-Id: I57f3d671a7c8430dd02cd7ddb9badbaab242f150
2021-03-31 21:46:23 +00:00
Mady Mellor
215fe70123 Merge "DO NOT MERGE Fix bubbles for workprofile" into rvc-qpr-dev 2021-03-31 16:32:11 +00:00
TreeHugger Robot
a733f7d5fd Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-03-31 16:26:40 +00:00
TreeHugger Robot
168e02b329 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-03-31 16:23:28 +00:00
TreeHugger Robot
2d28697996 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-03-31 16:21:49 +00:00
TreeHugger Robot
b9c74d5f8c Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-03-31 16:21:09 +00:00
TreeHugger Robot
0374c6150f Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-03-31 16:19:59 +00:00