Commit Graph

4383 Commits

Author SHA1 Message Date
TreeHugger Robot
be090e9fe9 Merge changes Ic95d219b,I58d82cbc
* changes:
  Don't add any trust agents if the controller is not available.
  Introduce boolean flags to show/hide items in Security & location.
2018-01-18 19:54:09 +00:00
Leif Hendrik Wilden
1546cca529 Migrate to use instrumentation classes from settingslib.
Test: Compiles. Manually tested.
Change-Id: Ie5515bb0fe3e621fc7723a9b04ba23e4bfa9c401
2018-01-18 11:13:24 -08:00
Michael Rosenfeld
e1bb0c2f4c Fix build breakage dependency.
Test: manual, builds
Change-Id: I43bd8dedc48a268bdf6cfaaf1f4c524ef6d3b646
2018-01-18 11:11:51 -08:00
Ningyuan Wang
60b8bee9f7 Remove roam scan developer settings
Bug: 72116071
Test: compile
Test: m RunSettingsRoboTests -j40
Test: Manually check developer options, make sure roam scan is
gone

Change-Id: Ibe9fb31551962ecbb2979d0d2ec6885838b919b7
2018-01-18 10:18:53 -08:00
Andrew Sapperstein
df8607a204 Merge "Ignore first crash dialog." 2018-01-18 17:49:33 +00:00
Adrian Roos
27e3e302e7 Merge "DisplayCutout: Add emulation option to DeveloperSettings" 2018-01-18 17:31:59 +00:00
TreeHugger Robot
b0781fa3a6 Merge "Show Toast with location of trace when trace is disabled" 2018-01-18 17:12:42 +00:00
Ashita Sriraman
7b3daab6c6 Merge "Moving Settings tests closer to the settings code" 2018-01-18 17:02:17 +00:00
TreeHugger Robot
6ce0b4e8b2 Merge "Remove aggressive handover developer setting" 2018-01-18 10:59:21 +00:00
Yueming Wang
66f9f64454 Merge "Disable UI in Settings app when DISALLOW_CONFIG_LOCATION_MODE is set." 2018-01-18 10:26:57 +00:00
TreeHugger Robot
46a1cb747c Merge "Asynchronously load SliceData from SliceProvider" 2018-01-18 05:00:59 +00:00
TreeHugger Robot
70ad5e661a Merge "Move styleActionBar to onStart()" 2018-01-18 03:03:02 +00:00
Ben Lin
cf6d84109b Don't add any trust agents if the controller is not available.
TrustAgentListPreferenceController gets a list of trust agents and add
them to the security_category preference category at runtime. However,
this update process is always ran - even if the controller is explicitly
disabled/not available. This fixes this.

Bug: None
Test: Updated TrustAgentListPreferenceControllerTest.
Change-Id: Ic95d219bc1d0c7cfa0c4eed0d3dd12dec0e14df6
2018-01-18 01:59:13 +00:00
Ben Lin
dd1e1e1d99 Introduce boolean flags to show/hide items in Security & location.
This adds 6 new boolean flags:
config_show_manage_device_admin
config_show_unlock_set_or_change
config_show_screen_pinning_settings
config_show_manage_trust_agents
config_show_show_password
config_show_trust_agent_click_intent

Which when individually set to false, will hide the item from "Security
& location". It will also hide them from surfacing in search results.

Bug:62379222
Test: make RunSettingsRoboTests
ROBOTEST_FILTER=com.android.settings.security
Change-Id: I58d82cbc7f366a9666cdb0f7cd1b90ebbaf418f4
2018-01-17 17:58:38 -08:00
Fan Zhang
9de4999015 Move styleActionBar to onStart()
Change-Id: I002c266acc0e1095269e92eb7988b1ab505e48ff
Fixes: 72097389
Test: robotest
2018-01-17 17:29:33 -08:00
Matthew Fritze
0cb918a1de Asynchronously load SliceData from SliceProvider
The slices paradigm is to return a slice as soon as possible
whith whatever information is currently available. Then, load the
longer information in the background and broadcast on the Uri when
the changes are ready.

This CL incorprates a cache system for SettingsSliceProvider to
load that data in the background to solve the issues of multiple
simultaneous callers.

Bug: 67996923
Test: robotests
Change-Id: I0e3f9984181e1c989fed139707cdb27956cf6de6
2018-01-17 16:31:58 -08:00
TreeHugger Robot
1c224726a9 Merge "Make LinearColorBar support RTL" 2018-01-18 00:08:24 +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
ba1ca0d551 Merge "Disable lowBatteryTip and ReducedBatteryTip" 2018-01-17 21:30:42 +00:00
Andrew Sapperstein
5cd4956276 Ignore first crash dialog.
By default, no longer show the crash dialog the first time an app
crashes. Instead, only multiple crashes will show by default.

Add developer setting to control behavior, so app developers can
ensure dialog always shows when a crash happens.

Bug: 63703353, 70640329
Test: robotests, manual crashing with a test app
Change-Id: I2e625ed147dafc188b28c52eb1b9cee6b2330d50
2018-01-17 13:28:03 -08:00
jackqdyulei
2755f3de0a DO NOT MERGE Add metric log for anomaly.
am: adf11594d3

Change-Id: I2b55df61278b9c64d80cd9ba43b8d9b1686ff6e4
2018-01-17 21:22:12 +00:00
yuemingw
754ca51842 Disable UI in Settings app when DISALLOW_CONFIG_LOCATION_MODE is set.
Bug: 67674888
Test: m -j RunSettingsRoboTest

Change-Id: I13a4fa4a3122bfd9b84f935c0aa83c019490eac9
2018-01-17 21:12:28 +00:00
Ashita Sriraman
48813e0c26 Moving Settings tests closer to the settings code
Change-Id: Ia456db3a8728b35390963c989d5788f4f23806cd
2018-01-17 13:01:46 -08: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
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
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
Adrian Roos
db9d09793f DisplayCutout: Add emulation option to DeveloperSettings
Bug: 65689439
Test: Go to Developer Settings > Toggle "Emulate display with a cutout"
Change-Id: Id3387c026df9868d42e0a7b0d7e623115f41452b
2018-01-17 20:02:57 +01:00
Michael Plass
caee81b4e5 Remove aggressive handover developer setting
The developer setting for aggressive wifi to mobile data handover is no
longer used by the framework, so it should not appear in the settings UI.

Bug: 72063774
Test: m RunSettingsRoboTests -j40
Test: Manually check developer options, make sure aggressive handover is gone
Change-Id: Id54c714fc82fb27abc0b4116f2b82be68cc6d151
2018-01-17 09:59:02 -08:00
Lei Yu
8fe96d100a Merge "Only show one tip at a time" 2018-01-17 03:30:55 +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
Vishnu Nair
45603a1524 Show Toast with location of trace when trace is disabled
- Rename Layer Trace development tile to Surface Flinger Trace

Bug: 64831661
Test: Manually toggle trace
Test: make RunSettingsRoboTests ROBOTEST_FILTER=LayerTraceTest && make RunSettingsRoboTests ROBOTEST_FILTER=WindowTraceTest
Change-Id: I438efca251688774f0d6f29ba93d02d116f1e574
2018-01-16 16:00:03 -08: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
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
a35adb12f0 Merge "Initial screens for Storage Access." 2018-01-16 19:14:58 +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
Matthew Fritze
82254b08fd Add dynamic summaries to Slices
Summary on slices will now determined by checking that
summaries in the following order are valid:
1) SliceData summary
2) Preference Controller summary
3) SliceData screen title

Valid is currently defined as:
- Not empty / null
- Not whitespace
- Not sumamry placeholder

Fixes: 71640678
Test: robotests
Change-Id: I5e699e8566ece80742d311617b7dc4e9a9bda8cf
2018-01-15 16:05:16 -08: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