Commit Graph

137495 Commits

Author SHA1 Message Date
chelseahao
fdf67f0cfe [Audiosharing] Start / stop broadcast scanning.
Bug: 308368124
Test: Manual
Change-Id: I4dfedbd329172c790a901b0eabe5400303395072
2023-12-05 18:39:32 +08:00
Chaohui Wang
4fb845e43b Merge "Use IconDrawableFactory in AppPreferenceRepository" into main 2023-12-05 10:35:15 +00:00
Jakob Schneider
29941919b4 Merge "Fix opening the Settings page from the launcher." into main 2023-12-05 10:20:01 +00:00
Yiyi Shen
517ab6e040 [Audiosharing] Only check the active state of lead device.
Flagged with enable_le_audio_sharing

Bug: 305620450
Test: manual
Change-Id: I5db46fedbb15ac01f9ea70ba83246086241b25dd
2023-12-05 17:58:32 +08:00
Fan Wu
474ba5aaf4 Merge "Ignore failing tests under com.android.settings.wifi" into main 2023-12-05 09:52:12 +00:00
Yiyi Shen
c36fe14ca8 [Audiosharing] Dismiss all dialogs before show a new one.
Flagged with enable_le_audio_sharing

Bug: 305620450
Test: manual
Change-Id: I9c3ed31185814b184c9591103636f495046ecd3c
2023-12-05 17:05:23 +08:00
Fan Wu
0f3e902205 Revert "Add "test_suites" attribute to SettingsRoboTests."
This reverts commit 8731857550.

Reason for revert: Robolectric tests aren't supported in TEST_MAPPING, so no need to follow the guide.

Change-Id: Id8b1a82a26cf390f6f1088a7fcf54287e73af6b5
2023-12-05 07:55:50 +00:00
Chaohui Wang
d3661be0eb [automerger skipped] Check isSimHardwareVisible earlier am: b731e63096 am: 4cccd18ef8 -s ours
am skip reason: Merged-In I07ae9b785d0fbe24a866883080a466a2110ca68f with SHA-1 8b7e6c28bc is already in history

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

Change-Id: I7d744ed06ffa927916becaf1644b7248a3c0a7ee
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-05 07:46:00 +00:00
Chaohui Wang
c2101e312e [automerger skipped] Async load eid in SimEidPreferenceController am: d3cc9b20e4 am: 794f5153ec -s ours
am skip reason: Merged-In I9994abf3787f5db0edc71ff48d08e549a4b70bf7 with SHA-1 b6e44ce818 is already in history

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

Change-Id: I966516c16dbfd51a149a2e67e6f28b7600249fe3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-05 07:45:52 +00:00
Chaohui Wang
4cccd18ef8 Check isSimHardwareVisible earlier am: b731e63096
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/25498055

Change-Id: I19c7182a8207c48f99bc6730a88c10e839b5e6ed
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-05 07:12:53 +00:00
Chaohui Wang
794f5153ec Async load eid in SimEidPreferenceController am: d3cc9b20e4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/25498123

Change-Id: I32a34923fdf9943a51bce3571977a328e33b3a97
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-05 07:12:45 +00:00
Chaohui Wang
015a98ac38 Use IconDrawableFactory in AppPreferenceRepository
Bug: 314757827
Test: manual - on AppDataUsage
Test: unit test
Change-Id: Ica559ce044ebddfa8bc3ce994f9266ea1aabbe84
2023-12-05 14:56:47 +08:00
Chaohui Wang
bbbd0e640a Merge "Clean up BackupSettingsHelper.getSummary()" into main 2023-12-05 06:42:54 +00:00
Chaohui Wang
5809706f4e Merge "Let SpaBridgeActivity support HIGHLIGHT_MENU_KEY" into main 2023-12-05 06:23:57 +00:00
Yiyi Shen
fe306a7fc2 Merge "[Audiosharing] Fix main sharing flow." into main 2023-12-05 05:09:49 +00:00
FanWu
1bb01ff055 Ignore failing tests under com.android.settings.wifi
Bug: 314867581

Test: not needed
Change-Id: Id721c8a91baa54c746aba007dd40a086276953e8
2023-12-05 12:01:30 +08:00
Chaohui Wang
6adf1bad31 Let SpaBridgeActivity support HIGHLIGHT_MENU_KEY
Also the SpaAppBridgeActivity.

Could be tested by,
adb shell am start -n com.android.settings/.ManageFullScreenIntent

adb shell am start \
  -a android.settings.MANAGE_APP_USE_FULL_SCREEN_INTENT \
  -d package:com.android.settings

adb shell am start -n com.android.settings/.UsageStatsActivity

Bug: 309075424
Test: manual - on tablet
Test: unit test
Change-Id: I778443e9d21d165904e415c66c03aafc7ac81372
2023-12-05 11:43:31 +08:00
Vlad Popa
e71281cfc7 Merge "Disable the Bt categorization list when audio type is known" into main 2023-12-05 03:33:36 +00:00
Haijie Hong
5ee4df403d Merge "Add flag to offload bluetooth callback/operations to background thread" into main 2023-12-05 03:24:50 +00:00
Hyundo Moon
1793200795 Merge "Fix failing BluetoothPermissionActivityTest" into main 2023-12-05 02:57:25 +00:00
Yiyi Shen
9f6efc946f Merge "[Audiosharing] Fix volume control." into main 2023-12-05 02:39:37 +00:00
Joseph Vincent
b940da0fcb Merge "Swap orders of GAIA signin and lock setup during Private space setup" into main 2023-12-04 23:19:34 +00:00
Tyler Freeman
e0f10d3fe2 feat(force invert): add force invert Settings preference in A11y > Color and Motion
Bug: 312289375
Test: atest packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ColorAndMotionFragmentTest.java
  && atest packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ToggleForceInvertPreferenceControllerTest.java
Flag: android.view.accessibility.Flags.forceInvertColor

Change-Id: I2739a1dfecbbddcd240a3113344987ade2b7c717
2023-12-04 14:12:43 -08:00
josephpv
fa6ee75c0e Swap orders of GAIA signin and lock setup during Private space setup
Bug: 312892127
Test: Verified manually Lock setup is before GAIA login
Change-Id: I05b7c61306e4988a59511988f88e26cdefbed194
2023-12-04 17:37:09 +00:00
Chaohui Wang
5e85aa3b07 Eagerly load PackageInfo to avoid flaky
Bug: 314562958
Test: manual - All apps > app detail
Change-Id: Ic225818299f5b38e2a94020a04fccc4005f95158
2023-12-04 13:23:50 +00:00
Santiago Seifert
77c2a331fb Merge "Show the output switcher when no media is playing" into main 2023-12-04 12:17:21 +00:00
Yiyi Shen
87e6d6e32c [Audiosharing] Fix main sharing flow.
Fetch the active device before starting the sharing. Because once the
sharing is started, all devices connected will switch to inactive.

Flagged with enable_le_audio_sharing

Bug: 305620450
Test: manual
Change-Id: Ie287d1094fe40dbcb42c121ea79409fc48e0eec7
2023-12-04 18:37:32 +08:00
Yiyi Shen
afbd9d9894 [Audiosharing] Fix volume control.
1. Unregister the volume control callbacks in onDestroy
2. Reuse SeekBarPreference#setProgress
3. Fetch volume from AudioManager if got invalid volume from VC service.

Flagged with enable_le_audio_sharing

Bug: 305620450
Test: manual
Change-Id: Id63d1dbff4c3cbdeb91c2537d951c39e1a932220
2023-12-04 10:16:25 +00:00
Chaohui Wang
b731e63096 Check isSimHardwareVisible earlier
In SimEidPreferenceController, to reduce flaky on no SIM devices.

Bug: 304560734
Test: manual - on "About phone / tablet" page
Test: unit test
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:8b7e6c28bcef0788b4fc637af16dcaef32a16c14)
Merged-In: I07ae9b785d0fbe24a866883080a466a2110ca68f
Change-Id: I07ae9b785d0fbe24a866883080a466a2110ca68f
2023-12-04 10:10:29 +00:00
Fan Wu
6e3bf1ee10 Merge "Add "test_suites" attribute to SettingsRoboTests." into main 2023-12-04 09:56:24 +00:00
FanWu
8731857550 Add "test_suites" attribute to SettingsRoboTests.
Reference: https://source.android.com/compatibility/tests/development/test-mapping#packaging_build_script_rules

Bug: 312571846

Test: config change
Change-Id: I8a3e99a59309f1f63294e0ff88fb0536164c1cd1
2023-12-04 09:00:50 +00:00
Jasmine Cha
9e45469833 Show the output switcher when no media is playing
- Support output switcher for system routing.
- Add an new string to indicate the device that
  audio will output to.

Bug: 284227163
Test: device/host atest
 atest MediaOutputPreferenceControllerTest
 atest AudioOutputSwitchPreferenceControllerTest
 atest MediaOutputIndicatorSliceTest

Change-Id: I94bcf84e7e93b3e4f5db1d95d5380a54a3e0c460
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-12-04 08:19:05 +00:00
Chaohui Wang
d3cc9b20e4 Async load eid in SimEidPreferenceController
Avoid data loading in getAvailabilityStatus() to prevent ANR, override
updateNonIndexableKeys() for search availability.

Fix: 304560734
Test: manual - on "About phone" page
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:b6e44ce818a5284a612a31e0d451a33f9e1ce93e)
Merged-In: I9994abf3787f5db0edc71ff48d08e549a4b70bf7
Change-Id: I9994abf3787f5db0edc71ff48d08e549a4b70bf7
2023-12-04 07:53:34 +00:00
chelseahao
1340427763 [Audiosharing] Send intent to the qr code scanner.
Bug: 308368124
Test: Manual
Change-Id: I45abe790caecc6eb86e4ada2827ed740a5ee6a46
2023-12-04 05:15:04 +00:00
Hyundo Moon
b571a9768f Fix failing BluetoothPermissionActivityTest
Bug: 314052293
Test: atest SettingsRoboTests:com.android.settings.bluetooth.BluetoothPermissionActivityTest
Change-Id: Ic62fa4f21a49f865ff713fcf4dea635179441a99
2023-12-04 12:37:18 +09:00
Chaohui Wang
de3fe3744f Refresh the App Info Settings
When apk upgraded or downgraded.

And only close the page when the package is fully removed.

Bug: 314562958
Test: manual - on App Info Settings
Test: unit test
Change-Id: Ifdff714da99e31f9c5f237a0c3342de7a0797ec4
2023-12-04 01:43:11 +00:00
SongFerng Wang
0a32ca2bbc Allow l10n to translate it for the fr-CA
Bug: 280221906
Change-Id: I087403a5b305771ddbc96f66c5879f30366e54f4
Test: build pass
2023-12-03 02:51:03 +00:00
Wa Gao
7954bb5ba7 Merge "Add dialog for top switch on fully managed devices." into main 2023-12-02 02:03:55 +00:00
Wa Gao
b14867f6ac Add dialog for top switch on fully managed devices.
Bug: 311233745
Change-Id: Id4043675041d1cf9c0ed307f3a0c2dc65768641b
2023-12-02 00:42:33 +00:00
Manish Singh
9ee5f6edc9 Make the order of tabs same as profile creation
Currently the order is hardcoded to be Primary, Work, Private.
But SettingsLib in frameworks uses the order returned by UserManager's
getProfiles API. This causes inconsistency across various Settings
pages.

Changing the order to be the one returned by UserManager.

Bug: 304366476
Test: manual
Test: atest ProfileSelectFragmentTest
Change-Id: I9953f211bfbeab129aa6b7c7ec0fe294e91dda26
2023-12-01 22:37:37 +00:00
Jakob Schneider
b423e6b5b5 Fix opening the Settings page from the launcher.
Bug: 309107861
Test: Tested the bugfix manually
Change-Id: I40e05d0b6fc22a432895490bc51531a0eb3190ac
2023-12-01 11:48:45 +00:00
Chaohui Wang
a898cc0c20 Merge "Only show DeveloperOptionsController for admin" into main 2023-12-01 09:34:30 +00:00
Yiyi Shen
fa4a0cacff Merge "[Audiosharing] Add feature gates as utils." into main 2023-12-01 08:24:42 +00:00
Jacky Wang
8fc2b3429e Merge "Re-enable nullaway plugin" into main 2023-12-01 08:22:21 +00:00
Chaohui Wang
8295743fe1 Only show DeveloperOptionsController for admin
Bug: 311604902
Test: manual - on System page
Test: unit test
Change-Id: Idbf40be4e0074f5d381724538c226a336c2c3b27
2023-12-01 15:30:27 +08:00
Treehugger Robot
dbaf12441f Merge "Make the peak refresh rate with rounding" into main 2023-12-01 03:35:25 +00:00
Chaohui Wang
6e1d9fb00a Merge "Add back HIGHLIGHT_MENU_KEY for DevelopmentSettings" into main 2023-12-01 03:18:05 +00:00
Vlad Popa
f782872cfd Disable the Bt categorization list when audio type is known
The audio framework can deduce the type with the help of the
BluetoothDevice metadata API. In case this is known we will grey out the
list with the manual selection of the audio device type.

Test: adb shell device_config put media_audio android.media.audio.automatic_bt_device_type true
Test: atest BluetoothDetailsAudioDeviceTypeControllerTest
Bug: 302323921
Change-Id: Ia2cab27f2dce5493aa4326333699b5908d8a09ee
2023-11-30 18:08:01 -08:00
Anna Zhuravleva
4ec18698b0 Merge "Log events during PS setup flow." into main 2023-11-30 21:47:34 +00:00
Manish Singh
71e27963f7 Merge "Check purely for the presence of a managed profile" into main 2023-11-30 20:51:06 +00:00