Commit Graph

101081 Commits

Author SHA1 Message Date
Yabin Huang
398cfc71a9 Fix View backward navigation bug
b/147829061 used View id to search for the next backward view. The
problem was that there might be several Views with the same ID in View
hierarchy, so it may return the wrong View with the same ID. To fix
that, ag/10111732 compared the View itself. The idea was right but there
was a bug in that CL. This CL fixed the original bug and the following
bugs.

Fixes: 148545035
Fixes: 148166620
Bug: 147829061
Test: atest TimePickerTest
Test: atest BackwardNavigationTest
Test: atest SpinnerTest
Change-Id: I4ec44f91bbaa86b0f52e10611b91fcceb2588d12
2020-01-31 18:18:27 -08:00
TreeHugger Robot
d6ed35796c Merge "Remove UM.isUserOfType(userHandle) API" 2020-01-30 22:23:40 +00:00
Lee Shombert
64f4df66d9 Merge "Enhance PropertyInvalidatedCache debug" 2020-01-30 22:21:33 +00:00
TreeHugger Robot
abc4e722c9 Merge "Modify setDefaultSmsApplication API" 2020-01-30 21:34:25 +00:00
TreeHugger Robot
dde20309d8 Merge "Notification instance ids in NMS for statsd logs." 2020-01-30 21:33:18 +00:00
Jorim Jaggi
1edbc80971 Merge "Adjust SysUI for new insets" 2020-01-30 21:09:23 +00:00
Andrii Kulian
ad820a0ebd Merge "Deprecate Display#getSize/RectSize/Metrics" 2020-01-30 20:47:02 +00:00
Adam Bookatz
61899e5970 Remove UM.isUserOfType(userHandle) API
isUserOfType is @UserHandleAware, so there is no need for the version
that takes in a userHandle.
(See ag/9259675)

Test: atest UserManagerTest#testProfileTypeInformation
Bug: 139914710
Change-Id: I283900a6c0571c2dd1cdfd96fe7413f32ddb7adf
2020-01-30 11:48:29 -08:00
Mady Mellor
dc7efcc2ce Merge "Make sure we visit the icon URIs of Person objects on Notifications" 2020-01-30 18:57:48 +00:00
Lee Shombert
2f529c13ac Enhance PropertyInvalidatedCache debug
Bug: 140788621

Add the cache name to most debug messages.  The cache name defaults to the
property name but can be overridden.  Overriding the cache name makes the
most sense when multiple caches share a single proprerty.  This function is
only called from inside debug log messages.

Wrap the default invocation of Query.toString() with a cache instance method
that can be overridden.  A cache that uses a simple type (like Integer) for
its Query to provide nicely formatted query strings in the debug logs.  This
function is only called from inside debug log messages.

Test: Created a test build using the hasSystemFeature() binder cache,
overriding cache name and the object query string.

Change-Id: If379ac3e8494e9fef0ff9f5cc5ca0412d02e5502
2020-01-30 10:53:16 -08:00
Makoto Onuki
dafca1e0da Merge "Make Log.wtf() safe to call from within the system server" 2020-01-30 18:50:29 +00:00
Sean Pont
e1aa29db6f Merge "quickaccesswallet: add presubmit tests" 2020-01-30 18:47:21 +00:00
David Su
af50a69388 Merge changes from topic "api-review-removedoublequotes"
* changes:
  SettingsLib: Rename removeDoubleQuotes to sanitizeSsid
  Networking: Rename removeDoubleQuotes to sanitizeSsid
  Wifi: Rename removeDoubleQuotes to sanitizeSsid
2020-01-30 18:16:53 +00:00
Jorim Jaggi
026ed75dbd Adjust SysUI for new insets
- Layout of notif shade is no longer custom, so need to handle
insetsIgnoringVisibility on client.
- Do not special case Keyguard anymore. Just treat it as regular
control target.
- No more special sauce to hide navigation bar on Keyguard.
- Treat it as BEHAVIOR_SHOW_TRANSIENT_BARS_ON_SWIPE but don't
actually do that in DisplayPolicy

Test: InsetsPolicyTest
Test: Lockscreen with PIN
Bug: 118118435
Change-Id: I1edce4fdb792fd97a181165a03957ba5d6d3e551
2020-01-30 18:23:25 +01:00
Will Brockman
cfd983061a Notification instance ids in NMS for statsd logs.
Notification instance IDs are generated by NotificationManagerService
when the notification is first posted, and stored in the
StatusBarNotification so that they can be passed to the SystemUI
process.

Bug: 144022566
Test: atest NotificationManagerService BuzzBeepBlinkTest RoleObserverTest
Test: statsd_testdrive 244
Change-Id: I804786dfa165864257d8801d7e96f2ac0ead960f
2020-01-30 11:35:10 -05:00
Alex Johnston
05956bd77e Modify setDefaultSmsApplication API
* Introduced new logic that allows the profile owner of an
  organization-owned device (COPE PO) to set the default
  SMS application in the personal profile.
* Modified the API to be callable on the parent profile
  instance if called by the COPE PO.
* When called by the COPE PO, the package provided
  must be a system package, otherwise an IllegalArgument
  Exception is thrown.

Bug: 148060194
Test: atest android.admin.cts.DevicePolicyManagerTest#testSetDefaultSmsApplication_failIfNotDeviceOwner
Change-Id: I5b86b10a13064f4ec852631e19f89a80a104dc2b
2020-01-30 15:51:08 +00:00
Daniel Sandler
2f7640449b Merge "Cherry-pick "action chips in share sheet" from qt-qpr1-dev." 2020-01-30 15:39:19 +00:00
Bernardo Rufino
768686b601 Merge "Gate CHANGE_TEXT_TOASTS_IN_THE_SYSTEM on targetSdk 30+" 2020-01-30 10:42:04 +00:00
TreeHugger Robot
61e8374b44 Merge "Add documentation to #onPictureInPictureRequested" 2020-01-30 01:03:03 +00:00
TreeHugger Robot
47c9ac72dd Merge "IME always provides bottom insets, if any" 2020-01-29 23:48:50 +00:00
Makoto Onuki
83679a6c5c Make Log.wtf() safe to call from within the system server
Make sure to use the handler if the caller is the system server

Test: Build / treehugger / manual code inspection
Change-Id: I0c9998511280193d785ebcf7aa501ee02c0a8548
Fix: 148230239
2020-01-29 14:39:53 -08:00
Bernardo Rufino
944121a8d3 Gate CHANGE_TEXT_TOASTS_IN_THE_SYSTEM on targetSdk 30+
Bug: 148438364
Bug: 144152069
Bug: 144754526
Bug: 128611929
Test: atest android.widget.cts29.ToastTest
Test: Verify com.commsource.beautyplus doesn't crash when sharing photo
      (details on b/148438364)

Change-Id: Iea3ffd69c3fd217b993d89020b7ec6c3c32cea15
2020-01-29 22:24:45 +00:00
Mehdi Alizadeh
505fb76065 Adds CACHED shortcuts and methods to retrieve and remove
Adds a new flag to ShortcutInfo to mark it as cached. Also adds new
APIs in ShortcutManager to remove or retrieve a cached shortcut.

Bug: 148084870
Test: atest com.android.server.pm.ShortcutManagerTest1 \
            com.android.server.pm.ShortcutManagerTest2 \
            com.android.server.pm.ShortcutManagerTest3 \
            com.android.server.pm.ShortcutManagerTest4 \
            com.android.server.pm.ShortcutManagerTest5 \
            com.android.server.pm.ShortcutManagerTest6 \
            com.android.server.pm.ShortcutManagerTest7 \
            com.android.server.pm.ShortcutManagerTest8 \
            com.android.server.pm.ShortcutManagerTest9 \
            com.android.server.pm.ShortcutManagerTest10
Change-Id: I859b416ccd4228eec10a436550ff98866a62af66
2020-01-29 22:06:40 +00:00
Rambo Wang
879bc4ae15 Merge "Clear up permission READ_PRIVILEGED_PHONE_STATE." 2020-01-29 22:06:11 +00:00
Jorim Jaggi
23a02a9f67 IME always provides bottom insets, if any
This fixes an issue where IME wasn't visible in landscape with a
cutout, because IME window didn't cover full edge.

Also fix an issue where floating IME didn't work because alpha
was calculated the wrong way.

Test: InsetsSourceTest
Bug: 111084606
Change-Id: I29b7a45cd590a52ecb03f2e539edde57aef4dba3
2020-01-29 21:42:27 +00:00
Jorim Jaggi
abaa904348 Hide IME when loosing control
Because we can't restore IME visibility yet, we update requested
visibility whenever we loose control.

Bug: 111084606
Test: Set password as screen lock, then open status bar while
unlocked.

Change-Id: I476e05dd4ec24b9e4d78ea585e43e698b87b30a5
2020-01-29 21:41:59 +00:00
Sudheer Shanka
5257270180 Merge "Make Context.BLOB_STORE_SERVICE public." 2020-01-29 21:12:55 +00:00
TreeHugger Robot
8dee3654a9 Merge "Require signature scheme V2+ for target SDK R+" 2020-01-29 20:47:00 +00:00
Sergey Volnov
e453dcef3b Merge "Got rid of cancellation signals in the Content Capture Data Sharing" 2020-01-29 20:24:48 +00:00
Simran Basi
71f8a26730 quickaccesswallet: add presubmit tests
Run the CtsQuickAccessWalletTestCases whenever submitting changes
to the quickaccesswallet api.

Bug: None
Test: None
Change-Id: Ide0540c264f958d04b729e1ccc3cb569b1926cd6
2020-01-29 12:22:23 -08:00
Mady Mellor
726df929e1 Make sure we visit the icon URIs of Person objects on Notifications
Test: manual - have bubbles test app with uri based icons, send notifs,
               notice the notifications show pictures of people instead
               of blank spaces & there are no exceptions in the logs
Fixes: 148543216

Change-Id: Idfb7c75d9c5541f2dcebfb0f20daa99f039f4181
2020-01-29 11:51:27 -08:00
TreeHugger Robot
a190c897e9 Merge "Added area info support in cell broadcast service" 2020-01-29 19:29:53 +00:00
Philip Quinn
2116f0e58b Merge "Move ViewConfiguration#AMBIGUOUS_GESTURE_MULTIPLIER to config.xml." 2020-01-29 19:24:53 +00:00
Roshan Pius
cdd9f30708 Merge "Settings: Remove unused WIFI_SAVED_STATE" 2020-01-29 18:59:30 +00:00
Sudheer Shanka
f56f7589bf Make Context.BLOB_STORE_SERVICE public.
Bug: 143559646
Test: atest cts/tests/BlobStore/src/com/android/cts/blob/BlobStoreManagerTest.java
Change-Id: I2ae498803614761f1eab0927ab9e3c77dd65e1a1
2020-01-29 10:52:32 -08:00
jorgegil@google.com
7a926dc674 Add documentation to #onPictureInPictureRequested
Explains how app developers might want to use the new API.

Bug: 148011369
Test: compiles
Change-Id: I87b20de69ea9a30c2cb338cf19db0bd0b971b78a
2020-01-29 10:28:33 -08:00
Artur Satayev
19b1eb087b Merge "Remove unused UnsupportedAppUsage annotations." 2020-01-29 18:20:19 +00:00
Artur Satayev
192ca30b7a Remove unused UnsupportedAppUsage annotations.
The new annotation is android.compat.annotation.UnsupportedAppUsage.

Test: m
Bug: 145132366
Exempt-From-Owner-Approval: previously approved change
Change-Id: Ie12e28eee0ed20b5677ee3162143700813b7ab64
2020-01-29 18:19:45 +00:00
Dmitri Plotnikov
715a1c654b Merge "Add async version of getProviderMimeType" 2020-01-29 17:59:51 +00:00
Alex Johnston
b7fc2ab443 Merge "Update profile owner of org-owned device global restrictions" 2020-01-29 17:51:25 +00:00
Sally Yuen
96b878aada Merge "Implement multi-finger multi-tap gesture matchers for accessibility" 2020-01-29 17:41:28 +00:00
Sergey Volnov
439294404f Got rid of cancellation signals in the Content Capture Data Sharing
Motivation: if the Content Capture service want's to end the session, it
can close the read-fd, while not have finished reading, and that would
result in an exception in the system server, that can later be
propagated to the caller as an error.

Similarly, timeout of the sharing session can be reflected as an error
with a specific error code.

Test: built Android locally and perfomed a manual test.
Bug: 145203958
Change-Id: Iaeb45e0ab68da9fe30dce1ae4eab2354ef56d827
2020-01-29 15:31:00 +00:00
Roshan Pius
c1e0de9740 Settings: Remove unused WIFI_SAVED_STATE
The usage was removed from opt/net/wifi earlier.

Also, cleaned up a bunch of other settings in SettingsProvider
that were previously removed in ag/10080845.

Bug: 141623345
Test: Compiles
Change-Id: I18690ee12d6b701b6f487285e36ca0143244bcfd
2020-01-29 07:19:42 -08:00
TreeHugger Robot
e9437d2ee3 Merge "Implement the necessary methods for identifying the DENY / FORCE_ALLOW causes for logging purposes." 2020-01-29 14:36:21 +00:00
Automerger Merge Worker
36a7559516 Merge "Tidy up module-lib API and locks" am: 98ab83c37d am: 779b5c6ee0 am: 1fc568f878
Change-Id: I4c7039b54aa185447108622b0608689ddf45bc2f
2020-01-29 14:33:36 +00:00
Automerger Merge Worker
fdb676b4dd Merge "Rename ZoneInfoDB -> ZoneInfoDb" am: 402674f2a0 am: c3e31d6ac5 am: f8a4287915
Change-Id: I72978765010e3da52bcdf00299f7ba999bc9201b
2020-01-29 14:33:04 +00:00
Automerger Merge Worker
1fc568f878 Merge "Tidy up module-lib API and locks" am: 98ab83c37d am: 779b5c6ee0
Change-Id: If558e1d5f1a438eedefaae4c8b7f8eda7862ee7b
2020-01-29 14:21:29 +00:00
Automerger Merge Worker
f8a4287915 Merge "Rename ZoneInfoDB -> ZoneInfoDb" am: 402674f2a0 am: c3e31d6ac5
Change-Id: Ib094f9f67112998c82642dd4f8688a75f8b8e0ee
2020-01-29 14:21:11 +00:00
Neil Fuller
779b5c6ee0 Merge "Tidy up module-lib API and locks"
am: 98ab83c37d

Change-Id: I0c136617cef0d23e905757a0b6baf2b7e823212d
2020-01-29 06:19:05 -08:00
Neil Fuller
98ab83c37d Merge "Tidy up module-lib API and locks" 2020-01-29 14:10:18 +00:00