Commit Graph

146361 Commits

Author SHA1 Message Date
Treehugger Robot
54ee76b649 Merge "Check the permission of the callingUid instead of the calling package" into udc-dev 2025-02-01 03:09:33 -08:00
Treehugger Robot
b9c5239b5b Merge "Check the permission of the callingUid instead of the calling package" into tm-qpr-dev 2025-02-01 03:04:56 -08:00
Treehugger Robot
969cb7728c Merge "Check the permission of the callingUid instead of the calling package" into tm-dev 2025-02-01 03:01:34 -08:00
Treehugger Robot
6cd8230cbb Merge "Check the permission of the callingUid instead of the calling package" into udc-qpr-dev 2025-02-01 02:58:50 -08:00
Daniel Norman
07af74a52e Adjust A11y Shortcut settings to use lowercase shortcut names.
Per go/android-naming these strings should be lowercase when
used in the middle of a sentence because they are generic
descriptive names and not branded names.

Bug: none
Change-Id: I0508a5cbdba20a1bd2d6db66e0e7183845e503ad
Test: build & install & check string
Flag: EXEMPT low risk bugfix
2025-01-31 16:10:44 -08: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
Treehugger Robot
24fe6d9fe9 Merge "Revert "Use BatteryOptimizeUtils to add packageName into PowerSaveWhitelistUserApps allowlist, which will set app into Unrestricted Mode"" into main 2025-01-31 14:46:38 -08:00
Zhou Liu
8dc9b53328 Merge "Create "Change PIN" settings UI" into main 2025-01-31 14:13:12 -08:00
Matthew DeVore
dca3f94f12 Merge "Clip display blocks in the topology pane" into main 2025-01-31 12:28:11 -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
Wes Okuhara
d13be24366 Settings: Add tethering strings for device product type
For products that have the "device" type, define tethering strings that
do not use the default "phone" string.

Bug: 393312760
Test: Manually verify UI. See screenshot in bug.
Flag: EXEMPT bugfix
Change-Id: I1e8bf814220d5414e4138fab018bd3593e96bcb6
2025-01-31 12:11:07 -08:00
Treehugger Robot
9e51bf40ac [automerger skipped] Merge "Allow system services to be optional" into main am: 55b0bcd8cb am: 184aee6710 -s ours
am skip reason: Merged-In I761054caebe3e846f5c6c76e2818662aad2cb511 with SHA-1 5a594828d7 is already in history

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

Change-Id: Iac2445a670d7304bb58d1eba47b1d433ce6c9955
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-31 11:09:20 -08:00
Matthew DeVore
012123b165 Do not show entry point when no CD attached
Do not show External Displays entry point unless one (or more) external
displays is actually attached.

Flag: com.android.settings.flags.display_topology_pane_in_display_list
Bug: b/352648432
Test: atest ExternalDisplayPreferenceFragmentTest.java
Test: attach one external display and open CD settings - verify the topology pane is shown
Test: add and remove an external display and verify the connected device entry point is added and removed
Change-Id: If263e98aeaf7be2778c1e8a1cbafc7e2345bb0c5
2025-01-31 18:50:20 +00:00
Treehugger Robot
184aee6710 Merge "Allow system services to be optional" into main am: 55b0bcd8cb
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3462915

Change-Id: I65cc32fb79196054fb4115722b04771425368d62
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-31 10:46:07 -08:00
Matthew DeVore
d73552fca5 Merge "Simplify pane sizing and scaling algorithm" into main 2025-01-31 10:30:40 -08:00
Treehugger Robot
55b0bcd8cb Merge "Allow system services to be optional" into main 2025-01-31 10:04:14 -08:00
Treehugger Robot
089ce7465d Merge "Flag cleanup in Settings: keyboard_layout_preview_flag" into main 2025-01-31 09:02:36 -08:00
Treehugger Robot
8a53aecafe Merge "Support finishing Fingerprint Settings if TIMEOUT" into main 2025-01-31 05:53:12 -08: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
Matías Hernández
2a6672dd33 Remove incorrect call to Window.addFlags with a system flag
The same flag is being (correctly) added in onCreate, so on top of being wrong this was also completely unnecessary.

Bug: 368579654
Test: manual
Flag: EXEMPT bugfix

Change-Id: I539fca77a1d136bdd0e4892993020884430b8a4e
Merged-In: I539fca77a1d136bdd0e4892993020884430b8a4e
(cherry picked from commit e0510a62eb)
2025-01-31 03:57:14 -08:00
Wesley Wang
b7783cb6c9 Revert "Use BatteryOptimizeUtils to add packageName into PowerSaveWhitelistUserApps allowlist, which will set app into Unrestricted Mode"
This reverts commit 1b83703adc.

Reason for revert: locating b/393033745 root cause

Change-Id: I04f90b42907d07c6111a7b41a531f7717df33672
2025-01-30 22:48:49 -08:00
yomna
3e071f055e Fix missing controller key and remove onCreatePreferences
1) A missing controller key for CellularSecurityEncryptionDividerController
was causing the corresponding UI element's getAvailabilityStatus to not
be called. 2) The inclusion of onCreatePreferences in
CellularSecuritySettingsFragment was causing other UI element's
controllers to not be called correctly.

Bug: b/373942609
Test: atest CellularSecurityPreferenceControllerTest
Test: atest CellularSecurityEncryptionDividerControllerTest
Flag: EXEMPT bugfix
Change-Id: Ic01a609311d7bd84ee835ffbede793fe2d7756ae
2025-01-31 01:25:46 +00:00
Bill Yi
acf28a7542 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ia9a58649febfee6880cf03915f924a70a962d6a9
2025-01-30 16:04:22 -08:00
Bill Yi
740b1f6e21 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I06e6c13e70b3df4a46f0f6b4ab74913de5ebd11f
2025-01-30 16:02:20 -08:00
Bill Yi
304f8c3d98 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I453d6969d1c4f43d09157062ca6abc689b59cbe9
2025-01-30 16:00:41 -08:00
Matthew DeVore
fe0c780928 Merge "Make topology hint readable when block is under it" into main 2025-01-30 14:52:19 -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
Jack Yu
3d0d0f9d66 Merge "Cleaned up the flag enable_identifier_disclosure_transparency_unsol_events" into main 2025-01-30 12:18:58 -08:00
Guojing Yuan
69f3696e4f Merge "[CDM] Checks NLS component name instead of package name" into main 2025-01-30 09:05:26 -08:00
Hani Kazmi
95aa9f0093 Merge "[AAPM] Add help uri" into main 2025-01-30 08:56:55 -08:00
Hani Kazmi
3bfa1734b4 [AAPM] Add help uri
This URL is used by the Advanced Protection dialog to point users to the
AAPM settings page. The resource is empty by default and should be
overriden to get the "Learn More" link to show

Bug:389080341
Test atest GtsFeaturesTestCases
Flag: EXEMPT resource only

Change-Id: I3a9b02c33ba1366a4ca9539f41c0a7da2cac030b
2025-01-30 08:55:54 -08: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
Shawn Lin
e06acaab1d Merge "Fixed userId not updated when user changed" into main 2025-01-30 05:44:44 -08:00
Aishwarya Mallampati
b6a964815e Merge "Do not show satellite messaging in sim settings if sms is not supported" into main 2025-01-29 23:07:15 -08:00
Treehugger Robot
2d8cd122e4 Merge "Explicitly keep default constructor in rules without members" into main am: cfc4d29e89 am: 7b2b283d00
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3438521

Change-Id: I61a07cadccd4b7f143c883d8e27342d857694456
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-29 23:06:03 -08:00
Treehugger Robot
7b2b283d00 Merge "Explicitly keep default constructor in rules without members" into main am: cfc4d29e89
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3438521

Change-Id: Ifbe6a637d95fda5346b93c8c86f175b9463ecde2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-29 22:42:06 -08:00
Treehugger Robot
cfc4d29e89 Merge "Explicitly keep default constructor in rules without members" into main 2025-01-29 22:17:01 -08:00
Shawn Lin
43b3159db2 Fixed userId not updated when user changed
The userId for "Unlock your phone" & "verify it's you in app" settings
in face setting page are not updated correctly when user changed.

Bug: 393236814
Test: Manual - go face settings and enable/disable these two button
Flag: com.android.settings.flags.biometrics_onboarding_education
Change-Id: I840eaaab13b8ad9f4e79ae2cf2e47dd22ed2ff8b
2025-01-30 04:13:19 +00:00
Aishwarya Mallampati
d7769ad180 Do not show satellite messaging in sim settings if sms is not supported
Bug: 393181741
Test: 393186308
Flag: EXEMPT bugfix
Change-Id: I1cb1d22541ba68ce20a0fd9319ddb2d5fc5d6715
2025-01-29 23:27:36 +00:00
Matthew DeVore
015d944238 Make topology hint readable when block is under it
Using the topology pane background color, draw a background behind the
hint text view.

Test: manual
Flag: com.android.settings.flags.display_topology_pane_in_display_list
Bug: b/352650922
Change-Id: I7fcee61d53460976b7d5eb10148d79bd2f9252ad
2025-01-29 22:13:59 +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
Pierre Barbier de Reuille
574ba31dd3 Merge "Update when Desktop Mode Dev Option is enabled by default." into main 2025-01-29 12:39:46 -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
Shawn Lin
99ff9245a6 Merge "[Gaze] Support Gaze" into main 2025-01-29 06:40:44 -08:00
Vaibhav Devmurari
9ffa4d241f Flag cleanup in Settings: keyboard_layout_preview_flag
Test: manual
Bug: 293579375
Flag: EXEMPT cleanup
Change-Id: I1f13ab0ab46883622d024f982faba26b1dce0152
2025-01-29 03:54:40 -08:00
Pierre Barbier de Reuille
0a49a01210 Update when Desktop Mode Dev Option is enabled by default.
The new condition requires accessing the context.

Bug: 382238347
Flag: EXEMPT Bug fix
Test: atest DesktopModePreferenceControllerTest
Test: Build and test on devices with only the dev option enabled.
Change-Id: If9cacea948ccee2bc5a5b4fae07f3ad69efb0af2
2025-01-29 10:35:37 +00: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
d2ed0a84dd Clip display blocks in the topology pane
Prevent display blocks from overflowing outside the pane when dragged.

Flag: com.android.settings.flags.display_topology_pane_in_display_list
Bug: b/352650922
Test: drag a display block so that it would overflow outside the pane
Change-Id: I326cb28f06914f71535906a0ce3e8fc04a4cb4f3
2025-01-28 14:01:29 -06:00