Commit Graph

113788 Commits

Author SHA1 Message Date
Biswarup Pal
685eca7077 Merge "Add freeCache API to ExternalStorageService" 2020-12-16 15:53:15 +00:00
Neil Fuller
815f169d11 Merge "Add System APIs for TimeZoneProvider" 2020-12-16 13:21:54 +00:00
TreeHugger Robot
ff02566ed2 Merge "Move requestPictureInPictureMode to internal" 2020-12-16 12:14:23 +00:00
TreeHugger Robot
71a741594f Merge "Add InputConnection#performSpellCheck()." 2020-12-16 10:54:27 +00:00
Wilson Wu
0e75d9e4dd Merge "Make IInputMethodManager to oneway (5/N)" 2020-12-16 09:33:42 +00:00
Biswarup Pal
b23206602a Add freeCache API to ExternalStorageService
Call ExternalStorageService#freeCache from
PackageManagerService#freestorage via StorageManagerInternal
to free any cache held by ExternalStorageService under low storage
conditions.

Test: m
Bug: 170481432
Change-Id: Iaee2262705f4c99fb9e46875e321dcbbae841824
2020-12-16 09:11:15 +00:00
Ming-Shin Lu
460e9b6bce Merge "Move TaskSnapshot into android.window package" 2020-12-16 05:48:03 +00:00
Gary Mai
519fb38710 Merge "Update FDN and SDN constants" 2020-12-16 04:31:52 +00:00
Brian Stack
63458f3e6a Merge "Ensure UWB conforms to API guidelines" am: 0070e26a5e am: a0e1666a74 am: d852943072
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1518203

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3512e1e3941d80d9fd5d574f5feb30d7bd89ac0c
2020-12-16 01:47:25 +00:00
Brian Stack
d852943072 Merge "Ensure UWB conforms to API guidelines" am: 0070e26a5e am: a0e1666a74
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1518203

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I561ea72833cbadcae45cff01edf310fee80c6532
2020-12-16 01:05:55 +00:00
Qasid Sadiq
88f2c35b55 Merge "Remove recycling magnificationSpec and region." 2020-12-16 00:21:33 +00:00
Brian Stack
0070e26a5e Merge "Ensure UWB conforms to API guidelines" 2020-12-16 00:01:26 +00:00
Neil Fuller
b94da68e10 Add System APIs for TimeZoneProvider
First step of moving LocationTimeZoneProvider from the
com.android.location.provider API surface to system API.

This copies / renames various APIs, generally dropping "Location" from
the name to try to generalize them. The
com/android/server/location/timezone classes have been updated
to use the new classes but the names have been left for now as they are
an internal detail and it's not clear which would be "location specific"
and which might be general.

Bug: 175633818
Test: build / treehugger
Change-Id: Ied2b43336ef80d2b4ed2eba8849ea1976145df8d
2020-12-15 23:19:30 +00:00
Hyunyoung Song
a2f98d16a6 Merge "Add Initial SearchUIManager" 2020-12-15 23:17:45 +00:00
Gary Mai
fc652f2457 Update FDN and SDN constants
These should mirror IccConstants usage for consistency.

Test: Manual build and flash
Bug: 170653527
Change-Id: I5ff335eeae99cd5b6f8ebfb809c826843d6abd77
2020-12-15 15:16:36 -08:00
Jakub Pawlowski
22e6db8761 Merge "Add LE Audio UUID placeholder" am: eec09803da am: b253796204 am: 14b8b7fca2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1513324

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Idaf4c83bbb85c8815b4988e8ba75bd7c94c2a8bd
2020-12-15 22:50:39 +00:00
Jeff Sharkey
8a42162181 Merge "Add OWNERS to UWB" am: 6d76b53c26 am: 0eb1190094 am: ae4ddcdeef
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1530840

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I13bd37d7b2a9f53879aa71510c2bd1479cd9aa1a
2020-12-15 22:49:03 +00:00
Kohsuke Yatoh
e751e1036a Add InputConnection#performSpellCheck().
IME can use this method to redo spell checking after it has learned a
new user dictionary word.

Bug: 166304720
Test: atest CtsInputMethodTestCases:SpellCheckerTest
Change-Id: I956cd46f25bb77b7e1a6a3e1478c0d7efa1a056a
2020-12-15 22:48:47 +00:00
Jakub Pawlowski
14b8b7fca2 Merge "Add LE Audio UUID placeholder" am: eec09803da am: b253796204
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1513324

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0461b86760f5c26bf066799b8bf6452ac2162704
2020-12-15 22:12:21 +00:00
Jeff Sharkey
ae4ddcdeef Merge "Add OWNERS to UWB" am: 6d76b53c26 am: 0eb1190094
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1530840

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7ed1eab500c1c67ac99e955b0ce9b173e12e4820
2020-12-15 22:11:49 +00:00
Jakub Pawlowski
eec09803da Merge "Add LE Audio UUID placeholder" 2020-12-15 21:54:45 +00:00
Jeff Sharkey
6d76b53c26 Merge "Add OWNERS to UWB" 2020-12-15 21:20:54 +00:00
Alexander Dorokhine
c51d98c112 Merge changes I3a17ec73,Ie460dbbb
* changes:
  Unhide AppSearchManager APIs.
  Unhide GlobalSearchSession API.
2020-12-15 20:47:01 +00:00
Yan Zhu
c4853ac3c0 Merge "Improve headless system user's DO setup flow" 2020-12-15 20:25:59 +00:00
TreeHugger Robot
af8420fb91 Merge "Added profile-owner and device-owner on cmd user and dump user." 2020-12-15 20:04:11 +00:00
Peiyong Lin
28613f9d31 Merge "[GraphicsEnvironment] Avoid null access." into rvc-qpr-dev am: 23ace73ac4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13229183

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I20f201739a456f9580328670189e506e284feb2e
2020-12-15 19:10:01 +00:00
Peiyong Lin
23ace73ac4 Merge "[GraphicsEnvironment] Avoid null access." into rvc-qpr-dev 2020-12-15 19:02:54 +00:00
Hyunyoung Song
21e60a9d43 Add Initial SearchUIManager
Bug:162234997

Test: builds, locally ran cts tests

CTS tests: ag/13129468

[Meeting notes with Svet/Sunny/Winson] go/aaplus-search-api
[Design diagrams] go/aaplus-search-supl

Change-Id: I4589cd411e124dc9d7ea132a71651f6b9f9656ae
2020-12-15 18:54:43 +00:00
TreeHugger Robot
946b5ee77a Merge "Combine uids for CpuTimePerUidFreq atom" into rvc-qpr-dev am: 9622b6d7d0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13205190

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id450db7d6874e2e1f4832b8dc0c40f972d62bf18
2020-12-15 18:48:15 +00:00
Nader Jawad
b1ecff76c8 Merge "Added View#setRenderEffect API" 2020-12-15 18:37:04 +00:00
Brian Stack
bf2f411e26 Add OWNERS to UWB
Bug: 175698723
Test: Manual
Change-Id: Ia1982ed3864bbffcce5f4f9192a3cb681085e387
2020-12-15 10:26:49 -08:00
Peiyong Lin
3cb225dc74 [GraphicsEnvironment] Avoid null access.
Currently when debug layer apk is not installed, GraphicsEnvironment
logs the message and proceeds, which results in null pointer access
crash when later trying to access primaryAbi. Avoid null access by an
early return statement.

Bug: N/A
Test: specify not installed debug layer apk and no crash
Change-Id: I4f3b86b0a8cfff4fc608b3a59ebf0872db0465ff
Merged-In: I4f3b86b0a8cfff4fc608b3a59ebf0872db0465ff
(cherry picked from commit c5c17e66ba)
2020-12-15 10:22:53 -08:00
Peiyong Lin
d22eebefdb [GraphicsEnvironment] Avoid null access.
Currently when debug layer apk is not installed, GraphicsEnvironment
logs the message and proceeds, which results in null pointer access
crash when later trying to access primaryAbi. Avoid null access by an
early return statement.

Bug: b/175699044
Test: specify not installed debug layer apk and no crash
Change-Id: I4f3b86b0a8cfff4fc608b3a59ebf0872db0465ff
Merged-In: I4f3b86b0a8cfff4fc608b3a59ebf0872db0465ff
(cherry picked from commit c5c17e66ba)
2020-12-15 17:54:45 +00:00
Flavio Fiszman
277dc6bf39 Merge "Show notification content in single tile widget." 2020-12-15 17:02:45 +00:00
TreeHugger Robot
eef1b3b1e7 Merge "Throw appropriate exception for session transferring" 2020-12-15 16:23:57 +00:00
Yan Zhu
5cbbac84c3 Improve headless system user's DO setup flow
1. Change manageUser to be setup on current user
2. add pre condition check for headless system user mode: disallows setup when current user is system user 0 and only allows device owner to be set on user 0
3. Changes method name and adds param names

To verify:
1. Install TestDPC app: https://github.com/googlesamples/android-testdpc
2. make sure device is unprovisioned
adb shell dumpsys device_policy
2'. deprovion if needed
adb shell settings put global device_provisioned 0 && adb shell rm /data/system/device_owner_2.xml /data/system/device_policies.xml
3. make sure deivce_amdmin feature is available
 adb shell pm list features | grep "admin"
3'. install feature if needed
adb push frameworks/native/data/etc/android.software.device_admin.xml
/vendor/etc/permissions/
4. run
adb shell dpm set-device-owner --user 0 com.afwsamples.testdpc/com.afwsamples.testdpc.DeviceAdminReceiver
5. verify with
adb shell dumpsys device_policy
6. try to set on user 10 will fail
adb shell dpm set-device-owner --user 10 com.afwsamples.testdpc/com.afwsamples.testdpc.DeviceAdminReceiver
6. switch to user 0, repeat 4. It shall fail.

Bug: 170333009
Bug: 174610623
Test: manual with steps above
Change-Id: Iaa46032fa6487d792f7bde5de5ff6e55b9c36432
2020-12-15 08:20:55 -08:00
Zimuzo Ezeozue
6b792986d6 Merge "Add StorageVolume#getStorageUuid" 2020-12-15 16:11:57 +00:00
Riddle Hsu
c25364b521 Merge "Correct annotation of ActivityOptions.SourceInfo.SourceType" 2020-12-15 14:15:57 +00:00
Wale Ogunwale
fe982c0bef Merge "Added support for RootTaskDisplayAreaOrganizer" 2020-12-15 14:15:21 +00:00
Michal Olech
fafb66fb86 Merge "[CEC Configuration] Rename 1_4_b to 1_4_B" 2020-12-15 13:53:33 +00:00
Felka Chang
b19810da77 Throw appropriate exception for session transferring
If the parameter "packageName" is invalid, such as null or
empty string for package name, an IllegalArgumentException is thrown.

In PackageInstallerSession.transfer(packageName), in order to let
the throwing exception more close to the real situation, we throw
IllegalStateException rather than IllegalArgumentException when
one file isn't closed or the state is wrong.

Test: atest InstallSessionTransferTest
Bug: 158804946
Change-Id: Ib0a3e8dc19b829c7382791e622e0b86ee8b387e8
2020-12-15 20:23:55 +08:00
TreeHugger Robot
bf8d1042e6 Merge "Introducing FactoryResetter, a single entry point for factory reset calls." 2020-12-15 12:19:20 +00:00
Flavio Fiszman
ebb1c97b1c Show notification content in single tile widget.
Test: manual, PeopleSpaceUtilsTest and PeopleSpaceWidgetManagerTest
Change-Id: I2538874672dfc0a0860682e06e3522c17d00b29d
2020-12-15 12:16:33 +00:00
Zim
67eb83ba0b Add StorageVolume#getStorageUuid
Unlike getUuid that returns fsUuid, this returns the 'converted'
fsUuid. This means that for the default internal storage:
- fsUuid = null
- uuid = UUID_DEFAUlT

Test: atest StorageManagerTest#testGetPrimaryVolume
Bug: 170481432
Change-Id: I4c590e5536326e5c2a0b62520f9853de680027ae
2020-12-15 11:42:30 +00:00
Remi NGUYEN VAN
14d3f78851 Add TcpKeepalivePacketData to SystemApi am: 103ec4aa8d am: a232c68028 am: 40190840bb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1494038

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1aa9deefefcaf75959463e8a8a87bfeefb98f0ee
2020-12-15 11:42:19 +00:00
Michal Olech
989204e09b [CEC Configuration] Rename 1_4_b to 1_4_B
SystemApi complains:
error: Constant field names must be named with only upper case characters:
`android.hardware.hdmi.HdmiControlManager#HDMI_CEC_VERSION_1_4_b`,
should be `HDMI__CEC__VERSION_1_4_B`

Bug: 174731501
Bug: 172637440
Test: atest com.google.android.gts.hdmicec.HdmiControlManagerHostTest
Change-Id: Ia1bfdb44e704c99fa574663f658a2173f6b48d21
2020-12-15 12:25:13 +01:00
Sarah Chin
a0b9b445a2 Merge "Move phone ID to extra for action provision" 2020-12-15 11:07:25 +00:00
Remi NGUYEN VAN
40190840bb Add TcpKeepalivePacketData to SystemApi am: 103ec4aa8d am: a232c68028
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1494038

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic764adda49e414e6ed34a101fd83c3fc62f5734c
2020-12-15 10:23:21 +00:00
Remi NGUYEN VAN
a232c68028 Add TcpKeepalivePacketData to SystemApi am: 103ec4aa8d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1494038

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ibe3df65b4e12ecda5d95737f3b1ea18dabc2461d
2020-12-15 09:38:38 +00:00
TreeHugger Robot
32991a95e0 Merge "Support tappable elements on left/right sides" 2020-12-15 09:31:08 +00:00