Commit Graph

47628 Commits

Author SHA1 Message Date
Bill Yi
f97da8d22d Import translations. DO NOT MERGE
Change-Id: Icd25d8420b9c9facf3ee5bc363f2b2804d319716
Auto-generated-cl: translation import
2018-09-22 11:28:52 -07:00
TreeHugger Robot
10bf029635 Merge "Add intent filter to launch usage access for app." 2018-09-21 21:31:38 +00:00
Lei Yu
88ee1c83d7 [automerger skipped] Merge "Fix incorrect API invoke for BT profiles" am: 625c1eeaa9 am: dbc26b576c
am: 6ef05a6c23  -s ours

Change-Id: I89d838f7456503f987b6ac8ba706a3457694a16a
2018-09-21 13:24:27 -07:00
Lei Yu
6ef05a6c23 Merge "Fix incorrect API invoke for BT profiles" am: 625c1eeaa9
am: dbc26b576c

Change-Id: Ic6b7a4b7541310b3a635b94a799e3476cf5cc684
2018-09-21 13:20:16 -07:00
Lei Yu
dbc26b576c Merge "Fix incorrect API invoke for BT profiles"
am: 625c1eeaa9

Change-Id: I1a7f98b25cae2695d8f5895c8f6e03072ef4600f
2018-09-21 13:13:39 -07:00
Lei Yu
625c1eeaa9 Merge "Fix incorrect API invoke for BT profiles" 2018-09-21 19:50:45 +00:00
Lei Yu
ccbf7f3fff Merge "Fix null pointer crash in BT renaming dialog" 2018-09-21 02:25:34 +00:00
TreeHugger Robot
f553362778 Merge changes from topic "mobile_select_migration"
* changes:
  Fix compile error in NetwotkSelectSettings
  Copy NetworkSelectSettings to settings app
2018-09-21 01:40:29 +00:00
Fan Zhang
104ee2e423 Add intent filter to launch usage access for app.
Change-Id: Ide8aa590f9b4218d0f4affe65a7daec384480798
Fixes: 110200770
Test: adb shell am start -a android.settings.USAGE_ACCESS_SETTINGS -d package:com.android.settings
2018-09-20 16:44:54 -07:00
jackqdyulei
c7a83b2552 Fix incorrect API invoke for BT profiles
When hearing aid device has been set active, we shouldn't invoke
1. a2dpProfile.setActiveDevice()
2. hfpProfile.setActiveDevice()

Change-Id: Ie13dea041dd98d0cb9d913e1f28574b300095db9
Merged-In: Ie13dea041dd98d0cb9d913e1f28574b300095db9
Fixes: 113625278
Test: RunSettingsRoboTests
2018-09-20 12:38:26 -07:00
Julia Reynolds
68956715d4 Merge "Make the volume slider height 48dp" 2018-09-20 19:11:45 +00:00
Fan Zhang
45daefd152 Merge "Set MODE_LARGE to sliceView in the homepage." 2018-09-20 18:58:47 +00:00
jackqdyulei
1e207e1ab4 Fix compile error in NetwotkSelectSettings
1. Remove all the internal dependencies and add TODO
2. Use the API in SettingsFragment for progressbar

Bug: 114749736
Test: Build
Change-Id: If2f57dd24528ae1aac6a1fe84d4a40db237ae7da
2018-09-20 11:25:58 -07:00
jackqdyulei
00ec66cdfc Copy NetworkSelectSettings to settings app
This is a clean copy except:
1. Fix issues in strings.xml to make it pass pre-upload check
   a) add "CHAR_LIMIT"
   b) Update special character

Future CL will remove compile error and make it compatible with
settings.

Bug: 114749736
Test: Build
Change-Id: I8fe28ff1358f94334ff9663a4404628ae0eff9af
2018-09-20 11:25:35 -07:00
TreeHugger Robot
a114c09c7a Merge "Don't persist device index job across reboot" 2018-09-20 16:50:13 +00:00
TreeHugger Robot
d4f5215286 Merge "Do not show restricted icon by default" 2018-09-20 16:48:21 +00:00
TreeHugger Robot
d13f28433c Merge "Developer option to enable CBRS" 2018-09-20 15:29:06 +00:00
Emily Chuang
bbcb421b49 Set MODE_LARGE to sliceView in the homepage.
The mode of sliceView is set to MODE_SHORTCUT accidentally
in the previous commit. Set it back to MODE_LARGE.

Change-Id: I1ae8e895fc0172d2d93fc19c54803d56040379da
Fixes: 115709730
Test: robotests
2018-09-20 14:51:14 +08:00
TreeHugger Robot
cf3af28588 Merge "Add a controller and renderer for Slices." 2018-09-20 05:42:56 +00:00
TreeHugger Robot
aaa79085a7 Merge "Don't index icon for support setting." 2018-09-20 02:18:34 +00:00
Emily Chuang
0757e49260 Add a controller and renderer for Slices.
Many contextual cards will be built as slices, so we need a controller
and a renderer for them.

Change-Id: I3816db09ba0181399810652fb18fbe11ce273267
Fixes: 115709730
Test: robotests
2018-09-20 09:50:54 +08:00
Naina Nalluri
6398841434 Developer option to enable CBRS
Add new developer option to enable
or disable CBRS Data

Bug: 113278158
Test: On device
Change-Id: I667a7c90b0bb7e9e0c70f41b28d376c9170e65d9
2018-09-19 17:58:30 -07:00
Lei Yu
aec9fb243d Merge "Fix incorrect API invoke for BT profiles" 2018-09-20 00:13:55 +00:00
TreeHugger Robot
a918e57e82 Merge "Add Settings Search Regression test" 2018-09-19 23:41:43 +00:00
Fan Zhang
d9e1871fde Don't persist device index job across reboot
Change-Id: I9bd25c7f266dded730918ec517e842c2b6ee9b1a
Fixes: 115930605
Test: manual
2018-09-19 16:08:56 -07:00
TreeHugger Robot
6a74a151fd Merge "Add checks before casting entry.extraInfo." 2018-09-19 21:45:44 +00:00
Philip P. Moltmann
1b987511c1 Do not show restricted icon by default
I made it visible by default by accident.

Test: Looked at  Settings > Security & locations > Screen pinning
Change-Id: I8ff6dc72e292ba76550edaeeac4d53ef4bd39505
Fixes: 116109852
2018-09-19 13:45:40 -07:00
TreeHugger Robot
7686eb4f85 Merge "Reset all notification settings on clear app prefs" 2018-09-19 19:51:56 +00:00
Julia Reynolds
ca34a28089 Make the volume slider height 48dp
Change-Id: Ia5852d61adc4bd582e7b0e75f61a05ae3a53ae04
Fixes: 114149194
Test: manual
2018-09-19 19:45:02 +00:00
Julia Reynolds
56966ce8f5 Add checks before casting entry.extraInfo.
Test: make, flash
Change-Id: I1a9d6a51b1f236e711fdb49d9c2f795e7023cfce
Fixes: 113309404
2018-09-19 15:43:08 -04:00
Julia Reynolds
d5ddae8fc4 Reset all notification settings on clear app prefs
Not just the app level 'are these notifications blocked?'
field.

Test: manual
Change-Id: Id77366d0d71e1f0d2507f1a30123d61aa11db252
Fixes: 65476259
2018-09-19 12:18:13 -04:00
Bill Yi
11bf617aa9 Merge "Import translations. DO NOT MERGE" 2018-09-19 15:34:10 +00:00
TreeHugger Robot
186213d70f Merge "Add policy transparency to disallow remove user." 2018-09-19 09:44:24 +00:00
Jonathan Scott
ba3b68686d Add policy transparency to disallow remove user.
On the Settings > System -> Multiple users screen, ensures that the"Delete from this device" menu is always available, but is disabled and includes policy information when DISABLE_REMOVE_USER is set.

Change-Id: Ia6c6cfb360f35a6e447bf9d85d2472ac11dde1ac
Fix: 113807450
Test: m ROBOTEST_FILTER=UserSettingsTest -j40 RunSettingsRoboTests; CTS Verifier Device Owner Tests/Policy transparency test/Disallow remove user.
2018-09-19 09:32:35 +01:00
Matthew Fritze
11fa37ebb4 Add Settings Search Regression test
Take a snapshot of the currently available search results, and
verify that search results aren't accidentally removed.

We use 4 items to identify a search result:
- Title
- Data Key
- Slice Uri

We use Title & Key to identify the search result, since they should not change.
The Slice Uri is used to make sure we don't regress on Slice Availability.

Test: runtest --path packages/apps/Settings/tests/unit/src/com/android/settings/search/SettingsSearchResultRegressionTest.java
Change-Id: I22498229bbcd1e90c9e0a026af9df4367a98190a
2018-09-18 16:42:22 -07:00
jackqdyulei
1bf730093c Fix incorrect API invoke for BT profiles
When hearing aid device has been set active, we shouldn't invoke
1. a2dpProfile.setActiveDevice()
2. hfpProfile.setActiveDevice()

Change-Id: Ie13dea041dd98d0cb9d913e1f28574b300095db9
Fixes: 113625278
Test: RunSettingsRoboTests
2018-09-18 15:19:32 -07:00
jackqdyulei
5b7fc8f3a5 Fix null pointer crash in BT renaming dialog
The dialog may become null after onDestroy has been invoked, so
we need to catch this case.

This CL also moves the listener outside to make it easy to test.

Change-Id: I4ce640c5bdaf1f201f9fecb14b3e5e38e10d4b79
Fixes: 115679393
Test: RunSettingsRoboTests
2018-09-18 14:41:37 -07:00
Bill Yi
e3f94f6926 Import translations. DO NOT MERGE
Change-Id: Ib3aeafee3272f1adf99daac0b15f8dff71867ec3
Auto-generated-cl: translation import
2018-09-18 13:36:56 -07:00
TreeHugger Robot
8347db2458 Merge "Move hasReadyMobileRadio() to DataUsageUtils." 2018-09-18 19:41:41 +00:00
TreeHugger Robot
6fa4dfedd1 Merge "Fix Homepage wrong color in dark theme" 2018-09-18 18:26:47 +00:00
Doris Ling
f7b8505948 Move hasReadyMobileRadio() to DataUsageUtils.
- move the method from DataUsageList to DataUsageUtils where other
utility methods are.

Bug: 111751694
Test: make RunSettingsRoboTests
Change-Id: If7176cb4278d568f890a0c94437c4483bbd472f9
2018-09-18 11:21:59 -07:00
Philip P. Moltmann
b009e89e4f Merge "Make Settings use system-api restricted icon." 2018-09-18 15:27:36 +00:00
TreeHugger Robot
be04ed9e31 Merge "Import translations. DO NOT MERGE" 2018-09-18 02:58:01 +00:00
Mill Chen
cbe56e8b6e Merge "Add a rule to keep classes that implements CustomSliceable" 2018-09-18 00:53:31 +00:00
TreeHugger Robot
134e24d171 Merge "Fix inconsistent icon size in app list." 2018-09-18 00:42:16 +00:00
Doris Ling
ff33e9bc13 Merge "Use the new network stats loader to get usage data for all apps." 2018-09-17 23:55:03 +00:00
Bill Yi
dcc8230713 Import translations. DO NOT MERGE
Change-Id: Idacabf81cf4dae12f8a9f0174a13901088a3a5d1
Auto-generated-cl: translation import
2018-09-17 16:51:13 -07:00
Raff Tsai
0a39e43316 Fix Homepage wrong color in dark theme
Change-Id: Id22f8baff0b97c0e7081fb8c68241bc8d0d01a45
Fixes: 113964702
Fixes: 115789360
Test: manual
2018-09-18 07:14:57 +08:00
Fan Zhang
e5109ce28c Fix inconsistent icon size in app list.
Some app icons are really small. This is technically a bug in app, but
not handling it well makes settings UI look strange.

So in addition to setting a max size app icon can use, we just set that
as a only supported size (min == max == 36dp)

Change-Id: I4b3a1b83ab67be469ac74e7d4bb382ae855624d0
Fixes: 115788294
Test: visual
2018-09-17 16:06:23 -07:00
Philip P. Moltmann
a5918a6a68 Make Settings use system-api restricted icon.
Test: Browsed around settings
Bug: 110953302
Change-Id: I1b19be721719ed8946cb558b93119b1b0e173794
2018-09-17 15:48:31 -07:00