Peiyong Lin
d3c75bd9eb
[Cherry-pick] Add warning on enabling ANGLE.
...
Enabling ANGLE on incompatible devices may cause some applications to
crash, add a warning.
Bug: b/287909344
Test: atest SettingsRoboTests:GraphicsDriverEnableAngleAsSystemDriverControllerTest
Change-Id: I4f856ee1912a59052a6aaf7dff087ce1b649935e
Merged-In: I4f856ee1912a59052a6aaf7dff087ce1b649935e
2023-10-17 21:02:47 +00:00
Treehugger Robot
7bc84c5814
Merge "Get basic tests working with ActivityScenario and manifest" into main
2023-10-17 17:14:41 +00:00
Joshua Mccloskey
91db1f1a7c
Merge "Adding screenshot tests to settings" into main
2023-10-17 15:01:57 +00:00
Chaohui Wang
f6b787c599
Merge "Improve AppDataUsageDetailsRepository" into main
2023-10-17 11:23:25 +00:00
SongFerngWang
e986c4cd89
Fix the text color of the sim list in the dark theme
...
Bug: 305592527
Test: local test pass
Change-Id: I8700b8b50cbbb04991a272bb2a1e58b0e1924349
2023-10-17 18:06:20 +08:00
Chaohui Wang
17f4fd5a08
BluetoothWiFiResetPreferenceController
...
Fix: 280864229
Test: manually rotate the screen
Test: unit test
Change-Id: I950ebae1c371ce05dd17710788eda3dc8bdfd2ca
2023-10-17 17:43:19 +08:00
Chaohui Wang
342256475d
Improve AppDataUsageDetailsRepository
...
Reduce latency by reduce the number of system calls.
Bug: 295260929
Test: manual - on AppDataUsage page
Test: unit test
Change-Id: If233e223db744cd15d3a769416fd4c5957085417
2023-10-17 16:52:51 +08:00
Treehugger Robot
f17e4138b8
Merge "Add tests for Education" into main
2023-10-17 08:36:01 +00:00
lbill
40dcd5c14f
Fix FingerprintFindSensor header title truncate
...
setHyphenationFrequency(HYPHENATION_FREQUENCY_NORMAL) for
header TextView to avoid truncate.
Bug: 298978826
Test: m RunSettingsRoboTests -j30 ROBOTEST_FILTER= \
SetupFingerprintEnrollFindSensorTest
Change-Id: I604e736661283ff3e8230d200cb0cb07adf29f56
2023-10-17 06:31:05 +00:00
Chaohui Wang
2b045784b9
Merge "New ComposePreference" into main
2023-10-17 02:03:27 +00:00
Bill Yi
73edf08a78
[automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into udc-qpr-dev am: 9f4fc1ddd1
-s ours am: e001a5ffb2
-s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/25069815
Change-Id: I68ccf67b08079e85ad0db52f72d8d9eed3b9e6ca
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-10-17 01:24:05 +00:00
Bill Yi
6bf41a9eed
[automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 1bb2cfb90a
-s ours am: 2dd7c0e9a6
-s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/25069815
Change-Id: Ifaa32754140045cd93ee52a5a183f67aa516dc00
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-10-17 01:23:45 +00:00
Bill Yi
8e2b118451
[automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 17a43cb6ac
-s ours am: e723134049
-s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/25069620
Change-Id: Ib6d383da9b9d24f9043bb5c86ca8cfa7a2f54dfd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-10-17 01:23:31 +00:00
Bill Yi
e001a5ffb2
[automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into udc-qpr-dev am: 9f4fc1ddd1
-s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/25069815
Change-Id: I1b7c7ddac0fd5886e397dbb5a0a89c886430ec32
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-10-17 01:05:09 +00:00
Bill Yi
2dd7c0e9a6
[automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 1bb2cfb90a
-s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/25069815
Change-Id: I86ce80a484107ff24b70204908ac73b395f05078
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-10-17 01:04:56 +00:00
Bill Yi
e723134049
[automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 17a43cb6ac
-s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/25069620
Change-Id: Ia0ff50e86e17fb10daacab180566ed72b9ca4675
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-10-17 01:04:33 +00:00
Bill Yi
9f4fc1ddd1
Merge "Import translations. DO NOT MERGE ANYWHERE" into udc-qpr-dev
2023-10-17 00:38:42 +00:00
Bill Yi
17a43cb6ac
Import translations. DO NOT MERGE ANYWHERE
...
Auto-generated-cl: translation import
Change-Id: I8f91344dcf2c474aa8f85a775ac675994cc478df
2023-10-16 14:12:28 -07:00
Bill Yi
1bb2cfb90a
Import translations. DO NOT MERGE ANYWHERE
...
Auto-generated-cl: translation import
Change-Id: I534002e77bfb5ee035b34f4d49ab603600e6b073
2023-10-16 14:10:47 -07:00
Chun-Ku Lin
d474448501
Merge "Fix AccessibilitySettingsTest" into main
2023-10-16 19:40:03 +00:00
Chun-Ku Lin
b87b655f24
Merge "Fix AccessibilityDetailsSettingsFragmentTest" into main
2023-10-16 18:29:13 +00:00
Guojing Yuan
31fe9920ce
Merge "[CDM PS] Fix an NPE when the device is not associated" into main
2023-10-16 17:16:56 +00:00
Wu Ahan
667341c343
Reland sfps enroll improvement feature with feature provider
...
Prior cl, ag/24720067, was reverted due to platinum failed,
this cl fixes the fails (NPE on UDFPS).
Bug: 288155127
Bug: 305132251
Test: Manually check on Lynx and Felix
Test: atest BiometricsE2eTests:FingerprintEnrollSuccessTest
Test: abtd for platinum, see b/305048300#comment14
Change-Id: I90f4ea14853edf03abd8ffe0b7874894eb2d4f81
2023-10-16 15:23:18 +00:00
Chaohui Wang
f80f42ac71
New ComposePreference
...
And ComposePreferenceController.
So we can use Spa in Preferences based UI.
Bug: 280864229
Test: unit test
Change-Id: Ida6dc62b54de9513d014ad899a65876d3499a02c
2023-10-16 19:05:10 +08:00
Chelsea Hao
ad3dede7c7
Merge "Show toggle summary for LE audio toggle only when the device is not in the allowlist." into main
2023-10-16 10:05:22 +00:00
Chaohui Wang
2aa75f6ad5
Merge "Refresh the DataUsageList when resume" into main
2023-10-16 05:16:55 +00:00
Treehugger Robot
726e4d479d
Merge "AirplaneModePreferenceController: Fix NPE when toggle is hidden" into main am: 3eea9e53a1
am: 72943317d2
am: 99a382a05f
am: dcd5c3ea0e
am: 22b54a82e5
...
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2767862
Change-Id: If9977aa145341824a2e51926b6ec43c36133cd81
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-10-16 04:45:42 +00:00
Treehugger Robot
22b54a82e5
Merge "AirplaneModePreferenceController: Fix NPE when toggle is hidden" into main am: 3eea9e53a1
am: 72943317d2
am: 99a382a05f
am: dcd5c3ea0e
...
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2767862
Change-Id: Ic48cfef3f29f8ba4d8512c73334eb006a8ff2c79
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-10-16 04:15:33 +00:00
Treehugger Robot
dcd5c3ea0e
Merge "AirplaneModePreferenceController: Fix NPE when toggle is hidden" into main am: 3eea9e53a1
am: 72943317d2
am: 99a382a05f
...
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2767862
Change-Id: Ifb295e18feee4a67f4088966d0a19dc0a5ba1fb4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-10-16 03:42:06 +00:00
Treehugger Robot
99a382a05f
Merge "AirplaneModePreferenceController: Fix NPE when toggle is hidden" into main am: 3eea9e53a1
am: 72943317d2
...
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2767862
Change-Id: I5f5f1c389edb778a44aad736081ff077dcd402aa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-10-16 03:08:55 +00:00
Treehugger Robot
72943317d2
Merge "AirplaneModePreferenceController: Fix NPE when toggle is hidden" into main am: 3eea9e53a1
...
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2767862
Change-Id: Id9c81a0d31b4a0452d614b68b6850342a94ab3aa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-10-16 02:37:41 +00:00
Treehugger Robot
3eea9e53a1
Merge "AirplaneModePreferenceController: Fix NPE when toggle is hidden" into main
2023-10-16 01:52:44 +00:00
Chaohui Wang
d9a372204b
Refresh the DataUsageList when resume
...
Like when back from AppDataUsage page.
Bug: 295260929
Test: manual - on DataUsageList
Change-Id: I0b1698e47f06cbe731794a2a6b04e9c9ac9450d8
2023-10-14 19:34:09 +08:00
Alice Kuo
55b8e79016
Merge changes from topic "le_audio_allowlist" into main
...
* changes:
Config LE audio connection by default
LE Audio Allowlist toggle behavior refactor
Remove allowlist reboot behavior
Change the LE Audio Allowlist toggle wording
2023-10-14 08:59:51 +00:00
Chun-Ku Lin
7a79871cd2
Fix AccessibilityDetailsSettingsFragmentTest
...
**Root cause**
With the latest Robolectric migration, it now requires move the
FragmentController to visible so that when we call
fragment#getActivity() it won't return null.
Fix: 300158481
Test: atest AccessibilityDetailsSettingsFragmentTest
Change-Id: Ic1e7a1b0a5dd3248950e7362f081ed53f0562bf1
2023-10-14 01:06:19 +00:00
Chun-Ku Lin
9a0c7ba7da
Fix AccessibilitySettingsTest
...
**Root cause**
- We can no longer mock the fragment.getActivity method because it's a
final method.
- We need to use custom shadows to implement the method we use but not
shadowed in Robolectric. (e.g. ColorDisplayManager's
isReduceBrightColorsActivated method)
Bug: 300157873
Test: atest AccessibilitySettingsTest
Change-Id: Ia7d039dd2e31e6b4a7b9382827f9006d4133ca1d
2023-10-13 21:55:22 +00:00
Joshua McCloskey
cdc3bf0d00
Adding screenshot tests to settings
...
Test: atest SettingsScreenshotTests
Change-Id: I2d22df2e233561e44b233b8ebdfc0291e37aef6b
2023-10-13 19:20:47 +00:00
Chun-Ku Lin
92e6fa4088
Merge "Fix ToggleScreenMagnificationPreferenceFragmentTest" into main
2023-10-13 17:18:27 +00:00
YK Hung
261db5468f
Merge "Fix broken RoboTests in "com.android.settings.fuelgauge.*"" into main
2023-10-13 10:04:25 +00:00
mxyyiyi
a8fa5aad69
Fix broken RoboTests in "com.android.settings.fuelgauge.*"
...
Bug: 305125530
Test: make RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.fuelgauge.*"
Change-Id: Idaf2a5da4aef3a2fe317fc1f5a24ba9ba457cadd
2023-10-13 15:46:44 +08:00
Chaohui Wang
a1243188ce
Merge "Prevent unnecessary reconnection for wifi privacy" into main
2023-10-13 07:08:45 +00:00
Allen Su
ed4b7e736e
Merge "Rename namespace to globalintl" into main
2023-10-13 05:14:33 +00:00
Peiyong Lin
ccf778a8a0
Merge "Allow ANGLE developer option toggle UI enabled if ANGLE is enabled." into main
2023-10-13 04:57:32 +00:00
Chun-Ku Lin
ccdb949cc9
Fix ToggleScreenMagnificationPreferenceFragmentTest
...
**Root cause**
ShadowFragment makes the test using an empty implementation of onCreate,
hence the test execution throws SuperNotCalledException.
ShadowFragment was accidentally added to this test when migrate to the
latest Robolectric. Removing ShadowFragment in the config fixes the
test.
Fix: 300158627
Test: atest ToggleScreenMagnificationPreferenceFragmentTest
Change-Id: I8782ac11a93c5f89b781dcca1713968ed18802cf
2023-10-13 02:44:12 +00:00
Hao Dong
03af4571e3
Add tests for Education
...
Test: atest FingerprintEnrollFindSensorViewModelV2Test
Bug: 295206773
Change-Id: I741ddf49fccae7a301e2fb79194ce8cc6b966070
2023-10-13 00:51:55 +00:00
Peiyong Lin
8e6af783ce
Allow ANGLE developer option toggle UI enabled if ANGLE is enabled.
...
Previously the ANGLE developer option toggle UI was disabled by default
and a user would need to use adb command to set the debug property to
true to enable it, and every reboot would reset the debug property to
false again and hence disable the toggle UI again. However, since ANGLE
is still in experiment, we would like to make sure it's not easy to
enable but easy to disable. This patch keeps ANGLE toggle UI enabled
when ANGLE is enabled so that users can easily disable. Once ANGLE is
disabled, if the debug property is not set to true, the toggle UI will
remain disabled.
Bug: b/293503000
Test: atest -c GraphicsDriverEnableAngleAsSystemDriverControllerJUnitTest
Test: atest SettingsRoboTests:GraphicsDriverEnableAngleAsSystemDriverControllerTest
Change-Id: I2e63431cd0d8cf4712fc278646627fbf34a2b542
2023-10-13 00:36:36 +00:00
Wa Gao
780a0cb230
Merge "Adds the strings for ODAD content protection setting page." into main
2023-10-12 22:59:16 +00:00
Priyanka Advani
fc3433b454
Merge "Revert "Implement sfps enroll improvement feature with feature provider"" into main
2023-10-12 21:07:27 +00:00
Becca Hughes
ccbe3cea6f
Merge "Add support for settingsActivity in settings" into main
2023-10-12 19:19:55 +00:00
Wa Gao
b73092bfb1
Adds the strings for ODAD content protection setting page.
...
Bug: b/302189945
Change-Id: Idca0fe5b4f49f8fb69e63a3e58a7e8fa85300021
2023-10-12 19:13:17 +00:00