Commit Graph

21722 Commits

Author SHA1 Message Date
Rafael Higuera Silva
736df6d2ef Add new dialogue when user is going to delete sim that use RAC.
Test: make
Bug: 316419093
Change-Id: Iaed54afa7cfd20c1dd6adbd4d50f54cab3da095d
2024-02-23 23:11:56 +00:00
Piotr Wilczyński
7291a65093 Merge "Refresh rate preference controllers aware of multiple displays" into main 2024-02-23 23:05:55 +00:00
mrulhania
8925db1c5e add sensitive content protection flag to developer option
Bug: 316955558
Test: atest SensitiveContentProtectionPreferenceControllerTest
Change-Id: Iedbbc9bd3bba00c6aaccc99758abe0b77306da01
2024-02-23 19:50:17 +00:00
Riley Jones
14ec4f08c3 Merge "DragToEdit Dynaimc Title" into main 2024-02-23 19:46:13 +00:00
Piotr Wilczyński
96343a9eff Refresh rate preference controllers aware of multiple displays
Set mPeakRefreshRate in the preference controllers to the highest refresh rate among all the modes of all the displays. It'll then be used to determine two things:
- if the setting is available
- the summary of the setting

This should only be done if the back up smooth display feature flag is enabled. If it's disabled, mPeakRefreshRate is passed to DisplayModeDirector and used for the votes. If the highest refresh rate of one display is 120 and that of the other is 130, we shouldn't set the vote to 130 for both displays. With the flag enabled, DisplayModeDirector figures out the highest refresh rate for each display.

Bug: 310238382
Test: atest PeakRefreshRatePreferenceControllerTest
Test: atest ForcePeakRefreshRatePreferenceControllerTest
Test: atest RefreshRateSettingsUtilsTest
Change-Id: I369927ba22df70958178505d8fc7c5747aaa8fdd
2024-02-23 18:01:22 +00:00
jasonwshsu
8d80de8446 Fix logging format and add test cases
For logging purpose, CachedBluetoothDevice#toString is more clear then BluetoothDevice#toString, so change to use CachedBluetoothDevice#toString

Bug: 307890347
Test: atest HearingDevicePairingFragmentTest
Change-Id: Ia0af65565ca7067fa6c4d5db286c3739fb65c1d2
2024-02-23 16:19:20 +00:00
Hani Kazmi
600021d762 Merge "Update missed ECM Settings tests" into main 2024-02-23 14:14:29 +00:00
songferngwang
d1d1e43313 Fixed AutoDataSwitchPreferenceControllerTest
The settings Flag is not assigned value, it cause test cases failed

Bug: 326543866
Test: have tested the v2/android-settings/apps/robolectric_settings_test at https://android-build.corp.google.com/builds/abtd/run/L92300030002155909
The test cases of com.android.settings.network.telephony are all passed.
Change-Id: I5a53fb6de741a7550f03ffca3c519d6b67c7c0fe
2024-02-23 10:48:53 +00:00
Mark Kim
94c7bd7e31 Merge "Disable APP_ARCHIVING flag for specific test" into main 2024-02-23 10:08:40 +00:00
Treehugger Robot
c76c7ac67f Merge "Adding FingerprintEnrollConfirmation" into main 2024-02-22 23:56:51 +00:00
Varun Shah
646d052228 Merge "Add new Special App Access screen for Backup Tasks." into main 2024-02-22 21:46:53 +00:00
Joshua McCloskey
0fe0f4d9ae Adding FingerprintEnrollConfirmation
Bug: 295217067
Test: atest FingerprintEnrollConfirmationScreenshotTest.kt
Test: adb shell device_config put biometrics_framework com.android.settings.flags.fingerprint_v2_enrollment true
Change-Id: I0b4995a97b7bccd35e26ed89bbbf14b80af4b0e1
2024-02-22 18:28:08 +00:00
Joshua Mccloskey
366e8e38e6 Merge "Fixed fingerprint enroll test" into main 2024-02-22 16:40:01 +00:00
Mark Kim
194d7f7687 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: InstalledAppCounterTest
Bug: n/a
Change-Id: I253cf7e6b28c9f1508c3f9fd1104fdb06b8706c2
2024-02-22 16:18:59 +00:00
Olivier Nshimiye
75ada354ed Merge "Add a toggle for enabling/disabling sensitive lockscreen notifications for Private Space" into main 2024-02-22 14:22:33 +00:00
Hani Kazmi
544e471ec2 Update missed ECM Settings tests
Bug: 297372999
Test: atest BluetoothDetailsRelatedToolsControllerTest
      AppInfoDashboardFragmentTest
Change-Id: Icd83b70b0621f71cc4a253375c65ff6cce34b672
2024-02-22 13:51:36 +00:00
Olivier Nshimiye
baecaee2a5 Add a toggle for enabling/disabling sensitive lockscreen notifications for Private Space
This adds a toggle in the Private Space Settings page to control the
lockscreen sensitive notifications for the private profile.
Sensitive notifications for private profile will still be disabled if
sensitive notifications are disabled for the main user.

Demo link:https://drive.google.com/file/d/1--LNXziTRTMvfdsJZAh90SiNiPxWNcI8/view?usp=sharing

Bug: 317067050
Test: atest SettingsUnitTests:HidePrivateSpaceSensitiveNotificationsControllerTest

Change-Id: Ie7f18c1a940e5ffd64112a01c48ac9dee58cb1ab
2024-02-22 11:10:54 +00:00
Fan Wu
a26f628213 Merge "Fix SurveyMixinTest" into main 2024-02-22 06:02:19 +00:00
Treehugger Robot
59e7d60fb4 Merge "[Shadow] Fix failed test case for battery defender" into main 2024-02-22 05:30:25 +00:00
Joshua McCloskey
0aefad8859 Fixed fingerprint enroll test
Test: atest FingerprintEnrollIntroductionTest
Fixes: 326325883
Change-Id: Ib0d0ebff90d401861fa0663403fc2366cd308f22
2024-02-22 03:47:30 +00:00
pajacechen
a20232d7a1 [Shadow] Fix failed test case for battery defender
- Fix failed test case in BatteryInfoTest and BatteryDefenderTipTest

Test: http://ab/I73800010248910938
Bug: 315748218
Change-Id: Iaa01a1d777236b7772fa762c94ab094246c38f21
2024-02-22 11:28:44 +08:00
Chelsea Hao
a9178952ae Merge "Add auto on toggle in settings." into main 2024-02-22 02:53:16 +00:00
Wu Ahan
888d636cfa Merge "Refactor SfpsEnrollmentFeatureImplTest" into main 2024-02-22 02:14:30 +00:00
Joshua Mccloskey
5d6ed31261 Merge "Adding biometric FRR Notification atom." into main 2024-02-22 01:04:07 +00:00
Jigar Thakkar
f73494e784 Merge "Use SetScreenLockDialogActivity to power screen lock setup prompt" into main 2024-02-22 00:09:16 +00:00
Hani Kazmi
05427e6903 Merge changes from topics "ecm-manager", "ecm-tests" into main
* changes:
  Replace ECM AppOps call with service
  Wired remaining SpecialAppAccess for ECM.
2024-02-21 19:29:04 +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
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
Yiyi Shen
a6525e9fcd Merge "[Audiosharing] Impl audio sharing feature provider in Settings" into main 2024-02-21 07:16:07 +00:00
Jason Chiu
ff98aac59f Merge "Replace getCallingActivity() with getLaunchedFromPackage()" into main 2024-02-21 01:12:23 +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
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
f4d0eff41e Merge "[SimUiEnhancement] Fix Automatic Data switch UI at SimOnboarding" into main 2024-02-20 02:02:22 +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
Zoey Chen
b1ff2767fd Merge "[ToA] Add the metrics in Settings" into main 2024-02-19 06:20:33 +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
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
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
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
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
Riley Jones
43420f16af DragToEdit Dynaimc Title
Bug: 323388734
Test: atest EditShortcutsPreferenceFragmentTest
Flag: aconfig edit_shortcut_dynamic_title true

Change-Id: I74785054e4f846db04d13a54bd6695e4690f5b8b
2024-02-16 23:03:12 +00:00
Becca Hughes
62fa76f719 Merge "Hide "additional services" if there is only a single primary services" into main 2024-02-15 23:54:59 +00:00
Joshua McCloskey
e5f62676c8 Adding biometric FRR Notification atom.
Test: statsd_testdrive 793
Test: statsd_testdrive 184
Test: m -j50 RunSettingsRoboTests ROBOTEST_FILTER=com.android.settings.biometrics
Test: atest FingerprintUpdaterTest FaceUpdaterTest
Bug: 302171089

Change-Id: I4c921b75321db79cc975b98b54b176a43379cd7c
2024-02-15 19:09:35 +00:00
Joshua Mccloskey
1c711222f9 Merge "Adding more biometric screenshot tests" into main 2024-02-15 17:17:51 +00:00
Hani Kazmi
96ab2b9e25 Wired remaining SpecialAppAccess for ECM.
This change enables the remaining settings for ECM, and adds tests for
both this and previous ECM changes.

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: I73d39d765dba0c1a75111c37b29ccf1c85d2cdd8
2024-02-15 15:15:23 +00:00
YK Hung
73b273d781 Merge "Add a protection for the null UID corner case" into main 2024-02-15 14:09:34 +00:00
ykhung
15e853a1b9 Add a protection for the null UID corner case
Test: atest SettingsRoboTests:com.android.settings.fuelgauge.datasaver
Fix: 324571889
Change-Id: Ia5a63dc360d4b518f2b86315b40bc2db12f007ed
2024-02-15 12:43:17 +00:00