Julia Reynolds
3b62c23310
Design refresh for modes that don't filter notifications
...
And fix a crash noticed in ZenModeAppsLinkPreferenceController
Test: atest com/android/settings/notification/modes
Fixes: 308820027
Flag: android.app.modes_ui
Change-Id: I0cfe4e10ca7ff97dac3b3b8756cc36f4d6f91ea2
2024-06-20 13:10:36 +00:00
Haijie Hong
78a0662272
Merge "Determine Spatial Audio AudioDeviceAttributes by BT profile state" into main
2024-06-20 12:16:54 +00:00
Tetiana Meronyk
826b188119
Merge "Fix tests in UserDetailsSettingsTest and TimeoutToDockUserPreferenceControllerTest" into main
2024-06-20 10:34:18 +00:00
Tetiana Meronyk
c502ee4540
Fix tests in UserDetailsSettingsTest and TimeoutToDockUserPreferenceControllerTest
...
Bug: 313530297
Test: atest UserDetailsSettingsTest && atest TimeoutToDockUserPreferenceControllerTest
Flag: EXEMPT fixing tests that were failing before
Change-Id: Ic4bd257aa26c6627d271acd1f22b59855bbddb20
2024-06-19 21:09:55 +00:00
Matías Hernández
2345b63c68
Merge "Support adding an automatic schedule to previously-manual system-owned modes" into main
2024-06-19 16:16:07 +00:00
Matías Hernández
0bf4899f3e
Support adding an automatic schedule to previously-manual system-owned modes
...
Bug: 342156843
Bug: 326442408
Flag: android.app.modes_ui
Test: atest com.android.settings.notification.modes
Change-Id: Ib7d15b8fc949fa73015537f03a882ef7eb6b4bcd
2024-06-19 15:06:08 +02:00
YK Hung
bf38bed803
Merge "Dump the BatteryReattribute from the database into bugreport (2/5)" into main
2024-06-19 02:29:31 +00:00
YK Hung
d226a97617
Dump the BatteryReattribute from the database into bugreport (2/5)
...
Example:
BatteryReattributeEntity{
Jun 18, 2024, 16:22:51
Jun 18, 2024, 16:23:01
reattribute_data {
key: 1001
value: 0.1
}
reattribute_data {
key: 1002
value: 0.99
}
timestamp_end: 1718727781368
timestamp_start: 1718727771368
}
BatteryReattributeEntity{
Jun 18, 2024, 16:22:31
Jun 18, 2024, 16:22:51
reattribute_data {
key: 1003
value: 1.0
}
timestamp_end: 1718727771368
timestamp_start: 1718727751368
}
Bug: 346706894
Test: atest SettingsRoboTests:com.android.settings.fuelgauge.batteryusage.bugreport
Flag: EXEMPT bug fix
Change-Id: Ie2544b9f43e399d87eb29354b401834372c3a9f7
2024-06-18 16:37:55 +00:00
Haijie Hong
4296b30dcf
Determine Spatial Audio AudioDeviceAttributes by BT profile state
...
Test: atest BluetoothDetailsSpatialAudioControllerTest
Bug: 341005211
Flag: com.android.settingslib.flags.enable_determining_spatial_audio_attributes_by_profile
Change-Id: I1436019d239414c3855d506dcf35d736c8428e0a
2024-06-18 13:11:02 +00:00
Yiyi Shen
f86b438e3a
Merge "[Audiosharing] Add audio sharing loggings (P4)" into main
2024-06-18 07:47:24 +00:00
Matías Hernández
ee414b4c43
Extract the not-strictly-modes-related parts of ZenModesBackend
...
So that when it's moved to SettingsLib, it doesn't need to carry that baggage.
Bug: 346519570
Test: atest com.android.settings.notification.modes
Flag: android.app.modes_ui
Change-Id: I7911a521d96f5dbac2c2395171d324b7b54b8b07
2024-06-17 18:11:39 +02:00
Treehugger Robot
a3894e6761
Merge "Add new database table and proto for battery usage reattribution (2/5)" into main
2024-06-17 11:28:54 +00:00
Yiyi Shen
52cbe21569
[Audiosharing] Add audio sharing loggings (P4)
...
Bug: 331515891
Test: atest
Change-Id: I05e1c138f9cc32c4e873852f93bac65d3d0dc3ca
2024-06-17 18:46:11 +08:00
YK Hung
f5cf54bcc7
Add new database table and proto for battery usage reattribution (2/5)
...
Bug: 346706894
Test: atest SettingsRoboTests:com.android.settings.fuelgauge.batteryusage
Flag: EXEMPT bug fix
Change-Id: If360246d974abdea7004023aedcf1a4be7b63633
2024-06-17 10:13:34 +00:00
mxyyiyi
08907935df
Add flag to force expire the app optimization mode event.
...
Bug: 347444433
Test: atest
Change-Id: Id502607ed6c07870d14346656a65ceccb756b78f
2024-06-17 17:04:05 +08:00
Yiyi Shen
9bd19f4604
Merge "[Audiosharing] Reset shadows after tests." into main
2024-06-16 13:24:13 +00:00
Yiyi Shen
440d061648
Merge "[Audiosharing] Increase audio sharing test coverage" into main
2024-06-16 13:21:38 +00:00
Alexander Roederer
be647ab053
Merge changes from topic "b308819928-ModesSettingsAppBreakthroughPage" into main
...
* changes:
Modify Summary for Mode's Apps settings page
Adds summary helper for apps subtitle
2024-06-16 02:49:53 +00:00
Alexander Roederer
41902bb0c5
Modify Summary for Mode's Apps settings page
...
Adds call to SummaryHelper to set Apps preference summary.
Bug: 308819928
Test: atest ZenModeAppsLinkPreferenceControllerTest
Flag: android.app.modes_ui
Change-Id: Iebec11afc62ecb79386e1866af57cd4e68461a95
2024-06-15 04:48:38 +00:00
Matías Hernández
8409c39d94
First bits of "add a mode"
...
* Preference below the modes list.
* Temporarily triggers addition of a mode with default name and type=SCHEDULE_TIME (type will be "manual only" later).
* Fixed sorting of modes in the list when refreshing (new modes were added at the bottom instead of where they should, the same would've happened for renamed modes).
* Minor polishes (extracted fragment launch to helper class, renamed item controller class for clarity).
Test: atest com.android.settings.notification.modes
Bug: 326442408
Fixes: 347198709
Flag: android.app.modes_ui
Change-Id: Ie276c92181c5374faf74592433595e7e15a5efc0
2024-06-14 15:23:30 +00:00
chelseahao
16f9205fb6
[Audiosharing] Add tests for qrcode related classes.
...
Test: atest -c com.android.settings.connecteddevice.audiosharing.audiostreams
Bug: 308368124
Change-Id: I74caacf43a23bbd0a6da44af24a1be4dd9544a5d
2024-06-14 11:38:51 +00:00
Chelsea Hao
24d8411915
Merge changes I6322ccbb,Idc96c23d into main
...
* changes:
[Audiosharing] Add tests.
[Audiosharing] Add logging 3.
2024-06-14 11:07:49 +00:00
Yiyi Shen
f570ee0018
[Audiosharing] Reset shadows after tests.
...
Test: atest
Bug: 345686602
Change-Id: I311ba5c8d234240e61dffd17b4357452c12f4fb1
2024-06-14 17:44:33 +08:00
Treehugger Robot
fbf3403f8d
Merge "Reenable all tests for SettingsRoboTests" into main
2024-06-14 08:52:33 +00:00
chelseahao
f6b235746d
[Audiosharing] Add tests.
...
Test: atest -c com.android.settings.connecteddevice.audiosharing.audiostreams
Bug: 308368124
Change-Id: I6322ccbb5deffe2bc169a898ef0208e135caa819
2024-06-14 08:48:17 +00:00
Matías Hernández
e3570eb633
Merge "Load zen mode type icon options from the proper resources" into main
2024-06-14 08:10:59 +00:00
Fan Wu
595ed9645e
Reenable all tests for SettingsRoboTests
...
Updating tests in development/ due to ag/27774179
Temporarily ignore tests in UserDetailsSettingsTest due to ag/27785999
Bug: 347125800
Test: atest
Change-Id: Iaed79c3fde80f5b2c31754bef4a93546813444a8
2024-06-14 07:27:31 +00:00
Yiyi Shen
2c6b9bb364
[Audiosharing] Increase audio sharing test coverage
...
Bug: 345686602
Test: atest
Change-Id: Iec196fc884c3b7ddd580eb8dd13b445d59e3b1b7
2024-06-14 14:30:14 +08:00
Alexander Roederer
a6b1d7cbbc
Adds summary helper for apps subtitle
...
The subtitle for the apps page says which apps (up to two/three) and how
many (if there are more than three) are allowed to bypass dnd under the
main "Apps" page.
Bug: 308819928
Test: atest ZenModesSummaryHelperTest
Flag: android.app.modes_ui
Change-Id: I15696384c392ba3f054948db50eea614f91d8c48
2024-06-13 13:20:29 +00:00
Matías Hernández
22c325a099
Load zen mode type icon options from the proper resources
...
* Move default mode icons from Settings res to core res.
* Add array resources for the icon options and their descriptions.
* As the initial version of the list, use the default mode icons.
Bug: 333901673
Test: atest IconOptionsProviderImplTest
Flag: android.app.modes_ui
Change-Id: I66669e67a9d607268c05d5ed3df6c9555e57864c
2024-06-13 14:38:51 +02:00
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