Commit Graph

138655 Commits

Author SHA1 Message Date
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
Treehugger Robot
ff6f53b24a Merge "Drop platform_apis from android_library" into main 2024-02-21 18:29:16 +00:00
Tyler Saunders
d561342dc3 [automerger skipped] Merge "Remove ExperimentalLifecycleComposeApi" into udc-mainline-prod am: 0ca44d1772 -s ours
am skip reason: Merged-In I8798f723bc821241d70fc8e5cb2c6ae59d7115af with SHA-1 5d8fea06b1 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/26154434

Change-Id: Ic230691c42477be55486d7985663ce340bb6acb3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-21 18:04:13 +00:00
Chaohui Wang
a69da9f52f [automerger skipped] Remove ExperimentalLifecycleComposeApi am: 14b8df172f -s ours
am skip reason: Merged-In I8798f723bc821241d70fc8e5cb2c6ae59d7115af with SHA-1 5d8fea06b1 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/26154434

Change-Id: I778f22bc0e735d6720763baf654e254e2437100e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-21 18:04:02 +00:00
Tyler Saunders
0ca44d1772 Merge "Remove ExperimentalLifecycleComposeApi" into udc-mainline-prod 2024-02-21 17:11:33 +00:00
Chaohui Wang
7d58a1f3e8 Merge changes from topic "ApnTypeCheckBox" into main
* changes:
  Correct the APN type check box
  Fix cannot update APN settings in new edit page
2024-02-21 15:56:41 +00:00
Chris Göllner
83f0adc5c0 Settings - Move Activity embedding split min width config to resources
On some devices the values need to be configured to be different than
the default.

Bug: 326215764
Test: Manual
Change-Id: I56a3a6608a4ac4eaf7d7dede4f6cb4278638f29c
2024-02-21 15:14:30 +00:00
Hani Kazmi
206300962f Replace ECM AppOps call with service
A new ECM service was introcuded in changeId
I831391e4437b51b3312b5273a2360bd029a3d8ee.

We begin calling it, and update/cleanup method signatures to match.

Note: There are two feature flags:

1. enhancedConfirmationModeApisEnabled - read only, protects the
   mainline API.

2. extendEcmToAllSettings - runtime - gates calls to the above APIs.

We use both so we can ramp up in teamfood as needed.

Bug: 297372999
Test: Tested on device
Test: atest SpaPrivilegedLibTests
Test: atest com.android.settings.applications.specialaccess.notificationaccess
Test: atest com.android.settings.datausage
Test: atest PremiumSmsAccessTest
Test: atest RestrictedPreferenceHelperTest
Change-Id: I945ec51df5cd63de548a8ffdd1acc4f09f2301e5
2024-02-21 14:43:02 +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
Treehugger Robot
560f2499c7 Merge "Add settings search synonyms for touchpad." into main 2024-02-21 12:55:16 +00:00
Ben Murdoch
59a3ed3f38 Add settings search synonyms for touchpad.
Also fixes a bug in TrackpadTouchGestureSettings that used the wrong
preference ID for search indexing.

Bug: 300611520
Test: Verified on device
Flag: NA
Change-Id: I62ccf6d0b410be977f59f101edc5c42233d9474a
2024-02-21 11:38:45 +00:00
Chaohui Wang
93b0dfbff5 Correct the APN type check box
- Correct the pre checked set.
- Correct when read only apn types is set.
  Gray out the read only types, if user try to select them, make a toast
  to tell user this type is not allowed by carrier.

Fix: 326172568
Test: manual - on APN edit
Change-Id: I9c2dac5adf7c16f53d255f7ead215e45c29aa491
2024-02-21 19:07:17 +08:00
Chaohui Wang
6664870eb8 Fix cannot update APN settings in new edit page
Fix: 326164397
Test: manual - edit existing APN
Test: unit test - existing tests still pass
Change-Id: I92a2e375b990f0e478dbb30c389371a8e0596608
2024-02-21 18:14:20 +08:00
Yiyi Shen
27fb853173 [Audiosharing] Gates legacy le audio sharing UI in sound Settings.
Bug: 322295262
Test: atest
Change-Id: I5f58858ebc419be7aa6cc6f188b0722b5ace4392
2024-02-21 09:47:42 +00:00
Ze Li
bfaa3398bb Merge "[Hide DCK devices] Hide DCK devices from settings app (available devices section)." into main 2024-02-21 08:59:19 +00:00
Yiyi Shen
a6525e9fcd Merge "[Audiosharing] Impl audio sharing feature provider in Settings" into main 2024-02-21 07:16:07 +00:00
Angela Wang
ca1917b688 Update footer string for hearing device related pages
Users sometimes will confuse why their device is not shown on hearing device related pages. Describe more that only ASHA and LE Audio hearing aids will be listed in
these pages to let them know the reason.

Bug: 326167961
Test: build pass, only simple string update
Change-Id: I624c7a23e98c04f0a659742f63465918a45bb888
2024-02-21 06:09:05 +00:00
SongFerng Wang
86db475673 To extend the character limit for Automatic data switching
Bug: 326154869
Change-Id: I115de46ce19789c812d455b9e79449a8fedda890
Test: NA
2024-02-21 03:44:33 +00:00
Jason Chiu
ff98aac59f Merge "Replace getCallingActivity() with getLaunchedFromPackage()" into main 2024-02-21 01:12:23 +00:00
Nate Jiang
efcf1b7f05 Move to new read only flag
Mainline module can only support read-only flag now

Bug: 325521253
Test: TH
Change-Id: I4514fcd21560f95084ed3c9da1a0a9b13c625c91
2024-02-20 16:14:17 -08:00
David Liu
55969e59c1 [Two-pane] Fix keyboard navigation issue, searchbar not able to be selected.
- make search toolbar focusable
- set next tab navigation element to homepage_container

Bug: 324420544
Test: manual
Change-Id: I2783b7540d954f7adf64c6ac3e90d91c196646c5
2024-02-20 23:20:30 +00:00
Jigar Thakkar
5bbc1166f3 Use SetScreenLockDialogActivity to power screen lock setup prompt
With this change, we move to using SetScreenLockDialogActivity to enable
the prompt to set up the screen lock. This prompt is shown whenever
someone taps the private space settings page option to either
setup/unlock the space. We will also be using the same dialog prompt in
other places in the framework
(UserManagerService.requestQuietModeEnabled) as well.

Test: atest PrivateSpaceAuthenticationActivityTest
Bug: 316129700
Flag: android.multiuser.show_set_screen_lock_dialog
Change-Id: Ib9fe009d3b36e0eea242fbf894e616b1efcb9d6b
2024-02-20 19:46:54 +00:00
Julia Reynolds
03c08da4b1 Experiment: hide unused channels in settings
behind a 3-dot menu. "unused" in this case means a channel that is not blocked but also hasn't sent a notification in the last 2 weeks

Test: manual
Flag: com.android.server.notification.notification_hide_unused_channels
Bug: 322536537
Change-Id: I99f5a61411c9b3a567fd7517f0bf7ea33bb7637c
2024-02-20 14:24:39 +00:00
songferngwang
192f95ee5e Changing the SettingsOutlinedTextField's shape
Bug: 318310357
Bug: 298898436
Bug: 298891941
Test: build pass
Change-Id: I24de2f78844744fd9cc663f45598f6fdf7b897be
2024-02-20 08:31:07 +00:00
Joseph Vincent
12ff61b3c7 Merge "Handle listing of PS apps in Apps > Special App Access > Device Admin Apps" into main 2024-02-20 08:12:23 +00:00
Yiyi Shen
a2577fd60e [Audiosharing] Impl audio sharing feature provider in Settings
Bug: 324023639
Test: manual
Change-Id: I4005ea8fbc0983a833f5a7dee2815f09eab48d3c
2024-02-20 08:06:55 +00:00
chelseahao
13461d2fb8 Add auto on toggle in settings.
Test: atest com.android.settings.bluetooth
Bug: b/316822488 b/316985153
Flag: ACONFIG com.android.settingslib.flags.bluetooth_qs_tile_dialog_auto_on_toggle DISABLED
Change-Id: Iaa8ce3d3f6e2ffa25d8b7a35b5f55f4774ac4a40
2024-02-20 15:42:31 +08:00
SongFerng Wang
38e6e7f513 Merge "[SimsUiEnhancement] The primary SIMs ListPreference's items show number" into main 2024-02-20 03:40:51 +00:00
SongFerng Wang
f4d0eff41e Merge "[SimUiEnhancement] Fix Automatic Data switch UI at SimOnboarding" into main 2024-02-20 02:02:22 +00:00
SongFerng Wang
89963e81ff Merge "[Sims Enhancement] update the sim's name after renaming sim" into main 2024-02-20 02:01:16 +00:00
josephpv
62df3efdd7 Handle listing of PS apps in Apps > Special App Access > Device Admin Apps
Currently Device Admin Apps page shows apps from Private space even
when PS is locked.  This change takes care to hide PS apps from the list
when private profile is in quiet mode and on disabling quiet mode PS
apps are shown in the list.
Also takes care to update the active apps summary count to not include
PS apps when private profile is in quiet mode.

Recording link : b/324311892#comment2

Bug: 324311892
Test: Manual
Change-Id: If4199ecad0a228c8e491778fb62c09c8b3f20604
2024-02-19 23:00:19 +00:00
Wu Ahan
c7e3149a25 Refactor SfpsEnrollmentFeatureImplTest
Bug: 288155127
Test: atest SfpsEnrollmentFeatureImplTest
Change-Id: I2725e73ad595db752328bc5092ff4295f634c154
2024-02-19 14:49:26 +00:00
Fiona Campbell
836018788d Create EvenDimmerPreferenceController
- Create preference controller
- linked to even dimmer activated setting

Bug: 179428400
Test: EvenDimmerPreferenceControllerTest
Change-Id: I3ac6501c3d45399caeda96fe6a7dd4164439d1bd
2024-02-19 11:46:11 +00:00
YK Hung
3f52a6c47d Merge "Update log metrics in battery usage." into main 2024-02-19 10:51:01 +00:00
YK Hung
2acee8121f Merge "[Shadow] Update the string and the dismiss button" into main 2024-02-19 09:24:53 +00:00
pajacechen
1abc13fe29 [Shadow] Update the string and the dismiss button
- Disable the dismiss button for incompatible charging
- Update the button string for battery defender tips
- Update settings banner icon for defender

Test: Manual Test
Bug: 315748218
Change-Id: I0cfe03e7984be02eff4fb6dce68cc22fe7edf8e2
2024-02-19 08:06:44 +00:00
Zoey Chen
b1ff2767fd Merge "[ToA] Add the metrics in Settings" into main 2024-02-19 06:20:33 +00:00
Ze Li
ad3fc8c219 [Hide DCK devices] Hide DCK devices from settings app (available devices section).
Hide preferences of devices that are both bonded and exclusively managed in available devices section.

Test: manual test
Bug: 322285078
Change-Id: Id9df1cd20e36c5d50176d64551754364cc1c795f
2024-02-19 12:56:53 +08:00
songferngwang
bf7a8d765e [SimsUiEnhancement] The primary SIMs ListPreference's items show number
Add the number at item's summary at ListPreference

Bug: 318310357
Bug: 298898436
Bug: 298891941
Test: Build pass
atest ListPreferenceTest

Change-Id: I21be34ee73d9532b88443928442def9816ac3bf7
2024-02-19 03:49:43 +00:00
songferngwang
6d0b41af5a [SimUiEnhancement] Fix Automatic Data switch UI at SimOnboarding
- Automatic Data switch can't set value to framework, since
the nonDds is -1
- update the ProgressDialog as compose UI

Bug: 318310357
Bug: 298898436
Bug: 298891941
Test: Build pass
Change-Id: Ifeca38b42b3a51e8a967c0e744eeae06338f6ddc
2024-02-19 03:12:50 +00:00
songferngwang
a70f208df3 [Sims Enhancement] update the sim's name after renaming sim
-Remove remember to update the title and summary
-Sim Onboarding primary sim page removes the catogory

Bug: 318310357
Bug: 298898436
Bug: 298891941
Test: Build pass
Change-Id: Ibc0922511cd1b2e65c6af86eab06b6f9d6fce54d
2024-02-19 02:52:21 +00:00
Chaohui Wang
e9917e2f48 Fallback to NUMERIC when CARRIER_ID is unknown
For some subscription, the carrier id is unknown (-1), which cause the
inserted APN not be displayed.

Fallback to NUMERIC when CARRIER_ID is unknown to fix this issue.

Fix: 324394199
Test: manual with esim test profile - carrier id -1
Test: unit tests
Change-Id: Ic63a3e0c9ab37c8bdf86a2c7155b08778f05deff
2024-02-18 16:26:15 +08:00
mxyyiyi
f33597b41d Update log metrics in battery usage.
- Remove redundant logs
- Update action id

Bug: 323495266
Test: manual
Change-Id: I3146405912f3df152c7a0d525ba06ba76e2e02df
2024-02-18 16:00:43 +08:00
Varun Shah
a00a81cc1c Add new Special App Access screen for Backup Tasks.
This new screen shows apps that hold the new RUN_BACKUP_JOBS permission.

Also add a reference to this screen in an app's info page under the
"Advanced" section for apps that have requested this permission.

Bug: 320563660
Test: BackupTasksAppsTest
Test: BackupTasksAppsPreferenceControllerTest
Test: visually via the Settings page

Change-Id: I7136fc74f3b0d0124889e7cf9e1234f917346432
2024-02-17 21:54:12 +00:00
Mark Kim
faba808e5e Merge "Disable APP_ARCHIVING flag for specific test" into main 2024-02-17 10:01:14 +00:00
Zoey Chen
f322a43a57 [ToA] Add the metrics in Settings
Bug: 323462103
Test: manual + presubmit
Change-Id: Ic7ad80ed0829b11de4f8f7278149292d0cd80622
2024-02-17 07:39:28 +00:00
Treehugger Robot
8f0c7f63ee Merge "Use parent profile for device credential" into main 2024-02-17 05:30:38 +00:00
sunnyshao
507024bbdc Update the datetime page UI
- Use the SwitchPreferenceCompat to replace the SwitchPreference.

Fixes: 322679264
Test: manual test
Change-Id: I2b940538b7f73a7cc0e365a05780eb84900034d4
2024-02-17 11:07:01 +08:00
Mark Kim
bf0ea22082 Disable APP_ARCHIVING flag for specific test
APP_ARCHIVING flag was introduced to control archiving feature in
Settings separately from OS.
The broken test was expecting archiving feature flag be disabled but it
didn't take into account a newly introduced flag which was automatically
rolled out in ag/26270549

Test: AppButtonsTest
Bug: 325632047
Change-Id: I02a1f4e2e2bfa1b85f2d993c4127698c8a6195dc
2024-02-17 00:47:05 +00:00
David Liu
f1c1e011b2 Merge "Fix keyboard navigation issue, searchbar not able to be selected." into main 2024-02-16 23:26:45 +00:00