- when we navigate across multiple pages that access the app state
session, the resumed state for the session may become incorrect, which
leads to things that depends on the flag not being run properly. In
onResume(), first force pause the session, so that it will be in the
correct paused state so that the resume tasks will be run.
Change-Id: I6c27c98226a8e0fe99d9b80f1f4297c45a49b612
Fixes: 113272571
Test: manual
ag/4891733 changed DevicePolicyManager#getProfileOwnerAsUser() to call
into DPMService.getProfileOwnerAsUser() instead of getProfileOwner(). It
turns out that getProfileOwnerAsUser doesn't accept invalid userIds but
the latter method did.
This CL guards against calling that method if we don't have a valid
userId. The calling code just wants to know if a profile is managed but
I'm pretty sure a UserRecord pointing at a non-user can't be managed.
Test: Expand QS, tap user switcher icon
Change-Id: Idfe46cb6c0d25ba3817ae3639f87de70bbce2d0b
Fixes: 113777483
Also make the new lib only use system-apis.
This allows mainline module to use the new
RestrictedLockUtilsSettingLib.
Unfortunately the whole RestrictedLockUtils would have caused to much
new system-api. Hence it was split into RestrictedLockUtils and
RestrictedLockUtilsInternal. This caused a lot of trivial code changes.
Bug: 110953302
Test: Built
Change-Id: I693b3bf56f3be71f0790776e3aad5694717786ef
Make BluetoothEventManager fields final and remove the method to
unregister receivers unnecessarily (introduced in b/35415158).
Bug: 113122466
Test: runtest systemui && make RunSettingsLibRoboTests
Change-Id: I8f34ab1a809638959ab4096a829c72b3d1ac3a23
This is the first of a few sub-libraries that will get factored out of
the settings lib. These libs will be included by mainline modules which
are compiles against system-api.
Bug: 110953302
Test: Looked at UI
m -j RunRoboSettingsLibTests
Change-Id: I16347e565aca554d6a8653df35765c2194479e78
From current code, it will check if the device connected before
getConnectionState. We can remove this check logic because
HidHostService will do it.
Bug: 111812003
Test: manual - connect/disconnect HID keyborad from Settings UI
Change-Id: Ib512b3f15109b6f4cacf1f1c517b69d17ddd5ac4
In LocalBluetoothProfileManager, we will update profiles in constructor
by register service callback to bluetooth profiles. So the callback may
return before this constructor, in which case mBluetoothProfileManager
maybe null in LocalBluetoothMangaer.
This cl moves the updateLocalProfiles() out of the constructor, to make
sure we will first construct mBluetoothProfileManger and then connect to
bluetooth profiles.
Change-Id: I93a388cf0598555d26181a6b0da99dcb35f227dd
Fixes: 113290231
Test: RunSettingsRoboTests
Having consistent import order will reduce chance of merge
conflict between internal and external master
Test: rebuild
Change-Id: I9acb311ec05f72f0a37f08b0d26785841fe91de5
Remove wrapper for BluetoothA2dp
Remove BluetoothA2dpWrapper,
Use BluetoothA2dp to replace all of them.
Bug: 76167422
Test: RunSettingsLibRoboTests
Remove wrapper for LocationManager
Remove LocationManagerWrapper from SettingsLib
Bug: 76167422
Test: RunSettingsLibRoboTests
Test: flashed on a device and checked Legal information webview
Bug: 111179267
Change-Id: I322ddc6903c80840b6f5db7fb9623bfd02b02b40
Merged-In: I5b88fd1c311011300e7db0f010a64150993ba52d
The support library Preference class has code which hides the reserved
space for icons on small screens when there is no icon, but it expects
the icon container to have the id 'icon_frame', and our custom layout
was using a different id.
Bug: 111318404
Test: visual (set display size to Larger or Largest, and visit Developer
options; the Stay awake and OEM unlocking switches should be aligned the
same as other preferences without icons)
Change-Id: I1b5ac43851d77b87fe01f8267bb50ea23086e262
Some users forgot they had paired devices and couldn't see their BT device
when they search device in "Pair new device". (b/80382940, b/80133137).
Need to change the behavior to let paired devices can be shown on "Available devices".
Bug: 111738593
Test: Bluetooth Pairing Test
Change-Id: Iff0b40e422230fca9a3287bba4a3c4c7c4ce9cc0
- this was only for Android Ice Cream Sandwich
Bug: 112115770
Test: make -j42 RunSettingsLibRoboTests
Change-Id: I6c2b87529af7e6a7123cde8141fbdb9d1822ec9f
To make behavior consistent in the long run and refactor the code
into settingslib and call it from both Settings and SystemUI.
Bug: 110973964
Test: run testcase as below:
1. frameworks/base/packages/SettingsLib: -> ALL PASS
make RunSettingsLibRoboTests -j40
2. frameworks/base/packages/SystemUI: -> ALL PASS
atest frameworks/base/packages/SystemUI/tests/src/com/android/systemui
/statusbar/policy/NetworkControllerSignalTest.java
Change-Id: Ie8899dd5398a503b861557c222bbd93bd2049d10