Commit Graph

101153 Commits

Author SHA1 Message Date
Etienne Ruffieux
6f6f5e6b42 Merge "Replaced use of Bluetooth resource by SystemApi" am: 49a9361062
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1939113

Change-Id: Ieb884abbad772e2295f00aba59962472dec3de8d
2022-01-25 14:22:26 +00:00
Etienne Ruffieux
49a9361062 Merge "Replaced use of Bluetooth resource by SystemApi" 2022-01-25 14:00:08 +00:00
Tsung-Mao Fang
5ff3e8dc8a Merge "Ignore broken tests" 2022-01-25 07:18:16 +00:00
Bill Yi
c556615f57 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ic56844c2efc174d299775ff03b2abc3f10d49de9
2022-01-25 06:32:40 +00:00
Wilson Wu
56d8703fcb Introduce AvailableVirtualKeyboardFragmentTest
Add a test for AvailableVirtualKeyboardFragment

Fix: 207452897
Test: make RunSettingsRoboTests ROBOTEST_FILTER=AvailableVirtualKeyboardFragmentTest
Change-Id: I83d30ae9d085c2b90fd16e5f6c4100bb82b6b588
2022-01-25 14:29:24 +08:00
Bill Yi
4dab10d29f Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ic26c56697a7c78fde677f39f63562fa8327d4b2d
2022-01-25 06:29:10 +00:00
Bill Yi
f4ce835b9d [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: e4ca28a0d0 2p: c09b5ba58d
Blank merge reason: parent was merged -s ours

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16712348

Change-Id: Id93cce35231218b4f0c5ec9ccb17ad2a54ce1c19
2022-01-25 06:26:03 +00:00
Bill Yi
86cab2cd66 [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: e4ca28a0d0
Blank merge reason: commit message contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16712348

Change-Id: If1bb4c3824bdba9640309da80b4b7168b32076f3
2022-01-25 06:25:53 +00:00
Bill Yi
c09b5ba58d [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: e4ca28a0d0
Blank merge reason: commit message contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16712348

Change-Id: Ie58b5d18d82912aa129715db7a7480aa523b3326
2022-01-25 06:25:53 +00:00
Bill Yi
e4ca28a0d0 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I09e6df9ed565dcd098d1b1a98c51786fe5d87785
2022-01-25 06:25:43 +00:00
Bill Yi
17d611976c Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I99b9df35da3f1a3ecbc0c0be54cd59dbddb64735
2022-01-25 06:21:42 +00:00
Bill Yi
c7a1715bba [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 2953e0c45f
Blank merge reason: commit message contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16712346

Change-Id: I8b7853dcf3ca7a60f033306d29ad519fecd0941d
2022-01-25 06:18:22 +00:00
Bill Yi
2953e0c45f Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I8e9c6c97c110158c929e9b80da1f105a6182644d
2022-01-25 06:18:14 +00:00
Bill Yi
d2bef06860 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I3082c8189de757474d98e16540581bafa3a76467
2022-01-25 06:14:00 +00:00
Bill Yi
abf6fc3cde Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I8ea0d5d717a9d1126b53b41d5461ce43cbc3e868
2022-01-25 06:11:20 +00:00
Garfield Tan
7a380f3dc6 Ask user to reboot when enabling freeform and desktop mode
The introduction of FreeformTaskListener in WM shell requires a reboot
after enabling freeform support fully. Let's add a dialog explaining the
requirement and ask user to reboot the device.

Enabling desktop mode also requires a reboot to take effect, so this CL
also adds the support to it.

There is also a cancel button to dismiss the dialog without a reboot,
just in case users need to hold off the reboot for any reason.

Bug: 215437867
Test: Pressing OK reboots the device. Pressing Cancel dismisses the
dialog.
Test: atest SettingsRoboTests:FreeformWindowsPreferenceControllerTest
Test: atest SettingsRoboTests:DesktopModePreferenceControllerTest

Change-Id: I553237a29751f73afa9fd4066241a19740872f6f
2022-01-24 21:19:46 -08:00
Frank Li
4cac1b2289 Merge "[MS48.2] Remove NetworkStatsHistory from CycleAdaptor" 2022-01-25 04:50:59 +00:00
Xiao Ma
f621c4ba14 Fix EthernetManager.addListener dependency in Tethering settings.
Ethernet service related files are going to be moved into Connectivity
module. EthernetManager.addListener(listener, exectuor) will be exposed
out as module-lib API. Replace the current API usage with the one to be
exposed.

android.os.HandlerExecutor is a hidden API which isn't visible to modules,
try to replace HanlderExecutor class with Handler.post itself although
Setttings can still access this API.

Bug: 210586283
Test: m
Change-Id: I618b43769c68897f4724fae8213181be1cc770c6
2022-01-25 04:49:16 +00:00
Tsung-Mao Fang
ff810c3a8a Ignore broken tests
Bug: 216213206
Test: run robo test
Change-Id: I4538465480595524f5d49861f822572842f503ae
2022-01-25 12:21:42 +08:00
TreeHugger Robot
1cdd5923f8 Merge "Mock UserManager.class for WifiSettingsTest" 2022-01-25 03:11:38 +00:00
Lais Andrade
f067833d56 Merge "Disable ring, notification and touch vibration in silent mode" 2022-01-25 00:09:36 +00:00
Kholoud Mohamed
17979a4d32 Merge "Change the managed profile icon for profile selector" 2022-01-24 23:11:35 +00:00
Yuri Lin
e6e5847cce Rename Do Not Disturb -> Priority Mode
in strings only -- no UI changes in this CL.

Bug: 190180868
Test: manual, ZenModeBypassingAppsPreferenceControllerTest (robotest)

Change-Id: I7bb74d2fd1a9d3b24a8b81a6cc8ba35d38b25656
2022-01-24 14:41:21 -05:00
Lucas Silva
0128837312 Merge "Make the Settings split ratio configurable." 2022-01-24 16:17:20 +00:00
Oli Lan
78d96dce02 Allow the new avatar picker to open full screen on tablets.
This allows the new avatar picker to open as a full screen activity
on tablet, rather than being embedded in the right-hand pane.

Bug: 215134398
Test: manual, opened avatar picker on tablet
Change-Id: Ide8f81643e90c90850ad93ec802bb557e260baed
2022-01-24 16:03:09 +00:00
Quang Luong
a148b32bc8 Merge "Do update signal icon for -1 level in AddAppNetworksFragment" 2022-01-24 16:03:06 +00:00
Lais Andrade
d7457a0030 Rename Sound settings page to "Sound & vibration"
Rename title of the settings page for sound a vibration to include the
vibration term. Also update the keywords and synonyms for search
matches.

Bug: 185351540
Test: manual
Change-Id: Ie9ba24667257656d872321881d348af20819ed89
2022-01-24 15:45:27 +00:00
Lais Andrade
dbcdd2bf46 Add VibrationPreferenceControler to check availability
Add check to Vibrator.hasVibrator() to the "Vibration & haptics"
settings page.

Bug: 178530831
Test: VibrationPreferenceControllerTest
Change-Id: Ia574d59ad086dd273a9a4ca9d3b472bf23e3684a
2022-01-24 15:45:13 +00:00
Jan Tomljanovic
1e81c40558 Merge "Call system service API instead of checking the phenotype flag directly." 2022-01-24 12:55:20 +00:00
PETER LIANG
248e62119a Merge "New feature “Text and reading options” for SetupWizard, Wallpaper, and Settings (8/n)." 2022-01-24 12:21:31 +00:00
Peter_Liang
d65cf9676f New feature “Text and reading options” for SetupWizard, Wallpaper, and Settings (8/n).
- Add new icon assest for SetupWizard.
1) Refine the oic_adaptive_font_donwload.xml
2) The other asset will be used in next patches.

Bug: 211503117
Test: make
Change-Id: Id595f22f5e400ce3f4e25a6325217dc9f678b000
2022-01-24 12:20:37 +00:00
Lais Andrade
76b2cd60e5 Disable ring, notification and touch vibration in silent mode
Disable haptic settings for ring, notification and touch feedback when
the phone ringer mode is set to silent.

Preserve the setting values and display message explaining why those
settings are disabled.

Bug: 203188852
Test: *Vibration[Intensity|Toggle]PreferenceControllerTest
Change-Id: I6c24079ece9d637f2feb487f756937888a92caa7
2022-01-24 11:01:08 +00:00
TreeHugger Robot
3b362e84f4 Merge "Fix SliceContextualCardRendererTest" 2022-01-24 10:34:56 +00:00
TreeHugger Robot
cf5edf2cc1 Merge "Fix ContextualCardsFragment test failure" 2022-01-24 10:19:53 +00:00
Jason Chiu
1a6131860a Merge "[Large screen] Open the search page in full-screen mode" 2022-01-24 10:06:32 +00:00
TreeHugger Robot
544397015b Merge "Fix WifiSummaryUpdaterTest issues for registerReceiver security design" 2022-01-24 09:46:33 +00:00
Yi-Ling Chuang
85356adb94 Fix EligibleCardChecker test failure
Use a fake slice instead of a wifi slice to decouple the dependency.

Fixes: 215046603
Test: robotest
Change-Id: I02da766007c5bb096dc0844f9ea62d0b49e1f4d6
2022-01-24 15:59:57 +08:00
Yi-Ling Chuang
beb88dc4a9 Fix SliceContextualCardRendererTest
Fixes: 215046609
Test: robotest
Change-Id: I6b48d3b0739fe64a2380426efa03acd1971cd6b1
2022-01-24 14:04:01 +08:00
Yi-Ling Chuang
62b1f71402 Fix ContextualCardsFragment test failure
Fixes: 215046286
Test: robotest
Change-Id: I930c3009891512011974aa399b9a4034d33243e5
2022-01-24 13:55:19 +08:00
Stanley Wang
d329f3d79c Ignore tests to avoid Settings presubmit test failure.
Bug: 216036457
Test: run robo test
Change-Id: I4ec2f2f9a25e7212ac65710e88541661cd59d461
2022-01-24 12:58:31 +08:00
Jason Chiu
94a9c57759 [Large screen] Open the search page in full-screen mode
Bug: 205079744
Test: manual
Change-Id: I3ac663b42fc0538dcb20d53f456b90ea68c9093d
2022-01-24 12:21:58 +08:00
TreeHugger Robot
53efa5be66 Merge "Mock WifiP2pManager.class for WifiP2pSettingsTest" 2022-01-24 02:49:09 +00:00
Menghan Li
109e73a844 Merge "Utils to operate tooltips widget for QS panel" 2022-01-24 02:10:49 +00:00
YK Hung
5b157ee304 Merge "Fix broken tests: com.android.settings.fuelgauge" 2022-01-24 00:23:51 +00:00
menghanli
db8f2a4004 Utils to operate tooltips widget for QS panel
Bug: 210356011
Test: make RunSettingsRoboTests ROBOTEST_FILTER=AccessibilityQuickSettingUtilsTest
Change-Id: Ia743be8350e6a84cbe44827fb2d6f44f1f04e426
2022-01-24 08:10:43 +08:00
Junyu Lai
3a15d6cab1 [MS48.2] Remove NetworkStatsHistory from CycleAdaptor
While the ChartData changes the types of stored data.
Modify CycleAdaptor accordlingly for the compatibility.

Test: atest clockwork-settings-robotests
      make RunSettingsRoboTests -j40
      make RunSettingsLibRoboTests
           ROBOTEST_FILTER=DataUsageControllerTest
      make RunSettingsLibRoboTests
           ROBOTEST_FILTER=NetworkCycleChartDataLoaderTest
      make RunSettingsLibRoboTests
           ROBOTEST_FILTER=NetworkCycleDataForUidLoaderTest
      make RunSettingsLibRoboTests
           ROBOTEST_FILTER=NetworkCycleDataLoaderTest
      make RunSettingsLibRoboTests
           ROBOTEST_FILTER=DataUsageUtilsTest
Bug: 204830222
Ignore-AOSP-First: Related API conflict, need master first.
Change-Id: Ia778d680d5354fb67476db0763dfab017284dc4a
2022-01-24 01:07:53 +08:00
Weng Su
679153be09 Mock WifiP2pManager.class for WifiP2pSettingsTest
Bug: 214938188
Test: manual test
make RunSettingsRoboTests ROBOTEST_FILTER=WifiP2pSettingsTest

Change-Id: I21bfc1c8303970437ae2641ed0f2f9c16f09b33f
2022-01-23 10:15:40 +00:00
ykhung
c8a63b3416 Fix broken tests: com.android.settings.fuelgauge
Bug: 215064709
Fixes: 215064709
Test: make -j64 RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.fuelgauge"
Change-Id: I79a27b4fcef3a21207b37db422d983ae9d521b45
2022-01-23 16:28:31 +08:00
Xinyi Zhou
b16d430e54 Merge "Add MainSwitch for Fast Pair settings" 2022-01-23 02:54:51 +00:00
Weng Su
481f696a88 Fix WifiSummaryUpdaterTest issues for registerReceiver security design
- Security team add new interface to Context.registerReceiver() with a
third parameter for new security design.

- The new interface might have some issues in the test environment.

- Spy the registerReceiver() and unregisterReceiver() to avoid
unexpected issues.

Bug: 214938188
Test: manual test
make RunSettingsRoboTests ROBOTEST_FILTER=WifiSummaryUpdaterTest

Change-Id: Ibd1c5c1f7b4309ad5079f33bb232f249c6bd997f
2022-01-22 14:40:34 +00:00