Commit Graph

23874 Commits

Author SHA1 Message Date
Ebru Kurnaz
fb9fdc951b Add a preference for display size settings.
Currently slider is not functioning.

Flag: com.android.settings.flags.display_size_connected_display_setting
Test: atest ExternalDisplayPreferenceFragmentTest
Bug: 392853666
Change-Id: Ibcb55bc939a38dad58451b2a0db4a59f5aa28e5f
2025-02-04 20:37:28 +00:00
juquan
26ea7df1d5 Add PIN recovery entry in supervision PIN management page.
Bug: b/390500290
Change-Id: I942fad663d0fb731215707d7c0b18359242aecb0
Test: atest SupervisionPinRecoveryPreferenceTest
Flag:android.app.supervision.flags.enable_supervision_pin_recovery_screen
2025-02-04 19:10:01 +00:00
Julia Reynolds
55441003d3 Add app level settings for classification and summarization
Test: AdjustmentKeyPreferenceControllerTest
Flag: android.app.nm_summarization
Flag: android.app.notification_classification_ui
Flag: android.app.nm_summarization_ui
Bug: 377697346
Bug: 390412878
Change-Id: I85b67b5c0376ee4cd962e26bf178aae6fa712212
2025-02-04 10:53:57 -08:00
Matthew DeVore
883070758b Merge "Show a category for each external display" into main 2025-02-04 10:38:14 -08:00
Liefu Liu
121036ee7e Merge "Minor UI string change in Contacts Storage Setting." into main 2025-02-04 08:35:56 -08:00
Jacky Wang
2e265d4a7a [Catalyst] Introduce SettingsContract file
The new file contains all contract constants for external usages (e.g.
slice, external Get/Set API). Also reuse existing constants in
SettingsSlicesContract.

NO_IFTTT=Catalyst only

Bug: 388061003
Flag: EXEMPT refactor
Test: atest
Change-Id: I449b7b6cf82e1e102f2c96a21835191605f09943
2025-02-04 18:24:46 +08:00
Treehugger Robot
1ecacd8a5a Merge "Add one more param to isChargingOptimizationMode() for flexibility" into main 2025-02-04 01:01:51 -08:00
Jacky Wang
ef0b28e415 Merge changes from topic "sound" into main
* changes:
  Fix IntentReceiver leaked on Sound & vibration
  Get rid of VolumeSeekBarPreferenceController.setCallback
2025-02-04 00:53:31 -08:00
Treehugger Robot
2d664f308d Merge "Cleaned up the flag enable_modem_cipher_transparency" into main 2025-02-03 23:26:36 -08:00
Jacky Wang
402e5bb38b Fix IntentReceiver leaked on Sound & vibration
The root cause is that PreferenceController migrated to Catalyst will be
removed by DashboardFragment and VolumeSeekBarPreferenceController
onPause() is not invoked.

NO_IFTTT=Controller only

Fix: 386162594
Flag: EXEMPT bugfix
Test: atest&manual
Change-Id: I13f8588c8259ed4ddb9895ffc60e209c99c05269
2025-02-04 15:08:38 +08:00
Jacky Wang
a7fa6efe8f Get rid of VolumeSeekBarPreferenceController.setCallback
Set the callback to VolumeSeekBarPreference directly and simplify
SoundSettings.

Bug: 386162594
Flag: EXEMPT refactor
Test: atest&manual
Change-Id: Ic114c15c236da9f3ea3754408adbfa9c841befd0
2025-02-04 15:08:38 +08:00
Yiling Chuang
ab6b7758c1 Add one more param to isChargingOptimizationMode() for flexibility
Adds a new param about the charging policy to see if it's currently under CHARGING_POLICY_ADAPTIVE_LONGLIFE for more flexibility to check whether the charging optimization mode is enabled.

Bug: 391270019
Flag: EXEMPT bugfix
Test: atest SettingsRoboTests
Change-Id: Ie773d9a2a13d1a37ac9fd5940f10a100eccf77ca
2025-02-04 03:53:51 +00:00
Treehugger Robot
2117499c9e Merge "Fix NPE issue in Internet Settings" into main 2025-02-03 19:50:56 -08:00
Shawn Lin
d6e99d3783 Merge "Provide a way to customize biometric SafetySourceIssue" into main 2025-02-03 18:18:37 -08:00
Yining Liu
4b43425394 Merge "Fix the test failures for the new lock screen notifications settings page" into main 2025-02-03 14:20:44 -08:00
Matthew DeVore
c1191380b8 Show a category for each external display
Rather than show all external displays as a single item each under one
category, each external display has its own category. For now, the
category only has one item: the single Resolution+Rotation option.

This is more consistent with the Built-in display, which also still
only has one preference item in the category.

Flag: com.android.settings.flags.display_topology_pane_in_display_list
Bug: b/352648432
Bug: b/392946322
Test: ExternalDisplayPreferenceFragmentTest
Test: Open display list with two displays connected, and remove them one at a time
Change-Id: I4d7f8410f506fe53201bc87f8b55ffc6d407a9c5
2025-02-03 20:23:17 +00:00
Daniel Norman
6d0a04a171 Update strings again for refreshed High Contrast Text
Deletes the old string resource and uses a new resource because the old
translated strings do not have formatting placeholders. Eventually the
old translated strings will be automatically deleted and the new string
with placeholder will be translated.

Also uses placeholders for referencing other strings so that
we guarantee that the strings are consistent across this notification
and the actual preference in Settings.

Bug: 384791485
Test: see bug screenshots
Flag: com.android.graphics.hwui.flags.high_contrast_text_small_text_rect
Change-Id: I89a9ee4b3755b20f4e090df5b4cccb7ce47a961c
2025-02-03 20:00:09 +00:00
Liefu Liu
27f16da565 Minor UI string change in Contacts Storage Setting.
Bug: 394114508
Test: atest ContactsStorageSettingTest
Flag: EXEMPTED

	modified:   res/values/strings.xml
	modified:   tests/robotests/src/com/android/settings/applications/contacts/ContactsStorageSettingsTest.java

Change-Id: I2246f6a71116acd7d3ae256133ed1fea77c8ebab
2025-02-03 11:54:11 -08:00
Matthew DeVore
e8143a07a4 Allow pane height to shrink when setting topology
A recent CL added a feature to prevent the pane height from shrinking to
stop widgets from moving around. This is actually not a great experience
because a temporary state can keep the pane height very tall and
increase scrolling.

Flag: com.android.settings.flags.display_topology_pane_in_display_list
Bug: b/352648432
Test: change topology to be vertically shorter and verify the pane height shrinks
Change-Id: Ic48bfecea083a45c702c8719e3c93ceba55ae872
2025-02-03 13:37:16 -06:00
Fiona Campbell
fb79b1a294 Merge "Make Extra Dim Setting as percentage of device" into main 2025-02-03 09:13:50 -08:00
Treehugger Robot
a5e3d39db8 Merge "Disable ENABLE_DESKTOP_MODE_THROUGH_DEV_OPTION" into main 2025-02-03 04:42:10 -08:00
Weng Su
19bc8e0b86 Fix NPE issue in Internet Settings
- Ignore onWifiEntriesChanged callback when Activity does not exist

Bug: 389552565
Flag: EXEMPT bugfix
Test: Manual testing
atest -c NetworkProviderSettingsTest

Change-Id: I031043616f7c38d4bb27aa81ae3a0a0a32991c62
2025-02-03 18:40:47 +08:00
shaoweishen
120b2d46f7 [Physical Keyboard] Move Dialog to DialogFragment
Move Bounce key and Slow key Dialog to DialogFragment, dialog will not
be dismissed when screen rotate.

Bug: 390243451
Bug: 374037603
Flag: com.android.settings.keyboard.keyboard_and_touchpad_a11y_new_page_enabled
Test: atest
packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/

Change-Id: Ide87dbf8214f411941114281e7a5e8c81f75bdd4
2025-02-03 09:32:02 +00:00
Hakjun Choi
3f5cf60cc7 Clean up aconfig flag oem_enabled_satellite_flag
Bug: 374994012
Test: atest SubscriptionInfoListViewModelTest
Test: manual test in live network
FLAG: EXEMPT flag clean up
Change-Id: Ib9f9f692658df13aad45f2e889a48f2bffed9ed4
2025-02-03 09:16:48 +00:00
Shawn Lin
7c3559d37f Provide a way to customize biometric SafetySourceIssue
Add a new FeatureProvider for biometrics in FeatureFactory to provide a way to customize biometric SafetySourceIssue

Bug: 370940762
Test: m Settings
Test: m SettingsGoogle
Test: m SettingsSpaUnitTests
Test: m SettingsRoboTests
Flag: com.android.settings.flags.biometrics_onboarding_education
Change-Id: I4d11f3d3522ce5ac2f975cca7c041339f3ea6031
2025-02-02 18:46:25 -08:00
Treehugger Robot
e8afedea91 Merge "Desktop Experience needs the device to be eligible" into main 2025-02-01 04:56:13 -08:00
Pierre Barbier de Reuille
a85577054b Desktop Experience needs the device to be eligible
The Desktop Experience is only available (and therefore the freeform on
secondary display disabled) if the device is eligible for Desktop Mode.
Correcting the test to make it correct.

Fix: 393547201
Test: atest DesktopModeSecondaryDisplayPreferenceControllerTest
Flag: EXEMPT (bug fix)
Change-Id: I36a031487d8a6f6d681a2cb46a1fa50e47d870cc
2025-02-01 11:31:47 +00:00
Pierre Barbier de Reuille
2bd95dfc4d Disable ENABLE_DESKTOP_MODE_THROUGH_DEV_OPTION
To avoid issues controlling when desktop mode is enabled or not.

Bug: 393404767
Test: atest DesktopModePreferenceControllerTest
Flag: EXEMPT (bug fix)
Change-Id: I67643f3fe5994dfa901b259d5c49e89f19a9210c
2025-01-31 23:37:18 +00:00
Yining Liu
3e0623bd7e Fix the test failures for the new lock screen notifications settings page
Fix the old tests that fail when the new lock screen notifications
settings page flag is enabled.

Fix: 393631085
Flag: com.android.server.notification.notification_lock_screen_settings
Test: LockscreenNotificationMinimalismPreferenceControllerTest,
RedactNotificationPreferenceControllerTest,
ShowOnlyUnseenNotificationsOnLockscreenPreferenceControllerTest

Change-Id: I427ce675721c6d4df6451deebfcb6e4c06c72c37
2025-01-31 15:28:19 -08:00
Zhou Liu
8dc9b53328 Merge "Create "Change PIN" settings UI" into main 2025-01-31 14:13:12 -08:00
Zhou Liu
827d662460 Create "Change PIN" settings UI
Test: atest SupervisionChangePinPreferenceTest
Test: manually on real device
Bug: 393193125
Flag: android.app.supervision.flags.enable_supervision_settings_screen
Change-Id: I9a9af5d502c45a7710bcb73455eae9a828f0f721
2025-01-31 20:26:53 +00:00
Matthew DeVore
d73552fca5 Merge "Simplify pane sizing and scaling algorithm" into main 2025-01-31 10:30:40 -08:00
Vitor Carvalho
9ea71fd397 Fix tests in Settings that break with the changes in ParentalControlsUtils introduced in ag/31121556.
Flag: TEST_ONLY
Test: atest CombinedBiometricStatusUtilsTest FaceStatusUtilsTest FingerprintStatusUtilsTest FaceSafetySourceTest FingerprintSafetySourceTest
Bug: 382038943
Change-Id: Id51f8112f6a53c4201061fb7c1e60630a2d9dc02
2025-01-31 15:54:57 +00:00
Jack Yu
1fd847de4a Cleaned up the flag enable_modem_cipher_transparency
Cleaned up the 24Q3 flag enable_modem_cipher_transparency

Bug: 283336425
Test: Basic telephony functionality tests
Test: atest FrameworksTelephonyTests
Flag: EXEMPT removing flag
Change-Id: Ibdb3613d4633535a2d855cc0383c05315ef4e890
2025-01-31 04:47:57 -08:00
Matthew DeVore
a23e3cb774 Simplify pane sizing and scaling algorithm
Simplify the scaling parameters and algorithm and reduce vertical
padding.

Originally a maxBlockRatio was specified at .12, which would have
caused a block length to typically be 2560 * 0.12 = 307. However, this
fails to account for smaller displays and high-DPI displays which have
smaller dip dimensions. So instead choose a maximum edge length of
256dp, which I have found to give good results on a laptop device
and a high DPI tablet, and which does not assume typical sizing for
configured displays, and still accomplishes the purpose of limiting
scrolling and dragging size.

Using the aspect ratio of the display bounds in setting the height
frequently caused a very large amount of padding, and limiting based on
the max block height only reduced it slightly. Now we set the vertical
height based on the minEdgeLength. This length is considered the
smallest size that can be comfortably interacted with, and we use it to
give ballpark ideal padding size.

Note that the unit test cases have increased pane height but in
practice (real-world pane width and constraints) this change seems to
decrease the pane height in general.

Flag: com.android.settings.flags.display_topology_pane_in_display_list
Bug: b/352650922
Test: atest DisplayTopologyPreferenceTest.kt
Test: atest TopologyScaleTest.kt
Test: compare appearance on mid-dpi and high-dpi screens with a single 1080p external display, or with two external displays of smallish logical size
Change-Id: Id189892c88a1e833c1f54b0e5447a15f92e3310f
2025-01-30 20:37:03 +00:00
Fiona Campbell
fc94995307 Make Extra Dim Setting as percentage of device
- Extra dim setting now operates in percentage of the device's
  capabilities
- ie "100" now means the maximum possible dimming on the current device,
  if restored to another device, this means the max possible dimming on
  that device as well.

Bug: 337351445
Flag: EXEMPT bugfix
Test: atest DisplayServiceTests
Test: atest ReduceBrightColorsIntensityPreferenceControllerTest
Change-Id: I98d0d7af562fdfb2b921746e0e5654bad47b440b
2025-01-30 15:47:27 +00:00
Jack Yu
6e26457b84 Cleaned up the flag enable_identifier_disclosure_transparency_unsol_events
Cleaned up the 24Q3 flag
enable_identifier_disclosure_transparency_unsol_events

Bug: 276752426
Test: Basic telephony functionality tests
Test: atest FrameworksTelephonyTests
Flag: EXEMPT removing flag
Change-Id: Ia96d406bd354f766e57363b74700ca07ac79c895
2025-01-29 14:07:28 -08:00
Yining Liu
1436bcff72 Fix the toggle status for show sensitive content switches
We need to make the show sensitive content switch checked by default.
The old implementation misses calling to super.updateState(), which
caused lacking of UI refreshment.
This change also added validation to the preference id that is used
to construct the LockScreenNotificationShowSensitiveController, which
avoids misusage.
Added unit tests to verify that the UI is also updated upon Settings
change, and the preference IDs are verified.

Fix: 392621932
Flag: com.android.server.notification.notification_lock_screen_settings
Test: manual
Change-Id: I31fe602d5b5439515e5fdf5c706b420edaf79042
2025-01-29 12:59:53 -08:00
Yomna N
aea18e40d0 Merge "Fix broken Safety Center redirect when SafetySourceData is null" into main 2025-01-29 12:13:17 -08:00
Jack Yu
5161aff82e Merge "Cleaned up the flag enable_identifier_disclosure_transparency" into main 2025-01-28 18:09:37 -08:00
Riley Jones
6e12194015 Merge "Disabling elements on the A11y Shortcut setting subpage" into main 2025-01-28 13:24:42 -08:00
Matthew DeVore
ec58402c03 Merge "Apply display density to topology pane scaling" into main 2025-01-28 11:39:34 -08:00
Zhou Liu
56170c3f53 Merge "Create "Manage PIN" settings UI menu" into main 2025-01-28 10:48:39 -08:00
Matthew DeVore
e22d46aa9b Apply display density to topology pane scaling
Account for high DPI screens in topology pane scaling.

Flag: com.android.settings.flags.display_topology_pane_in_display_list
Bug: b/352650922
Test: atest DisplayTopologyPreferenceTest.kt
Test: atest TopologyScaleTest.kt
Test: compare appearance on mid-dpi and high-dpi screens with a single 1080p external display
Change-Id: I192fccd402c20e00beacdb5ad55eed406252eb93
2025-01-28 17:24:05 +00:00
Yvonne Jiang
bf54835a94 Merge "Add handling for main Supervision settings toggle." into main 2025-01-28 08:23:39 -08:00
Yvonne Jiang
4f74b50b3a Add handling for main Supervision settings toggle.
This change introduces the basic behavior for the main toggle switch to
enable supervision. There is currently no PIN setup dialog when the
toggle is clicked. That will be added as a follow-up.

Intake bug: b/379312924

Change-Id: I75d6b2de1a7234c6da26fcdcf1d933eed3106a8c
Test: atest SupervisionMainSwitchPreferenceTest
Bug: 392694561
Flag: android.app.supervision.flags.enable_supervision_settings_screen
2025-01-28 02:35:14 -08:00
William Leshner
5035bede60 Merge "Add "Hub Mode" settings to mobile settings." into main 2025-01-27 20:28:02 -08:00
yomna
d4dc1fed9e Fix broken Safety Center redirect when SafetySourceData is null
Bug: b/373942609
Test: m & atest CellularSecurityPreferenceControllerTest
Flag: EXEMPT bugfix
Change-Id: I2373ccb5cb51bca23815db9f7645efccc3e0cd88
2025-01-28 02:06:27 +00:00
Zhou Liu
82356f6e93 Create "Manage PIN" settings UI menu
Test: atest SupervisionPinManagementScreenTest
Test: manually on real device
Bug: 390186179
Flag: android.app.supervision.flags.enable_supervision_settings_screen
Change-Id: Ib53dce2a32fe9551e8877145a61c8834505d389d
2025-01-28 01:12:22 +00:00
Jack Yu
506c3e04e3 Cleaned up the flag enable_identifier_disclosure_transparency
Cleaned up the 24Q3 flag enable_identifier_disclosure_transparency

Bug: 276752426
Test: Basic telephony functionality tests
Test: atest FrameworksTelephonyTests
Flag: EXEMPT removing flag
Change-Id: Id3355ef2416f75df8ca43cc4d261583e92c17fba
2025-01-27 14:14:45 -08:00