Commit Graph

54881 Commits

Author SHA1 Message Date
Xin Li
cfa19e11a6 Merge 24Q4 (ab/12406339) into aosp-main-future
Bug: 370570306
Merged-In: Ie90e7495dd4a134538bae6e3e08eea0d02134b14
Change-Id: I20517e9ee410e95f2cbeb1247c0c0288ed9f006f
2024-11-11 21:38:40 -08:00
Jaewan Kim
ea0b5d5950 Clear Linux terminal app when disabled
Bug: 374032310
Test: Manual, T/H
Flag: Build.RELEASE_AVF_SUPPORT_CUSTOM_VM_WITH_PARAVIRTUALIZED_DEVICES
Change-Id: Id56f98cf90b0598111baa3096b1b81307ebb99a3
2024-11-12 01:19:17 +00:00
Treehugger Robot
9089bca7d1 Merge "Make Linux terminal option profile aware" into main 2024-11-11 17:57:37 +00:00
Treehugger Robot
f85bc08954 Merge "Remove all pending messages when fragment destroyed" into main 2024-11-11 11:50:09 +00:00
Jaewan Kim
ed3abffcfc Make Linux terminal option profile aware
Bug: 374034911
Test: atest, plus following manual test \
  - Test tabbed UI with/without work profile \
  - Test that disabled by work profile launches alert dialog \
  - Test whether toggling an app only toggle the app for the user.
Flag: Build.RELEASE_AVF_SUPPORT_CUSTOM_VM_WITH_PARAVIRTUALIZED_DEVICES
Change-Id: I4bf0a2d521cf3e632f6c0320e0b5cc0154d5b68f
2024-11-11 14:31:19 +09:00
alisa.li
fe199d2656 Update state when disabling and enabing develop option
When not support a2dp offload, the a2dp offload preference is shown in grey, but a2dp offload preference will be set enabled when enabing develop option

Bug:295109808
Test: manual
Change-Id: I7e1d073ff9ef6b68b5f1d9faa1dac459a70d7afc
2024-11-07 10:41:57 +00:00
Treehugger Robot
15f88ddc70 Merge "fix crash in setting time zone" into main 2024-11-05 00:31:21 +00:00
dingfeisong
64aaa1440a Remove all pending messages when fragment destroyed
Remove all pending messages when the fragment has destroyed.
Otherwise, after fragment disattachs its context, an exception
will be reported when process the messages.

Bug:377166756

Change-Id: I333cedb45c0fe43b81abbfbe19e37f42f98def91
Signed-off-by: dingfeisong <dingfeisong@xiaomi.corp-partner.google.com>
2024-11-04 13:40:27 +08:00
hoffc
a9002d157c Fix force close for updating UI after activity destroyed.
If activity is finishing or destroyed, getting activity context will return null results in settings app force close.

Do not call scan callback if network select activity is finishing or destroyed.

Test: build pass and run NetworkSelectSettingsTest unit test pass.

Bug: 372123288
Change-Id: I28307490c75fe04d54dcf1637f33f4b9ba1fe635
2024-10-22 06:25:37 +00:00
Pechetty Sravani (xWF)
0583090e98 Merge "Revert "Fix force close for updating UI after activity destroyed."" into main 2024-10-21 09:49:30 +00:00
Pechetty Sravani (xWF)
bd44c86041 Revert "Fix force close for updating UI after activity destroyed."
This reverts commit 2545f06558.

Reason for revert: DroidMonitor created revert due  to b/374650528.Will be verified through ABTD for standard investigation.

Change-Id: Ifa3f061b7954dc2b5780b768fefb9358c597fdc0
2024-10-21 06:18:31 +00:00
Treehugger Robot
b083196e76 Merge "Fix force close for updating UI after activity destroyed." into main 2024-10-21 04:11:01 +00:00
Jaewan Kim
591d4fd932 Enable Linux terminal app via developer settings
Bug: 369246712
Test: `atest SettingsRoboTests`, try toggle the option, \
  and try search with 'Linux'.
Flag: RELEASE_AVF_SUPPORT_CUSTOM_VM_WITH_PARAVIRTUALIZED_DEVICES
Change-Id: Ibdcf00de04f09fe5b03ba53857904945354ed844
2024-10-16 15:49:12 +00:00
hoffc
2545f06558 Fix force close for updating UI after activity destroyed.
If activity is finishing or destroyed, getting activity context will return null results in settings app force close.

Directly return if network select activity is finishing or destroyed when handling network scan callback.

Bug: 372123288
Change-Id: Ia8c89569761b66da58cafd0140ceda29ac7d678c
2024-10-08 17:29:45 +08:00
Paul Duffin
ad48f03f53 Fully qualify @attr reference to android.R field
Currently, Metalava has some special handling of '@attr ref R.<field>`
references to make sure that they are fully qualified, i.e.
`@attr ref android.R.<field>`. That special handling complicates
Metalava and is blocking some flagged API work so will be removed.
Before that can be done, the existing incorrect documentation needs to
be cleaned up.

This change cleans up those cases in this repo.

Bug: 371997321
Test: Run `m offline-sdk-docs` before and after to make sure that
      there are no differences.
Flag: DOCS_ONLY
Change-Id: Ic97f01b90193d058d65e6d3c6d0a04ce5e55d7c7
2024-10-07 17:10:02 +01:00
Treehugger Robot
9a0ba22e79 Merge "Add a check to ensure that intent data is available before proceeding." into main 2024-09-27 09:54:21 +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
Abdelrahman Daim
3be2314fac Add a check to ensure that intent data is available before proceeding.
Summary: There are instances where intent data is absent, leading to a crash while trying to retrieve the schema. This change adds a null check to prevent attempted access when there's no data.

Test: Successful Build on master branch

Change-Id: Ie83bd3243f2c79102061d3fa43d809b3ef3c6c78
Signed-off-by: Abdelrahman Daim <adaim@meta.com>
2024-09-24 12:21:22 -07:00
Maryam Dehaini
6a6a3efe57 Merge "Change "Open by default" setting page selection to radio buttons" into main 2024-09-23 22:45:07 +00:00
Maryam Dehaini
11825b0bc7 Change "Open by default" setting page selection to radio buttons
Selection to open page in app or browser needs to be displayed via radio
buttons as discussed here: http://b/346622495#comment14

Bug: 359262490
Test: Open links in app and browser
Flag: EXEMPT small UI change
Change-Id: Ib23084bcc7f899b97b59019775584807e5b70d7e
2024-09-23 14:32:08 -07:00
Jacky Wang
9cdd1108c3 Merge changes from topic "catalyst-firmware-version" into main
* changes:
  Migrate "Build number" preference
  Migrate "Kernel version" preference
  Migrate "Baseband version" preference
2024-09-23 15:44:09 +00:00
Adam Bookatz
072d0d84ec Merge "OnDeviceRecognition shows only profile group" into main 2024-09-23 15:41:41 +00:00
Zoey Chen
bedfb69f67 Merge "[Settings] Fix crash" into main 2024-09-23 13:02:59 +00:00
Matías Hernández
a78f2b834c Merge "Don't add the "Events" mode anymore, and delete it if disabled" into main 2024-09-23 12:49:05 +00:00
SongFerng Wang
d514d15590 Merge "remove the DSDS dialog" into main 2024-09-23 12:37:01 +00:00
Zoey Chen
bc3f736162 [Settings] Fix crash
Bug: 366361808
Change-Id: I3f804685e215ed07b71a5efd51c9da9c5b978279
Test: manual
Flag: EXEMPT bugfix
2024-09-23 11:16:36 +00:00
songferngwang
6960464557 remove the DSDS dialog
If the sim onboarding on, then sim should use the sim onboarding flow.

Bug: 362289792
Test: manual test
Flag: EXEMPT bugfix
Change-Id: Ibe22309db9dea5737de5ad351825a046599e6744
2024-09-23 10:42:36 +00:00
Yiyi Shen
7a91f6e7bf Merge "Rename AudioSharingRetryDialogFragment" into main 2024-09-23 10:03:55 +00:00
Yiyi Shen
676ddc7e95 Merge "Rename AudioSharingLoadingStateDialogFragment and layout" into main 2024-09-23 09:17:49 +00:00
Jacky Wang
9cbb04c5e0 Migrate "Build number" preference
Bug: 365886251
Flag: com.android.settings.flags.catalyst_firmware_version
Test: Unit
Change-Id: Iee68b5414713118ad3d1b9b3ec04437729bb2d0b
2024-09-23 16:43:34 +08:00
Jacky Wang
fb349fad1a Migrate "Kernel version" preference
Bug: 365886251
Flag: com.android.settings.flags.catalyst_firmware_version
Test: Unit
Change-Id: Icb50e2d5200f7de40b6f8383c114982cd45d34b5
2024-09-23 16:43:34 +08:00
Jacky Wang
6fe2f89f7c Migrate "Baseband version" preference
Bug: 365886251
Flag: com.android.settings.flags.catalyst_firmware_version
Test: Unit
Change-Id: I8e4f946d01169e8008b8a336d308f5874ee918e6
2024-09-23 16:43:20 +08:00
Yiyi Shen
51fc7a8239 Rename AudioSharingRetryDialogFragment
Test: atest
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Bug: 362858894
Change-Id: I157b036541e9a7b21205ee45437bfd4562c49118
2024-09-23 16:20:48 +08:00
Yiyi Shen
322e153350 Rename AudioSharingLoadingStateDialogFragment and layout
Test: atest
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Bug: 362858894
Change-Id: I05e29b248541511daca355f1bbe4a13b17b4d20d
2024-09-23 15:46:27 +08:00
Chaohui Wang
7d22f66e48 Merge "Check canEnterMobileNetworkPage" into main 2024-09-23 07:03:35 +00:00
Yiyi Shen
de7ab402f9 Merge "[Audiosharing] Show retry dialog when error occurs in start sharing" into main 2024-09-23 06:48:39 +00:00
Tom Hsu
e91214d3c8 Merge "[Satellite] Hide BT switch in Settings search when started Satellite." into main 2024-09-23 05:21:20 +00:00
Chaohui Wang
4ded4ac038 Check canEnterMobileNetworkPage
When startSimOnboardingActivity, so we enforce the
no_config_mobile_networks when insert psim.

Fix: 366370519
Flag: EXEMPT bug fix
Test: manual - set no_config_mobile_networks and insert psim
Change-Id: I0d4e85262924cc55a035ebeb2038ae08c0052ef6
2024-09-23 12:09:00 +08:00
Chaohui Wang
73fb290969 Check DISALLOW_CONFIG_MOBILE_NETWORKS when search
If disallowed, not show mobile related search results.

Bug: 358238959
Flag: EXEMPT bug fix
Test: manual - search Mobile Settings
Test: atest MobileNetworkSettingsSearchIndexTest
Change-Id: I79b984f41f09dd9612bcd0c9942089756d5d365d
2024-09-23 11:17:55 +08:00
Yiyi Shen
302b26ff74 [Audiosharing] Show retry dialog when error occurs in start sharing
Errors including:
1. onBroadcastStartFailed
2. onSourceAddFailed

Test: atest
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Bug: 362858894
Change-Id: I0fe13bd675672c57219d0f6f3e735515a7ed7a06
2024-09-23 11:07:20 +08:00
Treehugger Robot
d1ced23c7f Merge "Support customized summary in Channel Notification" into main 2024-09-23 00:10:43 +00:00
Adam Bookatz
f528660602 OnDeviceRecognition shows only profile group
Currently, if there are multiple users on the device, then the Settings
for OnDeviceRecognition show a chooser for all users on the device, with
only the users from the same profile group as the current user working.
It shouldn't even show the users from other profile groups; we fix that
here.

Bug: 361095700
Test: on a device with multiple users and profiles, made sure that only
users from the same profile group appeared
Flag: EXEMPT bugfix

Change-Id: I139e32a6a2cfede8d8a8abf573dcbaeede789f95
2024-09-20 13:20:17 -07:00
Treehugger Robot
a0e1262ecd Merge "Move identity check strings to framework" into main 2024-09-20 18:12:48 +00:00
Treehugger Robot
35fafa5ef4 Merge "Fix mode icon sharing in modes list" into main 2024-09-20 15:36:00 +00:00
tomhsu
0af43e2609 [Satellite] Hide BT switch in Settings search when started Satellite.
Flag: EXEMPT bugfix
fix: 360142029
Test: Manual test passed.
Change-Id: Id1e52a80e86ce6bab1eab3708588208d7981b3aa
2024-09-20 12:20:09 +00:00
Alina Zaidi
8be12edf9c Merge "[dev_option] Use DesktopModeFlags from core instead of Shell" into main 2024-09-20 09:49:16 +00:00
Matías Hernández
58b04ae7cf Fix mode icon sharing in modes list
Modes sharing the same icon would also share the applied tint (e.g. all with the "active" tint even if only the last one of them is active).

(Although it should never happen, also removed a potential NPE for mode icons without ConstantState).

Fixes: 367131481
Test: manual
Flag: android.app.modes_ui
Change-Id: I56867783310ea57f2e92c866ff0b5b53ac86bf37
2024-09-20 11:47:59 +02:00
yumeichen
4edaf1b804 Support customized summary in Channel Notification
Want to show the vibration name if customised vibration in channel notification is enabled. Therefore, need the summary function could be overrided.

Flag: com.android.server.notification.notification_vibration_in_sound_uri
Test: manual test
Bug: 351975435
Change-Id: I1fcd6deb3f176ef5943da59ae8861136d4a63f79
2024-09-20 08:51:58 +00:00
Edgar Wang
3f2d009c66 Merge "Refactor layout of ProcessStatsPreference" into main 2024-09-20 05:51:54 +00:00
Treehugger Robot
29ab4e8ee5 Merge "[Catalyst] Initial integration for Android version screen" into main 2024-09-20 02:38:44 +00:00