Commit Graph

10151 Commits

Author SHA1 Message Date
Automerger Merge Worker
1cb6b91c7f Merge "Update api name" am: f82f807e03 am: c36a071238
Change-Id: I4f69bebb7f926588dd326061d030982d324b9b9b
2020-01-20 04:41:30 +00:00
timhypeng
c7edfa75de Fix robo test build error
- add atLeastOnce() because method would be called when init()

Bug: 147856265
Test: make -j42 RunSettingsRoboTests
Change-Id: I0bfe524caa674f7fe5895e3e30c8621b3c610bfc
2020-01-20 12:38:33 +08:00
hughchen
c36a071238 Merge "Update api name"
am: f82f807e03

Change-Id: I20240365a45eb27bcfed019ac77e4e6bfe09d24d
2020-01-19 20:25:49 -08:00
TreeHugger Robot
07416f4bee Merge "Fix robo test build error" 2020-01-20 02:00:46 +00:00
David Su
453d88568f Settings: migrate usage of @hide NetworkSuggestion APIs
Settings uses @hide WifiNetworkSuggestion.
wifiConfiguration/passpointConfiguration.
Migrate to @SystemApi getters.

Removed call to PasspointConfiguration.validate()
as it is an @hide API, instead
WifiManager.addOrUpdatePasspointConfiguration()
will perform the required validation.

Bug: 138801922
Test: make RunSettingsRoboTests -j40
Change-Id: I748010b66634b1d24e89a175917492f638267cb1
2020-01-17 15:41:40 -08:00
Zhen Zhang
02dfed6846 Use TetherEnabler in AllInOneTetherSettings to manage master switch
In AllInOneTetherSettings, we use TetherEnabler to hanle all behavior
related to tethering switch on/off.
In TetherEnbler, add WifiManager.WIFI_AP_STATE_CHANGED_ACTION to cover
all possible tethering state change.
TetherEnablerTest is modified accordingly.

Bug: 147322704
Test: make RunSettingsRoboTests ROBOTEST_FILTER=CodeInspectionTest
Test: make RunSettingsRoboTests ROBOTEST_FILTER=TetherEnablerTest
Test: make RunSettingsRoboTests
ROBOTEST_FILTER=AllInOneTetherSettingsTest

Change-Id: I505b3825f79260983fff9d3935ba834ad8f9f690
2020-01-17 11:11:30 -08:00
Sarah Chin
6860eecdcc Merge "Rename references to getLteOnCdmaMode" 2020-01-17 18:34:20 +00:00
Andrei Onea
e2f4619602 Fix strings in PlatformCompatDashboard
Be more specific, by referring to 'target SDK', instead of just 'SDK'.

Test: atest PlatformCompatDashboardTest
Bug: 138280620
Change-Id: Ied8dd5d682ed20962040bf81e9b3b3b45166ea46
2020-01-17 16:41:46 +00:00
Ruslan Tkhakokhov
58a6cfc803 Merge "Fix ShadowSecureSettings" 2020-01-17 11:53:54 +00:00
Tsung-Mao Fang
084b132295 Ignore test cases
Since ag/10056493 changed the interface, robotest is broken.

Bug: 147865441
Test: run all robotest
Change-Id: I88dce302068dbce3443c1909c092ff926260ad9b
2020-01-17 19:31:12 +08:00
hughchen
3bcd970171 Fix robo test build error
Bug: 147861843
Test: make -j42 RunSettingsRoboTests
Change-Id: I0ba094b955d94148bdd98cb78a1ca5c991275d49
2020-01-17 18:01:55 +08:00
Ruslan Tkhakokhov
ff3d5c978b Fix ShadowSecureSettings
Bug: 147858203
Test: make RunSettingsRoboTests

Add the new override of putStringForUser after it was introduced in
ag/10056493

Change-Id: I38894758268ab0025e01537cafe5cb078391a497
2020-01-17 09:38:09 +00:00
Goven Liu
4fa11dcb93 Merge "[Wi-Fi] Refactor add wifi networks feature to use WifiNetworkSuggestion." 2020-01-17 08:14:53 +00:00
Raff Tsai
7d7bde6006 Merge "Fix robolectric test error" 2020-01-17 04:43:12 +00:00
Betty Chang
af2e3afb04 Merge "[Mainline] Copy the findBestComponent method from EuiccConnector to Settings" 2020-01-17 03:27:32 +00:00
tim peng
26d39236c6 Merge "Unable to set Bluetooth configuration at the first time" 2020-01-17 02:48:54 +00:00
Raff Tsai
ed233a3b72 Fix robolectric test error
Fixes: 147838071
Test: robolectric
Change-Id: Iee28543d69c1df84d38251284c357908d9a5591c
2020-01-17 09:57:08 +08:00
TreeHugger Robot
846f739465 Merge "Support accessibility shortcut secondary action (8/n)" 2020-01-17 01:10:53 +00:00
Sarah Chin
de616afce0 Rename references to getLteOnCdmaMode
Use @SystemApi TelephonyManager#isGlobalModeEnabled()

Test: build
Bug: 147335742
Change-Id: Ie1b01a97cf163d68e4a5529f1718a9a782d44bb0
2020-01-16 12:38:59 -08:00
Bonian Chen
66349e21c3 Merge "[Mainline] Use @SystemApi constants in SmsManager instead of in SmsUsageMonitor" 2020-01-16 20:13:37 +00:00
TreeHugger Robot
5f964f1886 Merge "Remove settings_work_profile feature flag" 2020-01-16 15:10:17 +00:00
menghanli
5d0f336fec Support accessibility shortcut secondary action (8/n)
Integrate with the multiple shortcut selections and change the behavior as below:
- Get the shortcut type from system provider or shared_prefs if this is first time to use.
- Update the shared_prefs for what user seen.

Bug: 142530063
Bug: 142531156
Test: make RunSettingsRoboTests2
Test: make RunSettingsRoboTests ROBOTEST_FILTER=AccessibilityUtilTest
Change-Id: I58aeb960e2c4aa0bc2432be34c1372c0de89117a
2020-01-16 22:57:11 +08:00
TreeHugger Robot
7fd5b23da4 Merge "Accessibility shortcut secondary action - fix magnification triple tap logic" 2020-01-16 14:22:55 +00:00
TreeHugger Robot
244afa02d2 Merge "Revert "Settings search - Navigate user to exact page"" 2020-01-16 13:06:24 +00:00
changbetty
bbc757e01a [Mainline] Copy the findBestComponent method from EuiccConnector to Settings
Make a copy of EuiccConnector#findBestComponent() into local method findEuiccService().

Bug: 147275124
Test: make RunSettingsRoboTests ROBOTEST_FILTER=ApplicationFeatureProviderImplTest
Change-Id: Ie81569d940fc354053469570e1506b1954d9f24d
2020-01-16 20:46:06 +08:00
TreeHugger Robot
81d194ed7a Merge "Make contextual card count configurable." 2020-01-16 11:21:38 +00:00
jasonwshsu
620aec5f8c Accessibility shortcut secondary action - fix magnification triple tap logic
- triple tap in settings is boolean status, not string.

Bug: 142530063
Test: make RunSettingsRoboTests -j52 ROBOTEST_FILTER=ToggleScreenMagnificationPreferenceFragmentTest
Change-Id: Ieec9879f7ef55b694245c6f9143575ba933855e5
2020-01-16 18:21:48 +08:00
Sunny Shao
6b032f4e2d Create a new Open supported links page
- Add a new OpenSupportedLinks fragment
- Add a new AppHeaderPreferenceController
- Add a new AppOpenSupportedLinksPreferenceController

Fixes: 143185713
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.applications
Change-Id: I6568950b7b918378baaa80e2ca0d596913620928
2020-01-16 18:18:14 +08:00
Lee Chou
ee4ffce3aa Ignoring SubscriptionUtilTest [Settings]
Changes in the framework ag/10100601 broke this test, ignoring for now

Bug: 147791865
Test: m RunSettingsRoboTests
Change-Id: If2568154c5a767baebf51f95956f499b748a55bd
2020-01-16 18:13:24 +08:00
Yi-Ling Chuang
72da4a81f4 Make contextual card count configurable.
Decide how many card we should show at once on the homepage based on the
value in Settings Global for more flexibility. Fall back to the default
value if there is nothing set up.

Bug: 138754406
Test: robotests
Change-Id: I8d31d98eafb636a5e72af76ffec7e3dae0be3cbc
2020-01-16 16:20:56 +08:00
Lee Chou
0d6e26a9b8 Merge "removed Network Operator Preference Test" 2020-01-16 08:19:17 +00:00
timhypeng
9a8ec96e48 Unable to set Bluetooth configuration at the first time
- initial configuration value
- add test case

Bug: 147634692
Test: make -j50 RunSettingsRoboTests
Change-Id: If55036d358d664bcbcb816a38f18019c62976d38
2020-01-16 14:37:28 +08:00
Edgar Wang
e19ee9a01f Revert "Settings search - Navigate user to exact page"
This reverts commit 08f2a58459.

Reason for revert: design changed, we decide to take the user to
the entry after clicking on a search result.
It's opposite with what we did, so we revert related CL first.

Test: robotest

Change-Id: Iadb9a94a7ef7838be34a54499e2d934d6396c336
2020-01-16 14:07:38 +08:00
Lee Chou
80e89e1995 removed Network Operator Preference Test
the legacy UI was removed in ag/10050039
this commit removes the corresponding test file

Bug: 147784139
Test: m RunSettingsRoboTests
Change-Id: I2200fa407fe0e807338eb5da01a60c70016170a1
2020-01-16 13:57:40 +08:00
Raff Tsai
3fbdf34a03 Remove settings_work_profile feature flag
Bug: 141601408
Test: robolectric
Change-Id: Ib7ef6794405fef6336690115680cf95b0e4c1542
2020-01-16 13:56:52 +08:00
Xiangyu/Malcolm Chen
69a7e054f5 Merge "Remove logic to manually search inactive pSIM." 2020-01-16 04:24:34 +00:00
changbetty
64b8981502 [Mainline] Use @SystemApi constants in SmsManager instead of in SmsUsageMonitor
Bug: 146808981
Test: make RunSettingsRoboTests ROBOTEST_FILTER=PremiumSmsAccessTest
Change-Id: I7dd74a390e9a69ad71d83a0db07bef979fab7f1d
2020-01-16 11:27:22 +08:00
hughchen
50c064d502 Update api name
Use CachedBluetoothDevice.connect() instead of
CachedBluetoothDevice.connect(boolean) to connect
Bluetooth device.

Fixes: 141582844
Test: manually
Change-Id: I8c50678bdfd6de89fb8d56122bfa38bdd5ac5c9d
Merged-In: I8c50678bdfd6de89fb8d56122bfa38bdd5ac5c9d
2020-01-16 10:33:30 +08:00
govenliu
237290f854 [Wi-Fi] Refactor add wifi networks feature to use WifiNetworkSuggestion.
WifiConfiguration used in the feature of add apps Wi-Fi networks was Deprecated, need to be changed to use WifiNetworkSuggestion.

Bug: 136472483
Test: Refactor AddAppNetworksFragmentTest to apply WifiNetowrkSuggestion
Change-Id: I022d200905880f7f7bd367f5fa62fa88e785db02
2020-01-16 09:38:00 +08:00
Malcolm Chen
640e56433f Remove logic to manually search inactive pSIM.
Nowe inserted inactive pSIM will be included in Telephony's get
available and get selectable subInfo list so that logic is no longer
needed.

Bug: 147128878
Test: unittest
Change-Id: Icd131f133e47dae0770a4da71c51de3c2a94b42b
2020-01-15 14:58:07 -08:00
Minche Li
8b1bf8a477 Merge "Create settings for window magnification (3/n)" 2020-01-15 11:00:04 +00:00
SongFerng Wang
92e7009d8b Merge "Mainline: removed legacy UI for network selection mode." 2020-01-15 10:12:22 +00:00
Jason Hsu
747de7edd7 Merge "Accessibility shortcut secondary action - correct magnification shortcut logic" 2020-01-15 09:45:03 +00:00
mincheli
5b59e62ecb Create settings for window magnification (3/n)
This change is for internal test.
Add a switch preference for magnification enable mode.

Bug: 146019459
Bug: 146473544
Test: make RunSettingsRoboTests ROBOTEST_FILTER=MagnificationEnablePreferenceControllerTest -j64
Change-Id: I85fdbb5b0efc106d5301d95802b8d6b7dbe8145d
2020-01-15 16:11:38 +08:00
jasonwshsu
64426cc868 Accessibility shortcut secondary action - correct magnification shortcut logic
- correct magnification shortcut logic
- add magnification tests

Bug: 142530063
Test: make RunSettingsRoboTests -j52 ROBOTEST_FILTER=ToggleScreenMagnificationPreferenceFragmentTest
Change-Id: I15f8bccde63570e93e28399bc1730fb1afdb1242
2020-01-15 15:15:38 +08:00
TreeHugger Robot
5fae0c617c Merge "Update api name" 2020-01-15 07:03:22 +00:00
TreeHugger Robot
e5c5d3754a Merge changes I669f379d,Idd5fb950
* changes:
  Fix ConcurrentModificationException
  Update output switch UI
2020-01-15 06:26:17 +00:00
Tsung-Mao Fang
d9ca17c315 Merge "Ignore failed test cases" 2020-01-15 01:35:27 +00:00
Tsung-Mao Fang
b45c47d42d Ignore failed test cases
Test: run robotest
Bug: 14746840
Change-Id: I28b8013512b93bb64aa6dfed7c4181f19e8c3cd7
2020-01-15 09:26:24 +08:00
hughchen
1045823b3c Fix ConcurrentModificationException
Use CopyOnWriteArrayList instead of Arraylist to
avoid ConcurrentModificationException.

Bug: 147334979
Test: make -j42 RunSettingsRoboTests

Change-Id: I669f379d3eba6a086c6bd97cde2b78d92fb5c481
2020-01-15 09:23:28 +08:00