Commit Graph

10323 Commits

Author SHA1 Message Date
Tsung-Mao Fang
af0a5ab8b1 Ignore failing test cases
Test: Run robo
Bug: 148755845
Change-Id: Ie372fb7d1fb068648976f755f199491a2e4757c2
2020-02-04 10:20:35 +08:00
Bonian Chen
9888ad8329 Merge "[Settings] Remove dependency of TelephonyIntents" 2020-02-04 02:03:32 +00:00
tim peng
8b2b5ea302 Merge "Apply RichInputRangeBuilder" 2020-02-04 01:11:25 +00:00
Yiwen Chen
4b4c6c2c7b Implement new vibrate for calls in Settings.
Test: built and tested on device
Change-Id: Ia6ca7eb54472d44a9934d7f125a9f71e42c616a3
2020-02-03 13:32:58 -08:00
David Su
f38bff9e0b Merge "Rename WifiConfiguration.getHasEverConnected()" 2020-02-03 21:12:03 +00:00
David Su
7e7b59e46e Merge "Settings: remove usage of WifiConfig helper methods" 2020-02-03 21:09:52 +00:00
Julia Reynolds
7c5ac8fdac Support new conversation DND options
Test: atest
Bug: 137397357
Change-Id: I52420ffdc4b6618e66354a9c1bb99b0296bc4ea4
2020-02-03 11:09:20 -05:00
Jason Chiu
59f7342986 Set the max length of user name field in Profile info
Settings may crash when entering a very long user name.

Fixes: 136005061
Test: manual, robotest
Change-Id: Ica17297588fc6b84ef111ef00017afb27360acd3
Merged-In: Ica17297588fc6b84ef111ef00017afb27360acd3
(cherry picked from commit ca2bbc0685)
2020-02-03 10:25:55 +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
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
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
TreeHugger Robot
d4f33b1e26 Merge "Mainline remove hide api SubscriptionInfo.getCardString" 2020-02-01 06:45:02 +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
SongFerngWang
5189dc3860 Mainline remove hide api SubscriptionInfo.getCardString
Bug: 147128878
Test: build pass
Change-Id: Idb44af6a01626013339f5ca05486dd11112a5867
2020-01-31 18:48:09 +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
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
David Su
68913c5a8b Migrate to getNetworkSelectionStatus()
isNetworkEnabled() & isNetworkPermanentlyDisabled()
should not be formal APIs. Instead,
getNetworkSelectionStatus() with a set of constants
is sufficient as an API surface, and will be more
maintainable in the future.

Bug: 146046526
Test: atest SettingsUnitTests
Change-Id: If599ce88f68a87fa7186ef96156c2bb1fdc1c2c3
2020-01-30 20:36:53 -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
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
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
5676b6fe36 Merge "Migrate WifiManager.isDualModeSupported() to isStaApConcurrencySupported()" 2020-01-30 17:42:41 +00:00
govenliu
634044dc0b [Wi-Fi] [a11y] In Wi-Fi data usage page, Talkback should also announce the Progress bar percentage instead of "Progress bar" only.
Add conent description for talkback to announce, if the progress bar is 50%, then before modification is "Progress bar", and after modification is "50% Progress bar".

Bug: 146811265
Test: Add following unit test case to test if content description is correct or not:
      createPref_progressBarShouldSetPercentageContentDescription().

Change-Id: I71483df8e12f08c4c8c96ab3964666bf97872a83
2020-01-30 07:18:18 +00:00
David Su
8ab62a8750 Migrate WifiManager.isDualModeSupported() to isStaApConcurrencySupported()
isDualModeSupported is being removed, replace it
with isStaApConcurrencySupported.

Bug: 144925765
Test: compiles
Change-Id: Ia3a0417a154ea401579a039113e96ba4578ffd80
2020-01-29 14:46:33 -08:00
TreeHugger Robot
1767201534 Merge "Use MasterSwitchPref vs subclass" 2020-01-29 19:20:48 +00:00
Julia Reynolds
82433b0239 Use MasterSwitchPref vs subclass
MasterSwitchPrefence changed in an incompatible way, but also
added functionality so we no longer need to subclass it.

Test: atest
Fixes: 146503141
Change-Id: I2441c8c265370c138ced13741aa5afd5c2088917
2020-01-29 17:11:45 +00:00
Julia Reynolds
86c0007e1d Add setting to hide silent notifs in status bar
Test: atest
Bug: 148444551
Change-Id: If7171ed36984b76552f3f795f0b4652dce5daad3
2020-01-29 11:25:18 -05:00
David Su
613371047b Merge "Rename WifiManager.enableVerboseLogging/getVerboseLoggingLevel" 2020-01-27 18:40:08 +00:00
Tsung-Mao Fang
fa00e245cd Ignore test cases for ListWithEntrySummaryPreferenceTest
We ignore the failing test cases temporarily.
And we will fix it soon.

Bug: 148200531
Test: Run robotest
Change-Id: Ie42e85be19d3ac1658065bd730a6d9ec7bb06a21
2020-01-24 22:07:01 +08:00
Ben Murdoch
0149363a39 Show "Add users from lock screen" dependent on secure lock screen.
SysUI only enforces this setting while a secure lock screen is set,
so it doesn't make sense to show it configurable while an insecure
lock screen is set.

Bug: 148015798
Test: make -j64 RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.users.AddUserWhenLockedPreferenceControllerTest"
Change-Id: I186b2339e9575e20b55e2e5c1dab3de624848fc5
2020-01-24 12:34:15 +00:00
David Su
dadef49214 Rename WifiManager.enableVerboseLogging/getVerboseLoggingLevel
- Rename enableVerboseLogging -> setVerboseLoggingEnabled
- Rename getVerboseLoggingLevel -> isVerboseLoggingEnabled
- Converted getter/setter to take/return boolean

Bug: 144925765
Test: compiles
Change-Id: I6406a91b4692871cf558a63f8510f1734ae48f93
2020-01-23 13:57:33 -08:00
Ben Murdoch
7129dd98d8 Merge "Refactor Add new user / restricted profile UX flow." 2020-01-23 14:16:44 +00:00
Ben Murdoch
34462c0cb0 Refactor Add new user / restricted profile UX flow.
Incorporate the choose user name / avatar into the
user creation flow so that we don't end up with many
"New User"s.

Bug: 147653252
Test: make -j64 RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.users.EditUserInfoControllerTest"
Change-Id: Ie19230791d8b50c8ab04df89909606179364ebab
2020-01-23 11:11:02 +00:00
Zhen Zhang
0c2e4d3c94 Merge "Add config value to switch between Tether Settings UIs." 2020-01-23 07:07:09 +00:00
Bonian Chen
5fcb8ee011 [Settings] Support default value for APN protocol
Add default value on APN (roaming) protocol based on configuration when user leave it empty during editing APN.

Bug: 142440775
Test: manual
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=ApnEditorTest
Change-Id: I3f1ca0ef17ceaaf2a94b21b6034cd74e56081b61
2020-01-23 03:38:29 +08:00
Josh Hou
b942769c2a Merge "Show/hide 5G preferred network type also consider allowed_network_type" 2020-01-22 01:27:51 +00:00
Jay Aliomer
d810e83a19 Merge "Custom dark theme scheduling" 2020-01-21 21:27:29 +00:00
David Su
f56c4defc7 Merge "Settings: migrate usage of @hide NetworkSuggestion APIs" 2020-01-21 17:05:24 +00:00
Bonian Chen
2c0088be68 Merge "[Settings] apply WifiCallingQueryImsState" 2020-01-21 14:57:10 +00:00
Josh Hou
0393bbcc85 Show/hide 5G preferred network type also consider allowed_network_type
1. The carrier or privileged apps will enable/disable network types on
the device, so Settings references the allowed network type to show/hide
5G preferred network type option.

2. For mainline, copy the getNetworkTypeFromRaf() from RadioFamily to
Settings.

Bug: 136730709
Test: Manual test & EnabledNetworkModePreferenceControllerTest
1. Enable allowed_network_type
2. Disable allowed_network_type
Change-Id: I493f2a2c7f4bc32b3fcb8ab2bace5839d8667bd5
2020-01-21 14:34:51 +00:00
Bonian Chen
4482de98ed Merge "[Settings] add VtQueryImsState for IMS" 2020-01-21 13:30:00 +00:00
Bonian Chen
16b9b8fac8 Merge "[Settings] add VolteQueryImsState for IMS" 2020-01-21 12:45:43 +00:00
Bonian Chen
1407d80f4c [Settings] add VtQueryImsState for IMS
1. Code refactor
2. Introduce VtQueryImsState and VolteQueryImsState for user enable/disable configuration

Bug: 140542283
Test: m RunSettingsRoboTests -j ROBOTEST_FILTER=VideoCallingPreferenceControllerTest
Change-Id: I72ec009a8808875fef144a24486b94ef4a7fd35c
2020-01-21 20:10:47 +08:00
Bonian Chen
bd9a04ceea [Settings] add VolteQueryImsState for IMS
1. Code refactor
2. Introduce VolteQueryImsState for user enable/disable configuration

Bug: 140542283
Test: m RunSettingsRoboTests -j ROBOTEST_FILTER=Enhanced4gBasePreferenceControllerTest
Test: m RunSettingsRoboTests -j ROBOTEST_FILTER=Enhanced4gLteSliceHelperTest
Change-Id: I9c18c8900ac01909030d9433935650c1581a0fb0
2020-01-21 19:39:29 +08:00
Bonian Chen
a498eae245 [Settings] apply WifiCallingQueryImsState
1. Code refactor
2. Apply WifiCallingQueryImsState to more WifiCalling classes

Bug: 140542283
Test: m RunSettingsRoboTests -j ROBOTEST_FILTER=WifiCallingSettingsForSubTest
Test: m RunSettingsRoboTests -j ROBOTEST_FILTER=WifiCallingSliceHelperTest
Change-Id: Idd4935a6d8ceed77c15e90f96781014d1940a427
2020-01-21 19:33:16 +08:00
Bonian Chen
21f86f9f4d Merge "[Settings] add WifiCallingQueryImsState for IMS" 2020-01-21 11:25:12 +00:00
TreeHugger Robot
814e65adcb Merge "Make Wifi and Bluetooth Slices not dismissable." 2020-01-21 10:56:58 +00:00
TreeHugger Robot
38403f465b Merge "Implement new design of Wi-Fi card" 2020-01-21 10:31:33 +00:00