Commit Graph

640958 Commits

Author SHA1 Message Date
Benedict Wong
13ffa97a76 Merge "Allow VcnTransportInfo to be parcelled" am: eecd1d9ca5 am: 3e633b7822
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1686985

Change-Id: Icc63a81c30fb66e433e1a64cf7698b38db71ddb9
2021-04-28 02:30:14 +00:00
Shan Huang
c53f8c1851 Avoid triggering ripple repeatedly by adding debounce with an exponential falloff.
Bug: 186426146
Bug: 184912594
Test: Manual. WiredChargingRippleControllerTest.
Change-Id: I132e7557f805d338e7051ccdb96223c15d2711a1
2021-04-28 10:29:37 +08:00
TreeHugger Robot
f3b5218808 Merge "Prevent caching unexpected IME status while showing keyguard in split" into sc-dev 2021-04-28 02:27:46 +00:00
Treehugger Robot
2bf2f964d7 Merge "Expose parsing util methods for telephony validation" am: 5092ae8c8b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1665959

Change-Id: I5470517a08a3f7662bd627c00dc30c8f3325fe3b
2021-04-28 02:25:54 +00:00
TreeHugger Robot
d582f3d1c3 Merge "Clarify ISB sign in Javadoc" into sc-dev 2021-04-28 02:24:54 +00:00
Yohei Yukawa
a35ebcf88e Fix stale EditorInfo upon EditText#setText()
This is a follow up to our previous CL [1], which added initial
surrounding text support into EditorInfo and let TextView support it.

What we overlooked was that calling TextView#setText() would trigger

  TextView#onCreateInputConnection()

before TextView#mText is updated to the new value.  As a result,
EditorInfo is initialized with a stale surrounding text information.

With this CL, EditorInfo will correctly be initialized with the new
text specified to TextView#setText().

One complicated thing in this CL is InputMethodManager also has some
issues about how to drop spurious

  InputMethodService#onUpdateSelection()

while InputConnection is being replaced with a new instance.  I ended
up having to introduce a hacky boolean

  Editor#mHasPendingRestartInputForSetText

to work around this in the TextView/EditText. This workaround is
expected to be removed/revisited as part of Bug 186582769.

 [1]: Ie04f2349b1157408aa8ed9044aea12ce99132cb4
      c486acc4d2

Fix: 161330778
Test: atest CtsInputMethodTestCases:EditTextImeSupportTest
Change-Id: Iee3b754eea319861b2eb955d6cc95ba13006b55e
2021-04-27 19:20:16 -07:00
Benedict Wong
5bf42637a8 Merge "Set safe mode alarm when validation reports NOT_VALID" am: 19be41cb30
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1689285

Change-Id: Iea21381ebcda5f4cf1487374fd43b0cc4f64b1c4
2021-04-28 02:18:02 +00:00
Benedict Wong
3e633b7822 Merge "Allow VcnTransportInfo to be parcelled" am: eecd1d9ca5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1686985

Change-Id: I6eb37e9cce547246402dc24563ecb99ec29dd690
2021-04-28 02:13:43 +00:00
Julia Reynolds
3dfc4cd498 Merge "Notifs need small icons to be in the notif history" into sc-dev 2021-04-28 02:06:28 +00:00
Treehugger Robot
5092ae8c8b Merge "Expose parsing util methods for telephony validation" 2021-04-28 01:57:08 +00:00
Benedict Wong
19be41cb30 Merge "Set safe mode alarm when validation reports NOT_VALID" 2021-04-28 01:47:08 +00:00
Benedict Wong
eecd1d9ca5 Merge "Allow VcnTransportInfo to be parcelled" 2021-04-28 01:42:55 +00:00
Treehugger Robot
a9f72d3074 [automerger skipped] Merge "Specify UID in getAuthenticatorIds" am: 47f27e64c0 am: f6bbf126d3 am: 0506e4eb20 -s ours
am skip reason: Merged-In I0eef28ecefb85f1c10a73a354d08c38087d59814 with SHA-1 91bb4412f7 is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1687049

Change-Id: I3e64c03c2f5f3c6d09342fa423225ef19dc2c4bc
2021-04-28 01:31:39 +00:00
Jackal Guo
ed537a2acf Move new changes to ParsingPackageUtils
PackageParsers is marked as Deprecated so any new change should be
in the alternative. Moving the new activity launch mode definition
to ParsingPackageUtils.

Bug: 174723245
Test: atest IntentTests
Change-Id: I841f9d9d5d5555a78902cc3c126ed811dd2ccfc6
2021-04-28 09:30:14 +08:00
cecilia
4195d87b48 Init MediaHost with KeyguardMediaController's initialization, not wait until the controller is attached.
This fixes the bug where media control doesn't show on lock screen. This is because the instance of MediaHost being added as MediaDataManager.Listener is not the same instance the KeyguardMediaController holds. Init media host during the controller's initialization instead of attach fixes this issue.

Fixes: 185510540
Test: Studio builds
Change-Id: I821b97efe0558c09dcab4497e5043c744d82a9e1
2021-04-28 01:27:56 +00:00
Li Li
e5e92aee86 Merge "Exempt apps with INSTALL_PACKAGES from freezer" into sc-dev 2021-04-28 01:26:42 +00:00
Joe Bolinger
7ca96381ad Fix oneway complaints for face auth.
Bug: 186047141
Test: adb logcat -s Binder:E -e "IFace.*getSensorProps" (is blank)
Change-Id: I95006e0c2c0048bbaac2a114ab85ae4702a43662
2021-04-27 18:15:34 -07:00
Treehugger Robot
0506e4eb20 Merge "Specify UID in getAuthenticatorIds" am: 47f27e64c0 am: f6bbf126d3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1687049

Change-Id: I1946e8847ac8a72a69664a8b8f1ffebc7ce0c0b4
2021-04-28 00:55:11 +00:00
Hai Zhang
8d701c3a8e Filter package visibility in getAllPermissionGroups().
Bug: 186113411
Test: manual
Change-Id: Iede835dc2fd22fdbd22dcb2c8dff662d8ffc0221
2021-04-28 00:52:47 +00:00
Hai Zhang
4756081329 Filter package visibility in queryPermissionsByGroup().
Bug: 183121510
Test: manual
Change-Id: I48a0b62be696174bca22b7de003849baa83c0534
2021-04-28 00:47:56 +00:00
Bill Lin
6b7167d88a 1/ Add ONE_HANDED_MODE_ACTIVATED secure settings for shortcut
A new requirement to add A11y shortcut for One Handed Mode feature

- The shortcut action is enter or exit one handed mode
- ONE_HANDED_MODE_ACTIVATED = 0 /* false */ : STATE_NONE
- ONE_HANDED_MODE_ACTIVATED = 1 /* true */  : STATE_ACTIVE

Compare to enabled or disabled (ONE_HANDED_MODE_ENABLED)
- ONE_HANDED_MODE_ENABLED = 0 /* false */ : Disable function
- ONE_HANDED_MODE_ENABLED = 1 /* true */  : Enabled function

Test: manual
Test: make
Bug: 182425480
Change-Id: Iee911631a6734af7eb742e1206d2b9b75b694969
2021-04-28 00:44:45 +00:00
Treehugger Robot
f6bbf126d3 Merge "Specify UID in getAuthenticatorIds" am: 47f27e64c0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1687049

Change-Id: I9b81131c4f59d6855c83947003f70e59ab818f6f
2021-04-28 00:39:36 +00:00
Benedict Wong
913ae2b89b Allow VcnTransportInfo to be parcelled
Allows VCN transport info to be parcelled for purposes of sysUI

Bug: 186025257
Test: atest FrameworksVcnTests
Change-Id: I5a5d9b88659c8dcaa9ded16d491b2bac0529169a
2021-04-27 17:35:44 -07:00
Treehugger Robot
47f27e64c0 Merge "Specify UID in getAuthenticatorIds" 2021-04-28 00:24:12 +00:00
Kyunglyul Hyun
ae983d49ab Clean up Session2Record in MCS
This CL cleans up how MediaCommunicationService
manages Session2Record instances.

It removes unnecessary codes and refactor locks.
It also adds/clean up tests for MCM.SessionCallback.

Bug: 183289655
Bug: 182907935
Test: atest MediaCommunicationManagerTest 10 times
Change-Id: Iff4643c7dc207ea14c752bdfb815598dc34f2368
2021-04-28 00:18:11 +00:00
Kweku Adams
b2fa0cabc1 Note that user engagement replenishes EJ quota.
Make sure developers are aware that user interaction will replenish EJ
quota so they are less concerned about running out of quota for valid
use cases.

Bug: 171305774
Test: N/A
Change-Id: Iec231522dbc7fe83c65956b59ca3e4fbda072b97
2021-04-27 17:10:55 -07:00
TreeHugger Robot
1700fa9e5c Merge "Reduce animation completion epsilon to avoid early end." into sc-dev 2021-04-28 00:08:30 +00:00
Pinyao Ting
6238026ca6 disable ShortcutService logging to avoid spam
Bug: 186583198
Test: manual
Change-Id: Ibb41f8ad947b3d7ca7d84f4cb92608a15e3681ec
2021-04-27 17:01:37 -07:00
Mady Mellor
495b7069c6 Fix duplicate bubbles in the overflow
* If something was added to the overflow that was already there
  make sure to remove it from the list first
* Did this in data & in update adapter to be safe

Bug: 181890793
Test: atest BubbleDataTest
Change-Id: I2a576911e0f3791768536f4a866d7174f55a0a2d
2021-04-27 17:00:44 -07:00
Beth Thibodeau
819ec8aeaf Updated layout for more compact player
- App icon is now on the corner of album art
- Small player is condensed, with smaller art
- No album art will instead show a fallback view with device icon
- Device name shows in output switcher
- Adjusted colors and dimens to match spec
- Fixed bug where too many compact actions could be shown

Test: visual
Test: atest com.android.systemui.media
Bug: 176177555
Bug: 182292357
Change-Id: I56ec5c5f1188f7547b6e74a2f9bf8d1ad2ee21e4
2021-04-27 19:58:45 -04:00
Julia Reynolds
1d52698759 [automerger skipped] Merge "Restrict alarm broadcast" into oc-mr1-dev am: 3b0fc6bd38 am: d749dc3510 am: fd89965284 am: 90ef2704fa -s ours am: 2a061f2e25 -s ours am: d295decb53 -s ours am: 81285249e8 -s ours
am skip reason: Merged-In I4f8e56729d90f8f5288d08881129b1c45d5790e7 with SHA-1 7dfcfe85ae is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14103469

Change-Id: Id956de36d4be564daa5d640a9f3d7c638eb43f68
2021-04-27 23:36:08 +00:00
Louis Chang
14a3750385 [automerger skipped] Detects all activities for whether showing work challenge am: 6820d70823 -s ours am: 1c750cd367 -s ours am: b64eddc2c9 -s ours am: aecf7c267d -s ours am: 6adacfab63 -s ours am: 99f54b9b9e -s ours am: 2d9b1f63b4 -s ours
am skip reason: Merged-In I5e09b09be547d04fdfd709cb9cd4bcd4a94bbf21 with SHA-1 69b3a3cd04 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14186075

Change-Id: I7bb711a91b6512cd94991f26f95b7bbe9b8046f3
2021-04-27 23:35:35 +00:00
Louis Chang
641712de55 [automerger skipped] Detects all activities for whether showing work challenge am: fe5e1432cf -s ours am: 850810d0fd -s ours am: 62c71ab0fd -s ours am: dcb100da76 -s ours am: eccd031f5c -s ours am: 38d80ad9a1 -s ours
am skip reason: Merged-In I5e09b09be547d04fdfd709cb9cd4bcd4a94bbf21 with SHA-1 69b3a3cd04 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14188081

Change-Id: Ia4b7c9650a4513ec84d6f26761d6aab423cef9fc
2021-04-27 23:35:05 +00:00
Louis Chang
ace05c8ff6 [automerger skipped] Detects all activities for whether showing work challenge am: 69b3a3cd04 am: d5c18447be -s ours am: 82fa6e3769 -s ours am: bf62b6bfb1 -s ours am: 7ffc0c0efb -s ours
am skip reason: Merged-In I5e09b09be547d04fdfd709cb9cd4bcd4a94bbf21 with SHA-1 69b3a3cd04 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14182408

Change-Id: Ic8d96ad232a6e3517025d16ce7b93841af86cfdb
2021-04-27 23:34:15 +00:00
Beth Thibodeau
7ca9693016 Merge "Increase maximum allowed size for status bar icons" into pi-dev am: d17b979843 am: e219886035 am: b0d6e6cd57 am: b32d4d538b am: 8b9f71550c am: c00bb8af95
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14054747

Change-Id: I2548b4924b02c676849b53857337ac00ded725a9
2021-04-27 23:33:43 +00:00
Chris Tate
17764cc52e [automerger skipped] Merge "DO NOT MERGE - Disallow deletion of channels with FGS notifications" into oc-mr1-dev am: 6cc887c00d -s ours am: 2bec84a794 -s ours am: 9cd02f1d7f am: 22feb668e8 -s ours am: 91fbccc817 am: 18252b299b am: e5f2ad1203 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13779450

Change-Id: I1d1a18dfd3e30c420e89f516a1a881a2d89252c5
2021-04-27 23:33:13 +00:00
Chris Tate
4dbd550f23 [automerger skipped] Merge "DO NOT MERGE - Disallow deletion of channels with FGS notifications" into pi-dev am: 1735cdeea4 -s ours am: 76a15c06f4 -s ours am: e0a844da8b -s ours am: eff05e86d3 -s ours am: 79ba5701cd -s ours am: f5e46bc7ae -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13743878

Change-Id: I456528593b489811482201bc848cdbddf1bdb3a5
2021-04-27 23:32:54 +00:00
Chris Tate
748e7dec5b [automerger skipped] Merge "DO NOT MERGE - Disallow deletion of channels with FGS notifications" into qt-dev am: 7b0067c950 am: 05dd5f18e3 -s ours am: 0dbc306379 -s ours am: 3201b6ee34 -s ours am: 17babeb9f1 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13728411

Change-Id: Ie895afc3a6d22285d84dbf1a55bf5b01b117b48f
2021-04-27 23:32:28 +00:00
Christopher Tate
359d27b5fa [automerger skipped] DO NOT MERGE - Disallow deletion of channels with FGS notifications am: 88380a00d5 am: 3c507386ca -s ours am: 11f4032b5e -s ours am: 45c4c9f1ec -s ours am: f8930138a5 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13728411

Change-Id: Ie53418a4a5f0b87e3ab028bfceca72ec0ee8e7bd
2021-04-27 23:32:20 +00:00
Beth Thibodeau
35f8a437ff Increase maximum allowed size for status bar icons am: 8875da5207 am: cc35c516df am: 39ecfe9aed am: 8d4ac0f225 am: c7930c4045 am: 3fe3d51c13 am: 79b5cd398e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14033398

Change-Id: Iace41e8adde2980509d34ba131f8ab7c8ebf285f
2021-04-27 23:31:59 +00:00
Beth Thibodeau
6b9a13ab3f Increase maximum allowed size for status bar icons am: 92106a58df am: fcd571f060 am: eded1d8a7c am: c2d3f9f067 am: 4b6f8b11b8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14053514

Change-Id: I0c8fe9f92c30b059deecdfe0d8e13436405ab4f4
2021-04-27 23:31:43 +00:00
yawanng
f703fcc5d8 [automerger skipped] Adds caller check to getAllPackages() am: 264dea63b0 -s ours am: 2f4ff31a2e -s ours am: e57bd828a9 -s ours am: 4c38925244 -s ours am: 0abf7eb3eb -s ours am: 9f4677d532 -s ours
am skip reason: Merged-In I77460ae19a4d41151577646441f11e2eddbb741a with SHA-1 9b694ef4d4 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13856278

Change-Id: I347d0e14d5b7ac4d061111cdb433d1d83acd3b52
2021-04-27 23:31:30 +00:00
Patrick Baumann
162968ed5d [automerger skipped] Revert "Adds caller check to getAllPackages()" am: 8d900812b7 -s ours am: 2db12a46a9 -s ours am: d1c3879708 -s ours am: 3a5b3f8a88 -s ours am: 7733b7b06c -s ours am: 879252343f -s ours
am skip reason: Merged-In I77460ae19a4d41151577646441f11e2eddbb741a with SHA-1 9b694ef4d4 is already in history. Merged-In was found from reverted change.

Reverted change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13618271

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13856274

Change-Id: If6fcff3c0110877976809c4bd2a0e56819b20cfe
2021-04-27 23:31:12 +00:00
TreeHugger Robot
9d3006edc9 [automerger skipped] Merge "Revoke storage on SDK downgrade or new full storage request" into qt-dev am: d035f1b963 am: dcbef79eb9 -s ours am: 130459160f -s ours am: a32c50e74a -s ours am: 1acdd91bb1 -s ours
am skip reason: Merged-In Ia6bd5658b77a26ab15fea013ec875050457473e0 with SHA-1 ed2ff0f5da is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13546393

Change-Id: I9718fa4ab4cff439992314f438da6cf622ba5318
2021-04-27 23:30:37 +00:00
TreeHugger Robot
20423842ec Merge "Limit maximum allowed size for a status bar icon" into oc-mr1-dev am: 7e6da1776d am: a9aaed5d47 am: cdbee965a7 am: 71f344b36a am: 45d5be1254 am: c3b709e513 am: d9f80447ce
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13430253

Change-Id: I99a0bbcf1073135fadd06b3a5bd3b6e176d49b48
2021-04-27 23:30:13 +00:00
Beth Thibodeau
7b88fe7866 Merge "Limit maximum allowed size for a status bar icon" into qt-dev am: 81a7a760c8 am: 6540ebaf5c am: 2bb50aba75 am: ca77f64eb7 am: aac399076a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13430605

Change-Id: I807c73f3aa595e5986c7db2b82de509cc9063d63
2021-04-27 23:29:17 +00:00
Beth Thibodeau
9c177090e3 [automerger skipped] Merge "Limit maximum allowed size for a status bar icon" into pi-dev am: ed7118d8bf am: 04043de40c am: c7731486df -s ours am: bc6f5f8bf8 am: f0aac434b9 am: 1eb3fe714c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13430565

Change-Id: I5d4ec0fd170d2d437f2cf3c4b22bf2a2d3d3de6e
2021-04-27 23:27:58 +00:00
Julia Reynolds
81285249e8 [automerger skipped] Merge "Restrict alarm broadcast" into oc-mr1-dev am: 3b0fc6bd38 am: d749dc3510 am: fd89965284 am: 90ef2704fa -s ours am: 2a061f2e25 -s ours am: d295decb53 -s ours
am skip reason: Merged-In I4f8e56729d90f8f5288d08881129b1c45d5790e7 with SHA-1 4056976f1e is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14103469

Change-Id: Ib3d64c4c1b8927625b3f99ebb2280df1d25e2a9a
2021-04-27 23:16:14 +00:00
Louis Chang
2d9b1f63b4 [automerger skipped] Detects all activities for whether showing work challenge am: 6820d70823 -s ours am: 1c750cd367 -s ours am: b64eddc2c9 -s ours am: aecf7c267d -s ours am: 6adacfab63 -s ours am: 99f54b9b9e -s ours
am skip reason: Merged-In I5e09b09be547d04fdfd709cb9cd4bcd4a94bbf21 with SHA-1 69b3a3cd04 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14186075

Change-Id: I1b60d3b7415d6a2ff8cfb881ab73b38d31ed5870
2021-04-27 23:15:49 +00:00
Louis Chang
38d80ad9a1 [automerger skipped] Detects all activities for whether showing work challenge am: fe5e1432cf -s ours am: 850810d0fd -s ours am: 62c71ab0fd -s ours am: dcb100da76 -s ours am: eccd031f5c -s ours
am skip reason: Merged-In I5e09b09be547d04fdfd709cb9cd4bcd4a94bbf21 with SHA-1 69b3a3cd04 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14188081

Change-Id: Ifb4f93f21ac36d850f6a45e6f45c9a907a14351d
2021-04-27 23:15:27 +00:00