Commit Graph

34857 Commits

Author SHA1 Message Date
TreeHugger Robot
f4004ce808 Merge "Misc fixes for items under system setting" 2017-03-25 04:09:20 +00:00
TreeHugger Robot
12e272ab8f Merge changes from topic 'accessibilitybutton-target'
* changes:
  Update magnification strings
  Settings revisions for Accessibility button
2017-03-25 04:04:11 +00:00
jackqdyulei
94dd5bf84d Update fragment title for usage detail page.
Bug: 36367764
Fix: 36568434
Test: Build

Change-Id: Ib4e76e20b81a6b54efcc34d151dce5098a860c2a
2017-03-24 21:01:18 -07:00
jackqdyulei
ddba966700 Revamp the battery usage details page.
This cl adds AdvancedPowerUsageDetail to show the usage details page.
The AdvancedPowerUsageDetail contains all the needed ui components:
1. App Header
2. Two buttons
3. Usage breakdown preference category
4. Power management preference category

This cl also adds preference controller for two buttons but the
detail implementation will be added in the following cl.

Following cl will also remove previous detail page.

Bug: 35810915
Test: RunSettingsRoboTests
Change-Id: I17f95d1288762094671c0f148fa73367e51f175e
2017-03-24 20:58:44 -07:00
Fan Zhang
2a9255b33c Misc fixes for items under system setting
- Show summary under virtual keyboard: list all avaiable keyboards
- Set about phone subtext to device model string.
- Update DND Suggestion text

Change-Id: I20acffcf691d1354c7636f5851b376099844700f
Fix: 35959817
Fix: 36395109
Test: robotests
2017-03-25 02:43:23 +00:00
Casey Burkhardt
5477832096 Update magnification strings
- Adjusts string for triple-tap instructions
- Adds summary text to Settings > Accessibility > Magnification

Bug: 30960346
Test: Manual
Change-Id: I151eeaa8b08c86ba8f9dec90d14388f1d775fb57
2017-03-24 19:24:34 -07:00
TreeHugger Robot
cb25394618 Merge changes Ie7c3cd59,Ieed87d17
* changes:
  Update the battery string based on new mock.
  Update the string in battery screen
2017-03-25 01:15:46 +00:00
Ajay Panicker
1783e0020b Merge "Add default value to Bluetooth AVRCP version property get" am: 84cf0b2a4b am: 0347c57ef5
am: 4d20929038

Change-Id: I5086968b1ecaf0d171f0e85c73ca255636ecb92f
2017-03-25 01:05:22 +00:00
Ajay Panicker
4d20929038 Merge "Add default value to Bluetooth AVRCP version property get" am: 84cf0b2a4b
am: 0347c57ef5

Change-Id: I65b5233f4980b4981a58e3b4059999c2edb4232e
2017-03-25 01:02:50 +00:00
Ajay Panicker
0347c57ef5 Merge "Add default value to Bluetooth AVRCP version property get"
am: 84cf0b2a4b

Change-Id: I21a5388ee633edb4f7b59a61390b71ea59df7205
2017-03-25 01:00:51 +00:00
Treehugger Robot
84cf0b2a4b Merge "Add default value to Bluetooth AVRCP version property get" 2017-03-25 00:58:14 +00:00
Fan Zhang
51059c5c91 Move reset options to one place
Change-Id: I419c16cbfc69861e01f28c14abdde137bd78f0bb
Fix: 36458355
Test: make RunSettingsRoboTests
2017-03-24 17:26:33 -07:00
Charles He
eff418df7f Merge "VPN settings: update strings for always-on VPN" 2017-03-25 00:01:19 +00:00
Casey Burkhardt
bc3827d717 Settings revisions for Accessibility button
Populates and displays a warning message when a feature that relies
on the Accessibility button is enabled, but not assigned.

Bug: 34720082
Test: Manual
Change-Id: Ie7031716a91fdf7fc40f32bf4e0ad17af85aa573
2017-03-24 17:01:06 -07:00
TreeHugger Robot
ece7be14cb Merge "New strings for Storage settings revamp." 2017-03-24 23:51:59 +00:00
TreeHugger Robot
d3eb1f7f1f Merge "Update WriteWifiConfigToNfcDialog." 2017-03-24 23:48:06 +00:00
jackqdyulei
5776507642 Update the battery string based on new mock.
The mock has been updated, upload the string first before the
string freeze.

Now the screen still uses old string, following cl will update
the screen and remove the old string.

Bug: 36576021
Test: Build
Change-Id: Ie7c3cd59dddd9223bc89c2aedd957a836e52456a
2017-03-24 16:22:19 -07:00
jackqdyulei
164c8177a9 Update the string in battery screen
Only update the string in battery main screen and advanced screen

Bug: 36367764
Test: Manual
Change-Id: Ieed87d1766cf24d198eabfdc05f14b7653187f0f
2017-03-24 16:14:07 -07:00
TreeHugger Robot
24a3b7b33c Merge "Update FakeUid with new methods" 2017-03-24 23:04:03 +00:00
Saige McVea
5bbf987d1a Merge "Resolved accessibility service preference summary strings to use a common resource." 2017-03-24 22:56:04 +00:00
Amin Shaikh
42cee74e6b Update settings tests to use new constructor.
Bug: 36571359
Test: m RunSettingsRoboTests
Change-Id: Id8a722fa7627e83d3ed4840128cfca0cb03289d2
2017-03-24 15:50:04 -07:00
Maurice Lam
8d5a4f1689 Support center alignment
Update styles to reference the theme attribute suwGlifHeaderGravity
to, directly or indirectly via SuwDescription.Glif.

Test: Existing tests pass
Bug: 36368632
Change-Id: I6c7c234c32fdd614d4a9cdfabbef05626dad0a93
2017-03-24 15:48:14 -07:00
Doris Ling
df4c67cc69 Update Sound settings.
- change the summary to show the automatic rules info instead.
- removed ringtone preference category
- add dividers above DND and Emergency broadcast

Change-Id: Iee497d194b70af72cfd69b315d639ca62720643b
Fix: 34975939
Test: make RunSettingsRoboTests
2017-03-24 15:46:09 -07:00
TreeHugger Robot
661dc1229c Merge "Add new strings for system dashboard." 2017-03-24 22:41:02 +00:00
Jason Monk
f61d1cd025 Add strings that will be needed for screen saver settings
Bug: 35031991
Test: none
Change-Id: I5e088b0669e762eec05cee7a2f1c724c9e526052
2017-03-24 18:04:15 -04:00
Doris Ling
4573a8bced Change default value for vibrate on touch to 0 (off).
Change-Id: Ic4f1b3d7c608f5e5501af91a746afea038fd9564
Fix: 36273830
Test: make RunSettingsRoboTests
2017-03-24 14:14:11 -07:00
Fan Zhang
45f21c0aa4 Add new strings for system dashboard.
Bug: 35959817
Bug: 36458355
Test: builds
Change-Id: Iad80edff480a53019666f53dc34f52a8a4562094
2017-03-24 14:04:19 -07:00
Daniel Nishi
3d52a2277a New strings for Storage settings revamp.
Change-Id: Ic893ff8fd0d0c6ae7daae65798c83567782681ce
Fixes: 36197674
Test: None
2017-03-24 13:56:32 -07:00
Doris Ling
2004d6afc0 Update storage summary text.
add the summary text to be used when there is SD card.

Bug: 36375846
Test: builds
Change-Id: I53822c791ef43670626049da9cf7dc048350b4e3
2017-03-24 13:51:48 -07:00
Phil Weaver
296b7263ad A11y shortcut settings enhancement
Adding shortcut on/off switch, improving the service picker,
and adding a switch to enable the shortcut on the lock screen.

Also adjusted setting search code to avoid indexing the
accessibility shortcut aside from the main accessibility settings
page.

Bug: 35872328
Bug: 35219988
Test: Ran in a variety of conditions, ran existing settings test.
Also added basic robo test, verified existing robo tests pass.
Change-Id: I4da9bad74caf96d9c8f3640e7db5417b4ee5d602
2017-03-24 13:15:13 -07:00
Doris Ling
dd5693c6f4 Fix crash in TetherSettings.
In onCreate(), it checkes whether ui is restricted, and try to show an
empty screen by creating a new preference screen. However, when the
preference is not attached, it failed to get the next preference id.
Instead of replacing the current screen with a new one, remove all the
preferences on the screen.

Change-Id: I085bee025cfeabaf4aefacb717d145e668bd85e1
Fix: 36589767
Test: manual
2017-03-24 13:10:09 -07:00
Lei Yu
d3505c76cd Merge "Change dialog theme for dialog activity." 2017-03-24 20:01:23 +00:00
Saige McVea
6413604bbd Resolved accessibility service preference summary strings to use a common resource.
Test: Manual

Bug: 34682532

Change-Id: Idf617fb5008181a0739689e40fef6b3a86aaf72b
2017-03-24 12:48:11 -07:00
Casey Burkhardt
6075d46e85 Merge "Updates to Magnification Settings" 2017-03-24 19:35:20 +00:00
TreeHugger Robot
dedc8f18df Merge "Use DevicePolicyManager#isSecurityLoggingEnabled" 2017-03-24 19:11:12 +00:00
TreeHugger Robot
849d38b576 Merge "Set about phone subtext to device model string." 2017-03-24 18:50:51 +00:00
Yohei Yukawa
63ca922354 Merge "Deprecate IMM#showSoftInputUnchecked() part 2" 2017-03-24 18:50:24 +00:00
Amin Shaikh
04cae3b66a Populate summary for top level wifi picker options
Screenshot: https://drive.google.com/file/d/0B8qSkjrtrXEPLTh0ZTRnMWFWX2M/view

Bug: 36532777
Test: make RunSettingsRoboTests
Change-Id: I9b364ecc4d71de484216f848c853db91a2a08fa7
2017-03-24 17:49:06 +00:00
Amin Shaikh
bef3c6ddfd Update WriteWifiConfigToNfcDialog.
- Use the new WifiManager API to retrieve the WPS NFC token for the
current network.
- Add WifiManagerWrapper class to support testing because Robolectric
does not yet support testing Android O.

Bug: 35725168
Test: m RunSettingsRoboTests
Change-Id: I7805bdcbe02dc262083bcd371d4ad88d256f8089
2017-03-24 10:14:02 -07:00
TreeHugger Robot
60ec4d64ae Merge "Add strings for default apps" 2017-03-24 16:53:00 +00:00
Sergio Sancho
dc59fdd22f Merge "Adding new strings for the Settings changes on TTS for Android O." 2017-03-24 16:43:04 +00:00
Robin Lee
ad6dfe5562 Merge "String for blank security "user credentials" page" 2017-03-24 16:25:00 +00:00
Charles He
cce4e61260 VPN settings: update strings for always-on VPN
To conform with UX guidelines and conventions, the following changes are
made to the UI of app VPN's PreferenceFragment:
(1. Always-on toggle title stays the same)
2. Always-on toggle subtext changes from "active"/"inactive" to an
explanation of the feature
3. Lockdown toggle title is shortened
4. Lockdown toggle subtext is removed completely

And the following changes are made to the legacy VPN's ConfigDialog:
5. Error message that is displayed below the "Always-on VPN" checkbox
6. Replacing \u2019 with \'

Bug: 36382729
Test: manually navigate through VPN settings
Test: make SettingsRoboTests
Change-Id: If1b4faec8743dfbf6e3f8062b53190ad63700d25
2017-03-24 16:02:57 +00:00
TreeHugger Robot
38931ed7c1 Merge "Hide potentially invisible DO Disclosures by default" 2017-03-24 15:26:46 +00:00
Denis Kuznetsov
9992739299 Add strings for default apps
Bug: 32692748
Test: none
Change-Id: Ie37b70901463e763794bf4882c223623e46cb51a
2017-03-24 16:25:20 +01:00
liurong
2710b99d2f [VpnSettings]Crash when activity has been recycled
This is a case we found in monkey test, the main thread handles message while the activity has been recycled. It will raise a NullPointerException when we use getActivity() in following lines.
Assumpt the situation is: settings run in background and activity been recycled quickly, but handler still in the process.

Test: NA

Change-Id: I19db4f13e13294618ec8e42e4d9c54ce23504344
Signed-off-by: liurong <liurong@xiaomi.com>
2017-03-24 15:21:23 +00:00
Robin Lee
ccaf9c91fc UserCredentialsSettings: that fresh new blank look
Less obviously easy than it looks because we want to make it a
SettingsPreferenceFragment for consistency with the other blank
fragment implementations.

Fix: 30878596
Test: make RunSettingsRoboTests
Test: # open up Settings and have a look, uninstall cert, reinstall cert
Change-Id: Ifbe3132475c3104d76589a50dec3f436b9548585
2017-03-24 14:57:13 +00:00
TreeHugger Robot
169ab400a4 Merge "Enterprise string clean-up for O" 2017-03-24 14:27:51 +00:00
TreeHugger Robot
eda4347a90 Merge "Update List of apps on device string, remove "XX apps" string." 2017-03-24 14:20:42 +00:00
Sergio Sancho
a901817c29 Adding new strings for the Settings changes on TTS for Android O.
Change-Id: Ic984dfe3c9d1a1f8a308e5250d497f9024619421

Test: mmm -j20 packages/apps/Settings

Change-Id: I0e83c3793797da4488ce767e46f4597b3b66ab9e
2017-03-24 13:54:46 +00:00