chelseahao
4afef7eed1
[Audiosharing] Created test for the name and password preferences.
...
Test: atest -c com.android.settings.connecteddevice.audiosharing
Flag: com.android.settingslib.flags.enable_le_audio_qr_code_private_broadcast_sharing
Bug: 345686602
Change-Id: I9036e560e29aba9555c207dce1b2018be010bca8
2024-06-24 14:36:08 +08:00
chelseahao
e0abdc5c7a
[Audiosharing] Created test for the main controller.
...
Test: atest -c com.android.settings.connecteddevice.audiosharing.audiostreams
Flag: com.android.settingslib.flags.enable_le_audio_qr_code_private_broadcast_sharing
Bug: 345686602
Change-Id: Ieb735d392607c131c213be90cd72c4b7a9ed958d
2024-06-21 14:34:39 +08:00
chelseahao
44a0b59ad2
[Audiosharing] Listen to onProfileConnectionStateChanged of LE_AUDIO_BROADCAST_ASSISTANT to be more precise on device connection status upon bluetooth on/off. Also increase test coverage.
...
Test: atest -c com.android.settings.connecteddevice.audiosharing.audiostreams
Flag: com.android.settingslib.flags.enable_le_audio_qr_code_private_broadcast_sharing
Bug: 345686602
Change-Id: Ia78b1fe19bff3cb179794db1dc09374db13818d8
2024-06-21 14:14:45 +08:00
chelseahao
4b85389124
[Audiosharing] Increase test coverage for audio stream states.
...
Test: atest -c com.android.settings.connecteddevice.audiosharing.audiostreams
Flag: com.android.settingslib.flags.enable_le_audio_qr_code_private_broadcast_sharing
Bug: 345686602
Change-Id: I91d9a45abd4c9659c9d0ddeca5f5aaefed36f820
2024-06-21 11:00:54 +08:00
Chelsea Hao
e626a77a81
Merge "[Audiosharing] Add log for debugging." into main
2024-06-19 02:42:55 +00:00
chelseahao
89df32b48c
[Audiosharing] Add log for debugging.
...
Test: atest -c com.android.settings.connecteddevice.audiosharing.audiostreams
Bug: 347605485
Flag: com.android.settingslib.flags.enable_le_audio_qr_code_private_broadcast_sharing
Change-Id: I319747652837c08ffcbbd5980609a0f8f35e3c24
2024-06-19 02:42:37 +00: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
Chaohui Wang
c956160fe7
Lazy create InternetPreferenceRepository
...
In InternetPreferenceControllerV2, to not created in search indexing for
better performance.
Bug: 339884322
Flag: com.android.settings.flags.internet_preference_controller_v2
Test: manual - on Internet
Change-Id: I9e0e36ba6296d48d3761714db52074c90f635233
2024-06-18 17:26:21 +08:00
Chaohui Wang
38c21b187f
Merge "Use Kotlin List & NonNull String" into main
2024-06-18 08:21:28 +00:00
Yiyi Shen
f86b438e3a
Merge "[Audiosharing] Add audio sharing loggings (P4)" into main
2024-06-18 07:47:24 +00:00
Chaohui Wang
80a81431f4
Use Kotlin List & NonNull String
...
To avoid Room compiler error / warning.
Bug: 332487783
Test: m Settings
Flag: EXEMPT refactor
Change-Id: I79a4991c1a0009e347f0916f4f204229dc07581a
2024-06-18 14:51:07 +08:00
Hakjun Choi
254cf32ba7
Merge "Add a condition for preventing NPE when accessing SatelliteManager" into main
2024-06-18 04:01:46 +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
Xinyi Mao
c0f7e758d1
Merge "Add flag to force expire the app optimization mode event." into main
2024-06-17 10:48:58 +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
Chaohui Wang
c5fc20d851
Merge "Reduce api calls when getDataSummary" into main
2024-06-17 10:22:05 +00: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
Chaohui Wang
dc02b5ea59
Reduce api calls when getDataSummary
...
When defaultSubId == activeSubId, return display name directly.
Bug: 339884322
Flag: com.android.settings.flags.internet_preference_controller_v2
Test: manual - on Internet
Change-Id: I8422c709483069a6894b99d5cc2cc652459ab5e0
2024-06-17 15:43:07 +08:00
Hakjun Choi
bdfd24ed5a
Add a condition for preventing NPE when accessing SatelliteManager
...
There could be a case that FEATURE_TELEPHONY_SATELLITE is false but KEY_SATELLITE_ATTACH_SUPPORTED_BOOL it true
Since SatelliteManager can be returned only when FEATURE_TELEPHONY_SATELLITE is enabled, added a condition checks whether SatelliteManager is null or not
Bug: 347057183
Test: atest SatelliteManagerTest SatelliteManagerTestOnMockServiceTest
manually e2e test with FEATURE_TELEPHONY_SATELLITE disabled
Change-Id: I3f51e6805ccab3366d9d01be2e999818cd18354f
2024-06-17 06:26:21 +00:00
Chaohui Wang
b3f2e4d517
Migrate battery usage DAO to Kotlin
...
To better support null type safety, and fix build
warnings.
Bug: 332487783
Test: m Settings
Change-Id: I00f3add356e3f825ab76aae4f81129eba348eca8
2024-06-17 12:26:20 +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
Matías Hernández
68953d33c1
Merge "First bits of "add a mode"" into main
2024-06-15 12:14:09 +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
Julia Reynolds
54a357fc3a
Remove unneeded AsyncTask
...
Change-Id: I962a61c7a73f1d7a464ee76284f1d4175d04e62a
2024-06-14 14:42:50 +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
SongFerng Wang
0cc20946c8
Merge "Add metricsCategory for dualsim and apnEdit" into main
2024-06-14 09:25:47 +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
chelseahao
8a8c89a49c
[Audiosharing] Add logging 3.
...
Test: atest -c com.android.settings.connecteddevice.audiosharing.audiostreams
Bug: 308368124
Change-Id: Idc96c23d20041a00d4fb1e20a7457baaa0f55527
2024-06-14 08:47:55 +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
Tom Hsu
e05b699b04
Merge "Prevent crash when fragment lifecycle is after onStop" into main
2024-06-14 07:56:17 +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
tomhsu
b4108cb17e
Prevent crash when fragment lifecycle is after onStop
...
Fix: 325059602
Test: build pass
Change-Id: Ie132b4fd6b6c7df8c0fe188e0eb238f562fd4d6e
2024-06-14 06:02:14 +00:00
songferngwang
d73f0e3c77
Add the timer for waiting sim ready
...
When the sim onboarding setup the primary sim,
the psim is not ready.
Bug: 346623465
Test: verified this case.
Change-Id: Ide5a5de4f19deb7de6dd093df4dd267329b82046
2024-06-14 05:29:22 +00:00
Treehugger Robot
b3aae5aaf1
Merge "Don't show the Wi-Fi icon when Wi-Fi is off" into main
2024-06-14 03:58:01 +00:00
songferngwang
d4e467ed4a
Add metricsCategory for dualsim and apnEdit
...
Bug: 347091697
Test: Build pass
Change-Id: I783a45269112d91d79c00af41c0052ba488603d2
2024-06-13 23:00:29 +00: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
Weng Su
3b161c23b3
Don't show the Wi-Fi icon when Wi-Fi is off
...
- Show an empty icon when the Wi-Fi level is unreachable
Bug: 339343274
Flag: EXEMPT bugfix
Test: Manual testing
atest -c SettingsRoboTests
Change-Id: I55f3be145150235b19484e256c35e37f885a1dcf
2024-06-13 20:43:40 +08: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
Chelsea Hao
484d129b35
Merge "Catch NoSuchMethodError as isAutoOnSupported is tagged as FlaggedApi." into main
2024-06-13 11:44:48 +00:00
Treehugger Robot
50ee61a80f
Merge "InternetPreferenceController V2 (7/7)" into main
2024-06-13 10:05:19 +00:00
Olivier Nshimiye
2dc4310630
Merge "Remove settings tasks on private space deletion" into main
2024-06-13 09:47:49 +00: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