Commit Graph

131 Commits

Author SHA1 Message Date
Jaewan Kim
614074e5c7 Hide Linux terminal if VM isn't supported
Bug: 385216798
Test: atest
Flag: Build.RELEASE_AVF_SUPPORT_CUSTOM_VM_WITH_PARAVIRTUALIZED_DEVICES
Change-Id: I06fe52cf877deb3cd9ebc61af1579931b97d7766
2024-12-21 00:31:55 +09: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
Jacky Wang
b3e1b527d8 Catalyst framework integration
Bug: 335132588
Flag: com.android.settingslib.flags.settings_catalyst
Test: Presubmit
Change-Id: Ic0f0193fd5cee144f2fab36ae5190156efb7bd10
2024-09-09 21:14:53 +08:00
Shaowei Shen
a2c65ecec4 Merge "[Physical Keyboard] Add flag for keyboard a11y new page features" into main 2024-08-14 02:26:13 +00:00
shaoweishen
b79d962c93 [Physical Keyboard] Add flag for keyboard a11y new page features
Bug: 345399212
Test: N/A
Flags: com.android.settings.keyboard.keyboard_and_touchpad_a11y_new_page_enabled
Change-Id: I03a6c7bbb042f90761838724a0097f35b008449c
2024-08-13 09:06:33 +00:00
Chaohui Wang
7477f4ea9a Show category when search "Mobile data"
The displayed category is "SIMs".

Bug: 346776183
Flag: EXEMPT bug fix
Test: manual - search "Mobile data"
Test: unit test
Change-Id: If3c395281e96603193e7476a9e76d1f9e9213531
2024-07-30 09:48:28 +08:00
Yuchen Sun
93036e2045 Clean up slice from spa and move androidx.slice dependency to Settings.
Test: build successfully
Flag: EXEMPT clean up
Bug: 352442832
Change-Id: Ifc222a91991d4924f1cb7b5c1e7fd90968bfed26
2024-07-18 08:25:48 +00:00
Alina Zaidi
b456e84570 [Dev option] Use DesktopModeStatus and ToggleOverride from wm/shell in Settings DesktopModePreferenceController
Test: Added tests
Bug: 348193756
Flag: com.android.window.flags.show_desktop_windowing_dev_option
Change-Id: I0dc3c62df992a2454bd7c1fc239302489107ae59
2024-07-08 16:07:43 +00:00
Yalan Yiue
c291f22722 Merge "Launch oobe from Settings" into main 2024-07-02 17:22:14 +00:00
yyalan
dc9701f427 Launch oobe from Settings
Bug: 344860480
Flag: com.android.systemui.shared.new_touchpad_gestures_tutorial
Test: Manual
Change-Id: Iabc155d2f99717c6489308ffb1e63ef4e59f0332
2024-07-01 15:35:55 +00:00
Joshua McCloskey
d5321719fe Removed redundant dependcy from build file
Test: Verified that the additional libraries don't cause any issue with
settings
Bug: 346161718
Flag: BUILD ONLY

Change-Id: Ie3d266c486d507c241d800fa7f2680a595896280
2024-06-26 18:57:04 +00:00
Julia Reynolds
dea5102c44 Migrate Settings intents
to our new modes ui

Fixes: 333909883
Test: manual - created test app that launches each intent, launched each
with flag on and flag off
Test: atest com.android.settings.notification.modes
Flag: android.app.modes_ui

Change-Id: I8259b554fe34b453880890c667165547033ccd06
2024-06-20 12:48:40 -04:00
Joshua McCloskey
584b6c9e96 Biometrics Enrollment refactor (7/N)
This cl moves the creation of repos and interactors to the
SettingsApplication.
Bug: 297082837
Test: atest

Change-Id: I9049da6f03bb1dc18d4186961444bf613d773d0e
2024-06-05 18:18:59 +00:00
mxyyiyi
8eaf8edf7e Add AppOptimizationModeEventsUtils to save & update app optimization mode expiration events.
- [Update] Save app optimizaiton mode set & expire events from turbo.
- [Reset ] Restore optimization mode for expired events in Periodic job.
- [Delete] Cancel expiration event if user updates mode in app usage page.

Bug: 338965652
Test: atest + manual
Change-Id: I3fb7311207da1bdb1146ea1ff041aca6adb66052
2024-06-03 19:42:26 +08:00
Chaohui Wang
5920567bee Remove unused "androidx.test.rules" from production
Bug: 316941721
Test: m Settings
Change-Id: I995efda7e4b9dbcb7a3dafcda6da0346153fa60e
2024-05-30 12:26:30 +08:00
Kholoud Mohamed
85c38bc078 Fix incorrect password attempts messaging on headless
Bug: 257276847
Test: manual
Flag: ACONFIG android.app.admin.flags.headless_single_user_fixes DISABLED
Change-Id: I2fb70d99203228ce4ee36f84eb4dfed36fa6fd8c
2024-04-19 12:49:31 +00:00
Manish Singh
c1a314b2c9 Statically inlcude the frameworks flags lib
Bug: 329914404
Bug: 329738797
Test: build
Change-Id: I12c94e298d9fa69e509c0c57ac5d7d7040b04b04
2024-03-20 15:45:44 +00:00
Jacky Wang
006bf17c4f [DataStore] Migrate BatteryBackupHelper to BackupRestoreStorage
Bug: 325144964
Test: Manual tests
Change-Id: I19f7c78969d70648d1e45f1627827d98b1fdd1e0
2024-03-03 22:42:00 +08:00
Treehugger Robot
12f99280a0 Merge "Drop platform_apis from android_library" into main am: ff6f53b24a am: 2605622758
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2971233

Change-Id: Ica708b747589d0daf7c4f62554cb03755b573668
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-21 19:43:11 +00:00
Treehugger Robot
2605622758 Merge "Drop platform_apis from android_library" into main am: ff6f53b24a
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2971233

Change-Id: I193568ec0dc8884dfa0be634e90b26295658aee8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-21 19:09:57 +00:00
Spandan Das
266a9a503c Drop platform_apis from android_library
This property is a no-op for this module type.

Test: m nothing
Bug: 215379393
Change-Id: I73811c70c4191eb6005a5f365f0b1c149d30564b
2024-02-21 14:37:30 +00:00
Ronish Kalia
902abe911d Merge "[DON'T BLOCK] Test ownership migration rules" into main 2024-02-12 19:30:40 +00:00
Aditya Choudhary
01735e6b40 [DON'T BLOCK] Test ownership migration rules
This CL is created as a best effort to migrate test targets
to the new android ownership model. If you find incorrect or unnecessary
attribution in this CL, please create a separate CL to fix that.

For more details please refer to the link below,
go/new-android-ownership-model

Bug: 304529413
Test: N/A
Change-Id: I7fbd55a92f4302a6e03bcff0283737fd9295165d
Merged-In: I7fbd55a92f4302a6e03bcff0283737fd9295165d
2024-02-09 17:45:41 +00:00
Aditya Choudhary
4f5c1ac5bc [DON'T BLOCK] Test ownership migration rules
This CL is created as a best effort to migrate test targets
to the new android ownership model. If you find incorrect or unnecessary
attribution in this CL, please create a separate CL to fix that.

For more details please refer to the link below,
go/new-android-ownership-model

Bug: 304529413
Test: N/A
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:3f65505208d57fa18be353f815c44fdd6f004f4b)
Merged-In: I7fbd55a92f4302a6e03bcff0283737fd9295165d
Change-Id: I7fbd55a92f4302a6e03bcff0283737fd9295165d
2024-02-09 16:54:41 +00:00
Aditya Choudhary
3f65505208 [DON'T BLOCK] Test ownership migration rules
This CL is created as a best effort to migrate test targets
to the new android ownership model. If you find incorrect or unnecessary
attribution in this CL, please create a separate CL to fix that.

For more details please refer to the link below,
go/new-android-ownership-model

Bug: 304529413
Test: N/A
Change-Id: I7fbd55a92f4302a6e03bcff0283737fd9295165d
2024-02-09 16:14:48 +00:00
Joshua McCloskey
98374376cc Updating navigation view model
Test: atest com.android.settings.fingerprint2.ui.enrollment.modules.enrolling.rfps.viewmodel
com.android.settings.fingerprint2.ui.enrollment.viewmodel
com.android.settings.fingerprint2.ui.settings
com.android.settings.fingerprint2.domain.interactor
com.android.settings.fingerprint2.enrollment.viewmodel
Bug: 295205754

Change-Id: I210712ab76050b89452fb871cd2a4fb28bfd4012
2024-02-07 18:33:52 +00:00
josephpv
e1a2c82db3 Add Private space Delete settings page inside PS settings page
Contains implementation of settings page for Delete private space
controller inside private space settings page.
- On selecting to delete private space displays list of account signed in
to private profile and deletes the private space after authentication.
- Shows a toast message after private space is deleted

- Adds dependency for setupdesgin loading layout to show a loading
  screen while deletion of private space is in progress.

Recording Link : b/318383729
go/ss/4Aq3rmbSGHMHesK.png

Bug: 318383729
Test: atest DeletePrivateSpaceControllerTest

Change-Id: Ia1730915e2469b47823c507f9ef6cd8f63c99baf
2024-01-31 19:29:13 +00:00
Jacky Wang
5efa494163 Add SettingsLintDefaults to Settings-core
Bug: 319351140
Change-Id: I024e42126d576c26c7891942a5ddd99fc2e39309
Test: manual compile with lint
2024-01-17 15:02:38 +08:00
Treehugger Robot
2a5dda45a1 Merge "Add a linter requiring Nullability Annotations" into main 2024-01-09 03:47:06 +00:00
rambowang
41ba9dc658 Support reset IMS stack in Reset Mobile Network flow
Reset the IMS stack for the specified subscription
with the help of API TelephonyManager#resetIms.

Bug: 271921464
Test: ResetNetworkOperationBuilderTest
Change-Id: I61575f18bcc300f362000dc7f4257b9d794b6b69
2023-12-22 10:33:46 -06:00
Fangqiu Su
7dfb2a182b Update the imports to androidx.test.filters.*
Bug: 316941721
Test: mmma .
Change-Id: Ia19c53850a0440b89434fcb5bf3fc1f61b58a46c
2023-12-19 18:12:46 +00:00
Sunny Shao
b047e1aacf Add a linter requiring Nullability Annotations
-This linter only check Java source and its public methods.
-Apply to method return type not primitives or void.
-Apply to method parameters not primitives.

Bug: 307770597
Test: manual test
Change-Id: I372168fb7dbe6c45803994c931bb5d103cf66169
2023-12-13 22:02:36 +08:00
Roshan Pius
da05498175 Merge "settings: Remove @hide NFC API usage" into main am: 75a49e0abb
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2851159

Change-Id: Ic089b941505ff82eca32e9d82f9648909b30c267
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-30 18:31:27 +00:00
Jacky Wang
b4598567fc Re-enable nullaway plugin
Bug: 307330031
Test: make Settings RUN_ERROR_PRONE=true
Change-Id: I6445b588f11bc01e6d885f73ffa35329b5db2ab2
2023-11-30 21:36:24 +08:00
Roshan Pius
0d11f492f7 settings: Remove @hide NFC API usage
These @hide usages in other parts of platform need to be cleaned
up to unbundle NFC mainline module.

Flag: None (The NFC flag - `enableNfcMainline` has been promoted to trunkfood. Note these APIs are available as @hide even if not available in formal SDK until V)
Bug: 307352220
Test: Compiles

Merged-In: I6f87ad7ae03c67aaa2ddb0ac2529debc53278ba8
Change-Id: I6f87ad7ae03c67aaa2ddb0ac2529debc53278ba8
2023-11-29 22:22:16 +00:00
Roshan Pius
f04ee0dfab settings: Remove @hide NFC API usage
These @hide usages in other parts of platform need to be cleaned
up to unbundle NFC mainline module.

Flag: None (The NFC flag - `enableNfcMainline` has been promoted to trunkfood. Note these APIs are available as @hide even if not available in formal SDK until V)
Bug: 307352220
Test: Compiles

Change-Id: I6f87ad7ae03c67aaa2ddb0ac2529debc53278ba8
2023-11-29 21:24:28 +00:00
Edgar Wang
58bed09373 Refactor AppPicker to adopt the latest UX
- get rid of ListActivity
- add aconfig

Bug: 299195099
Test: manual
Change-Id: I922ffb46f3132d117b0f682d8076f9e975d02b2c
2023-11-23 22:17:12 +00:00
Chun-Ku Lin
0f2cc34230 Don't show quick settings tooltip if the user is in the Setup Wizard,
since the user can't access the Quick Settings Panel.

Bug: 294560581
Test: manual
- Turn on feature flag: adb shell device_config put accessibility com.android.settings.accessibility.remove_qs_tooltip_in_suw true
- Modify the font scale in SUW, verify the QS tooltip doesn't show up
- Modify the font scale after SUW, verify the QS tooltip shows up
Test: atest SettingsRoboTests:com.android.settings.accessibility

Change-Id: I1d1a4f8f70ea3e1d929952d5c273de1b4cd80503
2023-11-14 23:30:49 +00:00
Treehugger Robot
24c989a070 Merge changes from topic "wv-dev-opt" into main
* changes:
  Add feature flag for force L3 dev option
  Add Widevine developer option to settings
2023-11-14 22:54:03 +00:00
Kyle Zhang
519d26d8f0 Add feature flag for force L3 dev option
Bug: 301669353
Change-Id: I289bed846982e94584fdb067e84186a61587d578
2023-11-14 21:52:06 +00:00
Daniel Norman
60d28f7a8e Includes android.view.accessibility Aconfig flags in Settings.
Bug: 303511250
Test: Used in followup change
Change-Id: I639e42b03eb7b8a49cb8fd18a765993963a9243d
2023-11-10 18:38:30 +00:00
Treehugger Robot
3521df9dca Merge "settings(payments): Use newly exposed formal API for CardEmulation.getServices()" into main am: 85ca373e75
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2810325

Change-Id: I0ac76dbfb034e1a9856b231aa59b3ec0197914d8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-07 04:48:36 +00:00
Roshan Pius
ad01bf88a7 settings(payments): Use newly exposed formal API for CardEmulation.getServices()
Bug: 307352220
Test: Compiles
Merged-In: Iaaa37a8e55d755f8abcbaa26c31bf7962e166e96
Change-Id: Iaaa37a8e55d755f8abcbaa26c31bf7962e166e96
2023-10-31 18:19:37 +00:00
Treehugger Robot
418f3ef6b9 Merge "settings(payments): Use newly exposed formal API for CardEmulation.getServices()" into main 2023-10-31 18:17:00 +00:00
Chaohui Wang
268c036711 Remove android.content.pm.flags-aconfig-java
Bug: 307923417
Test: presubmit
Change-Id: I586518964d7b424594ff823044dd1d08524ff0d4
2023-10-31 19:04:57 +08:00
Roshan Pius
a5d82be483 settings(payments): Use newly exposed formal API for CardEmulation.getServices()
Bug: 307352220
Test: Compiles
(cherry picked from https://android-review.googlesource.com/q/commit:1b6f9160c6954619bc86a3f7c7c39241b2427d91)
Change-Id: Iaaa37a8e55d755f8abcbaa26c31bf7962e166e96
2023-10-31 01:14:44 +00:00
Jean Chen
48d73aa3f3 feat(MultiFingerMultiTap): Add two-finger triple-tap shortcut on magnification dialog
The shortcut is separate from single-finger triple-tap. It’s under hardware shortcut and above/outside of Advanced section.

Bug: 297805269
Test: manual
Test: atest ToggleScreenMagnificationPreferenceFragmentTest
Change-Id: Id74cf3e457c04e167f3100d977b6c70c5d601026
2023-10-25 13:30:27 +00:00
Chaohui Wang
fcc636d571 Rearrange Settings dependencies
Bug: 285231003
Test: m Settings
Change-Id: Id5adab7d9a24265b98db9959c30904e82ad60dd4
2023-10-24 15:44:38 +08:00
Jihoon Kang
f528f7eaf3 Temporarily disable nullaway plugin
The nullaway plugin fails in errorprone build with stubs generated from
the API signature files, although the nullability information between
the from-text and from-source stubs are identical. Below is the failing
error message:
```
packages/apps/Settings/src/com/android/settings/accessibility/AccessibilitySettingsContentObserver.java:54: error: An unhandled exception was thrown by the Error Prone static analysis plugin.
            contentResolver.registerContentObserver(uri, false, this);
                           ^
     Please report this at https://github.com/google/error-prone/issues/new and include the following:

     error-prone version: 2.15.0
     BugPattern: NullAway
     Stack Trace:
     com.google.common.util.concurrent.UncheckedExecutionException: java.lang.RuntimeException: expected call to iterator(), instead saw null
```
The error message indicates that the nullaway plugin is throwing an
uncaught exception. Given that the plugin has been recently introduced
to the tree and is currently being only used by Settings, this change
proposes to temporarily disable the plugin to unblock the from-text stub
generation feature and re-enable the plugin once the issue is fixed.

Test: m Settings
Bug: 306242755
Bug: 304077181
Change-Id: I617d8f20ceeefb339b3c1f8cd03af94a8c37fd39
2023-10-23 18:20:59 +00:00
Iavor-Valentin Iftime
54bec848cc Merge "Settings for Polite Notifications" into main 2023-10-11 12:04:37 +00:00