Commit Graph

2530 Commits

Author SHA1 Message Date
Fan Zhang
7a6726ecda Make LinearColorBar support RTL
- Move the class to widget package
- Remove a bunch of useless drawing

Change-Id: I82f840819c89eaf3cf9b7a87e56f1031989e3262
Fixes: 62700884
Test:  robotest
2018-01-17 14:39:06 -08:00
Joachim Sauer
cff4bcb554 Merge changes from topic "tz_picker"
* changes:
  New manual time zone picker.
  Data loading component for new time zone picker.
2018-01-12 11:25:32 +00:00
TreeHugger Robot
6a2ed84df5 Merge "Re-add support string that was being used by wifi" 2018-01-11 23:18:30 +00:00
Fan Zhang
1f37d2cc7a Misc fixes in device info page
- Move DeviceInfoSettings to deviceinfo package
- Remove deprecated manifest entries
- Rename a bunch of things
- Add ripple and change text color to accent for security patch

Change-Id: I35c04e53829a67cba553f984ad1a1b9319077873
Fixes: 71775150
Test: robotests
2018-01-11 12:31:02 -08:00
Salvador Martinez
eb66aac00f Re-add support string that was being used by wifi
A wifi button was piggybacking on a support string. This CL adds a
new string for the button to use instead.

Test: robotests pass
Bug: 71858657
Change-Id: Ic0da845fb70f33fc4365a4ee4586de685e3ef338
2018-01-11 10:55:55 -08:00
Joachim Sauer
0cdbe1897c New manual time zone picker.
This implements a new manual time zone picker that allows selection of a
time zone for a selected country. It also allows selecting a fixed
offset time zone (most importantly Etc/UTC, which is a frequently
requested feature).

The new time zone picker is currently behind a feature flag
(settings_zone_picker_v2), which is disabled by default.

Test: manual
Test: SettingsFunctionalTests
Test: SettingsRobotTests
Bug: 62255208
Change-Id: I89c5a04bcb562b6facf5f31a8aa4ad1cdd51ab10
2018-01-11 18:03:16 +00:00
TreeHugger Robot
66898b0cc9 Merge "Update master switch style" 2018-01-11 03:00:28 +00:00
TreeHugger Robot
415e875324 Merge "Fix alignment in location requests screen" 2018-01-11 01:35:42 +00:00
Fan Zhang
46b5474be4 Update master switch style
- When off, background grey
- When on, background accent
- Switch toggle always white, only change the slider color during on/off

Change-Id: I0ca49439f4e20e75517d503f28cc3068930591e8
Bug: 69462439
Test: robotests
2018-01-10 15:52:20 -08:00
TreeHugger Robot
92aa8583c6 Merge changes Ie4c98617,I6a7248d9
* changes:
  Add BatteryTipDialogFragment.
  Add high usage battery tip
2018-01-10 03:15:27 +00:00
jackqdyulei
fde637ff60 Add BatteryTipDialogFragment.
This DialogFragment handles all the tip related dialogs. This cl makes:
1. All the tips parcelable.
2. Add dialog for HighUsageTip. It also need adapter to populate app
list in dialog.
3. Add and update tests

Bug: 70570352
Test: RunSettingsRoboTests
Change-Id: Ie4c986172cfc73d8746abc7457d966c8600c6145
2018-01-09 17:33:19 -08:00
TreeHugger Robot
463d33edf6 Merge "Tweak layouts for action button to match spec" 2018-01-09 23:32:43 +00:00
Antony Sargent
e2399b4ad1 Fix alignment in location requests screen
In Settings->Security & location->Location, the list of apps that have
recently requested location was moved up on the screen, and this made it
clear that the indentation of the app name was misaligned with the title
of Preference items that came after this. It turns out our custom layout
for AppPreference reserved a bit more space for icons than regular
Preference items.

While examining the layout file for location settings I also fixed a
small nit in a comment.

Fixes: 71056360

Test: Visual (go to Settings->Security & location->Location, and the app
names in the list should be indented at the same level as the Preference
items below)

Change-Id: I87e144c83cc2d13e322f65291415af037c405257
2018-01-09 15:20:28 -08:00
TreeHugger Robot
5ff1df89fa Merge "Add wifi metered controls in wifi settings." 2018-01-09 22:16:10 +00:00
Fan Zhang
88017c8451 Tweak layouts for action button to match spec
Change-Id: Ic59ee1f15f20dc431bc4a2c6df20b732842a6591
Fixes: 70903732
Test: visual
2018-01-09 13:44:06 -08:00
jackqdyulei
261c29c485 Add wifi metered controls in wifi settings.
1. Add it in wifi detail page
2. Add it in wifi dialog
2. Remove it in "Mobile network" page

Bug: 68030417
Test: RunSettingsRoboTests
Change-Id: I2e001c55f3c6c75a660e429732dfbece97b0ca9e
2018-01-09 12:44:51 -08:00
jackqdyulei
131d3b3c2f Add smart battery page for battery settings
This page contains prefs for smart battery and app restriction.

Bug: 71502850
Test: RunSettingsRoboTests

Change-Id: I194af30cbc7b2496b10098fcb67f1116e0722310
2018-01-09 12:05:36 -08:00
TreeHugger Robot
bd261ff8b1 Merge "Remove support v1" 2018-01-08 18:29:18 +00:00
Salvador Martinez
616397d28c Remove support v1
Support v1 is no longer used and we want to keep the codebase clean.

Test: robotests still pass
Bug: 70620533
Change-Id: Ic8af0f34aab510a533bd7a7ec5c059834395baf5
2018-01-05 16:34:33 -08:00
TreeHugger Robot
39e6bc2356 Merge "Add help info at the bottom of the dialog" 2018-01-06 00:15:43 +00:00
jackqdyulei
fd69cd4c33 Add help info at the bottom of the dialog
It contains a link to help center

Bug: 68030013
Test: RunSettingsRoboTest
Change-Id: I79260eff35e604fa97cf21c62f58c02f3bbe5cfb
2018-01-05 14:39:16 -08:00
Ajay Nadathur
a63075f0eb Merge "Show 'screen lock options' on all lock screen types" 2018-01-05 21:19:14 +00:00
Ajay Nadathur
a1314df69c Show 'screen lock options' on all lock screen types
bug: 66239135
Test: Manually tested and verified, robo tests updated
Change-Id: I42ae63661b5d5061fea848e2c1e8a0c8943864e4
2018-01-05 11:03:31 -08:00
TreeHugger Robot
ac870bed2f Merge "Add a new widget MasterCheckBoxPreference." 2018-01-05 02:11:09 +00:00
Doris Ling
c7f8bd49eb 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
2018-01-04 16:31:07 -08:00
Fan Zhang
928ddbe731 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
2018-01-04 15:02:36 -08:00
Victor Chang
2d43a1ed84 Merge "Revert "Don't use framework strings for formatting file sizes"" 2018-01-04 17:35:19 +00:00
Victor Chang
75325675de Revert "Don't use framework strings for formatting file sizes"
This reverts commit ded99003c4.

- 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
2018-01-03 14:33:24 +00:00
Fan Zhang
1e27d2b28e Remove Suggestion v1 code.
Change-Id: Ie6e9c8f2b1b5b609d44e287accb9fbbef9054d34
Fixes: 68719093
Test: robotests
2018-01-02 14:48:56 -08:00
Jeff Sharkey
27e7280b21 Merge "Shift storage wizards over to Glif theme." 2017-12-21 18:30:49 +00:00
Jeff Sharkey
ade52ca806 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
2017-12-20 13:29:54 -07:00
jackqdyulei
fde63fc351 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
2017-12-19 13:27:33 -08:00
Antony Sargent
6b66cd3bda Merge "Revert "Update style names due to theme migration"" 2017-12-06 19:39:56 +00:00
Antony Sargent
49820f4c65 Revert "Update style names due to theme migration"
This reverts commit cc16feb726.

Reason for revert: in b/70031670 we discovered some problems in
the support library side change (ag/3136307), and it will take a
little while to fix those problems so we need to temporarily
revert the support library changes to unblock a push of the
support library to google3.

Change-Id: I2086f434d5bcb518e474734b6d2b98a4b1c194d2
2017-12-06 17:57:01 +00:00
TreeHugger Robot
f949df10b5 Merge "Added footers to zen mode settings" 2017-12-05 21:34:36 +00:00
Beverly
b7b74226c3 Added footers to zen mode settings
ZenModeSettings Footer displays when DND will end
ZenModeBehaviorSettings Footer describes why dnd behavior cannot be changed when
in alarms only or total silence mode

Test: make RunSettingsRoboTests -j40
Bug: 63077372
Change-Id: Iefbb3995da4af2b210c8e0c3c3a798d3c613e275
2017-12-05 14:35:31 -05:00
Jeffrey Huang
d42f19e016 Merge "Default ICCID number to unavailable if no sim" 2017-12-05 18:34:05 +00:00
jeffreyhuang
1012c60fd2 Default ICCID number to unavailable if no sim
Test: Manual
Change-Id: I22c69b5c40578a43f5edf01487e41b14e08ec35b
2017-12-04 14:42:09 -08:00
Fan Zhang
e096ae7acb Change style of search bar text to allow OEM costomization.
Change-Id: I78dbe6780e3a4adefe82a36400d9fff8c1de92e3
Fixes: 68814716
Test: visual
2017-11-30 14:51:27 -08:00
TreeHugger Robot
7ec34c1781 Merge "Fix robolectric tests" 2017-11-29 22:51:27 +00:00
TreeHugger Robot
b806457ec7 Merge "Update asset for no search result image" 2017-11-29 21:14:27 +00:00
Fan Zhang
0fea400314 Fix robolectric tests
- Override a button style to avoid dependency on new style name.

Change-Id: I62935afe16424d8ddf0c2448327d76eda00440a5
Fixes: 69918100
Test: robotests
2017-11-29 12:55:19 -08:00
TreeHugger Robot
06aeaa4cf2 Merge "Rename search bar corner radius dimen to allow oem override" 2017-11-29 20:33:19 +00:00
Fan Zhang
cb721bd870 Update asset for no search result image
Bug: 68863351
Test: visual
Change-Id: Ia4d411e5d7d1db8b321fdfde006a93c6ff52ecb3
2017-11-29 12:10:50 -08:00
Fan Zhang
d643a42b5d Rename search bar corner radius dimen to allow oem override
Bug: 68814716
Test: visual
Change-Id: Iac4da717aea9fd1c3e9cec089464cbb4dccb75f9
2017-11-28 18:02:47 -08:00
TreeHugger Robot
b1edae2d04 Merge "Update Settings to use DeviceDefault colored button" 2017-11-28 21:23:49 +00:00
Antony Sargent
cc16feb726 Update style names due to theme migration
This updates some theme names to go along with a change to migrate some
theme elements from SettingsLib to the support library.

Bug: 64689839
Test: manual
Change-Id: I31b96c321def78bbb49239faae6ba8e73aacd2fa
2017-11-27 18:06:48 +00:00
TreeHugger Robot
e2e0ee33f5 Merge "Update search bar visual" 2017-11-23 00:57:34 +00:00
Fan Zhang
5830dcc100 Update search bar visual
- Rounded cornal radius is now 1/2 of total height. This makes the
search bar look like a pill.

Bug: 68814716
Test: visual
Change-Id: Ie572d11c0df8c42b4903bfe238e80eeb54e60fd0
2017-11-22 15:12:06 -08:00
Mady Mellor
7c74085df0 Add slice provider to settings (only provides wifi for now)
- Adds a slice provider to settings that can make a wifi slice

Test: Use SliceBrowser to look at the slice
Bug: 68378569
Change-Id: I8c73ea96a99ee9b0db4a2d7fddc5dbc2b1156da8
2017-11-21 12:56:21 -05:00