Commit Graph

10252 Commits

Author SHA1 Message Date
govenliu
d9a414b61e [Wi-Fi] Add a new intent handler process for adding new networks panel page.
For the R feature "Add saved networks to the
device for apps", need to handle the new intent case to update the content to be the specific networks in the new intent.

Bug: 146105504
Test: Add following unit test case to check if UI list had been updated:
      getThreeNetworksNewIntent_shouldHaveThreeItemsInUiList.

Change-Id: Id043fabb16ba5a75aa81be8cacd403e62e5268b8
2019-12-23 18:23:51 +08:00
Jason Chiu
009b1896cd Ignore failed test cases
Bug: 146767071
Bug: 146767072
Bug: 146771294
Test: make RunSettingsRoboTests -j

Change-Id: I588fb5ef00320c5181102d8312d7fb8e78778662
2019-12-23 17:44:18 +08:00
PO HUNG CHEN
373a62c378 Merge "Fix SelectDSUPreferenceControllerTest" 2019-12-23 09:00:27 +00:00
Automerger Merge Worker
f5b6c700fc Merge "[Settings] Replace Robolectric#setupActivity()" am: 6aee4f9548 am: 69f67d996b
Change-Id: I2b2622c16d23347b8d0a709ea7e1b681e6be7480
2019-12-23 08:16:16 +00:00
Bonian Chen
67f7ab3f2b [Settings] Replace TelephonyManager#from()
Replacing TelephonyManager#from() by public API.

Bug: 146752167
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=EuiccPreferenceControllerTest
Change-Id: I8f6e8bc57c20782540f8b26bdeb163d881e70a2e
2019-12-23 15:44:52 +08:00
Bonian Chen
6aee4f9548 Merge "[Settings] Replace Robolectric#setupActivity()" 2019-12-23 07:38:44 +00:00
TreeHugger Robot
0d8583332e Merge "Get package name on worker instead of on slice" 2019-12-23 06:59:12 +00:00
Automerger Merge Worker
98d4dad16a Merge "Retrieve EID from each card" am: 2f5ad9cb4d am: d34e17143f am: 0988f8cfec
Change-Id: I7867a8a6cc547e139facdfaee172066a4bd977b2
2019-12-23 06:32:29 +00:00
Automerger Merge Worker
0988f8cfec Merge "Retrieve EID from each card" am: 2f5ad9cb4d am: d34e17143f
Change-Id: Iee9c974eef13599eebc4dfd82f7fbc5f10e7ca58
2019-12-23 06:21:54 +00:00
SongFerngWang
d6bc6dee08 Mainline:SimStatusDialogController decouple TelephonyManager hidden APIs
- telephonymanager set subid by createForSubscriptionId
  -getDataNetworkType(I)
  -getVoiceNetworkType(I)
  -getSimSerialNumber(I)
  -getServiceStateForSubscriber(I)
- copy getNetworkTypeName() to SimStatusDialogController

Bug: 143998492
Test: Build pass.
      make RunSettingsRoboTests ROBOTEST_FILTER\
      =SimStatusDialogControllerTest

Change-Id: Ieb8547496a4b0da7332abd227056f9b786c7ef6a
2019-12-23 14:12:56 +08:00
Bonian Chen
2f5ad9cb4d Merge "Retrieve EID from each card" 2019-12-23 05:53:14 +00:00
Edgar Wang
fee49421c7 Update Reset options summary
- Update summary when user does not have permission to reset network or factory reset

Fixes: 126295214
Test: rototest & manual
Change-Id: I710f0abcd3df1560eb3e7bc53a7427d7a6a5aad7
2019-12-23 13:47:46 +08:00
hughchen
6b3856d5de Get package name on worker instead of on slice
Bug: 144535188
Test: make -j42 RunSettingsRoboTests
Change-Id: I3aa9c7ccf8df23527b8d2b79033c96ec1289c7ea
2019-12-23 11:20:13 +08:00
Bonian Chen
6435164abf [Settings] Replace Robolectric#setupActivity()
Avoid from accessing Robolectric#setupActivity().

Bug: 140707056
Test: make RunSettingsRoboTests ROBOTEST_FILTER=EuiccPreferenceControllerTest
Test: make RunSettingsRoboTests ROBOTEST_FILTER=DataServiceSetupPreferenceControllerTest
Test: make RunSettingsRoboTests ROBOTEST_FILTER=ApnPreferenceControllerTest
Test: make RunSettingsRoboTests ROBOTEST_FILTER=DataUsagePreferenceControllerTest
Test: make RunSettingsRoboTests ROBOTEST_FILTER=SubscriptionsPreferenceControllerTest
Change-Id: I8552b181d2dc1c9a5d8aeb0b7e79bbec7252f67e
2019-12-23 03:08:25 +00:00
Automerger Merge Worker
925e9771ea Merge "Add Tapjacking Protection for SettingsHomepageActivity" into qt-qpr1-dev am: 12510978c3
Change-Id: I0808583341d6f2a867dfa47cf08e7f529e3b0571
2019-12-20 18:25:50 +00:00
TreeHugger Robot
8b2594393b Merge "Refactor GestureNavigationSeekBarPreference" 2019-12-20 18:23:45 +00:00
TreeHugger Robot
12510978c3 Merge "Add Tapjacking Protection for SettingsHomepageActivity" into qt-qpr1-dev 2019-12-20 18:11:29 +00:00
Raff Tsai
00c79aecd1 Refactor GestureNavigationSeekBarPreference
- Make GestureNavigationSeekBarPreference more flexible to configure

Fixes: 146462894
Test: adb shell am start -a android.settings.ASSIST_GESTURE_SETTINGS
      adb shell am start -a com.android.settings.GESTURE_NAVIGATION_SETTINGS

Change-Id: Ibc7ed8456fe4a42f12f0d436f53756df268acfbe
2019-12-21 01:24:16 +08:00
Automerger Merge Worker
1a33a04433 Merge "Update the behavior of the Dark theme slice" into qt-qpr1-dev am: bc96cf54cd am: 17bc83209f
Change-Id: I99ef0de75926ba951dd27154f0651e97ea826945
2019-12-20 15:56:50 +00:00
Automerger Merge Worker
17bc83209f Merge "Update the behavior of the Dark theme slice" into qt-qpr1-dev am: bc96cf54cd
Change-Id: I9f59dac9b64f2cb0acf31448c10cb0ef5c04da62
2019-12-20 15:35:13 +00:00
TreeHugger Robot
bc96cf54cd Merge "Update the behavior of the Dark theme slice" into qt-qpr1-dev 2019-12-20 15:23:53 +00:00
Automerger Merge Worker
4b6beab35e Remove permission bar chart in Privacy setting am: 8e58e2c7a5
Change-Id: Id55e0078ce0eccc85a0ef15706ba07b26da5c3ab
2019-12-20 10:31:03 +00:00
Alex Li
39c10adfb4 Merge "[Settings] Adds an intent extra when setup wizard start the WallpaperSuggestionActivity" 2019-12-20 06:54:40 +00:00
TreeHugger Robot
6df1b4b5e0 Merge "Fix focus on wrong tab" 2019-12-20 05:55:15 +00:00
Howard Chen
c87d7c6047 Fix SelectDSUPreferenceControllerTest
Bug: 146316826
Test: make -j32 RunSettingsRoboTests
Change-Id: If12f40ea2f029773b9b016e69de5246ef27635af
2019-12-20 13:46:37 +08:00
Sunny Shao
5f42f2f7a7 Update the behavior of the Dark theme slice
- Dark theme slice disappear when battery saver is ON.

Bug: 146149658
Fixes: 142476879
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=ROBOTEST_FILTER=com.android.settings.homepage.contextualcards.slices.DarkThemeSliceTest
Change-Id: I071014d7f0658db2098e353717afda905f162ecd
2019-12-20 13:25:49 +08:00
Raff Tsai
91d9942494 Fix focus on wrong tab
Fixes: 146594840
Test: Robolectric
Change-Id: I14c6d5a4055bee5d0aa413479fb9893e9dfc41df
2019-12-20 12:18:27 +08:00
Menghan Li
506b40078e Merge "Create settings for window magnification (2/n)" 2019-12-20 03:35:38 +00:00
alexylli
c310eb9494 [Settings] Adds an intent extra when setup wizard start the WallpaperSuggestionActivity
before: https://hsv.googleplex.com/4812887816142848
changed: https://hsv.googleplex.com/5670376870772736

Bug: b/139653958
Test: manual
Change-Id: I54de39059f7215d25f37c0d88d92e03bc5a076d4
2019-12-20 11:31:01 +08:00
Philip P. Moltmann
b4e5b0bd78 Merge "Adjust to changed internal API" 2019-12-20 03:04:55 +00:00
Mehdi Alizadeh
4e561fb9cb Merge changes Id2732a94,Id8c01bf0
* changes:
  Adds a new activity for Gesture Navigation settings
  Adds BackGestureIndicatorView to animate left and right insets
2019-12-20 02:54:55 +00:00
menghanli
756104417a Create settings for window magnification (2/n)
Provide a setting for new Magnify area feature and joystick controller

Bug: 146019459
Bug: 146473544
Test: make RunSettingsRoboTests ROBOTEST_FILTER=MagnificationModePreferenceControllerTest
Test: make RunSettingsRoboTests ROBOTEST_FILTER=MagnificationWindowControlPreferenceControllerTest
Test: make RunSettingsRoboTests2
Change-Id: Ia32fa073c59ad304e9ef9eb530ba37dd24c2f2f6
2019-12-19 18:08:10 +08:00
Tsung-Mao Fang
8e58e2c7a5 Remove permission bar chart in Privacy setting
- Because permission hub is already postponed,
we don't need to show this UI in privacy settings.

Test: Rebuild, visual, robotest
Change-Id: I51aca52bc605a3c6b0cafc084e8e491c280d770f
Fix: 143447873
Merged-In: I51aca52bc605a3c6b0cafc084e8e491c280d770f
(cherry picked from commit ab914adc00)
2019-12-19 16:51:58 +08:00
Stanley Wang
5536205081 Merge "Index user accounts." 2019-12-19 06:05:33 +00:00
Sunny Shao
a74060c1b7 Add Tapjacking Protection for SettingsHomepageActivity
Add/remove the SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS flag into/from
SettingsHomepageActivity and SettingsPanelActivity with lifecycle.

Bug: 138442483
Test: make RunSettingsRoboTests ROBOTEST_FILTER=com.android.settings.homepage
      make RunSettingsRoboTests ROBOTEST_FILTER=com.android.settings.panel
      manual test
Change-Id: I72f9a947f57f74a8c09127d6c39173594c248ddc
Merged-In: I72f9a947f57f74a8c09127d6c39173594c248ddc
2019-12-19 02:59:10 +00:00
Stanley Wang
3b02810356 Index user accounts.
Index user accounts in AccountDashboardFragment if there is no managed
user profile.

Fixes: 146478761
Test: manual & robotest
Change-Id: I719dc6ee8030a11f1cbfacc8f24419e9e4c3ca18
2019-12-19 10:55:42 +08:00
TreeHugger Robot
c30ca3efbd Merge "Settings: add a new developer menu entry to show refresh rate overlay" 2019-12-18 17:57:43 +00:00
Tsung-Mao Fang
2c89e0b658 Ignore failed test cases
Test: Rerun test cases
Bug: 146479774
Change-Id: Ibb718bce490095c150ab101741df0fcb0e0e7aeb
2019-12-18 11:41:11 +00:00
TreeHugger Robot
78cba18564 Merge "Fix some test cases" 2019-12-18 11:09:02 +00:00
Tsung-Mao Fang
0ffd9685fd Fix some test cases
Either ignore or fix test cases.

Test: Rerun test cases
Bug: 146316826
Bug: 146317667
Change-Id: Iaf2c094c89982e979abef70c13b86e2c2950146b
2019-12-18 17:44:34 +08:00
Automerger Merge Worker
268595f26a Merge "[Settings] Create a proxy for SubscriptionManager" am: b2380eaaee am: 73e6ec3231
Change-Id: Iafb4bf54ea21d88867b675bb71bf7eb1fec5bf06
2019-12-18 09:21:56 +00:00
Bonian Chen
b2380eaaee Merge "[Settings] Create a proxy for SubscriptionManager" 2019-12-18 09:04:53 +00:00
Arc Wang
808a9f11f5 Merge "[Wi-Fi] Replace WifiTracker with WifiTracker2 in WifiDetailPreferenceController2" 2019-12-18 09:02:37 +00:00
Yoshiaki Naka
81dbc00b6e Retrieve EID from each card
Each eUICC has its own EID. The same EID retrieved from the default
eUICC shall not be displayed for all the SIM status dialogs when the
device supports multiple UICCs.

Bug: 141256483
Test: Manual and SimStatusDialogControllerTest

Change-Id: I367ae3a5f97ff92e03312bed6fe37727ae3798ab
2019-12-18 17:57:47 +09:00
Arc Wang
b60e91bf0b [Wi-Fi] Replace WifiTracker with WifiTracker2 in WifiDetailPreferenceController2
There are still many methods not implemented in WifiEntry. This change has below workarounds:

1. Add WifiEntryShell to provide dummy WifiEntry methods.
2. Add @Ignore to WifiDetailPreferenceController2Test.

Must remove these workarounds after we have more constructed WifiEntry methods.

Bug: 143326832
Test: make RunSettingsRoboTests ROBOTEST_FILTER=com.android.settings.wifi.details2
      make RunSettingsRoboTests ROBOTEST_FILTER=com.android.settings.wifi.savedaccesspoints2
      make RunSettingsRoboTests ROBOTEST_FILTER=com.android.settings.wifi
Change-Id: Ic2edb424b9c645838558fe131991ccb9105dc64c
2019-12-18 15:21:59 +08:00
govenliu
cfd8a5d253 [Wi-Fi] Use new defined proto field for adding new networks panel page.
Use new metric, PANEL_ADD_WIFI_NETWORKS, for proto upload log use.

For R feature: Add a mechanism for apps to add saved networks to the
device, need to apply new metrics category.

Bug: 144891278
Test: Add following test case for testing metric:
      getMetricsCategory_shouldReturnPanelAddWifiNetworks()

Change-Id: I7cde8057c5f2b01c951b1de4203ab1c1a2f0f40a
2019-12-18 13:57:30 +08:00
TreeHugger Robot
1247fd8736 Merge "Create a TetherEnabler class to manage tether settings switch" 2019-12-18 03:13:38 +00:00
Ady Abraham
678e187b8c Settings: add a new developer menu entry to show refresh rate overlay
The refresh rate overlay will be shown on screen if the option is
selected from the developer option.

Test: enable show refresh rate from developer menu
Bug: 129297325
Change-Id: Ic7b59fa93e1ca1e5649501eb87bda64c7a868fa1
2019-12-17 18:20:52 -08:00
Mehdi Alizadeh
3f22797899 Adds BackGestureIndicatorView to animate left and right insets
Bug: 146004827
Test: make RunSettingsRoboTests ROBOTEST_FILTER=BackGestureIndicatorViewTest

Change-Id: Id8c01bf047138a1721237f368f269c6def964515
2019-12-17 14:14:23 -08:00
Mehdi Alizadeh
054d2a555d Extends SeekBarPreference to add labels and callbacks
Adds title, left and right labels to the SeekBarPreference. Also adds
a listener for the seek stop event.

Bug: 146004827
Test: make RunSettingsRoboTests ROBOTEST_FILTER=GestureNavigationSeekBarPreferenceTest

Change-Id: I0ecca4e92cfc52abb8bb975b710f72f75ed5b50d
2019-12-17 14:14:23 -08:00