Commit Graph

47056 Commits

Author SHA1 Message Date
Kevin Chyn
871e55fc54 Move Fingerprint settings to biometrics/fingerprint
Bug: 110589286

Test: make -j56 RunSettingsRoboTests
Test: adb shell am start -a android.settings.FINGERPRINT_ENROLL still works
Test: adb shell am start -a android.settings.FINGERPRINT_SETUP still works
Change-Id: If33b557137cae7b57e4a0e906ee95032bc589436
2018-06-25 16:51:16 -07:00
Kevin Chyn
fde790bf2c Update Fingerprint references in Settings
Bug: 110387294

Test: builds
Change-Id: Iac9647949b7e51229cc0bb391ee83a641e0bfcdc
2018-06-25 16:17:24 -07:00
Doris Ling
30692040be Set default display timeout if current value is disabled by admin.
- The display timeout dialog will only show values that are allowed by the
admin. If the current display time out is greater than the max timeout set by
admin, it becomes an invalid selection. In this case, instead of not
selecting anything, set the default to the last available item.
- move TimeoutListPreference into display package.

Change-Id: I6c88f72ff2b0afe8605800074fd4626bbb16bee0
Fixes: 110104437
Test: make RunSettingsRoboTests
2018-06-25 13:44:00 -07:00
TreeHugger Robot
4d4e6ab87a Merge "Add a metadata to control whether an external intent should be opened in the personal profile when in a managed profile." 2018-06-25 16:18:52 +00:00
Beverly Tai
dc4acf2bb5 Merge "Enable and add logging to ManageApplications" 2018-06-25 14:03:28 +00:00
arangelov
b6852d7828 Add a metadata to control whether an external intent should be opened in
the personal profile when in a managed profile.

This change introduces the com.android.settings.profile metadata with possible values "primary_profile_only" and "all_profiles" (the default
value when not specified). If an application declares this metadata with a value of "primary_profile_only", in a work profile the ProfileSelectDialog is never shown and the application is opened straight in the personal profile. If an application specifies a value of "all_profiles" or does not specify anything, the ProfileSelectDialog is shown to the user.

Bug: 79868199
Test: atest packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/DashboardFeatureProviderImplTest.java#openTileIntent_profileSelectionDialog_shouldShow
Test: atest packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/DashboardFeatureProviderImplTest.java#openTileIntent_profileSelectionDialog_explicitMetadataShouldShow
Test: atest packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/DashboardFeatureProviderImplTest.java#openTileIntent_profileSelectionDialog_shouldNotShow
Change-Id: Id62ab44b58b93c479407cc1bacc7a806a09bfd1b
2018-06-25 14:40:22 +01:00
Fan Zhang
5a98177563 Sort widgets list based on intent-filter priority.
- Sort based on priority, also group them in PreferenceCategory. So
category is divided by horizontal lines.

- Also removed a bunch of intent-filter for VOICE_LAUNCH. I don't think
we support them any more. If we see bugs, can easily put them back.

Change-Id: I286a6bdf8b3c2eb716a36c6a061fc54a8010d8f6
Fixes: 74806595
Test: manual
2018-06-22 14:56:10 -07:00
Peiyong Lin
948a028690 Merge "Rename Automatic color to Adaptive color" into pi-dev am: f32310a7e6
am: 9b32ed2585

Change-Id: I723a9d1d04cfb696e325427030f0fff13394345d
2018-06-22 14:21:24 -07:00
TreeHugger Robot
5988f37c90 Merge "Convert CreateShortcut to DashboardFragment" 2018-06-22 21:19:15 +00:00
Peiyong Lin
9b32ed2585 Merge "Rename Automatic color to Adaptive color" into pi-dev
am: f32310a7e6

Change-Id: I58c8322796905bc7ed589c3153c9de65598f268f
2018-06-22 14:13:22 -07:00
Peiyong Lin
f32310a7e6 Merge "Rename Automatic color to Adaptive color" into pi-dev 2018-06-22 21:08:37 +00:00
Beverly
b3ba0ac11f Enable and add logging to ManageApplications
Bug: 77541894
Test: n/a
Change-Id: Ia6a26c97aa4cb7d81987a291d4b568e89087959b
2018-06-22 16:34:05 -04:00
Chia-I Wu
7ccb3bb4df Rename Automatic color to Adaptive color
Rename the new mode (only available on 2018 devices) from Automatic to Adaptive.


Bug: 110524699
Test: manual
Change-Id: I56e87ad11a94915155cff56a6a13a9e167383e0c
2018-06-22 18:57:40 +00:00
TreeHugger Robot
9c842b14bc Merge "Fix crash of Connected Devices page" 2018-06-22 18:31:52 +00:00
Fan Zhang
f1f0f8bea6 Convert CreateShortcut to DashboardFragment
Created a new xml and CreateShortcutPreferenceController to deal with
querying package manager and display list on UI.

Bug: 74806595
Test: robotests
Change-Id: I0945245c3856d12b7751d26fca324d2dbf31b230
2018-06-22 11:30:56 -07:00
TreeHugger Robot
1693bc9d71 Merge "Add TogglePrefController for Color Invert" 2018-06-22 17:00:52 +00:00
Ivan Chiang
06036361e5 Fix crash of Connected Devices page
Doesn't set the preference context for savedDockUpdater.
We will throw IllegalStateException now.

Change-Id: I684cd2a917ce94e033be578349c3cc1d8650ccea
Fix: 110609074
Test: m -j SettingsRoboTests RunSettingsRoboTests
2018-06-22 13:01:07 +08:00
hjchangliao
bc64434365 Add TogglePrefController for Color Invert
Add ColorInversionPreferenceController,
and remove old control code in fragment.

Change-Id: I773e5aa2d6c9bf6b5140be45ee60567a7ed22318
Fixes: 67997748
Test: make RunSettingsRoboTests
2018-06-22 10:03:25 +08:00
Fan Zhang
2f4355aa66 Misc cleanup on AndroidManifest.xml
- Add a few activities to widget list. These are more commonly
  used settings, so adding them to widget list for easier access.
  - Storage
  - System
  - About phone

- Remove useless intent-filters from AndroidManifest.
  - If the intent-filter is just action MAIN and category DEFAULT, it
   doesn't do anything.

Bug: 74806595
Test: visual
Change-Id: I5d80bc6c88f7bf60adabac872e92b72b341b97e6
2018-06-21 16:57:41 -07:00
Fan Zhang
67e501c8d2 Remove misc setting widgets:
- tether
- memory
- screen saver

Bug: 74806595
Test: manual
Change-Id: I9ceccad69b01c1bc761b24adf3897b900223f8c4
2018-06-21 16:12:49 -07:00
TreeHugger Robot
f25823895b Merge "Task affinity updates" 2018-06-21 23:09:16 +00:00
Salvador Martinez
d97ced5e3d Merge "Add unofficial intent for WifiTetherSettings" into pi-dev am: ce58bf2ee9
am: 4dc79faefb

Change-Id: I39ceae08df3e44fc2a732909ca2707e46fb1b7ca
2018-06-21 15:45:16 -07:00
Evan Laird
2da76e4e0a Merge "Allow config to disable battery percent setting" into pi-dev am: 1f6c7910fb
am: 77e399335e

Change-Id: I58fa0d9772c01798ada18416bebc7fdd78bd245f
2018-06-21 15:29:56 -07:00
Fan Zhang
c904c8e7d7 Task affinity updates
- Remove task affinity for AppDrawOver Settings
- Remove task affinity for ConfigNotificationSettings

The task affinity is messing with the back stack for this activity when
launched externally

Change-Id: I596090d0615cebd04ee9eb56e06ba2761859a52d
Fixes: 80281932
Fixes: 80290571
Test: manual
2018-06-21 15:25:16 -07:00
Salvador Martinez
4dc79faefb Merge "Add unofficial intent for WifiTetherSettings" into pi-dev
am: ce58bf2ee9

Change-Id: I4874f7186a45a6d2792e42b708467010e3960db6
2018-06-21 15:25:13 -07:00
Salvador Martinez
ce58bf2ee9 Merge "Add unofficial intent for WifiTetherSettings" into pi-dev 2018-06-21 22:21:20 +00:00
Evan Laird
77e399335e Merge "Allow config to disable battery percent setting" into pi-dev
am: 1f6c7910fb

Change-Id: Ief7df5312104e44bda140f68dd5e6821c2736bbf
2018-06-21 14:58:14 -07:00
TreeHugger Robot
1f6c7910fb Merge "Allow config to disable battery percent setting" into pi-dev 2018-06-21 21:18:36 +00:00
Bill Yi
1d540a32b6 [automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev am: e5c1ff17ac -s ours
am: 626972bada  -s ours

Change-Id: I424e4a62ce7db132b2c30877a13db1f092083297
2018-06-21 12:40:57 -07:00
Bill Yi
626972bada [automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev
am: e5c1ff17ac  -s ours

Change-Id: If83968942476f9a142aa11b04f3437e52066ec88
2018-06-21 12:35:46 -07:00
TreeHugger Robot
e5c1ff17ac Merge "Import translations. DO NOT MERGE" into pi-dev 2018-06-21 19:26:04 +00:00
TreeHugger Robot
869daffb61 Merge "Do not stop wallpaper chooser activity" 2018-06-21 19:24:32 +00:00
Bill Yi
47baa07ba6 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ieb6af16365681984ceafb048d338d8132df0e3bc
2018-06-21 11:31:13 -07:00
TreeHugger Robot
f7a6b5cbfb Merge "Disable the usage summary when there's no usage data." 2018-06-21 18:26:23 +00:00
Fan Zhang
ec40f41e4c Do not stop wallpaper chooser activity
When choosing wallpaper type, do not finish the activity so we can
maintain a consistent back stack.

Change-Id: I690f4482716c6eaeb0a31605fbdf0a2525be0a15
Fixes: 80554423
Test: robotests
2018-06-21 11:11:47 -07:00
Fan Zhang
7431c91de6 Remove search indexing pipeline from Settings
Index is already handled by SettingsIntelligenec. No longer needed in
Settings.

Change-Id: Id43fb3100dc2759185744441cff8cb9cd2d2da20
Fixes: 69808376
Test: robotests
2018-06-21 09:38:36 -07:00
Jong Wook Kim
d2ba8871b9 Display "Unavailable" when received default MAC
Display "Unavailable" instead of "02:00:00:00:00:00" when the current
MAC address is "02:00:00:00:00:00" which indicates that we couldn't get
the actual device MAC address.

Bug: 110043449
Test: unittest (make RunSettingsRoboTests
ROBOTEST_FILTER=WifiInfoPreferenceControllerTest)
Change-Id: Iac9f81d144fd4c93ac12adaa80e1a55b19a6e186
2018-06-21 16:24:37 +00:00
TreeHugger Robot
8691fed1cb Merge "Add NPE check when showing error dialog." 2018-06-21 15:15:26 +00:00
Ivan Chiang
2da4bf20b6 [automerger skipped] Merge "DO NOT MERGE Revert "DO NOT MERGE Revert "Fix gray out previously connected device preference issue""" into pi-dev am: 44505ef8cd
am: 8a0a3196fc  -s ours

Change-Id: Ia8c92a1817b3cbf379fbe799869a7e3e4ca3aa5a
2018-06-20 23:04:32 -07:00
Ivan Chiang
8a0a3196fc Merge "DO NOT MERGE Revert "DO NOT MERGE Revert "Fix gray out previously connected device preference issue""" into pi-dev
am: 44505ef8cd

Change-Id: I39adc9974b57830940b983bc7d378359de0505fd
2018-06-20 21:05:45 -07:00
TreeHugger Robot
44505ef8cd Merge "DO NOT MERGE Revert "DO NOT MERGE Revert "Fix gray out previously connected device preference issue""" into pi-dev 2018-06-21 02:30:43 +00:00
hughchen
c7ffef698b Add NPE check when showing error dialog.
Add NPE check when showing error dialog

Bug: 110263996
Test: make -j42 RunSettingsRoboTests ROBOTEST_FILTER=UtilsTest
Change-Id: I93d6c662ea7031a631ac8c2c33cacc974677c3d7
2018-06-21 10:04:34 +08:00
Fan Zhang
a5f68f9c3c Keep methods from SearchIndexProvider
Bug: 110403709
Test: rebuild
Change-Id: Iae39d0a50337c60f732fa54c61f4ff5982fcbd8e
2018-06-20 15:34:43 -07:00
Doris Ling
73b6e19968 Disable the usage summary when there's no usage data.
- when the preference is initialized, check for the network's overall
total usage. If there is no data available, disable launching the detail
page.

Change-Id: Ie81a5471de134bac63dedd3c39f4afe44201efe5
Fixes: 74451774
Fixes: 35855928
Test: make RunSettingsRoboTests
2018-06-20 15:26:43 -07:00
TreeHugger Robot
e29dd30c74 Merge "Remove unused shadow" 2018-06-20 18:17:53 +00:00
TreeHugger Robot
0a0551cb4d Merge "Update PBAP info for all pairing dialogs." 2018-06-20 16:55:40 +00:00
Salvador Martinez
bb3337100c Add unofficial intent for WifiTetherSettings
This CL adds an intent that can be used to start
WifiTether Settings.

Test: SettingsGatewayTest still passes
Bug: 110235497
Bug: 80251951
Change-Id: Iac94e563a91b1f821f69f18234d8176350ae5f29
2018-06-20 09:17:08 -07:00
jackqdyulei
7015e20a55 Update PBAP info for all pairing dialogs.
This is a bug from ag/4210612, in which it only update PBAP info
for USER_ENTRY_DIALOG. So in other kind of dialogs it never upload
correct PBAP info to bluetooth backend.

This CL fix it by updating PBAP for all dialogs.

Change-Id: Ia39eee1acaece555e8e5a305ec2c803294d7efbd
Fixes: 109842273
Test: RunSettingsRoboTests
2018-06-19 17:23:32 -07:00
Fan Zhang
3739508a75 Remove unused shadow
Bug: 110403709
Test: robotests
Change-Id: Ic653308e500df33399e091c70a98a8cc594baeeb
2018-06-19 16:42:54 -07:00
Daichi Ueura
9e7bbaec9a Merge "Show Wifi 'Off' status properly just after boot" am: 23482a54bb am: 01dfcc4ea9
am: bc77a7503d

Change-Id: Ia8572a2d8a0c73bb2fcdbfcc9c833ec8bc13d381
2018-06-19 15:46:45 -07:00