Commit Graph

468838 Commits

Author SHA1 Message Date
Michael Wachenschwanz
1103ff27a8 Fix exempt vs unexempt scheduled sync standby bucket logic
Fix for bug in AppStandbyController that would treat all scheduled
syncs for user 0 as unexempted syncs and syncs for not user 0 as
exempted syncs, regardless of the actual exemption status.

Fixes: 150016258
Test: atest AppStandbyControllerTests

Change-Id: Ie9e63c2954d0abe2a28469ea95ba6995a5c8696d
(cherry picked from commit 3ffa92f62c)
2020-02-24 20:42:57 +00:00
Jack Yu
1e1ff94bdb Added missed incoming call SMS support
Provided a way for carrier to notify their users
about missed incoming call via special SMS.

Bug: 144068181
Test: MissedIncomingCallSmsFilterTest
Merged-In: Iacf1ce5b2a79761536e2b31a0ea5644622b4913c
Change-Id: Iacf1ce5b2a79761536e2b31a0ea5644622b4913c
(cherry picked from commit 0630b6c358)
2020-02-24 11:58:30 -08:00
Jack Yu
0b9a12c2c4 Removed permission check
Removed permission check for getNetworkCountryIso and made it public.
This API was added since the first version of Android. Removed the
permission check for backward compatibility reason.

Test: Telephony sanity tests
Bug: 149872821
Change-Id: I68833fdf6f078d69bc8c2e5f01cf4e058d6d7093
2020-02-24 11:35:58 -08:00
Kweku Adams
0e2cbece6c Allow location when Car mode is active.
Car mode may be activated without the user plugging the device into the
car. In this scenario, the user is "interacting" with the device via the
car and may need navigation to work. To allow this use case, we make
sure battery saver doesn't disable location when the screen is off if
car mode is enabled. Night mode is also disabled as it could affect the
projected UI.

Bug: 149586834
Test: atest android.os.cts.batterysaving.BatterySaverTest
Test: atest BatterySaverPolicyTest
Test: manual visual confirmation and adb shell dumpsys power scanning
Change-Id: I3390c8a7f94652644f37027f3d22746a6af0efd6
(cherry picked from commit 8da3edbb56)
2020-02-24 19:28:33 +00:00
Samuel Fufa
1acbf7763b Fix widget restore flow
After restore, the app should set OPTION_APPWIDGET_RESTORE_COMPLETED to
true on its widgets followed by calling updateAppWidget to update views.

Bug:63667276
Test: Manual
Change-Id: Idb6fc63b0f894fca9e0470aaf335240fc124e2e9
2020-02-24 19:07:59 +00:00
Samuel Fufa
191149a4d0 Clear registered prediction callbacks on destroy
destroy() removes callbacks from AppPredictionManagerService but not
from mRegisteredCallbacks.

Bug: 149388856
Test: manual
Change-Id: Id08d6b20362486bd1640310c64da35e0382d9b5e
2020-02-24 19:06:21 +00:00
Galia Peycheva
a8e4641296 Clean up dreamland
Sort imports and exchange inline Runnables for lambdas

Bug: 133216167
Test: m && ./vendor/google/tools/flashall
Merged-In: Ife3d13904a698efbe0933676b176ac1fbb53d0bd
Change-Id: Ife3d13904a698efbe0933676b176ac1fbb53d0bd
(cherry picked from commit 21cab31b82)
2020-02-24 19:04:25 +00:00
Automerger Merge Worker
56efacb810 Merge "RESTRICT AUTOMERGE - Explicitly disable BLAST for SurfaceControlViewHost surfaces" into rvc-dev am: 27f83cdbce
Change-Id: Ide32d47e2ddde9a550f8592789164af96c5aea77
2020-02-24 19:02:05 +00:00
Automerger Merge Worker
352c6fcddf RESTRICT AUTOMERGE - Explicitly disable BLAST for SurfaceControlViewHost surfaces am: 6d16c8c340
Change-Id: Id4f4bdbbce58842c5956db967cd51611ef237ff1
2020-02-24 19:02:02 +00:00
Valerie Hau
27f83cdbce Merge "RESTRICT AUTOMERGE - Explicitly disable BLAST for SurfaceControlViewHost surfaces" into rvc-dev 2020-02-24 18:52:13 +00:00
Evan Laird
6075dd7f58 DO NOT MERGE: Add SystemUI support for front-facing camera protection
Devices with a DisplayCutout configured may want to add some extra area
of turned-off pixels around the cutout in order to keep light from
leaking into camera hardware. This CL adds two new config values to
sysui to enable the configuration of this cutout protection, and listens
for CameraManager events telling us that a relevant camera has turned
on.

Test: manual
Bug: 145095085
Change-Id: Ifce67a593247e3a2151d41800ae46a50478e0b7d
2020-02-24 18:44:48 +00:00
Automerger Merge Worker
04e7db3908 Merge "Fix PackageSetting isUpdatedSystemApp and SYSTEM_EXT rescan" into rvc-dev am: 1fd15d2073
Change-Id: If86c8a9c95f1fffded79459aae7c3f72e57f84ab
2020-02-24 18:41:05 +00:00
Stanislav Zholnin
dbcf85e576 Trim "android.permission." from permission name to reduce reporting footprint.
Bug: 136134050
Test: ./out/host/linux-x86/bin/statsd_testdrive 10050
Change-Id: I32f4c83f3362ca06cf0893b60f523af86cbcda5c
2020-02-24 18:32:09 +00:00
Winson Chiu
1fd15d2073 Merge "Fix PackageSetting isUpdatedSystemApp and SYSTEM_EXT rescan" into rvc-dev 2020-02-24 18:29:21 +00:00
chaviw
b9c44aae79 Fix Display SurfaceControl leak
The DisplayContent was merging its transaction into the
RootWindowContainer's pendingTransaction. However, that transaction is
never applied so it was stuck in that transaction forever.

There's no need to merge to parent transaction when removing since
calling getPendingTransaction will already return the DisplayContent's
transaction.

Also added a forced Transaction.apply() when removing the DisplayContent
since there's a chance it may no be reachable when
performSurfacePlacement is called to apply all transactions.

Test: EncodeVirtualDisplayWithCompositionTest#testVirtualDisplayRecycles
No longer leaks SurfaceControls
Fixes: 149526716

Change-Id: I14aa5b2e0e14d75fb0285a1b7a511235064f621c
(cherry picked from commit 93938469fc)
2020-02-24 18:09:51 +00:00
Automerger Merge Worker
66de08ff73 Merge "Add atom and puller for AppOps with FeatureIds" into rvc-dev am: fd2f367df6
Change-Id: Ia4b20b378ed60949c8b3b38b58c822fb9b8b4a0a
2020-02-24 17:47:10 +00:00
Stanislav Zholnin
fd2f367df6 Merge "Add atom and puller for AppOps with FeatureIds" into rvc-dev 2020-02-24 17:37:45 +00:00
Automerger Merge Worker
9d0a4b8e8b Merge "Improved user callbacks on SystemService:" into rvc-dev am: 9fa3a870c6
Change-Id: I758326d752dfbaaf7c393b391027159593ce34e4
2020-02-24 17:08:59 +00:00
Felipe Leme
9fa3a870c6 Merge "Improved user callbacks on SystemService:" into rvc-dev 2020-02-24 16:59:32 +00:00
Automerger Merge Worker
a884b62333 Merge "UserspaceRebootLogger: query sys.boot.reason.last" into rvc-dev am: 2773260387
Change-Id: I9d41bd810932d376fe2705672a8a07381f20aff3
2020-02-24 16:59:03 +00:00
Nikita Ioffe
2773260387 Merge "UserspaceRebootLogger: query sys.boot.reason.last" into rvc-dev 2020-02-24 16:58:21 +00:00
Automerger Merge Worker
6d47e1591d [automerger skipped] Merge "Add DEBUG flag for rounded corner and display cutout path" into qt-qpr1-dev am: 353d26c897 -s ours am: 30d7e1c32e -s ours
am skip reason: Change-Id I87f04b50945e1500babdf9fa7ba9cdb37010fde8 with SHA-1 3bf9ca2727 is in history

Change-Id: I440048c05dea7eaa1b021898efe22319a51112e1
2020-02-24 16:55:15 +00:00
Automerger Merge Worker
c4e7f3430b Merge "Address api feedback" into rvc-dev am: 7d5dfe8f44
Change-Id: I14495ee2346275fd3be71d38c0aed26a87425d70
2020-02-24 16:55:07 +00:00
Automerger Merge Worker
f4133ec26c [automerger skipped] Merge "DO NOT MERGE Respect rounded.xml size in ScreenDecorations" into qt-qpr1-dev am: 688ebd6876 -s ours am: 547ddb0e60
Change-Id: I523783f2edbb7c38835b708d336197fcd6ce2dab
2020-02-24 16:55:01 +00:00
Automerger Merge Worker
30d7e1c32e [automerger skipped] Merge "Add DEBUG flag for rounded corner and display cutout path" into qt-qpr1-dev am: 353d26c897 -s ours
am skip reason: Change-Id I87f04b50945e1500babdf9fa7ba9cdb37010fde8 with SHA-1 3bf9ca2727 is in history

Change-Id: I60d0be497a66025937b6d2ab8513d35b72b3bcfb
2020-02-24 16:47:04 +00:00
TreeHugger Robot
353d26c897 Merge "Add DEBUG flag for rounded corner and display cutout path" into qt-qpr1-dev 2020-02-24 16:45:30 +00:00
Felipe Leme
339b7149af Improved user callbacks on SystemService:
* Renamed:

  onStartUser() -> onUserStarting()
  onStopUser() -> onUserStopping()
  onSwitchUser() -> onUserSwitching()
  onUnlockUser() -> onUserUnlocking()
  onCleanupUser() -> onUserStopped()
  isSupportedUser() -> isUserSupported()

* Added:

  onUserUnlocked()

Tested on automotive, which uses the callbacks to dump user metrics:

$ adb shell dumpsys car_service --user-metrics
adb shell dumpsys car_service --user-metrics
* User Metrics *
  no users starting
  no users stopping
Last 10 started users
  2020-02-21T19:44:47.101 - user=0 start=2020-02-21 19:44:45.357 unlocking=+885ms unlocked=+1s122ms
  2020-02-21T19:44:56.376 - user=10 start=2020-02-21 19:44:47.380 switch=+209ms unlocking=+8s262ms unlocked=+8s994ms
  2020-02-21T20:00:08.792 - user=11 start=2020-02-21 20:00:04.634 switch(from 10)=+351ms unlocking=+4s44ms unlocked=+4s156ms
Last 10 stopped users
  2020-02-21T20:00:48.323 - user=10 stop=2020-02-21 20:00:16.741 shutdown=+31s581ms

Test: m update-api
Test: atest BackupManagerServiceTest
Test: manual verification (see above)
Fixes: 150001654

Exempt-From-Owner-Approval: approved on master right before rvc split

Merged-In: I8774c57620030b9aa8e7ec039a6a758ad56db368
Change-Id: I8774c57620030b9aa8e7ec039a6a758ad56db368
(cherry picked from commit 58e7458ac7)
2020-02-24 16:44:52 +00:00
Julia Reynolds
7d5dfe8f44 Merge "Address api feedback" into rvc-dev 2020-02-24 16:39:40 +00:00
Automerger Merge Worker
547ddb0e60 [automerger skipped] Merge "DO NOT MERGE Respect rounded.xml size in ScreenDecorations" into qt-qpr1-dev am: 688ebd6876 -s ours
am skip reason: subject contains skip directive

Change-Id: I0e6c482e042e14f1b1eddd284fbd7a98dca574ce
2020-02-24 16:39:16 +00:00
Bill Lin
688ebd6876 Merge "DO NOT MERGE Respect rounded.xml size in ScreenDecorations" into qt-qpr1-dev 2020-02-24 16:27:20 +00:00
markchien
ea39018da1 Build framework-tethering against module_current
Test: build
Change-Id: Iad504f0e709daadfb4d86205c07f0faf429f5a8f
2020-02-25 00:22:44 +08:00
Joanne Chung
b0b721bbe0 Fix wrong parameter fieldIndex caused IndexOutOfBoundsException
The inline authentication change ag/10235929 changes the parameter of
createInlineSuggestion from fieldIndex to datasetIndex. However, the
passed parameter forget to change to datasetIndex. It is possible to
trigger IndexOutOfBoundsException when we have multiple fields but
only one dataset.

Bug: 149891961
Test: atest android.autofillservice.cts.inline.InlineAuthenticationTest
Test: Manual test by local sample
Change-Id: Iec074b14f2aa3fdb7de918ad684192921b9c5d65
2020-02-24 15:58:05 +00:00
Robert Carr
6d16c8c340 RESTRICT AUTOMERGE - Explicitly disable BLAST for SurfaceControlViewHost surfaces
Right now it crashes because the ViewRoot expects to receive a
BLAST surface but the WindowlessWindowManager doesn't support it.
Adding support should be relatively trivial (coming in a follow-up)
but we haven't tested it yet so suggesting merging this patch for
today.

Bug: 150000636
Test: Existing tests pass
Change-Id: I4b36d190c8f4f022dada656e02452034113a4000
(cherry picked from commit b4727e0f55)
2020-02-24 15:56:07 +00:00
Automerger Merge Worker
8ef9b979aa Merge "wifi: correct API name" into rvc-dev am: 14ebab3b19
Change-Id: I5770c94a846d255023c0321db1f12fe8f55f1ddb
2020-02-24 15:36:50 +00:00
Automerger Merge Worker
0271248808 Merge "Ensure staged rollback status is logged on boot" into rvc-dev am: 025b96ee57
Change-Id: I8125227e255af2b4944caece1489810328c32bc7
2020-02-24 15:36:19 +00:00
Stanislav Zholnin
7dcc51dc79 Add atom and puller for AppOps with FeatureIds
Bug: 136134050
Test: make statsd_testdrive && ./out/host/linux-x86/bin/statsd_testdrive 10074

Change-Id: Ic1d84b2f91e9b6857dda717ab21208d9f331be2f
2020-02-24 15:30:00 +00:00
Les Lee
14ebab3b19 Merge "wifi: correct API name" into rvc-dev 2020-02-24 15:29:21 +00:00
Gavin Corkery
025b96ee57 Merge "Ensure staged rollback status is logged on boot" into rvc-dev 2020-02-24 15:23:01 +00:00
Patrick Baumann
d3990130cb Disable caches for perf tests
Bug: 140788621
Test: atest PackageManagerPerfTest
Change-Id: Idba8ea4c53ceacd9e07a06717c44d5411aef45d8
2020-02-24 14:57:54 +00:00
Carmen Jackson
37887b2d4c Fix PinnerService SecurityException at boot
We were passing "system" as the callingPackage argument when calling
registerUidObserver, which is apparently invalid. null is a valid option
here and seems to pin everything as expected, so this change updates
this call to avoid the SecurityException.

Note that this SecurityException does not seem to have affected the
actual pinning of the expected files - we still pin the same files
before and after this change.

Bug: 147355976
Test: No longer see the SecurityException at boot. Running dumpsys
pinner at boot shows that the same files are pinned as before this
change, including the Camera app but not including a Launcher app.
After using the four-corner tap to bypass the setup wizard, the Launcher
app is pinned. This indicates that the uid observer worked correctly to
re-pin the Launcher app after it replaces the setup wizard.

Change-Id: I2cd845cb5fad3de251d110141dcd1af9ec3aa234
Merged-In: I2cd845cb5fad3de251d110141dcd1af9ec3aa234
(cherry picked from commit 96f6b2d1d9)
2020-02-24 13:48:07 +00:00
Nikita Ioffe
7bc82dd543 UserspaceRebootLogger: query sys.boot.reason.last
Also did a small refactoring in computeOutcome() method to make it work
for cases when boot reason has a sub-reason, e.g.:
reboot,mount_userdata_failed,no_userdata_in_fstab.

Test: adb shell svc reboot userspace
Bug: 148767783
Change-Id: I13474d8a5be9382f56fdc8f17cf201666492e60d
2020-02-24 12:27:06 +00:00
Jiyong Park
5f85c597df reduce the visibility of framework-minus-apex
statsd no longer depends on it.

Bug: 147128803
Test: m

Change-Id: Iae72b5cadf2c747a5c1a203959c6ebcd2953050c
2020-02-24 21:07:45 +09:00
shawnlin
16ba068293 Fixed not updating waterfall insets in DisplayCutout.inset()
Bug: 149975807
Test: atest DisplayCutoutTest
Change-Id: Ic672e0688bbafabdd67790936568f40f6c4a3dff
2020-02-24 18:00:22 +08:00
Automerger Merge Worker
020b636ab7 Merge "Add DSU default userdata partition size" am: 59d40857ad am: 026c077b36
Change-Id: I635689b5051e503f3cdcb5d06695bca01ea0572a
2020-02-24 09:39:04 +00:00
Automerger Merge Worker
34a82623f7 Merge "Revert "Revert "Always get window insets from server""" into rvc-dev am: 23c81a156e
Change-Id: I8563fd274466e1039c7b21896e3e82baeac0753f
2020-02-24 09:26:37 +00:00
Automerger Merge Worker
026c077b36 Merge "Add DSU default userdata partition size" am: 59d40857ad
Change-Id: I90d675f1ff0426c751b77442c6ce1c6e09fe6c72
2020-02-24 09:26:22 +00:00
Automerger Merge Worker
66d2c7d790 Merge "Update document of WindowMetrics#getSize" into rvc-dev am: 7cc1016022
Change-Id: I70c4e68738269fbc283dcaa77a83b4958f0c27dc
2020-02-24 09:26:17 +00:00
Charles Chen
23c81a156e Merge "Revert "Revert "Always get window insets from server""" into rvc-dev 2020-02-24 09:14:56 +00:00
Yo Chiang
9834448ca1 Add DSU default userdata partition size
Use DEFAULT_USERDATA_SIZE as userdata partition size if the calling
Intent desn't specify the userdata size or the specified size is zero.

Bug: 145891687
Test: adb shell am start-activity \
  -n com.android.dynsystem/com.android.dynsystem.VerificationActivity \
  -a android.os.image.action.START_INSTALL \
  -d file:///storage/emulated/0/Download/aosp_arm64-dsu_test.zip

Merged-In: I52767dfefef394403c5e16fcfd40792b14ff9a71
Change-Id: I52767dfefef394403c5e16fcfd40792b14ff9a71
(cherry picked from commit f41e145480)
2020-02-24 17:13:20 +08:00
Charles Chen
7cc1016022 Merge "Update document of WindowMetrics#getSize" into rvc-dev 2020-02-24 09:12:53 +00:00