Commit Graph

103037 Commits

Author SHA1 Message Date
Taran Singh
f739e47c41 Add null check in IMS hideWindow
Input view can be null. Add a null check.

Fix: 152060038
Test: Manually using steps in bug
Change-Id: I1ed899ef83b75003b0862f97de733247fe840ae4
2020-03-20 13:09:48 -07:00
Yvonne Jiang
20cf3de04c Merge "Secondary Lockscreen API: improve documentation and rename onSurfaceReady method." into rvc-dev 2020-03-20 19:43:13 +00:00
TreeHugger Robot
25098aa147 Merge "Unrestrict updated buggy apps." into rvc-dev 2020-03-20 18:59:12 +00:00
Ryan Mitchell
b0544a733c Merge changes from topic "res_loader_dir" into rvc-dev
* changes:
  Allow using loaders on non-RM Resources instances
  Move AssetsProvider to native layer
  Add ResourcesProvider.loadFromDirectory
  Refactor tests for ApkAsset loading APIs
  Refactor ApkAsset loading APIs
  Fix bugprone-use-after-move warnings
  Fix bugprone-use-after-move warnings
2020-03-20 18:16:30 +00:00
TreeHugger Robot
60e19c7656 Merge "Skip unnecessary IPC when getting VibrationEffect." into rvc-dev 2020-03-20 18:07:26 +00:00
TreeHugger Robot
f4a69284d0 Merge changes from topic "revert" into rvc-dev
* changes:
  [DO NOT MERGE] Enable biometrics.fingerprint@2.2
  [DO NOT MERGE] Revert "Add support for fingerprint@2.2 and face@1.1"
2020-03-20 17:44:50 +00:00
Mady Mellor
5e2ddf0391 Merge "Bubbles API council feedback" into rvc-dev 2020-03-20 17:17:36 +00:00
TreeHugger Robot
243f8b00ae Merge "Expose IMMERSIVE_MODE_CONFIRMATIONS setting as Test API" into rvc-dev 2020-03-20 17:11:08 +00:00
Yvonne Jiang
8345da3a97 Secondary Lockscreen API: improve documentation and rename onSurfaceReady method.
- Documentation clarity and method rename per API review feedback.
- Specifying in documentation and implementation that the implementing service must be exported by the Profile Owner.

Bug: 150866056
Bug: 136085151
Test: atest FrameworksServicesTests:DevicePolicyManagerTest
Test: atest KeyguardUpdateMonitorTest
Test: atest AdminSecondaryLockScreenControllerTest
Change-Id: I58175bd6cf8936f5b1267625ca15b4f9c57f4144
2020-03-20 17:06:24 +00:00
TreeHugger Robot
922833a430 Merge "Update permissions of BluetoothPan System APIs and re-hide some APIs that do not need to be System APIs." into rvc-dev 2020-03-20 16:55:47 +00:00
TreeHugger Robot
7924f675e1 Merge "Address API Review for setProfileOwnerCanAccessDeviceIds" into rvc-dev 2020-03-20 15:35:09 +00:00
Eran Messeri
17429b5394 Address API Review for setProfileOwnerCanAccessDeviceIds
Per API council's suggestion, make setProfileOwnerCanAccessDeviceIds
throw only if the API level of the calling app is R and above, and
call markProfileOwnerOnOrganizationOwnedDevice if called from apps
targeting Q and below.

This code path is extremely unlikely to ever trigger because this method
was marked as SystemApi unintentionally, and could only be called during
the provisioning flow.

Test: Manual
Bug: 150957726
Change-Id: I4215c7dce642c9e3ff00183f43867802507911ca
2020-03-20 13:33:41 +00:00
TreeHugger Robot
23ad582c18 Merge "Add error code for BluetoothDevice#getBatteryLevel to represent Bluetooth is off" into rvc-dev 2020-03-20 13:00:09 +00:00
Jorim Jaggi
08a45d2445 Merge "Fine tune animation parameters for IME animations" into rvc-dev 2020-03-20 11:11:04 +00:00
Jorim Jaggi
c9af24d5ac Merge "Add galinap@ to dream owners" into rvc-dev 2020-03-20 11:10:09 +00:00
Aaron Huang
8446bc6b7b Merge "API review: access field by method" into rvc-dev 2020-03-20 11:09:43 +00:00
Junyu Lai
734640b2dd Merge "Create a builder for NetworkCapabilities." into rvc-dev 2020-03-20 11:03:47 +00:00
Junyu Lai
e281e579ca Merge "Expose netId by adding getter API" into rvc-dev 2020-03-20 11:03:05 +00:00
Galia Peycheva
8c224313f7 Merge "Hide all insets when the dream is activated" into rvc-dev 2020-03-20 10:28:51 +00:00
Rahul Sabnis
6a5d8e4b55 Update permissions of BluetoothPan System APIs and re-hide some APIs
that do not need to be System APIs.

Bug: 146045934
Test: Manual
Merged-In: Ic6325fde05294eb0266fee25f4b3e7098749a287
Change-Id: Ic6325fde05294eb0266fee25f4b3e7098749a287
2020-03-20 01:44:50 -07:00
Rahul Sabnis
c62712e98e Add error code for BluetoothDevice#getBatteryLevel to represent
Bluetooth is off

Bug: 147428695
Test: Manual
Merged-In: I07c2fa49954632da6aa6a93706883e4cdfd32fa6
Change-Id: I07c2fa49954632da6aa6a93706883e4cdfd32fa6
2020-03-20 01:38:06 -07:00
Galia Peycheva
d1a6da5692 Hide all insets when the dream is activated
By default we hide all insets while the DreamActivity is active.
The client app has access to the main window of the activity, so it
could override this.

Bug: 151749301

Test: m && flash && start the screensaver and verify that nav bar is
gone

Change-Id: Iecdc5f67c976de5477523e9745a9e8733703c11f
2020-03-20 09:10:55 +01:00
Peter Li
3e6f5a87f9 Merge "Move the logic of transferTouchFocusToImeWindow to IMMS." into rvc-dev 2020-03-20 06:50:10 +00:00
lpeter
133fce0171 Move the logic of transferTouchFocusToImeWindow to IMMS.
It would better move logic of transferTouchFocusToImeWindow
from WindowManagerService to InputMethodManagerService.

Bug: 149574510
Test: atest CtsAutoFillServiceTestCases
Test: atest CtsInputMethodTestCases
Change-Id: I268b09781e5eb7c77c4912efdc8fd5d6936ada27
2020-03-20 12:16:44 +08:00
Jacky Kao
658dd8047d Merge "Reply error through callback for takeScreenshot()" into rvc-dev 2020-03-20 04:12:24 +00:00
TreeHugger Robot
52eaaaa99a Merge "Update frameworks/base Emoji.java to Unicode 13." into rvc-dev 2020-03-20 03:29:49 +00:00
Ryan Mitchell
39cacf2de7 Allow using loaders on non-RM Resources instances
Currently there is a limitation where ResourcesLoaders cannot be  used
on Resources object not created through ResourcesManager. This change
creates an update handler for Resources objects that are not registered
with ResourcesManager.

The handler changes the loaders on the asset manager owned by the
Resources instance.

Bug: 151666644
Test: atest ResourceLoaderValuesTest
Change-Id: I5a89f686386bdb088dc964014e7becc0c2b4770f
2020-03-19 18:33:55 -07:00
Ryan Mitchell
4ea1e42889 Move AssetsProvider to native layer
Querying in the native layer for assets provided through
AssetsProviders does not currently work. This change refactors the
AssetProvider API to return a file descriptor that is read in the
native layer and can bubble up to the java layer.

This change also removes the InputStream API to favor of developers
using memfd_create.

Bug: 142716192
Test: atest ResourceLoaderValuesTest
Change-Id: I1a7eca0994c3b7cc32008d9a72bf91086ff0e816
2020-03-19 18:33:55 -07:00
Ryan Mitchell
c07aa70270 Add ResourcesProvider.loadFromDirectory
This API allows a directory to be loaded as if it was a zipped APK.
This is a substitute for the DirectoryAssetProvider API that
currently does not work in the native layer.

Bug: 142716192
Test: atest FrameworksResourceLoaderTests
Change-Id: Ia13e15653e75b421423dd56f9fe89e183ab4cb9a
2020-03-19 18:33:55 -07:00
Ryan Mitchell
ef40d2e832 Refactor ApkAsset loading APIs
To add the partner requested ResourcesProvider#loadFromDir APIs, this
change adds format type integer that allows us to reduce the number of
ApkAssets loading overrides.

This change also adds hidden offset and length based ResourcesProvider
APIs that could not make R.

Bug: 142716192
Test: atest FrameworksResourceLoaderTests
Change-Id: I926fde257cae701901dcd4ca408024feae8c90a6
Merged-In: I926fde257cae701901dcd4ca408024feae8c90a6
2020-03-19 18:33:55 -07:00
Jacky Kao
6c8bdbb511 Reply error through callback for takeScreenshot()
Passing the error code through callback to the caller.

Bug: 150865445
Test: a11y CTS & unit tests
Change-Id: I8ca75908289a9fbd888689788a982f68cc7392ad
2020-03-20 08:40:55 +08:00
Grace Jia
886efd654f Merge "Revert add isProfileForeground SystemApi in ActivityManager." into rvc-dev 2020-03-19 23:27:03 +00:00
Rod S
b573a9d949 Update frameworks/base Emoji.java to Unicode 13.
As ICU is updated, delete special cases.

Test: atest core/tests/coretests/src/android/text/EmojiTest.java
Bug: 151964652

Change-Id: I89032c22e5464d257866d926062db34c65943572
(cherry picked from commit 31d7c155b7)
2020-03-19 23:12:53 +00:00
TreeHugger Robot
6989bab25d Merge "Handle IME hide internal state correctly." into rvc-dev 2020-03-19 23:08:57 +00:00
Ilya Matyukhin
244aee6368 [DO NOT MERGE] Revert "Add support for fingerprint@2.2 and face@1.1"
This reverts commit ef410e3c1e.

Reason for revert: the implementation is untested in R; moving to S.

Bug: 139317981
Bug: 151331855
Change-Id: If6a2fdb26e1ffbdb2cad7dfc16a7cd579f513d5c
2020-03-19 23:05:13 +00:00
Evgenii Stepanov
21c6a0f598 Merge "Convert enableGwpAsan to @IntDef and rename to gwpAsanMode." into rvc-dev 2020-03-19 22:47:05 +00:00
Jorim Jaggi
5875cca667 Fine tune animation parameters for IME animations
To match spec as mentioned on the bug.

Bug: 151826721
Test: Visual
Change-Id: I1c2a70916e3a41195f5c003b9023c51ebd93eadb
2020-03-19 23:35:24 +01:00
Jorim Jaggi
4a23d522dd Add galinap@ to dream owners
Test: n/a
Bug: 0
Change-Id: Id98aa17ce83410de6318f85d9f4edb957041dc6b
2020-03-19 22:02:47 +00:00
TreeHugger Robot
4f4706de1f Merge "Fix PopupWindow's wrong location" into rvc-dev 2020-03-19 21:51:45 +00:00
Wonsik Kim
de9e6f71d0 Merge "MediaCodec: address API review #2" into rvc-dev 2020-03-19 21:46:28 +00:00
Hall Liu
2227afaacb Merge "Rename NotificationChannel#setBlockableSystem" into rvc-dev 2020-03-19 21:06:53 +00:00
Winson Chiu
5051748f22 Merge "Convert InstantAppRequestInfo to getters and add @MainThread" into rvc-dev 2020-03-19 21:02:36 +00:00
TreeHugger Robot
cff44bd82e Merge "Change createRequestInteractAcrossProfilesIntent to throw Exception" into rvc-dev 2020-03-19 20:51:30 +00:00
Peter Wang
24f63edb41 Merge "[Telephony Mainline] Hide setSystemAppState and related constants for R" into rvc-dev 2020-03-19 20:50:10 +00:00
Patrick Baumann
8a25d0fa42 Merge "Fixes wildcard intent filter matching logic" into rvc-dev 2020-03-19 20:43:32 +00:00
TreeHugger Robot
0b3db44d5b Merge "RESTRICT AUTOMERGE: Camera: Hide keys for the rotate-and-crop controls" into rvc-dev 2020-03-19 20:37:08 +00:00
Robert Carr
8d98856760 Expose IMMERSIVE_MODE_CONFIRMATIONS setting as Test API
This way tests which capture the screen can disable the confirmation.

Bug: 150305764
Test: SurfaceControlTests ASurfaceControlTests
Change-Id: I730a78b82be47eb61fe758f2f9c4ff0073754b50
2020-03-19 13:21:34 -07:00
Peter Wang
77bdf2a0c0 Merge "[API Review] APIs in SubscriptionManager" into rvc-dev 2020-03-19 20:07:38 +00:00
Taran Singh
e68d6f53ce Handle IME hide internal state correctly.
IME process is notified after client has hidden the IME. At this point
IME should call doHideWindow() so internal lifecycle methods are called
the way they were called earlier.
Also, with insets we don't hide the decorView of IME window till client
is unbound, so to be consistent with previous behavior, call
windowVisibilityChanged(View.GONE) explicitly.

Fix: 151125925
Test: atest KeyboardVisibilityTest InputMethodServiceTest
Change-Id: Ibe9a02b93489370b6ae9b497993e366f88791a62
2020-03-19 20:06:13 +00:00
Peter Wang
f4885bf28f Merge "[Telephony Mainline] Hide all PermissionManager APIs for R" into rvc-dev 2020-03-19 19:21:21 +00:00