Commit Graph

54144 Commits

Author SHA1 Message Date
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
Chelsea Hao
4826efcbbf Merge "[Audiosharing] Add logging 2." into main 2024-06-13 08:56:59 +00:00
Chelsea Hao
ba98450a2d Merge "[Audiosharing] Add logging 1." into main 2024-06-13 08:56:35 +00:00
Fiona Campbell
21c0dd70ae Merge "Even Dimmer for manual screen brightness mode" into main 2024-06-13 08:50:20 +00:00
chelseahao
c03df5f6c7 Catch NoSuchMethodError as isAutoOnSupported is tagged as FlaggedApi.
Test: Manual
Bug: 346716614

Change-Id: I69b34c461ab71703490147a49f5c713a25275f51
2024-06-13 08:47:49 +00:00
Chaohui Wang
b0acf0daf5 InternetPreferenceController V2 (7/7)
Support alternateSummary for HotspotNetworkEntry.

Bug: 339884322
Flag: com.android.settings.flags.internet_preference_controller_v2
Test: manual - on Internet
Test: unit test
Change-Id: I6a454e86453ea8ed597a032d3f5769b6cf9102ba
2024-06-13 16:47:01 +08:00
Chaohui Wang
8dd270c0ea Merge changes Ie14c36f0,I73fc9334,Ic06b0e34 into main
* changes:
  InternetPreferenceController V2 (6/n)
  InternetPreferenceController V2 (5/n)
  InternetPreferenceController V2 (4/n)
2024-06-13 08:15:22 +00:00
Chaohui Wang
52d15b6c34 InternetPreferenceController V2 (6/n)
Treat carrier merged Wi-Fi as cellular.

Bug: 339884322
Flag: com.android.settings.flags.internet_preference_controller_v2
Test: manual - on Internet
Test: unit test
Change-Id: Ie14c36f0f22c332319c097150b06cfeec97e946f
2024-06-13 15:08:22 +08:00
Joseph Vincent
8e103fc4fd Merge "Add accessibility delegate and populate itemCount" into main 2024-06-13 05:39:33 +00:00
Chaohui Wang
c5cc30f0c3 InternetPreferenceController V2 (5/n)
Support ethernet.

Bug: 339884322
Flag: com.android.settings.flags.internet_preference_controller_v2
Test: manual - on Internet
Test: unit test
Change-Id: I73fc9334379daa979f736fc9ff31c3d576a3381b
2024-06-13 13:29:13 +08:00
Chaohui Wang
0d758dfdb9 InternetPreferenceController V2 (4/n)
Display different icon for different condition.

Bug: 339884322
Flag: com.android.settings.flags.internet_preference_controller_v2
Test: manual - on Internet
Test: unit test
Change-Id: Ic06b0e349a284f8b4466bd0c19f318a6a0936a6e
2024-06-13 13:29:13 +08:00
Chaohui Wang
585727a34a Merge "InternetPreferenceController V2 (3/n)" into main 2024-06-13 05:24:51 +00:00
Julia Reynolds
162813cd5a Merge "Support device effects for manual mode" into main 2024-06-12 23:29:59 +00:00
Treehugger Robot
c6a9480ccd Merge "FaceEnrollIntro requires scroll for accessibility" into main 2024-06-12 19:47:20 +00:00
Joshua McCloskey
4b66abd921 FaceEnrollIntro requires scroll for accessibility
Test: Turn talkback on, verified that scrolling moves the talkback
cursor to the next text items.
Fixes: 336963233

Change-Id: Ia9f24ee658df96647fe953e84119d20270200011
2024-06-12 18:34:51 +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
Olivier Nshimiye
38a08fe98d Remove settings tasks on private space deletion
Bug: 342074934
Test: atest PrivateSpaceMaintainerTest
Test: Manual on device

Change-Id: Ic0555583ae0d7ea5650d819f1fccbd022b1d64c2
2024-06-12 15:40:43 +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
josephpv
44131dbc24 Add accessibility delegate and populate itemCount
Change made to fix accessibility issue for talkback to announce correct
number in the list numbers as suggeste in b/333672369#comment4

Bug: 333672369
Test: Manual
Change-Id: I7f4ed0b39a40040c1185809e0b348d12e1eabf29
2024-06-12 09:25:09 +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
chelseahao
f017332c91 [Audiosharing] Add logging 1.
Test: atest -c com.android.settings.connecteddevice.audiosharing.audiostreams
Bug: 308368124
Change-Id: I2513824826b9d7dd6240728179ea004f33b4fbe3
2024-06-12 08:04:17 +00:00
Chaohui Wang
2717f70ac0 InternetPreferenceController V2 (3/n)
Add DataSubscriptionRepository, when cellular connection,
show the active subscription name.

Bug: 339884322
Flag: com.android.settings.flags.internet_preference_controller_v2
Test: manual - on Internet
Test: unit test
Change-Id: If2a3e7f8df1b1ed89bc760ec5165182b3e9b64a8
2024-06-12 15:33:38 +08:00
Rambo Wang
7ae5aaa69d Merge "eSIM profile is not erased during Reset mobile network settings flow" into main 2024-06-12 04:26:33 +00:00
James Willcox
0569121109 Add @RequiresPermission to ACTION_PREPARE_FACTORY_RESET
Also make it public. This should allow it to be detected appropriately
by the GMSCore permission registry machinery.

Bug; 346611867
Test: builds

Change-Id: I15aa99541f33124ab6aea284889351d86753fa56
2024-06-11 20:58:29 +00:00
Chris Antol
1b8c0fdfdb Annotate Nullability for DevSettings fragment usage
Bug: 319310316
Change-Id: I4f2d219b818971e222346fc630c358b1d8b84ae9
Test: None
2024-06-11 19:45:38 +00:00
Rambo Wang
98920c3714 eSIM profile is not erased during Reset mobile network settings flow
The CL fixes the bug that eSIM profile is not erased even if user
choose to erase eSIM during Reset Mobile Network Settings flow.

The issue was introduced when adding background operations to
restart Phone process and RILD. Restart Phone process performed earlier.
It may interrup the previous reset operations (e.g. eSIM erasing).

The fix here is to arrange reset Phone and RILD in the end of the flow,
only performed after all other reset operations.

Bug: 345854350
Test: atest ResetNetworkOperationBuilderTest
Test: Manual regression test
Change-Id: If2bd492d417a07a7056bf9fd0d051f8811ba6369
2024-06-11 18:18:15 +00:00
Treehugger Robot
9692e940ec Merge "Disable mRemoveUserPreference when mGuestUserAutoCreated only for guest." into main 2024-06-11 18:14:43 +00:00
Tetiana Meronyk
bac3e20cce Disable mRemoveUserPreference when mGuestUserAutoCreated only for guest.
Before this change, Delete action was disabled for all uninitialized secondary users.

Bug: 341840847
Test: atest UserDetailsSettingsTest
Change-Id: Icd43836f577dd061d267f6fb75658c35a0c47589
2024-06-11 16:25:06 +00:00
YK Hung
1fe85991e8 Disable explicit gc method invocation in V
Disable the gc() method explicit invocation due to the new policy in the
android to avoid android.os.strictmode.ExplicitGcViolation

Test: presubmit
Fix: 345577704
Flag: EXEMPT strictmode fix
Change-Id: I6ec7dac6735499c40a7ab6d135108e4c5013a4a4
2024-06-11 15:00:26 +00:00
Joseph Vincent
98a5dbfb42 Merge "Fix for settings crash during PS setup" into main 2024-06-11 10:59:22 +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
Chaohui Wang
3f6cbec0b6 Merge "Fix preferred apn not selected when back from edit" into main 2024-06-11 07:39:01 +00:00
Chelsea Hao
3bc2adffab Merge "[Audiosharing] Start creating view after service is connected in confirm dialog activity." into main 2024-06-11 07:27:34 +00:00
Chaohui Wang
86f4ed16f3 Fix preferred apn not selected when back from edit
When back from edit page, preferred apn and apn list will both refresh,
if apn list refresh happens later, it will clear the preferred apn.

Saved the latest preferred apn into mPreferredApnKey to fix.

Bug: 257316932
Test: manual
Change-Id: I62f9cbd5847b7edb834c815cdecc089e0764a8c7
2024-06-11 14:01:03 +08:00
josephpv
26cda0dd42 Fix for settings crash during PS setup
Fix for Null pointer exception to add null checks before calling
unRegisterReceiver for broadcast and startActivity.

Bug: 346233086
Test: Manual
Change-Id: I0941c34c3f5912c57abc9497809962ed0954ac06
2024-06-11 04:56:48 +00:00