Commit Graph

58516 Commits

Author SHA1 Message Date
Menghan Li
a85a145686 Merge "Fix "Cannot get activity context when service off"." 2020-02-03 09:28:15 +00:00
Bonian Chen
6a6b416c3d [Settings] Remove dependency of TelephonyIntents
Remove the dependency of TelephonyIntents,
but monitoring the change of default data subscription and
PhoneStateListener.

Bug: 147101086
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=ContextualCardManagerTest
Change-Id: I140640c1eed645614e6ed05b24389f6fba36eb76
2020-02-03 17:16:54 +08:00
TreeHugger Robot
6068d12752 Merge "Use feature flag to show/hide AllInOneTetherSettings" 2020-02-03 08:32:29 +00:00
menghanli
8e881181a8 Fix "Cannot get activity context when service off".
1. Unify getPrefContext() usage in Accessibility Settings
2. Correct the dialog emuns order

Test: local test
Change-Id: Idc51f7b15b5813bbae7b32e1ae3c7f00c71cea50
2020-02-03 07:13:31 +00:00
Zhen Zhang
36c3446b28 Merge "Add a feature flag for the new tether settings UI" 2020-02-03 06:44:43 +00:00
Bonian Chen
319cc7bc1c [Settings] Add ImsQueryProvisioningStat for VT
1. Code refactor
2. Add ImsQueryProvisioningStat class for VT's use case

Bug: 140542283
Test: m RunSettingsRoboTests -j ROBOTEST_FILTER=VideoCallingPreferenceControllerTest
Change-Id: I40ec5df00d02e71cb8ae78d4f81c71c5e354515a
2020-02-03 14:26:11 +08:00
timhypeng
6fc2f84a4e Apply RichInputRangeBuilder
-Add volume control
-Add test case

Bug: 146813957
Test: make -j42 RunSettingsRoboTests
Change-Id: I250b8447ed133212b6325eff5122ca39069c99d9
2020-02-03 14:17:05 +08:00
hughchen
043e43f059 Listed order on "previously connected" depend on recently connected devices
This CL use Bluetooth api "getMostRecentlyConnectedDevices()" to get
recently connected devices list. Let "previously connected" will list
most recently connected device on the top.

Bug: 130984590
Test: make -j42 RunSettingsRoboTests
Change-Id: I8d425b6da6cb9fe9fd1417937b4cb9a052cd1660
2020-02-03 14:08:12 +08:00
Sunny Shao
9013d8033f Add ContentObserver to RedactNotificationPreferenceController
- Monitor the LOCK_SCREEN_SHOW_NOTIFICATIONS to decide the enabled/disabled status.

Fixes: 134055112
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.notification
Change-Id: I7c7edbe13f47638df69f31d15d863c2088a5774f
2020-02-03 13:10:52 +08:00
Bill Yi
8aee2d2c95 Merge "Import translations. DO NOT MERGE" 2020-02-03 04:59:28 +00:00
TreeHugger Robot
07c1cdb77e Merge "Change test case name" 2020-02-03 02:00:46 +00:00
Raff Tsai
80d9fcbf1b Change test case name
Bug: 145109184
Test: atest :postsubmit
Change-Id: I0847d1dea352d0e3b87b1bb95d5c2600a80a7438
2020-02-03 01:03:46 +00:00
Bill Yi
8af4bafe50 Import translations. DO NOT MERGE
Change-Id: I704d9b680be4533abcfa145dd6b70f5add7f882b
Auto-generated-cl: translation import
2020-02-02 06:55:57 -08:00
menghanli
b82931520f Support accessibility shortcut secondary action (11/n)
Refactor current shortcut design to base fragment and provide
protected function to customize the legacy design,
magnification or no need shortcut app.

Bug: 142530063
Bug: 142531156
Test: make RunSettingsRoboTests2

Change-Id: I51c951ef8f819a1940ddfe33b009b40ed5ec0530
2020-02-02 10:51:44 +08:00
Goven Liu
d737601a66 Merge "[Wi-Fi] Settings panel WIFI_ADD_NETWORKS requires CHANGE_WIFI_STATE permission" 2020-02-01 08:57:40 +00:00
TreeHugger Robot
d4f33b1e26 Merge "Mainline remove hide api SubscriptionInfo.getCardString" 2020-02-01 06:45:02 +00:00
TreeHugger Robot
23331b2983 Merge "[Wi-Fi] Hide Connect button when passpoint is expired" 2020-02-01 05:27:04 +00:00
TreeHugger Robot
b7f0145c02 Merge changes I8194476e,I9d21909f
* changes:
  [Wi-Fi] Fix some test failures of com.android.settings.wifi.details2
  [Wi-Fi] Remove passpoint methods in WifiEntryShell
2020-02-01 05:24:09 +00:00
Bonian Chen
86272795f3 Merge "[Settings] Avoid non-owner from crash mobile data settings" 2020-02-01 05:00:03 +00:00
Automerger Merge Worker
de86f9c950 Merge "Tidy up libcore.timezone APIs" am: 45834d96a8 am: 35ffa52384 am: 798407a441
Change-Id: I486df8f44bcd67baf933853145f7617cf6b0e891
2020-01-31 16:32:04 +00:00
Automerger Merge Worker
798407a441 Merge "Tidy up libcore.timezone APIs" am: 45834d96a8 am: 35ffa52384
Change-Id: I87f4ca96ef592c459c96f12906a86889367bfe7e
2020-01-31 16:30:07 +00:00
Automerger Merge Worker
35ffa52384 Merge "Tidy up libcore.timezone APIs" am: 45834d96a8
Change-Id: I3222600a7fa1d37b7d8e16115ec067d415f2bdba
2020-01-31 16:29:11 +00:00
Automerger Merge Worker
04232f619b [automerger skipped] Merge "access system resources with android.R package" am: ef77c1d67f am: 49cd1555f3 am: bcf3f23b67 -s ours
am skip reason: Change-Id Idc10955639bce7b8e579c50af78056389d44d492 with SHA-1 740d67320a is in history

Change-Id: Ie627993aa388b1bd2f1bc7ff3ad0907c20c6a944
2020-01-31 16:05:18 +00:00
Automerger Merge Worker
bcf3f23b67 Merge "access system resources with android.R package" am: ef77c1d67f am: 49cd1555f3
Change-Id: Idcb5041776ed072a871bc037df143450c92d458c
2020-01-31 16:00:33 +00:00
Automerger Merge Worker
49cd1555f3 Merge "access system resources with android.R package" am: ef77c1d67f
Change-Id: I663f693f498e3566deb37f6175fc0bb214264118
2020-01-31 15:55:52 +00:00
SongFerngWang
5189dc3860 Mainline remove hide api SubscriptionInfo.getCardString
Bug: 147128878
Test: build pass
Change-Id: Idb44af6a01626013339f5ca05486dd11112a5867
2020-01-31 18:48:09 +08:00
Bonian Chen
7bf8fb5c85 Merge "[Settings] Replace ImsDirectQuery" 2020-01-31 09:56:56 +00:00
Alex Johnston
5c39238a5a Merge "Prevent location for the work profile from being enabled" 2020-01-31 09:49:17 +00:00
Arc Wang
e16ce3dcea [Wi-Fi] Hide Connect button when passpoint is expired
If the passpoint is connected and expired, we still show
Disconnect button.

Bug: 148317997
Test: manual
      Observe a connected passpoint and see Disconnect button.
      Observe a disconnect passpoint and see no Connect button.
      Should add test case in WifiDetailPreferenceController2Test
      at later CL.

Change-Id: I07f22804eccce80c44ac709412cb594faaf6ccb0
2020-01-31 17:06:29 +08:00
Arc Wang
41ff138c21 [Wi-Fi] Fix some test failures of com.android.settings.wifi.details2
WifiMeteredPreferenceController2 always has a non null mWifiEntry, remove redundant test case
testController_resilientToNullConfig

Bug: 146479774
Test: make RunSettingsRoboTests ROBOTEST_FILTER=com.android.settings.wifi.details2
Change-Id: I8194476ea0f337e63b29ff73e9071f6df65d13af
2020-01-31 15:23:51 +08:00
Arc Wang
f591fe0901 [Wi-Fi] Remove passpoint methods in WifiEntryShell
Bug: 143326832
Test: build
Change-Id: I9d21909f18df03d50f69447c3f2014b75ecd2d8b
2020-01-31 15:19:35 +08:00
Raff Tsai
a266657423 Add dummy performance test
Bug: 145109184
Test: atest --test-mapping src_path:postsubmit
Change-Id: I7db174942247acd20c94afd7763ec73242a5e44b
2020-01-31 14:59:59 +08:00
govenliu
66dd758299 [Wi-Fi] Settings panel WIFI_ADD_NETWORKS requires CHANGE_WIFI_STATE permission
Since we had dialog to get the approval from user about adding or updating networks, don't need to have permission to limit suggester APP.

Bug: 148491787
Test: NA, just remove the permission check in Androidmanifest.
Change-Id: If9023e5c2d69b6393f04e16285ac60017b9bf519
2020-01-31 12:53:30 +08:00
David Su
fa6e9f7283 Rename WifiConfiguration.getHasEverConnected()
Renamed to hasEverConnected() to conform to API
guidelines.

Bug: 146046526
Test: make RunSettingsRoboTests -j40
Change-Id: Ie88945326977ea11a05721e40a81c338fee61cb6
2020-01-30 20:36:30 -08:00
TreeHugger Robot
56743aa5cc Merge "Migrate to SettingsStatsLog from StatsLog" 2020-01-31 01:11:41 +00:00
TreeHugger Robot
1608f9da49 Merge "Support metered choice for subscription WifiEntries" 2020-01-31 00:23:13 +00:00
Zhen Zhang
d2a7f9ae79 Use feature flag to show/hide AllInOneTetherSettings
This partially reverts commit 0ccc849de7
which added a config value. Instead, we will use feature flag to switch
between the fragments.

This CL also adds a postfix to keys in all_tether_prefs to
de-duplicate with keys in tether_prefs and wifi_tether_settings.

Bug: 148182953
Change-Id: I92832c786473990065a965409072e4117a7e75a8
Fix: 148618984
Test: make RunSettingsRoboTests
Test: make RunSettingsRoboTests ROBOTEST_FILTER=CodeInspectionTest
2020-01-30 16:01:42 -08:00
TreeHugger Robot
343c48dc41 Merge "Import translations. DO NOT MERGE" 2020-01-30 22:02:46 +00:00
Automerger Merge Worker
2cbb18d173 [automerger skipped] Import translations. DO NOT MERGE am: cc3531906a -s ours am: 780b99ee08 -s ours
am skip reason: subject contains skip directive

Change-Id: If7b39f0e344c7e1dbbae303c186ddd11b1cbce37
2020-01-30 19:58:46 +00:00
Automerger Merge Worker
780b99ee08 [automerger skipped] Import translations. DO NOT MERGE am: cc3531906a -s ours
am skip reason: subject contains skip directive

Change-Id: I7a318b99ebceff2b42d6f11931fbbfa268049cc3
2020-01-30 19:42:22 +00:00
David Su
59ab4ce478 Settings: remove usage of WifiConfig helper methods
These methods can be replaced with methods on
IpConfiguration itself. There is no need to expose
these as a @SystemApi, and they are being removed.

Bug: 146046526
Test: make RunSettingsRoboTests -j40
Change-Id: I592f277f5e23bf58e76b8c48a0f0370d53cc6b81
2020-01-30 10:53:48 -08:00
David Su
eb21975e89 Merge "Rename removeDoubleQuotes to sanitizeSsid" 2020-01-30 18:16:57 +00:00
David Su
5676b6fe36 Merge "Migrate WifiManager.isDualModeSupported() to isStaApConcurrencySupported()" 2020-01-30 17:42:41 +00:00
Quang Luong
a59bc1c0f5 Support metered choice for subscription WifiEntries
Add a check for subscription WifiEntries so they can also set their
metered overrides.

Test: manual
Bug: 70983952
Change-Id: Icd45f416e47251f914aa803d5190566746fb9779
2020-01-30 09:07:48 -08:00
Alex Johnston
1867db33c9 Prevent location for the work profile from being enabled
* Previously the user could still enable location for the work profile
  even after enabling DISALLOW_CONFIG_LOCATION. This was because the
  LocationForWorkPreferenceController checked whether the base restriction
  was set and whether the restriction was enforced by the admin in the
  same condition.
* This was fixed by giving the admin precedence and moving the check for
  the base restriction to only be checked if the admin has not enforced
  the DISALLOW_CONFIG_LOCATION or DISALLOW_SHARING_LOCATION restriction.

Bug: 147758996
Test: Manual testing with Settings and TestDPC
      atest com.android.settings.location.LocationForWorkPreferenceControllerTest

Change-Id: Ide341f2dab4f59f26ffa0c929ba412d61b6ebf1a
2020-01-30 16:59:33 +00:00
Bonian Chen
eb2b87aa39 [Settings] Avoid non-owner from crash mobile data settings
Some instance not been initialized under non-owner user mode.

Bug: 146562321
Test: manual
Change-Id: I4f8ac955754cbd8692727a1d0adf283ef3ff512c
2020-01-31 00:33:11 +08:00
Alex Johnston
403c330135 Update work profile app lock to latest spec
* Updated text and description for PIN, password and pattern
* Added enterprise logo to work profile lock

Bug: 141290838
Test: Manual testing
      atest com.android.systemui.biometrics.AuthBiometricViewTest
      atest com.android.systemui.biometrics.AuthContainerViewTest

Change-Id: Iac6c9ca15e7446cbd7cce9fc1a1ac4e1c867bf31
2020-01-30 14:49:39 +00:00
Neil Fuller
45834d96a8 Merge "Tidy up libcore.timezone APIs" 2020-01-30 11:25:35 +00:00
Benedict Wong
bcd6b8cbca Add Platform VPNs to VPN list
This change allows the Settings VPN pages to pull the apps providing a
new Platform VPN.

Bug: 144246835
Test: Compiles, manual testing
Change-Id: Ibb7e79ccde754724c9fc00c88da98e975f325ba7
2020-01-30 01:46:19 -08:00
Bill Yi
26662f181e Import translations. DO NOT MERGE
Change-Id: I7d8f232967302ae88068db81bfffb407a03fdd54
Auto-generated-cl: translation import
2020-01-29 23:49:56 -08:00