Commit Graph

21722 Commits

Author SHA1 Message Date
Chaohui Wang
00c21da30e Correct the data usage warning
- For MATCH_WIFI, only shown non carrier warning when has SIM
- For others, restore the previous operator warning

Bug: 331184249
Test: manual - on DataUsageList
Change-Id: I5d5c6b36c6874a547cc635c025aa77acadf6e1e3
2024-04-02 17:14:42 +08:00
Fan Wu
a6289cddd9 Merge "Remove LooperMode.LEGACY usage from settings/development" into main 2024-04-02 08:13:37 +00:00
Treehugger Robot
3f3785aacb Merge "Fix the a11y focus problem in a long list page" into main 2024-04-02 03:56:29 +00:00
Chaohui Wang
b3426fe88b Merge "Filter buckets with zero usage" into main 2024-04-02 03:25:44 +00:00
Jason Chiu
3f0eefbd37 Fix the a11y focus problem in a long list page
While a page is scrolling to the target position, the target can't
request a11y focus, and the highlight blink animation at the moment is
also invisible.

The patch is to skip the unseen highlight animation and focus operation
when onBindViewHolder() is called before scrolling. Therefore, when the
scrolling stops, the scroll listener will notify the item changed and
onBindViewHolder() will be called again to do the operations.

Also decrease the delay time of the scrolling start to make the a11y
smoother.

Bug: 318459003
Test: manual, robotest
Change-Id: Ie55b2edeb7e1feaaadb5e670f39f07f6f17b92b9
2024-04-02 10:43:28 +08:00
Marcus Ge
5143f265ae Merge "[Accessibility] Hide Color Contrast entry point in Accessibility" into main 2024-04-02 00:36:26 +00:00
Treehugger Robot
4f7bdc12c3 Merge "Clean up usages of flag remove_qs_tooltip_in_suw" into main 2024-04-01 21:33:42 +00:00
Derek Jedral
8802d4c085 Merge "getAuthority using resolveContentProvider" into main 2024-04-01 21:26:41 +00:00
marcusge
00b6384d3c [Accessibility] Hide Color Contrast entry point in Accessibility
Test: local raven device
Bug: 241805782

Change-Id: I9f0825df68a0c2bdb90ba068b0e4b133cbc8ae57
2024-04-01 20:53:14 +00:00
Chun-Ku Lin
dd915a5031 Clean up usages of flag remove_qs_tooltip_in_suw
This bug-fixing flag has been in Trunkfood in two months.

Test: existing presubmit (no functional change)
Bug: 294560581
Change-Id: I05282f1f7ee6b1bb4e4bf873771d80ae68204b4c
2024-04-01 20:13:01 +00:00
Derek Jedral
9cdb54315e getAuthority using resolveContentProvider
Gets the provider info directly by providing the authority, rather than
getting all providers, and then finding the matching authority. This
should be much more efficient.

Test: local test, confirm entry point still appears
Bug: 316799867
Change-Id: I9b98cff3b8f19a6cab8dd64b433a2b3129546ada
2024-04-01 17:41:01 +00:00
Fan Wu
ca8f6abe3f Merge "Ignore MainClearTest as it's crashing Postsubmit process" into main 2024-04-01 09:58:57 +00:00
Treehugger Robot
b9c1632a5f Merge "Fix the action bar shows up problem" into main 2024-04-01 09:29:28 +00:00
Fan Wu
39d87927de Remove LooperMode.LEGACY usage from settings/development
Bug: 331566352

Test: atest
Change-Id: I3be4baff5cf556a875af8b4410cc2dd870fd290c
2024-04-01 17:08:36 +08:00
Fan Wu
ac1c5c7274 Ignore MainClearTest as it's crashing Postsubmit process
Bug: 329736064

Test: atest
Change-Id: Ia3f60a525247566f74cd93598800043581a4fc83
2024-04-01 16:59:33 +08:00
Chaohui Wang
c24af35654 Filter buckets with zero usage
Avoid app with no data usage shows in DataUsageList.

Fix: 318780411
Test: manual - on DataUsageList
Test: unit test
Change-Id: Ieafd761f4c58ca4558f3f526f092e2be33027e3d
2024-04-01 16:52:13 +08:00
Chaohui Wang
333c309742 Align PreSelectedTypes with Android U
The Android U pre selected types:
default,mms,supl,dun,hipri,fota,cbs,xcap

Fix: 331875869
Test: manual - on ApnSettings
Test: unit test
Change-Id: I60c9a1a68af1b78825b9f08338b6001f99699414
2024-04-01 11:50:35 +08:00
Kyle Zhang
6565292c71 Merge "Modify test to accomodate unchangable flag" into main 2024-03-29 20:58:10 +00:00
Daniel Norman
27607a47a5 Merge "fix(magnification): make always on toggle unavailable when capabilities is window only" into main 2024-03-29 19:09:35 +00:00
Fan Wu
70272cdcde Merge "Remove LooperMode.LEGACY usage from two test classes" into main 2024-03-29 10:10:18 +00:00
Fan Wu
3fdb68c2c2 Merge "Remove LooperMode.LEGACY usage from settings/applications path." into main 2024-03-29 10:09:59 +00:00
Jason Chiu
6ca5c992d7 Merge "[Safer intents] Permission controller" into main 2024-03-29 09:20:28 +00:00
Jason Chiu
0bd014c497 [Safer intents] Settings misc
To avoid implicit intents, make intents launch explicitly.

Test: build
Bug: 323061508
Change-Id: Ie19cbceb89842a75a180898abcce81b63c18d46c
2024-03-29 04:22:45 +00:00
Fan Wu
4bb2bff03e Remove LooperMode.LEGACY usage from two test classes
Bug: 330824314

Test: atest
Change-Id: Ic8e6aa633d72b7680a9ff8c6e37a66c64778c26a
2024-03-29 10:49:53 +08:00
Fan Wu
cf3649f21b Remove LooperMode.LEGACY usage from settings/applications path.
Bug: 331546577

Test: atest
Change-Id: I419100b302bee55a06fbc481232927ea44a68bd3
2024-03-29 10:48:50 +08:00
Jason Chiu
2ddc771dad Merge "[Safer intents] Applications" into main 2024-03-29 01:09:57 +00:00
Sunny Shao
8803ae7823 Fix the action bar shows up problem
- Hide the internal action bar.
- Refine the Utils.setupEdgeToEdge API.
- Rollback the testcases.

Bug: 328622648
Fixes: 331308440
Test: atest com.android.settings.UtilsTest SettingsActivityTest
Change-Id: I7dfbc93def3e772b57bf06b8276315cee7402a9c
2024-03-29 08:32:22 +08:00
Joseph Vincent
7e3d30c95f Merge "Change Never Option to lock private space after device restart" into main 2024-03-28 22:39:13 +00:00
Kyle Zhang
e99e5f39c4 Modify test to accomodate unchangable flag
Bug: 301669353
Change-Id: I6d5857d2e414a0c87e1a6212bf36da1bcb5fcbdf
2024-03-28 20:10:54 +00:00
josephpv
d4f5641c55 Change Never Option to lock private space after device restart
Bug: 324208974
Test: atest AutoLockPreferenceControllerTest
Change-Id: Ia45f7f02f407808eaa9a061ae32480c354bdfb74
2024-03-28 11:16:23 +00:00
Jason Chiu
cf13dfd4c6 [Safer intents] Permission controller
To avoid implicit intents, make intents launch explicitly.

Test: build, manual
Bug: 323061508
Change-Id: Ib95b417fc8682f690890fc55f321b4fece2c0369
2024-03-28 17:09:37 +08:00
Jason Chiu
071dfe8691 [Safer intents] Applications
To avoid implicit intents, make intents launch explicitly.

Test: build, robotest
Bug: 323061508
Change-Id: I9bf4eb102550f4afd8d14a6799940d37fc0ab9a7
2024-03-28 04:13:47 +00:00
josephpv
14b2f9568e Add new filter to list private space apps when not in quite mode
This change handles listing of private space apps in Settings > Sound &
vibration > Do Not Disturb > Apps page.

Based on the new filter this page
- lists the apps from private space whenever profile is unlocked.
- when quite mode enabled privat space apps in the list is hidden.

Recording Link: b/322316632#comment3

Bug: 322316632
Test: Manual
Change-Id: Ie8a7b3376351c031a1abb8488eceb7859a1930fd
2024-03-27 20:43:12 +00:00
Kyle Zhang
be7215cc51 Merge "Use new naming for Widevine Developer option." into main 2024-03-27 18:54:40 +00:00
Neil Fuller
6ed3743755 Merge "UI changes to support time feedback" into main 2024-03-27 13:25:57 +00:00
Matías Hernández
4267835c15 Merge "Populate new fields in modes created via Settings" into main 2024-03-27 09:55:24 +00:00
Treehugger Robot
a2d95c9a9c Merge "ApnSettingsActivity shows the ActionBar" into main 2024-03-27 09:41:59 +00:00
Fan Wu
0a0e591b96 Ignore failing tests to unblock presubmit
Bug: 331324279

Test: atest
Change-Id: Ia38c223ac7aa4aed2739a0fd371c7496811d2054
2024-03-27 15:37:45 +08:00
Sunny Shao
e6104d7546 ApnSettingsActivity shows the ActionBar
- Use the Theme.Settings.NoActionBar
- Update test cases

Fixes: 331308440
Test: atest com.android.settings.UtilsTest SettingsActivityTest
Change-Id: Ica93e765690707654ae651261ac8d236ed8e1d58
2024-03-27 13:45:28 +08:00
Chris Antol
15ff73e825 Merge "Restrict Settings Homepage prior to provisioning" into main 2024-03-27 00:09:37 +00:00
Varun Shah
517bc0c8db Merge "Hide the Perform Backup Tasks Settings page." into main 2024-03-26 23:07:42 +00:00
Marcus Ge
660defe7a6 Merge changes I60d2b23a,I7cb15a46 into main
* changes:
  [Accessibility] Color Contrast address talkback bugs
  [Accessibility] Color Contrast address UX bugs
2024-03-26 20:26:10 +00:00
marcusge
9ec6673b3f [Accessibility] Color Contrast address talkback bugs
Test: local raven device
Bug: 329352987
Bug: 329192396
Bug: 329187057
Flag: aconfig
com.android.settings.accessibility.enable_color_contrast_control

Change-Id: I60d2b23acb2e406db15f348ba7881577e55a8868
2024-03-26 19:08:42 +00:00
Chun-Ku Lin
2664bb004d Merge "Rename AccessibilityGestureNavigationTutorial to AccessibilityShortcutsTutorial" into main 2024-03-26 06:47:03 +00:00
Roy Chou
1c898252cb fix(magnification): make always on toggle unavailable when capabilities is window only
As b/328787031, we make the MagnificationAlwaysOnPreferenceController observe the magnification capabilities then update the preference enabled state. Therefore, when changing the capabilities to window mode only, the preference will become unavailable.

We use the bug-fix flag to verify the fix with rollout process.

Bug: 328787031
Flag: ACONFIG com.android.settings.accessibility.hide_magnification_always_on_toggle_when_window_mode_only DEVELOPMENT
Test: manually flip the flag
      atest MagnificationCapabilitiesTest
      atest ToggleScreenMagnificationPreferenceFragmentTest
      atest MagnificationAlwaysOnPreferenceControllerTest
Change-Id: I1a25f80131d84ecdd927030e40a18ebb32b7862f
2024-03-26 05:11:06 +00:00
Haijie Hong
f5d8f4afa9 Merge "Disable media output switcher in Settings when audio sharing" into main 2024-03-26 03:23:51 +00:00
Varun Shah
a5593de4c5 Hide the Perform Backup Tasks Settings page.
Since we are now hiding the new RUN_BACKUP_JOBS permission, hide the
associated special app access page in Settings.

Bug: 331272951
Test: BackupTasksAppsPreferenceControllerTest
Test: visual (Settings pages)
Change-Id: I875b286798f48ee4e94d5e37c1b21bb84acf390d
2024-03-26 02:43:30 +00:00
Fan Wu
be3633ac17 Merge "Remove LooperMode.Legacy usage from settings/biometrics/" into main 2024-03-26 01:49:30 +00:00
Chun-Ku Lin
4c9d268fdf Rename AccessibilityGestureNavigationTutorial to AccessibilityShortcutsTutorial
AccessibilityGestureNavigationTutorial is not only for displaying
tutorial for accessibility gesture shortcut. It's used for display the
tutorials for all the selected accessibility shortcuts. Renamed the
class to match it's responsibility.

Bug: N/A
Flag: EXEMPT Strict mechanical refactors
Test: build succeed locally

Change-Id: I1dd212abc660454e77f18f770c2ecc17be320eaa
2024-03-26 01:13:28 +00:00
Chun-Ku Lin
257ac13217 Merge "Update a11y edit shortcut screen's text and tutorial text" into main 2024-03-26 00:47:51 +00:00