OSDN Git Service

android-x86/packages-apps-Settings.git
6 years agoMerge "Unregister hotspot receiver in TetherService."
TreeHugger Robot [Fri, 19 Jan 2018 22:01:18 +0000 (22:01 +0000)]
Merge "Unregister hotspot receiver in TetherService."

6 years agoMerge "Add capability for OEMs to supply their own SearchIndexableResources."
TreeHugger Robot [Fri, 19 Jan 2018 21:50:28 +0000 (21:50 +0000)]
Merge "Add capability for OEMs to supply their own SearchIndexableResources."

6 years agoMerge "Add restrict app detail page"
Lei Yu [Fri, 19 Jan 2018 20:47:52 +0000 (20:47 +0000)]
Merge "Add restrict app detail page"

6 years agoMerge "Include instant apps in Recently opened apps list"
TreeHugger Robot [Fri, 19 Jan 2018 20:42:50 +0000 (20:42 +0000)]
Merge "Include instant apps in Recently opened apps list"

6 years agoMerge "Fix FakeUid implementation"
TreeHugger Robot [Fri, 19 Jan 2018 20:41:45 +0000 (20:41 +0000)]
Merge "Fix FakeUid implementation"

6 years agoUnregister hotspot receiver in TetherService.
Doris Ling [Thu, 18 Jan 2018 23:04:59 +0000 (15:04 -0800)]
Unregister hotspot receiver in TetherService.

- when the service exits, also unregister the hotspot receiver.
- move TetherService and HotspotOffReceiver to wifi.tether package.

Change-Id: I0044a52bf80a5530a58b5186ab056de55e83532b
Fixes: 69844871
Test: make RunSettingsRoboTests

6 years agoAdd capability for OEMs to supply their own SearchIndexableResources.
Ben Lin [Thu, 18 Jan 2018 01:53:20 +0000 (17:53 -0800)]
Add capability for OEMs to supply their own SearchIndexableResources.

This moves SearchIndexableResources to be supplied by FeatureFactory
rather than its own singleton, which in effect allows OEMs to supply their
own, in the case where they have their own classes they want to be
indexed (or, remove certain classes that used to be indexed).

Bug: 72179744
Test: All tests pass.

Change-Id: Ia06b2026df7eca4c53b44a5a589c4aaa0b69d96c

6 years agoMerge "Zen automatic rule page ui changes"
TreeHugger Robot [Fri, 19 Jan 2018 19:09:12 +0000 (19:09 +0000)]
Merge "Zen automatic rule page ui changes"

6 years agoInclude instant apps in Recently opened apps list
Antony Sargent [Fri, 19 Jan 2018 19:04:22 +0000 (11:04 -0800)]
Include instant apps in Recently opened apps list

We were accidentally excluding instant apps from the recently opened
apps list in Settings->Apps and notifications.

Test: make RunSettingsRoboTests
Change-Id: I9cac956ceacbfba74a79b38cb01afa2de74ee6fe
Fixes: 71591298

6 years agoMerge "Only show app action button if it is not instant app."
TreeHugger Robot [Fri, 19 Jan 2018 18:48:23 +0000 (18:48 +0000)]
Merge "Only show app action button if it is not instant app."

6 years agoAdd restrict app detail page
jackqdyulei [Mon, 8 Jan 2018 23:46:55 +0000 (15:46 -0800)]
Add restrict app detail page

1. Move force standby action to BatteryUtils
2. Add click action for restricted preference(go to detail page)
3. Build app list in detail page using packageOps list

Bug: 71502850
Test: RunSettingsRoboTests
Change-Id: I1e6733e5402e7a854b07a8bbb43a86255276bfaa

6 years agoMerge "Migrate to use instrumentation classes from settingslib."
Leif Wilden [Fri, 19 Jan 2018 17:58:00 +0000 (17:58 +0000)]
Merge "Migrate to use instrumentation classes from settingslib."

6 years agoMerge "Renamed Storage Access to Directory Access."
TreeHugger Robot [Fri, 19 Jan 2018 15:33:44 +0000 (15:33 +0000)]
Merge "Renamed Storage Access to Directory Access."

6 years agoMerge "Add new no-op interface method." am: 78bfc6f55f am: 6f918104aa
Jeff Sharkey [Fri, 19 Jan 2018 05:26:03 +0000 (05:26 +0000)]
Merge "Add new no-op interface method." am: 78bfc6f55f am: 6f918104aa
am: cd08de069a

Change-Id: Iae7e87a1965a549923875c13f142df09a2557672

6 years agoMerge "AR/FR: Settings changes."
TreeHugger Robot [Fri, 19 Jan 2018 03:54:32 +0000 (03:54 +0000)]
Merge "AR/FR: Settings changes."

6 years agoMerge "Fix the time format error in high usage dialog"
TreeHugger Robot [Fri, 19 Jan 2018 03:49:34 +0000 (03:49 +0000)]
Merge "Fix the time format error in high usage dialog"

6 years agoMerge "Remove more things from search v1"
TreeHugger Robot [Fri, 19 Jan 2018 02:50:24 +0000 (02:50 +0000)]
Merge "Remove more things from search v1"

6 years agoAR/FR: Settings changes.
Carlos Valdivia [Tue, 16 Jan 2018 21:59:31 +0000 (13:59 -0800)]
AR/FR: Settings changes.

The basic AOSP settings infrastrucutre. Will add the Google specific
resources and tests to GoogleSettings in the next AR/FR change.

Test: make DEBUG_ROBOLECTRIC=1 RunSettingsRoboTests -j40
ROBOTEST_FILTER=com.android.settings.MasterClearTest.java

Change-Id: I7278b5c6d2a72e71d81c7fa5f937a2313d6c322c

6 years agoFix the time format error in high usage dialog
jackqdyulei [Tue, 16 Jan 2018 22:21:42 +0000 (14:21 -0800)]
Fix the time format error in high usage dialog

It should show time string rather than milli seconds.

Fixes: 71960199
Test: RunSettingsRoboTests
Change-Id: I35acbad53069c06379b4b7884ff9bd8aa24c5697

6 years agoMerge "Add database to store anomaly data"
Lei Yu [Fri, 19 Jan 2018 01:35:53 +0000 (01:35 +0000)]
Merge "Add database to store anomaly data"

6 years agoMerge "Add new no-op interface method." am: 78bfc6f55f
Jeff Sharkey [Fri, 19 Jan 2018 01:12:04 +0000 (01:12 +0000)]
Merge "Add new no-op interface method." am: 78bfc6f55f
am: 6f918104aa

Change-Id: I4c6643c124838a6dd3d69d58be358f824461a632

6 years agoMerge "Add new no-op interface method."
Jeff Sharkey [Fri, 19 Jan 2018 01:04:49 +0000 (01:04 +0000)]
Merge "Add new no-op interface method."
am: 78bfc6f55f

Change-Id: I9dd3e64ad11886d852ed0db15830aa93f4f63dfc

6 years agoMerge "Add new no-op interface method."
Jeff Sharkey [Thu, 18 Jan 2018 23:58:30 +0000 (23:58 +0000)]
Merge "Add new no-op interface method."

6 years agoRemove more things from search v1
Fan Zhang [Thu, 18 Jan 2018 21:07:49 +0000 (13:07 -0800)]
Remove more things from search v1

Test: robotests
Change-Id: Ide54d1cec69ae3a6782a979d3eeb7f3fc44f09b3

6 years agoZen automatic rule page ui changes
Beverly [Fri, 12 Jan 2018 21:50:44 +0000 (16:50 -0500)]
Zen automatic rule page ui changes

- Can change rule name from header
- Text for turning on/off rule is now "Use rule" instead of on/off

Test: make ROBOTEST_FILTER=EntityHeaderControllerTest RunSettingsRoboTests -j40
Test: manual (Settings > Sound > Do Not Disturb > Turn On Automatically)
Bug: 63077372
Change-Id: Id55b02de0509f168c2470a4f875e84140eb840fa

6 years agoMerge "Remove apps with usage access from security page"
TreeHugger Robot [Thu, 18 Jan 2018 22:23:18 +0000 (22:23 +0000)]
Merge "Remove apps with usage access from security page"

6 years agoOnly show app action button if it is not instant app.
Doris Ling [Thu, 18 Jan 2018 22:16:27 +0000 (14:16 -0800)]
Only show app action button if it is not instant app.

- for instant app, we are showing another set of buttons, and hence the
regular app action buttons should be not be available.

Change-Id: I53f2a10921451c281166e123671c088ab87b2b0d
Fixes: 71919219
Test: make RunSettingsRoboTests

6 years agoAdd database to store anomaly data
jackqdyulei [Tue, 16 Jan 2018 18:12:40 +0000 (10:12 -0800)]
Add database to store anomaly data

1. Refactor HighUsageApp to AppInfo so it could be
reused both in dialog and app restriction
2. Add BatteryDatabaseHelper to store the anomaly log

Bug: 70570352
Test: RunSettingsRoboTests

Change-Id: I900cd9746ff7f1e19bd6f3948463588b7cf72b85

6 years agoMerge "Update suggestion card layout"
TreeHugger Robot [Thu, 18 Jan 2018 22:02:13 +0000 (22:02 +0000)]
Merge "Update suggestion card layout"

6 years agoRenamed Storage Access to Directory Access.
Felipe Leme [Thu, 18 Jan 2018 21:01:14 +0000 (13:01 -0800)]
Renamed Storage Access to Directory Access.

Test: manual verification
Test: make RunSettingsRoboTests -j40

Bug: 63720392
Bug: 72135562

Change-Id: I31e63456994d7a9cd2a83a260930835a1052e793

6 years agoAdd new no-op interface method.
Jeff Sharkey [Thu, 18 Jan 2018 21:51:21 +0000 (14:51 -0700)]
Add new no-op interface method.

Test: bit FrameworksNetTests:android.net.,com.android.server.net.
Test: bit FrameworksTelephonyTests:com.android.internal.telephony.dataconnection.DataConnectionTest
Change-Id: I46ab8fab705a6467f72b13b7dbc7f8af5f76fecf
Exempt-From-Owner-Approval: trivial no-op overload
Bug: 64133169

6 years agoMerge "Remove roam scan developer settings"
Ningyuan Wang [Thu, 18 Jan 2018 21:20:51 +0000 (21:20 +0000)]
Merge "Remove roam scan developer settings"

6 years agoMerge "Add dynamic summaries to Slices"
TreeHugger Robot [Thu, 18 Jan 2018 20:37:42 +0000 (20:37 +0000)]
Merge "Add dynamic summaries to Slices"

6 years agoRemove apps with usage access from security page
Fan Zhang [Thu, 18 Jan 2018 20:17:11 +0000 (12:17 -0800)]
Remove apps with usage access from security page

Change-Id: I6791de77caa5d88a26bd2cddd8d5dcdee189a319
Fixes: 72164705
Test: robotests

6 years agoMerge changes Ic95d219b,I58d82cbc
TreeHugger Robot [Thu, 18 Jan 2018 19:54:09 +0000 (19:54 +0000)]
Merge changes Ic95d219b,I58d82cbc

* changes:
  Don't add any trust agents if the controller is not available.
  Introduce boolean flags to show/hide items in Security & location.

6 years agoUpdate suggestion card layout
Doris Ling [Thu, 18 Jan 2018 19:36:21 +0000 (11:36 -0800)]
Update suggestion card layout

- set card corner radius
- update card margin according to number of card and card position
- update text alignment for title and summary

Bug: 70573674
Test: visual
Change-Id: Icfceed5614ded97ce2a7767667ae97f92b89b2fa

6 years agoMigrate to use instrumentation classes from settingslib.
Leif Hendrik Wilden [Thu, 11 Jan 2018 18:15:36 +0000 (10:15 -0800)]
Migrate to use instrumentation classes from settingslib.

Test: Compiles. Manually tested.
Change-Id: Ie5515bb0fe3e621fc7723a9b04ba23e4bfa9c401

6 years agoFix build breakage dependency.
Michael Rosenfeld [Thu, 18 Jan 2018 19:11:39 +0000 (11:11 -0800)]
Fix build breakage dependency.

Test: manual, builds
Change-Id: I43bd8dedc48a268bdf6cfaaf1f4c524ef6d3b646

6 years agoRemove roam scan developer settings
Ningyuan Wang [Wed, 17 Jan 2018 22:23:42 +0000 (14:23 -0800)]
Remove roam scan developer settings

Bug: 72116071
Test: compile
Test: m RunSettingsRoboTests -j40
Test: Manually check developer options, make sure roam scan is
gone

Change-Id: Ibe9fb31551962ecbb2979d0d2ec6885838b919b7

6 years agoMerge "Change Settings to use URL_FILTERED and blocks menu options when DPC Apns...
TreeHugger Robot [Thu, 18 Jan 2018 18:01:40 +0000 (18:01 +0000)]
Merge "Change Settings to use URL_FILTERED and blocks menu options when DPC Apns are enforced."

6 years agoMerge "Ignore first crash dialog."
Andrew Sapperstein [Thu, 18 Jan 2018 17:49:33 +0000 (17:49 +0000)]
Merge "Ignore first crash dialog."

6 years agoMerge "DisplayCutout: Add emulation option to DeveloperSettings"
Adrian Roos [Thu, 18 Jan 2018 17:31:59 +0000 (17:31 +0000)]
Merge "DisplayCutout: Add emulation option to DeveloperSettings"

6 years agoMerge "Show Toast with location of trace when trace is disabled"
TreeHugger Robot [Thu, 18 Jan 2018 17:12:42 +0000 (17:12 +0000)]
Merge "Show Toast with location of trace when trace is disabled"

6 years agoMerge "Moving Settings tests closer to the settings code"
Ashita Sriraman [Thu, 18 Jan 2018 17:02:17 +0000 (17:02 +0000)]
Merge "Moving Settings tests closer to the settings code"

6 years agoChange Settings to use URL_FILTERED and blocks menu options when DPC Apns are enforced.
yuemingw [Wed, 10 Jan 2018 21:22:09 +0000 (21:22 +0000)]
Change Settings to use URL_FILTERED and blocks menu options when DPC Apns are enforced.

Change-Id: I64f55d9a625097baa17c0fa05250d944dea09896
Fix: 68208277
Test: manual

6 years agoMerge "Remove aggressive handover developer setting"
TreeHugger Robot [Thu, 18 Jan 2018 10:59:21 +0000 (10:59 +0000)]
Merge "Remove aggressive handover developer setting"

6 years agoMerge "Disable UI in Settings app when DISALLOW_CONFIG_LOCATION_MODE is set."
Yueming Wang [Thu, 18 Jan 2018 10:26:57 +0000 (10:26 +0000)]
Merge "Disable UI in Settings app when DISALLOW_CONFIG_LOCATION_MODE is set."

6 years agoMerge "Asynchronously load SliceData from SliceProvider"
TreeHugger Robot [Thu, 18 Jan 2018 05:00:59 +0000 (05:00 +0000)]
Merge "Asynchronously load SliceData from SliceProvider"

6 years agoMerge "Specify package name when launching search UI"
TreeHugger Robot [Thu, 18 Jan 2018 04:14:24 +0000 (04:14 +0000)]
Merge "Specify package name when launching search UI"

6 years agoMerge "Move styleActionBar to onStart()"
TreeHugger Robot [Thu, 18 Jan 2018 03:03:02 +0000 (03:03 +0000)]
Merge "Move styleActionBar to onStart()"

6 years agoMerge "DO NOT MERGE: Keep access point list updated once in short time" am: d7682e6d3...
Bolun Shan [Thu, 18 Jan 2018 03:01:29 +0000 (03:01 +0000)]
Merge "DO NOT MERGE: Keep access point list updated once in short time" am: d7682e6d3c  -s ours am: bc00e361d5
am: b50162415a  -s ours

Change-Id: I9f7850dfd0836b6e3e6c40bca8295e515a476bef

6 years agoMerge "DO NOT MERGE: Keep access point list updated once in short time" am: d7682e6d3...
Bolun Shan [Thu, 18 Jan 2018 02:59:45 +0000 (02:59 +0000)]
Merge "DO NOT MERGE: Keep access point list updated once in short time" am: d7682e6d3c  -s ours
am: bc00e361d5

Change-Id: Ie4be52fa2e0d304aa268a4610ba03cb52997dd5d

6 years agoMerge "DO NOT MERGE: Keep access point list updated once in short time"
Bolun Shan [Thu, 18 Jan 2018 02:57:28 +0000 (02:57 +0000)]
Merge "DO NOT MERGE: Keep access point list updated once in short time"
am: d7682e6d3c  -s ours

Change-Id: I134755ec0ec77dea80649440b969f9bcee8eab17

6 years agoMerge "DO NOT MERGE: Keep access point list updated once in short time"
Treehugger Robot [Thu, 18 Jan 2018 02:48:31 +0000 (02:48 +0000)]
Merge "DO NOT MERGE: Keep access point list updated once in short time"

6 years agoMerge "Fix NPE crash in AppInfoBase" am: e49cc3d659 am: abcb069d95
tiansiming [Thu, 18 Jan 2018 02:34:11 +0000 (02:34 +0000)]
Merge "Fix NPE crash in AppInfoBase" am: e49cc3d659 am: abcb069d95
am: b5697b2d45

Change-Id: I5e40dde6e0f98a8ba046df78f9b9e3ddcc3f2ce9

6 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Thu, 18 Jan 2018 02:30:25 +0000 (02:30 +0000)]
Merge "Import translations. DO NOT MERGE"

6 years agoMerge "Fix NPE crash in AppInfoBase" am: e49cc3d659
tiansiming [Thu, 18 Jan 2018 02:25:19 +0000 (02:25 +0000)]
Merge "Fix NPE crash in AppInfoBase" am: e49cc3d659
am: abcb069d95

Change-Id: Id60245ba109dc977ee1078e8d3f50288e5bdbcc7

6 years agoMerge "Fix NPE crash in AppInfoBase"
tiansiming [Thu, 18 Jan 2018 02:15:29 +0000 (02:15 +0000)]
Merge "Fix NPE crash in AppInfoBase"
am: e49cc3d659

Change-Id: I719b50356e890e57a8d6574aae23a2d5d0fd989b

6 years agoDon't add any trust agents if the controller is not available.
Ben Lin [Wed, 17 Jan 2018 19:40:15 +0000 (11:40 -0800)]
Don't add any trust agents if the controller is not available.

TrustAgentListPreferenceController gets a list of trust agents and add
them to the security_category preference category at runtime. However,
this update process is always ran - even if the controller is explicitly
disabled/not available. This fixes this.

Bug: None
Test: Updated TrustAgentListPreferenceControllerTest.
Change-Id: Ic95d219bc1d0c7cfa0c4eed0d3dd12dec0e14df6

6 years agoIntroduce boolean flags to show/hide items in Security & location.
Ben Lin [Tue, 16 Jan 2018 23:51:57 +0000 (15:51 -0800)]
Introduce boolean flags to show/hide items in Security & location.

This adds 6 new boolean flags:
config_show_manage_device_admin
config_show_unlock_set_or_change
config_show_screen_pinning_settings
config_show_manage_trust_agents
config_show_show_password
config_show_trust_agent_click_intent

Which when individually set to false, will hide the item from "Security
& location". It will also hide them from surfacing in search results.

Bug:62379222
Test: make RunSettingsRoboTests
ROBOTEST_FILTER=com.android.settings.security
Change-Id: I58d82cbc7f366a9666cdb0f7cd1b90ebbaf418f4

6 years agoMove styleActionBar to onStart()
Fan Zhang [Thu, 18 Jan 2018 00:52:30 +0000 (16:52 -0800)]
Move styleActionBar to onStart()

Change-Id: I002c266acc0e1095269e92eb7988b1ab505e48ff
Fixes: 72097389
Test: robotest

6 years agoDO NOT MERGE: Keep access point list updated once in short time
Bolun Shan [Thu, 12 Oct 2017 07:17:08 +0000 (15:17 +0800)]
DO NOT MERGE: Keep access point list updated once in short time

The function onAccessPointsChanged will be called many times
and access points will be updated many times in 300ms. So check
if the same event exists before calling postDelayed.

Bug: 68230819
Test: Manual test
Change-Id: Id098e1b77c28b62a5495c3369ed950531e59dba2

6 years agoAsynchronously load SliceData from SliceProvider
Matthew Fritze [Wed, 10 Jan 2018 19:40:28 +0000 (11:40 -0800)]
Asynchronously load SliceData from SliceProvider

The slices paradigm is to return a slice as soon as possible
whith whatever information is currently available. Then, load the
longer information in the background and broadcast on the Uri when
the changes are ready.

This CL incorprates a cache system for SettingsSliceProvider to
load that data in the background to solve the issues of multiple
simultaneous callers.

Bug: 67996923
Test: robotests
Change-Id: I0e3f9984181e1c989fed139707cdb27956cf6de6

6 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 18 Jan 2018 00:21:55 +0000 (16:21 -0800)]
Import translations. DO NOT MERGE

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

6 years agoMerge "Make LinearColorBar support RTL"
TreeHugger Robot [Thu, 18 Jan 2018 00:08:24 +0000 (00:08 +0000)]
Merge "Make LinearColorBar support RTL"

6 years agoSpecify package name when launching search UI
Fan Zhang [Wed, 17 Jan 2018 23:57:34 +0000 (15:57 -0800)]
Specify package name when launching search UI

Test: robotests
Change-Id: Ib8cc2aa1a6d4de82b32cbe3da8473bb61cf0c530

6 years agoRevert "DO NOT MERGE Add metric log for anomaly."
Lei Yu [Wed, 17 Jan 2018 23:47:37 +0000 (23:47 +0000)]
Revert "DO NOT MERGE Add metric log for anomaly."
am: 00322c0f83  -s ours

Change-Id: Id2350a188c34d5f5f2146da4ae08cf8c09c6c597

6 years agoRevert "DO NOT MERGE Add metric log for anomaly."
Lei Yu [Wed, 17 Jan 2018 23:22:47 +0000 (23:22 +0000)]
Revert "DO NOT MERGE Add metric log for anomaly."

This reverts commit adf11594d3510cd947e186ce4dec254223f1da10.

Merged-In: I83761e2a9c206ea7a04f7d031a6961fdab7ca9a0
Change-Id: I015d8c0d05c7ae9abfd4939f7a95e1f0daecc1fc

6 years agoMerge "Separate suggestions and conditions."
TreeHugger Robot [Wed, 17 Jan 2018 22:45:45 +0000 (22:45 +0000)]
Merge "Separate suggestions and conditions."

6 years agoMake LinearColorBar support RTL
Fan Zhang [Wed, 17 Jan 2018 18:38:49 +0000 (10:38 -0800)]
Make LinearColorBar support RTL

- Move the class to widget package
- Remove a bunch of useless drawing

Change-Id: I82f840819c89eaf3cf9b7a87e56f1031989e3262
Fixes: 62700884
Test:  robotest

6 years agoMerge "Show current setting for Tap & Pay"
TreeHugger Robot [Wed, 17 Jan 2018 22:39:02 +0000 (22:39 +0000)]
Merge "Show current setting for Tap & Pay"

6 years agoMerge "Tweak bluetooth text alignment"
TreeHugger Robot [Wed, 17 Jan 2018 22:20:21 +0000 (22:20 +0000)]
Merge "Tweak bluetooth text alignment"

6 years agoMerge "Allow lines to be highlighted on managed service pages."
TreeHugger Robot [Wed, 17 Jan 2018 22:08:26 +0000 (22:08 +0000)]
Merge "Allow lines to be highlighted on managed service pages."

6 years agoMerge "Update storage usage to be consistent in settings"
Akshay Joshi [Wed, 17 Jan 2018 21:41:25 +0000 (21:41 +0000)]
Merge "Update storage usage to be consistent in settings"

6 years agoMerge "Disable lowBatteryTip and ReducedBatteryTip"
TreeHugger Robot [Wed, 17 Jan 2018 21:30:42 +0000 (21:30 +0000)]
Merge "Disable lowBatteryTip and ReducedBatteryTip"

6 years agoDO NOT MERGE Add metric log for anomaly. am: adf11594d3
jackqdyulei [Wed, 17 Jan 2018 21:29:54 +0000 (21:29 +0000)]
DO NOT MERGE Add metric log for anomaly. am: adf11594d3
am: 2755f3de0a  -s ours

Change-Id: Ib6d037a6cf3c8e8a24a1e99befb611c81a1493ac

6 years agoIgnore first crash dialog.
Andrew Sapperstein [Mon, 15 Jan 2018 21:46:41 +0000 (13:46 -0800)]
Ignore first crash dialog.

By default, no longer show the crash dialog the first time an app
crashes. Instead, only multiple crashes will show by default.

Add developer setting to control behavior, so app developers can
ensure dialog always shows when a crash happens.

Bug: 6370335370640329
Test: robotests, manual crashing with a test app
Change-Id: I2e625ed147dafc188b28c52eb1b9cee6b2330d50

6 years agoDO NOT MERGE Add metric log for anomaly.
jackqdyulei [Wed, 17 Jan 2018 21:22:12 +0000 (21:22 +0000)]
DO NOT MERGE Add metric log for anomaly.
am: adf11594d3

Change-Id: I2b55df61278b9c64d80cd9ba43b8d9b1686ff6e4

6 years agoDisable UI in Settings app when DISALLOW_CONFIG_LOCATION_MODE is set.
yuemingw [Wed, 3 Jan 2018 18:09:31 +0000 (18:09 +0000)]
Disable UI in Settings app when DISALLOW_CONFIG_LOCATION_MODE is set.

Bug: 67674888
Test: m -j RunSettingsRoboTest

Change-Id: I13a4fa4a3122bfd9b84f935c0aa83c019490eac9

6 years agoMoving Settings tests closer to the settings code
Ashita Sriraman [Wed, 17 Jan 2018 18:27:29 +0000 (10:27 -0800)]
Moving Settings tests closer to the settings code

Change-Id: Ia456db3a8728b35390963c989d5788f4f23806cd

6 years agoTweak bluetooth text alignment
jackqdyulei [Wed, 17 Jan 2018 03:40:36 +0000 (19:40 -0800)]
Tweak bluetooth text alignment

1. Remove the placeholder summary so it won't show blank summary
2. Update settings_entity_header to make text center_vertical,
so it could align with the icon.

Bug: 71742145
Test: Screenshot
Change-Id: I185114a4e0c8d996f218075a8633e802fabf3c66

6 years agoMerge "Skip option missing on pattern lock screen"
TreeHugger Robot [Wed, 17 Jan 2018 20:22:19 +0000 (20:22 +0000)]
Merge "Skip option missing on pattern lock screen"

6 years agoMerge "Fix NPE crash in AppInfoBase"
Treehugger Robot [Wed, 17 Jan 2018 19:44:16 +0000 (19:44 +0000)]
Merge "Fix NPE crash in AppInfoBase"

6 years agoMerge "Keep access point list updated once in short time"
TreeHugger Robot [Wed, 17 Jan 2018 19:34:24 +0000 (19:34 +0000)]
Merge "Keep access point list updated once in short time"

6 years agoShow current setting for Tap & Pay
Antony Sargent [Wed, 10 Jan 2018 22:51:32 +0000 (14:51 -0800)]
Show current setting for Tap & Pay

In Settings > Apps & notifications > Advanced > Default apps > Tap & pay
the setting labeled "Use default" is a drop down preference but wasn't
showing the current value it's set to in its summary. This CL fixes
that.

Change-Id: I891289abad781c3eeafa2d7979373f0d53faafc6
Fixes: 67754372
Test: make -j64 RunSettingsRoboTests

6 years agoUpdate storage usage to be consistent in settings
Akshay Joshi [Tue, 16 Jan 2018 22:23:19 +0000 (14:23 -0800)]
Update storage usage to be consistent in settings

Storage usage is calculated differently accross multiple settings pages.
Update the logic to be consistent throughout.

Bug: 70475659
Test: Manual
Change-Id: Id01f39ead76fac505daa20998b0b326b1947a6a4

6 years agoSeparate suggestions and conditions.
Doris Ling [Thu, 11 Jan 2018 01:26:48 +0000 (17:26 -0800)]
Separate suggestions and conditions.

This is the initial change for updating the suggestion cards:
- add a feature flag to swap between the new and current UI
- change suggestions to a standalone dashboard item. It becomes a
  horizontal scroll list that won't collapse/expand.
- the expand/collapse logic now only control the conditions list
- add draft for the new suggestion UI elements, but detail to fine-tune
to match the UI spec will come in following changes.

Bug: 70573674
Test: make RunSettingsRoboTests
Change-Id: I00c901e2598b26a34288fc73fd6031cc26a29ac6

6 years agoAllow lines to be highlighted on managed service pages.
Julia Reynolds [Wed, 17 Jan 2018 16:19:14 +0000 (11:19 -0500)]
Allow lines to be highlighted on managed service pages.

Test: manual
Change-Id: I4d20b7b146b17dea8bc0ed3957d18394931889a8
Fixes: 72067617

6 years agoDisplayCutout: Add emulation option to DeveloperSettings
Adrian Roos [Wed, 10 Jan 2018 12:56:31 +0000 (13:56 +0100)]
DisplayCutout: Add emulation option to DeveloperSettings

Bug: 65689439
Test: Go to Developer Settings > Toggle "Emulate display with a cutout"
Change-Id: Id3387c026df9868d42e0a7b0d7e623115f41452b

6 years agoFix NPE crash in AppInfoBase
tiansiming [Sun, 14 Jan 2018 08:46:05 +0000 (16:46 +0800)]
Fix NPE crash in AppInfoBase

This crash can hardly happen under the normal operation of the user,
but it may have a chance to appear in monkey test. To enhance the
robustness of the program, intent.getData() here should not be null
in any situations.

Bug: N/A
Test: adb shell am start -n
'com.android.settings/.Settings\$AppDrawOverlaySettingsActivity'

Change-Id: I732b564056e3e585405f146d99efe3b410edbc41
Signed-off-by: tiansiming <tiansiming@xiaomi.com>
6 years agoRemove aggressive handover developer setting
Michael Plass [Wed, 17 Jan 2018 01:02:55 +0000 (17:02 -0800)]
Remove aggressive handover developer setting

The developer setting for aggressive wifi to mobile data handover is no
longer used by the framework, so it should not appear in the settings UI.

Bug: 72063774
Test: m RunSettingsRoboTests -j40
Test: Manually check developer options, make sure aggressive handover is gone
Change-Id: Id54c714fc82fb27abc0b4116f2b82be68cc6d151

6 years agoMerge "Remove "emergency alert" from Sound settings"
TreeHugger Robot [Wed, 17 Jan 2018 17:32:15 +0000 (17:32 +0000)]
Merge "Remove "emergency alert" from Sound settings"

6 years agoKeep access point list updated once in short time
Fan Zhang [Wed, 17 Jan 2018 17:12:48 +0000 (09:12 -0800)]
Keep access point list updated once in short time

The function onAccessPointsChanged will be called many times
and access points will be updated many times in 300ms. So check
if the same event exists before calling postDelayed.

Fixes: 68230819
Test: Manual test
Change-Id: Id098e1b77c28b62a5495c3369ed950531e59dba2

6 years agoMerge "Only show one tip at a time"
Lei Yu [Wed, 17 Jan 2018 03:30:55 +0000 (03:30 +0000)]
Merge "Only show one tip at a time"

6 years agoMerge "Block settings when DISALLOW_CONFIG_AMBIENT_DISPLAY."
TreeHugger Robot [Wed, 17 Jan 2018 02:17:19 +0000 (02:17 +0000)]
Merge "Block settings when DISALLOW_CONFIG_AMBIENT_DISPLAY."

6 years agoMerge "Add early warning tip and detector"
Lei Yu [Wed, 17 Jan 2018 01:28:08 +0000 (01:28 +0000)]
Merge "Add early warning tip and detector"

6 years agoMerge "Implement PreferenceControllerMixin in TrustAgentController"
TreeHugger Robot [Wed, 17 Jan 2018 00:34:39 +0000 (00:34 +0000)]
Merge "Implement PreferenceControllerMixin in TrustAgentController"

6 years agoBlock settings when DISALLOW_CONFIG_AMBIENT_DISPLAY.
yuemingw [Wed, 10 Jan 2018 21:02:14 +0000 (21:02 +0000)]
Block settings when DISALLOW_CONFIG_AMBIENT_DISPLAY.

Test: m -j RunSettingsRoboTests
Fix: 67675787

Change-Id: Ibf5786982e258decea4486431faa45ff1b7480ef

6 years agoShow Toast with location of trace when trace is disabled
Vishnu Nair [Wed, 17 Jan 2018 00:00:03 +0000 (16:00 -0800)]
Show Toast with location of trace when trace is disabled

- Rename Layer Trace development tile to Surface Flinger Trace

Bug: 64831661
Test: Manually toggle trace
Test: make RunSettingsRoboTests ROBOTEST_FILTER=LayerTraceTest && make RunSettingsRoboTests ROBOTEST_FILTER=WindowTraceTest
Change-Id: I438efca251688774f0d6f29ba93d02d116f1e574

6 years agoImplement PreferenceControllerMixin in TrustAgentController
Fan Zhang [Tue, 16 Jan 2018 22:58:21 +0000 (14:58 -0800)]
Implement PreferenceControllerMixin in TrustAgentController

Change-Id: Iba7cfb139ec213ef6ebc605902a41165e52fb6a1
Fixes: 72056368
Test: robotests