Commit Graph

44548 Commits

Author SHA1 Message Date
Fan Zhang
5088523c5d Add more string for device muted condition
Bug: 76022431
Test: build
Change-Id: Ib3801b2ecd18d094e4431aeb89d711a6c9e62689
2018-03-26 15:52:22 -07:00
TreeHugger Robot
9f5849aaf4 Merge "Fix text overlap issue when flinging in ManageApplication" into pi-dev 2018-03-26 21:50:14 +00:00
Lei Yu
6f22cec26d Merge "Use FIELD_ANOMALY_TYPE for anomalyType" into pi-dev 2018-03-26 21:41:11 +00:00
yuemingw
3434e72f31 Auto time should show dynamic subtext when restricted.
Auto time preference should show dynamic subtext corresponding to
the current status of auto time when it's restricted, instead of
hard code "enabled by admin", as it could either be enabled or disabled
when disallow_config_date_time is set.

Bug: 73811933
Test: manually by TestDPC
Change-Id: Ia7181e8a67ccfe72117f95133e9081375c121fe3
2018-03-26 20:37:56 +00:00
Kevin Chyn
7319214db9 Don't show FP error canceled message
Test: manual test of SUW, error message doesn't show up when
      confirm credentials is complete

Change-Id: Ie0750629dcd5bb5d84df08c75e9c83384c299073
Fixes: 76400618
2018-03-26 12:38:21 -07:00
Amin Shaikh
c685d0fe9b Show wifi status label in preference summary.
Bug: 74075761
Test: m RunSettingsRoboTests && manual
Change-Id: I286fac5d9390634facc0f04b845ef668c55d1331
2018-03-26 14:37:09 -04:00
TreeHugger Robot
21926abed2 Merge "Remove account should show policy transparency dialog when DISALLOW_MODIFY_ACCOUNTS is set." into pi-dev 2018-03-26 18:34:31 +00:00
Fan Zhang
de052eb2b9 Fix text overlap issue when flinging in ManageApplication
The issue is we have a background handler to find app size and set to
summary asynchronously. When flinging quickly, the view being request to
update by the background handler could be scrolled off screen already.
This change forces onPackageSizeChanged update to only happen when it's
not scrolling.

Change-Id: Ia7ccab776c3c789c8d4c0b55104b48e257b9cebf
Fixes: 76176014
Test: manually fling
2018-03-26 11:34:16 -07:00
Lei Yu
1785863b48 Use FIELD_ANOMALY_TYPE for anomalyType
Change-Id: I36d5d806f45df4153cdba3e398fa72ab89e5e082
Fixes: 76424026
Test: RunSettingsRoboTests
2018-03-26 11:31:22 -07:00
TreeHugger Robot
c3938f6f6e Merge "Block simple numeric passwords in ChooseLockPassword" into pi-dev 2018-03-26 18:06:04 +00:00
yuemingw
5f0f6b9831 Remove account should show policy transparency dialog when DISALLOW_MODIFY_ACCOUNTS
is set.

createAdminIntentSupport always checks user restrictions on user 0(
if called from system uid) so can't be used here when account could
be work profile account.

Bug: 70674230
Test: m -j RunSettingsRobotests
Change-Id: Ibd2df8891d9fa7b4c85c42a305c5db2acd4c829b
2018-03-26 17:41:37 +01:00
Julia Reynolds
5c83f14d7e Update recently sent preferences
Test: make -j RunSettingsRoboTests
Bug: 74318867
Fixes: 73004227
Change-Id: Icecf1d4f0e3dd38c96919874a7f614ed93a001ab
2018-03-26 11:23:14 -04:00
Rubin Xu
35f3d2fbac Block simple numeric passwords in ChooseLockPassword
Fix the previously-missing case where the user elects to set
a password (instead of PIN), but still sets a numeric password
that contains repeated sequence which should be blocked by admin
policy.

Bug: 72039850
Test: Set NUMERIC_COMPLEX password quality, then attempt to
      enroll a repeating numeric PIN as lockscreen *password*
Change-Id: I7c7525716b37a5330147b899b80026ca71c3ce0c
2018-03-26 16:07:01 +01:00
Adam Newman
5178a9d07a Observe NetworkCallback instead of polling
Switch from polling for the first connected WiFi network to observing
the currently connected WiFi network and associating that with the
preference at the time the preference is created or updated.

Whenever the ConnectedAccessPointPreference is removed or UI is stopped
unregister the callback.

Bug:68031656
Test: make RunSettingsRoboTests
Change-Id: I5d1ed83b6a13e8a83fae04bfdce8d0f13c2ba0ac
2018-03-26 07:45:16 -07:00
Benjamin Franz
396e91abf0 Merge "Do not allow force stopping protected packages" into pi-dev 2018-03-26 09:15:41 +00:00
Andrew Chiang
f6c8a42d93 Update toggle text for Data Saver
Update Data Saver toggle to say "Use Data Saver" instead of "On"/"Off"

Bug: 75983536
Test: Robotest, manual test and atest DataSaverSummaryUITest
Change-Id: Icf690638570278fb869515931943ac486adbfc7c
2018-03-26 15:16:19 +08:00
WenHung_Teng
8e14da1d30 Fix issue "open battery settings, switch locale, apps are still in old locale" into pi-dev
Clear uid to package detail cache by checking locale before use.

Fixes: 62422871
Test: RunSettingsRoboTest pass,
manual test
(1) open advance battery settings page,
(2) switch locale,
(3) back to advance battery settings page  => pass
manual test
(1) open advance battery settings page, and then back to settings main page
(2) switch locale,
(3) go to advance battery settings page  => pass

Change-Id: Ifac830706539022cd9bf51d3f33e728aadc163f4
2018-03-26 14:46:44 +08:00
felkachang
ef1cce6cc0 To update from "Data saver" to "Data Saver"
To change data_saver_title res string from "Data saver" to "Data Saver".
There are 2 places to change and most of them are belong to en locale
charactors.
  res/values/strings.xml
    To change XML To "Help URL, Data saver" to "Help URL, Data Saver"
    because there is already one XML comment "Data Saver mode is on".
    To change data_saver_title to be "Data Saver" because
    condition_bg_data_title use "Data Saver".

Bug: 75983079
Test: make -j SettingsRoboTests RunSettingsRoboTests
Change-Id: I4ef88c962d6388c38841d47e4dc9674e8a4bb793
2018-03-26 10:22:44 +08:00
Jeff Sharkey
d6e81ab51b Merge "Add UX string tweaks before string freeze." into pi-dev 2018-03-25 08:49:58 +00:00
TreeHugger Robot
362ba01789 Merge "Return back-up slices for unavailable settings" into pi-dev 2018-03-24 07:04:47 +00:00
TreeHugger Robot
59b25d0043 Merge "Separate skip and clear button in pattern screen" into pi-dev 2018-03-24 05:46:35 +00:00
TreeHugger Robot
c812ec6c89 Merge "Add toggle title for Data Saver" into pi-dev 2018-03-24 05:30:28 +00:00
TreeHugger Robot
1682085feb Merge "Add callback when tethering fails" into pi-dev 2018-03-24 05:24:09 +00:00
Fan Zhang
6ab6ed4e7a Merge ""My Phone" -> "About Phone"" into pi-dev 2018-03-24 05:16:01 +00:00
TreeHugger Robot
30da391fa0 Merge "Add preference controller to launch app-time-spent UI." into pi-dev 2018-03-24 05:14:32 +00:00
TreeHugger Robot
8d8ee565b1 Merge "[Settings] Add strings for Natural and Automatic color modes" into pi-dev 2018-03-24 05:14:29 +00:00
TreeHugger Robot
2e32d30298 Merge "Add string for app info summary" into pi-dev 2018-03-24 05:14:24 +00:00
TreeHugger Robot
7bf63eb62a Merge "Update title text for finterprint suggestion." into pi-dev 2018-03-24 04:58:29 +00:00
Stanley Tng
53332b6dcf Merge "Add new strings for Hearing Aid profile in Accessibility app" into pi-dev 2018-03-24 04:09:04 +00:00
Daniel Nishi
0d221f7767 Merge "Add string to warn users about device name." into pi-dev 2018-03-24 01:04:21 +00:00
Tony Mak
95e22fa7bd Merge "Updates the policy transparency dialog string" into pi-dev 2018-03-24 00:35:02 +00:00
Stanley Tng
9a9d8bc4ca Add new strings for Hearing Aid profile in Accessibility app
These new strings will be used by the Accessibility Settings App for the
hearing aid profile.

Test: compiled.
Bug: 74204427
Change-Id: I41cd5c2152a8b8dacb3dd4e5f974d1427d4a7ba4
2018-03-23 17:31:01 -07:00
Jeff Sharkey
c34eea991f Add UX string tweaks before string freeze.
We're fully intending to implement some string and layout tweaks
requested by UX, but we need to get the requested strings checked
in before the strings deadline.  We carefully keep existing (legacy)
strings intact to avoid any runtime crashes until we get the layout
work done.

Test: builds, boots
Bug: 76097999
Change-Id: Ic6531de170df8eaa8b3a0a23d76a0c8821bb5b16
2018-03-23 18:09:58 -06:00
Victor Chang
6c737f9790 Merge "New strings for time zone picker" into pi-dev 2018-03-23 22:23:23 +00:00
Fan Zhang
64a8f70a7f Add preference controller to launch app-time-spent UI.
Bug: 74580195
Test: robotests
Change-Id: Iba9338f04cc037a134ef9445ce97cbbe21f53833
2018-03-23 14:13:57 -07:00
Daniel Nishi
1225469ee9 "My Phone" -> "About Phone"
String polishing fix.

Bug: 36458278
Test: Manual
Change-Id: If0d90aa252d0ffe8bdbb8d255d1bec736ba2017a
2018-03-23 14:03:23 -07:00
Beverly
332679de37 Add string for app info summary
Test: n/a
Bug: 72442731
Change-Id: Ibdf83450159334647ba26b2c44ee6cc5b21638d7
2018-03-23 16:43:07 -04:00
Salvador Martinez
553c2778af Merge "Add new strings for auto-wifi" into pi-dev 2018-03-23 20:33:07 +00:00
Salvador Martinez
8bbb4082bb Merge "Add extra strings for hidden network option" into pi-dev 2018-03-23 20:32:16 +00:00
Salvador Martinez
5cfebe55ea Merge "Add strings for mobile hotspot bands" into pi-dev 2018-03-23 20:10:49 +00:00
Sean Callanan
504cc266d8 [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
(cherry picked from commit e8f9bf5f68)
2018-03-23 20:06:25 +00:00
Daniel Nishi
97f3615a07 Add string to warn users about device name.
Device name is exposed to apps and through Bluetooth name and Wi-Fi
hotspot name. This warning tells users that before they set it.

Bug: 74981919
Test: Builds -- string currently unused.
Change-Id: I0b4bb49bcff6485a79688d98ca9bab1ce9948efd
2018-03-23 13:04:57 -07:00
TreeHugger Robot
1ff54d7e05 Merge "[QS] Add Settings intent filters for Data Usage" into pi-dev 2018-03-23 19:51:16 +00:00
Matthew Fritze
fcdfc2d83f Return back-up slices for unavailable settings
When an inline slice is requested, and the setting is unavailable,
we should present more useful information to the user. This CL handles:
- Unsupported: return intent slice to Settings home page
- Disabled for user: intent to the setting page
- Unknown reason: intent to setting page
- Disabled dependency: Create intent-based Slice rather
than the requested inline slice.

Bug: 71640747
Test: robotests
Change-Id: I9c1a0ee36119d4f9f3b205e0824c251f4356db55
2018-03-23 12:47:36 -07:00
Victor Chang
d1b3a4c1c6 New strings for time zone picker
Bug: 75322108
Test: m SettingsGoogle
Change-Id: I04662384bf1487066b1dc91944b6f1d2115d509a
2018-03-23 19:27:57 +00:00
Doris Ling
89bd8454fc Update title text for finterprint suggestion.
Bug: 76098479
Test: rebuild
Change-Id: Id09a8019844ca5f6c528f4bd1b37117380e663b8
2018-03-23 12:24:58 -07:00
Fan Zhang
80bf63a2dd Merge "Add string needed by app usage tracking feature." into pi-dev 2018-03-23 19:19:13 +00:00
Tony Mak
0482925f44 Updates the policy transparency dialog string
Test: Build and observe the string.

Fixes: 68973125

Change-Id: Ic1461f8b7157cfcc50d6f4766fced725307b9cc0
2018-03-23 19:02:24 +00:00
TreeHugger Robot
dd0e23b987 Merge "Add keywords for search terms" into pi-dev 2018-03-23 18:35:23 +00:00
Christine Franks
0aa142ff18 Merge "Add strings for night display UX changes" into pi-dev 2018-03-23 18:33:06 +00:00