Commit Graph

53415 Commits

Author SHA1 Message Date
Chaohui Wang
51a4bea7d9 Use SpaDialogWindowTypeActivity for WEP dialog
TODO: Set different window type when called from Quick Settings.

Bug: 332643450
Test: am start -n com.android.settings/.network.WepNetworkDialogActivity
Change-Id: Ie888e7cc116234199316b030fb5f35dea6dbb3ac
2024-04-03 15:26:26 +08:00
Les Lee
1635951de2 wifi: Using framework uri parsing
Bug: 298669190
Test: Manual test. Qr code sacnning works normally.
Change-Id: I8e6138971ae6798b42db32930f80e9113a8c0223
2024-04-03 04:59:22 +00:00
Chaohui Wang
43ce1c4abf Merge "Correct the data usage warning" into main 2024-04-03 03:38:07 +00:00
Weng Su
2101258e8a Restrict WifiDppConfiguratorActivity
- Don't show WifiDppConfiguratorActivity if user has DISALLOW_ADD_WIFI_CONFIG

- Don't show AddNetworkFragment if user has DISALLOW_ADD_WIFI_CONFIG

Fix: 299931076
Flag: None
Test: manual test with TestDPC
atest -c SettingsUnitTests:AddNetworkFragmentTest \
         SettingsUnitTests:WifiDppConfiguratorActivityTest

Change-Id: I34afe0f698e2dc43eba59b25f5f3f4f61e70166a
2024-04-03 10:45:43 +08:00
Treehugger Robot
f6c7511996 Merge "[Settings] fix Settings crash on App info for archived apps" into main 2024-04-03 00:14:45 +00:00
Hakjun Choi
0c2927a234 Merge "Make satellite more info url carrier configurable" into 24D1-dev am: df0ea6c723
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/26684988

Change-Id: I274e82a7cd279625ceb9ddda8442bbaf3d746ffc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-02 23:19:43 +00:00
josephpv
e1acfb3db1 Show customized message for private space while choosing lock
The change adds private profile checks in addition to the exisiting
managed profile check to show customized message while choosing lock for
private profile in Pattern, PIN and Password screens.

Bug: 311343571
Test: Verify lock screen message for private space
Change-Id: Ic8173ff8c1af23fc593390acaff4c67390f99b9c
Merged-In: Ic8173ff8c1af23fc593390acaff4c67390f99b9c
2024-04-02 23:12:43 +00:00
Hakjun Choi
df0ea6c723 Merge "Make satellite more info url carrier configurable" into 24D1-dev 2024-04-02 23:03:24 +00:00
Marcus Ge
c3f57aa3ba Merge "[Accessibility] Restore high contrast text" into main 2024-04-02 22:57:40 +00:00
Songchun Fan
faeaa7650e [Settings] fix Settings crash on App info for archived apps
For archived apps, isClearRestrictionAllowed (introduced in ag/26048774)
can throw NameNotFoundException, which causes Settings app to crash if
uncaught. This CL fixes that.

Test: manual by archiving an app and then try to go to it's app info
page
BUG: 332397754

Change-Id: I49a39dba36261f36215f0389ffe41523e8a2f4e8
2024-04-02 22:09:57 +00:00
Joshua Mccloskey
90552bb255 Merge "Removed period from fp delete dialog." into main 2024-04-02 19:24:08 +00:00
Joshua Mccloskey
398b73a9fb Merge "UDFPS Enrollment refactor (3/N)" into main 2024-04-02 18:20:03 +00:00
Joshua McCloskey
4a499bb9b2 Removed period from fp delete dialog.
Note that this removes the period from english & all translations,
DeleteFingerprintDialog & ConfirmLastDeleteDialog should be the same.

Test: Manual.
Fixes: 331758381
Change-Id: I774375ed575bfdfd3ec181d902a99d918596890c
2024-04-02 18:10:05 +00:00
Kyle Zhang
9c0ad21257 Merge "Allow CDM version v19 or later" into main 2024-04-02 17:58:25 +00:00
Becca Hughes
13c6b07868 Pass the package name from the intent to the picker fragment
When an app uses the legacy autofill intent to launch the
settings activity we should pass the package name of the
launching app to the picker. If the app is then picked by
the user we will return result_ok to the app and if it
is not picked we will return result_cancel.

Change-Id: I99dbfad2c69ed57ff891c189f726ecc408d9d188
Test: ondevice manual
Bug: 324197609
2024-04-02 17:53:30 +00:00
Rafael Higuera Silva
1bf1b02c31 Merge "Add new warning dialogue when user is Resetting mobile network settings." into main 2024-04-02 16:26:20 +00:00
Manish Singh
3c5938bf45 Use the filter to filter out the private apps
in the private profile when the private profile is in quiet mode.

Bug: 323327330
Test: manual
Change-Id: I30b14a843f388a9c83d0439b004f761328b74d64
2024-04-02 16:10:01 +00:00
Treehugger Robot
6c3f348f87 Merge "Use disabled summary when trustagents are disabled" into main 2024-04-02 15:35:58 +00:00
Treehugger Robot
a9f137842a Merge "Fix MobileNetworkSettings kotlin.UninitializedPropertyAccessException" into main 2024-04-02 12:12:11 +00:00
Xinyi Mao
9db553f264 Merge changes from topic "screentime" into main
* changes:
  Fix summary for system components which 30 sec <= usage time < 1 min.
  Fix purge condition for system component in BatteryDiffData.
2024-04-02 10:59:14 +00:00
songferngwang
34cec1389e Fix MobileNetworkSettings kotlin.UninitializedPropertyAccessException
Bug: 332477183
Test: atest MmsMessagePreferenceControllerTest

Change-Id: I849ca0f333f5246d73192ae4180b3f3ce3946d61
2024-04-02 10:18:03 +00:00
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
mxyyiyi
52672ca34b Fix summary for system components which 30 sec <= usage time < 1 min.
- formatElapsedTimeWithoutComma(withSecords = false,) will round up minutes by adding 30 seconds.
https://screenshot.googleplex.com/8HrDpLi8FX8tjJy

Bug: 321265878
Test: Manual
Change-Id: I779bd7c33bbb3aefa0a88f6ba42d047259bc50cc
2024-04-02 17:00:51 +08:00
mxyyiyi
077158e2a6 Fix purge condition for system component in BatteryDiffData.
- System component do not have screen-on-time, use foreground usage time (also the mUsageDurationMs in BatteryEntry).

Bug: 321265878
Test: Manual
Change-Id: I8e9d60b1953fe4b0aaf42380b0fdadb75b191479
2024-04-02 14:15:03 +08:00
Kyle Zhang
b99087280f Allow CDM version v19 or later
Bug: 301669353
Change-Id: I8bd93bdf6b30db93f5b31792f6a2c778856cf361
2024-04-02 04:28:50 +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
marcusge
8d90ba38b7 [Accessibility] Restore high contrast text
Test: local raven device
Bug: 241805782

Change-Id: Ie7d807ebc46452beb69ad41ebb3e570c2ff0a186
2024-04-02 01:07:39 +00:00
Marcus Ge
5143f265ae Merge "[Accessibility] Hide Color Contrast entry point in Accessibility" into main 2024-04-02 00:36:26 +00:00
Joshua McCloskey
ed0098d3aa UDFPS Enrollment refactor (3/N)
Test: manual.
Change-Id: Ic4bf3bd4dc8fe10814c64decf07511db174108f8
2024-04-01 23:11:47 +00:00
Rafael Higuera Silva
147cc19b53 Add new warning dialogue when user is Resetting mobile network settings.
If the user is reseting mobile network settings and have all these
conditions:
- No Wi-fi
- Has check to delete all eSIMs
- Has a least one RAC sim carrier
Then show the warning dialogue.

Test: make, manually test, atest SubSettingLauncherTest, atest ResetNetworkTest,  atest SubscriptionUtilTest
Bug: 328649510
Change-Id: I47d9b868b649b259d5e4008ec742317d2cb7cf51
2024-04-01 23:07:05 +00:00
Treehugger Robot
214646a032 Merge "Add new dialogue when user is going to delete multiple sims where aleast on of them use RAC." into 24D1-dev 2024-04-01 21:56:24 +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
Chun-Ku Lin
f18d1f60fb Merge "Remove unneeded background and update the background color to reflect light/night theme" into main 2024-04-01 17:53:00 +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
Chun-Ku Lin
1dbd383b95 Merge "Replace ShortcutType with UserShortcutType to reduce duplicate declaration." into main 2024-04-01 17:30:46 +00:00
Joshua Mccloskey
ef2a778f0a Merge "UDFPS Enrollment refactor (2/N)" into main 2024-04-01 17:14:49 +00:00
Tim Murray
db775bdac9 Merge "JobScheduler: remove TARE" into main 2024-04-01 15:21:04 +00:00
Treehugger Robot
b9c1632a5f Merge "Fix the action bar shows up problem" into main 2024-04-01 09:29:28 +00:00
Haijie Hong
0f97d4fbc3 Merge "Dismiss notification shade when pairing dialog shown." into main 2024-04-01 09:08:31 +00:00
Chaohui Wang
3ea08203af Merge "Align PreSelectedTypes with Android U" into main 2024-04-01 08:55:52 +00: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
Angela Wang
c82282cf95 Merge "Register callback again after service is connected" into main 2024-04-01 08:19:32 +00:00
hoffc
27255b7a7c Fix SMS and Calls preference summary displays empty.
SMS and Calls preference summary set to summary_placeholder in displayPreference's every call. But displayPreference can be called multiple times, so it may result in SMS and Calls preference summary displays empty when refreshSummary is not explicitly called after displayPreference's last call.

Move the summary placeholder setting to layout xml.

Bug: 331874741
Change-Id: I4c6f34dd813fa9a6d7e2c4df2cac279679ee6960
2024-04-01 14:08:28 +08:00
YK Hung
6d02ca945f Merge "Update logs of BatteryEntry & BatteryHistEntry" into main 2024-04-01 05:50:04 +00: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