Commit Graph

42194 Commits

Author SHA1 Message Date
TreeHugger Robot
1c224726a9 Merge "Make LinearColorBar support RTL" 2018-01-18 00:08:24 +00:00
Lei Yu
6f220968b4 Revert "DO NOT MERGE Add metric log for anomaly."
am: 00322c0f83  -s ours

Change-Id: Id2350a188c34d5f5f2146da4ae08cf8c09c6c597
2018-01-17 23:47:37 +00:00
Lei Yu
00322c0f83 Revert "DO NOT MERGE Add metric log for anomaly."
This reverts commit adf11594d3.

Merged-In: I83761e2a9c206ea7a04f7d031a6961fdab7ca9a0
Change-Id: I015d8c0d05c7ae9abfd4939f7a95e1f0daecc1fc
2018-01-17 23:36:05 +00:00
TreeHugger Robot
2ce430afc4 Merge "Separate suggestions and conditions." 2018-01-17 22:45:45 +00:00
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
TreeHugger Robot
c1eeb4c9fd Merge "Show current setting for Tap & Pay" 2018-01-17 22:39:02 +00:00
TreeHugger Robot
1cf4c03f87 Merge "Tweak bluetooth text alignment" 2018-01-17 22:20:21 +00:00
TreeHugger Robot
3487c1633b Merge "Allow lines to be highlighted on managed service pages." 2018-01-17 22:08:26 +00:00
Akshay Joshi
2d4f581f39 Merge "Update storage usage to be consistent in settings" 2018-01-17 21:41:25 +00:00
TreeHugger Robot
ba1ca0d551 Merge "Disable lowBatteryTip and ReducedBatteryTip" 2018-01-17 21:30:42 +00:00
jackqdyulei
50ae2b25c3 DO NOT MERGE Add metric log for anomaly. am: adf11594d3
am: 2755f3de0a  -s ours

Change-Id: Ib6d037a6cf3c8e8a24a1e99befb611c81a1493ac
2018-01-17 21:29:54 +00:00
jackqdyulei
2755f3de0a DO NOT MERGE Add metric log for anomaly.
am: adf11594d3

Change-Id: I2b55df61278b9c64d80cd9ba43b8d9b1686ff6e4
2018-01-17 21:22:12 +00:00
jackqdyulei
f2ef447e8e Tweak bluetooth text alignment
1. Remove the placeholder summary so it won't show blank summary
2. Update settings_entity_header to make text center_vertical,
so it could align with the icon.

Bug: 71742145
Test: Screenshot
Change-Id: I185114a4e0c8d996f218075a8633e802fabf3c66
2018-01-17 12:26:21 -08:00
TreeHugger Robot
807bedfab6 Merge "Skip option missing on pattern lock screen" 2018-01-17 20:22:19 +00:00
TreeHugger Robot
7817a16cf3 Merge "Keep access point list updated once in short time" 2018-01-17 19:34:24 +00:00
Antony Sargent
2d4974a40b Show current setting for Tap & Pay
In Settings > Apps & notifications > Advanced > Default apps > Tap & pay
the setting labeled "Use default" is a drop down preference but wasn't
showing the current value it's set to in its summary. This CL fixes
that.

Change-Id: I891289abad781c3eeafa2d7979373f0d53faafc6
Fixes: 67754372
Test: make -j64 RunSettingsRoboTests
2018-01-17 11:30:45 -08:00
Akshay Joshi
787bca627f Update storage usage to be consistent in settings
Storage usage is calculated differently accross multiple settings pages.
Update the logic to be consistent throughout.

Bug: 70475659
Test: Manual
Change-Id: Id01f39ead76fac505daa20998b0b326b1947a6a4
2018-01-17 19:12:05 +00:00
Doris Ling
a213bf0839 Separate suggestions and conditions.
This is the initial change for updating the suggestion cards:
- add a feature flag to swap between the new and current UI
- change suggestions to a standalone dashboard item. It becomes a
  horizontal scroll list that won't collapse/expand.
- the expand/collapse logic now only control the conditions list
- add draft for the new suggestion UI elements, but detail to fine-tune
to match the UI spec will come in following changes.

Bug: 70573674
Test: make RunSettingsRoboTests
Change-Id: I00c901e2598b26a34288fc73fd6031cc26a29ac6
2018-01-17 11:08:53 -08:00
Julia Reynolds
5038698a5f Allow lines to be highlighted on managed service pages.
Test: manual
Change-Id: I4d20b7b146b17dea8bc0ed3957d18394931889a8
Fixes: 72067617
2018-01-17 14:03:08 -05:00
TreeHugger Robot
c261912301 Merge "Remove "emergency alert" from Sound settings" 2018-01-17 17:32:15 +00:00
Fan Zhang
a958478501 Keep access point list updated once in short time
The function onAccessPointsChanged will be called many times
and access points will be updated many times in 300ms. So check
if the same event exists before calling postDelayed.

Fixes: 68230819
Test: Manual test
Change-Id: Id098e1b77c28b62a5495c3369ed950531e59dba2
2018-01-17 09:13:10 -08:00
Lei Yu
8fe96d100a Merge "Only show one tip at a time" 2018-01-17 03:30:55 +00:00
TreeHugger Robot
c74ba59aec Merge "Block settings when DISALLOW_CONFIG_AMBIENT_DISPLAY." 2018-01-17 02:17:19 +00:00
Lei Yu
e7745b128a Merge "Add early warning tip and detector" 2018-01-17 01:28:08 +00:00
TreeHugger Robot
de64baeb0e Merge "Implement PreferenceControllerMixin in TrustAgentController" 2018-01-17 00:34:39 +00:00
yuemingw
b4fc5ced62 Block settings when DISALLOW_CONFIG_AMBIENT_DISPLAY.
Test: m -j RunSettingsRoboTests
Fix: 67675787

Change-Id: Ibf5786982e258decea4486431faa45ff1b7480ef
2018-01-17 00:23:37 +00:00
Fan Zhang
568f01dfc0 Implement PreferenceControllerMixin in TrustAgentController
Change-Id: Iba7cfb139ec213ef6ebc605902a41165e52fb6a1
Fixes: 72056368
Test: robotests
2018-01-16 14:58:21 -08:00
Fan Zhang
85cd77c9f2 Remove search v1
Fixes: 69851037
Test: robotests
Change-Id: I53bc6408116031619053066055cb26cac67b9945
2018-01-16 14:19:51 -08:00
jackqdyulei
2e0bdc34f2 Only show one tip at a time
1. Update the order for each tip.
2. Change BatteryTipPreferenceController and only show one precedent
tip.
3. Update the SummaryDetector since now it doesn't need visibleTips

Bug: 70570352
Test: RunSettingsRoboTests
Change-Id: I9e2b8e72aad263f8a210c9320e0ea1eaaf8d5042
2018-01-16 14:13:13 -08:00
jackqdyulei
62d6a9dca7 Add early warning tip and detector
When battery cannot make to usual charging time, this tip would
suggest user to turn on battery saver.

This tip has two visible state(NEW, HANDLED) and display different
information.

This cl also adds an action to turn on the battery saver.

Bug: 70570352
Test: RunSettingsRoboTests
Change-Id: I0e96554df12a0d6508c27174e16d8dca7f4e1fce
2018-01-16 14:10:21 -08:00
Fan Zhang
33d5a76c6f Remove "emergency alert" from Sound settings
It's already in "App & notification" page

Change-Id: I858999f8e097d5712eee1b8d34f47e0e900bf859
Fixes: 71813931
Test: rebuild/visual/atest UniquePreferenceTest
2018-01-16 14:04:18 -08:00
jackqdyulei
d90ad5224c Disable lowBatteryTip and ReducedBatteryTip
Change-Id: Ibc2e9f01396d6584764bb3deb8e2ebabdb2c1ffb
Fixes: 71921003
Test: RunSettingsRoboTests
2018-01-16 12:41:27 -08:00
TreeHugger Robot
d6b0490dea Merge "Add ability to show/hide airplane toggle." 2018-01-16 20:16:16 +00:00
TreeHugger Robot
c2b151d8ad Merge "Fix plus position in about phone" 2018-01-16 19:21:32 +00:00
TreeHugger Robot
a35adb12f0 Merge "Initial screens for Storage Access." 2018-01-16 19:14:58 +00:00
Hansong Zhang
80fa91891e Merge "DO NOT MERGE Add developer menu to select max number of connected audio devices" am: ea5243e28d -s ours am: b4ed2b2005
am: 43c58ddfe6  -s ours

Change-Id: I1e0b733fcc666c1f34232fbab5fb97d3c9f6e0ad
2018-01-16 18:47:13 +00:00
Ben Lin
e5e8f0368f Add ability to show/hide airplane toggle.
This introduces a new boolean flag:
config_show_toggle_airplane

Which when set to false, will hide the airplane mode toggle in network &
internet.

Bug: 69813881
Test: make RunSettingsRoboTests
ROBOTEST_FILTER=AirplaneModePreferenceControllerTest

Change-Id: I2cf682bf78231040eba5573fbcb55a65be2a13df
2018-01-16 18:23:52 +00:00
Hansong Zhang
43c58ddfe6 Merge "DO NOT MERGE Add developer menu to select max number of connected audio devices" am: ea5243e28d -s ours
am: b4ed2b2005

Change-Id: I0b80d8c673b680ab530f34420bb330665ab904b8
2018-01-16 18:13:44 +00:00
Hansong Zhang
b4ed2b2005 Merge "DO NOT MERGE Add developer menu to select max number of connected audio devices"
am: ea5243e28d  -s ours

Change-Id: I57c326c97f19597bd2865c328e024de4da889e77
2018-01-16 18:04:48 +00:00
Wu Qiang
4d8f51531f Fix plus position in about phone
Settings has phone number in about phone, "+"
is shown with incorrect position in Bidi layout.
Then it needs to use BidiFormatter

Fixes: 70700094
Test: manual
Change-Id: I1d63f773926136c38ce1ac811869476dc6a89eac
2018-01-16 09:58:36 -08:00
Treehugger Robot
ea5243e28d Merge "DO NOT MERGE Add developer menu to select max number of connected audio devices" 2018-01-16 17:48:53 +00:00
TreeHugger Robot
844145686c Merge "Adopt robolectric 3.6.1" 2018-01-13 11:32:30 +00:00
TreeHugger Robot
c4667bc3b7 Merge "Tweak app notification page title and expand button cutoff" 2018-01-13 02:48:37 +00:00
Felipe Leme
7a0ad2b30f Initial screens for Storage Access.
This new settings will be accessed through Apps -> Special Apps and it will let
users change the status of granted (or denied) Scoped Access Permissions.

This initial CL implements the landing activity that shows all packages and an
initial version of the detailed activity for a specific page, althouth the
detailed activity is not ready yet.

Test: manual verification
Test: export ROBOTEST_FILTER=com.android.settings.core.codeinspection.CodeInspectionTest && make RunSettingsRoboTests -j40
Bug: 63720392

Change-Id: Id0419c2c4aaaec365803218d6947e230e4776f13
2018-01-12 18:06:48 -08:00
TreeHugger Robot
1ad173bb00 Merge "Block settings when DISALLOW_CONFIG_BRIGHTNESS." 2018-01-13 01:01:48 +00:00
TreeHugger Robot
e723c9c073 Merge "Add smart battery tip." 2018-01-12 23:11:23 +00:00
yuemingw
68b0320856 Block settings when DISALLOW_CONFIG_BRIGHTNESS.
Test: m -j RunSettingsRoboTests
Change-Id: I667c76dfef20158ab2a72178fb82b8183b448976
Fix: 67675654

Change-Id: I83f2e0086e16cd2a0dbc4cbcc31d4e2d454934cd
2018-01-12 23:03:17 +00:00
Fan Zhang
4f389a7731 Tweak app notification page title and expand button cutoff
Change-Id: If9b93023ac9ab946b7c2b0dd65852948029da896
Fixes: 71813209
Test: visual
2018-01-12 15:00:09 -08:00
TreeHugger Robot
b2174a23cb Merge "Rename trySetQuietModeEnabled to requestQuietModeEnabled as per ... the feedback from API council" 2018-01-12 22:26:02 +00:00
TreeHugger Robot
e31f582baf Merge "Introduce boolean flag to show/hide Location Scanning preference." 2018-01-12 21:53:12 +00:00