Commit Graph

9352 Commits

Author SHA1 Message Date
Arc Wang
9730b5aa86 [Wi-Fi] Ignore incorrect user certificates
These incorrect user certificates displayed when users
editing a Wi-Fi network of WPA3-Enterprise in 192bit.

Bug: 149763958
Test: make RunSettingsRoboTests ROBOTEST_FILTER=WifiConfigControllerTest
      make RunSettingsRoboTests ROBOTEST_FILTER=WifiConfigControllerTest2

Change-Id: Iab35ac975933abc54fda83b99a2109d53d6722d4
2020-02-24 15:23:56 +08:00
Winson Chung
34fdec2668 Merge "Updating call to set icon on task description" 2020-02-21 22:59:45 +00:00
Blake Kragten
8eb6c9ae9f Merge "Enhanced Connectivity Dev Toggle" 2020-02-21 22:14:25 +00:00
Joshua Duong
a66bcaae37 Merge "[adb-wireless] Add Wireless Debugging Switch in Developer options." 2020-02-21 16:03:29 +00:00
Joshua Duong
85a65e2dc6 [adb-wireless] Add Wireless Debugging Switch in Developer options.
Bug: 111434128
Bug: 119492574

Test: make RunSettingsRoboTests ROBOTEST_FILTER=WirelessDebugging
Change-Id: I188badb43035172642cf235bb27e56d3a1dea169
2020-02-21 00:01:58 -08:00
Rambo Wang
2717067230 Merge "Polish developer option enable verbose vendor logging" 2020-02-21 06:36:56 +00:00
Rambo Wang
c13ba9d27f Polish developer option enable verbose vendor logging
Robotests cases in EnableVerboseVendorLoggingPreferenceControllerTest
show all pass but actually they are all bypassed due to the fact that
the test class can not grant sepolicy permission as what Settings
app does.

This version introduces mock DumpstateDevice HAL to really
perform the Robotests cases.

This CL also clear up code format issues.

Bug: 149886908
Test: make && make RunSettingsRoboTests
Change-Id: I64025ebea60e18d17338604519a6cae98ca7928b
2020-02-20 18:46:49 -08:00
TreeHugger Robot
9b2fc43a30 Merge "Add prerelease driver to graphics driver preference dashboard." 2020-02-20 19:02:57 +00:00
Yi Jiang
45733d12bc Merge "Hides screen attention when attention service is not avaliable." 2020-02-20 18:59:08 +00:00
Peiyong Lin
b94e6b9e4e Add prerelease driver to graphics driver preference dashboard.
To facilitate better development, add prerelease driver choice to graphics
driver preferences dashboard. This patch also makes sure that when game driver
or developer driver is not shipped, the choice doesn't show up.

Minor: Add tests.

Bug: b/148626177
Test: make RunSettingsRoboTests ROBOTEST_FILTER=GraphicsDriver
Change-Id: Iad398cd663300086d3f4802ffab34531e11dfb17
2020-02-20 09:28:40 -08:00
TreeHugger Robot
394323bc51 Merge "Wifi slice improvement" 2020-02-20 12:40:06 +00:00
Yi-Ling Chuang
deea015b65 Implement new dismissal behaviour of contextual card
Currently, if a contextual card gets dismissed, it will be gone forever.
After this change, all cards being dismissed can be shown again after a
certain amount of time(e.g one day). In order to calculate the amount of
time, CARD_DISMISSED column is replaced with DISMISSED_TIMESTAMP. Once a
card gets dismissed, a timestamp will be recorded for a corresponding
card.

In this change, some methods are moved from CardDatabaseHelper to
ContextualCardFeatureProvider. So OEMs could replace the providers with
their own ones to get cards and have different dismissal behaviours.

Bug: 143055685
Test: rototests
Change-Id: I00ace98991cabcbfcae4fc47a44e9448683d680c
2020-02-20 18:45:14 +08:00
Jason Chiu
dd1fbd68d0 Wifi slice improvement
- always show toggle

Bug: 149666241
Test: robotest
Change-Id: I602d26abf2dfa631a939ee79e9adc63bed44ade0
2020-02-20 17:38:01 +08:00
Rambo Wang
baf12eeb6d Merge "Add Developer option to enable vendor logging in Settings app" 2020-02-20 01:57:27 +00:00
Winson Chung
f07554fdb3 Updating call to set icon on task description
Bug: 143363444
Test: Manual
Change-Id: If4c20dea99cce6c365f509885beb7b561b70495b
2020-02-19 17:13:53 -08:00
Yi Jiang
7f4a4ce85d Hides screen attention when attention service is not avaliable.
If a wrong attention package is pushed to users devices, the screen
attention won't work. In this case, we should also hide the settings
as well.

Test: atest AdaptiveSleepPreferenceControllerTest
Bug: 148099790
Change-Id: Ieb4fd1008856024c23624f0eab3dfbfc3fc4ee3b
2020-02-19 11:57:28 -08:00
Victor Hsieh
4573c0e0fa Merge "Revert "Support installation of the new app source certificate"" 2020-02-19 17:43:12 +00:00
Roshan Pius
efbfccbf4c Merge changes from topics "ap_shutdown_timeout_flag", "scan_always_available_API"
* changes:
  Settings: Use new API for setting wifi scan always on
  Settings: Use new API for tethering auto shutdown
2020-02-19 16:28:43 +00:00
govenliu
824796d3b2 [Wi-Fi] Support WiFi detail page for OpenRoaming feature in AOSP setting.
Issue: Openroaming should have a specific detail page.
Solution: Apply the mock design to only reserve two preference items:
          1.Auto-connect
          2.Scription details

Bug: 146669261
Test: Add unit test case to test the new controller: WifiSubscriptionDetailPreferenceController2
Change-Id: Iba96500062f412f4cdcd1c8248544657770ab231
2020-02-19 22:22:47 +08:00
Jason Hsu
9ab1bd2587 Merge changes from topic "open_shortcut"
* changes:
  Accessibility shortcut primary action - implement launched type fragment.
  Accessibility shortcut primary action - setup entry for launched type fragment.
2020-02-19 13:58:25 +00:00
TreeHugger Robot
5f73b0cbcd Merge "Add stop casting button for output switch" 2020-02-19 12:25:05 +00:00
Julia Reynolds
cb9f444849 Merge changes from topics "jr-all-convo", "jr-default-vic"
* changes:
  Add a default behavior setting for VICs
  Add screen for all conversations
2020-02-19 12:24:57 +00:00
Lucas Lin
8e83a617be Merge changes I80b93689,Ie767a9b8
* changes:
  Add capport info to WiFi details(WifiDetailPreferenceController2)
  Add capport info to WiFi details
2020-02-19 11:20:22 +00:00
lucaslin
4ef8ec0e4c Add capport info to WiFi details(WifiDetailPreferenceController2)
Session expiration time and venue webpage can be obtained through the
captive portal API.

Test: make RunSettingsRoboTests \
      ROBOTEST_FILTER=WifiDetailPreferenceController2Test
      (Since WifiDetailPreferenceController2Test is ignore now,
      there is no test will be run in
      WifiDetailPreferenceController2Test)
Bug: 139269711
Change-Id: I80b93689539c6ba5edafa3d0029376deca7ac1f7
2020-02-19 17:31:41 +08:00
lucaslin
9f7f0b5baf Add capport info to WiFi details
Session expiration time and venue webpage can be obtained through the
captive portal API.

Test: make RunSettingsRoboTests \
      ROBOTEST_FILTER=WifiDetailPreferenceControllerTest
Bug: 139269711
Change-Id: Ie767a9b8eb17de2c1b70928a8f3cdf4cf2a1dbd1
2020-02-19 17:31:25 +08:00
jasonwshsu
b67d873372 Accessibility shortcut primary action - setup entry for launched type fragment.
* Reduce the complexity of updateServicePreferences.
* Introduces RestrictedPreferenceHelper to setup installed
AccessibilityServiceInfo and AccessibilityShortcutInfo.

Bug: 142531433
Test: make RunSettingsRoboTests
Change-Id: I0f5eeac56a93caadeb05c25f1f8c4daa0d775b35
2020-02-19 15:25:48 +08:00
hughchen
201b48b885 Add stop casting button for output switch
This CL add a customize button to stop casting when media
is transferred to info device.

This CL include following change:
- Add new methods to PanelContent.java. Let panels to
  customize "see more button".
- MediaOutputPanel will check which device is used to
  transfer media currently. The customize button will
  shown on when transfer device is info device.
  Then user can use this button to stop casting.
- Add test case.

Bug: 147856563
Test: make -j42 RunSettingsRoboTests
Change-Id: I8b201a10339f39f1d938d99b5659a82014e5bb89
2020-02-19 10:05:44 +08:00
Bonian Chen
66a301bb12 Merge "[Settings] Replace isVolteEnabledByPlatform" 2020-02-19 01:17:31 +00:00
TreeHugger Robot
55ca7a67d4 Merge "Add test cases for regression issue" 2020-02-19 00:42:02 +00:00
Rambo Wang
9b7acf7210 Add Developer option to enable vendor logging in Settings app
Bug: 148822215
Test: make && make RunSettingsRoboTests
Change-Id: Ia8d9002c7f85b607a8d87a69d04d3be1e59abcab
2020-02-18 15:43:09 -08:00
TreeHugger Robot
377c11a815 Merge "Revert "Ignore two broken tests"" 2020-02-18 23:05:27 +00:00
Roshan Pius
a7e96dd80e Settings: Use new API for setting wifi scan always on
Bug: 148514485
Test: Manually verified the toggle from Settings
Test: m RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.wifi
Change-Id: I0a55b7212c97c11d50b0a05eec743e8ebe9ea6d8
2020-02-18 12:53:49 -08:00
Victor Hsieh
cef970cda4 Revert "Support installation of the new app source certificate"
We decided to punt extra certificate to post-R.

This reverts commit c8a1960cf4.

Test: Treehugger
Bug: 112038744
Change-Id: Ic53e58944faebe7aa427975ebd77ce783bdddaf2
2020-02-18 11:03:07 -08:00
Roshan Pius
a023de72a9 Settings: Use new API for tethering auto shutdown
Bug: 148514485
Test: m RunSettingsRoboTests -j ROBOTEST_FILTER=
com.android.settings.wifi.tether.WifiTetherAutoOffPreferenceControllerTest
Test: Manually verified the toggle from Settings.
Change-Id: I5f89c6149b9f2e7145ecb1cf656adb3d3e8f1bff
2020-02-18 07:27:43 -08:00
Julia Reynolds
8949d87be7 Add a default behavior setting for VICs
Test: atest
Bug: 149696991
Change-Id: Ica06f80a02d65294a7b503fd3556add644c61bd7
2020-02-18 09:25:52 -05:00
Ben Murdoch
3980183ee0 Merge "Fix NPE in AddUserWhenLockedPreferenceController." 2020-02-18 09:44:18 +00:00
Raff Tsai
1825c39b7c Add test cases for regression issue
Fixes: 149362024
Test: make RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.applications.manageapplications.ManageApplicationsTest"
Change-Id: I35198d04e6c90edd3e0a23652a7e40b0228a22a5
2020-02-18 15:30:02 +08:00
TreeHugger Robot
7e0b1847ed Merge "Authenticated confirmation before deletion of eSim" 2020-02-18 05:28:49 +00:00
Lee Chou
5a65e2d5dd Authenticated confirmation before deletion of eSim
adds an authentication confirmation before deleting an eSim
this feature is turned on/off in the security page

Bug: 138861284
Test: mp settingsg
Change-Id: I32e0e3bff2091ec1097b3c37fa066d966e3373df
2020-02-18 11:33:22 +08:00
Julia Reynolds
1ee9dce20c Add screen for all conversations
Test: atest
Bug: 149583455
Change-Id: I9704082d097ef2bb17c051703e380f573056318c
2020-02-17 20:16:23 -05:00
tim peng
b27db300eb Merge "Replace preference with remote media preference group in xml" 2020-02-18 00:57:30 +00:00
Ben Murdoch
c20d548ad9 Fix NPE in AddUserWhenLockedPreferenceController.
Set LockPatternUtils in constructor, but allow it to be
overridden for tests.

Bug: 149511500
Test: make -j64 RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.users.AddUserWhenLockedPreferenceControllerTest"
Change-Id: I4148fec8eea9c76afebe45cc29c2c87775fd3b1e
2020-02-17 18:02:28 +00:00
Jason Chiu
3d510a2ac4 Merge "Card showing mechanism change in homepage" 2020-02-17 06:17:34 +00:00
Zhen Zhang
370653a24b Merge "Update summary for AllInOneTetherPreference accordingly" 2020-02-17 05:50:55 +00:00
TreeHugger Robot
00596b03a5 Merge "Remove the isCustomCard and related codes" 2020-02-15 07:26:35 +00:00
Bonian Chen
1716548685 [Settings] Replace isVolteEnabledByPlatform
Replace ImsManager#isVolteEnabledByPlatform() by ImsMmTelManager#isSupport().

Bug: 140542283
Test: m RunSettingsRoboTests -j ROBOTEST_FILTER=Enhanced4gBasePreferenceControllerTest
Test: m RunSettingsRoboTests -j ROBOTEST_FILTER=Enhanced4gLteSliceHelperTest
Change-Id: I656a00ad2c6120255e53d0b836945462258e01bb
2020-02-15 15:19:49 +08:00
Jason Hsu
e5cdb3a9ac Merge "Fix the NPE error when get the service summary." 2020-02-15 07:05:23 +00:00
Sunny Shao
f0b0d46106 Remove the isCustomCard and related codes
Bug: 143058171
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.homepage
Change-Id: I9d9ab16f327aef65599150e2f58b23bcb9986b30
2020-02-15 13:46:22 +08:00
jasonwshsu
13b6850c52 Fix the NPE error when get the service summary.
* Check NPE for AccessibilityInfo.loadSummary()
* Remove the state argument that could get from info argument

Bug: 148837311
Test: Manual test
Change-Id: Ic6906fdbdd7f1c241776d1045be33f89468670b6
2020-02-15 11:49:37 +08:00
Blake Kragten
79b0315be6 Enhanced Connectivity Dev Toggle
Add Enhanced Connectivity Developer option switch. This switch will
allow the connectivity thermal power manager to actively shutoff 5G in
order to save power when cellular throughput is below the set threshold.

ScreenShots: https://drive.google.com/drive/folders/109VTTXqIn5Teg6daHpNHV7z13MmEEb7Q?usp=sharing

Bug: 147305171
Test: make RunSettingsRoboTests ROBOTEST_FILTER=EnhancedConnectivityPreferenceControllerTest
Test: On-device using developer option menu

Change-Id: I311cfcadb8325db30ff4917959414b5a7d108bcc
2020-02-14 13:48:59 -08:00