Commit Graph

143729 Commits

Author SHA1 Message Date
Bill Yi
5a1cf30ba1 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ibd7b893431f9b2c36e9caad767b161438d931b7c
2024-09-26 15:19:24 -07:00
Yining Liu
41cd514fb3 Notification Minimalism Settings Main Switch
Add a main preference switch for the lockscreen
notification minimalism feature

Bug: 330387368
Bug: 354047572
Flag: com.android.server.notification.notification_minimalism
Test: atest
LockscreenNotificationMinimalismPreferenceControllerTest

Change-Id: I9aa4c51f9e316dd0dd1529d712b5e9486e43453b
2024-09-26 20:58:18 +00:00
Yining Liu
8b6431878a Show the Tangor Unseen Notification Toggle when notification_minimalism is Enabled
Show the Tangor unseen notification toggle in the Notification settings when
notification_minimalism flag is enabled on both phones and large screen devices.

Bug: 330387368
Bug: 354047572
Flag: com.android.server.notification.notification_minimalism
Test: atest ShowOnlyUnseenNotificationsOnLockscreenPreferenceControllerTest
Change-Id: Ic126b7885eb29897b55c4acdc1a2f73b4bc7841e
2024-09-26 20:50:23 +00:00
Joshua Mccloskey
b5aa5265ee Merge "Spit up FingerprintManagerInteractor 2/N" into main 2024-09-26 18:29:36 +00:00
Jason Chang
8433575eab Merge "Fix Fingerprint setup complete - illustration is just slightly cut off" into main 2024-09-26 16:55:32 +00:00
Treehugger Robot
226e60f3a2 Merge "Add a header before the icon list in the new/rename mode screen" into main 2024-09-26 15:07:43 +00:00
Matías Hernández
f620f85484 Add a header before the icon list in the new/rename mode screen
Also fixed paddings a bit (e.g. Done button was too close to the icon grid).

Fixes: 369503296
Test: manual
Flag: android.app.modes_ui
Change-Id: Ic7b7dc9584db1f04b448fce828a8ec70cf17f06a
2024-09-26 15:25:01 +02:00
Matías Hernández
a2e71cc7cb Delete Settings code related to super-obsolete zen onboarding
A notification was shown when upgrading from pre-P to P because default DND settings had changed. The default was later changed back so it was already obsolete at that point. Moreover, it should be impossible to upgrade from pre-P to V in one step.

Bug: 346789065
Test: N/A
Flag: EXEMPT Unflaggable -- removing resources, manifest entries, etc.
Change-Id: I2862211dc9709b741e60beca5fc029cc054745a3
2024-09-26 14:30:23 +02:00
Treehugger Robot
e6d08e9ff2 [automerger skipped] Merge "Use hasScrollAction in ApnEditPageProviderTest" into main am: 12f2e1cf4f am: 5c3c9cbdeb -s ours
am skip reason: Merged-In I0a50e7665d9049e089b5a0877f17d1f736ee3332 with SHA-1 0b530fd405 is already in history

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

Change-Id: I7e2cf0f973b009c525ac6c1d1cd4e534c8e00362
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-26 11:13:47 +00:00
Treehugger Robot
0634f99251 Merge "Protect the Settings application from potential null pointer exceptions." into main am: 6a4fb45e38 am: 840f5a573d
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3282054

Change-Id: Ic3001502499250f66af57c0e49ae8ba2a80515f6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-26 11:13:30 +00:00
Treehugger Robot
5c3c9cbdeb Merge "Use hasScrollAction in ApnEditPageProviderTest" into main am: 12f2e1cf4f
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3283218

Change-Id: I1d66aa2b883c0b8d6375b99b23fda25535820c01
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-26 11:13:22 +00:00
Treehugger Robot
12f2e1cf4f Merge "Use hasScrollAction in ApnEditPageProviderTest" into main 2024-09-26 10:54:50 +00:00
Treehugger Robot
840f5a573d Merge "Protect the Settings application from potential null pointer exceptions." into main am: 6a4fb45e38
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3282054

Change-Id: I1c6daaf44b7be4aeaa65fce50711d7e75f511e6c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-26 10:47:30 +00:00
Treehugger Robot
6a4fb45e38 Merge "Protect the Settings application from potential null pointer exceptions." into main 2024-09-26 10:30:43 +00:00
Chaohui Wang
bb1cadb916 Use hasScrollAction in ApnEditPageProviderTest
Instead of assuming a fixed tree structure in testing.

Fix: 369416630
Flag: EXEMPT gradle only
Test: atest ApnEditPageProviderTest
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:0b530fd405eb95dfedf51bc55bc24bd7d446ead8)
Merged-In: I0a50e7665d9049e089b5a0877f17d1f736ee3332
Change-Id: I0a50e7665d9049e089b5a0877f17d1f736ee3332
2024-09-26 10:20:38 +00:00
Chaohui Wang
a207879aea Merge "Fix Can't Able to Click Sims" into main 2024-09-26 10:15:30 +00:00
Quang Anh Luong
5aa95553cd Do not auto-downgrade WPA3->Transition mode if password too short
Hotspot security is auto-downgraded from WPA3->Transition mode if the
band is changed from 6Ghz -> 2.4/5GHz. However, Transition mode requires
a password of 8 chars or more, but WPA3 SAE does not. Avoid changing the
security type if the current password is less than 8 chars.

Flag: EXEMPT minor bugfix

Bug: 366452667
Test: atest WifiHotspotRepositoryTest
Change-Id: I1abadd59966e170b51899782746b9f14e33e6186
2024-09-26 07:09:47 +00:00
Jacky Wang
8491ffa3cf Merge "Include settings flags into flags_packages" into main 2024-09-26 07:06:20 +00:00
Chaohui Wang
9969334647 Fix Can't Able to Click Sims
The root cause is SubscriptionManager.OnSubscriptionsChangedListener
.onSubscriptionsChanged() not invoked in some cases.

Even the SubscriptionManager.addOnSubscriptionsChangedListener's doc
says the onSubscriptionsChanged() method will also be invoked once
initially when calling it, there still case that the
onSubscriptionsChanged() method is not invoked initially.
For example, when the onSubscriptionsChanged event never happens before,
on a device never ever has any subscriptions.

Adding a .onStart { emit(Unit) } to fix.

Also make the subscriptionsChangedFlow() a shared flow to mitigate the
extra emit cost.

Bug: 369276595
Flag: EXEMPT bug fix
Test: manual - factory reset & no any sim
Test: atest SubscriptionRepositoryTest
Change-Id: Ic32a5666f14373926b5dfedb5dedadb4369acfc7
2024-09-26 13:29:47 +08:00
Jacky Wang
125bbc0ccc Include settings flags into flags_packages
Required for resource & manifest flags.

Bug: 332202168
Flag: EXEMPT Modify Android.bp
Test: Set android:featureFlag to manifest Service locally
Change-Id: Iaf02e494b1a23b92616a5ff5e8fb84e93b4a340e
2024-09-26 11:25:43 +08:00
Tomasz Wasilczyk
322f3cf496 Add support for ApnSetting.TYPE_OEM_PAID and OEM_PRIVATE
Bug: 366194627
Test: m
Test: manually add oem_paid APN to telephony.db and verify if shows up
      in APN editor
Flag: com.android.internal.telephony.flags.oem_paid_private
Change-Id: Ida8f6f5712f49caa3172119c547b7ee17e41c12e
2024-09-25 20:05:22 -07:00
Yiyi Shen
d2e97b455e Merge "[Audiosharing] Show dialogs when lifecycle isAtLeast STARTED" into main 2024-09-26 02:49:43 +00:00
Yiyi Shen
d375984779 Merge "[Audiosharing] Use DialogFragment instead of raw AlertDialog" into main 2024-09-26 02:49:38 +00:00
Abdelrahman Daim
996afd17a1 Protect the Settings application from potential null pointer exceptions.
Summary: The app bar is not available, causing a null pointer exception.

Test: Successful Build on master branch

Change-Id: I36849606f6587d6e7f004ae21e1a6e6a5206735a
Signed-off-by: Abdelrahman Daim <adaim@meta.com>
2024-09-25 17:02:37 -07:00
Treehugger Robot
e3bc83b7b0 Merge "Fixed elapsed_time_millis in SettingsUIChanged event" into main 2024-09-25 23:55:49 +00:00
Yi-an Chen
781cbcdbf0 Merge "Correct behavior on Google Location History preference click" into main 2024-09-25 20:27:33 +00:00
David Liu
2f39a808fc Fixed elapsed_time_millis in SettingsUIChanged event
This change stores timestamp when received com.google.android.setupwizard.SETUP_WIZARD_FINISHED. This timestamp will be used to calculate elapsed_time_millis for SettingsUIChanged event after SUW complete. This enables to analyze how the user uses Settings in a specific time span after setup.

Bug: 344466251
Test: metrics related change only
Flag: EXEMPT metrics change only

Change-Id: I85b15f1eb5e5a4502a27d8588bb01e59b7ad83b5
2024-09-25 18:44:26 +00:00
Treehugger Robot
d6f73f35b6 Merge "Update titles and summaries of the Date and time settings page" into main 2024-09-25 16:54:05 +00:00
Geoffrey Boullanger
8b7399a8d9 Update titles and summaries of the Date and time settings page
Design doc: go/dd-android-settings-time-2024

This change covers Part 1, which consists of adding user-friendly summary under each toggle and rewording titles.

Bug: 296835792
Test: on-device and atest
Flag: EXEMPT resource only update
Change-Id: I0b685743599880fc1c4ad680eca9c36e4e64d0ff
2024-09-25 15:19:10 +00:00
Jason Chang
91dd9af87f Fix Fingerprint setup complete - illustration is just slightly cut off
Due to the sufficient space between sub-description and illustration,
modify the layout_marginTop to avoid the cut off problem.

Flag: NONE bug-fixing

Bug: 336981217

Test: build ABTD ROM and perform a visual inspection.
Change-Id: Id69549968341ee59e3cb7ee8838a90fda7a78b3a
2024-09-25 15:01:24 +00:00
Haijie Hong
9b36ed51a2 Merge "Add icon for more settings preference" into main 2024-09-25 10:37:04 +00:00
Haijie Hong
684ec23cad Merge "Add metrics category for more settings fragment" into main 2024-09-25 10:36:29 +00:00
Yiyi Shen
54b0d18a04 [Audiosharing] Use DialogFragment instead of raw AlertDialog
FragmentManager can help manage the state of the dialog and automatically restore the dialog when a configuration change occurs

Test: atest
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Bug: 362858921
Change-Id: If63c7891cfb92e06c457e37eb5556f3eaf3f6121
2024-09-25 17:31:14 +08:00
Yiyi Shen
57355a0743 [Audiosharing] Show dialogs when lifecycle isAtLeast STARTED
Test: atest
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Bug: 305620450
Change-Id: I34f4f46b9377f1e3ec1a4cd27687c14d674f6da4
2024-09-25 17:13:19 +08:00
Haijie Hong
63ecd2781f Add icon for more settings preference
BUG: 343317785
Test: atest DeviceSettingRepositoryTest
Flag: com.android.settings.flags.enable_bluetooth_device_details_polish
Change-Id: Id7c272edce5ff8166f03b7162ac9ba5ff1f15097
2024-09-25 09:02:07 +00:00
Haijie Hong
fc27dcccde Add metrics category for more settings fragment
BUG: 343317785
Test: local tested
Flag: com.android.settings.flags.enable_bluetooth_device_details_polish
Change-Id: I21a3ca0deea516765f1af2f5d7117b6c3c1763a7
2024-09-25 16:17:48 +08:00
Haijie Hong
7e7530bfd1 Merge "Fix two-panel issue in tablet" into main 2024-09-25 07:36:43 +00:00
Jacky Wang
09289058d1 Merge "Avoid potential ActivityNotFoundException" into main 2024-09-25 06:27:26 +00:00
Haijie Hong
1020e7132d Fix two-panel issue in tablet
Keep the logic same as BlockingPrefWithSliceController.

BUG: 343317785
Test: atest BluetoothDeviceDetailsViewModelTest
Flag: com.android.settings.flags.enable_bluetooth_device_details_polish
Change-Id: I77e62479def433869ae5e93987ec7069cc61173a
2024-09-25 13:48:33 +08:00
Yiyi Shen
28d1551870 Merge "[Audiosharing] Apply new string resid" into main 2024-09-25 05:19:49 +00:00
Treehugger Robot
fc2ccb61fd Merge "Use hasScrollAction in ApnEditPageProviderTest" into main 2024-09-25 04:00:01 +00:00
Jacky Wang
1c486036ef Avoid potential ActivityNotFoundException
Bug: 332202168
Flag: com.android.settings.flags.catalyst
Test: Manual
Change-Id: I74d7bbc9eb34e0f8d04cfb663b04393a3432e784
2024-09-25 11:58:10 +08:00
Treehugger Robot
00c90b0e6f Merge "Migrate Android version preference" into main 2024-09-25 03:30:59 +00:00
Chaohui Wang
0b530fd405 Use hasScrollAction in ApnEditPageProviderTest
Instead of assuming a fixed tree structure in testing.

Fix: 369416630
Flag: EXEMPT gradle only
Test: atest ApnEditPageProviderTest
Change-Id: I0a50e7665d9049e089b5a0877f17d1f736ee3332
2024-09-25 10:26:47 +08:00
Menghan Li
26392847f0 Merge "refactor(brightness suw): decouple auto brightness initialization logic for setup flow" into main 2024-09-25 01:23:55 +00:00
Yi-an Chen
73ab82f52f Correct behavior on Google Location History preference click
Fixes: 366060896
Bug: 360240563
Flag: EXEMPT bugfix
Test: Manually and RecentLocationAccessPreferenceControllerTest
Change-Id: Ibe3c49c3060bcc0967f93a3a88aa45b04ab8a41d
2024-09-25 01:23:52 +00:00
Treehugger Robot
adb3d1f1d4 Merge "Migrate the Legal Info page to Catalyst" into main 2024-09-25 00:39:10 +00:00
Dongzhuo Zhang
c51a76014a Merge "Add contacts storage setting entry in app settings page." into main 2024-09-25 00:20:32 +00:00
Jacky Wang
4329d8371e Migrate Android version preference
Bug: 365886251
Flag: com.android.settings.flags.catalyst_firmware_version
Test: Unit
Change-Id: I0a15cd460543a7dd84edc5c3a5a2ff900aeba13f
2024-09-25 07:28:52 +08:00
Dongzhuo Zhang
6231453e91 Add contacts storage setting entry in app settings page.
Test: atest SettingsRoboTests:com.android.settings.applications.contacts.ContactsStoragePreferenceControllerTest

Bug: 368641291
Flag: com.android.settings.flags.enable_contacts_default_account_in_settings

Change-Id: I8da16f24b17e44dc0ea417cffabd85c36d7edc5f
2024-09-24 22:28:22 +00:00