Commit Graph

139058 Commits

Author SHA1 Message Date
Bill Yi
7a16a9e9d9 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ia283b3f75e2352bcdd69b053acaf161ba0c737e9
2024-02-29 09:48:53 -08:00
Roshan Pius
a5bd1cf34f settings(dev): Remove NFC stack logging control
We are now turning on verbose logging by default.

Bug: 327517842
Test: Compiles
Change-Id: I3c6026e230c7d35f04d9771442fadbf040a84b94
2024-02-29 09:44:37 -08:00
Kangping Dong
abd5f23fe9 Merge "[Thread] add Thread toggle in settings" into main am: 522e193947
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2909326

Change-Id: I8640f2cf4a90203972a5db703ebb3e027224c746
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-29 17:43:51 +00:00
Rafael Higuera Silva
be1c70a85e Merge "Add new dialogue and RAC logic." into main 2024-02-29 17:32:46 +00:00
Kangping Dong
e5c4c6e677 [Thread] fix wrong kotlin argument name
Fixes build warning:
```
the corresponding parameter in the supertype 'LifecycleEventObserver' is named 'source'. This may cause problems when calling this function with named arguments.
    override fun onStateChanged(lifecycleOwner: LifecycleOwner, event: Lifecycle.Event) {
```

Bug: 327098435
Change-Id: I9c50ab508cd39bf2eda02c423deeef9ca5342f4f
2024-03-01 00:49:03 +08:00
Kangping Dong
522e193947 Merge "[Thread] add Thread toggle in settings" into main 2024-02-29 16:45:34 +00:00
Hakjun Choi
4de688db35 Merge "Apply satellite feature flag to Settings activity" into main 2024-02-29 14:53:16 +00:00
SongFerng Wang
975e761659 Merge "Add the error dialogs" into main 2024-02-29 11:29:51 +00:00
SongFerng Wang
af5bbc5087 Merge "Modify the condition for hide Dds confirmed dialog" into main 2024-02-29 11:27:05 +00:00
Kangping Dong
5fc01ddd6e [Thread] add Thread toggle in settings
Allows a user to disable or enable Thread network / radio from
settings.

In this commit, a toggle is added to Settings > Connected devices >
Connection preferences to control Thread state. See the screenshots
below:
1. Thread is on: https://screenshot.googleplex.com/7FqqbzRX6rGwvSb
2. Thread is off: https://screenshot.googleplex.com/AmfRAhzuukULAAG
3. Thread is disabled by airplane mode: https://screenshot.googleplex.com/7zcesyomrveCqFE
4. Thread is searchable: https://screenshot.googleplex.com/9yFL2jeSuEhJwrS

Requirements:
1. the in-take bug: b/327098435
2. See the screenshot above
3. Test with `atest SettingsUnitTests` and manual tests
4. +2 from Yuwen
5. Flagged by "com.android.net.thread.platform.flags.Flags.thread_enabled_platform"
6. It doesn't need B&R, no preferences are added (the state is in
   Android framework (mainline module))
7. Confirmed searchable
8. Code written in Kotlin

Bug: 296990038
Bug: 319077562
Test: atest SettingsUnitTests
Change-Id: Ifa2264b8e59a5112290fd0224cb75ad228732077
2024-02-29 18:05:49 +08:00
Yiyi Shen
e5302bc1f1 Merge "[Audiosharing] Gates legacy le audio sharing UI in sound Settings." into main 2024-02-29 09:50:42 +00:00
Jason Hsu
8b62b28f28 Merge "Updates messages for hearing devices related page" into main 2024-02-29 09:20:35 +00:00
songferngwang
a9695c40e7 Add the error dialogs
When system activate the sim faild, then it shows the error dialog

Bug: 318310357
Bug: 298898436
Bug: 298891941
Test: manual test, verify the error dialog UI
Change-Id: I90d7aa5d3f3ad36d949a505377466f8cdf63b6b4
2024-02-29 09:18:55 +00:00
Angela Wang
b054b05b78 Selects presets in device details page (2/2)
Updates UI and sets preset to remote device when corresponding callback is called.

Bug: 300015207
Test: atest BluetoothDetailsHearingAidsPresetsControllerTest
Change-Id: Ic013b96acaa6161b861fbae32ddfd77387f9bc47
2024-02-29 09:17:36 +00:00
Angela Wang
82e4ed3bd1 Selects presets in device details page (1/2)
Enables users to select their presets in Bluetooth device details page if the device supports HAP.

This CL only contains the UI elements. The full functionality will be introduce in the next CL.

Bug: 300015207
Test: atest BluetoothDetailsHearingDeviceControllerTest
Test: atest BluetoothDetailsHearingAidsPresetsControllerTest
Change-Id: I1ab4781191b0c9e1033a29c30ca61671878bb7e1
2024-02-29 09:17:32 +00:00
Angela Wang
4af270b231 Separate category controller out of HearingDeviceControlsController
We're going to add more different device controls (such as hearing aids presets, volume offset controls or microphone volume controls) into "device_controls_general" PreferenceCategory. It's better to keep the category controller separated from the child controller to better maintain the visibility of the whole category and have a clearer stucture of these controllers.

Bug: 300015207
Test: atest BluetoothDetailsHearingDeviceControllerTest
Test: atest BluetoothDetailsHearingDeviceSettingsControllerTest
Test: atest BluetoothDeviceDetailsFragmentTest
Change-Id: I7f35b02a1120aefa8307e500f7abfce3b8055fbf
2024-02-29 09:17:30 +00:00
Fan Wu
c59c3a3d4f Merge "Re-enable failed tests under settings/widget/" into main 2024-02-29 08:53:15 +00:00
Charlotte Lu
823e41ead2 Change WepNetworkDialogActivity exported="true".
Test: Visual Test
Fix: 327310887
Change-Id: Iecc2910eda75f3aad60f4a876b0e1d54d203cd74
2024-02-29 07:51:32 +00:00
shaoweishen
6c02c6ab25 [Physical Keyboard Setting] Update layout for one pane land screen
If device is one pane and is land orientation, set new layout for it to
match with UX markup, this change will not effect on tablet, which is
two pane setting.

Bug: 325878673
Test: verify on device
Screenshot: https://screenshot.googleplex.com/BkETMhqp9GXM3cc.png
Change-Id: I066c3d782a2de8993a3fe9632676b67c2203d638
2024-02-29 07:31:21 +00:00
songferngwang
b8d87d1add Modify the condition for hide Dds confirmed dialog
Bug: 318310357
Bug: 298898436
Bug: 298891941
Test: manual test and verify the UI.
Change-Id: I68df36b457ea7479cd6a561f9c2b3c968e14fe44
2024-02-29 07:07:24 +00:00
Hakjun Choi
b35faf0958 Apply satellite feature flag to Settings activity
Added carrier satellite condition to determine whether satellite settins menu should be exposed or not.
if carrier satellite feature is not enabled, satellite settings menu will not be shown

Bug: 327539253
Test: manual test with feature key disabled / enabled condition on pixel
Change-Id: I1abc84c2c47b48c0137274666da37bede10d2ae6
2024-02-29 06:33:53 +00:00
Bill Yi
c3409e893a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I909befed3dd8d9526b67ef764dd5fbecc9125836
2024-02-28 22:22:53 -08:00
Bill Yi
66fa4dd594 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I0238b6e6e280c2fda00244061a2728a7e2edc394
2024-02-28 22:21:08 -08:00
Chaohui Wang
e6ad7fc215 Fix Bottom Sheet not in dark theme
Bug: 318310357
Test: manual - on Mobile Settings
Change-Id: I539abdbb4a549decd7c24bcc87ec398a51046cf3
2024-02-29 14:12:41 +08:00
Treehugger Robot
f0e052dc28 Merge "Use correct string res for FaceEnrollIntroduction#getAgreeButtonTextRes" into main 2024-02-29 04:58:12 +00:00
SongFerng Wang
f27877d155 Merge changes I0d3c2163,I5602713b,Ica2a26ea into main
* changes:
  Fix PrimarySim show the same sim in the preference list
  Start simOnboarding when active sim > 0
  [SimOnbarding] correct the sim name at the Primary Sim
2024-02-29 03:27:42 +00:00
Fan Wu
cfb73e2dd3 Re-enable failed tests under settings/widget/
The failing tests should be fixed by the underlying test framework updates

Bug: 315133235

Test: atest
Change-Id: I7f5d8f6af9193409253418b02b674a721489eb28
2024-02-29 02:55:06 +00:00
Charlotte Lu
7aee673020 Merge "Add WEP warning dialog disconnect." into main 2024-02-29 02:35:33 +00:00
Fan Wu
4aa67b846f Merge "Fix AppMemoryPreferenceControllerTest" into main 2024-02-29 02:31:37 +00:00
Joseph Vincent
2d8ae9add2 Merge "Update illustrations with fix for weird shape issue" into main 2024-02-28 23:50:07 +00:00
Chris Antol
3711945eb2 Merge "Revert "Finish HomepageActivity when it's not the root of a task and not singleTask."" into main 2024-02-28 23:20:13 +00:00
Riley Jones
d1b7f58e9a Merge "Fixing typo in the A11y Shortcut edit page" into main 2024-02-28 22:35:17 +00:00
songferngwang
bb7360b148 Fix PrimarySim show the same sim in the preference list
Bug: 327425969
Test: manual test, verify the UI
Change-Id: I0d3c2163a43a00ec0e4e627b34281e95cc611751
2024-02-28 22:05:35 +00:00
songferngwang
09603308d4 Start simOnboarding when active sim > 0
If active sim = 0, using old way
If active sim > 0, using sim onboarding

Bug: 324353868
Test: manual test
Change-Id: I5602713b5f4fef0625338787ee0682257e12e34f
2024-02-28 21:23:14 +00:00
josephpv
6920fe543a Update illustrations with fix for weird shape issue
Recording:
https://drive.google.com/file/d/1VSElVIojRriwiTA3E3F8noWkmEPlQWrN/view?usp=drive_link
https://drive.google.com/file/d/1X52v0TsJ2KZJJeQXSdopBqE_IzBxBv0d/view?usp=drive_link

Bug: 326391912
Test: Manual
Change-Id: I43c0d5204c2db10dd04decd5c94cea7f8668bba9
2024-02-28 20:39:32 +00:00
Joseph Vincent
71e2c70225 Merge "Fix for PS setup crash in AOSP build" into main 2024-02-28 20:39:15 +00:00
marcusge
16d82ccd0a [Accessibility] Add basic metrics logging for color contrast
proto was merged in ag/26383954

Bug: 241805782
Test: atest

Change-Id: Ic2e6bcb27aecc386582e6f268d3b4f40387f2742
2024-02-28 20:33:05 +00:00
Chris Antol
778bcee157 Revert "Finish HomepageActivity when it's not the root of a task and not singleTask."
This reverts commit 5a305645c1.

Reason for revert: b/325861149

Change-Id: I4441f939a46bf65514756a015355ea5089147c1d
2024-02-28 19:56:56 +00:00
Rafael Higuera Silva
48fee33ea2 Add new dialogue and RAC logic.
A new dialogue will pop up if the eSIM that is being deleted has carrier
Vodafone DE and does not have wifi connection or connection from another
sim.

Test: make, atest SubscriptionUtilTest and tested manually
Bug: 316419093
Change-Id: I957b67339a0ab651f38984e7d1061a8aff8fe2a1
2024-02-28 19:47:22 +00:00
Marcus Ge
747d0afa21 Merge changes I69049a13,I7fcc01b8 into main
* changes:
  [Accessibility] Migrate high text contrast under feature flag
  [Accessibility] Add contrast control screen UI and setup entry point
2024-02-28 19:38:27 +00:00
songferngwang
e83d8b22bc [SimOnbarding] correct the sim name at the Primary Sim
The user can modify the name at Label sim page. The primary sim page
should show the name which is modified by the user.

Bug: 318310357
Bug: 298898436
Bug: 298891941
Test: manual test and verify the UI display the correct name.
Change-Id: Ica2a26ead4ec7d61a59bb3846ea07f278d7a1144
2024-02-28 19:00:39 +00:00
Matías Hernández
9c33280259 Moved zen-conversion-related methods into ZenAdapters
Update calls from Settings.

Bug: 309922141
Test: atest ZenModeHelperTest ZenAdaptersTest
Change-Id: I354dea651a8c6f64eb87fe4bc90dab5ffdf7610f
2024-02-28 17:56:21 +01:00
Angela Wang
a1adf03f06 Updates messages for hearing devices related page
1. Updates hearing device page top intro message
2. Adds back the hearing device page footer with updated message

Bug: 321840161
Test: build pass, only simple UI change
Change-Id: I603630a14ab349d295ab8d5c1a00d841886d8e76
2024-02-28 16:42:08 +00:00
Harry Cutts
659b379f21 Touchpad: remove icons
We don't have an icon for the tap dragging setting, and settings screens
should either have icons for everything or nothing, so we decided to
remove all the icons. For all except ic_trackpad_touch_gestures_inverse,
they're only used in this one location, so the drawables can be removed
as well.

Screenshot: go/b-324058706-icon-removal-screenshot

Bug: 324058706
Test: with a touchpad connected, check that the System > Touchpad screen
      has no icons on it.
Change-Id: I0c0a76c757f568cd20799c53a96cfb895ed00238
2024-02-28 14:40:46 +00:00
Harry Cutts
cf1a34ab93 Touchpad: add tap dragging setting
Screenshot: go/ag-26012379-screenshot

Bug: 321978150
Bug: 324058706
Test: with the flag disabled, check the new entry doesn't appear
Test: with the flag enabled, toggle the setting and check that it
    enables and disables tap dragging (tapping then immediately putting
    your finger back on the touchpad and moving it)
Test: with the flag enabled, check the setting appears in search results
Test: atest SettingsRoboTests:com.android.settings.inputmethod
Change-Id: Iccfbe842ff655ea295edc764cfc400709948df7d
2024-02-28 14:40:35 +00:00
Harry Cutts
3715b07684 Touchpad: add Framework Input team as owners
Also replace references to
frameworks/base:/services/core/java/com/android/server/input/OWNERS with
ones directly to frameworks/base:/INPUT_OWNERS.

Bug: 324058706
Test: none
Change-Id: Ib8943ca749887da7d5eebae908516e86310f2077
2024-02-28 14:37:10 +00:00
Joseph Vincent
1922746789 Merge "Handle listing of private space apps in data usage settings" into main 2024-02-28 14:04:36 +00:00
Chaohui Wang
bbedd98962 Merge "Disable app data usage if all time usage is 0" into main 2024-02-28 12:10:43 +00:00
josephpv
d61b4a418c Fix for PS setup crash in AOSP build
Recording link : b/312454851#comment2

Bug: 312454851
Test: Manual
Change-Id: I2c8f812f0bb75b1d4b41565e8545e83c0a01af09
2024-02-28 11:03:06 +00:00
josephpv
f668b38489 Handle listing of private space apps in data usage settings
Settings->Network & Internet->Internet->Non-carrier data usage
Settings->Newtork & Internet->SIMs->App datat usage

Screen recording link:
https://drive.google.com/file/d/1vQPunoza_eB0hiqJ-Mu_ylDOz2IbKjYQ/view?usp=drive_link

Bug: 324844478
Test: Manual
Change-Id: I020e6bd2a62a342570f2d33765c75b882be3569d
2024-02-28 10:35:36 +00:00