Commit Graph

21750 Commits

Author SHA1 Message Date
Christine Franks
265981f394 Merge "Allow developer options in retail mode" into pi-dev 2018-03-23 01:11:23 +00:00
Julia Reynolds
58edda1230 Merge "Add a setting for the volume hush gesture" into pi-dev am: 395345c0ad
am: a7af991f37

Change-Id: Idb486a1f3216e13624020b047954e4e899034a50
2018-03-23 01:09:14 +00:00
Lei Yu
1ec3d85dda Merge "Update the toggle state in constructor." into pi-dev am: 5cafb0b553
am: b6b1ee9abb

Change-Id: I669128fc84f26a19b4857c1833b9030d89773f95
2018-03-23 01:08:15 +00:00
Jyun LuoLai
644c707590 Merge "Fix PATTERN UI to align PIN&PASSWORD screen" into pi-dev 2018-03-23 00:56:00 +00:00
Julia Reynolds
ff9500d0f9 Add manage notifications screen
Test: make -j RunSettingsRoboTests
Bug: 74318867
Change-Id: I1c872c976677ee38f7d9d9523d18fc8ca03fa547

Add manage notifications screen

Test: make -j RunSettingsRoboTests
Bug: 74318867
Change-Id: Ia3626e9f69e8b91b1a2bba9ef549c775972e749a
2018-03-22 19:57:09 -04:00
Sean Callanan
4b2d7a3780 Merge "[Settings] Add strings for Natural and Automatic color modes" 2018-03-22 23:53:11 +00:00
Maurice Lam
fd3d72e48f Merge "Make GLIF theme default for confirm lock screen" into pi-dev am: a82183849d
am: 731b049e32

Change-Id: Iaa2a51e585097b81a6f379f97fa5bfef84be4e62
2018-03-22 23:11:11 +00:00
Fan Zhang
5f9a348f7e Get rid of UserPackageWrapper util.
Robolectric can support framework private classes now, so there is no
need to use wrappers.

Bug: 76167422
Test: robotests
Change-Id: I034a9f0a9856348bff491f2e9b2b1f7d682ab942
2018-03-22 15:28:46 -07:00
TreeHugger Robot
2f137b4bac Merge "Add Slider template for Slices" into pi-dev 2018-03-22 22:08:54 +00:00
Fan Zhang
6c5af54af9 Get rid of extra whitespace under divider lines
Change-Id: Iad5ec5771a61c6e12aaefbe5fe41d17f7f09de73
Fixes: 76116029
Test: visual
2018-03-22 15:04:01 -07:00
Julia Reynolds
395345c0ad Merge "Add a setting for the volume hush gesture" into pi-dev 2018-03-22 22:03:48 +00:00
TreeHugger Robot
5cafb0b553 Merge "Update the toggle state in constructor." into pi-dev 2018-03-22 21:43:52 +00:00
Maurice Lam
a82183849d Merge "Make GLIF theme default for confirm lock screen" into pi-dev 2018-03-22 21:04:17 +00:00
Lei Yu
0544fbd507 Add callback when tethering fails
Add real callback instead of using NoOpCallback. When it fails,
reset the switchbar.

Change-Id: I6f87d7cefa67ff8f9f59a815fd976940fb61c06c
Fixes: 72904303
Test: RunSettingsRoboTests
2018-03-22 13:07:59 -07:00
Sean Callanan
e8f9bf5f68 [Settings] Add strings for Natural and Automatic color modes
These strings are not properly reflected in the UI yet.  Automatic and
Saturated currently map to the same display setting (and the UI reflects
this by checking both).

Bug: 75982435
Test: Modified the existing testcases to reflect the new string.
Change-Id: Iaef08599c0233e018eaafaf89d60eab92e102782
2018-03-22 13:05:32 -07:00
Søren Gjesse
d9ce79763a Enable R8 for settings
Keep constructor which is only used directly from test.

Update Proguard configuration to include information on checked
exceptions for Mockity to mock thorwn exception.

Bug: 74756073
Test: atest
com.android.settings.deviceinfo.storage.StorageAsyncLoaderTest#testRemovedPackageDoesNotCrash
Utf8ByteLengthFilterTest
Change-Id: Iae87e6647b28ee69d38bd8891df46239779c459c
2018-03-22 21:05:11 +01:00
arangelov
16a945aca4 Merge "Put the FLAG_ACTIVITY_NEW_TASK flag for the "Learn More" button in the "Add Account" settings screen." into pi-dev am: edfdeebfe4
am: b23bf13e72

Change-Id: Ibe2e2aa5e2f50d540f5e7d5f493376062c0f0f1c
2018-03-22 19:53:01 +00:00
Lei Yu
7c734ec32e Merge "Add log for AnomalyDetectionJobService" into pi-dev am: b4b2a6260a
am: 3f25e3e004

Change-Id: I14146fc91f84241c72256e5e8200627a6d4facb5
2018-03-22 19:43:13 +00:00
Matthew Fritze
ad6678f9fc Add Slider template for Slices
Add the Seekbar preference equivalent
to the TwoStatePreference (toggle) preference
controller abstract controller.

Change-Id: I6ff91f2f72a7f72c18ddbc27b2b1fda4b6ce6ca9
Fixes: 67996707
Test: Robotests
2018-03-22 11:46:47 -07:00
TreeHugger Robot
edfdeebfe4 Merge "Put the FLAG_ACTIVITY_NEW_TASK flag for the "Learn More" button in the "Add Account" settings screen." into pi-dev 2018-03-22 18:38:30 +00:00
Lei Yu
592faf364d Update the toggle state in constructor.
Before this cl, the update of toggle depends on BroadcastReceiver.
However it is not called when toggle is inited, which make the toggle in
broken state sometimes.

This cl make it execute the update method in constructor, so toggle can
get the correct state when it is created.

Fixes: 73718975
Test: RunSettingsRoboTests
Change-Id: Icb798afaff0bdeedad3a966315441712be2e2523
2018-03-22 11:18:43 -07:00
Lei Yu
b4b2a6260a Merge "Add log for AnomalyDetectionJobService" into pi-dev 2018-03-22 17:53:17 +00:00
arangelov
737d469b78 Put the FLAG_ACTIVITY_NEW_TASK flag for the "Learn More" button in the "Add Account" settings screen.
Bug: 75322399
Test: Manually pressed the button and verified the Settings app does not crash.
Change-Id: Ibd2b985ed898ccaa4e78c0ecf5dc667af6bc8cba
2018-03-22 16:18:49 +00:00
Benjamin Franz
00cc027534 Do not allow force stopping protected packages
Bug: 75997475
Test: make RunSettingsRoboTests
Test: manual
Change-Id: I0670f6f0afbc603d8ac61711cfefec2b1fc4b43b
2018-03-22 11:16:07 +00:00
Fan Zhang
4a4afa1de7 Merge "Fix crash when launching mobile data usage page via intent." into pi-dev am: f88dcfadbb
am: 60790e883c

Change-Id: I96b028d028a213f882558ad766b2b0cd1a994d8f
2018-03-22 07:36:08 +00:00
TreeHugger Robot
f88dcfadbb Merge "Fix crash when launching mobile data usage page via intent." into pi-dev 2018-03-22 07:24:23 +00:00
TreeHugger Robot
baea1c87f5 Merge "Fix renaming for Bluetooth devices when rotating to landscape" into pi-dev 2018-03-22 07:17:17 +00:00
Doris Ling
175d61a01e Merge "Fix crash when pausing DndCondition." into pi-dev am: e119601136
am: d8b61c21a0

Change-Id: I7743c5d984e76c4223e88899311e60565c8ebb83
2018-03-22 05:39:07 +00:00
Andreas Terzis
7130de5fb6 Merge "Add back the data saver preference." into pi-dev am: ce447d9191
am: fa50690b29

Change-Id: If8fee16cc05372badda44582d78bd4304c6356f1
2018-03-22 05:29:10 +00:00
TreeHugger Robot
e119601136 Merge "Fix crash when pausing DndCondition." into pi-dev 2018-03-22 05:06:15 +00:00
TreeHugger Robot
ce447d9191 Merge "Add back the data saver preference." into pi-dev 2018-03-22 04:56:35 +00:00
Lei Yu
2eb69b56ed Merge "Only show restricted apps that belong to the user." into pi-dev am: 5464549257
am: ad1549b54d

Change-Id: I34c2fc249d821521c6ce9333e9b9815a51c373cd
2018-03-22 04:42:34 +00:00
TreeHugger Robot
5464549257 Merge "Only show restricted apps that belong to the user." into pi-dev 2018-03-22 04:31:38 +00:00
WAYNE YANG
a3ede6d515 Merge "Fix "Send feedback about this device" option is missing issue." into pi-dev am: 2d230e1431
am: 800a8dcb9a

Change-Id: I51118fe1fa87de71f63ace8aede0deb077b68ac3
2018-03-22 04:14:26 +00:00
WAYNE YANG
2d230e1431 Merge "Fix "Send feedback about this device" option is missing issue." into pi-dev 2018-03-22 03:56:41 +00:00
Jan Nordqvist
13fd8bef8a Merge "Fix entity header to "Hide" shadow of app bar unless scrolled." into pi-dev am: 58a8b09e7b
am: cc7a739e6b

Change-Id: I05c5a8a99249f7bc68d6a585d6a877e166d1528c
2018-03-22 03:43:55 +00:00
TreeHugger Robot
58a8b09e7b Merge "Fix entity header to "Hide" shadow of app bar unless scrolled." into pi-dev 2018-03-22 03:17:29 +00:00
Sundeep Ghuman
372a7996fd Merge "Modify "Updated ..." text." into pi-dev am: 119d95bae1
am: 4166aa0757

Change-Id: Ied53957deefc6ffb7e5cfb363c2a8ff7ffbd14d4
2018-03-22 03:11:57 +00:00
TreeHugger Robot
119d95bae1 Merge "Modify "Updated ..." text." into pi-dev 2018-03-22 02:58:41 +00:00
Andreas Terzis
446cd9db73 Add back the data saver preference.
Bug: 70950124

Test: manual
Test: make RunSettingsRoboTests
Change-Id: Ia39cb62ec021ae568a76fed04776b5e531e63b36
2018-03-21 19:23:05 -07:00
wayneyang
77f5ad5c4a Fix "Send feedback about this device" option is missing issue.
When device restart & launching "Feedback" from lock screen,
the "send feedback" option will be missing. It's because
the report package cannot be found by calling from lock screen.
Update the option visibility after updatestate and add test case.

Bug: 74076963
Test: Manual test and RunSettingsRoboTests:FeedbackPreferenceControllerTest
Change-Id: I105d6f90da499423b6881f2ba808e69bd2e8595d
2018-03-22 09:56:28 +08:00
Maurice Lam
3e3b8a9618 Make GLIF theme default for confirm lock screen
Use GLIF theme as the default for confirm lock screen, even for
"external" launches of the screen. Renamed the theme from "internal"
to "normal" to reflect this change.
Dark theme code will be cleaned up later.

Test: Existing tests pass
Bug: 62573742
Change-Id: I86958eb3a440d7274807f1cf453c3e53c16c23e7
2018-03-21 18:21:04 -07:00
Lei Yu
2246ea9e89 Add log for AnomalyDetectionJobService
When anomaly is detected, also log it in AnomalyDetectionJobService

Bug: 73888115
Test: RunSettingsRoboTests
Change-Id: I0a42f8935d9a83eb763dd1f9dedfb71301853104
2018-03-21 17:44:02 -07:00
Fan Zhang
681c073fdb Fix crash when launching mobile data usage page via intent.
Need to parse parameters from Intent if argument is empty or has no
parameter.

Change-Id: I23af434e1be794036dc711b72e0d9afa8bd65aa6
Fixes: 74235734
Test: robotests
2018-03-21 16:58:23 -07:00
Makoto Onuki
5f3569b07b Merge "Implement new BS warning / notification flow (2/2)" into pi-dev am: d2c1b245fc
am: db71812bc3

Change-Id: I1a17b42feb14fa436e88a6d46f570a7001dbd945
2018-03-21 23:49:42 +00:00
Fan Zhang
dcaa636f29 Merge "Hide spannable link if it's not actionable" into pi-dev am: aebbd5b704
am: 51b76810f5

Change-Id: If5aefaaea5c9f38cc8d395ace3028885c8331436
2018-03-21 23:43:06 +00:00
Lei Yu
0861b33763 Merge "Add search index provider for bt page" into pi-dev am: 9492aa546d
am: bfc77e7106

Change-Id: Ia173dfe64eda2148e5d8d17f8708ab788b2c68e0
2018-03-21 23:33:39 +00:00
Salvador Martinez
69fb4439ed Merge "Update AP preference to not be master switch pref" into pi-dev am: 24c104a16e
am: 81c8c0d80e

Change-Id: I7b7940b4a14b342627e7e3aa623fed0aee9fdf95
2018-03-21 23:22:21 +00:00
Antony Sargent
483b1f98bf Fix renaming for Bluetooth devices when rotating to landscape
The bug here is that when renaming a Bluetooth device (either the local
adapter or a paired device), if you click on the text edit field of the
alert dialog and then rotate the screen, the text shown in the soft
input will disappear. Also it's a usability problem that you even needed
to click in the first place. This CL fixes both problems - now the soft
input will be shown immediately when the dialog comes up, and the
content doesn't disappear on rotation.

Change-Id: Id29d11c834bf98c01b5c1208159537a8fd36a64f
Fixes: 72551780
Test: make -j RunSettingsRoboTests
(cherry picked from commit 5a1587526b)
2018-03-21 22:52:46 +00:00
Makoto Onuki
d2c1b245fc Merge "Implement new BS warning / notification flow (2/2)" into pi-dev 2018-03-21 22:32:33 +00:00