OSDN Git Service

android-x86/packages-apps-Settings.git
6 years agoAdd content description to suggestion card close button.
Doris Ling [Mon, 12 Feb 2018 19:40:03 +0000 (11:40 -0800)]
Add content description to suggestion card close button.

Change-Id: I2354dd5a4b092ac24bbc0c197bd228b73d8ede64
Fixes: 72958040
Test: talkback, make RunSettingsRoboTests

6 years agoMerge "Update Inactive Apps screen to show buckets"
Amith Yamasani [Fri, 9 Feb 2018 20:41:59 +0000 (20:41 +0000)]
Merge "Update Inactive Apps screen to show buckets"

6 years agoMerge changes Ib3d3df9f,Iae9096a1
TreeHugger Robot [Fri, 9 Feb 2018 01:35:18 +0000 (01:35 +0000)]
Merge changes Ib3d3df9f,Iae9096a1

* changes:
  Use BatterySaverReceiver in battery saver settings
  Add controller for battery saver button

6 years agoMerge "Add test to verify Users settings shows in secondary user."
TreeHugger Robot [Fri, 9 Feb 2018 00:11:41 +0000 (00:11 +0000)]
Merge "Add test to verify Users settings shows in secondary user."

6 years agoMerge "Fix developer option not being enabled."
TreeHugger Robot [Thu, 8 Feb 2018 23:24:49 +0000 (23:24 +0000)]
Merge "Fix developer option not being enabled."

6 years agoUse BatterySaverReceiver in battery saver settings
jackqdyulei [Tue, 6 Feb 2018 22:03:30 +0000 (14:03 -0800)]
Use BatterySaverReceiver in battery saver settings

Use this receiver to listen to following updates:
1. Plug state: if it is plugged in, disable this two state
button, otherwise make it enabled
2. low power mode: If mode on, show "turn off" otherwise show
"turn on"

Bug: 72228477
Test: RunSettingsRoboTests
Change-Id: Ib3d3df9f9a5fbac8b1b876c9e193beb75f522ebd

6 years agoAdd controller for battery saver button
jackqdyulei [Thu, 25 Jan 2018 03:42:42 +0000 (19:42 -0800)]
Add controller for battery saver button

Bug: 72228477
Test: RunSettingsRoboTests
Change-Id: Iae9096a10553ea761d099e1e72c1de56b693bac0

6 years agoMerge "Use proper string formatting for the "Active device" string"
TreeHugger Robot [Thu, 8 Feb 2018 22:47:52 +0000 (22:47 +0000)]
Merge "Use proper string formatting for the "Active device" string"

6 years agoAdd test to verify Users settings shows in secondary user.
Doris Ling [Thu, 8 Feb 2018 01:28:43 +0000 (17:28 -0800)]
Add test to verify Users settings shows in secondary user.

- also update launch sequence for Users settings tests as Users settings
has been moved inside system settings and the preference title has
changed.
- and change the test to run with AndroidJUnit4.

Change-Id: I049b83f9ae4b2724608af267e8900dd9e6749874
Fixes: 34774778
Test: make SettingsUnitTests

6 years agoMerge "Move restriction check for dev settings into controller"
Fan Zhang [Thu, 8 Feb 2018 21:51:50 +0000 (21:51 +0000)]
Merge "Move restriction check for dev settings into controller"

6 years agoFix developer option not being enabled.
Doris Ling [Thu, 8 Feb 2018 21:17:54 +0000 (13:17 -0800)]
Fix developer option not being enabled.

- when screen lock is set, we will start the activity to check user's
credential. Override onActivityResult() and call BuildNumberPreferenceController's
method accordingly, so that we will checks the password confirm result and enable
the developer options if it is success.

Change-Id: Ie2df644c53430ad4eb394480348d956177804ec3
Fixes: 73102865
Test: make RunSettingsRoboTests

6 years agoMerge "Update task affinity and parent activity for all exported activities."
TreeHugger Robot [Thu, 8 Feb 2018 20:43:50 +0000 (20:43 +0000)]
Merge "Update task affinity and parent activity for all exported activities."

6 years agoMerge "Don't use debug data in app list controller"
TreeHugger Robot [Thu, 8 Feb 2018 20:20:33 +0000 (20:20 +0000)]
Merge "Don't use debug data in app list controller"

6 years agoMerge "Add Toggle Controllers to XML"
TreeHugger Robot [Thu, 8 Feb 2018 19:46:26 +0000 (19:46 +0000)]
Merge "Add Toggle Controllers to XML"

6 years agoUse proper string formatting for the "Active device" string
Pavlin Radoslavov [Thu, 8 Feb 2018 01:23:12 +0000 (17:23 -0800)]
Use proper string formatting for the "Active device" string

Updated testContextMock() how it checks the bluetooth_connected string.

Bug: 72317067
Test: Unit test updated:
      make ROBOTEST_FILTER=BluetoothDetailsHeaderControllerTest \
                           RunSettingsRoboTests
      Manual: two headsets and switching the active device
Change-Id: I3db178d71543e4dfa437544350c58241860ae703

6 years agoUpdate task affinity and parent activity for all exported activities.
Fan Zhang [Thu, 8 Feb 2018 01:32:17 +0000 (17:32 -0800)]
Update task affinity and parent activity for all exported activities.

This is needed to fix nav-up button for these activities.

- Change taskAffinity for homepage to "com.android.settings.root".
- Change taskAffinity for many activities to "com.android.settings", and
  set partent to homepage.
  -- General rule: if activity has not been exported, don't set
     affinity or parent.
  -- If activity is exported and can be launched with an action, set
     affinity and parent to homepage
  -- If activity is exported but expects additional parameters, don't
     set affinity or parent.
  -- If the activity affinitiy is com.android.setupwizard, don't touch
     it.

With this change, when a setting page is launched via intent (eg, from
QS), nav up button will be able to find parentActivity, and launch it in
a different task affinity. If the acitivity is a launched within
settings, nav-up has no change, it just navigates back to where it came from.

Change-Id: I3a2b64ed13d437f6818f6c7374e994b4192b6fa0
Fixes: 72337421
Fixes: 72829142
Test: manual
Test: atest

6 years agoDon't use debug data in app list controller
jackqdyulei [Thu, 8 Feb 2018 18:12:34 +0000 (10:12 -0800)]
Don't use debug data in app list controller

This is a bug, USE_FAKE_DATA should never be true in build

Change-Id: I14059cd243380c754ca0cff09f088d62828ec755
Fixes: 73117246
Test: Build

6 years agoUpdate DataUsageSummary to include carrier provided information.
Jan Nordqvist [Mon, 22 Jan 2018 22:43:43 +0000 (14:43 -0800)]
Update DataUsageSummary to include carrier provided information.

This CL augments the existing data usage display with carrier provided
information about data usage and plans when available from the new
frameworks API.

Test: manual
Test: make RunSettingsRoboTests
Bug: 70950124

Change-Id: Idde1ff786e8c5dbc04e58ffbcc0fd18789682699

6 years agoMerge "Apply checkbox enable state on viewholder bind"
TreeHugger Robot [Thu, 8 Feb 2018 17:00:59 +0000 (17:00 +0000)]
Merge "Apply checkbox enable state on viewholder bind"

6 years agoMerge "Make ConnectedDevice page handles bt intent"
Lei Yu [Thu, 8 Feb 2018 07:54:25 +0000 (07:54 +0000)]
Merge "Make ConnectedDevice page handles bt intent"

6 years agoMove restriction check for dev settings into controller
Fan Zhang [Wed, 7 Feb 2018 20:59:22 +0000 (12:59 -0800)]
Move restriction check for dev settings into controller

Change-Id: I99dae6e82aca40b92e1965ba7db2c54f3c59d33f
Fixes: 72815875
Test: robotests

6 years agoMerge "Remove dead code for DataPlanUsageSummary"
TreeHugger Robot [Thu, 8 Feb 2018 06:21:11 +0000 (06:21 +0000)]
Merge "Remove dead code for DataPlanUsageSummary"

6 years agoMerge "Remove some dead code from search"
TreeHugger Robot [Thu, 8 Feb 2018 06:13:36 +0000 (06:13 +0000)]
Merge "Remove some dead code from search"

6 years agoMerge "Add feature flag for new DataUsageSummary fragment."
TreeHugger Robot [Thu, 8 Feb 2018 04:55:56 +0000 (04:55 +0000)]
Merge "Add feature flag for new DataUsageSummary fragment."

6 years agoMerge "Move old battery settings page to dev options"
TreeHugger Robot [Thu, 8 Feb 2018 04:48:22 +0000 (04:48 +0000)]
Merge "Move old battery settings page to dev options"

6 years agoRemove dead code for DataPlanUsageSummary
Fan Zhang [Wed, 7 Feb 2018 21:50:09 +0000 (13:50 -0800)]
Remove dead code for DataPlanUsageSummary

This is an unfinished feature, no longer needed.

Change-Id: I358dcc8865184117d49e35b3e8dfcd84403261d0
Fixes: 73073608
Test: rebuild

6 years agoMake ConnectedDevice page handles bt intent
jackqdyulei [Thu, 8 Feb 2018 01:49:09 +0000 (17:49 -0800)]
Make ConnectedDevice page handles bt intent

Fixes: 73088883
Test: Manual - click the bt tile in quick settings
Change-Id: I147a9a83b37fff4a7573f792cd9172fef84110f2

6 years agoAdd Toggle Controllers to XML
Matthew Fritze [Fri, 26 Jan 2018 18:15:49 +0000 (10:15 -0800)]
Add Toggle Controllers to XML

Autobrightness preference controller was accidentally removed from
display_settings.xml. Given that no tests were broken and this would
be a disaster for phone buddy & inline actions, I have added another
test which keeps a list of valid controllers that should exist in xml.

When more inline controllers types are added, they will be included
in this test.

Fixes: 72564979
Test: robotests
Change-Id: I40fe18f9118af9cec1c201632742d2949ff64be5

6 years agoRemove some dead code from search
Fan Zhang [Thu, 8 Feb 2018 00:56:28 +0000 (16:56 -0800)]
Remove some dead code from search

Test: rebuild
Change-Id: If736f58c546fa9eafc405525c11640ca2576d446

6 years agoMove old battery settings page to dev options
jackqdyulei [Mon, 5 Feb 2018 23:24:55 +0000 (15:24 -0800)]
Move old battery settings page to dev options

Also remove the click action and ripple in new battery settings page.

Bug: 72728884
Test: Screenshot
Change-Id: I3b6b4978a407f8d1bf799b6a880cd396c861456b

6 years agoMerge "Delete WPS settings."
TreeHugger Robot [Thu, 8 Feb 2018 00:16:35 +0000 (00:16 +0000)]
Merge "Delete WPS settings."

6 years agoApply checkbox enable state on viewholder bind
Julia Reynolds [Tue, 6 Feb 2018 20:09:43 +0000 (15:09 -0500)]
Apply checkbox enable state on viewholder bind

Change-Id: I5b263f02fb6a1779fd567eade3776044fddb6b11
Fixes: 72809700
Test: SettingsRoboTests

6 years agoMerge "Update style switchbar layout"
TreeHugger Robot [Wed, 7 Feb 2018 23:04:44 +0000 (23:04 +0000)]
Merge "Update style switchbar layout"

6 years agoMerge "Notification lock screen setting updates"
TreeHugger Robot [Wed, 7 Feb 2018 22:38:32 +0000 (22:38 +0000)]
Merge "Notification lock screen setting updates"

6 years agoAdd feature flag for new DataUsageSummary fragment.
Eric Schwarzenbach [Tue, 6 Feb 2018 23:57:01 +0000 (15:57 -0800)]
Add feature flag for new DataUsageSummary fragment.

Creates a new fragment DataUsageSummaryLegacy, which is used
instead of DataUsageSummary when the feature flag is off (default
behavior).

Copies the current DataUsageSummary.java, data_usage.xml, and
DataUsageSummaryActivity to create the legacy versions. This
change allows for uninterupted development of new features in the
DataUsageSummary fragment.

Test: manual
Test: make RunSettingsRoboTests
Bug: 70950124
Change-Id: I9d79e108bbfc1c8ec620f86c0183f4ed3f41c9d7

6 years agoMerge "Fix NPE in AutoSyncWorkDataPreferenceController" am: cdd628e6e4 am: 0bc6b461be
tiansiming [田思明] [Wed, 7 Feb 2018 22:19:31 +0000 (22:19 +0000)]
Merge "Fix NPE in AutoSyncWorkDataPreferenceController" am: cdd628e6e4 am: 0bc6b461be
am: eb0ebc6b98

Change-Id: I12a16dd3ef5cfcda92efd166d3f2fccdd20527d1

6 years agoMerge "Fix NPE in AutoSyncWorkDataPreferenceController" am: cdd628e6e4
tiansiming [田思明] [Wed, 7 Feb 2018 22:16:46 +0000 (22:16 +0000)]
Merge "Fix NPE in AutoSyncWorkDataPreferenceController" am: cdd628e6e4
am: 0bc6b461be

Change-Id: I78899aef7b43c067f7c4094d7de63b95c4ee3f11

6 years agoMerge "Update copy for battery estimate related features"
TreeHugger Robot [Wed, 7 Feb 2018 22:15:29 +0000 (22:15 +0000)]
Merge "Update copy for battery estimate related features"

6 years agoMerge "Fix NPE in AutoSyncWorkDataPreferenceController"
tiansiming [田思明] [Wed, 7 Feb 2018 22:13:14 +0000 (22:13 +0000)]
Merge "Fix NPE in AutoSyncWorkDataPreferenceController"
am: cdd628e6e4

Change-Id: Ic10709693acbf3f04704ed76a7474291af509cf5

6 years agoMerge "Pre-fixup for nav up button"
TreeHugger Robot [Wed, 7 Feb 2018 22:05:39 +0000 (22:05 +0000)]
Merge "Pre-fixup for nav up button"

6 years agoMerge "Fix NPE in AutoSyncWorkDataPreferenceController"
Treehugger Robot [Wed, 7 Feb 2018 22:01:51 +0000 (22:01 +0000)]
Merge "Fix NPE in AutoSyncWorkDataPreferenceController"

6 years agoDelete WPS settings.
Andrew Sapperstein [Wed, 7 Feb 2018 21:57:57 +0000 (13:57 -0800)]
Delete WPS settings.

Removes the WPS PIN and Push button settings, all of
the strings, and related code.

Change-Id: I1c7a35ffc8491c57e07accba9b1b5f5407b01831
Fixes: 72421239
Test: deletes code, robotests

6 years agoUpdate style switchbar layout
Julia Reynolds [Wed, 7 Feb 2018 20:44:28 +0000 (15:44 -0500)]
Update style switchbar layout

Test: manual
Change-Id: If1aaffe0ea7790603291ba412500e47efa6b7b3e
Fixes: 72424821
Fixes: 72423465

6 years agoMerge "Modify logging in WifiSettings."
TreeHugger Robot [Wed, 7 Feb 2018 20:24:38 +0000 (20:24 +0000)]
Merge "Modify logging in WifiSettings."

6 years agoUpdate copy for battery estimate related features
Salvador Martinez [Sat, 20 Jan 2018 00:33:35 +0000 (16:33 -0800)]
Update copy for battery estimate related features

Many features are using the enhanced estimates but the copy for them
has gotten out of sync. This CL moves shared strings between Settings
and SysUI to SettingsLib and also updates features that use the
strings to have consistent behavior/text.

Test: Robotests
Bug: 65656091
Bug: 66909350
Bug: 67469159
Change-Id: Ie5ef1ed65429ca9805cff374f1439e5d61eb6591

6 years agoPre-fixup for nav up button
Fan Zhang [Tue, 6 Feb 2018 22:21:01 +0000 (14:21 -0800)]
Pre-fixup for nav up button

- Remove SettingsDrawerActivity.EXTRA_SHOW_MENU and force up nav button
  to always show. The button doesn't do anything yet. It just finishes
  current activity.
- Remove dead code about suggestions

Change-Id: I61fa9fefbaa9bced841a05969544b1c824c564ce
Bug: 72337421
Test: rebuild

6 years agoMerge "Call super.onDestroy in ResetNetworkConfirm fragment"
TreeHugger Robot [Wed, 7 Feb 2018 17:58:43 +0000 (17:58 +0000)]
Merge "Call super.onDestroy in ResetNetworkConfirm fragment"

6 years agoNotification lock screen setting updates
Julia Reynolds [Wed, 7 Feb 2018 15:42:00 +0000 (10:42 -0500)]
Notification lock screen setting updates

- String update
- Don't show 'hide notifications' option at app/channel level
if 'don't show' is selected globally

Test: SettingsRoboTests
Change-Id: I180b91019183865aa0f4f6adce917ebe7211dbb5
Fixes: 72833828
Fixes: 72651566

6 years agoMerge "Change character limit for condition_zen_title"
TreeHugger Robot [Wed, 7 Feb 2018 16:23:16 +0000 (16:23 +0000)]
Merge "Change character limit for condition_zen_title"

6 years agoChange character limit for condition_zen_title
Beverly [Wed, 7 Feb 2018 14:23:54 +0000 (09:23 -0500)]
Change character limit for condition_zen_title

Change-Id: I187e859bd010a746acea8953be88687df8758a54
Fixes: 73018789
Test: n/a

6 years agoMerge "Remove the second target for ConnectedApPreference"
TreeHugger Robot [Wed, 7 Feb 2018 05:06:23 +0000 (05:06 +0000)]
Merge "Remove the second target for ConnectedApPreference"

6 years agoMerge "Remove the click action for battery header"
TreeHugger Robot [Wed, 7 Feb 2018 04:26:54 +0000 (04:26 +0000)]
Merge "Remove the click action for battery header"

6 years agoRemove the click action for battery header
jackqdyulei [Wed, 7 Feb 2018 02:13:40 +0000 (18:13 -0800)]
Remove the click action for battery header

Also remove the ripple effect

Change-Id: I28c3dc928816f07a18591c0777b5b2f275715ca2
Fixes: 73018312
Test: Build

6 years agoMerge changes from topic "battery_saver_step_1"
Lei Yu [Wed, 7 Feb 2018 02:07:54 +0000 (02:07 +0000)]
Merge changes from topic "battery_saver_step_1"

* changes:
  Add preference controller for battery seekbar
  Revamp the battery saver page

6 years agoMerge "Fix trust agent summary not being updated."
TreeHugger Robot [Wed, 7 Feb 2018 01:44:24 +0000 (01:44 +0000)]
Merge "Fix trust agent summary not being updated."

6 years agoFix NPE in AutoSyncWorkDataPreferenceController
tiansiming [田思明] [Sun, 4 Feb 2018 12:45:42 +0000 (20:45 +0800)]
Fix NPE in AutoSyncWorkDataPreferenceController

AutoSyncWorkDataPreferenceController gets mUserHandle from
Utils.getManagedProfileWithDisabled which may return null,
crash will happend when updateState called.
So a judgement here seems helpful to make the program more robust.

Bug: https://partnerissuetracker.corp.google.com/u/1/issues/72908879
Test: make ROBOTEST_FILTER="(AutoSyncWorkDataPreferenceControllerTest)"
RunSettingsRoboTests

Change-Id: I53ca027a2f2dd79655cc2eee67db236cfa03f656
Signed-off-by: tiansiming [田思明] <tiansiming@xiaomi.com>
6 years agoMerge "Misc fixes on settings search"
TreeHugger Robot [Tue, 6 Feb 2018 23:52:12 +0000 (23:52 +0000)]
Merge "Misc fixes on settings search"

6 years agoCall super.onDestroy in ResetNetworkConfirm fragment
Antony Sargent [Tue, 6 Feb 2018 23:49:12 +0000 (15:49 -0800)]
Call super.onDestroy in ResetNetworkConfirm fragment

Test: monkey tests
Change-Id: I0ca8d0296db20a48e318391ef111cada8109e13b
Fixes: 72999943

6 years agoMerge "Update comment about robotests' dummy ColorDisplayController."
Ben Lin [Tue, 6 Feb 2018 22:32:18 +0000 (22:32 +0000)]
Merge "Update comment about robotests' dummy ColorDisplayController."

6 years agoMerge "Update suggestion card width."
TreeHugger Robot [Tue, 6 Feb 2018 22:14:29 +0000 (22:14 +0000)]
Merge "Update suggestion card width."

6 years agoFix trust agent summary not being updated.
Doris Ling [Tue, 6 Feb 2018 22:08:47 +0000 (14:08 -0800)]
Fix trust agent summary not being updated.

- move the handling for enabling the trust agent preference and its
summary from displayPreference() into updateState(), so that when user
navigates to change screen lock or update trust agent and returns to the
security settings page, the trust agent preference enabled state and
summary will be refreshed correctly.

Change-Id: I60bccfdff755a046a9f5453d39a7ac9d3ce0277c
Fixes: 72420147
Test: make RunSettingsRoboTests

6 years agoMerge "Check device for config_enableWallpaperService before calling service."
TreeHugger Robot [Tue, 6 Feb 2018 20:27:20 +0000 (20:27 +0000)]
Merge "Check device for config_enableWallpaperService before calling service."

6 years agoUpdate comment about robotests' dummy ColorDisplayController.
Ben Lin [Tue, 6 Feb 2018 20:25:30 +0000 (12:25 -0800)]
Update comment about robotests' dummy ColorDisplayController.

Bug: None
Test: None
Change-Id: Iadc38a3430b9002ee106782eeced350921581a29

6 years agoMisc fixes on settings search
Fan Zhang [Tue, 6 Feb 2018 19:36:07 +0000 (11:36 -0800)]
Misc fixes on settings search

- Remove some unused resources
- Disable contentDescription on search icon in homepage

Change-Id: I214b2be3db4fe4c12932763acfb40b6272b43600
Fixes: 72958338
Test: talkback

6 years agoUpdate suggestion card width.
Doris Ling [Tue, 6 Feb 2018 01:55:16 +0000 (17:55 -0800)]
Update suggestion card width.

- instead of using hard-coded width for 1 or 2 cards, they should take
up the whole screen width minus the defined padding, so that when the
device is in landscape mode, they look better.

Change-Id: Ic6485c858c7742a154a6d9b05fff180f161be323
Fixes: 72850225
Test: make RunSettingsRoboTests

6 years agoMerge "Add new touch and notification vibration intensity settings."
TreeHugger Robot [Tue, 6 Feb 2018 20:13:16 +0000 (20:13 +0000)]
Merge "Add new touch and notification vibration intensity settings."

6 years agoUpdate Inactive Apps screen to show buckets
Amith Yamasani [Sun, 28 Jan 2018 23:19:00 +0000 (23:19 +0000)]
Update Inactive Apps screen to show buckets

Show the standby bucket state and allow
toggling between the buckets.

EXEMPTED/NEVER state cannot be changed and item
will be grayed out.

Bug: 72728900
Test: Settings>Dev>Standby apps

Change-Id: Id38e6c6483b9b6aaafca5e2a0b6b82756fb28b1f

6 years agoAdd new touch and notification vibration intensity settings.
Michael Wright [Wed, 24 Jan 2018 15:40:46 +0000 (15:40 +0000)]
Add new touch and notification vibration intensity settings.

Bug: 64185329
Test: ROBOTEST_FILTER=VibrationSettingsTest m -j RunSettingsRoboTests
Change-Id: I449c7e0041aabfe48935a57cde93e8af77dcd783

6 years agoMerge "DND ixD changes"
TreeHugger Robot [Tue, 6 Feb 2018 17:09:33 +0000 (17:09 +0000)]
Merge "DND ixD changes"

6 years agoMerge "Notification settings updates"
TreeHugger Robot [Tue, 6 Feb 2018 16:25:26 +0000 (16:25 +0000)]
Merge "Notification settings updates"

6 years agoDND ixD changes
Beverly [Thu, 1 Feb 2018 23:14:33 +0000 (18:14 -0500)]
DND ixD changes

- Subtext in Settings > Sound updated
- new icons for automatic dnd rules
- no toast when toggling on/off dnd rules
- dnd dialog has a warning if dnd will cause user to miss next alarm

Test: make ROBOTEST_FILTER=ZenModePreferenceControllerTest RunSettingsRoboTests -j40
Fixes: 72494029
Fixes: 72655216
Fixes: 72655609
Change-Id: I9d86d82529079f35e362f93e10914f0a60229cd8

6 years agoNotification settings updates
Julia Reynolds [Mon, 5 Feb 2018 17:49:44 +0000 (12:49 -0500)]
Notification settings updates

- Hide channels when a group is blocked
- Update importance strings
- Allow app blocking from 'recently seen'

Test: RoboSettingsTests
Fixes: 72879584
Fixes: 72882969
Fixes: 72831483
Change-Id: I99e001d3eb9eef52251cd50da191d33923335fcf

6 years agoMerge changes Ib0328f03,Ic10efc63
TreeHugger Robot [Tue, 6 Feb 2018 05:20:26 +0000 (05:20 +0000)]
Merge changes Ib0328f03,Ic10efc63

* changes:
  Add restrict and unrestrict dialog
  Add app restrict tip and detector

6 years agoAdd restrict and unrestrict dialog
jackqdyulei [Fri, 26 Jan 2018 02:00:01 +0000 (18:00 -0800)]
Add restrict and unrestrict dialog

Add a fake unrestrict tip so we could reuse the BatteryTipDialogFragment
to build the unrestrict dialog.

After this cl, restrict dialog has two types:
1. dialog to only restrict one app
2. dialog to restrict more than one app

Will add dialog to restrict more than 5 apps when strings are finalized.

Bug: 72385333
Bug: 72227981
Test: RunSettingsRoboTests
Change-Id: Ib0328f0386efad525b331fd713dd15d060a1a649

6 years agoAdd app restrict tip and detector
jackqdyulei [Fri, 12 Jan 2018 21:52:20 +0000 (13:52 -0800)]
Add app restrict tip and detector

1. Add RestrictAppTip with two state(new and handled)
2. Add RestrictAppDetector, and future cl will hook up
it with anomaly database
3. Add related dialog in BatteryTipDialogFragment

Bug: 72385333
Test: RunSettingsRoboTests
Change-Id: Ic10efc6387150e62b6c6ad8d4c0d16ff75564fac

6 years agoAdd preference controller for battery seekbar
jackqdyulei [Thu, 25 Jan 2018 02:26:53 +0000 (18:26 -0800)]
Add preference controller for battery seekbar

Also update SeekBarPreference so we can set min for it.

Bug: 72228477
Test: RunSettingsRoboTests
Change-Id: I5ab1bfd78b0bd461551012c121c7e76764843a30

6 years agoMerge "Add a footer to Location Settings page"
Maggie Wang [Tue, 6 Feb 2018 02:35:24 +0000 (02:35 +0000)]
Merge "Add a footer to Location Settings page"

6 years agoMerge "Set categories to the adapter if suggestion is not available."
TreeHugger Robot [Tue, 6 Feb 2018 02:08:27 +0000 (02:08 +0000)]
Merge "Set categories to the adapter if suggestion is not available."

6 years agoAdd a footer to Location Settings page
Maggie [Tue, 30 Jan 2018 04:29:16 +0000 (20:29 -0800)]
Add a footer to Location Settings page

At the bottom of Settings -> Security & Location -> Location, inject
footers with text provided by system apps. GmsCore uses this footer to
present legal consent info for Google Location Services.

Bug: 70350519
Test: Robo
Test: Manual
Change-Id: I201afdb30baa7b81b591d161fce5be55569b6320

6 years agoMerge "Update string for wifi calling."
TreeHugger Robot [Tue, 6 Feb 2018 00:28:25 +0000 (00:28 +0000)]
Merge "Update string for wifi calling."

6 years agoSet categories to the adapter if suggestion is not available.
Ben Lin [Mon, 5 Feb 2018 23:58:58 +0000 (15:58 -0800)]
Set categories to the adapter if suggestion is not available.

If there's no suggestion, we should set the category to the adapter
before returning.

Bug: none
Test: robotests
Change-Id: I73bb248d17edb3c398a9fb0a8f3913e7233fcc0b

6 years agoMerge "Increase app icon size from 24dp to 32dp."
TreeHugger Robot [Tue, 6 Feb 2018 00:15:42 +0000 (00:15 +0000)]
Merge "Increase app icon size from 24dp to 32dp."

6 years agoMerge "Clean up WifiTetherPreferenceController"
Lei Yu [Mon, 5 Feb 2018 23:31:42 +0000 (23:31 +0000)]
Merge "Clean up WifiTetherPreferenceController"

6 years agoCheck device for config_enableWallpaperService before calling service.
Ben Lin [Mon, 5 Feb 2018 23:17:16 +0000 (15:17 -0800)]
Check device for config_enableWallpaperService before calling service.

On some devices, it is possible that config_enableWallpaperService is
false, in which then there is no wallpaper service on device. Calling
WallpaperManager#getWallpaperId will then result in an NPE. We should
just do a check and return false.

Bug: 62387789
Test: RoboSettingsTest
Change-Id: I31db6845f06533d92140bf91d0f7fc7e7bedc5c5

6 years agoIncrease app icon size from 24dp to 32dp.
Fan Zhang [Wed, 31 Jan 2018 02:10:38 +0000 (18:10 -0800)]
Increase app icon size from 24dp to 32dp.

The app icon size as 24dp is too small. We'd like to increase to 32dp
based on latest UX feedback and to match Material Spec v2 wrt app icon
sizes.

Test: make RunSettingsRoboTest -j40 ROBOTEST_FILTER=AppPreferenceTest
Test: visual (Launch settings -> App & notification -> verify app icon
      size increased)
Fixes: 71767701

Change-Id: I474df72075602fc48d3123127b4f9bf350374506

6 years agoRevamp the battery saver page
jackqdyulei [Wed, 24 Jan 2018 00:51:02 +0000 (16:51 -0800)]
Revamp the battery saver page

1. Make BatterySaverSettings extend from DashboardFragment
2. Add new layout
3. Add battery saver controller

Future cl will add controllers for seekbar and button

Bug: 72228477
Test: RunSettingsRoboTests
Change-Id: I21fb62aef874c04eca2988271f2fd9d7aacb0c6c

6 years agoMerge "Change superclass to InstrumentedFragment."
TreeHugger Robot [Mon, 5 Feb 2018 21:30:43 +0000 (21:30 +0000)]
Merge "Change superclass to InstrumentedFragment."

6 years agoUpdate string for wifi calling.
Doris Ling [Mon, 5 Feb 2018 20:38:15 +0000 (12:38 -0800)]
Update string for wifi calling.

Bug: 72330968
Test: rebuild
Change-Id: Ie1e189c1339762d4763540e1e678357020602f35

6 years agoMerge "Autofill compat - Settings"
TreeHugger Robot [Mon, 5 Feb 2018 09:55:29 +0000 (09:55 +0000)]
Merge "Autofill compat - Settings"

6 years agoAutofill compat - Settings
Svetoslav Ganov [Mon, 5 Feb 2018 05:22:00 +0000 (21:22 -0800)]
Autofill compat - Settings

Test: manully can change autofill serivces

Update settings due to API signature change.

Change-Id: Idaf00fdbe7cb07cb174f3bbd8edcfa95ac734764

6 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Sun, 4 Feb 2018 04:29:03 +0000 (04:29 +0000)]
Merge "Import translations. DO NOT MERGE"

6 years agoMerge "Move bugreport storage enabling into OS."
Jeff Sharkey [Sat, 3 Feb 2018 23:41:16 +0000 (23:41 +0000)]
Merge "Move bugreport storage enabling into OS."

6 years agoMove bugreport storage enabling into OS.
Jeff Sharkey [Sat, 3 Feb 2018 20:27:03 +0000 (13:27 -0700)]
Move bugreport storage enabling into OS.

It's convoluted to enable/disable bugreport storage based on the
"power menu" shortcut, and it's frustrating for dogfooders to have
to manually cycle this setting once to enable the provider.

So move the enable/disable logic directly into the OS, toggle it
when the broader DEVELOPMENT_SETTINGS_ENABLED changes, and update
to match state at device boot.

Test: builds, boots
Bug: 32540478
Change-Id: I8721dfbfc1dc2e19adb9cb5588f6b35f2872da9d

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 3 Feb 2018 17:59:40 +0000 (09:59 -0800)]
Import translations. DO NOT MERGE

Change-Id: Iedbb92ccb4d0cd12e8516708c8c486e11a2550d3
Auto-generated-cl: translation import

6 years agoMerge "Unregister broadcast receiver from AppInfoDashboardFragment."
TreeHugger Robot [Sat, 3 Feb 2018 02:34:26 +0000 (02:34 +0000)]
Merge "Unregister broadcast receiver from AppInfoDashboardFragment."

6 years agoModify logging in WifiSettings.
Sundeep Ghuman [Sat, 3 Feb 2018 00:46:32 +0000 (16:46 -0800)]
Modify logging in WifiSettings.

This now respects both the Log tag setting and the developer options
toggle.

Bug: NA
Test: NA
Change-Id: I444b00cb35a61d8779cc46c90b33e611d5b0ac06

6 years agoUnregister broadcast receiver from AppInfoDashboardFragment.
Doris Ling [Sat, 3 Feb 2018 00:13:47 +0000 (16:13 -0800)]
Unregister broadcast receiver from AppInfoDashboardFragment.

- onDestroy() call is missing from the fragment. Added it to unregister
the receiver that listens to the package remover.

Change-Id: I27c67a19e11824116849b769f0a7951b80c40f84
Fixes: 72879457
Test: make RunSettingsRoboTests

6 years agoMerge "Fix NPE when instantiating SettingsPreferenceFragment"
TreeHugger Robot [Fri, 2 Feb 2018 23:38:21 +0000 (23:38 +0000)]
Merge "Fix NPE when instantiating SettingsPreferenceFragment"

6 years agoMerge "Introduce boolean flags to show/hide battery/memory in App info."
TreeHugger Robot [Fri, 2 Feb 2018 22:20:09 +0000 (22:20 +0000)]
Merge "Introduce boolean flags to show/hide battery/memory in App info."

6 years agoChange superclass to InstrumentedFragment.
Doris Ling [Thu, 16 Nov 2017 19:03:40 +0000 (11:03 -0800)]
Change superclass to InstrumentedFragment.

- for fragments that do not implement the preference screen, change them
to inherit from InstrumentedFragment instead.

Change-Id: I791c2634024bd2c248efea955be5c680180d735c
Fixes: 68277111
Test: make RunSettingsRoboTests