Commit Graph

100441 Commits

Author SHA1 Message Date
Feng Cao
9199498b46 Add inline controller UI fields to the autofill response and IME inline response
Test: build
Bug: 147394280

Change-Id: I4949852bb042390b35962627617d062bcd9b24b9
2020-01-23 11:22:56 -08:00
TreeHugger Robot
eba268395e Merge "Adds a feature flag for Context Hub" 2020-01-22 03:02:58 +00:00
TreeHugger Robot
46b3b3c0c1 Merge "Adding API to check if an icon returned by PackageManager is a fallback icon" 2020-01-22 03:02:07 +00:00
Arthur Ishiguro
e5b3e8e8f0 Merge "Adds a new ACCESS_CONTEXT_HUB permission" 2020-01-22 02:23:44 +00:00
Jing Ji
3dd4c345b6 Merge "Add an API android.os.Process.waitForProcessDeath" 2020-01-22 01:44:04 +00:00
Yvonne Jiang
1d1973ef97 Merge "Adding API for displaying a DO/PO controlled secondary lock screen post initial system lock screen." 2020-01-22 01:43:38 +00:00
Shu Chen
9c1983d414 Merge "Implement touch through on InsertionHandleView." 2020-01-22 01:10:29 +00:00
Ytai Ben-tsvi
4d1830d141 Merge "Improve HidlMemory annotation" 2020-01-22 00:51:35 +00:00
Sunny Goyal
77a2416924 Adding API to check if an icon returned by PackageManager
is a fallback icon

Bug: 141588119
Test: atest PackageManagerTest
Change-Id: I9ae5a74dd0b0c0c49a078d46914986ecb0d27a94
2020-01-21 16:17:49 -08:00
Yvonne Jiang
b7024a251c Adding API for displaying a DO/PO controlled secondary lock screen post initial system lock screen.
The new DPM API allows DP/POs to set whether the keyguard needs to show a secondary lockscreen after the primary locking mechanism is dismissed. If enabled, the keyguard will check for a service handling ACTION_BIND_SECONDARY_LOCKSCREEN_SERVICE and request the secondary lockscreen content from it.

Bug: 136085151
Test: atest FrameworksServicesTests:DevicePolicyManagerTest
Test: atest KeyguardUpdateMonitorTest
Test: atest AdminSecondaryLockScreenControllerTest
Change-Id: If82921b4fc2d78c0522a20ef91b48f9a93dd8b61
2020-01-21 15:52:57 -08:00
Automerger Merge Worker
0cdac4ad7c AppZygote: start with the correct instruction set am: 041f016971 am: cbf8e9dd7a am: 893b3728cb
Change-Id: Ie039ef64d0d307262d0ffe53353747d64c720544
2020-01-21 23:48:34 +00:00
Sudheer Shanka
ce7f6e8925 Merge "Implement BlobStoreManagerService." 2020-01-21 23:32:36 +00:00
Mady Mellor
0e12abac38 Merge "Bubble API: Allow developers to create BubbleMetadata from a shortcut id" 2020-01-21 23:31:22 +00:00
Lev Rumyantsev
cbf8e9dd7a AppZygote: start with the correct instruction set
am: 041f016971

Change-Id: I85ed95566f9cb6d38b02619f47e2efe6ebcf9c61
2020-01-21 15:18:34 -08:00
Arthur Ishiguro
05911ee0e9 Adds a feature flag for Context Hub
Bug: 147677675
Test: Compile only
Change-Id: I4d5aa236d86c69605f058e50a4af9db15d04b346
2020-01-21 14:55:00 -08:00
Shuo Qian
c3de6ca956 Merge "Support always reporting signal strength phone state listener" 2020-01-21 22:40:55 +00:00
Arthur Ishiguro
4042897855 Adds a new ACCESS_CONTEXT_HUB permission
Since not all Context Hub applications are location-related, the
use of the LOCATION_HARDWARE permission to control access to the Context Hub
System APIs can be misleading. Create a new permission to access it, and
adds the logic to enforce the permission.

Also clarifies usage of PendingIntent ContextHubClient.

Bug: 135951924
Test: Compile and flash
Change-Id: I5f22db7e57ef4a6c3718acb38c4f313d6a04839f
2020-01-21 14:39:51 -08:00
Valerie Hau
2eb5cc7bf9 Merge "Adding WINDOW_MANAGER_NATIVE_BOOT and window_manager_use_blast_adapter flags" 2020-01-21 22:20:04 +00:00
TreeHugger Robot
06e6d824f1 Merge "Add methods to retrieve the native CameraMetadata pointer." 2020-01-21 22:02:48 +00:00
Lucas Dupin
c1df8667ea Merge "Expose blurs to SurfaceControl" 2020-01-21 21:55:13 +00:00
Bernardo Rufino
8aa39acf60 Merge "Use IBinder token for indexing toasts instead of ITransientNotification" 2020-01-21 21:52:32 +00:00
Daniel Bright
e9a4f02315 Merge "Changed ApnSetting mappings to constants" 2020-01-21 21:39:38 +00:00
Jay Aliomer
1d8df2ad91 Merge "Custom dark theme scheduling" 2020-01-21 21:27:28 +00:00
Tim Murray
7901f7f177 Merge "Binder cache for hasSystemFeature(). System features are build-time constants, so the cache is invalidated only when the system server restarts." 2020-01-21 21:08:19 +00:00
Xiangyu/Malcolm Chen
b058ae4698 Merge "Add HomeVisibilityObserver APIs in ActivityManager." 2020-01-21 20:58:47 +00:00
Mady Mellor
2ac2d3aafc Bubble API: Allow developers to create BubbleMetadata from a shortcut id
Adds an option to specify a bubble via a shortcutId. If the builder had
icon / intent previously specified, the shortcutId will clobber those
and vice versa.

Unfortunately, this means that BubbleMetadata#getIcon and #getIntent may
return null when previously they were non-null. I've deprecated these
getters and introduced new ones along with new setters so that the naming
remains consistent.

NoMan will check if that shortcut exists before applying FLAG_BUBBLE.

Update SystemUI to use BubbleMetadata builder with shortcut id for the
shortcut experiment.

Adds test to ensure the launcher apps callback is added / removed
appropriately & that notifs with shortcut bubbles are properly flagged
or unflagged.

Test: atest NotificationManagerServiceTest
Test: atest NotificationTest NotificationManagerTest (see CTS CL)
Bug: 138116133
Bug: 144352570
Change-Id: I2e8155edc7fd70d6978fc80310f071bf6510e0d2
2020-01-21 12:51:04 -08:00
Qasid Sadiq
86fc75c1a0 Merge "Throttle stateDescription changed events" 2020-01-21 20:30:37 +00:00
Alex Lin
3087e3d69e Merge "Add public API for EuiccService log dump" 2020-01-21 19:31:52 +00:00
Jiawen Chen
5419ea37da Add methods to retrieve the native CameraMetadata pointer.
Test: atest android.hardware.camera2.cts.CameraManagerTest#testCameraCharacteristicsNdkFromSdk android.hardware.camera2.cts.CaptureResultTest#testCameraCaptureResultAllKeys
Bug: 80513080

Change-Id: I296db8425b562e09843159dfab3afa0960b4854f
2020-01-21 14:26:32 -05:00
Jay Aliomer
15d855465b Custom dark theme scheduling
allows the use to set the start and end automatic dark theme
activation within a day.
Fixes: 147649309
Test: atest UiModeManagerServiceTest UiModeManagerTest
Change-Id: Iaa3593d4e8863412e3703ce9f089b88dd4df1225
2020-01-21 14:13:23 -05:00
Julia Reynolds
73bc1e84e8 Merge "Fix notification history ordering" 2020-01-21 18:58:20 +00:00
Bernardo Rufino
871fe0a968 Merge "Deprecate custom toasts" 2020-01-21 18:35:59 +00:00
Alex Johnston
35a650b9fd Merge "Add new APIs to control modification of admin configured networks" 2020-01-21 18:33:02 +00:00
Jorim Jaggi
2b16b5993d Merge "Fix up new insets dispatch behavior" 2020-01-21 18:28:58 +00:00
Iavor-Valentin Iftime
c2813cf16c Merge "Change some UserManager APIs to @SystemApi" 2020-01-21 18:21:57 +00:00
Lee Shombert
72635f677a Binder cache for hasSystemFeature().
System features are build-time constants, so the cache is invalidated only
when the system server restarts.

Bug: 140788621

Test: A special build that puts the PropertyInvalidatedCache in
verification mode was loaded on the device.  Then one iteration of MPTS was
executed.  No cache inconsistencies were found and no SELinux violations
(associated with the binder cache) were found.  The number of cache misses
was approximately 15% of the total binder calls.  98.5% of all binder calls
went through the cache.

Change-Id: Icd23283512ab648ed589d461d2a86e1c3807b45a
2020-01-21 10:21:12 -08:00
Hui Yu
89582facba Merge "Add new foreground service type camera and microphone." 2020-01-21 18:02:02 +00:00
Valerie Hau
eeef1a9baa Adding WINDOW_MANAGER_NATIVE_BOOT and window_manager_use_blast_adapter flags
For ViewRootImpl on BLAST experiment, setting up namespace and flag to
turn on Blast adapter through P/H experiment

Bug: 147096935
Test: build, boot, adb shell device_config put
window_manager_native_boot wm_use_blast_adapter true/false
check that BLAST adapter is turned on/off as expected
Change-Id: Ie1b158721ac9b751fcf3954310259f14486d3bb8
2020-01-21 10:01:39 -08:00
Julia Reynolds
1cc5f842e4 Fix notification history ordering
Newest first!

Test: atest
Bug: 137396965
Change-Id: I83f8ddde5e5f929dff2bcafe55e26a51f82f90f5
2020-01-21 12:24:03 -05:00
Jorim Jaggi
6d13bf4a54 Fix up new insets dispatch behavior
- Fix up target SDK check
- Keep WindowInsets.CONSUMED concept to stop dispatch for
performance optimization. If the insets are handled at some point
in the hierarchy, we really don't need to dispatch it to all the
children. However, deprecate all the individual consuming methods
instead.

Bug: 118118435
Test: ViewGroupTest
Change-Id: I6b6627fb9c0a43444ee3f9dbeb978109f9138fbd
2020-01-21 17:03:04 +01:00
Bernardo Rufino
7b843abc1c Deprecate custom toasts
Deprecating custom toasts as discussed, the reasons are:
* We're blocking background custom toasts for security reasons
(go/toast-abuse).
* This means custom toasts are only possible if the app is in the
foreground. In the foreground the app has control over its own view
hierarchy and is capable of creating any visual elements it would
otherwise use custom toasts for.
* If we were to declare ongoing support for foreground toasts the
developer would be in a situation where they either check for
foreground status of the app before posting a custom toast or they
accept that the information they want to display may not be shown at
all. This is not great.
* There is also a desire to avoid custom toasts altogether since they
hurt UX consistency
(https://docs.google.com/presentation/d/1r5WEofZ_G3B9M65nS37uD4RqA4iV9HUmngyE6ZpBSsw/edit#slide=id.g7b69852da2_0_0).

Also added a recommendation to use Snackbars while the app is in the
foreground.

Bug: 128611929
Bug: 144754526
Test: Builds
Test: atest android.widget.cts.ToastTest
Change-Id: I4ed0bd671e308491590c28ff24087c76d0623f13
2020-01-21 15:58:47 +00:00
Alex Johnston
f13a6fb624 Add new APIs to control modification of admin configured networks
* Historically, only the device owner could prevent the user from modifying
  networks that have been configured by the device owner.
* In New COPE mode, the COPE profile owner should now be able to prevent the
  user from modifying networks as well as the device owner.
* This CL adds new APIs which are callable by the device owner or profile
  owner of an organization-owned managed profile. These new API can be used
  to toggle the global setting WIFI_DEVICE_OWNER_CONFIGS_LOCKDOWN, instead of
  setting the global setting directly.
* This CL only affects networks configured by the admin, is does not prevent
  the user from creating more network configurations.

Bug: 147476790
Test: manual testing with TestDPC
      atest com.android.server.devicepolicy.DevicePolicyManagerTest
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testAdminConfiguredNetworks
      atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testAdminConfiguredNetworks

Change-Id: Ia16e639922bb08cdacd9a3766d978ac150b693c5
2020-01-21 15:51:47 +00:00
Valerie Hau
dac3d675fa Merge "Preserve intended width/height for Blast adapter layers" 2020-01-21 15:50:28 +00:00
Bernardo Rufino
52af6db212 Use IBinder token for indexing toasts instead of ITransientNotification
In preparation for text toasts, which won't contain a
ITransientNotification object associated with them, indexing toasts
by an IBinder token provided by the app.

Bug: 144754526
Bug: 128611929
Test: atest android.widget.cts.ToastTest
Change-Id: I8ec649066154f59bc28bcb49bb6f156eadb796d8
2020-01-21 15:22:45 +00:00
Automerger Merge Worker
310f576b7f Merge "Add Framework APIs for Identity Credential." am: 2fb5112a35 am: 70485380f7 am: 6079e88fae
Change-Id: Iec2c6c1ec28b5697b8d2b444081a3240bea2af9e
2020-01-21 15:12:56 +00:00
David Zeuthen
70485380f7 Merge "Add Framework APIs for Identity Credential."
am: 2fb5112a35

Change-Id: Ifb511b43fd180980badef43b7ea3009e3a9ba00b
2020-01-21 06:45:12 -08:00
Treehugger Robot
2fb5112a35 Merge "Add Framework APIs for Identity Credential." 2020-01-21 14:38:14 +00:00
Remi NGUYEN VAN
938f330d63 Merge "Add NetworkRequest#satisfiedBy to SystemApi"
am: b8f9c4f5b2

Change-Id: I817020ac31dec9e10ea27fa38f07250f5c447de1
2020-01-21 06:21:11 -08:00
Remi NGUYEN VAN
b8f9c4f5b2 Merge "Add NetworkRequest#satisfiedBy to SystemApi" 2020-01-21 14:12:27 +00:00
Kholoud Mohamed
aa85de1781 Merge "Teach permission checker about appop permissions" 2020-01-21 13:39:02 +00:00