Commit Graph

17846 Commits

Author SHA1 Message Date
Matías Hernández
2bdd13fd26 Merge "Follow-up improvements to zen mode icon picker" into main 2024-06-13 09:28:24 +00:00
Chelsea Hao
4826efcbbf Merge "[Audiosharing] Add logging 2." into main 2024-06-13 08:56:59 +00:00
Fiona Campbell
21c0dd70ae Merge "Even Dimmer for manual screen brightness mode" into main 2024-06-13 08:50:20 +00:00
Julia Reynolds
162813cd5a Merge "Support device effects for manual mode" into main 2024-06-12 23:29:59 +00:00
Matías Hernández
37bdf39ad6 Follow-up improvements to zen mode icon picker
* Propose icons from com.android.internal.R instead of android.R (as a proof of concept) since this is what we'll be doing with the final icons.
* Provide the icon options as a parameter to the controller (can also be used for testing).
* Fix some Lint warnings.

Test: atest ZenModeIconPickerListPreferenceControllerTest
Bug: 333901673
Flag: android.app.modes_ui
Change-Id: I023eed0fd5719c5c4540f8d145335f60d088e7fb
2024-06-12 19:33:12 +02:00
YK Hung
5a52e7068c Merge "Help talkback to read the hyphen of time frame '{day}{time}-{time}' in PreferenceCategory Title." into main 2024-06-12 16:20:11 +00:00
Julia Reynolds
71698935f3 Support device effects for manual mode
Test: ZenModesBackendTest
Flag: android.app.modes_ui
Fixes: 333530553
Change-Id: I31c484b73d1dfe0f986fe3c344f3a9a1d8580172
2024-06-12 15:19:42 +00:00
Matías Hernández
5527df1330 Merge "Re-enable notifications modes tests in SettingsRoboTests" into main 2024-06-12 10:10:50 +00:00
mxyyiyi
d047b6da10 Help talkback to read the hyphen of time frame '{day}{time}-{time}' in PreferenceCategory Title.
Bug: 346707823
Test: atest + manual
Change-Id: I3098ccaffd6396fb1f00e3b57c326980250651f2
2024-06-12 17:09:04 +08:00
Angela Wang
7b46a822ee Merge "Fix incorrect summary for LE audio hearing aids" into main 2024-06-12 08:11:29 +00:00
chelseahao
a3b1638c4b [Audiosharing] Add logging 2.
Test: atest -c com.android.settings.connecteddevice.audiosharing.audiostreams
Bug: 308368124
Change-Id: I50fc57427aa135a13566c4627ba193aed9d73e0d
2024-06-12 08:04:17 +00:00
Matías Hernández
f13c16399e Re-enable notifications modes tests in SettingsRoboTests
Fixes: 346276716
Test: atest com.android.settings.notification.modes
Flag: NONE
Change-Id: I573fe1b719a348d996eda39633811ad0bc34c847
2024-06-11 16:37:19 +00:00
Ze Li
44de7e98d3 Merge "[ConnectedDevicePage] Make bonded bluetooth devices can be found by Settings search" into main 2024-06-11 10:50:04 +00:00
Yiyi Shen
996e12b34d Merge "[Audiosharing] Increase test coverage for audio sharing" into main 2024-06-11 09:32:10 +00:00
Yiyi Shen
7f55253fb2 Merge "[Audiosharing] Log action in audio sharing dialogs" into main 2024-06-11 08:51:57 +00:00
Ze Li
caa3a4b9fd [ConnectedDevicePage] Make bonded bluetooth devices can be found by Settings search
Bonded bluetooth devices can be found by Settings search using device name and jump to connected device page.

Test: atest ConnectedDeviceGroupControllerTest
Bug: 319056077
Change-Id: I738d7bd400e41647666966e6b39cd7bff01fc551
Flag: com.android.settings.flags.Flags.enableBondedBluetoothDeviceSearchable
2024-06-11 16:44:01 +08:00
Yiyi Shen
643d6c66c1 [Audiosharing] Increase test coverage for audio sharing
Bug: 345686602
Test: atest
Change-Id: Ib75a0127921d7ac6e7e0bbc82258ac0a21be90a2
2024-06-11 15:51:07 +08:00
Yiyi Shen
7f2090d395 Merge "[Audiosharing] Add test for confirm dialog." into main 2024-06-11 05:12:58 +00:00
Angela Wang
5fef3c2bb0 Fix incorrect summary for LE audio hearing aids
For LE audio lead device, the `CachedBluetoothDevice.isConnected()` will return true since `BluetoothLeAudio.getConnectionStatus(device)` will return STATE_CONNECTED even if the device is powered off. Changing to use `CachedBluetoothDevice.getDevice().isConnected()` can avoid the wrong value of the connection status of the device.

Bug: 325524694
Flag: EXEMPT bugfix
Test: atest AccessibilityHearingAidPreferenceControllerTest
Change-Id: If763c0861bb5796d9bc0511916b7077c784b49f5
2024-06-11 04:55:57 +00:00
Yiyi Shen
18c0e172a5 [Audiosharing] Add test for confirm dialog.
Bug: 345686602
Test: atest
Change-Id: Ifb461bf37f1f802de41c2957ac9aef4f7d7578de
2024-06-11 11:48:46 +08:00
Ang Li
5a81e24367 Merge "Re-enables ChooseLockTypeDialogFragmentTest for robolectric" into main 2024-06-11 02:52:26 +00:00
Matías Hernández
ec5b25eb48 Merge "Add icon picker for zen modes" into main 2024-06-10 22:38:36 +00:00
Yuri Lin
00c7a2c16b Merge "Add schedule setting page for time-based modes." into main 2024-06-10 20:50:57 +00:00
Matías Hernández
8d397f038f Add icon picker for zen modes
Bug: 333901673
Test: atest ZenModeIconPickerListPreferenceControllerTest
Flag: android.app.modes_ui
Change-Id: Ib6faaac7c93b25423d18dbdcd0a2310de15fa86f
2024-06-10 19:37:49 +02:00
Yuri Lin
4203f311dd Add schedule setting page for time-based modes.
Creates new layout for setting the start & end time, and days of the week, for a schedule-based mode.

This is close to the mocks specified in https://screenshot.googleplex.com/8zmb7PAjjt73VkN, but with the following differences:
- the end time is left-aligned with the center rather than on the right side of the screen. This is a side effect of using LinearLayout to evenly space start & end times, and could in theory be fixed by using a ConstraintLayout, but that option seems to cause times to overlap instead of wrap when display size is cranked up. Could be fixed later.
- no icons yet on either side of the time display
- no Done button. Instead, has the "exit at alarm" switch that exists today.

Have not yet checked how this interacts with TalkBack, etc.

Flag: android.app.modes_ui
Bug: 332730302
Test: ZenModeSetSchedulePreferenceControllerTest, ZenModeExitAtAlarmPreferenceControllerTest, ZenModeSetTriggerLinkPreferenceControllerTest
Test: manual: interacting with UI in normal size, with font & display at minimum and maximum, and in locales (fr) where the first day of the week is a different day
Change-Id: I0b76f55891d6c12fc27720657c9eea6fe42fbafe
2024-06-10 13:26:06 -04:00
Shai Barack
075abe9107 Merge "Revert "Delete "background process limit" debug option"" into main 2024-06-10 17:09:55 +00:00
Fiona Campbell
65ccea2e52 Even Dimmer for manual screen brightness mode
Bug: 338416256
Fixes: 331324279
Test: atest EvenDimmerPreferenceControllerTest

Change-Id: I039f90df1b77348cde543964905c0745c888413d
2024-06-10 11:16:31 +00:00
Ang Li
3e24b134c4 Re-enables ChooseLockTypeDialogFragmentTest for robolectric
Bug: 342667939
Test: atest SettingsRoboTests
    and ABTD (https://android-build.corp.google.com/builds/abtd/run/L66300030004349936)
Change-Id: I50196830b25cc498cc6601daa2e8fcb99452093e
2024-06-07 22:14:58 +00:00
Chun-Ku Lin
bcb877406f Merge "Improve the speed of AccessibilitySettings#containsTargetNameInList to help reduce the a11y settings' cold start latency." into main 2024-06-07 21:17:44 +00:00
Shai Barack
d6f0a89e20 Revert "Delete "background process limit" debug option"
This reverts commit c163eb07ce.

Reason for revert: we did a 180 on MCP deprecation, see b/345628418

Change-Id: I2bd2dd7b8fa5275fa81f75d47919ac70d721cd72
2024-06-07 19:22:24 +00:00
Joshua Mccloskey
f567d19681 Merge "Biometrics Enrollment refactor (7/N)" into main 2024-06-07 18:23:56 +00:00
YK Hung
06ee9cdb27 Merge "Allow wireless charging label to customize content descriptions" into main 2024-06-07 10:55:26 +00:00
Yiyi Shen
2909bf380e Merge "[Audiosharing] Log action when change primary device" into main 2024-06-07 09:09:24 +00:00
Yiling Chuang
6dc8193d81 Allow wireless charging label to customize content descriptions
Fixes: 343616480
Test: atest SettingsRoboTests
Change-Id: I0d87b50fd88167b57ce9d9b06d776ba2ebe304ea
2024-06-07 07:20:22 +00:00
Yiyi Shen
fec890eabd [Audiosharing] Log action in audio sharing dialogs
P3 for add audio sharing loggings

Bug: 331515891
Test: atest
Change-Id: Iea29e74e00c239e8cb8cddee6eae71ba902add01
2024-06-07 11:32:19 +08:00
Ang Li
d20d913a13 Merge "Re-enable settings password tests." into main 2024-06-07 03:21:26 +00:00
Chun-Ku Lin
7e03bf65c7 Improve the speed of AccessibilitySettings#containsTargetNameInList to
help reduce the a11y settings' cold start latency.

Bug: 327052480
Flag: EXEMPT bugfix low risk
Test: atest com.android.settings.accessibility
Test: manual (a11y settings page still shows up with correct content)
Change-Id: Ib9980756d88a218ebb10f17d6a3b0d9a406a0ddd
2024-06-07 02:41:26 +00:00
Ang Li
68f1397e1c Re-enable settings password tests.
Bug: 344611440
Test: atest -c SettingsRoboTests
    (http://fusion2/749378e0-712e-4817-a490-d80f044c2f37)
Change-Id: I7d3f69df19accf9d22040706dba74ae6be304e85
2024-06-07 02:05:17 +00:00
Treehugger Robot
96a1e43d98 Merge "Loading the A11yHearingAidPreference summary in the background" into main 2024-06-07 00:26:38 +00:00
Chun-Ku Lin
b80641ba26 Loading the A11yHearingAidPreference summary in the background
Bug: 327052480
Flag: EXEMPT low risk bug fix
Test: atest com.android.settings.accessibility
Change-Id: I644be0c7ee289a4ea675984068ac494b97ebff68
2024-06-06 23:11:51 +00:00
Treehugger Robot
39e9aede9a Merge "Delete "background process limit" debug option" into main 2024-06-06 07:46:23 +00:00
Yiyi Shen
61b4f199ca [Audiosharing] Log action when change primary device
P2 for add audio sharing loggings

Bug: 331515891
Test: atest
Change-Id: I9b806312c831320b46b63942acd3119b5ff40ae4
2024-06-06 13:58:44 +08:00
Joshua McCloskey
584b6c9e96 Biometrics Enrollment refactor (7/N)
This cl moves the creation of repos and interactors to the
SettingsApplication.
Bug: 297082837
Test: atest

Change-Id: I9049da6f03bb1dc18d4186961444bf613d773d0e
2024-06-05 18:18:59 +00:00
Shai Barack
c163eb07ce Delete "background process limit" debug option
We're deprecating max limits for cached/empty app processes.

Bug: 253908413
Change-Id: Iff80f173e72e9b77faefe3c66543c0756f2e6f74
Flag: EXEMPT cleaning up now-unused flag
2024-06-05 16:07:08 +00:00
mxyyiyi
35282888d9 Clear app optimized mode sharedpreferences when Reset all app preferences.
- Clear events when user click Settings > Apps > All apps > top-right button > "Reset app preferences"
- Update AppOptModeSharedPreferencesUtilsTest from robotest to unit test.

Bug: 338965652
Test: atest + manual
Change-Id: Ib0a1bd113ab31fea247e5a5430ab35b252c6e1f5
2024-06-05 18:43:41 +08:00
Ram Peri
07734b56ba Merge "Reduce number of tests in SettingsRoboTests" into main 2024-06-05 03:31:10 +00:00
Chris Antol
03e59a0827 Merge "Ignore fragment attr from ext authenticator resource" into main 2024-06-05 02:01:07 +00:00
Chris Antol
2cb9b10ed9 Ignore fragment attr from ext authenticator resource
Bug: 341886134
Test: Unit Test
Test: Manual - see ticket for steps
Flag: EXEMPT <security>

Change-Id: Id91c2b3b6d16ba3702ee2cd6723365a4db52863b
2024-06-04 17:06:26 +00:00
mxyyiyi
00507a47ec Fix post-comment in ag/27593647 to improve the readability.
Bug: 338965652
Test: atest + manual
Change-Id: I8e4c8a4508dd8c5afd1f16c6129146ba6e13bde2
2024-06-04 15:48:36 +08:00
Ram Peri
843b75308b Reduce number of tests in SettingsRoboTests
Bug: 342210014
Flag: NA not applicable
Test: atest SettingsRoboTests
Change-Id: I0465752ad84cc85e8619aba16e741030fbdfc679
2024-06-03 14:38:33 -07:00