• Home
  • History
  • Annotate
  • only in /frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/
History log of /frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
6ee81130c012a97679f0e7c89329c43c017aa15c 28-Jun-2018 Lei Yu <jackqdyulei@google.com> Add active admin app to power white list.

So user can't restrict it in settings app.

Bug: 110337989
Test: RunSettingsLibTests
Change-Id: Ie32dc8b2204369c9ca8f704436d5c988f76481ae
Merged-In: Ie32dc8b2204369c9ca8f704436d5c988f76481ae
(cherry picked from commit f5a13f8b3a0ce1a3ee6e49802e32db3f3fb38d6d)
ettingslib/fuelgauge/PowerWhitelistBackendTest.java
091a05730149b5cefa26a32734edc2971ecd2830 29-May-2018 Fan Zhang <zhfan@google.com> Add default phone/sms to battery whitelist apps.

This is to prevent essential default apps from being restricted in using
battery in the background.

Change-Id: Iac9db9c425a477680e41f73b2c0e7bc4e161ce9e
Merged-In: Iac9db9c425a477680e41f73b2c0e7bc4e161ce9e
Fixes: 76435804
Bug: 80428049
Test: robotests
ettingslib/fuelgauge/PowerWhitelistBackendTest.java
ettingslib/testutils/shadow/ShadowDefaultDialerManager.java
ettingslib/testutils/shadow/ShadowSmsApplication.java
6159842dec1f35a6f4e8b6cb1e5730bea43631e3 14-May-2018 Stanley Tng <stng@google.com> Fix the Hearing Aids connected state in Settings App

When two Hearing Aids devices are bonded, we should only show one device
in the Settings App and at the correct location based on the connected
state of the HA devices. When at least one HA device is connected, then
the Settings App should show it as connected. Otherwise, the Settings
App should show it as disconnected when both devices are disconnected.

Bug: 79760469
Test: Run the robotests for Settings and SettingsLib
Change-Id: I33e19af054b686b3d71b00dcbd6ff16febde6099
ettingslib/bluetooth/BluetoothEventManagerTest.java
ettingslib/bluetooth/CachedBluetoothDeviceManagerTest.java
e26aecd57bc6b65534606183d0310702e1f072a5 15-May-2018 ryanywlin <ryanywlin@google.com> Add connection state summary for android auto

Androd auto still need the summaries with "Connected*" strings,
use separate method for android auto.

Bug: 78936284
Test: make RunSettingsLibRoboTests ROBOTEST_FILTER=CachedBluetoothDeviceTest -j28
Change-Id: I0a5dff4ae231108f528f1cd2e2a25b2f4633ac99
ettingslib/bluetooth/CachedBluetoothDeviceTest.java
24044a78bd85fb03213421ac8a79a04ed6d95874 11-May-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Rename settings category." into pi-dev
15aa546a37eb54793f1c80111aa1046e3180afcf 11-May-2018 Ryan Lin <ryanywlin@google.com> Merge "Add Bluetooth callback for device connection state changed" into pi-dev
b76cd9709173febca6bc0020d3a391e55534015b 11-May-2018 Doris Ling <dling@google.com> Rename settings category.

- from night light to night display.

Change-Id: Ib09e1b9299478dc4e8dcee935e29c6886d9dc7b8
Fixes: 79530682
Test: make RunSettingsLibRoboTests
ettingslib/drawer/CategoryKeyTest.java
44de3a076d8903078c96e6b38564a16832996310 02-May-2018 ryanywlin <ryanywlin@google.com> Add Bluetooth callback for device connection state changed

With the new Multi-A2DP/HFP support, need to add profile connection state
changed callback for every BT device connect/disconnect to profile.

Bug: 76447449
Test: make RunSettingsLibRoboTests ROBOTEST_FILTER=LocalBluetoothProfileManagerTest -j28
Test: make RunSettingsLibRoboTests ROBOTEST_FILTER=BluetoothEventManagerTest -j28
Change-Id: Iaaec369e8d10f9b1270491632fb5c91de1e28571
ettingslib/bluetooth/BluetoothEventManagerTest.java
ettingslib/bluetooth/LocalBluetoothProfileManagerTest.java
245992c88088daef16dc55043788768bbbebe277 10-May-2018 Doris Ling <dling@google.com> Add new category keys.

Adding 2 new category keys for injecting dynamic tiles:
- night light
- gestures

Bug: 79530682
Bug: 79532703
Test: make RunSettingsLibRoboTests
Change-Id: I4e7f10c8abdf425f24d5b51bcc8a5f80faca5281
ettingslib/drawer/CategoryKeyTest.java
8003f88b8f3f29d8657468c786546c0ce76f5056 10-May-2018 Lei Yu <jackqdyulei@google.com> Merge "Add new method in PowerWhitelistBackend" into pi-dev
74b15db41f7f2fc1c5a6a1ee066bf35128bb1126 01-May-2018 Wei Wang <weiwa@google.com> Extend Location setting to show location usage within 24 hours.

Bug: 79089524

Test: manual, unit test.
Change-Id: I0058479a3b8e139c68c688e6e14f837a335bba6f
Merged-In: I0058479a3b8e139c68c688e6e14f837a335bba6f
ettingslib/location/RecentLocationAppsTest.java
3aec6d1e3f5e9f3cfd6ca95ad2335a652d0e5a65 09-May-2018 Lei Yu <jackqdyulei@google.com> Add new method in PowerWhitelistBackend

New method takes packageName array and check whether there is doze
package inside.

Bug: 77924141
Test: RunSettingsLibRoboTests
Change-Id: I54d1882397e7bc14176cdd44f2b773952a304e44
ettingslib/fuelgauge/PowerWhitelistBackendTest.java
f050932e2a7a35f9d64a77fcdaff475bdab8f749 29-Mar-2018 timhypeng <timhypeng@google.com> Update connected device summary

* Add dispatchAudioModeChanged() in CachedBluetoothDeviceManager for notify
CacheBluetoothDevice to update their summary
* Add 5 combination that used to show the summary of CacheBluetoothDevice
case 1: device battery not unknown and is a active device
ex: show summary as "Active, 100% battery"
case 2: device battery unkonwn and is a active device
ex: show summary as "Active"
case 3: device battery not unknown and not a active device
ex: show summary as "100% battery"
case 4: device battery unkonwn and not a active device
ex: not show the summary
case 5: device is in bonding state
ex: show summary as "Pairing..."

Bug: 78318415
Test: make -j50 RunSettingsLibRoboTests
Change-Id: I70bf5386ff045ef4f07fb86fbdc8b943befc634c
ettingslib/bluetooth/CachedBluetoothDeviceTest.java
1b25c9a89ca6e085224b037df89c3d9d39b14175 23-Apr-2018 timhypeng <timhypeng@google.com> Add isAudioModeOngoingCall function to check call status

*return true if it is in ringing/call/communication(VoIP) status

Bug: 78318415
Test: make -j50 RunSettingsLibRoboTests
Change-Id: Ifb84da386fcd5bf03eaccf78fc264fbad86a9707
ettingslib/UtilsTest.java
8491304cf673df186ab2adf59e3c0add6d454651 26-Apr-2018 Jovana Knezevic <jovanak@google.com> Merge "Fixes null-ref when trying to start Guest session." into pi-dev
c76929eb926a4ba506a4dfa986ea33443e1df58a 26-Apr-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Pipe the user restriction to the admin dialog" into pi-dev
6639c4dfa1a80191b34e70ca4b603ff5aab032f5 25-Apr-2018 jovanak <jovanak@google.com> Fixes null-ref when trying to start Guest session.

CarUserSwitchingDialog threw null-ref because Guest didn't have
a default avatar.

1. Adds null guard in case default avatar is not set.
2. Populates default Guest avatar correctly.

Fixes:77546931
Fixes:78588087
Test: Manual, observing the default icon when starting a guest session.
Manual, observing the switching dialog icon without a default icon.

Change-Id: Iacbfcc65147fdbc5515c0d96eb613fb17543f6b3
ettingslib/users/UserManagerHelperRoboTest.java
c0019874835341f5a4d3c429c5858630c9e2c791 24-Apr-2018 Tony Mak <tonymak@google.com> Pipe the user restriction to the admin dialog

This change allows us to show different strings for different user
restriction.

Instead of setting DevicePolicyManager.EXTRA_RESTRICTION everywhere
in Settings, EnforcedAdmin object now stores the restriction. So when
we are starting the admin dialog with the EnforcedAdmin object,
we can set the EXTRA_RESTRICTION bit.

Test: make RunSettingsLibRoboTests
Bug: 78443458

Change-Id: Iabc1629b9ed18f881cdc8c15ec5e49a4b50f76a4
ettingslib/RestrictedLockUtilsTest.java
106b1c0d804bcf4b875f987d8f3855f1ff67734a 24-Apr-2018 Fan Zhang <zhfan@google.com> Move brightness color conversion from SysUI to settingslib

The color space conversion logic in BrightnessController is also needed
by Settings app to display brightness percentage correctly. This change
moves the conversion logic to settingslib so it can be shared by other
UIs such as Settings/VrSettings.

Bug: 73810208
Test: atest RunSettingsLibRoboTests
Change-Id: If92f0da2d930fec797902b5d1b3731100e1d0ea4
ettingslib/display/BrightnessUtilsTest.java
16a56909a61ca9290d4e7e83e6f736cc853a6332 20-Apr-2018 Stanley Tng <stng@google.com> Fixed ConcurrentModificationException with HearingAids profile

Prevent ConcurrentModificationException crash when traversing the
mCachedDevices list by removing entries outside of the loop.

Bug: 78357837
Test: Runs ROBOTEST_FILTER=CachedBluetoothDeviceManagerTest make -j40 RunSettingsLibRoboTests
Change-Id: I27db2dc94a7d0108e9b848d187d4e5bc9f5b567c
ettingslib/bluetooth/CachedBluetoothDeviceManagerTest.java
64e497672d7111b99247d6ee3993b20327c910c4 17-Apr-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Make util method public" into pi-dev
2ee2b0a785adb98d481d2708fed8bb6325d46069 13-Apr-2018 Salvador Martinez <dehboxturtle@google.com> Make util method public

A utility method is private but we need it elsewhere. This CL
just makes it public. Also it restricts the use of the method to
just rounding positive values to positive multiples. It is only
meant for rounding time.

Test: robotests
Bug: 77874313
Change-Id: Ieb222c7f752b6a907fca5f91ddd4f4a4b67a0d2a
ettingslib/utils/PowerUtilTest.java
e504e1322e4ac1d67f1dfc82261dcdc9a8f48843 16-Apr-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add new function to get audio state" into pi-dev
ed344d1753c9d6f5199b181630deb15ebf08867e 16-Apr-2018 Isha Bobra <ibobra@google.com> Merge "Show only 1 entry for hearing aid device after killing the activity." into pi-dev
23b947e2458b3968f3ae611fe5aa73198921fe6a 31-Mar-2018 hughchen <hughchen@google.com> Add new function to get audio state

* Add getAudioState()
* Add isA2dpDevice() and isHfpDevice() in CachedBluetoothDevice

Bug: 74134939
Test: make RunSettingsLibRoboTests -j40
Change-Id: I18f4c1fcad0325a57de379f5ffe5b1135a00d084
ettingslib/bluetooth/CachedBluetoothDeviceTest.java
ettingslib/bluetooth/HeadsetProfileTest.java
c3d94130204ca72c7febb55500dc0d36c1dd99ff 09-Feb-2018 Isha Bobra <ibobra@google.com> Show only 1 entry for hearing aid device after killing the activity.

This CL detects Bluetooth hearing aid devices and tries to
combine the entry of the hearing aids with the same HiSyncIds and
shows only 1 entry for each pair in the connected devices list. This CL
works for scenarios just after pairing and reopening settings
activity after killing it.

This CL also has the logic to combine the entries just after pairing and
to forget both the devices on pressing forget for the combined entry.

Test: RunSettingsLibRoboTests
Bug: 74204427
Change-Id: Ib4c76eb0cae12937dd8403e37a0af8297a4aedc2
ettingslib/bluetooth/CachedBluetoothDeviceManagerTest.java
bb6b64dfb481ff998b54f5e7f061c2c960b6f42c 12-Apr-2018 HJ ChangLiao <hjchangliao@google.com> Add new category key for ConnectDeviceFrag

For inject dynamic pref driving mode to
ConnectDeviceDashboardFragment,
Add a new category key for register it.

Bug: 72458929
Test: make RunSettingsLibRoboTests
Change-Id: Ifbbc8fc0f7b68ef68aff550851767a4f8ad7d9e6
ettingslib/drawer/CategoryKeyTest.java
3f9520e6f36e1739718e584b9739df6363f218e4 13-Apr-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix the null check in LocalBluetoothProfileManager" into pi-dev
490d0201c4a35a7db02547bc5718485d39239d02 11-Apr-2018 Hansong Zhang <hsz@google.com> Fix the null check in LocalBluetoothProfileManager

Check mHidDeviceProfile != null before invoking
mHidDeviceProfile.getConnectionStatus()

Bug: 77856868
Test: manual; run LocalBluetoothProfileManagerTest
Change-Id: If3cc7d55265e6734176044e97b32a44e7b1a1a62
ettingslib/bluetooth/LocalBluetoothProfileManagerTest.java
a512d304ca30614418226d040996e4e77505b621 12-Apr-2018 Jovana Knezevic <jovanak@google.com> Merge "Separates current process user and foreground user" into pi-dev
82029aedff5c6ec11619a558bf7424718ef22403 03-Apr-2018 jovanak <jovanak@google.com> Separates current process user and foreground user

User switcher wrongly called methods on the current process user,
which is always User 0 for SysUI.

Instead, user switcher requires knowledge about foreground user.
The process of user switching = changing the foreground
user.

Split tests between unit and robolectric.
Robolectric tests enable shadowing ActivityManager and UserHandle.

Fixes:77485524
Test: Unit and robolectric tests.
Change-Id: I20cc32f132ce48b4507a6907bdc9d103c04f4a30
ettingslib/testutils/shadow/ShadowActivityManager.java
ettingslib/users/UserManagerHelperRoboTest.java
e745e4acdab52ab935b008f99f26794ad3124fe9 08-Apr-2018 timhypeng <timhypeng@google.com> Rename onProfileAudioStateChanged() to onAudioModeChanged()

* While receiving BluetoothHeadset.ACTION_AUDIO_STATE_CHANGED
and TelephonyManager.ACTION_PHONE_STATE_CHANGED intent dispath
onAudioModeChanged() callback.
* Rename onProfileAudioStateChanged() to onAudioModeChanged()

Bug: 74134939
Test: Build
Change-Id: Iaf037110adba907721f7342eeef360e65cb1da34
ettingslib/bluetooth/BluetoothEventManagerTest.java
69ade357413ea66fab63fe13be2efd68fd8e3a4f 09-Apr-2018 Makoto Onuki <omakoto@google.com> Merge "Once auto-battery saver is ever set, don't show suggestion" into pi-dev
e5b621a6af4a6baf0f6805b9c946ec3e4dfbf5b4 09-Apr-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Allow 3 variants of icon size in TwoTargetPreference." into pi-dev
874425d3f2238ca3fb6fdaf36af58fe09dbc5955 07-Apr-2018 Fan Zhang <zhfan@google.com> Allow 3 variants of icon size in TwoTargetPreference.

Bug: 77726902
Test: robotests
Change-Id: I2770e78827227edff28fcf7e9429c916780588b4
ettingslib/TwoTargetPreferenceTest.java
5972773e476eb2d5290c644e721016df19b8c9d6 04-Apr-2018 Makoto Onuki <omakoto@google.com> Once auto-battery saver is ever set, don't show suggestion

Bug: 77228046
Test: manual test after adb shell settings delete secure suppress_auto_battery_saver_suggestion
Test: m -j ROBOTEST_FILTER=BatterySaverButtonPreferenceControllerTest RunSettingsRoboTests
Test: b ROBOTEST_FILTER=BatterySaverUtilsTest RunSettingsLibRoboTests
Change-Id: Ib224263dc20e7844b7a79fe175fde26c773bd05a
ettingslib/fuelgauge/BatterySaverUtilsTest.java
919f606df9763f920850fc0fdc9beed526ea195b 06-Apr-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Update battery strings to respect user 24 hour setting" into pi-dev
b9e8cfa5d3f6351defddcdf1a36f9dc0e88b8217 05-Apr-2018 Salvador Martinez <dehboxturtle@google.com> Update battery strings to respect user 24 hour setting

ICU on android doesn't respect users 24 hour setting by default.
This CL makes it so that tell ICU what the users setting is so that
it will respect it.

Test: robotests updated
Bug: 77483888
Change-Id: I46eec2a10530b8b490f6a681c3a9b0a9dd4d68bd
ettingslib/utils/PowerUtilTest.java
ae7686534ea7e45da87f391a0ef2c153adb49dd5 05-Apr-2018 Lei Yu <jackqdyulei@google.com> Hide app if it shares uid with whitelisted app

Statsd blame app based on uid, which may mapping to multiple packages.
If there is one app in whitelist, then we shouldn't blame other apps
in same group.

Bug: 77560853
Test: RunSettingsLibTests
Change-Id: Ic21fea9701f9199c016674eaca3b0382e3a80837
ettingslib/fuelgauge/PowerWhitelistBackendTest.java
5b4eed556bd3b830bb3c9e35f964133767cd0443 30-Mar-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add isAudioOn() in HeadsetProfile" into pi-dev
8561d193f14214c39b2fd564ed0149019301bf08 28-Mar-2018 ryanywlin <ryanywlin@google.com> Add isAudioOn() in HeadsetProfile

* Add this API for checking audio status from BlueTooth Headset Service

Bug: 74130772
Test: ROBOTEST_FILTER="HeadsetProfileTest" make -j40 RunSettingsLibRoboTests
Change-Id: I80b3dbc8b0f9926859ff08f6849cafca89e940a7
ettingslib/bluetooth/HeadsetProfileTest.java
740d37193f4693eae4fdfff56c12e2589d080952 28-Mar-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Update wifi header summary text to show metered state" into pi-dev
9bd77dea82eba14e3e8d889ecfa50296277179ce 28-Mar-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Change the time format to short" into pi-dev
6f6fe75572350217e717d4f5465f3ad5918db436 22-Mar-2018 Salvador Martinez <dehboxturtle@google.com> Update wifi header summary text to show metered state

When we detect a network as metered or the user manually overrides
the metered state for a network we should show this in the summary
text for the network. This CL makes it so that this state overrides
the network speed when needed.

Test: robotests
Bug: 68030417
Change-Id: Ia1f3f0a537b6ff711a430466b83664d8f1cad0b6
ettingslib/wifi/WifiUtilsTest.java
128f56302dc6865427f7d60e0e419bdc7c224767 21-Mar-2018 Lei Yu <jackqdyulei@google.com> Change the time format to short

So it will show "2 days, 15 hr, 2 min" instead of "2d 15h 2m"

Bug: 76113036
Test: RunSettingsLibRoboTests
Change-Id: I31df2ac8e1ebc0616ef58ea2d21a50ca9788b392
ettingslib/utils/PowerUtilTest.java
ettingslib/utils/StringUtilTest.java
9753e774ce38bfe7f390f94c267b24c524616a2a 23-Mar-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Hearing Aid Profile: set and get activeDevice" into pi-dev
f3f86dd09e7bd608349a9caf9748530125163713 23-Mar-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Support CATEGORY_LEANBACK_LAUNCHER on tv devices." into pi-dev
0f4545ac6489e726dc6625853fcbd4732230b0ff 23-Mar-2018 Christine Franks <christyfranks@google.com> Merge "Allow developer options in retail mode" into pi-dev
538ba7ac353328a605384a9d2d2d429a84a56528 22-Mar-2018 Julia Reynolds <juliacr@google.com> Merge "Update duration text" into pi-dev
10e7b471581e20d85750effed672544278bb2510 14-Mar-2018 Leif Hendrik Wilden <leifhendrik@google.com> Support CATEGORY_LEANBACK_LAUNCHER on tv devices.

Bug: 73902033
Test: Manually tested.
Change-Id: I792f7b8f6182affe3621c1a8f0ffc8c4f132f480
ettingslib/applications/ApplicationsStateRoboTest.java
ettingslib/testutils/shadow/ShadowUserManager.java
4ccdede3e3514d4ee6f723d8c644a17ab706b0c4 20-Mar-2018 Julia Reynolds <juliacr@google.com> Update duration text

Change-Id: Ib390aaf1a82d28ab197628b09e80ca439c392eae
Fixes: 72651488
Bug: 74318867
Test: make -j RunSettingsLibRoboTests
ettingslib/utils/StringUtilTest.java
16a0dd2d5eeef320a80afe130e6c1e2946e8d2f1 20-Mar-2018 Makoto Onuki <omakoto@google.com> Implement new BS warning / notification flow (1/2)

- Show the battery saver confirmation dialog only for the first time.
- Start counting # of manual activations, which will be used in a
follow-up CL.

Bug: 74120126
Test: Manual tests with ./vendor/google_experimental/users/omakoto/android-battery-tester
Test: m -j ROBOTEST_FILTER=BatterySaverUtilsTest RunSettingsLibRoboTests
Test: cd frameworks/base/packages/SystemUI/tests && \
atest src/com/android/systemui/power/PowerUITest.java src/com/android/systemui/power/PowerNotificationWarningsTest.java
Change-Id: If6a081a6222e6a87c4cd332364c89856e7648a36
ettingslib/fuelgauge/BatterySaverUtilsTest.java
d5eab8b66855b9eacf57bb22b64a7c553beb5d2e 21-Mar-2018 Salvador Martinez <dehboxturtle@google.com> Merge "Update logging util to not crash on null" into pi-dev
d7b359165968199e034bd46ca97526dbf719602d 16-Mar-2018 Hansong Zhang <hsz@google.com> Hearing Aid Profile: set and get activeDevice

Add setActiveDevice() for Hearing Aid Profile in SettingsLib

Bug: 69623109
Test: robolectric test and manual test
Change-Id: I70eafe030747053876e2ab8a125d5dd01c5e0eb9
ettingslib/bluetooth/CachedBluetoothDeviceManagerTest.java
ettingslib/bluetooth/CachedBluetoothDeviceTest.java
77ff57992b40f5bf0483b7e81ade562c89b0c091 20-Feb-2018 Christine Franks <christyfranks@google.com> Allow developer options in retail mode

Bug: 70985064
Test: make -j100 && make RunSettingsLibRoboTests -j100
Change-Id: I900ea38c8ce0ceb041092a426e58db0cf0ed59f3
ettingslib/development/DevelopmentSettingsEnablerTest.java
6b0a9bc05495e880bbeed21e9d16d142ea61cc8b 20-Mar-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Move the setActiveDevice logic from Settings to SettingsLib (1/2)" into pi-dev
6a416327e5b52d6bb78202bd05a86ab84cf2304e 20-Mar-2018 Hansong Zhang <hsz@google.com> Move the setActiveDevice logic from Settings to SettingsLib (1/2)

Currently the Settings app handles the logic of setting active device;
however, this should be handled by SettingsLib so the logic can be shared.

Bug: 75984255
Test: robolectric test
Change-Id: Ia44e16c550d5b57c985e29e46e17044a895b495a
ettingslib/bluetooth/CachedBluetoothDeviceTest.java
97c85365abe2929f95b16b4fcb26db45cd400647 20-Mar-2018 Salvador Martinez <dehboxturtle@google.com> Update logging util to not crash on null

The logging for the wifi access points could cause a crash if
a bad scan result is passed in for any reason. This CL updates
it to be resilient to that by doing a best effort logging of
the scan results.

Bug: 74507895
Test: robotests
Change-Id: I4eaf948d7279374b1f4d009ef6f4fd0119f22ab7
ettingslib/wifi/WifiUtilsTest.java
a6268f8c9d7e59c77cf8e144ccd21547a1ffaede 19-Mar-2018 Jong Wook Kim <jongwook@google.com> Merge "Display that MAC is randomized in About Phones" into pi-dev
0c3904eb5a54da2f3c375d4b1e5d9269619846ea 14-Mar-2018 Jong Wook Kim <jongwook@google.com> Display that MAC is randomized in About Phones

When Connected MAC Randomization is enabled and the device is
disconnected, there isn't a valid MAC address to display since we don't
know what the device's next MAC address is going to be.

In such cases, display "MAC address is randomized" instead of an invalid
MAC address in About Phones page.

Bug: 73663275
Test: make RunSettingsLibRoboTests -j40
Change-Id: I0a4df2b1b0823632b26f90e097c26f47dd5a0a67
ettingslib/deviceinfo/WifiMacAddressPreferenceControllerTest.java
ba499efa7a139daf6d9c1b20b326fa762a081818 16-Mar-2018 Salvador Martinez <dehboxturtle@google.com> Softens one of the battery strings per UI request

Bug: 74448640
Test: robotests updated
Change-Id: I25a18dcad343fd0eeeeac504570eea7a1a325a1a
ettingslib/utils/PowerUtilTest.java
e93e77b5b23a208ea056543c64b7fdf4c110a868 12-Mar-2018 Lei Yu <jackqdyulei@google.com> Add sysWhitelistedAppsExceptIdle in whitelist

Add sysWhitelistedAppsExceptIdle to PowerWhitelistBackend so we
can get doze whitelist except idle. Now this list is used in
anomaly detection in settings.

Bug: 74241534
Test: RunSettingsLibRoboTests
Change-Id: I42619cbc9fe29f33f83fbd1517017db6016e3674
ettingslib/fuelgauge/PowerWhitelistBackendTest.java
75431913efb867a7052ffdd48eef6a5ed8ec4e08 12-Mar-2018 Beverly Tai <beverlyt@google.com> Merge "Using zen duration preference" into pi-dev
09da25f00d0d8cd6625b6ba6f184d4a182b04e7f 26-Feb-2018 Beverly <beverlyt@google.com> Using zen duration preference

Test: make ROBOTEST_FILTER=ZenDurationDialogTest RunSettingsLibRoboTests -j40
Bug: 73741459
Change-Id: Ide76ac8016b84f128c47ad3731eeced25dce8c73
ettingslib/notification/ZenDurationDialogTest.java
b9bac49370d7c3222028cb1036727d9fc4f51754 06-Mar-2018 Salvador Martinez <dehboxturtle@google.com> Fix duplicate text in battery string

The word 'about' was duplicated in the string. This CL fixes the
string and makes the tests for that particular string more robust.

Test: robotests
Bug: 74220105
Change-Id: Ifeff3e08a64c5f23b7a64dfc0d35ca912ce7f65a
ettingslib/utils/PowerUtilTest.java
3ae0efcc095255bcd13635decfbca614d60a11cd 01-Mar-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add default implementation to handle master dev option switch."
2c5079c6418742452265181fe09514d6856563de 01-Mar-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Auto set summary on preference during updateState"
7e91932382a2b94a144cbe2ae5778b346f19d725 01-Mar-2018 Doris Ling <dling@google.com> Add default implementation to handle master dev option switch.

- subclass that does not override the methods will inherit the default
behavior: preference will be enabled/disabled when the top level
developer options switch is turned on/off.

Bug: 73955632
Test: make RunSettingsLibRoboTests
Change-Id: I477170afd7eb4d74a807c933dcc254ff7a4bbd96
ettingslib/development/DeveloperOptionsPreferenceControllerTest.java
80fd74680e3fe5c5c97b8b75a1f5011692fca7e8 01-Mar-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Update battery discharging strings"
3ce7f37104358e094796d9a3257daa5f94415e17 28-Feb-2018 Fan Zhang <zhfan@google.com> Auto set summary on preference during updateState

Change-Id: Ibc24f3f041841d9fe7d53674a672bc2bacad895b
Fixes: 73950519
Test: robotests
ettingslib/core/AbstractPreferenceControllerTest.java
eec87364b48bcc2fa6367257031318bd2e8276c0 27-Feb-2018 Salvador Martinez <dehboxturtle@google.com> Update battery discharging strings

Changes were made to the strings for Settings and SysUI. This
CL updates the shared strings to reflect those changes.

Test: robotests
Bug: 73290523
Bug: 72996609
Bug: 73904361
Change-Id: I43e3185e4b0b59cc9c0ee2fd550096b3b472284f
ettingslib/utils/PowerUtilTest.java
964d718c249bf228b79168f22cad874b95408304 26-Feb-2018 Zhizhi Liu <zhizhiliu@google.com> Merge "Move IconCache to SettingsLib(I)."
c57ee73ca3d833aaff50a6ab148c7fc784bf6618 24-Feb-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Update the Bluetooth Active Device state in the Device Manager"
638084deaafaff3f6728ea117b2e8bbded72afc3 22-Feb-2018 Zhizhi Liu <zhizhiliu@google.com> Move IconCache to SettingsLib(I).

Aim to share IconCache between Settings & TvSettings.

Test: Compiled
Change-Id: Ia7c9807cea587b6d654c80f6dbbf43467f48cc5b
ettingslib/utils/IconCacheTest.java
c285d559fa8f0d597e8d5f1c8176dbb187e2d6ac 07-Feb-2018 Pavlin Radoslavov <pavlin@google.com> Update the Bluetooth Active Device state in the Device Manager

The Bluetooth Active Device state should be updated for all
CachedBluetoothDevice entries.
This should be done inside CachedBluetoothDeviceManager in SettingsLib
instead of BluetoothDeviceUpdater in the Settings app.

Also:
* Added a new CachedBluetoothDeviceManagerTest.java unit test
* Added a new method CachedBluetoothDevice.isActiveDevice()
for testing.

Bug: 72316092
Test: Manual - two headsets and switching the active device
Unit tests - "make RunSettingsLibRoboTests -j 40"
Change-Id: Ic3fbf667c66ed2de8e5c3352bc1ffd829a9052cf
ettingslib/bluetooth/CachedBluetoothDeviceManagerTest.java
ettingslib/bluetooth/CachedBluetoothDeviceTest.java
921687cbc404090b6cdbf30bef797c12fc56a3aa 21-Feb-2018 Dake Gu <dake@google.com> SettingsLib: Move DefaultAppInfo CandidateInfo from Settings

Bug: 3600711
Test: DefaultAppInfoTest moved from SettingsLib
m RunSettingsLibRoboTests
Change-Id: Iba7f60aacaf97774e8f120cccaacd1d1389fd227
ettingslib/applications/DefaultAppInfoTest.java
7fec7db2571e785fc4525a8e30724459b61b0e6e 23-Feb-2018 Justin Klaassen <justinklaassen@google.com> Revert "Comment out CustomEditTextPreferenceTest which is failing..."

This reverts commit 4dce2510f3fe76c2b883de5cca80f9d421cf9370.

Reason for revert: Breakage fixed by ag/3647277.

Change-Id: I827ea4a66b6b083040ae88f57e79bf6de728ad5e
ettingslib/CustomEditTextPreferenceTest.java
4dce2510f3fe76c2b883de5cca80f9d421cf9370 22-Feb-2018 Makoto Onuki <omakoto@google.com> Comment out CustomEditTextPreferenceTest which is failing...

... due to robo.

Until robo gets fixed.

Bug: 73744580
Test: treehuggger
Change-Id: If182ce10a8f24188443d6ed6e3e3ff8228d101d0
ettingslib/CustomEditTextPreferenceTest.java
22c3585c54f4bcaaf5ffe250ed99a2befc8e3e4f 16-Feb-2018 Aurimas Liutikas <aurimas@google.com> Remove uses of private Platform class in truth library.

Change-Id: I8d53ddb04fe5bccf70ef9db7bac8b37e34234ff6
Test: None
ettingslib/core/instrumentation/SharedPreferenceLoggerTest.java
c0451c36f9c91a081566980a11dd899b3066eb7a 15-Feb-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Unify automatic storage management enabled checks."
84522e056ec71240d6f21564e905fa5aa57b5251 24-Jan-2018 Daniel Nishi <dhnishi@google.com> Unify automatic storage management enabled checks.

By putting it in SettingsLib, it should be accessible to every app that
needs it.

This also adds in the ability for the framework to define default
behavior. The default behavior for the storage manager enabled status
may differ based upon the device.

Bug: 70893105
Test: SettingsLib Robotests
Change-Id: I9082a77f90289b8fa208c628dd3606000e19495b
ettingslib/UtilsTest.java
5e65c32218fba2aa973e62cd00bbf1a4f35c50fb 14-Feb-2018 Beverly <beverlyt@google.com> No alarm warning in dnd dialog if alarms allowed

Test: make ROBOTEST_FILTER=EnableZenModeDialogTest RunSettingsLibRoboTests -j40
Change-Id: I3a60e6e8e603ecf301076c875693e6fccf9d6ff4
Fixes: 73343468
ettingslib/notification/EnableZenModeDialogTest.java
5c50dc11b857dfdc265a4e0aa80fd7d17a62e7f6 12-Feb-2018 James Lemieux <jplemieux@google.com> Use external/robolectric-shadows/run_robotests.mk

This allows SettingsLib to test against the latest framework changes.

Also replaced TestConfig with traditional robolectric.properties.

Also reworked the test runner to avoid using deprecated API.

Bug: 73173204
Test: make -j56 RunSettingsLibRoboTests
Change-Id: Iebe130d6542ed7096147e3fff61f9cfd76aad948
ettingslib/CustomEditTextPreferenceTest.java
ettingslib/DeviceInfoUtilsTest.java
ettingslib/HelpUtilsTest.java
ettingslib/RestrictedLockUtilsTest.java
ettingslib/RestrictedPreferenceHelperTest.java
ettingslib/SettingsLibRobolectricTestRunner.java
ettingslib/TestConfig.java
ettingslib/TetherUtilTest.java
ettingslib/TwoTargetPreferenceTest.java
ettingslib/UtilsTest.java
ettingslib/applications/ServiceListingTest.java
ettingslib/bluetooth/A2dpProfileTest.java
ettingslib/bluetooth/CachedBluetoothDeviceTest.java
ettingslib/bluetooth/UtilsTest.java
ettingslib/core/AbstractPreferenceControllerTest.java
ettingslib/core/instrumentation/MetricsFeatureProviderTest.java
ettingslib/core/instrumentation/SharedPreferenceLoggerTest.java
ettingslib/core/instrumentation/VisibilityLoggerMixinTest.java
ettingslib/core/lifecycle/LifecycleTest.java
ettingslib/development/DevelopmentSettingsEnablerTest.java
ettingslib/development/EnableAdbPreferenceControllerTest.java
ettingslib/development/LogdSizePreferenceControllerTest.java
ettingslib/development/LogpersistPreferenceControllerTest.java
ettingslib/development/SystemPropPokerTest.java
ettingslib/development/SystemPropertiesTestImpl.java
ettingslib/deviceinfo/BluetoothAddressPreferenceControllerTest.java
ettingslib/deviceinfo/ConnectivityPreferenceControllerTest.java
ettingslib/deviceinfo/ImsStatusPreferenceControllerTest.java
ettingslib/deviceinfo/IpAddressPreferenceControllerTest.java
ettingslib/deviceinfo/SerialNumberPreferenceControllerTest.java
ettingslib/deviceinfo/SimStatusImeiInfoPreferenceControllerTest.java
ettingslib/deviceinfo/UptimePreferenceControllerTest.java
ettingslib/deviceinfo/WifiMacAddressPreferenceControllerTest.java
ettingslib/drawer/CategoryKeyTest.java
ettingslib/drawer/CategoryManagerTest.java
ettingslib/drawer/TileUtilsTest.java
ettingslib/fuelgauge/PowerWhitelistBackendTest.java
ettingslib/graph/BatteryMeterDrawableBaseTest.java
ettingslib/graph/BluetoothDeviceLayerDrawableTest.java
ettingslib/license/LicenseHtmlGeneratorFromXmlTest.java
ettingslib/license/LicenseHtmlLoaderTest.java
ettingslib/location/RecentLocationAppsTest.java
ettingslib/notification/EnableZenModeDialogTest.java
ettingslib/suggestions/SuggestionControllerMixinTest.java
ettingslib/suggestions/SuggestionParserTest.java
ettingslib/testutils/shadow/SettingsLibShadowResources.java
ettingslib/testutils/shadow/ShadowPackageManagerWrapper.java
ettingslib/testutils/shadow/ShadowUserManager.java
ettingslib/utils/PowerUtilTest.java
ettingslib/utils/StringUtilTest.java
ettingslib/utils/ThreadUtilsTest.java
ettingslib/widget/AnimatedImageViewTest.java
ettingslib/widget/FooterPreferenceMixinTest.java
ettingslib/widget/FooterPreferenceTest.java
ettingslib/wifi/AccessPointPreferenceTest.java
ettingslib/wifi/TimestampedScoredNetworkTest.java
ettingslib/wifi/WifiUtilsTest.java
592ca040563a84ae7e5c24bba374bb6972041483 08-Feb-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Use proper string formatting for the "Active device" string"
1c12690fc69c7d95e1c8a003e075a8074f8b58ba 08-Feb-2018 Fan Zhang <zhfan@google.com> Merge "Move dev option restriction check from app to controller."
e6e080ff5cb9c7c56003695c1b787981e0114599 06-Feb-2018 Pavlin Radoslavov <pavlin@google.com> Use proper string formatting for the "Active device" string

* The hard-coded "active" / "active(media)" / "active(phone)" strings
are removed and replaced with proper XML-based string formatting.
* Added the appropriate strings for Bluetooth Audio Active Device status:
"bluetooth_audio_active_device_summaries". For now those strings are
marked as translatable="false" until the actual UI is finalized.
* Updated all "bluetooth_connected*" strings to include the new
"active_device" component.
* Added unit tests for the new "active" strings.
Also, updated existing unit tests to check the getConnectionSummary()
strings by comparing against strings embedded within the unit tests.

Bug: 72317067
Test: Unit tests added: make RunSettingsLibRoboTests -j40
Manual: two headsets and switching the active device
Change-Id: Ide639b5dfb45c1db8114155240f193249aeaf3be
ettingslib/bluetooth/CachedBluetoothDeviceTest.java
6da958a999ed8f26f48fab03ea09893cfcfcec5c 07-Feb-2018 Fan Zhang <zhfan@google.com> Move dev option restriction check from app to controller.

Dev option is not supposed to show up when there is a user restriction.
However the restriction is sometimes not applied universally. So let's
move the check into controller and avoid handling this logic ad-hoc.

Change-Id: Iab85c90a7c43330abb66bf63dc4c70fb69bc3757
Fixes: 72815875
Test: robotest
ettingslib/development/DevelopmentSettingsEnablerTest.java
ettingslib/testutils/shadow/ShadowUserManager.java
eb9ab29ec6e7e3fe01610b5a8244587d98fa414f 20-Jan-2018 Salvador Martinez <dehboxturtle@google.com> Add shared strings to settingsLib

Now that hybrid notifications exist in SysUI these strings should
be moved into settingsLib so we don't duplicate them. Additionally
several utility methods were moved so that they could be shared to
help keep behavior and strings consistent between different system
components that show battery time remaining.

Test: robotests
Bug: 65656091
Bug: 66909350
Bug: 67469159
Change-Id: Ifdaf02cf39354ed0088560490eabf8b101788a83
ettingslib/utils/PowerUtilTest.java
ettingslib/utils/StringUtilTest.java
e975a4242ad5f76afc1674512c80755c5fccc73c 05-Feb-2018 Beverly <beverlyt@google.com> Adding warning text to dnd dialog

Test: make ROBOTEST_FILTER=EnableZenModeDialogTest RunSettingsLibRoboTests -j40
Bug: 72494029
Change-Id: I581f5da71616573b9b76176fdfc3d5cbbfa47005
ettingslib/notification/EnableZenModeDialogTest.java
3b0e0574cd04129dfc21db64f571a6d955ca5d5e 31-Jan-2018 Leif Hendrik Wilden <leifhendrik@google.com> Migrate to lifecycle events from architecture components.

Bug: 70572789
Test: Added unit test. Manual: adb logcat -b events | egrep "(sysui_|notification_)".
Change-Id: If249f16c06ac439c6da1e419142bff6f22ffb0c9
ettingslib/core/instrumentation/VisibilityLoggerMixinTest.java
eabb7e5c5c6d9a36d5eb2efe39f7c221d7abd413 29-Jan-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Remove double cache eviction logic."
093518ee51dfec30118e37b6ad7f1cd86a566965 26-Jan-2018 Zhizhi Liu <zhizhiliu@google.com> Merge "Migrate some Suggestions related classes to SettingsLib(I)."
04f7f34a713062ec3fd54a4c19481e9f76819899 24-Jan-2018 Sundeep Ghuman <sghuman@google.com> Remove double cache eviction logic.

WifiTracker and AccessPoint both maintain their own caches of
ScanResults and dictate their own grouping logic. This leads to various
issues, such as dropping APs during network selection. Remove the double
cache eviction logic, making WifiTracker the source of truth for
evicting and grouping ScanResults.

Consolidate on AccessPoint time based eviction logic. In place swap of
logic, with subsequent wifi tracker clean up and cache rekeying to
follow in later CLs. Logic was left as close to original location for
reviewer ease and will be rearranged in following CLs.

Moves existing key generation logic from AccessPointPreference into
AccessPoint.java

BUG: 64989100
Test: runtest runtest --path
frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/AccessPointTest.java
runtest --path
frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/WifiTrackerTest.java
make RunSettingsLibRoboTests
make RunSettingsRoboTests
Manual inspection of WifiSettings jitter when changing networks / moving
across floors.

Change-Id: Id30a34b08e14fc8da2c9d29dfcb5d1e8973cc18c
ettingslib/wifi/AccessPointPreferenceTest.java
ettingslib/wifi/WifiUtilsTest.java
50bdbe3e2ff56948a4589333e53cdd60e72eb5b6 25-Jan-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add key to store location changer"
502af2192c6d291174efa434a70101f302a5bd97 04-Jan-2018 Pavlin Radoslavov <pavlin@google.com> Add support for Multi-A2DP state machines per device

* Update usage of A2dpService API calls that take BluetoothDevice
as an additional argument
* Update the description for BluetoothA2dp.connect()

Exempt-From-Owner-Approval: De-facto owner of the relevant changes is
the Bluetooth team.
Bug: 69269748
Test: Manual
Change-Id: I190ed48ef65bbc8b88b45f84ebd6ab3d21cf0b4e
ettingslib/bluetooth/A2dpProfileTest.java
0cba58f5dfe942bb0e10fb32b4a8a734461c1253 24-Jan-2018 Lifu Tang <lifu@google.com> Add key to store location changer

Store location changer into Settings.Secure

Modify quick settings to identify itself as location changer

Bug: 68779883
Test: Manual
Change-Id: I2c7a599e1383102685994d876e7160e164436a08
ettingslib/UtilsTest.java
673892c6c2135746bb0de33b0df70d4f42b7c6d1 25-Jan-2018 Leif Wilden <leifhendrik@google.com> Merge "Unrevert "Move instrumentation classes to SettingsLib to share between mobile/TV."""
d2c4f7f610789e912578b16a975d41e712e15aae 24-Jan-2018 Maggie Wang <yiranwang@google.com> Merge "Deprecate location modes"
5eb774884266e72b9e6f0caf79f4dc6b698d121c 24-Jan-2018 Leif Wilden <leifhendrik@google.com> Unrevert "Move instrumentation classes to SettingsLib to share between mobile/TV.""

This reverts commit 2e9781034f796826727a55ad36f8213a8d7452fb.

Reason for revert: NPE now fixed, test added, see b/72267201.

Change-Id: I63cf296675e526776e0bef334d30141ea98904c3
ettingslib/core/instrumentation/MetricsFeatureProviderTest.java
ettingslib/core/instrumentation/SharedPreferenceLoggerTest.java
ettingslib/core/instrumentation/VisibilityLoggerMixinTest.java
1a35c133d23422d09d56f1edcd6b222d83b39170 18-Jan-2018 Zhizhi Liu <zhizhiliu@google.com> Migrate some Suggestions related classes to SettingsLib(I).

Copy classes to SettingsLib from Settings so the code can be
shared with TvSettings.

Test: mmma SettingsLib/tests/robotests

Change-Id: If2d7db9d998af9d262a5e225c3b7a5cacb053542
ettingslib/suggestions/ShadowSuggestionController.java
ettingslib/suggestions/SuggestionControllerMixinTest.java
aa080f96763a9d38f21fb33de93216cd207a5930 05-Jan-2018 Maggie <yiranwang@google.com> Deprecate location modes

1. Mark public fields as deprecated: LOCATION_MODE, LOCATION_MODE_HIGH_ACCURACY, LOCATION_MODE_SENSORS_ONLY,
LOCATION_MODE_BATTERY_SAVING, LOCATION_MODE_OFF.

2. Add new public methods to LocationManager:
setLocationEnabled(boolean)
isLocationEnabled()
setLocationProviderEnabled(String, boolean)

3. Remove LOCATION_PREVIOUS_MODE and constant
LOCATION_MODE_PREVIOUS. Refactor code that references
LOCATION_MODE_PREVIOUS to use LocationManager.setLocationEnabled or
LOCATION_MODE_HIGH_ACCURACY.

4. Mark deprecated fields and methods as removed: LOCATION_PROVIDERS_ALLOWED, setLocationProviderEnabled(), isLocationProviderEnabled()

5. Refactor logic in Settings app and Quick Settings to call
LocationManager.setLocationEnabled() instead of setting location mode.

Bug: 70990911
Test: Manual
Change-Id: Ia49b385f8b6a358b62291983eb0146af0ecf8e02
ettingslib/UtilsTest.java
2e9781034f796826727a55ad36f8213a8d7452fb 22-Jan-2018 Leif Wilden <leifhendrik@google.com> Revert "Move instrumentation classes to SettingsLib to share between mobile/TV."

This reverts commit 58dccbe1e23c7ecb77c5716fe31d5c9d549124ff.

Reason for revert: Broke fingerprint setup flow. b/72267201

Change-Id: I9901d0ec077ff0a5b50f59a9f1b1c6156f6f09bd
ettingslib/core/instrumentation/MetricsFeatureProviderTest.java
ettingslib/core/instrumentation/SharedPreferenceLoggerTest.java
ettingslib/core/instrumentation/VisibilityLoggerMixinTest.java
58dccbe1e23c7ecb77c5716fe31d5c9d549124ff 11-Jan-2018 Leif Hendrik Wilden <leifhendrik@google.com> Move instrumentation classes to SettingsLib to share between mobile/TV.

Test: Compiles. Manually tested.
Change-Id: I8a56e9ee26e45e61435cbb84e7b177221f9d1dde
ettingslib/core/instrumentation/MetricsFeatureProviderTest.java
ettingslib/core/instrumentation/SharedPreferenceLoggerTest.java
ettingslib/core/instrumentation/VisibilityLoggerMixinTest.java
0cc6164081d8b80d5bb9ddcc78543f9e6cccf0d8 16-Jan-2018 Fan Zhang <zhfan@google.com> Fix flaky tests caused by WeakReference

Change-Id: I287195a37aeb0ff781420c2839ffff0391942f76
Fixes: 71867776
Test: robotest
ettingslib/core/lifecycle/LifecycleTest.java
ettingslib/development/LogpersistPreferenceControllerTest.java
ettingslib/widget/FooterPreferenceMixinTest.java
dd312ababe4db018307948f956fa482c81825ff9 28-Dec-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Move debug log summary to WifiUtils"
9ee9b39eb4582f0e53b4f40738949c20e28630d4 22-Dec-2017 jackqdyulei <jackqdyulei@google.com> Move debug log summary to WifiUtils

This cl is the first step to clean up the AccessPoint.

Bug: 70983952
Test: RunSettingsLibRoboTests
Change-Id: I23b5b4bee6f4533ea7e59ede3dc9c66af80bf0b6
ettingslib/wifi/WifiUtilsTest.java
47394cdbb839de1da5065a1b8a661c68cc690db9 21-Dec-2017 Tony Mantler <nicoya@google.com> Move ServiceListing to SettingsLib and add tests

Bug: 70902607
Test: RunSettingsLibRoboTests
Change-Id: I172092f8c249e76667136442080d5fd7a6a6ef01
ettingslib/applications/ServiceListingTest.java
ettingslib/testutils/shadow/ShadowPackageManagerWrapper.java
704c423ca3fac7742707c5e56a5f232cd7f414e7 12-Dec-2017 Maggie <yiranwang@google.com> Sort "Recent Location Requests" by recency.

The list of apps with recent location requests is currently displayed in
alphabetical order on device (Settings -> Security & Location ->
Location). Sort this list by recency: (1) apps that are currently
requesting location are displayed on the top. (2) For apps that are not currently
requesting location, the ones with most recent location request finish
time come first.

Bug: 70350519
Test: Robolectric
Test: manual
Change-Id: I5c757defcd7645d254c9c47e3c83f7e323247a71
ettingslib/location/RecentLocationAppsTest.java
e105512555ccdd0d9957c6d093a808a4ee7c9d82 18-Dec-2017 Tony Mantler <nicoya@google.com> Merge changes from topics "tv-settings-manage-power", "applicationsstate-lifecycle"

* changes:
Move PowerWhitelistBackend to SettingsLib
Move ApplicationsState to support lib Lifecycle
0189ce1b1727fb72728bba360c5e543086716b8e 16-Dec-2017 James Lemieux <jplemieux@google.com> Adopt robolectric 3.5.1

Bug: 70581603
Test: make RunSettingsLibRoboTests
Change-Id: I18dd5d74dae0570d2909998a0bab1d812b9f8f6e
ettingslib/SettingsLibRobolectricTestRunner.java
70676c1c0020e751e1417b13ebbbb271e4b40b70 15-Dec-2017 Tony Mantler <nicoya@google.com> Move PowerWhitelistBackend to SettingsLib

Bug: 70716754
Test: RunSettingsLibRoboTests
Change-Id: Ia6f94ff643080499a7631f69b08bc6d525a35162
ettingslib/fuelgauge/PowerWhitelistBackendTest.java
d69dfff066e290d0645524f47e5764688928792e 08-Dec-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Move codes generating html file from xml files to SettingsLib (2/2)"
fab2e2cbaab77d85c708ede54029b46d938f8e66 21-Nov-2017 Maggie <yiranwang@google.com> Send MODE_CHANGING broadcast before location mode change.

When location mode is about to change in Settings app, send
MODE_CHANGING broadcast.

Fixes: 28057031
Test: manual
Test: robotests
Change-Id: Id26325520211a8934c1670dfcd12e8d339766308
ettingslib/UtilsTest.java
8d923f0b8eddb119b5f928f0a626a5b4154220a2 01-Dec-2017 Jaekyun Seok <jaekyun@google.com> Move codes generating html file from xml files to SettingsLib (2/2)

LicenseHtmlGeneratorFromXml, LicenseHtmlLoader and indirecly AsyncLoader
shoud be commonly used by Settings and TvSettings.

So this CL will move them to SettingsLib.

Bug: 37763148
Test: building succeeded and tested on sailfish
make ROBOTEST_FILTER=LicenseHtmlGeneratorFromXmlTest RunSettingsLibRoboTests
make ROBOTEST_FILTER=LicenseHtmlLoaderTest RunSettingsLibRoboTests

Change-Id: I86b59d82c46b6c5f520a6be260363f1b6ffd43f4
ettingslib/license/LicenseHtmlGeneratorFromXmlTest.java
ettingslib/license/LicenseHtmlLoaderTest.java
b8d2cd41e9472d6f860f35ee9a073b89ba9507f0 27-Nov-2017 Doris Ling <dling@google.com> Fix ConcurrentModificationException in DashboardCategory.

Move the category tiles sorting logic into DashboardCategory, and change
all client access to the category tiles via the proper update methods
instead of modifying the list directly.

Change-Id: I479669abd8d1d0a8ee9a4113d8ad2244da56f4d8
Fixes: 69677575
Test: make RunSettingsLibRoboTests
ettingslib/drawer/CategoryManagerTest.java
ettingslib/drawer/TileUtilsTest.java
427cc5913d596a7ed43ef0e1f7f4f47d34de7ab4 15-Nov-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix NullPointerException in CustomEditTextPreference."
427e19e03a3d210acdaf14b128cd4c0bece5907a 14-Nov-2017 Doris Ling <dling@google.com> Fix NullPointerException in CustomEditTextPreference.

- check for valid dialog in getEditText() when trying to retrieve the
edit view from the dialog.

Change-Id: Ia8e2273ab0f3d75567ab16e1175bef88f7516a5d
Fixes: 69281837
Test: make RunSettingsLibRoboTests
ettingslib/CustomEditTextPreferenceTest.java
8f1dd82690a60d449365c7cff938e8a0bb982dfe 14-Nov-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Convert SettingsLib Lifecycle to Flatfoot"
ece840b115d531454d8f59533c7340ea05a4ba54 10-Nov-2017 Tony Mantler <nicoya@google.com> Convert SettingsLib Lifecycle to Flatfoot

Bug: 69257739
Test: m -j RunSettingsLibRoboTests
Change-Id: Iaf14f6f26689a54248bd27cffce0423e857181b9
ettingslib/core/lifecycle/LifecycleTest.java
ettingslib/development/LogpersistPreferenceControllerTest.java
ettingslib/widget/FooterPreferenceMixinTest.java
60303333dc8ad61e640992cee2b5c601be73faf8 14-Nov-2017 Jeffrey Huang <jeffreyhuang@google.com> Merge "Use uname instead of proc/version"
d32e79feb3b894288dde86c5b03bff241d816371 10-Nov-2017 jeffreyhuang <jeffreyhuang@google.com> Use uname instead of proc/version

- Update the displayed kernel version to use uname instead

Change-Id: Ie5078645ef88dfdcdbe648ea2e017b20f2579b0c
Fixes: 67006899
Test: Manual with settings app
ettingslib/DeviceInfoUtilsTest.java
1b1e16bb8f72fbca075642c2775f53e847180b8b 10-Nov-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Show/hide preference instead of removing it in display."
7293cf44ba3a2cb7be4a47790d31aa294d86609f 07-Nov-2017 Fan Zhang <zhfan@google.com> Show/hide preference instead of removing it in display.

Bug: 68956750
Test: robotests
Change-Id: I159cc183fd38b1f75fcc20f347220a882dfa0fc6
ettingslib/core/AbstractPreferenceControllerTest.java
ettingslib/development/EnableAdbPreferenceControllerTest.java
ettingslib/deviceinfo/SerialNumberPreferenceControllerTest.java
af68d729738a028da585ddf0f82128fee7587d79 07-Nov-2017 jackqdyulei <jackqdyulei@google.com> Fix test breakage in settingslib

If we bump up the API level to 26 in settingslib robo tests,
BatteryMeterDrawableBaseTest has test failure.

This cl fix it by inject to the critical level and bump up API
level.

Bug: 69001622
Test: RunSettingsLibRoboTests
Change-Id: I1b70d9ac23be000efbaed3edcef912e6787ebc5c
ettingslib/TestConfig.java
ettingslib/graph/BatteryMeterDrawableBaseTest.java
2c7a5288c1dec81d1398c9ee72c2f182493262a9 07-Nov-2017 Fan Zhang <zhfan@google.com> Add method to show/hide preference in base controller

- Reformat AbstractPreferenceController
- Also drive by fix: move UserIconDrawableTest to integ test.

Bug: 68956750
Test: robotests
Test: atest UserIconDrawableTest
Change-Id: I9812f0e169b520e56c088b325b9267e94d7fbc29
ettingslib/core/AbstractPreferenceControllerTest.java
ettingslib/core/PreferenceControllerTest.java
ettingslib/drawable/UserIconDrawableTest.java
ae00783dd5912bbfbfe2af2464af9d95791d2b20 02-Nov-2017 Lu Chen <happyluchen@google.com> Merge "Fix possible NPE crash when adding new accounts in Settings."
e77b8279607d82defe5b7c35c95228b117508bbf 01-Nov-2017 Lu Chen <happyluchen@google.com> Fix possible NPE crash when adding new accounts in Settings.

Test: make RunSettingsLibRoboTests -j40
Bug: 68005130
ettingslib/RestrictedLockUtilsTest.java
4ac34c4a87ab1387d759f90812eee89680bf2154 01-Nov-2017 jeffreyhuang <jeffreyhuang@google.com> Prevent monkey from turning off adb

Change-Id: If3c8aca2d09abfaa77fb8d1d2f16809caebb7a35
Fixes: 68707778
Test: make RunSettingsRoboTests -j40
ettingslib/development/EnableAdbPreferenceControllerTest.java
36a88956f89c2874f55ac364a03f9ced51a54d95 31-Oct-2017 Hansong Zhang <hsz@google.com> Merge "Fix Robolectric Bluetooth tests" am: 01c9c0e4ba am: 2f1cb548ba
am: d327f7a576

Change-Id: I13676ddd4498df457ad11918ad73bfcdcf3297a1
d327f7a57612b824c933d9514c73e25d6fbb5132 31-Oct-2017 Hansong Zhang <hsz@google.com> Merge "Fix Robolectric Bluetooth tests" am: 01c9c0e4ba
am: 2f1cb548ba

Change-Id: Ifded4e54edd53242a40d3f8e123f614cd6e44d84
b235036e0a57b984503f3f74f5d772f141109f66 31-Oct-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Move the bluetooth icon logic to settingslib"
1c1bc25dfc1c68fb7c8955ac5767136272dd2aaf 31-Oct-2017 Hansong Zhang <hsz@google.com> Fix Robolectric Bluetooth tests

The Bluetooth HID profile name BluetoothInputDevice is recently changed
to BluetoothHidHost, but it is not updated in the SDK for Robolectric
tests, and it causes problems with SettingsLib tests. Thus, we need to
replace the HID profile use case with PAN. This change will not
influence the test coverage.

Test: make RunSettingsLibRoboTests
Bug: 68213274
Change-Id: If30ef0e82252d8f7229815b80e403ae63ab10643
ettingslib/bluetooth/CachedBluetoothDeviceTest.java
a93c40eee2829fb6f6bdbd077332ccc32078165f 29-Oct-2017 Fan Zhang <zhfan@google.com> Allow small icons in TwoTargetPreference

Bug: 65182905
Test: robotests
Change-Id: I080001325dfc0a5a2a899f3b0331d04fa978309c
ettingslib/TwoTargetPreferenceTest.java
c484ece9bbd4cdbb41a0cc5944e89d2cfd0c7ecd 27-Oct-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Move BluetoothA2dpWrapper to the wrapper package."
c9d6a17f906f127f91792b90fdd18975df6e3216 19-Sep-2017 jackqdyulei <jackqdyulei@google.com> Move the bluetooth icon logic to settingslib

This cl contains the moving about:
1. Several methods in Bluetooth/Utils.java
2. Bluetooth icon drawables
3. Bluetooth strings
4. Tests

After this cl, in quick settings detail page we could display
specific bluetooth icon(i.e. laptop, phone) with battery level.

Bug: 65488978
Test: RunSettingslibRoboTests

Change-Id: I92d2780825a986e40404dd4651e45914ca9a09eb
ettingslib/bluetooth/UtilsTest.java
18de91260b03d449e41c4e59c27e01575e4b35ad 25-Oct-2017 Lei Yu <jackqdyulei@google.com> Merge "Add paddings when drawing in battery icon"
5466c8f22aecb61e7b520997198878830cd103bb 23-Oct-2017 jackqdyulei <jackqdyulei@google.com> Add paddings when drawing in battery icon

When drawing the exclamation and battery level text, we should
also consider the padding and bounds since they may not be 0
in bt battery icon.

Bug: 68079736
Test: Screenshots & SettingsLibRoboTests
Change-Id: I558e3703489338f8e443d8e56da7576ae03c59a9
ettingslib/graph/BatteryMeterDrawableBaseTest.java
88920145c2b942a568ddd94162cc2b27b68d7823 21-Oct-2017 Tony Mantler <nicoya@google.com> Move SimStatus and ImeiInfo Pref Controllers to SettingsLib

Bug: 67410808
Test: RunSettingsLibRoboTests
Change-Id: I877d0338c28b4ebcf561d34875cb73c58aa32751
ettingslib/deviceinfo/SimStatusImeiInfoPreferenceControllerTest.java
eb086514d2d43087fa04fb285a5e535e263f878a 16-Oct-2017 Fan Zhang <zhfan@google.com> Request focus when EditTextPreference opens

Change-Id: I2f755f7045836b5e95825029f9a494369a2af109
Fixes: 67759420
Test: robotests
ettingslib/CustomEditTextPreferenceTest.java
94f8d9f28891db648aca95f0b6711ebb4c9ebe56 10-Oct-2017 Fan Zhang <zhfan@google.com> NPE Guard lifecycle in preference controllers

Bug: 65492237
Test: robotests
Change-Id: I8a83da46e038e8d99870b2bf4b640d734fd4d1f6
ettingslib/deviceinfo/UptimePreferenceControllerTest.java
32f38bde730a338017363e5afd275e1d888ae048 10-Oct-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge changes from topic "StatusFragment"

* changes:
Update to Robolectric 3.4.2
Convert more of StatusFragment to PreferenceControllers
f6631bf618477372bca3d4accae96553af2ae1d3 10-Oct-2017 Tony Mantler <nicoya@google.com> Update to Robolectric 3.4.2

Bug: clean-up
Test: RunSettingsLibRoboTests
Change-Id: Id812a4d8aa6b1a4260d73087b742b043e79ab6a1
ettingslib/RestrictedLockUtilsTest.java
ettingslib/SettingsLibRobolectricTestRunner.java
ettingslib/TestConfig.java
ettingslib/core/lifecycle/LifecycleTest.java
ettingslib/deviceinfo/ImsStatusPreferenceControllerTest.java
ettingslib/drawer/TileUtilsTest.java
ettingslib/suggestions/SuggestionParserTest.java
ettingslib/testutils/shadow/SettingsLibShadowResources.java
48085a8f3a24cbd98022cd1c3b9447abc97816e8 10-Oct-2017 jeffreyhuang <jeffreyhuang@google.com> Add more test to LogdSizePreferenceController

- Added additional tests

Bug: 34203528
Test: make RunSettingsLibRoboTests -j40
Change-Id: I92297a4cfd6175b9dd684a17b3060f89c2bedc31
ettingslib/development/LogdSizePreferenceControllerTest.java
ettingslib/development/SystemPropertiesTestImpl.java
73f950dd04a579a11829f6fe426217bc4c1b7a25 06-Oct-2017 Tony Mantler <nicoya@google.com> Convert more of StatusFragment to PreferenceControllers

Bug: 67410808
Test: RunSettingsLibRoboTests
Change-Id: I0184255878155124dc798137cfbf5aa1270e8ef6
ettingslib/deviceinfo/BluetoothAddressPreferenceControllerTest.java
ettingslib/deviceinfo/ConnectivityPreferenceControllerTest.java
ettingslib/deviceinfo/ImsStatusPreferenceControllerTest.java
ettingslib/deviceinfo/IpAddressPreferenceControllerTest.java
ettingslib/deviceinfo/UptimePreferenceControllerTest.java
ettingslib/deviceinfo/WifiMacAddressPreferenceControllerTest.java
f43b986e2054ecf2ea70ed3f80df8cc8d586cbea 04-Oct-2017 Tony Mantler <nicoya@google.com> Move SerialNumberPreferenceController to SettingsLib

Bug: 67410808
Test: RunSettingsLibRoboTests
Change-Id: I6571934af7ff4015dad1e4400f52ab5b7bca0c5d
ettingslib/deviceinfo/SerialNumberPreferenceControllerTest.java
0c1739aae44b1271c3c4fe4e2d07c79a93f0718c 26-Sep-2017 jackqdyulei <jackqdyulei@google.com> Merge "Update the bt background color." into oc-mr1-dev am: 4a324cb196
am: da95863025

Change-Id: I31e6dbb096f893c06bdf9613ec98ca4ba0869bf4
b4f8a0be8df351986b24091439339ad7db70d383 22-Sep-2017 jackqdyulei <jackqdyulei@google.com> Update the bt background color.

The previous cl pass in the resource id rather than real color.
This cl fix the bug.

Bug: 65397557
Test: RunSettingslibRoboTests
Change-Id: I9dafc8bef6adf48b37eba4deff7462f9ba83a695
ettingslib/graph/BluetoothDeviceLayerDrawableTest.java
f651e0c0168bb6b3a1740348870b1fe2193ed40a 20-Sep-2017 Ajay Nadathur <ajayns@google.com> Merge "Deferred setup banner updates intermittently" into oc-mr1-dev am: 19e00be16b
am: f4f1c4d425

Change-Id: I0045019061b59d08e576a0c343f694804668870a
f16ea680f5aefc6994adb9b7be6b60dbe599f323 15-Sep-2017 Doris Ling <dling@google.com> Move BluetoothA2dpWrapper to the wrapper package.

- and get rid of the interface/impl implementation.

Change-Id: Ic9c6f15f388d1ca25af2fc9cfd688440b579a900
Fixes: 65634579
Test: make RunSettingsLibRoboTests
ettingslib/bluetooth/A2dpProfileTest.java
d1b730b940ee4ff40280ef3b256273db2d0ac139 15-Sep-2017 Ajay Nadathur <ajayns@google.com> Deferred setup banner updates intermittently

bug: 65641145
Test: Manually tested, robolectric tests added
Change-Id: Ic4e770d33ee455c9d9281d04b9b8c9588674037e
ettingslib/drawer/TileUtilsTest.java
c57a9334b68485f28b3c384e27056927efae5b7a 15-Sep-2017 Lei Yu <jackqdyulei@google.com> Merge "Change battery icon to the side of bt icon" into oc-mr1-dev am: a57aea0d61
am: d5d9766793

Change-Id: I8dbc10eff33b8eeee0b5942a53080c7d504ec7d9
a57aea0d61b9c277225d3c71e59d3043d241135e 14-Sep-2017 Lei Yu <jackqdyulei@google.com> Merge "Change battery icon to the side of bt icon" into oc-mr1-dev
daf30767d1d8c5b69deecf5df6894f97fbfaafa3 14-Sep-2017 Ajay Nadathur <ajayns@google.com> Merge "Fix jank issue in Settings caused by fetching tile info" into oc-mr1-dev am: 4562ecebc6
am: 9ebf5a8220

Change-Id: Ia34424f3b5f3f1882721d4d1aed85207113f000f
98b7fdbd5c11af30afdf147d0c4cc44fe4ef240a 07-Sep-2017 jackqdyulei <jackqdyulei@google.com> Change battery icon to the side of bt icon

Also add a new parameter to control the size of battery icon at
the side.

In spec the height of battery icon should be 55% of the bt icon.
Since bt icon has different natural margin in its vector drawable.
This cl adds a padding and then change the ratio to 75%.

Bug: 65397557
Test: RunSettingsLibRoboTests

Change-Id: I442149392edcec2ee23f651232ffe3e204badc38
ettingslib/graph/BluetoothDeviceLayerDrawableTest.java
b0801642b3730359f302e94aa13814268f584f06 12-Sep-2017 Ajay Nadathur <ajayns@google.com> Fix jank issue in Settings caused by fetching tile info

bug: 62713030
Test: Manually tested
Change-Id: I24c78d35c66cc2de7c3e43b1a7f7c0bda22545a6
ettingslib/drawer/TileUtilsTest.java
bd44c9e69a732e5606d6f0a3e51b410a079b9538 06-Sep-2017 Eric Schwarzenbach <easchwar@google.com> Fix TimestampedScoredNetwork parceling logic.

The old implementation used incompatible read/write logic. Fixes the
constructor to use readParcelable() instead of
CREATOR.createFromParcel(). Adds tests.

Bug: 65379063
Test: make -j40 RunSettingsLibRoboTests

Change-Id: I6a6c183fe065f36fcc8d4a25637f98dfdaad350d
Merged-In: I6a6c183fe065f36fcc8d4a25637f98dfdaad350d
ettingslib/wifi/TimestampedScoredNetworkTest.java
2c1192999e9d2bc10e7b81fd8e2a48f90a13ba40 08-Sep-2017 Ajay Nadathur <ajayns@google.com> Merge "Add method to update tile's remoteview using summaryUri"
6b7a5b3313b8caa310a94e4cabd710ca771eb3be 08-Sep-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix TimestampedScoredNetwork parceling logic."
fb1c5b52d4bfedd983b12e67754aee1b836aea4c 06-Sep-2017 Eric Schwarzenbach <easchwar@google.com> Fix TimestampedScoredNetwork parceling logic.

Bug: 65379063
Test: make -j40 RunSettingsLibRoboTests

Change-Id: I6a6c183fe065f36fcc8d4a25637f98dfdaad350d
ettingslib/wifi/TimestampedScoredNetworkTest.java
00932ebb963272f9a6be6587d0e3409228549196 30-Aug-2017 Ajay Nadathur <ajayns@google.com> Add method to update tile's remoteview using summaryUri

- Calling com.android.settingslib.drawer.TileUtils#updateTileData no
longer sets the summary in RemoteView.
- To update summary and title of remoteview,
com.android.settingslib.drawer.TileUtils#updateTileUsingSummaryUri
should be called

bug: 62713030
Test: Added robolectric tests, also manually tested settings
Change-Id: I8c63601a901d5b140e36baec424c226724c43bc4
ettingslib/drawer/TileUtilsTest.java
4d945fecf2412b4136a72e8c3349bf9e99027d63 30-Aug-2017 Ajay Nadathur <ajayns@google.com> Add method to update tile's remoteview using summaryUri

- Calling com.android.settingslib.drawer.TileUtils#updateTileData no
longer sets the summary in RemoteView.
- To update summary and title of remoteview,
com.android.settingslib.drawer.TileUtils#updateTileUsingSummaryUri
should be called

bug: 62713030
Test: Added robolectric tests, also manually tested settings
Change-Id: I8c63601a901d5b140e36baec424c226724c43bc4
ettingslib/drawer/TileUtilsTest.java
8c3ce8d60b551328d818d99c9b86f7641aeda74f 06-Sep-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Use raw string when setting wifi preference title." into oc-mr1-dev
3d6e6a63e9ab8b11a56bf103e112713599534d06 06-Sep-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Use raw string when setting wifi preference title."
70efb670c8d9a09d87b465bbb1e10a1af2be3b16 05-Sep-2017 Fan Zhang <zhfan@google.com> Use raw string when setting wifi preference title.

This is necessary for talkback to correctly recognize content
description on the whole viewgroup.

Merged-In: Ic792102b269b9a8db09c632f7e70d8773048c840
Change-Id: I555f94afcd6f4c681bb16dd23d94b2ae0fd4c116
Fixes: 65202862
Test: robotests
ettingslib/wifi/AccessPointPreferenceTest.java
b6cec0d7b28df7af6861a3e8bd27a82dbccafc0a 05-Sep-2017 Fan Zhang <zhfan@google.com> Use raw string when setting wifi preference title.

This is necessary for talkback to correctly recognize content
description on the whole viewgroup.

Change-Id: Ic792102b269b9a8db09c632f7e70d8773048c840
Bug: 65202862
Test: robotests
ettingslib/wifi/AccessPointPreferenceTest.java
7715cc2b96eadb13396f147c3149bfabc67e4c9a 06-Sep-2017 Justin Klaassen <justinklaassen@google.com> Merge "Fix A2dpProfileTest#getLabelDeviceConnectedWithHighQualityCodec" into oc-mr1-dev am: ae1dd84bf0
am: 691b715e77

Change-Id: Id187f844dd22b47db7cbc0f62ba07e3b78100986
9acc02e2c4f70c524c1d99952a4c644df019cd1c 05-Sep-2017 Justin Klaassen <justinklaassen@google.com> Fix A2dpProfileTest#getLabelDeviceConnectedWithHighQualityCodec

Fixes: 63899732
Test: make RunSettingsLibRoboTests -j7
Change-Id: I60559a04a1c234acaca2919a67e8bbe126d2bb3a
ettingslib/bluetooth/A2dpProfileTest.java
58522e0458ffb46c33227a37d2c3cf0094f0c2df 02-Sep-2017 Eric Schwarzenbach <easchwar@google.com> Merge "Change AccessPointPreference key generation to match AccessPoint." into oc-mr1-dev am: c3fbddd712
am: 05bee81788

Change-Id: Iabd8af66a650971b1d3a1c0cb3bc1b11ef98e333
2b35b512e336a54e32b6a379f2429876b3d1f647 30-Aug-2017 Eric Schwarzenbach <easchwar@google.com> Change AccessPointPreference key generation to match AccessPoint.

AccessPointPreference now uses SSID + security to determine preference
key, which matches the way WifiTracker groups scan results. This
prevents mismatches between WifiSettings and WifiTracker.

Bug: 64887518
Test: make -40 RunSettingsLibRoboTests
Change-Id: I021a266cbb1037b7ac82efc72f0670088a521640
ettingslib/wifi/AccessPointPreferenceTest.java
6916aad0469fb6ab5e6a5621cd5dc5a4c3bd57c4 27-Aug-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Remove unused methods from SuggestionList"
6da22fb4430dcb06ef0e0985734c41bf0a410a52 26-Aug-2017 Fan Zhang <zhfan@google.com> Remove unused methods from SuggestionList

Test: robotests
Change-Id: Ibfd5606917a2f6e2f22bca15c297ef34eb3cfe1e
ettingslib/suggestions/SuggestionParserTest.java
1369bf693ff2a6dc1b047c215fb9de00e38eb49c 09-Aug-2017 jackqdyulei <jackqdyulei@google.com> Add battery indicator to bluetooth icon

This cl creates BluetoothDeviceLayerDrawable, which contains two
drwable:
1. previous bluetooth device drawable
2. battery drawable showing the battery level

If connected bt device has battery level, we will use this
LayerDrawable both in bluetooth main page and detail page.

Also, battery drawable is reused from BatteryMeterDrawableBase, we
rotate base drawable by 90 degree and update the spec a little bit.

Bug: 63393322
Test: RunSettingsLibRoboTests

Change-Id: I55313940576523dcbeb65a6e20e41289da8a3e0c
Merged-In: I55313940576523dcbeb65a6e20e41289da8a3e0c
ettingslib/graph/BluetoothDeviceLayerDrawableTest.java
ettingslib/testutils/shadow/SettingsLibShadowResources.java
d94a9388e81a395f74a91dfa2997c35d7c6df574 09-Aug-2017 jackqdyulei <jackqdyulei@google.com> Add battery indicator to bluetooth icon

This cl creates BluetoothDeviceLayerDrawable, which contains two
drwable:
1. previous bluetooth device drawable
2. battery drawable showing the battery level

If connected bt device has battery level, we will use this
LayerDrawable both in bluetooth main page and detail page.

Also, battery drawable is reused from BatteryMeterDrawableBase, we
rotate base drawable by 90 degree and update the spec a little bit.

Bug: 63393322
Test: RunSettingsLibRoboTests

Change-Id: I55313940576523dcbeb65a6e20e41289da8a3e0c
ettingslib/graph/BluetoothDeviceLayerDrawableTest.java
ettingslib/testutils/shadow/SettingsLibShadowResources.java
6c008738d3191624a4917b6f60682f83373abf61 24-Aug-2017 Jack He <siyuanh@google.com> Merge "Bluetooth: Add flag for human readable name" into oc-mr1-dev am: 34eac2c59b
am: 10edd06b15

Change-Id: Ieb0ac6a65d7e56b074832f3909f9becbc5012b5b
c219bc9b884f70b087b2d55412b128846a5d0ce1 24-Jul-2017 Jack He <siyuanh@google.com> Bluetooth: Add flag for human readable name

* Add hasHumanReadableName() method to CachedBluetoothDevice that
returns True when BluetoothDevice.getAliasName() is not null nor empty

Bug: 34685932
Test: pair Bluetooth device, send file over Bluetooth, unit tests
Change-Id: I197f3f7f3bcb7d785729473b25638006449ae862
ettingslib/bluetooth/CachedBluetoothDeviceTest.java
6efd09a0eec38c6d96a5f4fb85c5e5e36b322113 22-Aug-2017 Eric Schwarzenbach <easchwar@google.com> Fix AccessPointPreferenceTest and add updateIcon test.

Dependency injects the getIcon() functionality in AccessPointPreference
to enable mocking the method in robolectric where it normally fails to
find the resource. Adds a test to verify that getIcon is called on
refresh. Also modifies the constructors to reduce redundancy.

Bug: 35854035, 64898200
Test: make -j40 RunSettingsLibRoboTests
Change-Id: Iaf9e27651db1d9f16f58ac80ac413e9f84f08b39
ettingslib/wifi/AccessPointPreferenceTest.java
265e7fbcc30d507fa1670353f5c7ca24c60cf1c7 09-Aug-2017 Tony Mantler <nicoya@google.com> Don't lose dialogs during configuration change

Bug: 62442606
Test: Rotate device when a dialog is showing
Change-Id: Iba63343d4e52e8e3ed2489f2f9482e698baf6111
ettingslib/development/EnableAdbPreferenceControllerTest.java
ettingslib/development/LogpersistPreferenceControllerTest.java
066864a6ed8556037c0858efd83d566d38208b64 09-Aug-2017 Fan Zhang <zhfan@google.com> Merge "Remove logic for parsing dismiss rule" into oc-mr1-dev am: 6a820f2238
am: 774eace18c

Change-Id: Ib86300ac020de47871bb4c2c0557628ee9d8eeb8
c48ba6a262714ae70b6fda05fd088daf0caabd11 31-Jul-2017 Tony Mantler <nicoya@google.com> Move LogPersist to SettingsLib

Bug: 62442606
Test: LogdSizePreferenceControllerTest, LogpersistPreferenceControllerTest
Change-Id: Ie69248538a639e7b8ff0e1553b2393b38b1bf7fe
ettingslib/development/LogdSizePreferenceControllerTest.java
ettingslib/development/LogpersistPreferenceControllerTest.java
ettingslib/development/SystemPropertiesTestImpl.java
c07ae9cf090270da73bb50a5c7260b5fede9370b 04-Aug-2017 Fan Zhang <zhfan@google.com> Remove logic for parsing dismiss rule

We now still parse dismiss_rule from activity metadata, but intead of
treating it as "first show on Day x, then on day y if user dismiss
suggestion", we simply start showing suggestion on day x. If user
dismisses the suggestion, it's gone forever.

Change-Id: Ia4d14167a407983df22e582f8dbab0c2cc153e1e
Fix: 64297191
Test: robotests
ettingslib/suggestions/SuggestionParserTest.java
f0f9fa330772f5f6a13673bd1204251c464ce67b 02-Aug-2017 Fan Zhang <zhfan@google.com> Merge "Misc change to support loading dynamic summary/icon in app"
dadfd50325d8d9fbfabf52db46cb68b586697234 26-Jul-2017 Fan Zhang <zhfan@google.com> Misc change to support loading dynamic summary/icon in app

- Add ThreadUtils.postOnBackground helper method
- Don't fallback to app.icon if tile's metadata contains icon uri
- Deprecate TITLE_RES_ID in favor of TITLE metadata

Bug: 63758074
Test: robotests
Change-Id: Ie60fb4677cdb12c3ff313ffdfdb4a4f4960fac0f
ettingslib/drawer/TileUtilsTest.java
a263ee6a0e23656da1738dff9c3f8460e8666032 31-Jul-2017 Tony Mantler <nicoya@google.com> Refactor SystemPropPoker

Bug: 62442606
Test: SystemPropPokerTest
Change-Id: I67d6e16ec4d637d94b3adcf240ea6b5a45438ad9
ettingslib/development/SystemPropPokerTest.java
4ca9ebd5d355b72eb6076b5cce68968ea9d794c3 31-Jul-2017 Tony Mantler <nicoya@google.com> Remove development settings prefs file

Move DevelopmentSettingsEnabler to SettingsLib
Fix typo in SettingsLibRobolectricTestRunner

Bug: 64159590
Test: DevelopmentSettingsEnablerTest
Change-Id: I8a2a3407ff10c5db0417d13e735bae5dca1ff5b5
ettingslib/RestrictedLockUtilsTest.java
ettingslib/RestrictedPreferenceHelperTest.java
ettingslib/SettingLibRobolectricTestRunner.java
ettingslib/SettingsLibRobolectricTestRunner.java
ettingslib/TetherUtilTest.java
ettingslib/TwoTargetPreferenceTest.java
ettingslib/UtilsTest.java
ettingslib/core/lifecycle/LifecycleTest.java
ettingslib/development/DevelopmentSettingsEnablerTest.java
ettingslib/development/EnableAdbPreferenceControllerTest.java
ettingslib/drawable/UserIconDrawableTest.java
ettingslib/drawer/CategoryManagerTest.java
ettingslib/suggestions/SuggestionParserTest.java
ettingslib/widget/FooterPreferenceMixinTest.java
ettingslib/widget/FooterPreferenceTest.java
ettingslib/wifi/AccessPointPreferenceTest.java
d30c05c293a45849bbdd54b62e16c5c125484f21 22-Jul-2017 Fan Zhang <zhfan@google.com> Make a helper method to post work to ui thread.

Bug: 36131513
Bug: 63896139
Test: robotests
Change-Id: If7154f17926f86157816987221f449a48ae6fd4e
ettingslib/utils/ThreadUtilsTest.java
7b77cf89382d13dc89e7d800c7fd04ac33ec55f3 21-Jul-2017 Fan Zhang <zhfan@google.com> Fix suggestion crash if parser fails to parse dismiss rule

We store a index value in shared pref to figure out when a suggestion
should be displayed next time. However the rule can change due to
various reasons. When the index and the rule itself go out of sync, we
should not crash.

Change-Id: Id3ea88b6d321434e20ac0cd3e2670524c237e24e
Bug: 63908636
Test: robotests
(cherry picked from commit 4d37a1a1e1ca902b8a65bce64fafa0eeea51a4dd)
ettingslib/suggestions/SuggestionParserTest.java
15ea628204a1ce29113c4268b793ac7948e4d3ad 21-Jul-2017 Fan Zhang <zhfan@google.com> Fix suggestion crash if parser fails to parse dismiss rule

We store a index value in shared pref to figure out when a suggestion
should be displayed next time. However the rule can change due to
various reasons. When the index and the rule itself go out of sync, we
should not crash.

Merged-In: Id3ea88b6d321434e20ac0cd3e2670524c237e24e
Change-Id: Ied4a0359f9bc22ee94ec79c0591d2671a9c31b86
Fix: 63908636
Test: robotests
ettingslib/suggestions/SuggestionParserTest.java
4d37a1a1e1ca902b8a65bce64fafa0eeea51a4dd 21-Jul-2017 Fan Zhang <zhfan@google.com> Fix suggestion crash if parser fails to parse dismiss rule

We store a index value in shared pref to figure out when a suggestion
should be displayed next time. However the rule can change due to
various reasons. When the index and the rule itself go out of sync, we
should not crash.

Change-Id: Id3ea88b6d321434e20ac0cd3e2670524c237e24e
Bug: 63908636
Test: robotests
ettingslib/suggestions/SuggestionParserTest.java
60b850de5e02d8b525f2f8068b5a3325a974b887 19-Jul-2017 Fan Zhang <zhfan@google.com> Add Wifi's security type to contentDescription

Change-Id: I0c1945fd8776814ddf0097c0c1f27ed4dd1c73b2
Fix: 63805288
Test: robotests
ettingslib/SettingLibRobolectricTestRunner.java
ettingslib/wifi/AccessPointPreferenceTest.java
09bd539969d73b4100c146cbe4ac395b1acbd963 17-Jul-2017 Tony Mantler <nicoya@google.com> Merge changes from topic 'AdbEnableController'

* changes:
Add ADB enable/disable PreferenceController
Move to newer mockito/robolectric
ec4bae9d862b07493e19b2bc82ecfa7d5cb6f4e1 29-Jun-2017 Tony Mantler <nicoya@google.com> Add ADB enable/disable PreferenceController

Bug: 34203528
Test: EnableAdbControllerTest
Change-Id: I6bff5fccf4a299df3da46a593bc36447945571c3
ettingslib/development/EnableAdbPreferenceControllerTest.java
8d167378e3b3e6d3d49bcd79800f8f8146711e33 15-Jul-2017 Tony Mantler <nicoya@google.com> Move to newer mockito/robolectric

Also fix TileUtilsTest, it broke with the newer mockito

Bug: 34203528
Test: This is the test
Change-Id: I714860795ec0b344cb89a95600a4365893c4f8d7
ettingslib/drawer/TileUtilsTest.java
cba3a9dc39ceee7a1826f4cb0020de05b7acce08 06-Jul-2017 Jack He <siyuanh@google.com> Bluetooth: Display battery level of connected devices am: 6258aae548
am: 199849631b

Change-Id: I56f073605bc0f4223a1c0f3a385977e2b7c44879
6258aae54824a7c3cd3974822b0b6835ab8a45de 30-Jun-2017 Jack He <siyuanh@google.com> Bluetooth: Display battery level of connected devices

* Add handler for BluetoothDevice.ACTION_BATTERY_LEVEL_CHANGED intent
* Check battery level information when UI is updated
* Show battery level in Quick Settings connected device summary line
* Show battery level in Bluetooth Settings connected device summary line
* Show battery level in Bluetooth device details page device summary
line
* Add unit test for CachedBluetoothDevice, change HeadsetProfile and
HidProfile to not final to enable mocking

Bug: 35874078
Test: make, unit test, connect to remote devices, connect/disconnect
profiles
Change-Id: I729048cace73aab29337a8002a2897d2acf22fa6
ettingslib/bluetooth/CachedBluetoothDeviceTest.java
db7de0f0514ed1817eede0626bd7345cec5d56a0 30-Jun-2017 Sundeep Ghuman <sghuman@google.com> Merge "Move generatePreferenceKey to AccessPointPreference." into oc-dr1-dev am: 635575d579
am: b7c4518d57

Change-Id: I7da1349402f57d94f450a0d1d4e85864a1fafb5d
7c32aa3039fd9eba3c09f7503ac451a0ba0b1d87 27-Jun-2017 Sundeep Ghuman <sghuman@google.com> Move generatePreferenceKey to AccessPointPreference.

This allows it to be reused in the SavedAccessPointsWifiSettings.

Bug: b/62374459
Test: make -j40 RunSettingsLibRoboTests
Change-Id: Id137f56ceafe461d217c0eee6b571ccfa4eaff1f
ettingslib/wifi/AccessPointPreferenceTest.java
dfcceb60a85f6b7519da13e298d175cf1fff0b33 22-Jun-2017 Maurice Lam <yukl@google.com> Merge "Add tintable icon support" into oc-dr1-dev am: 53d79aa8ea
am: 2e7d53964d

Change-Id: Ic7cc8a0f4e6f2590ebe46dd337bd03ca4a5d51a1
b10c6ffbaa2aa0c6f158415d028ce691385a7a83 09-Jun-2017 Maurice Lam <yukl@google.com> Add tintable icon support

Add meta data com.android.settings.icon_tintable so that icons can
be marked as tintable by settings or setup wizard.

Also deprecate com.android.settings.title_res because
com.android.settings.title can do everything it does.

Test: cd tests/robotests && mma
Bug: 62258845
Change-Id: I063be62867dd8a81ab35ff3fe8a85c61e4c6f17d
ettingslib/TestConfig.java
ettingslib/drawer/TileUtilsTest.java
675aa73a83c8cdd5774d713ca849114fa62c1949 17-Jun-2017 Jaewoong Jung <jungjw@google.com> Merge "Allows to change summary text in a custom view tile." into oc-dr1-dev am: 4f52665122
am: 296f9dd45d

Change-Id: Ica4a9cd674b521731ec91cfc6059c9873f60f41d
78c5e5dd00278c4e6ed4ced3ca48b963271b21ff 16-Jun-2017 Jaewoong Jung <jungjw@google.com> Allows to change summary text in a custom view tile.

Now it becomes possible to use META_DATA_PREFERENCE_SUMMARY_URI in
in conjunction with META_DATA_PREFERENCE_CUSTOM_VIEW.

Bug: 62384773
Test: make RunSettingsLibRoboTests -j40
Change-Id: I91401140b2ed0b12c26b91c8fb3d464179e75844
ettingslib/drawer/TileUtilsTest.java
0013dee1d448220c74894072685f76a86f17a0ec 14-Jun-2017 Doris Ling <dling@google.com> Add a new setting category for the account detail page.

Bug: 62446202
Test: make RunSettingsLibRoboTests
Change-Id: Ib2421a7c90e86e5089218bb74722c297a85910bd
ettingslib/drawer/CategoryKeyTest.java
a37ff5ec2f7a393fae0f51f2028363fa3697c0d3 12-Jun-2017 Katsiaryna Naliuka <katsiaryna@google.com> Added a category for lockscreen settings.

Bug: 62487664
Test: Built and flashed a system image, ran RunSettingsLibRoboTests.
Change-Id: I4f2b09622ec221caf9898d03fbad1db354c264ea
ettingslib/drawer/CategoryKeyTest.java
62d4642c2ce0e3592c7da2fb9764540f7dd27b99 06-Jun-2017 Daniel Nishi <dhnishi@google.com> Merge "Change storage manager default to be a config."
b435250e3f6ec8bfb5ef6da93397e1587bc1438d 06-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Move UsageGraph from SettingsLib to Settings."
89cff1ab753290860444da2bd40bf1a9734471da 04-Jun-2017 Fan Zhang <zhfan@google.com> Misc fixes in settingslib

Bug: 62039146
Fix: 62138362
Test: make RunSettingsLibRoboTests

- Do not use enhanced loop in lifecycle events to avoid Concurrent
modification exception.
- Tweak footer preference icon layout
- Add some logging to help debug future suggestion issues

Change-Id: I08eb3aca4b776a7d7e5db75dff8f92904d482aa3
ettingslib/core/lifecycle/LifecycleTest.java
d49b6b99c5b3e106e09ad6d447a9c7f62dc07473 03-Jun-2017 Alex Kulesza <kulesza@google.com> Move UsageGraph from SettingsLib to Settings.

In preparation for modifying the graph code to show detailed projections
(see bug), this change moves it into Settings along with related tests
and resources.

Bug: 38400320
Test: manual, make SettingsUnitTests, make SettingsGoogleUnitTests
Change-Id: I88e5336c15827727b3427e29b10954bba9cfba7d
ettingslib/graph/BottomLabelLayoutTest.java
cf298ebcc7dcf645eb007613a2a662e844b0f38c 30-May-2017 Salvador Martinez <dehboxturtle@google.com> Remove BatteryInfo from settingslib

This file has been moved back into Settings. Also removes unused
code from BatterySaverTile that depends on BatteryInfo.

Test: settingslib tests still pass
Bug: 38398949
Bug: 38399654
Change-Id: Ia40c4014854e87ebb467b5e88fa05afe1f340be3
ettingslib/BatteryInfoTest.java
b666ee5a120effdd093e38b41d24f8c016ab06e1 01-Jun-2017 jackqdyulei <jackqdyulei@google.com> Merge "Add BottomLabelLayout for battery graph" into oc-dev am: 9e6519c7e1
am: 4ca9c05994

Change-Id: If4326e4fbf88b54bbe54b8d9c38d9f04b37c77a3
e1c381f0a1f1a3f6a7ab63065a2a4780920db9bf 24-May-2017 jackqdyulei <jackqdyulei@google.com> Add BottomLabelLayout for battery graph

This layout will automatically become vertical if there is not
enought room for children.

Bug: 37329353
Test: RunSettingsLibRoboTests
Change-Id: I0f6870c4031446e967c239d207e76837b14ab097
ettingslib/graph/BottomLabelLayoutTest.java
539828045cf3397a98c5ed1d240585932330efc2 24-May-2017 Daniel Nishi <dhnishi@google.com> Change storage manager default to be a config.

This allows OEMs to customize the default behavior of the automatic
storage manager.

Bug: 38499322
Test: SettingsLib Robotest
Change-Id: I7d78865923fa7ff20b796a7075da0f35c7af1807
ettingslib/UtilsTest.java
425b0282d6695769c5a61d2ba961731f81d74f60 23-May-2017 Salvador Martinez <dehboxturtle@google.com> Merge "Update getBatteryInfo to allow drain time override"
a8f6ede2db562486a411c157db5d7d0304f7dd44 22-May-2017 Salvador Martinez <dehboxturtle@google.com> Update getBatteryInfo to allow drain time override

When requesting battery info from settings lib
there was no way to specify another source as the source for the
time remaining estimate so this CL adds the ability to do that.
Similar functionality is also removed from settings since it is
no longer needed.

Test: robotests
Bug: 38399275
Change-Id: I5bf613897ea778f933464c7c22013a50f790fd2f
ettingslib/BatteryInfoTest.java
1f7f2ae08066020c4fb987e753c3ab03e9dd8a5b 17-May-2017 Antony Sargent <asargent@google.com> Merge "Merge "Add a "Use high quality audio" option to Bluetooth A2DP device settings" into oc-dev am: c695e44866" into oc-dev-plus-aosp
am: 5da64d33d9

Change-Id: I685dd7cc62810fbe2fa277ca40869e5e4d0566a2
374d259815b801010cafd3c63aa0f1afb75a7fa6 20-Apr-2017 Antony Sargent <asargent@google.com> Add a "Use high quality audio" option to Bluetooth A2DP device settings

This change adds a checkbox reading "Use high quality audio: <codec
name>" to the details dialog for A2DP audio bluetooth devices that
support codecs other than the mandatory SBC (eg AAC, LDAC, aptX, etc.).

Bug: 37441685
Test: manually

Change-Id: I3eed50b9cced6f9f7f4efd70955de1bf9c309346
ettingslib/bluetooth/A2dpProfileTest.java
8c85f62276a9359525fbb9584bde4aace4204633 12-May-2017 Juan Lang <juanlang@google.com> Merge "Import FooterPreferenceMixin and its dependencies into SettingsLib."
5efe8f0a096fd13d5ecdacf90447e0b4ef132967 05-May-2017 Juan Lang <juanlang@google.com> Import FooterPreferenceMixin and its dependencies into SettingsLib.

This will allow this class to be reused by apps other than Settings.

Test: make RunSettingsLibRoboTests && make RunSettingsRoboTests &&
make RunSettingsGoogleRoboTests
Change-Id: Ic4aa3945df71357fb2f99262ab299020e94a6eb9
ettingslib/core/lifecycle/LifecycleTest.java
ettingslib/utils/ThreadUtilsTest.java
ettingslib/widget/FooterPreferenceMixinTest.java
ettingslib/widget/FooterPreferenceTest.java
e138ef1d2bd6b72e11e73a9738ab95699364d0ec 12-May-2017 Fan Zhang <zhfan@google.com> Refactor suggestion parser.

Move it to a suggestions package
Wrap suggestion list with a SuggestionList class, with additional
metadata.

Bug: 37947647
Test: make RunSettingsLibRoboTests
Change-Id: I1343d76c8e9acc0d17eb00a87e7f3a86551481d8
ettingslib/SuggestionParserTest.java
ettingslib/drawer/TileUtilsTest.java
ettingslib/suggestions/SuggestionParserTest.java
a0f8d231dcad2e472f765d52468a4db9e78b5e47 08-May-2017 Fan Zhang <zhfan@google.com> Add first impression type suggestion framework support

- category definition now supports "exclusiveExpireDays" attribute.
- When set, the category is exclusive as long as it hasn't expired.
Once it expires, the category becomes a regular category.
- If not set, the category is permanently exclusive
- For exclusive category, do not use smart suggestion dismiss rules.
Instead, use the rule defined by suggestion itself.
- Add logic to ensure suggestions are unique, because there is nothing
stopping suggestion to be placed in different categories.

Bug: 37947647
Test: make RunSettingsLibRoboTests -j40

Change-Id: I98126bbce6d68fcf1d739b6defc00b801075b877
ettingslib/SuggestionParserTest.java
9c8d2fbb856e5f5179df9421bd6cc44615fbf2ee 08-May-2017 Fan Zhang <zhfan@google.com> Fix NPE when opening tether preference.

Change-Id: I387d340859cef1adb190e9c763d78c167f0b298b
Fix: 38105700
Test: make RunSettingsLibRoboTests
ettingslib/TetherUtilTest.java
f945f521d1f8c1b2d23fdee70fb424e74b93c4ed 24-Apr-2017 Andrew Sapperstein <asapperstein@google.com> resolve merge conflicts of 23f196f347b7 to master

Test: I solemnly swear I tested this conflict resolution.

Change-Id: I7cd3c310c4ac1187ebfcbc12c8f82cdd33ff9328
7aeb3f54408a7bd0c1ca3020bca32900b2091b1d 20-Apr-2017 Andrew Sapperstein <asapperstein@google.com> Move settingslib overlays to framework-res.

AAPT2 no longer supports overlays of static libraries. As a result,
these overlays don't work correctly any more.

To fix, move the overlay config resources into framework-res.
They can still be read by any of the apps using settingslib, but now
actually work without having to override for each app.

Bug: 33694217
Test: robotests
Change-Id: I58df748d7646e8caee18614d87af1333fc84985c
ettingslib/HelpUtilsTest.java
47a67516d95e0e34453b9da5794ae38bd1b31b3a 20-Apr-2017 William Luh <williamluh@google.com> Merge "Prevent settings from crashing when ContentProvider crashes" into oc-dev am: a875bf3ebe
am: 56cb6eb587

Change-Id: I968fa939194cc72ebabf1941514fa853eec85e39
5a0a0d80c4f88f52ded9b62bcc3423f6f55de99e 18-Apr-2017 William Luh <williamluh@google.com> Prevent settings from crashing when ContentProvider crashes

Use acquireUnstableProvider, which will prevent Settings from
crashing when the ContentProvider it's bound to crashes.

Bug:36443354
Test: make RunSettingsLibRoboTests
Change-Id: Icf1b1529ebb7d31c4060a01cdc63ba005a4f2bab
ettingslib/drawer/TileUtilsTest.java
f69156ff95c3f2553264384f74375be253a24640 14-Apr-2017 Lei Yu <jackqdyulei@google.com> Merge "Refine BatteryInfo and battery drawable" into oc-dev am: 57af565fb7
am: 24638307c2

Change-Id: Ifae38f01a454fe9dcea1fbde0ea1a57a15087d8a
ff5bd948b0b5fc2122b4fe9dafe5245a2c05694c 04-Apr-2017 jackqdyulei <jackqdyulei@google.com> Refine BatteryInfo and battery drawable

1. Remove "m" prefix for all public field
2. Change logic about field "discharging", now it only controlled
by whether it is plugged in.
3. Change Paint in drawable to protected
Bug: 36862496
Test: RunSettingsLibTests
Change-Id: I2908ae6868dc877d3ce6a8a63ec17826a6dcca1d
ettingslib/BatteryInfoTest.java
a121bbba10aee6d7c83b288ac0305583c165335b 07-Apr-2017 Filip Pavlis <pavlis@google.com> Merge "Omit using ctor of PreferenceViewHolder in tests." into oc-dev am: 59dd2ebfc1
am: 3b3bf87165

Change-Id: I314d9bfa7d29eb506fa4bb7faedd7f8d506098b4
59dd2ebfc152e986420f8bd46782c13da25ae757 07-Apr-2017 Filip Pavlis <pavlis@google.com> Merge "Omit using ctor of PreferenceViewHolder in tests." into oc-dev
80bedc2e179e9f6b472ddf7cb4184eeef7caaf54 07-Apr-2017 William Luh <williamluh@google.com> Merge "Fix injected settings titles not matching a locale change." into oc-dev am: 1b54760eee
am: 5669141382

Change-Id: Ic628750c2332cfdf734bf7798e378ddf93a0cdbd
1b54760eeeb77f2ce0b88fd4deb0db16437397b9 07-Apr-2017 William Luh <williamluh@google.com> Merge "Fix injected settings titles not matching a locale change." into oc-dev
4c978a302afb0e3b416319b3cd963a6e7ccc379d 01-Apr-2017 William Luh <williamluh@google.com> Fix injected settings titles not matching a locale change.

The injected tiles code currently treats the string metadata value
for the title key in the Activity's manifest as the title itself.
When the language on the device is changed the title remains in the
previous language until a reboot.

This CL will make injected tiles attempt to treat the string metadata
value as a resource variable to get the integer res id and then
properly load the localized title using the res id. To be backwards
compatible, if the res id is 0, we treat the string metadata value as
the title itself (current behavior).

Bug:36470694
Test: make RunSettingsLibRoboTests
Change-Id: I3963534a3a3a27d0455c4ed1ad4fa574b03d67fc
ettingslib/drawer/TileUtilsTest.java
806f78d9887d2b41939735997a526d7d3a8a9ed5 24-Mar-2017 jackqdyulei <jackqdyulei@google.com> Add showChargingMethod in BatteryInfo

This toggle is used to decide whether to show charging method.
If it is off, then "Charging over ac" will become "Charging"

Bug: 36558216
Test: RunSettingsLibRoboTests
Change-Id: I98b1f7e7b77d7ce0a7e1aae29e55a33ac79ff0d7
(cherry picked from commit b3c33f63ed120cf4758ec67426bb45291e289fce)
ettingslib/BatteryInfoTest.java
81d53516abaf15f8443f715b96ab35c71202c28c 05-Apr-2017 Filip Pavlis <pavlis@google.com> Omit using ctor of PreferenceViewHolder in tests.

See the topic for related change in the support lib.

Bug: b/33774880
Test: N/A
Change-Id: I557278175db17b32ff9ce65ceaebc9a7386d2c20
ettingslib/RestrictedPreferenceHelperTest.java
ettingslib/TwoTargetPreferenceTest.java
b3c33f63ed120cf4758ec67426bb45291e289fce 24-Mar-2017 jackqdyulei <jackqdyulei@google.com> Add showChargingMethod in BatteryInfo

This toggle is used to decide whether to show charging method.
If it is off, then "Charging over ac" will become "Charging"

Bug: 36558216
Test: RunSettingsLibRoboTests
Change-Id: I98b1f7e7b77d7ce0a7e1aae29e55a33ac79ff0d7
ettingslib/BatteryInfoTest.java
8c54e87e762dc5e447172ffd694688d5317db1ba 30-Mar-2017 Maurice Lam <yukl@google.com> Merge "Add custom view support to Tiles"
1c07761f8e72402b683a75f1a4326cb03ffd86b8 29-Mar-2017 Maurice Lam <yukl@google.com> Merge "Add exclusive attribute to suggestion category"
d8ae77b7f593528896b33bdd2755fa9562735472 24-Mar-2017 Maurice Lam <yukl@google.com> Add custom view support to Tiles

Make Tiles parse the metadata "com.android.settings.custom_view",
which are inflated as remote views and be displayed instead of the
regular item-summary item.

Test: cd tests/robotests && mma
Bug: 35668836
Change-Id: Id245efdeb42a07766f16915501151348f01d49d6
ettingslib/drawer/TileUtilsTest.java
f74b9e522fbc0cff0a618913791ce929009bc2e1 23-Mar-2017 Maurice Lam <yukl@google.com> Add exclusive attribute to suggestion category

Add exlusive attribute to suggestion category XML, which when true,
will prevent all other categories from being shown in suggestions.

If there are multiple suggestions in a single exclusive category, all
of them will be shown.

If there are mutliple exclusive categories with enabled suggestions,
only the first will be shown.

Test: cd tests/robotests && mma
Bug: 35668836
Change-Id: I8b95cdcd021a2d67d460259b4a44ca37290ffd48
ettingslib/SuggestionParserTest.java
ettingslib/drawer/TileUtilsTest.java
035ff93430b71ef856f299c9f676f8d340403e16 22-Mar-2017 Fan Zhang <zhfan@google.com> Move two target preference layout from settings to lib

Change-Id: I5eda0cdcc4e8d8bb25f95ee12837d90179ac5c0a
Fix: 36511169
Test: make RunSettingsLibRoboTests
ettingslib/TwoTargetPreferenceTest.java
ce31159be781f5b94ed24013fcf1db7b9aa0cf4a 13-Mar-2017 Doris Ling <dling@google.com> Update sort order for settings category tiles.

- change the sort to first compare priority, then compare package name.
- do not normalize the tile's priority for all package.

Change-Id: I5501a8c3d5ca0a7f9e100411348d28cfe373c87a
Fix: 35928954
Test: make RunSettingsLibRoboTests
ettingslib/drawer/CategoryManagerTest.java
c93dadacddd1233b5d39426b809c47a8b5ccc5ff 04-Mar-2017 Fan Zhang <zhfan@google.com> Show help icon in actionbar

Fix: 35955986
Test: RunSettingsLibRoboTests
Change-Id: If4c328cacf1e3c9a5f66eeb248749c97c80cdb6c
ettingslib/HelpUtilsTest.java
ab6798951a12b55c309975dd9fe6eeb2de926420 24-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix broken RestrictedLockUtils KeyGuard APIs"
23830a090929ad776d66e723222e395dcf067f65 23-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Remove ContentProvider queries in updateTileData."
204af1cb445e0e5caef38356b43139426c76ef35 23-Feb-2017 William Luh <williamluh@google.com> Remove ContentProvider queries in updateTileData.

The ContentProvider queries in updateTileData are not being used, and
adds extra latency. Queries are performed later in Settings to get the
freshest data.

Bug: 35708630
Test: make RunSettingsLibRoboTests
Change-Id: I3798af0a89ed7261cfa4ebec4fada077495034ed
ettingslib/drawer/TileUtilsTest.java
120f97167921ad63fd7be811b63f4dcb199f76cc 22-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Disable settings nav drawer entirely."
5ba2d3fef993987e1d5760c29c715f63970fee53 22-Feb-2017 Fan Zhang <zhfan@google.com> Disable settings nav drawer entirely.

Change-Id: I3e9bdd3759a47fc09a654b6dad00b611138d5de6
Fix: 34806148
Test: make RunSettingsLibRoboTests
ettingslib/drawer/CategoryManagerTest.java
acdeac6809f4cb6c96f47b6cdf72572c9969c6eb 21-Feb-2017 Robin Lee <rgl@google.com> Fix broken RestrictedLockUtils KeyGuard APIs

They were all broken in that they returned profile admins for parent
queries even when they clearly shouldn't.

Examples:
- disable unredacted notifications
- disable fingerprint

This doesn't seem to have been tested beyond the bare basics of one
user with one device admin. Added some reasonable coverage. It could
still do with more.

Test: make RunSettingsLibRoboTests
Bug: 34929375
Change-Id: I1b0e986056ffa62d47091c0010977ac810ebd690
ettingslib/RestrictedLockUtilsTest.java
5dc1f365994375c97340c89eee68616c40457623 17-Feb-2017 jackqdyulei <jackqdyulei@google.com> Make precentage calculation round up by 0.5%

So we will show 1% when actually number is 0.5%

Bug: 35305983
Test: RunSettingsLibRoboTests
Change-Id: I26f11f25a7d78cc6b09cb358abd82017fa7cea00
ettingslib/UtilsTest.java
1335669b0e23c12a50ef707c80bef2cd53b1208d 21-Feb-2017 Lei Yu <jackqdyulei@google.com> Merge "Add statusLabel in BatteryInfo"
b1d49225c032036add6800b4375dedea20d37e03 16-Feb-2017 Fan Zhang <zhfan@google.com> Add logging constant for settings search result click

Bug: 34975477
Test: Builds
Change-Id: Ie59fb0639c6aa4044ba4fdb0a71dd489bd2d3b68
ettingslib/SettingLibRobolectricTestRunner.java
111418e7ade9423ca5e6a982335e90f33de02838 14-Feb-2017 jackqdyulei <jackqdyulei@google.com> Add statusLabel in BatteryInfo

The statusLabel shows the current status of the battery(i.e. not
charging, charging).

Bug: 35328749
Test: RunSettingsLibRoboTests
Change-Id: I5be13635be9b2749c0c62edeb1e0ac17ff423d83
ettingslib/BatteryInfoTest.java
2ddd29df615e37aa08427d90e153a19860af76da 16-Feb-2017 Doris Ling <dling@google.com> Remove nested preference from its parent.

PreferenceScreen.remvoePreference() only removes top level preference in
the preference screen. When we try to remove preference inside a
preference category, it will fail. Add handling to recursively find
the preference and remove it directly from its parent instead.

Change-Id: Ib33efe0b716db2366d712ce1d1eb8b5e33a4683a
Fix: 35365702
Test: make RunSettingsLibRoboTests
ettingslib/core/PreferenceControllerTest.java
fdfc88faef4d722b7ae09d8acd7a57a511b3eb72 11-Feb-2017 Fan Zhang <zhfan@google.com> Don't hide summary text in RestrictedPreference.

Bug: 34974598
Test: RunSettingsLibRoboTests
Change-Id: I8ea74fb52c38430c120fd4158867a9184d8f16cf
ettingslib/RestrictedLockUtilsTest.java
ettingslib/RestrictedPreferenceHelperTest.java
73b161ddc123544174cbec5254b3cd77e5d34c18 08-Feb-2017 Fan Zhang <zhfan@google.com> Fix a crash when opening app data usage for work profile

The icon on app header is a clone of original app icon, which relies on
getConstantState() of the orginal drawable non-null.

Change-Id: Ice5360f5d00d99b3cfe538b167ce67fc06d5e402
Fix: 34190136
Test: make RunSettingsLibRoboTests
ettingslib/SuggestionParserTest.java
ettingslib/drawable/UserIconDrawableTest.java
e622690efa9d2bc3e2b05def4076613d73db8020 07-Feb-2017 Soroosh Mariooryad <soroosh@google.com> Merge "Modifying SuggestionParser to support dismiss logic of smart suggestions."
56ce766e92ac39ae2bb05e2a0040f80b860364c9 07-Feb-2017 Soroosh Mariooryad <soroosh@google.com> Modifying SuggestionParser to support dismiss logic of smart
suggestions.

Test: RunSettingsLibRoboTests
Fixes: 35059823
Change-Id: I8c257f4f89f7dbc179aee85e013bdaecc8c3c09c
ettingslib/SettingLibRobolectricTestRunner.java
ettingslib/SuggestionParserTest.java
ettingslib/drawer/TileUtilsTest.java
864b7f41bb398804ba22580e767eb309fe2bb7f2 04-Feb-2017 Doris Ling <dling@google.com> Remove category key SYSTEM_INPUT

Since we are combining Language & regions and Input and gestures in
System settings, we don't need 2 separate category keys.

Bug: 34976047
Test: make RunSettingsLibRoboTests
Change-Id: Ic11bfb5e4e373a3499772b1d4654187749197899
ettingslib/drawer/CategoryKeyTest.java
a560cd947be2a7a704d0973a1573d539ff349a07 24-Jan-2017 Ido Ofir <iofir@google.com> Adding missing filters to suggested actions in Settings that that they
match the Optional Steps fliters in setup wizard.
Also added some more logging.

Bug: 34460278
Test: cd tests/; mma

Change-Id: Id576a1a19daa473e203cef41d67f6ef0cfc06dbe
ettingslib/drawer/TileUtilsTest.java
778cf1d8d620f2f254778b6c2e5d5abab1803690 19-Jan-2017 Shahriyar Amini <samini@google.com> Support setting icons from Settings or target app.

Bug: 31002801
Test: make RunSettingsLibRoboTests

Injected settings can have a dynamic icon that is based on drawable
resources in the target app or the Settings app.

Change-Id: I2d5df15b0e21d7fe02206ca8df3fbfc7af75c624
ettingslib/drawer/TileUtilsTest.java
5404355e0a23a8806efd74050513429c701e64b9 19-Dec-2016 roger xue <rogerxue@google.com> move PreferenceController into settingLib/core

Test: moved
Change-Id: I9adde03ac7790dc0eacc2f58be3c2af0c9c58900
ettingslib/core/PreferenceControllerTest.java
8f06ab0774d44c49fbb5b122b7266192c49271c0 08-Dec-2016 roger xue <rogerxue@google.com> making changes to settingsLib so we can create car setting using settingsLib

Test: make -j40 RunSettingsLibRoboTests

Change-Id: I4eff074ebbbf1d4a4325580d68a2123d3f5ff930
ettingslib/drawer/TileUtilsTest.java
62d80aa09ff8ba58e4ba513ec21614d501602be1 22-Dec-2016 Shahriyar Amini <samini@google.com> Merge "Allow Settings tiles to use content provider data."
676add41226099c1bc943763ef98bc473f8573e1 16-Dec-2016 Shahriyar Amini <samini@google.com> Allow Settings tiles to use content provider data.

Bug: 31002801
Test: make RunSettingsLibRoboTests

Adds optional metadata fields to specify a URI to a content provider
for reading the tile data.

Change-Id: Idc47eefc067fb9d4832dfbd58171943c29f0a529
ettingslib/drawer/TileUtilsTest.java
b9453be3644cd5b5458f5a95041da1984023a35d 21-Dec-2016 Andrew Sapperstein <asapperstein@google.com> resolve merge conflicts of 4e10b37 to master

Change-Id: If5091133617285fdb7f3c0312e9e229ae8e53fe0
8dc3b870a0d4095c2382f131fdba68168d757d2c 16-Dec-2016 Andrew Sapperstein <asapperstein@google.com> Add flags to send package name for feedback.

Bug: 32189956
Test: make RunSettingsLibRoboTests
Change-Id: I0bd40fdf60b4f3ee21afad6e3f7dc3e4e87212f0
(cherry picked from commit c05c740d606a4a0c4418f34f6cfbc06fbda8d201)
ettingslib/HelpUtilsTest.java
c05c740d606a4a0c4418f34f6cfbc06fbda8d201 16-Dec-2016 Andrew Sapperstein <asapperstein@google.com> Add flags to send package name for feedback.

Bug: 32189956
Test: make RunSettingsLibRoboTests
Change-Id: I0bd40fdf60b4f3ee21afad6e3f7dc3e4e87212f0
ettingslib/HelpUtilsTest.java
485df11f7770edc6c7d0f87ade5b2e0aa40e7e59 19-Dec-2016 Doris Ling <dling@google.com> Overload TileUtils.getCategories() with an additional parameteri.

Add a string parameter to specify any extra intent action to be used
to query all dashboard categories.

Bug: 32739952
Test: make RunSettingsLibRoboTests

Change-Id: I4df39acfde841ab0553fe01893e9e4a97d6f7bca
ettingslib/drawer/TileUtilsTest.java
5ed0692b2580eb666df050b5309a2489294406c1 14-Dec-2016 Lei Yu <jackqdyulei@google.com> Merge "Change animation based on visibility of the drawable"
089b6ac75a2651361908bca754cc2faa784419f8 30-Nov-2016 jackqdyulei <jackqdyulei@google.com> Change animation based on visibility of the drawable

Bug: 27633363
Test: make RunSettingsLibRoboTests
Change-Id: I589056eb95ee0af046e39d2a646b51c754886b4d
ettingslib/widget/AnimatedImageViewTest.java
4e201486b5cfd2c7479aff4b0d198cfb56a919b0 07-Dec-2016 Andrew Scull <ascull@google.com> Extract checking profiles for restrictions into a shared method.

Test: m RunSettingsLibRoboTests
Change-Id: Ie8fd3121771a7a2213ee441aef5a0746ad09a6c9
ettingslib/RestrictedLockUtilsTest.java
6b32ae37461a30d5c7c1124c805a77075e543bad 22-Nov-2016 Shahriyar Amini <samini@google.com> Allow injected Settings tiles to specify a key.

Bug: 31002801
Test: make RunSettingsLibRoboTests

Adds an optional metadata field to specify the key used for an injected
preference.

Change-Id: I3426713783b58020849bc384334ad173061847e9
ettingslib/drawer/TileUtilsTest.java
cdbe1d645becca3db7707885e962d1a0b9612d93 23-Nov-2016 Fan Zhang <zhfan@google.com> Add test for TileUtils.

- Verify it skips non-system apps.
- Verify it parses category correctly.

Bug: 32460089
Test: make RunSettingsLibRoboTests
Change-Id: I743309206e1969dee4b1e62146be64eb4d143614
ettingslib/drawer/TileUtilsTest.java
2ba9de340b9ef94c72715baee48f46d7b53893e0 17-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add a category key for development options."
e9bb36caa6ed46cbde6fa44d84b00dacaac456a3 17-Nov-2016 Fan Zhang <zhfan@google.com> Add a category key for development options.

Bug: 32623105
Test: RunSettingsLibRoboTests
Change-Id: I892385d3acf11c3d02df30a5cc9d73e3ecf8612c
ettingslib/drawer/CategoryKeyTest.java
5fa4af08c603607d7df7470dc10d3af2d2f04137 16-Nov-2016 Fan Zhang <zhfan@google.com> Remove tiles pointing to same intent within same category.

Bug: 32874082
Test: RunSettingsLibRoboTests
Change-Id: I155495882663ed60cbf21c9a5651709ac3cbd137
ettingslib/drawer/CategoryManagerTest.java
fc76ab3cbf1794d2d72a92c87afc1cf9f62cc03a 14-Nov-2016 Fan Zhang <zhfan@google.com> Group injected tiles together based on package name.

During grouping, tiles are sorted based on package name, and their own
priority value. However if the package is Settings itself, the ordering
is not changed.

Before sort: [pkg1, 100], [pgk2, 120], [pkg1, 130]
After sort: [pkg1, 1], [pkg1, 2], [pkg2,3]

This is necessary to make sure settings app have the overall control of
ordering of all dynamic tiles. When each app define their priority, they
don't have access to the global vision of what other settings are on
screen so it's possible different app define conflicting orderings.
Settings app is the only reasonable place to rank them properly.

Bug: 32827787
Test: RunSettingsLibRoboTests
Change-Id: I38de55530e61da9de7532ef6a7ee97ef89aca9d9
ettingslib/drawer/CategoryManagerTest.java
9c9e364ae85c7386df7e46e5bb1e8bcdde7a889c 04-Nov-2016 Fan Zhang <zhfan@google.com> Add new category for input setting and language setting

Bug: 32637613
Bug: 32643833
Test: RunSettingsLibRoboTests

Change-Id: I3551f3743982372e314dac1c778d0faddbfbea69
ettingslib/drawer/CategoryKeyTest.java
ca60facfdc0aea84051b47d7dc93d6d961bf2516 02-Nov-2016 Fan Zhang <zhfan@google.com> Filter external setting intents using IA_SETTING keyword.

Also add test for CategoryKey

Bug: 32382487
Bug: 32460089
Test: make RunSettingsLibRoboTests
Change-Id: I0ed6278344a545b5fc952f5811322857382e4b60
ettingslib/drawer/CategoryKeyTest.java
914afbfbd048721fb9ece683b9e881b79a01e34e 01-Nov-2016 Fan Zhang <zhfan@google.com> Create test for CategoryManager.

- Move SettingsLibTests to tests/integ
- Create a new robotests directory for SettingsLib.
- Add test cases for CategoryManager#backwardCompatCleanupForCategory

Bug: 32382487
Test: make RunSettingsLibRoboTests
Change-Id: I7ef5921ce8c47a3e1e7209be1abc97ea549a2378
ettingslib/TestConfig.java
ettingslib/drawer/CategoryManagerTest.java