Commit Graph

42767 Commits

Author SHA1 Message Date
Fan Zhang
6013a95b9e Misc fixes on settings search
- Remove some unused resources
- Disable contentDescription on search icon in homepage

Change-Id: I214b2be3db4fe4c12932763acfb40b6272b43600
Fixes: 72958338
Test: talkback
2018-02-06 12:25:14 -08:00
Doris Ling
c627161ca6 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
2018-02-06 12:18:34 -08:00
TreeHugger Robot
d2a2e30889 Merge "Add new touch and notification vibration intensity settings." 2018-02-06 20:13:16 +00:00
Amith Yamasani
4bbb491587 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
2018-02-06 11:40:07 -08:00
Michael Wright
29d526719a Add new touch and notification vibration intensity settings.
Bug: 64185329
Test: ROBOTEST_FILTER=VibrationSettingsTest m -j RunSettingsRoboTests
Change-Id: I449c7e0041aabfe48935a57cde93e8af77dcd783
2018-02-06 18:14:07 +00:00
TreeHugger Robot
5135ed23c2 Merge "DND ixD changes" 2018-02-06 17:09:33 +00:00
TreeHugger Robot
085dcc3783 Merge "Notification settings updates" 2018-02-06 16:25:26 +00:00
Beverly
036d7e0bd9 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
2018-02-06 14:15:40 +00:00
Julia Reynolds
18f14f10cf 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
2018-02-06 09:15:20 -05:00
TreeHugger Robot
99fc2a7ea4 Merge changes Ib0328f03,Ic10efc63
* changes:
  Add restrict and unrestrict dialog
  Add app restrict tip and detector
2018-02-06 05:20:26 +00:00
jackqdyulei
99a2de41ef 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
2018-02-05 19:37:03 -08:00
jackqdyulei
ab0cde6bad 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
2018-02-05 19:34:48 -08:00
jackqdyulei
b77fec0872 Add preference controller for battery seekbar
Also update SeekBarPreference so we can set min for it.

Bug: 72228477
Test: RunSettingsRoboTests
Change-Id: I5ab1bfd78b0bd461551012c121c7e76764843a30
2018-02-05 19:32:24 -08:00
Maggie Wang
5d8d0bc9e4 Merge "Add a footer to Location Settings page" 2018-02-06 02:35:24 +00:00
TreeHugger Robot
39fe530829 Merge "Set categories to the adapter if suggestion is not available." 2018-02-06 02:08:27 +00:00
Maggie
ca80da20b1 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
2018-02-05 16:30:11 -08:00
TreeHugger Robot
da562832fb Merge "Update string for wifi calling." 2018-02-06 00:28:25 +00:00
Ben Lin
845e213514 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
2018-02-05 16:20:56 -08:00
TreeHugger Robot
d6621564f4 Merge "Increase app icon size from 24dp to 32dp." 2018-02-06 00:15:42 +00:00
Lei Yu
74f1db1d43 Merge "Clean up WifiTetherPreferenceController" 2018-02-05 23:31:42 +00:00
Ben Lin
245ac03c07 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
2018-02-05 15:17:16 -08:00
Fan Zhang
8fe5d507d5 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
2018-02-05 14:37:44 -08:00
jackqdyulei
7e999df6d9 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
2018-02-05 13:32:48 -08:00
TreeHugger Robot
3ded640895 Merge "Change superclass to InstrumentedFragment." 2018-02-05 21:30:43 +00:00
Doris Ling
900afbbc65 Update string for wifi calling.
Bug: 72330968
Test: rebuild
Change-Id: Ie1e189c1339762d4763540e1e678357020602f35
2018-02-05 12:55:01 -08:00
TreeHugger Robot
f52ff28511 Merge "Autofill compat - Settings" 2018-02-05 09:55:29 +00:00
Svetoslav Ganov
c21cfe9ea2 Autofill compat - Settings
Test: manully can change autofill serivces

Update settings due to API signature change.

Change-Id: Idaf00fdbe7cb07cb174f3bbd8edcfa95ac734764
2018-02-04 21:22:03 -08:00
TreeHugger Robot
ce9772f781 Merge "Import translations. DO NOT MERGE" 2018-02-04 04:29:03 +00:00
Jeff Sharkey
bc059cf252 Merge "Move bugreport storage enabling into OS." 2018-02-03 23:41:16 +00:00
Jeff Sharkey
24f1843677 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
2018-02-03 13:27:12 -07:00
Bill Yi
a46769e36c Import translations. DO NOT MERGE
Change-Id: Iedbb92ccb4d0cd12e8516708c8c486e11a2550d3
Auto-generated-cl: translation import
2018-02-03 09:59:40 -08:00
TreeHugger Robot
d35484f531 Merge "Unregister broadcast receiver from AppInfoDashboardFragment." 2018-02-03 02:34:26 +00:00
Sundeep Ghuman
790dcdcd96 Modify logging in WifiSettings.
This now respects both the Log tag setting and the developer options
toggle.

Bug: NA
Test: NA
Change-Id: I444b00cb35a61d8779cc46c90b33e611d5b0ac06
2018-02-02 16:48:48 -08:00
Doris Ling
f6b5dad77c 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
2018-02-02 16:13:47 -08:00
TreeHugger Robot
6a4c3301ec Merge "Fix NPE when instantiating SettingsPreferenceFragment" 2018-02-02 23:38:21 +00:00
TreeHugger Robot
e07e8cc423 Merge "Introduce boolean flags to show/hide battery/memory in App info." 2018-02-02 22:20:09 +00:00
Doris Ling
72489725c6 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
2018-02-02 13:41:16 -08:00
TreeHugger Robot
36952523bb Merge "Update suggestion UI" 2018-02-02 21:23:24 +00:00
TreeHugger Robot
7bd80f15fe Merge "Fix VisibleForTesting annotation in AppStateAppOpsBridge" 2018-02-02 20:51:32 +00:00
Ben Lin
3bf23ff59e Introduce boolean flags to show/hide battery/memory in App info.
This adds two flags:
config_show_app_info_settings_memory
config_show_app_info_settings_battery

Which when individually set to false, will hide them item from "App
info" which is accessed from clicking on an application in Apps &
notifications -> App info.

Bug: 62379413
Test: make RunSettingsRoboTests
ROBOTEST_FILTER=com.android.settings.applications

Change-Id: Ifb3b644901728dc7ea04d13198abddaa7b230538
2018-02-02 12:18:47 -08:00
Fan Zhang
a10004661c Fix NPE when instantiating SettingsPreferenceFragment
Change-Id: I3997d6436f358b802dff9be307c36031f4351ab4
Fixes: 72868191
Test: robotests
2018-02-02 12:18:39 -08:00
TreeHugger Robot
4d869f2859 Merge "Support GLIF v3 for lock screen settings" 2018-02-02 20:12:43 +00:00
TreeHugger Robot
1297029728 Merge "Always show wifi wake setting." 2018-02-02 19:44:23 +00:00
Doris Ling
7fa083ece9 Update suggestion UI
- reduce space above and below the suggestion header
- reduce space around the suggestion cardview
- set the font family for the suggestion header and title.

Change-Id: Ief6247005f1e69fe5025af60f3c9627d357d94a4
Fixes: 72710227
Test: visual
2018-02-02 11:34:03 -08:00
Tony Mantler
fb9e3afc84 Fix VisibleForTesting annotation in AppStateAppOpsBridge
Should be PRIVATE (the default) and not NONE since it's called from the
regular constructor for the object.

Bug: Clean-up
Test: Compiles
Change-Id: I9eb8881ed03dcddd1b478e313f5a314b338fccd7
2018-02-02 10:48:03 -08:00
TreeHugger Robot
d1afc3e42e Merge "Add ability to show/hide different device information." 2018-02-02 18:41:39 +00:00
yuemingw
a1416d2849 Rename DISALLOW_CONFIG_LOCATION_MODE to DISALLOW_CONFIG_LOCATION.
Bug: 72732481
Test: CtsVerifier test already in
Change-Id: I12a0593eba270727808588efc4c42c4e066c9446
2018-02-02 16:48:15 +00:00
Beverly Tai
7142be5630 Merge "Zen Condition text and primary click changes" 2018-02-02 15:27:04 +00:00
Jin Dong
bdcd50328f Merge "Fix memory leak of page "Languages & input"" am: f94ff6ce6f am: 6d55e0633e
am: dd91556778

Change-Id: I5fb3f956aab62b5500bfa5d753061980371b41b5
2018-02-02 14:52:58 +00:00
Jin Dong
dd91556778 Merge "Fix memory leak of page "Languages & input"" am: f94ff6ce6f
am: 6d55e0633e

Change-Id: I841c0d095c15849c409b1c1ebb9d47b79b438788
2018-02-02 07:09:00 +00:00