Commit Graph

47034 Commits

Author SHA1 Message Date
Kevin Chyn
0b95687f59 3/n: Remove all faces when Pin/Pattern/Pass is removed
Bug: 110589286

Test: set up fingerprint + pass, change lock screen to swipe
      no regression, fingerprints are all removed, activity is finished()

Change-Id: Ie5e586b2f9d2c982d929e5c5b80911897889e7a4
2018-06-29 18:19:34 -07:00
Kevin Chyn
81dc0295d7 2/n: Add face to ChooseLock*
Bug: 110589286

Test: manual
Test: make -j56 RunSettingsRoboTests
Test: setting up new fingerprint still works
Change-Id: I1b7d2bb6bb417dae2c99e5abeb68d3f694cb3cb8
2018-06-29 18:19:34 -07:00
Kevin Chyn
4882e875ae 1/n Start adding Face settings (base, intro)
This change refactors common biometric settings code as well to minimize
duplicated code in areas such as:
    Preference Controller
    EnrollBase
    EnrollIntro

This change also updates ChooseLock to have Face + Pin/Pattern/Pass

Bug: 110589286

Test: Fingerprint settings/enrollment still works
Test: make -j56 RunSettingsRoboTests
Change-Id: Ie35406a01b85617423beece42683ac086e9bc4a7
2018-06-29 18:19:34 -07:00
Hall Liu
02c5f3c7ac Fix usage of SubscriptionInfo ctor
Use string arguments instead of ints for mcc/mnc

Bug: 35064313
Test: manual, unit
Change-Id: Ib460d6294d8fb86de7c2fee065defb0a890af15a
2018-06-29 17:09:52 -07:00
Doris Ling
8700777839 Fix continous playing of gesture animation video.
In the gesture settings, we listen to surface texture updates to
determine when both the view and video is ready, and we auto play the
animation video. However, sometimes, the video listener will receive
the surface texture updates after the settings activity is being paused,
in which case, the video will continue to play until the user navigate
back to that gesture settings page.

In onSurfaceTextureUpdated(), check for view visibility before we try to
update anything to avoid unnecessary operation.

Change-Id: I46474c9f461d5705f599deb8b2535d8505f2fe75
Bug: 110923173
Test: make RunSettingsRoboTests
2018-06-29 14:22:36 -07:00
Jeff Sharkey
4baf53228b Merge "Disable "internal" when adoption not possible." 2018-06-29 20:50:48 +00:00
Ivan Chiang
ca0101fe1f Add new widget SingleTargetGearPreference
Add the new widget SingleTargetGearPreference
with a gear on the side.

Bug: 110238502
Test: m -j SettingsRoboTests RunSettingsRoboTests
Change-Id: I7463e5b4fdd8bc86d0ab6cb930f0053ce0fa79fa
2018-06-29 16:06:28 +08:00
TreeHugger Robot
6acf0510fb Merge "Revert "First commit of dynamic home page feature"" 2018-06-29 01:24:49 +00:00
Lei Yu
457f6ef140 Revert "First commit of dynamic home page feature"
This reverts commit 3515bc7259.

Reason for revert: CLs in this topic break color check in repohook.

Bug: 110960820
Change-Id: I5934b6baf65515ebbc4e4660ed99747dd581f526
2018-06-29 00:21:14 +00:00
Lucas Dupin
a7ea18a6ce Move NightMode to Display settings
Test: manual
Test: make RunSettingsRoboTests ROBOTEST_FILTER=DarkUIPreferenceController
Bug: 110758454
Change-Id: Ie389a0e55eb39f2b43d4e9c0739ad3f61469d740
2018-06-28 14:16:17 -07:00
Lucas Dupin
c74969e7cc Revert "Setting to change sysui theme"
This reverts commit 74fde3ea31.

Reason for revert: CL was intended to be a workaround while we were still working on global theming.

Change-Id: I2c10971b9eab5382c1782c8d09c569edc35ea191
2018-06-28 13:50:13 -07:00
Jeff Sharkey
9a3bac25fd Disable "internal" when adoption not possible.
When adoption isn't possible, we shortcut to try formatting as
external, but that still results in a warning dialog that the user
could cancel away from and then manually pick "internal."

Bug: 110863258
Test: atest com.android.settings.ui.StorageWizardTest
Change-Id: I04645c3fce11a883c10996772d73440a0dcd51ec
2018-06-28 11:56:37 -06:00
TreeHugger Robot
969e5689d0 Merge "Add log and turn on debug flag" 2018-06-28 17:03:16 +00:00
hughchen
37dd4f1c71 Add log and turn on debug flag
Add log and turn on debug flag

Bug: 80161203
Test: make -j42 RunSettingsRoboTests
Change-Id: Ibd57f91b83c487ee71adb9e3de7ecfc5ea66bbef
2018-06-28 09:42:05 +00:00
Raff Tsai
b2e6654be4 Merge "First commit of dynamic home page feature" 2018-06-28 07:43:59 +00:00
TreeHugger Robot
5e07f74fa8 Merge "Fork SettingsDrawerActivity in Settings." 2018-06-28 06:38:17 +00:00
tmfang
d97fba5f0f Fork SettingsDrawerActivity in Settings.
Settings app uses fragment classes from android framework,
which is deprecated as of P.
We need to switch to use fragment and associated classes to androidx.

Because Settings didn't support drawer feature since Android O,
we rename SettingsDrawerActivity to SettingsBaseActivity.

Before we migrate to fragment of androix,
we need to let SettingsBaseActivity extend FragmentActivity.

Test: make RunSettingsRoboTests
Bug: 110259478
Change-Id: Ifbf53f75f042da1618da16cf7837b70d298a9a14
2018-06-28 13:38:16 +08:00
Fan Zhang
18322c3c52 [automerger skipped] Delete obsolete activity alias for dev settings am: 0e1393ae8c am: afbdbeb7d5 am: 192cc156b0 -s ours am: e9b64753e7 -s ours
am: 37f143d601  -s ours

Change-Id: Ie59e9639e1d231002a1348433d3cb6001f15532c
2018-06-27 22:10:22 -07:00
Fan Zhang
37f143d601 [automerger skipped] Delete obsolete activity alias for dev settings am: 0e1393ae8c am: afbdbeb7d5 am: 192cc156b0 -s ours
am: e9b64753e7  -s ours

Change-Id: Ida92ee646fe101c1c886fecc9351257435571d39
2018-06-27 22:07:14 -07:00
Fan Zhang
e9b64753e7 [automerger skipped] Delete obsolete activity alias for dev settings am: 0e1393ae8c am: afbdbeb7d5
am: 192cc156b0  -s ours

Change-Id: Ib02c4b16500eaf479106c2e70b02fdaa401141e7
2018-06-27 22:01:57 -07:00
Fan Zhang
192cc156b0 Delete obsolete activity alias for dev settings am: 0e1393ae8c
am: afbdbeb7d5

Change-Id: I0bbd3a65b7f1ab11e0f182ca4421c8c5911e6ad2
2018-06-27 21:56:41 -07:00
Fan Zhang
afbdbeb7d5 Delete obsolete activity alias for dev settings
am: 0e1393ae8c

Change-Id: I879550b9dda19f42aec9d5cecc4f66a5ad0c23e4
2018-06-27 21:53:33 -07:00
hughchen
34066fa21a Add error handle for device that not support Bluetooth
- Add LocalBluetoothManager null check for device that
  not support Bluetooth
- Add test to verify when LocalBluetoothManager is null
  will not crash

Bug: 110712414
Test: make -j42 RunSettingsRoboTests
Change-Id: Ib506a0206cfcfdfec60bdfcf9a1944338a7ab729
2018-06-28 11:57:36 +08:00
Raff Tsai
3515bc7259 First commit of dynamic home page feature
- Add SettingsHomepageActivity
- Add feature flag
- Use com.google.android.material_material library

Change-Id: I325be249f739d3b03dc2f0d722319f5771e2313b
2018-06-28 11:46:37 +08:00
Kevin Chyn
71de3025bd Merge "Move Fingerprint settings to biometrics/fingerprint" 2018-06-27 22:11:48 +00:00
Kevin Chyn
275beb25e9 Merge "Update Fingerprint references in Settings" 2018-06-27 22:09:01 +00:00
Jong Wook Kim
0861b53474 Merge "Display "Unavailable" when received default MAC" 2018-06-27 02:08:06 +00:00
TreeHugger Robot
ce287b9fb6 Merge "Set default display timeout if current value is disabled by admin." 2018-06-26 06:55:48 +00:00
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