Commit Graph

33929 Commits

Author SHA1 Message Date
Anton Philippov
adfec5563e Add a screen to show OEM backup settings.
Moves the backup settings logic to BackupSettingsHelper and
BackupSettingsActivity:
- If the manufacturer provides the intent and the label for their backup
settings in the config.xml, a new intermediate fragment is shown for
Backup settings to let the user pick either standard backup settings or
OEM provided backup settings.
- If config.xml doesn't contain the intent, BackupSettingsActivity is
used as a trampoline activity to launch backup settings provided by the
backup transport of the default backup settings activity, i.e.
PrivacySettingsActivity.

Bug: 34700410
Bug: 33655074
Bug: 33654991
Test: make RunSettingsRoboTests
Change-Id: I78e340fbf926b2a9dc2c4e3942f9337c3c7a933c
2017-01-30 16:17:28 +00:00
Nicolas Prévot
67b3450f33 Merge "Add policy transparency to Settings > device administrators" 2017-01-30 11:24:01 +00:00
Maurice Lam
f04ff76af0 Suppress failing Settings Robolectric tests
- Assume API 24 for some settings robolectric tests since they are
broken by referencing API new in version 24. Those tests will be
ignored until Robolectric is updated to support SDK 24.

- Comment out failing DatabaseIndexingManagerTest.

Test: cd tests/robotests && mma
Change-Id: Id71211b7a6836d55f31524c4cfe9628c2de78097
2017-01-28 13:10:14 -08:00
Daniel Nishi
ea40813d04 Merge "Go to the old storage settings when using non-internal storage." 2017-01-27 22:57:34 +00:00
jackqdyulei
3ee22131a4 Add summary for items in App Usage List in Battery page
This summary shows the active time of the app. For example
"Used for 27m".

Bug: 34467139
Test: RunSettingsRoboTests & Take screenshots
Change-Id: I0ef48427ad21be4dacd290fffb2c5d519ef58506
2017-01-27 14:15:38 -08:00
Doris Ling
31921dfa82 Make UsersDashboardAlias primary profile controlled.
Add PRIMARY_PROFILE_CONTROLLED metadata to UsersDashboardAlias and
add it to the Settings list for restricted user, so that it will be
shown to other users.

Change-Id: I9c090b15c3dced75eb7a405bd109ca7fb51807ab
Fix: 34194505
Test: Visual
2017-01-27 13:13:17 -08:00
TreeHugger Robot
8201bcb710 Merge "Move intent action to xml" 2017-01-27 20:49:03 +00:00
Salvador Martinez
0e5b8f14c1 Merge "Remove fake data" into nyc-mr2-dev am: d258b2f40f -s ours
am: 14db171c1b  -s ours

Change-Id: I74408491dfeb629b39afa874fb166856a1d85f6e
2017-01-27 20:37:29 +00:00
Salvador Martinez
48672fd86e Remove fake data am: a1499c3005 -s ours
am: a7b1c967b7  -s ours

Change-Id: If6738d1bba8dd8207b79c0082799ba24a09062f0
2017-01-27 20:37:13 +00:00
TreeHugger Robot
7036d46889 Merge "modified settings to use settingslib class" 2017-01-27 20:35:35 +00:00
Salvador Martinez
14db171c1b Merge "Remove fake data" into nyc-mr2-dev
am: d258b2f40f  -s ours

Change-Id: Ic418e0cbdd54679f0af152b13f52f34d963da8b6
2017-01-27 20:34:41 +00:00
Salvador Martinez
a7b1c967b7 Remove fake data
am: a1499c3005  -s ours

Change-Id: Iea66d48fba72ff28bbc81a1499084a9afcd1e569
2017-01-27 20:34:39 +00:00
TreeHugger Robot
d258b2f40f Merge "Remove fake data" into nyc-mr2-dev 2017-01-27 20:31:40 +00:00
Julia Reynolds
893b7d075f Audio attributes
Test: manual
Change-Id: I4f298019a42520370a3867e332274abe299cff2d
2017-01-27 15:19:11 -05:00
Salvador Martinez
879bb643f8 Merge "Fix null pointer exception when surveys are turned off" into nyc-mr2-dev am: 4edcb927ab
am: 387fdd058e  -s ours

Change-Id: I05efb9a970bbd055d37a7bcf7a204675109d4001
2017-01-27 20:05:17 +00:00
Salvador Martinez
bb88606a41 Fix null pointer exception when surveys are turned off am: 9db3cb3bee
am: e2904eb7fa  -s ours

Change-Id: I3ebd619327fa399e8fab9ead6e1de63a67ce1306
2017-01-27 20:05:09 +00:00
Salvador Martinez
387fdd058e Merge "Fix null pointer exception when surveys are turned off" into nyc-mr2-dev
am: 4edcb927ab

Change-Id: I384020dab83593e815c0afc0d5c2657c9dcaacbc
2017-01-27 20:03:12 +00:00
Salvador Martinez
e2904eb7fa Fix null pointer exception when surveys are turned off
am: 9db3cb3bee

Change-Id: I9f71f40a715cfb65d8a5bc53fed64e674bd0515d
2017-01-27 20:03:08 +00:00
TreeHugger Robot
4edcb927ab Merge "Fix null pointer exception when surveys are turned off" into nyc-mr2-dev 2017-01-27 19:59:03 +00:00
Soroosh Mariooryad
729cfcbe4d Merge "Adding setting suggestion ranker." 2017-01-27 19:22:35 +00:00
songchenxi
dbf78d4c03 Move intent action to xml
This is a follow-up change for ag/1798497 which move the implementation
of OnPreferenceClickListener to the xml.
Test: Manual
bug: 34400189

Change-Id: I4691beecf829e8d98d5c6188b3ff74f4902104d2
2017-01-27 11:05:27 -08:00
Salvador Martinez
a1499c3005 Remove fake data
Missed one location that adds fake data
to the payload the first time these were
removed. This patch removes any remaining
fake data being attached to a survey payload.

Test: Robotests still pass
Bug: 34716378
Change-Id: Iccb60ce24ae5c494dcd287107f8d293f4a56b2d5
Merged-In: I055c2b2e027f721e14ea5b6b7efccd5267018b8c
2017-01-27 10:47:33 -08:00
Salvador Martinez
9db3cb3bee Fix null pointer exception when surveys are turned off
In some conditions the survey provider could be null on
download completion which could lead to a NPE. This
has been addressed by not requiring an instance for
the removal of the receiver.

Test: RunSettingsRoboTests (master)
Bug: 33707203
Change-Id: Id1ab1a24c697fed8e4dd259682a088b50c35f38a
Merged-In: Icfb545697f24172db734dd7dad421796edf68186
2017-01-27 10:29:10 -08:00
Sunny Goyal
a9a5356f23 Merge "Passing bind options to the service in the bind-widget permission prompt" 2017-01-27 17:59:55 +00:00
Robin Lee
0c341d7357 Merge "Prompt to start user before choosing a new ringtone" 2017-01-27 14:03:12 +00:00
Andrew Sapperstein
47b02f3f07 Merge "Finalize string for usage alerts." into nyc-mr2-dev am: f15b23ad65
am: 718de5da30

Change-Id: I09589fddda36e95cd99993383c7ab427b8bc6d9e
2017-01-27 03:43:44 +00:00
Andrew Sapperstein
718de5da30 Merge "Finalize string for usage alerts." into nyc-mr2-dev
am: f15b23ad65

Change-Id: I2db7aa3136facd9841c52e6c79e38fd140b41df1
2017-01-27 03:41:44 +00:00
Andrew Sapperstein
c28269ebd2 Finalize string for usage alerts. am: 59fd24cde2
am: 251c91d974

Change-Id: I90392ba7d7cd1c3ac47c925dfb6cdcea8325ec53
2017-01-27 03:41:44 +00:00
Andrew Sapperstein
251c91d974 Finalize string for usage alerts.
am: 59fd24cde2

Change-Id: I79519e4c1f04dd2eee32320b4d8c4482fd4f2830
2017-01-27 03:39:48 +00:00
TreeHugger Robot
f15b23ad65 Merge "Finalize string for usage alerts." into nyc-mr2-dev 2017-01-27 03:37:45 +00:00
TreeHugger Robot
a26df737c2 Merge "Fix null pointer exception when surveys are turned off" 2017-01-27 03:28:58 +00:00
Tadashi G. Takaoka
edbe4047f7 Fix BroadcastReceiver leakage
This CL ensures that a shared PackageMonitor is unregistered when a
settings activity pauses.

Bug: 34541282
Test: Manually installing/uninstalling AOSP LatinIME.apk while
      Settings app is/isn't running, then search AOSP. Verified that
      intent receiver isn't leaked from Settings app.
Test: Add assertion to Robolectric test to ensure intent receiver
      isn't leaked. Build RunSettingsRoboTests and verify all passed.
Change-Id: I5bacdfe478eaa750c61341c14e79eb2cd3fdef3a
2017-01-27 10:35:54 +09:00
Andrew Sapperstein
59fd24cde2 Finalize string for usage alerts.
Test: manual
Bug: 34200177
Change-Id: I5c28b2844b035d551ef2707b9797443074d0d23f
2017-01-26 17:30:30 -08:00
Marie Janssen
683528db8b Bluetooth: remove BluetoothDiscoveryReceiver
Use new function getDiscoveryEndMillis() to replace use of shared preferences
and intents.

Test: scan recently, then connect from external BT device
Bug: 34395439
Change-Id: Ia498b3bb4868b656cbbb9fbdc607a49af948343b
2017-01-26 15:38:05 -08:00
Daniel Nishi
1db848885d Go to the old storage settings when using non-internal storage.
There are a few things which, currently, can only be done on
the old storage view. We can continue to use the storage
dashboard fragment for the internal storage, but for SD cards
and USB drives it makes sense to show the old view.

Bug: 34623728
Test: Manual
Change-Id: Ibe640decea6486a75034184c8f9f95bf00411553
2017-01-26 15:03:00 -08:00
Soroosh Mariooryad
b1922dbc39 Adding setting suggestion ranker.
Test: RunSettingsGoogleRoboTests
This is currently behind a flag and it is no-op CL.

Change-Id: Ieed3e5a9c3c2fbb0ce1bfea77c588b04778540eb
2017-01-26 14:45:39 -08:00
Salvador Martinez
d7fe1fb958 Fix null pointer exception when surveys are turned off
Under certain conditions the provider could be null on
download completion which could lead to a
NPE if surveys are disabled. The method to remove
the receiver has been made static so an instance
is no longer required.

Test: robotests
Bug: 33707203
Change-Id: Icfb545697f24172db734dd7dad421796edf68186
2017-01-26 12:32:21 -08:00
Pavlin Radoslavov
86c492ffcc Merge "Integration of the AAC codec for A2DP source" am: 6a153ac4aa am: a53cc5068d am: e3fc5f7b56
am: fbdc22ff9a

Change-Id: I002e9ef05e3fa91b6430b1d31bc3178e87b097d0
2017-01-26 19:42:33 +00:00
Pavlin Radoslavov
fbdc22ff9a Merge "Integration of the AAC codec for A2DP source" am: 6a153ac4aa am: a53cc5068d
am: e3fc5f7b56

Change-Id: I69b7cef21d953bcecd2fb73ddbc1b6231c4eb25b
2017-01-26 19:31:19 +00:00
Pavlin Radoslavov
e3fc5f7b56 Merge "Integration of the AAC codec for A2DP source" am: 6a153ac4aa
am: a53cc5068d

Change-Id: Iee8bf4a93a7c6879a144616648fd629c3109e40d
2017-01-26 19:25:49 +00:00
Pavlin Radoslavov
a53cc5068d Merge "Integration of the AAC codec for A2DP source"
am: 6a153ac4aa

Change-Id: I1ca21a7c2a2c2792ba3fa6055f767d3b8686f5d5
2017-01-26 19:20:20 +00:00
Treehugger Robot
6a153ac4aa Merge "Integration of the AAC codec for A2DP source" 2017-01-26 19:12:55 +00:00
Robin Lee
2953f31b61 Prompt to start user before choosing a new ringtone
Dead users can't hear, nor see, ringtones. Let's wake them up and give
them a good shake first.

Until then, show a nice friendly "work profile isn't available" message.
Or depending on locale something confusing, egregious, and mismatched
like "work profile isn't available" instead.

Fix: 34735015
Bug: 34734809
Test: make RunSettingsRoboTests && make Settings && adb install -r $OUT/system/priv-app/Settings/Settings.apk && then reboot the device to see what happens
Change-Id: I86e61a7f3f654d7f38f04c43227a31e2f288e18f
2017-01-26 18:20:45 +00:00
songchenxi
b9cf917f40 Location Setting change for O
This is a change that adds a link from location settings to location
permissions

Test: Manual

Bug: 34400189
Change-Id: If873fbb6e53c1fd86a3cfe38e06465cdec56bef8
2017-01-26 09:33:26 -08:00
Pavlin Radoslavov
c0a3a9fb94 Integration of the AAC codec for A2DP source
Test: A2DP streaming to AAC headsets
Bug: 30958229
Change-Id: Icef9ce9fb8e41cad65bc57bf078513d0c7bf7b9a
2017-01-26 09:30:11 -08:00
Lenka Trochtova
a2070edbf2 RequestPermissionHelperActivity: policy transparency for BT disallowed
Don't try to enable Bluetooth if it was disallowed, show a policy
transparency dialog instead.

Test: manual with CtsVerifier

Bug: 32895313

Change-Id: I9dd535a959b65f172cf2dcdd5483773d4f67366c
2017-01-26 15:44:55 +01:00
Nicolas Prevot
4735488902 Add policy transparency to Settings > device administrators
In Settings > device administrators: if the user wants to remove
a work profile but DISALLOW_REMOVE_MANAGED_PROFILE is set: show
policy transparency.

BUG:33925172
BUG:34455202
Test: manual
Change-Id: Ifbb9806e92e759039d592af29568bffce5fbb92a
2017-01-26 12:55:50 +00:00
Stefano Tommasini
77af2af66a Merge "*DO NOT MERGE* Create new suggestion category for backup." into nyc-mr2-dev am: a04697a951
am: 3e7287b6db  -s ours

Change-Id: I3d9af498968a614de17928cf9dca25da7d6e23a8
2017-01-26 10:38:52 +00:00
Stefanot
f74f998087 *DO NOT MERGE* Create new suggestion category for backup. am: 1c72ce06d1
am: 3c019a8714  -s ours

Change-Id: I96f27a8f2afd65784de9289daff082ab5914fbb8
2017-01-26 10:38:45 +00:00
Stefano Tommasini
3e7287b6db Merge "*DO NOT MERGE* Create new suggestion category for backup." into nyc-mr2-dev
am: a04697a951

Change-Id: I9f5c2efb755e6e96805be3feb97f85dc0f4a0ce0
2017-01-26 10:36:06 +00:00