Commit Graph

640958 Commits

Author SHA1 Message Date
Todd Kennedy
26a5186ab1 Merge "PackageParser OWNERS noparent" 2021-04-28 21:28:50 +00:00
Ilya Matyukhin
7f31764574 Split onPointerDown to onPointerDown and onUiReady
Previous behavior:
1. Detect a valid touch.
2. Enable HBM.
3. Notify the HAL about onPointerDown when HBM is enabled.

New behavior:
1. Detect a valid touch and report onPointerDown right away.
2. Enable HBM.
3. Notify the HAL about onUiReady when HBM is enabled.

Bug: 184361899
Test: atest UdfpsControllerTest
Test: on device
Change-Id: I48aa3945902a8ca151aabe61a5e71e910773bd88
2021-04-28 14:25:03 -07:00
Lucas Dupin
7a63715b1c Remove legacy QS background
Bug: 186117823
Test: manual
Test: atest ScrimControllerTest
Change-Id: I96cbe9bc61e17256a9a9e7a41b5053c7e60591f0
2021-04-28 14:19:38 -07:00
Julia Reynolds
eaf40f342d [automerger skipped] Restrict alarm broadcast am: f1e84b42b1 -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/+/14103468

Change-Id: If58dd4cc98f8ac2066b79f274e99a0a5169c0d9a
2021-04-28 21:18:10 +00:00
Yi Jiang
424b267ef9 Merge "Cleans up lagecy annotations" into sc-dev 2021-04-28 21:15:18 +00:00
Jeff Sharkey
8d1d972856 Merge "Preserve legacy permission check behavior." into sc-dev 2021-04-28 21:10:07 +00:00
Lucas Dupin
56b401709b Internal graphics package owners
Bug: 186640057
Test: none
Change-Id: I59af9cbaa0fbc1b3206b9b3d852e845413aa9e71
2021-04-28 14:09:00 -07:00
Ben Lin
cabb4a0317 Merge "PiP: Add ResizeGestureHandlerTest." into sc-dev 2021-04-28 20:59:04 +00:00
Kweku Adams
a5d30fba66 Merge "Add "restricted" to help command." into sc-dev 2021-04-28 20:55:10 +00:00
Suprabh Shukla
a8e003f538 Recording alarm removal reasons for debugging
If an alarm is removed from the service for some reason, the bugreport
contains no useful information about it. Recording the last 10 removes
with their reason. For now, the set of reasons includes:
 - Data cleared on the calling app.
 - App requested to cancel it.
 - Exact alarm permission revoked.
 - PendingIntent used to set the alarm was cancelled.
More reasons can be added as seen useful in the future.

Test: adb shell dumpsys alarm
atest FrameworksMockingServicesTests:com.android.server.alarm
atest CtsAlarmManagerTestCases

Fixes: 184677899
Change-Id: I9d67b90572b5d731ad5d224ae7d537ae176508d5
2021-04-28 13:51:08 -07:00
Ryan Mitchell
13587931e5 Synchronize native ApkAssets data
If an ApkAssets is created and destroyed before being put into an
AssetManager, the native layer may not have been synchronized in the
thread that does Java object finalization. So when the Java object gets
deleted on the finalization thread, it may see old/unallocated native
data and not delete the native object correctly.

Similar to how we already lock on the native AssetManager whenever
entering the JNI layer, we should also do the same for ApkAssets.

Bug: 186528775
Test: boot and no crashes
Change-Id: I5fcb9e788a9e3cb8baeb92fa6efc882d5bbbf0b0
2021-04-28 13:34:13 -07:00
Treehugger Robot
d22bbdfc19 Merge "Change the brackets in Arabic keyboard layout." am: 48144472ff am: b7ae4468fb am: f546892ff4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1688784

Change-Id: Id3a8155e45de0d6f2f800878521386e3faecda1c
2021-04-28 20:27:24 +00:00
Paul Crowley
0809d53d07 Merge changes from topic "biometric-unlocked-required" am: c36995ec84 am: cf5f4d6cbf am: 9c975f2335
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1671106

Change-Id: I2c7e8050ca82f81ca865a76bd11a39d82eb09dcc
2021-04-28 20:26:08 +00:00
Jeff Sharkey
fe738fbd0d Restore file truncation where expected.
Several years ago ParcelFileDescriptor.parseMode() was fixed to match
the behavior of fopen(), since developers expect consistent behavior
between managed and native code.  FileUtilsTest.testTranslateMode()
verifies that all these modes are correctly translated.

However, this unintentionally changed the behavior of
ContentResolver.openOutputStream(), which only sends the 'w' mode
to the remote process.  Developers expect this API to behave like
the FileOutputStream constructor, which always truncates the file
unless opened with the append mode.

Since some remote providers may not be prepared to handle the 't'
mode, this change carefully uses Os.ftruncate() to restore this
expected behavior in all cases.

For other APIs that return opened files, this strategy is applied
to restore the original behavior, but only when the target SDK of
the app is expecting this truncation to take place.  The reason for
this is that moving forward our goal should always enable
ContentInterface APIs to be a transparent conversation between apps
without attempting to alter the behavior.  Apps talking with older
providers can apply the Os.ftruncate() logic themselves, if
desired, once they target Android Q or higher.

Bug: 157888856, 180680924
Test: atest CtsContentTestCases:ContentResolverTest
Change-Id: Iacec49164c4ce3891db0270635e9f458dea7becd
2021-04-28 14:25:46 -06:00
Yifan Hong
3be17c6711 Merge "AndroidRuntime.h: do not include IBinder.h" am: 92bd842472 am: 5d5581dc96 am: a4f89e68a6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1687048

Change-Id: Ie7ee4b276c0bcc682128fec3b9cd52dedf9ce5cf
2021-04-28 20:25:40 +00:00
Tracy Zhou
4c42d815c1 Add onSwipeToHomeFinished to OverviewProxyListener
So that game dashboard can listen to it

Fixes: 182500083
Test: manual
Change-Id: I367c1ead84152bddab01fa9472f3ad3fbcf8fe38
2021-04-28 13:24:59 -07:00
Andrei-Valentin Onea
cfb5663717 Merge "Replace source based system server stubs" am: e93cf9e566 am: fef2035b4f am: d2a270b4e0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1642060

Change-Id: I7208c8e14772a8b5ef5c090fb3913973d9350a3a
2021-04-28 20:22:58 +00:00
Tyler Gunn
5ea5afff1e Remove deprecated at birth DiagnosticCall class.
This was left in place for Google3 compatibility during development; this
is no longer required as the usages have been cleaned up.

Test: Build / run CTS
Fixes: 186659702
Change-Id: Ib386c3f9912870b11b1a37863dccfa9d3b5cb7a9
2021-04-28 13:15:30 -07:00
Dave Mankoff
64893151ce Close QS Detail before hiding QS.
Bug: 186656744
Test: manual
Change-Id: Ibe314260c946ca4c2a636654c71a40ff331cf838
2021-04-28 16:08:18 -04:00
Fabian Kozynski
a3a8f663dd Merge "Use full top padding even in HorizontalLayout" into sc-dev 2021-04-28 19:59:15 +00:00
Beth Thibodeau
bc7539ed71 Update power menu text
Marquee for long text and increase size to match spec

Fixes: 186005103
Fixes: 185673140
Test: visual
Change-Id: I50774cc06f75f420baab78dc51328a2bdfae14bc
2021-04-28 15:54:52 -04:00
Treehugger Robot
f546892ff4 Merge "Change the brackets in Arabic keyboard layout." am: 48144472ff am: b7ae4468fb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1688784

Change-Id: I846bf1183066c2223c5ff41c8bd2ddfd89c73288
2021-04-28 19:52:34 +00:00
Paul Crowley
9c975f2335 Merge changes from topic "biometric-unlocked-required" am: c36995ec84 am: cf5f4d6cbf
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1671106

Change-Id: I47281e410de8edf621836a501596419ea0cc1d7c
2021-04-28 19:51:56 +00:00
Yifan Hong
a4f89e68a6 Merge "AndroidRuntime.h: do not include IBinder.h" am: 92bd842472 am: 5d5581dc96
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1687048

Change-Id: I5caed327131ff8c9f589046d05e42ff3f5998529
2021-04-28 19:51:05 +00:00
Andrei-Valentin Onea
d2a270b4e0 Merge "Replace source based system server stubs" am: e93cf9e566 am: fef2035b4f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1642060

Change-Id: I7cb9f20139da99292954aa42985d1a7fcb1dc78e
2021-04-28 19:49:38 +00:00
Treehugger Robot
b7ae4468fb Merge "Change the brackets in Arabic keyboard layout." am: 48144472ff
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1688784

Change-Id: I65121f1590d7f93db73b4a3d360b7ae9efed9d40
2021-04-28 19:37:37 +00:00
Fabian Kozynski
99ef33fe9c Merge changes I0fd62164,Iaa0f8de2,Id81aa3c7 into sc-dev
* changes:
  Add animation for tiles second line
  Simplify animation code
  Fix credit card animation
2021-04-28 19:33:44 +00:00
Silin Huang
3984cd40a6 WalletTile should display the default card of wallet.
Also a few polish:
1. update the tile icon.
2. do not use ActivityStarter to launch wallet activty when cards exist.

Fix: 185579396
Test: manual
Test: atest
Change-Id: I1ddc938f600708fc88fd9217d2286d3c273e6f72
2021-04-28 19:26:48 +00:00
Paul Crowley
cf5f4d6cbf Merge changes from topic "biometric-unlocked-required" am: c36995ec84
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1671106

Change-Id: I1bcdf2d01a8f4b81f1ebdc0e475db461c390bda6
2021-04-28 19:23:40 +00:00
Evan Severson
56c522bdef Fix pin requirement for sensor toggle dialog
Test: Manual, both unlocked and locked, and with/wihout pin
Fixes: 186661436
Change-Id: I84eb3d5d963d8cabc57d5be8b524bbdefed9241d
2021-04-28 12:18:11 -07:00
Jeff DeCew
de939e6572 Merge "Increase the maximum height of notifications by 20%" into sc-dev 2021-04-28 19:16:08 +00:00
Yifan Hong
5d5581dc96 Merge "AndroidRuntime.h: do not include IBinder.h" am: 92bd842472
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1687048

Change-Id: Iee1fa3cb4d9c9218f7ca6ada40381b0bf16f14b1
2021-04-28 19:12:34 +00:00
Andrei-Valentin Onea
fef2035b4f Merge "Replace source based system server stubs" am: e93cf9e566
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1642060

Change-Id: I47d9f82d88e534f0d5eed17440f8be6e5798e7e5
2021-04-28 19:08:49 +00:00
Nikita Dubrovsky
b3a2e3f34c Expose test APIs on ContentInfo and add CTS coverage
Bug: 183643556
Test: atest CtsViewReceiveContentTestCases:ContentInfoTest
Change-Id: I65e8fbab27433584590366292ed79d230c1b95e5
2021-04-28 11:55:49 -07:00
Treehugger Robot
48144472ff Merge "Change the brackets in Arabic keyboard layout." 2021-04-28 18:34:43 +00:00
Beth Thibodeau
6848213106 Merge "Updated layout for more compact player" into sc-dev 2021-04-28 18:32:01 +00:00
Beverly
c8410aa9c2 Animate clock weight to 0 on bypass face auth
Test: manual
Fixes: 186631254
Change-Id: Ib9ceb4c23c06717404845535ee86987d7f43686f
2021-04-28 14:31:27 -04:00
Taran Singh
11472f70b4 Add log for showSoftInput called from Insets API
Add a debug log to identify calls to showSoftInput from Insets API.

Fix: 1865976
Test: manually using steps:
      1. Use an app like launcher that uses Insets API to show IME.
      2. dump using adb shell dumpsys input_method
      3. Verify log.
      4. use another app that shows IME using showSoftInput like gmail
      5. verify the log

Change-Id: I6ba0d3f7912855f31e033735557b44eeed3e6652
2021-04-28 18:30:25 +00:00
Paul Crowley
c36995ec84 Merge changes from topic "biometric-unlocked-required"
* changes:
  Tell keystore which SIDs can unlock this user
  Use UserHandle.myUserId() to look up user
2021-04-28 18:29:31 +00:00
Mady Mellor
b97a4cb691 Hide the manage menu when switching to overflow
Test: manual - open a bubble, tap the 'manage' button
             - tap the overflow
             => observe that the manage menu is hidden smoothly &
                then the overflow is shown
Fixes: 185263101
Change-Id: I1703db6c5eacdec6eaab7bdebac9a910cd0ccfa9
2021-04-28 18:29:20 +00:00
Pinyao Ting
bbc19b03c2 Consolidate shortcut usage report api.
In S, to simplify shortcut usage report, calling pushDynamicShortcut now
leads to usage report so that developer only needs to deal with one api.

Bug: 151359749
Test: atest ShortcutManagerTest1 ShortcutManagerTest2
ShortcutManagerTest3 ShortcutManagerTest4 ShortcutManagerTest5
ShortcutManagerTest6 ShortcutManagerTest7 ShortcutManagerTest8
ShortcutManagerTest9 ShortcutManagerTest10 ShortcutManagerTest11
Test: atest CtsShortcutManagerTestCases

Change-Id: Ib7b0de0c8343475c2e09078240a87f9b29d55880
2021-04-28 11:19:38 -07:00
TreeHugger Robot
6f46df2512 Merge "Add string that can be used for translation a11y." into sc-dev 2021-04-28 18:01:52 +00:00
Kweku Adams
f63be09217 Add "restricted" to help command.
Add the restricted keyword to the set-standby-bucket help command
options.

Bug: 145551233
Test: `adb shell am help`
Change-Id: I6cd5c52b29ff7431f340aa46a50210ecc9f2952a
2021-04-28 10:54:05 -07:00
Joe Bolinger
9338f70ddd Merge "Fix oneway complaints for face auth." into sc-dev 2021-04-28 17:49:59 +00:00
Michal Brzezinski
994722522e Removing unnecessary QuickSettings clip bounds in split shade
Fixes: 186635452
Test: manual
Change-Id: I6a5ca593e32c2f01f53e0d40b86ab8e922dbf47c
2021-04-28 17:48:16 +00:00
Curtis Belmonte
e39cc9a1db Send AIDL face enrollment frame info to clients
Test: Manually tested grid and traffic light face enrollment

Bug: 181374571
Change-Id: If742c6c32547d56be417d4eb0cbb729ed90552a5
2021-04-28 10:41:52 -07:00
Mihai Nita
75256231b5 Update Android language picker with all eligible languages
Test: manual - built, added each new locale to preferences
Bug: 182087683

Change-Id: Ibb21aeb921c02f2d5474424bd9ac1cda7e5d74ca
2021-04-28 10:41:10 -07:00
Alex Johnston
fc35f82082 Disable security and network logging COPE
* When the COPE work profile is removed, security
  and network logging should be stopped and removed.

Manual testing
* Set up device in COPE mode
* Enable network logging and security logging
  using TestDPC
* Add debugger breakpoint in DPMS.wipeData
* Select 'Remove work profile' in TestDPC
* Verify DPMS SecurityLogMonitor has been stopped
* Verify DPMS NetworkLogger is null

Bug: 182453624
Test: manual testing
Change-Id: I62df832023f12620e936b49240ecdb1cc2a722f5
2021-04-28 17:40:57 +00:00
Julia Reynolds
f1e84b42b1 Restrict alarm broadcast
To android only

Test: NotificationManagerTest, NotificationManagerServiceTest
Bug: 175614289
Change-Id: I4f8e56729d90f8f5288d08881129b1c45d5790e7
Merged-In: I4f8e56729d90f8f5288d08881129b1c45d5790e7
(cherry picked from commit abf15b731a)
(cherry picked from commit 4056976f1e)
2021-04-28 17:35:03 +00:00
Pinyao Ting
e6d38dbfa6 Merge "disable ShortcutService logging to avoid spam" into sc-dev 2021-04-28 17:34:08 +00:00