OSDN Git Service
jackqdyulei [Thu, 9 Nov 2017 21:09:28 +0000 (13:09 -0800)]
Add help info at the bottom of the dialog
It contains a link to help center
Bug:
68030013
Test: RunSettingsRoboTest
Change-Id: I79260eff35e604fa97cf21c62f58c02f3bbe5cfb
TreeHugger Robot [Fri, 5 Jan 2018 02:11:09 +0000 (02:11 +0000)]
Merge "Add a new widget MasterCheckBoxPreference."
TreeHugger Robot [Fri, 5 Jan 2018 01:45:14 +0000 (01:45 +0000)]
Merge "Bluetooth: Use "Disable" in-band ringing instead of "Enable""
TreeHugger Robot [Fri, 5 Jan 2018 00:36:17 +0000 (00:36 +0000)]
Merge "Merge sub pages for lock/unlock into 1 xml."
Doris Ling [Fri, 5 Jan 2018 00:31:07 +0000 (16:31 -0800)]
Add a new widget MasterCheckBoxPreference.
This is similar to the master switch preference, but instead of the
toggle button, it provides a checkbox as the preference widget.
Change-Id: Ic2392f6a828298ab85494e7dd127fd2d787ce121
Fixes:
71603100
Test: make RunSettingsRoboTests
TreeHugger Robot [Fri, 5 Jan 2018 00:02:48 +0000 (00:02 +0000)]
Merge "Support getDynamicSummary in BasePreferenceController"
Jack He [Thu, 7 Dec 2017 23:09:07 +0000 (15:09 -0800)]
Bluetooth: Use "Disable" in-band ringing instead of "Enable"
* Given that in-band ringing is enabled by default on supported devices,
the corresponding development settings should be rephrased from
"Enable in-band ringing" to "Disable in-band ringing" to hint that it
is enabled by default
* This also gets rid of special logic to check that option in
initialization
* Add strings to reflect this update
* Modify BluetoothInbandRingingPreferenceControllerTest to reflect this
change
Bug:
65383086
Test: make, try toggling the preference and verify whether in-band
ringing works or not, RunSettingsRoboTests
Change-Id: I29f91c7d12c725b12452ec163b75051ff28f500d
Fan Zhang [Wed, 3 Jan 2018 23:02:02 +0000 (15:02 -0800)]
Merge sub pages for lock/unlock into 1 xml.
And create PreferenceControllers for each setting
The page is still pretty janky and controllers are invoked manually.
Next CL will clean these up.
Bug:
32953042
Test: TODO
Change-Id: I1d7478324f5de4fdb464d79f89086f7e79c0ee67
TreeHugger Robot [Thu, 4 Jan 2018 22:57:35 +0000 (22:57 +0000)]
Merge "Add ability to show/hide accessibility_shortcut_preference."
TreeHugger Robot [Thu, 4 Jan 2018 22:45:54 +0000 (22:45 +0000)]
Merge "Disable animation when adjusting font size."
Jeff Sharkey [Thu, 4 Jan 2018 22:25:01 +0000 (22:25 +0000)]
Merge "Unlock all users before moving or migrating."
Matthew Fritze [Wed, 3 Jan 2018 00:39:39 +0000 (16:39 -0800)]
Support getDynamicSummary in BasePreferenceController
Adds dynamic summary getter in relevant BasePreferenceControllers.
Preferece controllers that don't have dynamic summaries or which
are not yet BasePreferenceControllers are not changed right now.
Change-Id: I435ccab7758d90515583fd8ca10a9b1ef0c858b9
Fixes:
71514936
Test: robotests
TreeHugger Robot [Thu, 4 Jan 2018 21:53:21 +0000 (21:53 +0000)]
Merge "Add ability to show/hide items for Special Access."
Doris Ling [Thu, 4 Jan 2018 21:05:46 +0000 (13:05 -0800)]
Disable animation when adjusting font size.
- The fade-in and fade-out animation for transitioning between
different frames in the text preview is very janky. Disable the
animation to get a smoother transition while dragging along the seek
bar.
Change-Id: I201faf8229961ea5fa5fe42efd312290a4af0f30
Fixes:
71569578
Test: visual
Victor Chang [Thu, 4 Jan 2018 17:35:19 +0000 (17:35 +0000)]
Merge "Revert "Don't use framework strings for formatting file sizes""
TreeHugger Robot [Thu, 4 Jan 2018 02:45:27 +0000 (02:45 +0000)]
Merge "Change underlying preferenceControllers to an ArrayMap of Lists."
TreeHugger Robot [Thu, 4 Jan 2018 01:49:38 +0000 (01:49 +0000)]
Merge "Convert trust agent pref list logic to PreferenceController"
Ben Lin [Fri, 22 Dec 2017 01:32:34 +0000 (17:32 -0800)]
Change underlying preferenceControllers to an ArrayMap of Lists.
Previously, DashboardFragment stores preference controllers in an
ArrayMap of <Class, AbstractPreferenceController>. Thus when there are
multiple controllers of same class (ie. multiple
PreferenceCategoryControllers), they cannot be stored simultaneously.
This changes the value to a List so we can store multiple controllers of
the same Class without extraneous sub-classing.
Bug:
70949662
Test: All existing tests still pass.
Added
DashboardFragmentTest#testPreferenceControllerSetter_shouldAddAndNotReplace
and DashboardFragmentTest#updateState_doesNotSkipControllersOfSameClass.
Change-Id: I397e8c91977ea1180d48a3af75dd4058bf1175c0
Ben Lin [Thu, 21 Dec 2017 02:22:49 +0000 (18:22 -0800)]
Add ability to show/hide items for Special Access.
This adds five new boolean flags:
config_show_high_power_apps
config_show_device_administrators
config_show_premium_sms
config_show_data_saver
config_show_enabled_vr_listeners
Which when individually set to false, will hide the respectively item
from "Special Access" in Apps & notifications. It will also hide them
from surfacing in search results.
Bug:
70907131
Test: Updated SpecialAccessSettingsTest, and created:
HighPowerAppsControllerTest
DeviceAdministratorsControllerTest
PremiumSmsControllerTest
DataSaverControllerTest
EnabledVrListenersControllerTest
Change-Id: I5ad58755643e71d4fb71774404ad96c127440ae4
TreeHugger Robot [Wed, 3 Jan 2018 22:35:18 +0000 (22:35 +0000)]
Merge "Update EncryptionStatusPrefController to BasePrefController"
Fan Zhang [Wed, 3 Jan 2018 19:30:14 +0000 (11:30 -0800)]
Convert trust agent pref list logic to PreferenceController
Bug:
32953042
Test: robotests
Change-Id: I1420e90d4910a11fc5837ef2e150c822635b74a5
TreeHugger Robot [Wed, 3 Jan 2018 21:56:32 +0000 (21:56 +0000)]
Merge "Add ability to show/hide Wi-Fi settings, and all related sub-settings."
Ben Lin [Wed, 20 Dec 2017 20:37:10 +0000 (12:37 -0800)]
Add ability to show/hide Wi-Fi settings, and all related sub-settings.
This adds a new boolean flag, config_show_wifi_settings, which when set
to false will hide the "Wi-Fi" page in network & internet (there is no
key value associated with this preference page). It will also hide
nested pages from search results, such as Wi-Fi preferences.
Bug:
62379554
Test: make RunSettingsRoboTests
ROBOTEST_FILTER=ConfigureWifiSettingsTest
and
make RunSettingsRoboTests
ROBOTEST_FILTER=WifiSettingsTest
and
make RunSettingsRoboTests
ROBOTEST_FILTER=WifiMasterSwitchPreferenceControllerTest
all pass.
Change-Id: Iedc6bc272e0cb2b561c6bf25968e70f355aaaa8e
TreeHugger Robot [Wed, 3 Jan 2018 19:31:34 +0000 (19:31 +0000)]
Merge "Remove Suggestion v1 code."
TreeHugger Robot [Wed, 3 Jan 2018 18:46:32 +0000 (18:46 +0000)]
Merge "Convert some security setting logic to PreferenceController"
Fan Zhang [Wed, 3 Jan 2018 18:34:12 +0000 (10:34 -0800)]
Update EncryptionStatusPrefController to BasePrefController
Bug:
32953042
Test: robotests
Change-Id: I273d299c433e9886cb09a8527cdb6cdd0d755d0e
Ben Lin [Fri, 15 Dec 2017 22:40:44 +0000 (14:40 -0800)]
Add ability to show/hide accessibility_shortcut_preference.
This adds a new boolean flag,
config_show_accessibility_shortcut_preference, which when set to false
will hide the accessibility shortcut preference item.
Bug:
62387367
Test: make RunSettingsRoboTests
ROBOTEST_FILTER=AccessibilitySettingsTest
Change-Id: I3fd941695df1ad89f717f464d2383be909839a3b
TreeHugger Robot [Wed, 3 Jan 2018 16:41:26 +0000 (16:41 +0000)]
Merge "Notification settings updates"
Victor Chang [Wed, 27 Dec 2017 11:41:30 +0000 (11:41 +0000)]
Revert "Don't use framework strings for formatting file sizes"
This reverts commit
ded99003c45545d739a013caf7ca0c6bf7896785.
- Add java import in order to build successfully
- Fix RunSettingsRoboTests
Test: adb shell am instrument -w -e class
com.android.settings.utils.FileSizeFormatterTest
com.android.settings.tests.unit/android.support.test.runner.AndroidJUnitRunner
Test: make -j RunSettingsRoboTests
Bug:
70005649
Bug:
36994779
Change-Id: I1c0ff48c749e9fbb82fd670c27243bd3922ed373
TreeHugger Robot [Wed, 3 Jan 2018 02:02:58 +0000 (02:02 +0000)]
Merge "Fork SecuritySettings page and hide behind a feature flag."
Fan Zhang [Tue, 2 Jan 2018 22:17:40 +0000 (14:17 -0800)]
Convert some security setting logic to PreferenceController
- Manage trust agent
- Show password
- Sim lock
- Screen pinning
Bug:
32953042
Test: robotests
Change-Id: I0c781a505238cae7a6643b701b750ca63a87a8a5
Fan Zhang [Tue, 2 Jan 2018 19:22:36 +0000 (11:22 -0800)]
Remove Suggestion v1 code.
Change-Id: Ie6e9c8f2b1b5b609d44e287accb9fbbef9054d34
Fixes:
68719093
Test: robotests
Fan Zhang [Fri, 22 Dec 2017 17:59:37 +0000 (09:59 -0800)]
Fork SecuritySettings page and hide behind a feature flag.
Bug:
32953042
Test: robotests
Change-Id: Ibbb4221eef87f09ccd024146517707680180a100
Julia Reynolds [Thu, 21 Dec 2017 18:28:20 +0000 (13:28 -0500)]
Notification settings updates
- Text changes
- Show channels on the app settings screen (again)
- Hide most of the channel settings under 'advanced' (note: this hides
the footer preference(s) also, at the moment. the functionality
to exclude those is coming in a later cl)
- Add a 'show notifications' toggle for each app created group
Bug:
63927402
Test: make RunSettingsRoboTests
Change-Id: I9906ef943d05e1915061b59294a25d81c4e6cbb5
Julia Reynolds [Thu, 21 Dec 2017 18:26:39 +0000 (13:26 -0500)]
Allow switchbars to have alternate text
For when On and Off aren't descriptive enough.
Bug:
63927402
Test: make -j20 RunSettingsRoboTests
Change-Id: I1e12d8d92dbe2f0a4c5202667cf1a76f0428e048
TreeHugger Robot [Wed, 27 Dec 2017 23:06:22 +0000 (23:06 +0000)]
Merge "Fix bug in SummaryLoader"
Akiya Utsumi [Wed, 27 Dec 2017 21:52:05 +0000 (21:52 +0000)]
Merge "Fix the format of wifi_carrier_content string" am:
985b432fc0 am:
47ba3b400c
am:
9dffb28afd
Change-Id: I90004b044b4217ad0c102e9afde1f491826d6a4f
Akiya Utsumi [Wed, 27 Dec 2017 21:45:58 +0000 (21:45 +0000)]
Merge "Fix the format of wifi_carrier_content string" am:
985b432fc0
am:
47ba3b400c
Change-Id: I39a694ec83185fa6eb5d13cffa6d0390fe7d568a
Akiya Utsumi [Wed, 27 Dec 2017 21:43:20 +0000 (21:43 +0000)]
Merge "Fix the format of wifi_carrier_content string"
am:
985b432fc0
Change-Id: Ic77ff6da5081cae7a3b7fba31bc4902645188763
Treehugger Robot [Wed, 27 Dec 2017 21:36:40 +0000 (21:36 +0000)]
Merge "Fix the format of wifi_carrier_content string"
TreeHugger Robot [Sat, 23 Dec 2017 00:47:11 +0000 (00:47 +0000)]
Merge "Import translations. DO NOT MERGE"
Bill Yi [Fri, 22 Dec 2017 23:05:08 +0000 (15:05 -0800)]
Import translations. DO NOT MERGE
Change-Id: I7e2bf66b896c6fab42a643a7c74535b354b0d94c
Auto-generated-cl: translation import
Lei Yu [Fri, 22 Dec 2017 22:17:28 +0000 (22:17 +0000)]
Merge "Add summary placeholder for bt preference"
jackqdyulei [Fri, 22 Dec 2017 18:25:04 +0000 (10:25 -0800)]
Add summary placeholder for bt preference
Then UI won't be janky(as everything slide down a little bit)
Bug:
63910184
Test: RunSettingsRoboTests
Change-Id: Ie4074694f54af92da52f09d2caaab5490fa73647
Akiya Utsumi [Tue, 31 Oct 2017 02:11:15 +0000 (11:11 +0900)]
Fix the format of wifi_carrier_content string
Carrier name is not displayed on the dialog due to the
incorrect format "%1%s". This should be "%1$s".
Test: String change, manually verified
Bug:
70814622
Change-Id: Ie30b8d1eb85d390e4023e0a251e1f1c7fa6deec0
TreeHugger Robot [Fri, 22 Dec 2017 03:31:30 +0000 (03:31 +0000)]
Merge "Relax char length limits and add clarifications"
TreeHugger Robot [Fri, 22 Dec 2017 02:18:30 +0000 (02:18 +0000)]
Merge changes from topic "battery_tip_constants"
* changes:
Add BatteryTipDetector and LowBatteryTip stuffs.
Add BatteryTipPolicy
Fan Zhang [Fri, 22 Dec 2017 01:33:06 +0000 (01:33 +0000)]
Merge "DO NOT MERGE: Fix test failure in CodeInspectionTest" am:
7c46a79a00 -s ours am:
7e3fdede58
am:
c1ecf35052 -s ours
Change-Id: I670d004d2eb368b613f7cf2e7605a2c39e67293c
Fan Zhang [Fri, 22 Dec 2017 01:22:59 +0000 (01:22 +0000)]
Merge "DO NOT MERGE: Fix test failure in CodeInspectionTest" am:
7c46a79a00 -s ours
am:
7e3fdede58
Change-Id: I650211969d19051a5ba69ff86c1c3f087fcaa453
Lifu Tang [Thu, 21 Dec 2017 03:54:49 +0000 (19:54 -0800)]
Relax char length limits and add clarifications
Bug:
70775976
Test: build, flash, and test manually
Change-Id: Ie278704bf32ce39fcd15509fdce09de2ace17993
Fan Zhang [Fri, 22 Dec 2017 01:13:32 +0000 (01:13 +0000)]
Merge "DO NOT MERGE: Fix test failure in CodeInspectionTest"
am:
7c46a79a00 -s ours
Change-Id: I83bb99c73fcd2818105b51633ea8c5c42bcd74a0
Treehugger Robot [Fri, 22 Dec 2017 01:01:41 +0000 (01:01 +0000)]
Merge "DO NOT MERGE: Fix test failure in CodeInspectionTest"
Fan Zhang [Fri, 15 Dec 2017 19:58:56 +0000 (11:58 -0800)]
DO NOT MERGE: Fix test failure in CodeInspectionTest
Change-Id: I74fbd30261fa66636c915936270d873e7612cbc6
Fixes:
70496869
Test: robotests
TreeHugger Robot [Thu, 21 Dec 2017 19:44:38 +0000 (19:44 +0000)]
Merge "Move ServiceListing to SettingsLib"
Jeff Sharkey [Thu, 21 Dec 2017 18:30:49 +0000 (18:30 +0000)]
Merge "Shift storage wizards over to Glif theme."
Tony Mantler [Wed, 20 Dec 2017 23:54:01 +0000 (15:54 -0800)]
Move ServiceListing to SettingsLib
Also tidy things up a bit
Bug:
70902607
Test: RunSettingsRoboTests
Change-Id: Id641beb601513bb4e34a098bf2729eb98954175d
TreeHugger Robot [Thu, 21 Dec 2017 13:37:36 +0000 (13:37 +0000)]
Merge "Managed profile lock timeout"
Maggie Wang [Thu, 21 Dec 2017 04:51:04 +0000 (04:51 +0000)]
Merge "Set initialExpandedChildrenCount dynamically in location settings"
Sudheer Shanka [Thu, 21 Dec 2017 03:51:40 +0000 (03:51 +0000)]
Merge "Update FakeUid to match BatteryStats.Uid."
Maggie [Wed, 20 Dec 2017 01:02:20 +0000 (17:02 -0800)]
Set initialExpandedChildrenCount dynamically in location settings
In location settings, we want "Advanced" button show up right after "App
level permissions". But with different numbers of "recent location requests" apps,
the Preferences hidden under Advanced could change.
To fix this issue, we fetch the list of apps with "recent location
requests" in LocationSettings.onCreate(), and set
initialExpandedChildrenCount for location PreferenceScreen to the apps
count.
Bug:
70350519
Test: Manual
Change-Id: I4c4b6bdfa916213494a29e8ae8b5f33476411c88
TreeHugger Robot [Thu, 21 Dec 2017 02:35:48 +0000 (02:35 +0000)]
Merge "Catch NullPointerException in PreIndexDataCollector."
TreeHugger Robot [Thu, 21 Dec 2017 01:48:30 +0000 (01:48 +0000)]
Merge "Settings: Add LOCAL_MAC_ADDRESS permission"
TreeHugger Robot [Thu, 21 Dec 2017 01:20:28 +0000 (01:20 +0000)]
Merge "Update the usage of quiet mode @hide API"
Doris Ling [Thu, 21 Dec 2017 00:38:45 +0000 (16:38 -0800)]
Catch NullPointerException in PreIndexDataCollector.
Null pointer exception is thrown from ContentProviderNative when we
query the non indexable keys. Added a try-catch block to prevent it from
crashing.
Change-Id: I45c1e34bb81a4739ae2eb5dd19a08781ab7beeb1
Fix:
70900076
Test: manual
TreeHugger Robot [Wed, 20 Dec 2017 23:57:28 +0000 (23:57 +0000)]
Merge "Add toggle for enable/disable auto hotspot off"
Maggie Wang [Wed, 20 Dec 2017 22:31:43 +0000 (22:31 +0000)]
Merge "Display "Recent Location Requests" in order"
Maggie [Fri, 8 Dec 2017 19:30:02 +0000 (11:30 -0800)]
Display "Recent Location Requests" in order
A list of apps with recent location requests is displayed under Settings -> Security & Location -> Location. The apps were sorted in alphabetical order. This CL changes the behavior and displays the apps in original order from RecentLocationApps.getAppList().
Bug:
70350519
Test: Robolectric
Test: manual
Change-Id: I0fc1ce307b9519f3f324db220b6e2b32ed71cc2f
jackqdyulei [Wed, 20 Dec 2017 19:22:52 +0000 (11:22 -0800)]
Add toggle for enable/disable auto hotspot off
Bug:
69323125
Test: RunSettingsRoboTests
Change-Id: I18896401240f75bdf2bdf187c2c7a7b623b20c43
Lei Yu [Wed, 20 Dec 2017 21:14:41 +0000 (21:14 +0000)]
Merge "Extract method getBatteryInfo() from loader"
Mady Mellor [Wed, 20 Dec 2017 21:14:15 +0000 (21:14 +0000)]
Merge "Update settings slice provider to use new API"
Jeff Sharkey [Wed, 20 Dec 2017 20:20:38 +0000 (13:20 -0700)]
Shift storage wizards over to Glif theme.
This matches new UX best-practices, and allows us to remove some
special one-off hacks.
Test: visual
Bug:
70894690
Change-Id: I2705c731277cae7f19bce78a0a2a023ad0777b83
Sudheer Shanka [Wed, 25 Oct 2017 23:43:31 +0000 (16:43 -0700)]
Update FakeUid to match BatteryStats.Uid.
Bug:
66953194
Test: N/A
Change-Id: Ibb4c6be68d1ea2c64f7da7bc0b39d7142ac8ce9a
TreeHugger Robot [Wed, 20 Dec 2017 19:44:40 +0000 (19:44 +0000)]
Merge "Log search latency in event log"
TreeHugger Robot [Wed, 20 Dec 2017 19:05:29 +0000 (19:05 +0000)]
Merge "Add rounded corners to wifi connection dialog"
Fan Zhang [Wed, 20 Dec 2017 17:48:31 +0000 (09:48 -0800)]
Log search latency in event log
The latency number (10) is fake and doesn't matter, because the page
is going away soon.
Bug:
68017528
Test: rerun robotest
Change-Id: I0a9aba1f0a101bcd7aa4134c7b72aee6708663a4
Lei Yu [Wed, 20 Dec 2017 17:49:47 +0000 (17:49 +0000)]
Merge "Remove wifi calling from Wifi settings"
Pavel Grafov [Tue, 6 Dec 2016 15:54:50 +0000 (15:54 +0000)]
Managed profile lock timeout
Test: make ROBOTEST_FILTER=TimeoutPreferenceControllerTest RunSettingsRoboTests
Test: make ROBOTEST_FILTER=LockAfterTimeoutPreferenceControllerTest RunSettingsRoboTests
Bug:
63908311
Change-Id: I7236ec4ca37353703145c3e75d508101ecc6ca80
TreeHugger Robot [Wed, 20 Dec 2017 07:47:08 +0000 (07:47 +0000)]
Merge "Add ability to show/hide default_home preference."
TreeHugger Robot [Wed, 20 Dec 2017 01:57:45 +0000 (01:57 +0000)]
Merge "Add event log tag for measuring settings latency"
TreeHugger Robot [Wed, 20 Dec 2017 01:00:32 +0000 (01:00 +0000)]
Merge "Index Data to build Slices in Settings"
jackqdyulei [Thu, 14 Dec 2017 19:15:04 +0000 (11:15 -0800)]
Add BatteryTipDetector and LowBatteryTip stuffs.
This cl adds the infra of BatteryTipDetector and use LowBatteryTip
as an example(tip model + detector).
Also add SummaryTipDetector and related tests
Bug:
70570352
Test: RunSettingsRoboTests
Change-Id: Icf1349b6ede9eb7ee5ed69b39ee3a2661ac660fa
jackqdyulei [Wed, 13 Dec 2017 21:40:24 +0000 (13:40 -0800)]
Add BatteryTipPolicy
BatteryTipPolicy contains all experimental values we could tune for
battery tip.
Bug:
70570352
Test: RunSettingsRoboTests
Change-Id: I26a3c2260dc6ff5cb10e3a4c1d55a715cc5c9a9d
goneil [Wed, 20 Dec 2017 00:46:56 +0000 (00:46 +0000)]
Merge "Set EDITED column to USER_EDITED when editing APN" am:
90d284cab7 am:
1b0c8335e3
am:
50f5d8cf66
Change-Id: Icda2b822986167cbe3afa5f56955e946bb576315
goneil [Wed, 20 Dec 2017 00:41:52 +0000 (00:41 +0000)]
Merge "Set EDITED column to USER_EDITED when editing APN" am:
90d284cab7
am:
1b0c8335e3
Change-Id: I0b37b48e160f8fcd7b96f6515b34e1cb765d2b24
goneil [Wed, 20 Dec 2017 00:39:32 +0000 (00:39 +0000)]
Merge "Set EDITED column to USER_EDITED when editing APN"
am:
90d284cab7
Change-Id: I32cb408436e755e6452dacafc3dc5808f5a2a60d
Treehugger Robot [Wed, 20 Dec 2017 00:36:53 +0000 (00:36 +0000)]
Merge "Set EDITED column to USER_EDITED when editing APN"
jackqdyulei [Wed, 13 Dec 2017 19:13:14 +0000 (11:13 -0800)]
Extract method getBatteryInfo() from loader
In battery tips, we need synchronized method to get batteryInfo.
This cl move the logic to BatteryUtils, then in battery tips we
could use this method directly.
Bug:
70570352
Test: robotest still pass
Change-Id: Id69349a25395ae472a9b3152c6f04127ee32c4e1
Fan Zhang [Wed, 20 Dec 2017 00:22:03 +0000 (16:22 -0800)]
Add event log tag for measuring settings latency
Bug:
68017528
Test: rebuild
Change-Id: I72f5092dde105ea108b0abe77b1ba64a30d89f44
Ben Lin [Tue, 19 Dec 2017 01:55:40 +0000 (17:55 -0800)]
Add ability to show/hide default_home preference.
This adds a new boolean flag, config_show_default_home, which when set
to false will hide the default_home preference item.
Bug:
62378256
Test: make RunSettingsRoboTests
ROBOTEST_FILTER=DefaultHomePreferenceControllerTest
Change-Id: Ibbf17ebb76b61fc8b2eac84016e3d874ca15a513
Lei Yu [Tue, 19 Dec 2017 23:42:28 +0000 (23:42 +0000)]
Merge "Add infra for battery tip"
Ajay Nadathur [Tue, 19 Dec 2017 19:17:12 +0000 (11:17 -0800)]
Add rounded corners to wifi connection dialog
bug:
69930374
Test: Manually tested and verified
Change-Id: I458c12d3642f9866a00eb1b0f9a5b8a323465892
TreeHugger Robot [Tue, 19 Dec 2017 22:43:41 +0000 (22:43 +0000)]
Merge "Unit test for screen timeout policy handling in Settings"
jackqdyulei [Tue, 19 Dec 2017 22:09:29 +0000 (14:09 -0800)]
Fix bug in SummaryLoader
It should use msg.obj to detect whether to start listening, not
msg.arg1.
Bug:
70607303
Test: Build
Change-Id: I55c4d988f0ebb35f4be9039055eba7803c0b082f
Jeff Sharkey [Tue, 19 Dec 2017 21:57:39 +0000 (14:57 -0700)]
Unlock all users before moving or migrating.
When moving apps or shared storage between storage media on FBE
devices, we need all users to be unlocked to successfully move
the data. This change asks the user to enter the credentials for
any locked users as part of the moving/migration wizard flows.
To do this we relax Utils.enforceSameOwner() to let us prompt for the
credentials of unrelated users, but we carefully only extend this
capability to callers interacting with the "internal" activities,
which require the MANAGE_USERS permission.
Test: builds, boots, users are unlocked before moving
Bug:
29923055,
25861755
Change-Id: Ifaeb2557c4f8c4354e1d380eaa0e413768ee239f
jackqdyulei [Tue, 12 Dec 2017 20:52:35 +0000 (12:52 -0800)]
Add infra for battery tip
This cl adds the basic structure for battery tip:
1. BaseBatteryTip: Model class to represent the tip and build
preference and dialog
2. SummaryTip: Display a general battery summary(i.e. your battery
is good..)
3. BatteryTipLoader: AsyncLoader to load the battery tips.
4. BatteryTipPreferenceController: preference controller for
preference group to display battery tips
This cl also:
1. Remove the anomaly code in PowerUsageSummary and we will add it
to app restriction in future.
2. Add preference_category_no_title.xml to avoid the extra 32dp
blank at the top.
Bug:
70570352
Test: RunSettingsRoboTests
Change-Id: If91a553888e2eb91d55fb1d0d7bbea69652f144c
TreeHugger Robot [Tue, 19 Dec 2017 21:06:04 +0000 (21:06 +0000)]
Merge "Import translations. DO NOT MERGE"
Pavel Grafov [Fri, 15 Dec 2017 18:42:11 +0000 (18:42 +0000)]
Unit test for screen timeout policy handling in Settings
This is a follow-up for http://ag/
3123412
Test: make ROBOTEST_FILTER=LockAfterTimeoutPreferenceControllerTest RunSettingsRoboTests
Test: make ROBOTEST_FILTER=TimeoutPreferenceControllerTest RunSettingsRoboTests
Bug:
63908311
Change-Id: I27631743d52163f3b6d1589b427ba617e74725a9
Fan Zhang [Tue, 19 Dec 2017 20:22:18 +0000 (20:22 +0000)]
Merge "Fix UniquePreferenceTest"
Bill Yi [Tue, 19 Dec 2017 04:28:05 +0000 (20:28 -0800)]
Import translations. DO NOT MERGE
Change-Id: I7bbec8bd3d4424dfaeefc0770d3057993963ba86
Auto-generated-cl: translation import
Fan Zhang [Tue, 19 Dec 2017 18:08:13 +0000 (10:08 -0800)]
Fix UniquePreferenceTest
Bug:
70638967
Test: atest UniquePreferenceTest
Change-Id: Idf06ccd9580d66c051f9b7c910c567f321da6cc5