Commit Graph

22952 Commits

Author SHA1 Message Date
Weng Su
0256fe816d Avoid launching captive portal pages when uri is empty
- If uri is empty it will cause ActivityNotFoundException when calling startActivity

Bug: 363782926
Flag: EXEMPT bugfix
Test: Manual testing
atest -c WifiDetailPreferenceController2Test

Change-Id: I48b9a53afe08a7c5e8e512c1961d6aea22a12a21
2024-09-16 17:05:10 +08:00
Treehugger Robot
428829bfc5 Merge "Provide installed a11y services/activities from dynamicRawData for search" into main 2024-09-13 20:19:40 +00:00
Treehugger Robot
02b60ddb14 Merge "[AudioStream] Hysteresis mode support" into main 2024-09-13 18:47:47 +00:00
Matías Hernández
46744e40f0 Merge "Rename usages of ZenRule.isAutomaticActive() to isActive() in Settings" into main 2024-09-13 17:43:29 +00:00
Rongxuan Liu
2c3f54c5e3 [AudioStream] Hysteresis mode support
Flag: com.android.settingslib.flags.audio_sharing_hysteresis_mode_fix
Test: atest com.android.settings.connecteddevice.audiosharing.audiostreams
Test: manual test with broadcast hysteresis mode
Bug: 355222285
Bug: 355221818
Change-Id: If3a1fbdc391eeda6979868829bc00c435a43c329
2024-09-13 17:14:01 +00:00
Jacky Wang
f6a573530e Move ObservablePreferenceFragment class
Bug: 365922551
Flag: EXEMPT Move class only
Test: Presubmit
Change-Id: I17851055b09d73b95e6adaafbe96f4375d5f637e
2024-09-13 20:39:59 +08:00
Matías Hernández
31e3f274d5 Fix existing DND Settings shortcuts to point to Modes
Fixes: 365545604
Test: atest ShortcutsUpdaterTest + manual (flag flip + reboot)
Flag: android.app.modes_ui
Change-Id: I28f7e3e69175e92611668fdfa655a817ffcc905e
2024-09-13 11:25:03 +00:00
Matías Hernández
939189bde8 Refactor shortcut updating, and do it on BOOT_COMPLETE
This CL shuffles quite a bit of code around, but the effective differences are:
* Unified shortcut updating code (language switch & backup restoration).
* Shortcuts are also updated on boot (flagged by MODES_UI which will need this).
* Removed usage of (long obsolete) AsyncTask.

A further CL will add some special-casing for the DND->Modes shortcut transition.

Bug: 365545604
Test: atest com.android.settings.shortcut + manual (switch language, reboot)
Flag: android.app.modes_ui
Change-Id: I30450d13cb05008d2a71ed89d4781eb81e5532b9
2024-09-13 12:16:46 +02:00
Haijie Hong
237264fe56 Merge "Show highlight for device setting items" into main 2024-09-13 08:58:44 +00:00
Treehugger Robot
c37ea6a376 Merge "Customize Fingerprint enroll activities" into main 2024-09-13 06:04:35 +00:00
Chaohui Wang
958639b79c Merge "Create SimRepository" into main 2024-09-13 02:40:52 +00:00
Treehugger Robot
b041a687ca Merge "Uses placeholder and percentage formatter for seek bar state strings." into main 2024-09-12 22:41:52 +00:00
Daniel Norman
1b98e50809 Uses placeholder and percentage formatter for seek bar state strings.
Placeholders and percentage formatter are best practice to help prevent
accidental translation errors, especially when mixing formatted strings
with literal percent signs.

Fix: 366201919
Flag: EXEMPT minor string format fix with no functionality change
Test: Use TalkBack to observe the state description of the seekbar;
      observe description is unchanged (e.g. "60% left, 40% right")
Test: atest BalanceSeekBarTest
Change-Id: Ie9dcc9219d253795be31b39279ed9d01d8794f66
2024-09-12 20:50:30 +00:00
Chun-Ku Lin
3f19805209 Provide installed a11y services/activities from dynamicRawData for search
Bug: 354076686
Flag: com.android.settings.accessibility.fix_a11y_settings_search
Test: Search Project Relate and verify the item shows up in the search
result
Test: Search Talkback with keywords, verify the Talkback shows up in the
search result
Test: atest AccessibilitySettingsTest

Change-Id: I258ecb0928308b7cde30c12104408e11cc25ecd5
2024-09-12 17:20:04 +00:00
Pat Manning
78da1fec93 Merge "Move pointer and touchpad customization settings to their own pages." into main 2024-09-12 14:20:31 +00:00
Yiyi Shen
b9cef19faa Merge "[Audiosharing] Show loading state on audio sharing page" into main 2024-09-12 11:52:11 +00:00
Pat Manning
753b476a39 Move pointer and touchpad customization settings to their own pages.
Bug: 269100659
Test: PointerTouchpadFragmentTest
Test: PointerTouchpadPreferenceControllerTest
Flag: android.view.flags.enable_vector_cursor_a11y_settings
Change-Id: I0dccf48f9b5416ad8e6d3c263188d4bb850f69e9
2024-09-12 10:33:40 +00:00
Yiyi Shen
a6d9fa163e [Audiosharing] Show loading state on audio sharing page
1. Show "Sharing audio stream..." once starting audio sharing
2. Show "Sharing with <devicename>..." once adding source to the device

Test: atest
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Bug: 362858894
Change-Id: I6c19d999baaa91d6a5365f24e88efe79c2b38072
2024-09-12 18:21:03 +08:00
Chaohui Wang
a6db1aabb6 Create SimRepository
Which unifies whether we should sim settings on some related pages.

Before this change, we check SubscriptionUtil.isSimHardwareVisible()
and / or Utils.isWifiOnly().

After this change, we unified logic to,
canChangeSimSettings() =
  packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) &&
    userManager.isAdminUser

Fix: 365924140
Flag: EXEMPT bug fix
Test: manual - check Network & internet
Test: unit tests
Change-Id: Ibf83237e3d0088f78c96a1b39ee8f1e3a9c756ea
2024-09-12 08:59:26 +00:00
Chaohui Wang
eb683dfe75 Merge "Create selectableSubscriptionInfoListFlow" into main 2024-09-12 08:56:39 +00:00
Jacky Wang
4b2b590d5c Remove unused HelpMenuController
Bug: 365922551
Test: Presubmit
Flag: EXEMPT Cleanup
Change-Id: I100bf23e42be1b33de18f92afa0fef3c3ecd8dda
2024-09-12 15:08:28 +08:00
Jacky Wang
d88ab26776 Merge "Avoid reference ObservablePreferenceFragment" into main 2024-09-12 06:49:30 +00:00
Jacky Wang
93b437fcf2 Avoid reference ObservablePreferenceFragment
Bug: 365922551
Bug: 275385372
Flag: EXEMPT Code cleanup
Test: atest AutoPinConfirmPreferenceControllerTest
Change-Id: I55cec2ca5535eac3f0fae16af6eae320b39f1fbe
2024-09-12 14:46:54 +08:00
Chaohui Wang
ced86bf56d Create selectableSubscriptionInfoListFlow
Which can be used in MobileNetworkSummaryController in the future.

Bug: 366097262
Flag: EXEMPT refactor
Test: manual - check Network & internet
Test: unit tests
Change-Id: Ia74af993646c2e1d53817f1e9f8ac3ef0b8fa97a
2024-09-12 11:43:05 +08:00
Chaohui Wang
04ef86d174 Merge "Fix description when erase esim" into main 2024-09-12 01:25:16 +00:00
Treehugger Robot
06ab83eb50 Merge "Fix errorprone issues" into main am: eb2e9e4776 am: bdd44e5242
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3258078

Change-Id: I1249c4cdae2cee729ac60d9e41507c7dc684621e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-11 18:22:01 +00:00
Treehugger Robot
eb2e9e4776 Merge "Fix errorprone issues" into main 2024-09-11 18:08:19 +00:00
Matías Hernández
00e86639d8 Merge "Update "Dark Theme" Settings screen to account for Modes that can toggle it" into main 2024-09-11 15:57:46 +00:00
Haijie Hong
b2b0b655ea Merge "Fix tests after device rename button is moved" into main 2024-09-11 15:57:05 +00:00
Matías Hernández
5b26a37a7e Rename usages of ZenRule.isAutomaticActive() to isActive() in Settings
Bug: 363193376
Test: N/A, automatic refactor
Flag: EXEMPT automatic refactor
Change-Id: Ice1ceccbe09e6206555b2f2b75bd7ea39d24dfd7
2024-09-11 13:39:43 +00:00
Haijie Hong
fb18978718 Fix tests after device rename button is moved
BUG: 343317785
Test: atest BluetoothDeviceDetailsFragmentTest
Flag: com.android.settings.flags.enable_bluetooth_device_details_polish
Change-Id: I3cb93f7128a1bb2a7d24b65772edf4b55e8f9bdf
2024-09-11 18:24:25 +08:00
Matías Hernández
2a3e8b3070 Update "Dark Theme" Settings screen to account for Modes that can toggle it
Bedtime is no longer a special case.

Fixes: 361592187
Test: atest com.android.settings.display.darkmode
Flag: android.app.modes_ui
Change-Id: Iddc5d8142d6bc0bb1f5c4ead876ee201c8818b12
2024-09-11 11:52:50 +02:00
Yiyi Shen
0e7d5fcf0d Merge "[Audiosharing] Add loading state dialog" into main 2024-09-11 05:55:24 +00:00
Yiyi Shen
45218f6199 Merge "[Audiosharing] Add dialog for share then pair with classic headset" into main 2024-09-11 05:55:00 +00:00
Haijie Hong
cb478b82f0 Show highlight for device setting items
BUG: 343317785
Test: atest DeviceDetailsFragmentFormatterTest
Flag: com.android.settings.flags.enable_bluetooth_device_details_polish
Change-Id: Ifac11881a9a305a39c1d2057ea354a8096f70647
2024-09-11 11:43:38 +08:00
Chaohui Wang
c57ab6ee65 Fix description when erase esim
R.id.sud_layout_description no longer works any more, migrate to
setDescriptionText().

Fix: 365582830
Flag: EXEMPT bug fix
Test: manual - on erase all data
Test: atest MainClearConfirmTest
Change-Id: Icfb492ada862fb0584ffdb8da440d94ce719e518
2024-09-11 11:35:15 +08:00
Treehugger Robot
6bcaf28f50 Merge "Make java_sdk_library dependencies explicit" into main 2024-09-10 23:53:01 +00:00
Jihoon Kang
4ae6ead8d6 Make java_sdk_library dependencies explicit
modules should specify the submodule of java_sdk_library that the module
actually depends on

Test: CI
Bug: 358613520
Merged-In: I78dec317d4e74275287e3a5b7f5ffe2b10db05ab
Change-Id: I78dec317d4e74275287e3a5b7f5ffe2b10db05ab
2024-09-10 22:43:05 +00:00
Jihoon Kang
9b946d241d Make java_sdk_library dependencies explicit
modules should specify the submodule of java_sdk_library that the module
actually depends on

Test: CI
Flag: EXEMPT build dependency cleanup
Bug: 358613520
Change-Id: I78dec317d4e74275287e3a5b7f5ffe2b10db05ab
2024-09-10 22:33:56 +00:00
Treehugger Robot
1c756ec809 Merge "Update use of android.webkit.UserPackage." into main 2024-09-10 14:09:29 +00:00
Yiyi Shen
ea68bb0825 Merge "[Audiosharing] Change main toggle enable conditions." into main 2024-09-10 10:55:36 +00:00
Yiyi Shen
d54c7e9728 [Audiosharing] Add dialog for share then pair with classic headset
In share then pair flow, after users are routed to pair new device page,
if they pair a classic headset, we will show this dialog to explain that
the headset does not support audio sharing.

Test: atest
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Bug: 362858921
Change-Id: I9cb600fa890563c179ac265c3f9c8cda52e4d296
2024-09-10 18:52:11 +08:00
Yiyi Shen
c347fba969 [Audiosharing] Add loading state dialog
Test: atest
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Bug: 362858894
Change-Id: Ic40c3c5971e29ce1dac896a8e4efa2284d95f45e
2024-09-10 15:37:40 +08:00
Chaohui Wang
9b118faa3e Merge "Create NrRepository" into main 2024-09-10 03:36:02 +00:00
Yiyi Shen
25796ffed6 Merge "[Audiosharing] Add retry dialog when start fail" into main 2024-09-10 02:40:13 +00:00
Torne (Richard Coles)
c82baecc32 Update use of android.webkit.UserPackage.
UserPackage no longer stores a UserInfo, only a UserHandle, to aid in
mainline modularization. Update Settings to fetch the UserInfo itself
when it needs to show the user name.

Bug: 310653407
Test: atest WebViewAppPickerTest
Flag: NONE cannot flag changed types in method signatures
Change-Id: I0e6f58e6b6a353171ddf923279ff08a92e2f040a
2024-09-09 18:00:59 -04:00
Daniel Norman
7db5b7a084 Merge "Makes Caption Language searchable only if captions are enabled." into main 2024-09-09 17:46:01 +00:00
MiltonWu
694fe0751a Customize Fingerprint enroll activities
Provide an interface for ODM/OEM to override Fingerprint enrollment
activities.

Bug: 364794493
Flag: EXEMPT can't apply flag for manifest change
Test: atest SettingsRoboTests:FingerprintEnrollTest
Change-Id: Ic519970a3837614b3d4c8cb2f6d75967ae838208
2024-09-09 14:49:09 +00:00
Haijie Hong
1a90869f28 Merge "Make bluetooth profile toggles configurable" into main 2024-09-09 12:56:07 +00:00
Yiyi Shen
d3f4982f6e [Audiosharing] Add retry dialog when start fail
Test: atest
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Bug: 362858894
Change-Id: I6ffb3433a6284e0b42d9c976c4abcdf835eee06f
2024-09-09 20:01:37 +08:00