Commit Graph

468813 Commits

Author SHA1 Message Date
JW Wang
7e5eaadc27 Rewrite the handling of session finished with success (4/n)
We only want to handle non-staged rollbacks here. Staged rollbacks are
handled elsewhere. Checks for new rollbacks can be replaced by
|!rollback.isStaged() && rollback.isEnabling()|.

Bug: 149069841
Test: atest RollbackTest StagedRollbackTest
Change-Id: I9488f94a76fdd4cedbfc494f9378d0baa054e057
2020-02-11 08:55:08 +08:00
TreeHugger Robot
fd0aa56f46 Merge "Fix race when show error dialogs" 2020-02-11 00:39:27 +00:00
Roshan Pius
1b028965bb Merge changes from topics "auto_wake_toggle_api", "network_rec_enabled"
* changes:
  WifiManager: Add API for auto wakeup feature toggle
  Settings.Global: Unmark NETWORK_RECOMMENDATIONS_ENABLED as @SystemApi
2020-02-11 00:36:25 +00:00
TreeHugger Robot
70cef08949 Merge "Make untrusted consistent" 2020-02-11 00:36:08 +00:00
TreeHugger Robot
862f1a2dd1 Merge "Ensure negative latencies are not being reported" 2020-02-11 00:35:37 +00:00
Chris Tate
f4650fe1d0 Merge "Send LOCKED_BOOT_COMPLETED on same queue as BOOT_COMPLETED" 2020-02-11 00:33:41 +00:00
Kweku Adams
4297b5da1c Let apps timeout into the RESTRICTED bucket.
Let apps that haven't been used in 4 days time out into the RESTRICTED
bucket (after being in the RARE bucket). Apps that timed out into the
RESTRICTED bucket can be pulled out of the bucket via prediction.

Bug: 145551233
Test: atest FrameworksServicesTests:AppStandbyControllerTests
Change-Id: I646b5c4e3d3b45bd0ba8404b5a0c3d26186737c0
2020-02-10 16:33:30 -08:00
Christophe Koessler
d3e7186a06 CountryDetector: Enable detector class override for automotive
The detector class to be used by the CountryDetectorService can be set
by overlaying config_customCountryDetector in the device config.

Test: atest CountryDetectorServiceTest
Bug: 141626568
Merged-In: I158abd6397e3102d13e431ba043e8ce45061b64a
Change-Id: I158abd6397e3102d13e431ba043e8ce45061b64a
(cherry picked from commit 34147601d8)
2020-02-11 00:31:54 +00:00
TreeHugger Robot
062ee548cd Merge "Changing op per auth keys to allow password" 2020-02-11 00:30:30 +00:00
Lucas Dupin
43d0124754 Add blurs to WAKE_AND_UNLOCK
Fixes: 148614710
Test: visual
Test: atest StatusBarKeyguardViewManagerTest
Change-Id: I0757118223b7bdc5b36284e13cfd114f4e61d372
2020-02-10 16:22:43 -08:00
Rhed Jao
0132d90b3f Merge "Support rich content for accessibility shortcut target" 2020-02-11 00:18:28 +00:00
Adam Bookatz
3bfbadb278 Merge "Reword USER_TYPE_PACKAGE_WHITELIST_MODE_LOG" 2020-02-11 00:18:14 +00:00
Joshua Duong
793f25df07 [adbwifi]: Add Settings metrics for adb wireless.
Bug: 111434128, 119492574

Test: make
Exempt-From-Owner-Approval: Cherry-pick
Change-Id: Ib18cefda42fd778f5868ba63007b0b18e83e2c4d
Merged-In: Ib18cefda42fd778f5868ba63007b0b18e83e2c4d
2020-02-11 00:10:21 +00:00
Yinglei Wang
6301099935 Merge "Revert "Partially revert "modify quick settings to adopt the accessibility state api""" 2020-02-11 00:10:18 +00:00
Automerger Merge Worker
7d23ea156f Merge "[GWP-ASan] Maybe initialise GWP-ASan from Zygote." am: bd37583811 am: ea611103df am: b9f2f13027
Change-Id: I9aa4f5bba27d2017b16df76dd7b6412b13fb980d
2020-02-11 00:08:13 +00:00
TreeHugger Robot
6757132332 Merge "LocationManager: move impl of setLocationEnabledForUser to server" 2020-02-11 00:06:26 +00:00
Chris Ye
473c84ff4c Access to Device Vibrator State
Add API to access vibrator state and vibrator state listener.

Bug: 135949568
Change-Id: I96636b432d581cea03a9fc9fecba4c08045f5006
2020-02-11 00:02:37 +00:00
Aniket Kumar Lata
cb658590c5 AudioService: no forced usage for media when hearing aid is connected
Undo forced usage for NO BT config set by wired device
connection or any other usage for media when hearing aid
device is connected.

Bug: 148883172
Test: plug USB headset, play music, connect hearing aid, verify music plays on hearing aid
Change-Id: I1db1d40eaf351fc6189ee8f8bb75003be374768a
2020-02-10 16:00:56 -08:00
Ilya Matyukhin
144bea08ed Remove redundant modifiers from the constants
Bug: 141335235
Test: build
Change-Id: If2a41e5e3f0cf6466c931b943defa02d7ad0dc8e
2020-02-10 16:00:33 -08:00
Ilya Matyukhin
7c09d39154 Add support for 2.2::FingerprintAcquiredInfo::START
Bug: 139317981
Test: build
Change-Id: If987a317857d9fefae675abd29ed4b822267b95a
2020-02-10 16:00:31 -08:00
TreeHugger Robot
245a76e405 Merge "Fixes NavigationBarFragment leak" 2020-02-11 00:00:21 +00:00
TreeHugger Robot
35c66ff599 Merge "Revert "Prevents an NPE when content provider is slow to start"" 2020-02-10 23:59:40 +00:00
Automerger Merge Worker
b9f2f13027 Merge "[GWP-ASan] Maybe initialise GWP-ASan from Zygote." am: bd37583811 am: ea611103df
Change-Id: Ifcfbb5db2271cdb5309bc8dce311753f8fbbc376
2020-02-10 23:58:39 +00:00
Automerger Merge Worker
30f56ad7e4 [automerger skipped] Merge "[adbwifi] Add Settings metrics for adb wireless." into stage-aosp-master am: 54701eab76 -s ours am: 1f5ff84804 -s ours
am skip reason: Change-Id Ib18cefda42fd778f5868ba63007b0b18e83e2c4d with SHA-1 5bc3c58134 is in history

Change-Id: I2d16259fa0c240463ce052ebe652a4a3c430c4d6
2020-02-10 23:55:11 +00:00
Automerger Merge Worker
2de8671a67 Merge "BluetoothA2dpSink System APIs now require BLUETOOTH_ADMIN permission" am: 88fba38a1c am: 940853b36f am: 87adc2705f
Change-Id: I315fc5ad3a124b3d38b4104c8afb35557d440b84
2020-02-10 23:53:01 +00:00
Fiona Campbell
d4eb295196 Add support for brightness as a float
Change the framework to handle brightness as a float rather than an int.

Test: AutomaticBrightnessControllerTest
BrightnessConfigurationTest
BrightnessMappingStrategyTest
BrightnessUtilsTest
DevicePolicyManagerTest
DisplayManagerServiceTest
DisplayTest
DozeScreenBrightnessTest
PowerManagerTest
PowerManagerVrTest
SettingsProviderTest

Exempt-From-Owner-Approval: Changing param from int to float

Change-Id: I413641cd987c5ec8f82753c0388a33f85a9682de
2020-02-10 23:44:40 +00:00
Automerger Merge Worker
ea611103df Merge "[GWP-ASan] Maybe initialise GWP-ASan from Zygote." am: bd37583811
Change-Id: I2fc64ff4d59e7089619be82eb7ef9907bf0de04c
2020-02-10 23:44:25 +00:00
Automerger Merge Worker
1f5ff84804 [automerger skipped] Merge "[adbwifi] Add Settings metrics for adb wireless." into stage-aosp-master am: 54701eab76 -s ours
am skip reason: Change-Id Ib18cefda42fd778f5868ba63007b0b18e83e2c4d with SHA-1 5bc3c58134 is in history

Change-Id: Ibe601a5fd474fcdb858fe5ee60bc8996e627e0c1
2020-02-10 23:41:24 +00:00
Automerger Merge Worker
87adc2705f Merge "BluetoothA2dpSink System APIs now require BLUETOOTH_ADMIN permission" am: 88fba38a1c am: 940853b36f
Change-Id: If38d061113e23af9f7edc4609130bd13b3466686
2020-02-10 23:40:42 +00:00
Ryan Mitchell
2ad1f912c0 Merge "Sort bag by attribute key when using libs" 2020-02-10 23:38:59 +00:00
Mitch Phillips
bd37583811 Merge "[GWP-ASan] Maybe initialise GWP-ASan from Zygote." 2020-02-10 23:35:26 +00:00
TreeHugger Robot
43d1067000 Merge "Add fullTracking to registerGnssMeasurementsCallback (implementation)" 2020-02-10 23:34:46 +00:00
Joshua Duong
54701eab76 Merge "[adbwifi] Add Settings metrics for adb wireless." into stage-aosp-master 2020-02-10 23:31:01 +00:00
Etan Cohen
221588b69a Merge changes from topic "wificond"
* changes:
  [WIFICOND][API] MacAddress + capability flags
  Revert "[WIFICOND][API] Update channel API from array to list"
2020-02-10 23:29:59 +00:00
Automerger Merge Worker
940853b36f Merge "BluetoothA2dpSink System APIs now require BLUETOOTH_ADMIN permission" am: 88fba38a1c
Change-Id: If1599cabe081cd259051ffd36e2a597443919de7
2020-02-10 23:29:58 +00:00
Automerger Merge Worker
c112ff7afa [automerger skipped] Merge "[adbwifi] Add Settings metrics for adb wireless." into qt-qpr1-dev-plus-aosp am: cbfb6a9221 -s ours
am skip reason: Change-Id Ib18cefda42fd778f5868ba63007b0b18e83e2c4d with SHA-1 5e931c7e2e is in history

Change-Id: I8c6f3be311600528de50b842e91437bc30b8318d
2020-02-10 23:29:50 +00:00
Automerger Merge Worker
c592b3d042 Merge "Update BluetoothPbap class description to indicate how to create an instance of the class, add intdef to return value of BluetoothPbap#getConnectionState, and move all SystemApis to require the BLUETOOTH_PRIVILEGED permission" am: cc89e59203 am: 687ef90ac5 am: ccc1ad01e8
Change-Id: Ie7d5fb2def3e86d488150cc271e788e346f2ac76
2020-02-10 23:29:19 +00:00
Automerger Merge Worker
e06d240bc4 Merge "Add OWNERS file for BootImageProfileTest" am: 95154ae4b2 am: a56b6ff35c am: 6afc99773e
Change-Id: Ic8dc61b8205e5858719014a61038d309c275e0ba
2020-02-10 23:28:45 +00:00
Steven Moreland
849ccdeafe Remove String16 operator<<, now provided in header
Bug: N/A
Test: N/A
Change-Id: Ic0418d81d37726dcfc100ce919b6f79be4077c8a
2020-02-10 15:28:41 -08:00
Joshua Duong
2ebefbd0dc [adbwifi] Add Settings metrics for adb wireless.
Bug: 111434128, 119492574

Test: make
Exempt-From-Owner-Approval: Cherry-pick
Merged-In: Ib18cefda42fd778f5868ba63007b0b18e83e2c4d
Change-Id: Ib18cefda42fd778f5868ba63007b0b18e83e2c4d
(cherry picked from commit 5bc3c58134)
2020-02-10 23:27:28 +00:00
Automerger Merge Worker
92128bf3ad [automerger skipped] Merge "Remove usage of android.os.Build.IS_USER" am: 9ead9f02ce am: d8d545d048 am: 63389badab -s ours
am skip reason: Change-Id I572736ff773e71e420a732aa4c56d5dceee1a454 with SHA-1 b30b3ba232 is in history

Change-Id: I6e9e7ad37b35b0be2d62b3603dc5e060541e305c
2020-02-10 23:25:36 +00:00
Joshua Duong
cbfb6a9221 Merge "[adbwifi] Add Settings metrics for adb wireless." into qt-qpr1-dev-plus-aosp 2020-02-10 23:25:30 +00:00
Shuo Qian
8ed9b2b2d7 Add VDBG for CellSignalStrengthLte, and CellSignalStrengthNr
Test: Manual; treehugger;
Bug: 146498052
Bug: 147439337
Change-Id: I37acc63fa3a10aaa21db987980becc57b5365e5c
2020-02-10 23:24:24 +00:00
Joshua Duong
5bc3c58134 [adbwifi] Add Settings metrics for adb wireless.
Bug: 111434128, 119492574

Test: make
Exempt-From-Owner-Approval: Cherry-pick
Merged-In: Ib18cefda42fd778f5868ba63007b0b18e83e2c4d
Change-Id: Ib18cefda42fd778f5868ba63007b0b18e83e2c4d
2020-02-10 23:24:11 +00:00
Ben Lin
04c83f6d87 Implement stretch-free resizing for PIP (input side).
This is a feature of two components:
1) Input code that takes user input around the PIP window border and
starts resizing
2) The actual resizing of the PIP task/stack that currently lives in WM,
but will live in SystemUI once migration is done to using Task Organizer

The CL only takes care of #1, the input side living in SystemUI.

Bug: 111426176
Test: Manually drag the corner of PIP window

Change-Id: If4b5e6ea5c482f4fa6eb571b441cf9e6966fbf4b
2020-02-10 15:20:38 -08:00
Tyler Gunn
a967af5514 Hide Adhoc conference call API.
Marking the adhoc conference call API as @hide.

Test: make -j update-api
Bug: 148165780
Change-Id: I447ec317c66f0c1b4e7a828635b5dcf8b144e32a
2020-02-10 15:19:07 -08:00
Kevin Han
d5ca459e97 Call entry clean up when removing pending entries
Classes that hooked on to NotificationEntryManager to add more state
would leak the entries because NotificationEntryManager wouldn't inform
them to clean up their state if NEM ends up removing a notification
that's pending inflation. This is because the notification isn't
technically "active" yet based off NEM's pipeline. We add this hook to
correct this.

This is not an issue in NotifCollection as it is unrelated to the
inflation pipeline and instantly considers an added notification
"active" when it's posted, so the removal/clean up callbacks are
actually called when it's removed shortly after posting.

Bug: 149212504
Bug: 149205483
Test: add + cancel notifications in Notify.apk
adb shell dumpheap com.android.systemui
Observe in heap dump that NotificationEntry's match up

Change-Id: I9e41399dd9ee0de853f39a47876d8c176a8d8b21
2020-02-10 15:18:46 -08:00
Treehugger Robot
88fba38a1c Merge "BluetoothA2dpSink System APIs now require BLUETOOTH_ADMIN permission" 2020-02-10 23:16:52 +00:00
joshmccloskey
b16c7e3d8e Ensure negative latencies are not being reported
Ensure that BiometricsService will not report negative latencies.
Test: Manual
Bug: 148408637

Change-Id: Ie6a22ebeff4711b5f51c787392e00cc8daf9129c
2020-02-10 15:13:01 -08:00
Automerger Merge Worker
ccc1ad01e8 Merge "Update BluetoothPbap class description to indicate how to create an instance of the class, add intdef to return value of BluetoothPbap#getConnectionState, and move all SystemApis to require the BLUETOOTH_PRIVILEGED permission" am: cc89e59203 am: 687ef90ac5
Change-Id: I6fd018513283a85d09da6ed7c229c6664c04d0dd
2020-02-10 23:11:35 +00:00