Commit Graph

42306 Commits

Author SHA1 Message Date
rongrong.x.gao
b573e23b48 Launch new Home app when selecting Home app in Settings
Launches the newly selected Home app when it has been selected in
Default Home app settings. This CL makes the change take effect
immediately, instead of when the Home button is pressed.

Bug: 70697830
Test: make RunSettingsRoboTests
Test: Manual - Change default home app in Settings
Change-Id: If7e2956bc6f8ddba0a7e8da48a0d38e3936c57e9
2017-12-16 12:44:01 +09:00
TreeHugger Robot
3a2573b812 Merge "Add setting to disable animations" 2017-12-16 02:21:20 +00:00
Phil Weaver
e0693ced0d Add setting to disable animations
Fixes: 12910879
Test: make RunSettingsRoboTests
Also went to Settings -> Accessibility, turned off animations,
and observed that animations stopped. Turned it back on, and
the came back. Also fiddled with the granular settings in
developer options, which behaved as expected.

Change-Id: I189fbc4152d3cdb5ee45562c33f94c739f569c32
2017-12-15 16:13:41 -08:00
Janis Danisevskis
7bc0236cc7 Merge "Make Settings aware of legacy user keys with secret key prefix" 2017-12-15 23:48:55 +00:00
tiansiming
c27b072724 Merge "Fix NPE when press ttsEngines settings icon" am: 4b6e1b0758 am: 57b9039750
am: 576e159641

Change-Id: I475b444fffea5a45532144bc85b7464979fa7a0d
2017-12-15 22:41:34 +00:00
tiansiming
576e159641 Merge "Fix NPE when press ttsEngines settings icon" am: 4b6e1b0758
am: 57b9039750

Change-Id: Iae5884c2950e479c746e7b7761a40c250121dc16
2017-12-15 22:38:29 +00:00
tiansiming
57b9039750 Merge "Fix NPE when press ttsEngines settings icon"
am: 4b6e1b0758

Change-Id: I7d90bfce2e4f5d13b66f0e408ab9ff4273f6eac6
2017-12-15 22:35:52 +00:00
Treehugger Robot
4b6e1b0758 Merge "Fix NPE when press ttsEngines settings icon" 2017-12-15 22:30:04 +00:00
goneil
a05db0fac9 Set EDITED column to USER_EDITED when editing APN
TelephonyProvider switched from defaulting EDITED to USER_EDITED and now
defaults to CARRIER_EDITED in https://android-review.googlesource.com/c/platform/packages/providers/TelephonyProvider/+/570244.
Therefore, when the user edits the APN, we can no longer rely on the
default implementation

Bug: 67750905
Test: None
Change-Id: I4996b24da94f7c1883c3c802b8edd5e23db580b2
2017-12-15 21:54:25 +00:00
Ajay Nadathur
4f3885a767 Update dialog styles to material 2
Bug: 69930374
Test: Manually tested
Change-Id: I4215d0283cbbfcc929b891f5b419b52b1de8598a
2017-12-15 13:52:43 -08:00
Janis Danisevskis
b705e1a691 Make Settings aware of legacy user keys with secret key prefix
Secret keys are not longer identifiable by their alias prefix.
So now we call getKeyCharacteristics and check the algorithm of the
key.

Bug: 63931634
Test: Manually installed a key and checked that it is still dispayed
      correctly.
Change-Id: I55a4e46434618cb52ceb9456f184e004165872fd
2017-12-15 13:46:27 -08:00
Tony Mantler
bf25160090 Move PowerWhitelistBackend to SettingsLib
Bug: 70716754
Test: RunSettingsRoboTests
Change-Id: I897ce3469bb2d72a0cbe96b16b8de1a565ba4e64
2017-12-15 12:58:34 -08:00
Mady Mellor
ca5304413a Update settings slice provider to use new API
Test: build with new API
Change-Id: I2513b23166848d7729547dc56987766aab48b016
2017-12-15 11:36:42 -08:00
jackqdyulei
5ef1f502f0 Turn on the new connected device page by default
Bug: 69926683
Test: RunSettingsRoboTests
Change-Id: Ice589b825226e92eace5f5fa6b58499a13e36ef8
2017-12-15 11:08:24 -08:00
Pavel Grafov
444989ad35 Merge "Respect DISALLOW_UNIFIED_PASSWORD in Settings." 2017-12-15 13:47:48 +00:00
Philip P. Moltmann
146e245ac8 Merge "Switch to modern ArgumentMatchers" am: b8bf3bbc72 am: ced2263d48
am: e360d51476

Change-Id: I2fb154f48bcfedecb5dbd8ccb2792ba34366ed71
2017-12-15 12:00:25 +00:00
Philip P. Moltmann
e360d51476 Merge "Switch to modern ArgumentMatchers" am: b8bf3bbc72
am: ced2263d48

Change-Id: Iccb726dc2166bb1e30f39f7f6539fb74e1d83997
2017-12-15 11:04:48 +00:00
Philip P. Moltmann
ced2263d48 Merge "Switch to modern ArgumentMatchers"
am: b8bf3bbc72

Change-Id: I81455eceac3a4273dc0bfd439fefa21c3b6f571c
2017-12-15 10:48:38 +00:00
Treehugger Robot
b8bf3bbc72 Merge "Switch to modern ArgumentMatchers" 2017-12-15 10:33:13 +00:00
Ben Lin
e4ca92af6b Introduce config_show_wallpaper_attribution.
This introduces a boolean flag in which when set to true, Wallpaper
Attribution will be shown in the Legal page. When set to false, it
will be hidden. Wallpaper has always been removed from search results,
so that has not changed.

Bug: 62378616
Test: make RunSettingsRoboTests ROBOTEST_FILTER=LegalSettings passes.
Change-Id: Ia6f3e7d1ef471eecf79f1b46616fa4ba27d35748
2017-12-14 14:38:30 -08:00
Doris Ling
e712aed3d7 Add preference controller for app header view.
- move code related to initializing/refreshing the app header from
AppInfoDashboardFragment into a new controller.
- this is the last preference logic in AppInfoDashboardFragment. With
this change, the conversion into dashboad fragment will be considered
as complete.
- remaining work for the bug will be enable the feature flag and remove
the obsolete InstalledAppDetails.

Bug: 69384089
Test: make RunSettingsRoboTests
Change-Id: I14056bf291278b2b36f9502177c84edd6a899d0f
2017-12-14 14:23:41 -08:00
TreeHugger Robot
ce2b7fe988 Merge "Clarify secondary dnd media text." 2017-12-14 22:04:11 +00:00
Beverly
bd775d9f62 ZenModeBackend gets newest notification policy
Previously, notification policy wouldn't be updated
so behavior zen mode settings pages wouldn't update
when an app changed the notification policy.  Now
notification policy will be updated on updateState of
each AbstractZenModePreferenceController.

Bug: 70662324
Test: make RunSettingsRoboTests -j40
Change-Id: Ibee20e4f27e0c833e05230ea8a3ea2cc75ae6bf0
2017-12-14 15:59:46 -05:00
Beverly
40bcefc0bb Clarify secondary dnd media text.
Bug: 63077372
Test: manual
Change-Id: I38f249851fc5122e89dd3cc33124068598475751
2017-12-14 15:29:28 -05:00
TreeHugger Robot
91ffc73152 Merge "Hide Location Mode from search results if it's not available." 2017-12-14 18:08:44 +00:00
Lei Yu
4df0963385 Merge "Add PowerUsageSummaryLegacy to Restricted list." 2017-12-14 18:05:11 +00:00
Philip P. Moltmann
a56f6c5bdb Switch to modern ArgumentMatchers
Test: adb shell am instrument -w -e class com.android.settings.vpn2.PreferenceListTest com.android.settings.tests.unit/android.support.test.runner.AndroidJUnitRunner

Change-Id: Id2e4684f6d3048cfb60fee1f747d0796c157a3da
2017-12-14 09:48:33 -08:00
TreeHugger Robot
c87e5a3609 Merge "Add developer option control for GNSS duty cycling." 2017-12-14 15:49:17 +00:00
Peter Visontay
7ca6649566 Merge "Add a unit test for the AppOps permission for displaying UI overlays." 2017-12-14 13:49:18 +00:00
TreeHugger Robot
7498b79569 Merge "Add preference controller for app action buttons." 2017-12-14 02:07:39 +00:00
gomo
e17c9406f0 Add developer option control for GNSS duty cycling.
Duty Cycling control is one of the Android-P features. In Android-P the
feature will be controlled via a Developer Options button with no
public API. This CL adds the button and connect it to be read via the
GnssLocationProivder to control the feature. Also Roboelectric test
added.

Bug: 64009176
Test: Tested on Android-P build and works as expected. Also Robolectric test added.
Change-Id: Icc0d259719cf9034caf2c78c790b914ab4292597
2017-12-13 17:29:23 -08:00
Roshan Pius
f1f209f162 Settings: Add LOCAL_MAC_ADDRESS permission
This permission is needed for displaying the WIFI MAC address.

Bug: 70638295
Test: Wifi network details page shows the wifi MAC address.
Change-Id: I5fc95699190518e6ca8cfbda16576fedd1c34d83
2017-12-13 16:20:18 -08:00
Ben Lin
d11d08658f Hide Location Mode from search results if it's not available.
Test: make RunSettingsRoboTests ROBOTEST_FILTER=LocationModeTest all
passes.
Bug: 70283459
Change-Id: Id99d4a8f694b6f223ee8ead9701569840e333a9e
2017-12-13 16:03:27 -08:00
Philip P. Moltmann
bfaec28943 Merge "Switch to modern ArgumentMatchers" 2017-12-13 23:40:08 +00:00
TreeHugger Robot
17006451fb Merge "Add Slices Data object and DB Contract" 2017-12-13 23:01:36 +00:00
TreeHugger Robot
d6d292554c Merge "Simplify DND Behavior secondary text" 2017-12-13 22:59:43 +00:00
Doris Ling
70aaa94bb2 Add preference controller for app action buttons.
- move code related to initializing/refreshing the action buttons from
AppInfoDashboardFragment into a new controller.

Bug: 69384089
Test: make RunSettingsRoboTests
Change-Id: I8eb5f42a1b6d3c35f5a9e1356a9e5e31f643d5d3
2017-12-13 14:44:38 -08:00
TreeHugger Robot
aceacf5d43 Merge "Move AppInfoDashboardFragment into appinfo package." 2017-12-13 21:22:36 +00:00
Beverly
69294a5d5c Simplify DND Behavior secondary text
Bug: 63077372
Change-Id: I0ac305ff429de27a65667441703b938305d8a03f
Fixes: 70627215
Test: make ROBOTEST_FILTER=ZenModeSettingsTest RunSettingsRoboTests -j40
2017-12-13 15:23:03 -05:00
James Lemieux
d9d4fda9fe Merge "Adopt robolectric 3.5.1" 2017-12-13 19:31:37 +00:00
Matthew Fritze
7fddfebf6c Add Slices Data object and DB Contract
Add in a Data object used to represent one row
in a new SQLite database used for building Slices.

The database has the following schema:
- Key
- Title
- Subtitle
- Screentitle
- Icon
- Fragment
- Controller

The key is the preference key.
Title, subtitle and Icon are for UI info.
Screentitle and fragment are for the intent.
Controller is used to get dynamic ui info (like summary),
and to take actions on the slice (like a toggle).

The actual indexing and a Slice will be handled in a subsquent CL,
but a prototype can be found here: ag/3324435

Test: robotests
Bug: 67996923
Change-Id: Id91deb58a3ab89ce1dab5a3f34cdb9ade6263aa8
2017-12-13 10:59:47 -08:00
Peter Visontay
11bfef660c Add a unit test for the AppOps permission for displaying UI overlays.
The test logic is the same as ExetrnalSourcesSettingsTest but I moved/renamed some methods so both AppOps tests can use them.

Test: make -j32 SettingsUnitTests && adb install -r out/target/product/marlin/data/app/SettingsUnitTests/SettingsUnitTests.apk && adb shell am instrument -w -e class com.android.settings.applications.ExternalSourcesSettingsTest com.android.settings.tests.unit/android.support.test.runner.AndroidJUnitRunner
Test: same as above, but for DrawOverlaySettingsTest
Change-Id: Ifc0f0985a4cb4a82a00839aeb4cd4216c777250e
2017-12-13 18:54:53 +00:00
Jordan Liu
567493a35c Merge "Add signal strength customization" 2017-12-13 18:20:08 +00:00
jackqdyulei
73abbc19c3 Add PowerUsageSummaryLegacy to Restricted list.
Then in guest/secondary user it is also possible to show
battery settings.

Bug: 70606597
Test: Manual
Change-Id: I7993abbf988926d0890229e9c14c779906be6e23
2017-12-13 10:19:47 -08:00
Robin Lee
3637f7a6b3 Merge "Handle getActiveAdmins() == null safely." am: d46153c3d3 am: 70a6dfd647
am: df5053e85b

Change-Id: I8f01cd4716ead11e7671e5fa572b8cd01087899c
2017-12-13 17:31:16 +00:00
Robin Lee
df5053e85b Merge "Handle getActiveAdmins() == null safely." am: d46153c3d3
am: 70a6dfd647

Change-Id: I98ccb0e4eb0882e10c0266d3f1fbbddaa1073db8
2017-12-13 17:28:34 +00:00
Robin Lee
70a6dfd647 Merge "Handle getActiveAdmins() == null safely."
am: d46153c3d3

Change-Id: If8a1bcdaa5c106394e4c00add45765d27c80e0ef
2017-12-13 17:24:00 +00:00
Treehugger Robot
d46153c3d3 Merge "Handle getActiveAdmins() == null safely." 2017-12-13 17:16:38 +00:00
Android Build Merger (Role)
4b721bc91d Merge "Import translations. DO NOT MERGE am: 1d6d60f251 -s ours" into oc-mr1-dev am: ad44ea442b -s ours
am: 937902f2f5  -s ours

Change-Id: Ibd076af118eb15993d7ecf37dbbcd77f371f892e
2017-12-13 13:25:18 +00:00
Bill Yi
76068a3a0a Import translations. DO NOT MERGE am: e30af484ff -s ours
am: b63129a388  -s ours

Change-Id: I1ba68b8ecf7f17d813ffc6023fc0589b2eb08ff6
2017-12-13 13:24:40 +00:00