Commit Graph

138861 Commits

Author SHA1 Message Date
Neil Fuller
43ded696dd UI changes to support time feedback
The feature is behind a release flag. It is also behind an experiment
flag so it can be trialed with Googlers before general release even
after being enabled in a release.

The feedback button only shows up if there is an intent URI configured,
which should be handled via an overlay. The design means that the intent
is potentially dependent on the manufacturer (good!), though I expect we
will suggest a standard one for GMS devices so we get feedback from a
variety of devices with different form factors / capabilities.
In this default, GMS core (Google Play Services) will handle the intent
and take the user through a feedback UI flow.

Testing:

To enable the button you need to build with one of release variants that
supports dynamic flags, e.g. trunk_food.

Then release flag:
$ adb shell device_config put location com.android.settings.flags.datetime_feedback true

It still won't work without the experiment flag:
$ adb shell device_config put settings_ui time_help_and_feedback_feature_supported true

Finally, the settings entry will launch an intent when pressed which has
to have a receiver. The receiver will be in GMS core but will be subject
to its own review / launch process. Until then, this feature will remain
quiet, biding its time.

Bug: 283239837
Test: Manual (see above)
Test: atest SettingsRoboTests:com.android.settings.datetime
Change-Id: I68798798fc0a47ae4c6755174ce509fbaee24142
2024-03-25 19:00:47 +00:00
Chun-Ku Lin
958d17bb69 Merge "Reflect QS shortcut changes in a11y pages." into main 2024-03-13 16:02:59 +00:00
Chaohui Wang
59007733ad Merge "Improve the number on "Label SIM" page" into main 2024-03-13 10:00:38 +00:00
Wilson Wu
ab589363b4 Merge "Fix keyboard vibration settings delay" into main 2024-03-13 08:32:48 +00:00
Angela Wang
0517422918 Merge "Fix logging format and add test cases" into main 2024-03-13 08:27:24 +00:00
SongFerng Wang
8721efd952 Merge "Fix the settings crash" into main 2024-03-13 07:20:35 +00:00
Jacky Wang
f0f0438d68 [automerger skipped] Reset app preferences does not trigger backup for App battery usages am: 081dbac72e -s ours
am skip reason: Merged-In Ia3917c8dc2654185f5f048c048362fd47379b7d1 with SHA-1 ef8a51fac8 is already in history

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

Change-Id: If698b9ed56c5a7d7e369477557c295656f2267b0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-13 06:56:14 +00:00
Jacky Wang
4581f51aa1 [automerger skipped] Enable android:restoreAnyVersion am: a234e1696e -s ours
am skip reason: Merged-In If1f37519b59159c5cd6fa49a3e23dcc85348336e with SHA-1 65e283dca7 is already in history

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

Change-Id: Iadd7b39a1f4b289ecf8e06bf8540e3a6e9e6f0ba
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-13 06:56:10 +00:00
Jacky Wang
d361b1b0aa [automerger skipped] Sort applications to avoid backup data change am: b03de69d79 -s ours
am skip reason: Merged-In I0e5bf1145d972db136bbd85571f015b4ab6fb171 with SHA-1 ea8ed47d07 is already in history

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

Change-Id: Ibc84bece6002042ca3b17a55c08b43f261f7142d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-13 06:56:07 +00:00
Jacky Wang
2bc6aebf14 [automerger skipped] [DataStore] Support backup data state computation am: 85e130ad7a -s ours
am skip reason: Merged-In I8ad4f2788f9f364eceb1bca841830e1f3a68fe77 with SHA-1 5847d50e7b is already in history

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

Change-Id: If9090bd12fcf9d92ddf43bbd5f0e6b171ccdeacb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-13 06:56:03 +00:00
Jacky Wang
5ccf24fe46 [automerger skipped] [DataStore] Support backup data with compression am: a76aade27e -s ours
am skip reason: Merged-In Id73a30c2b58fafa6d9d1cbe247a6d9c38397394b with SHA-1 23821a69f3 is already in history

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

Change-Id: I9119ce5e0dab4d96cb119b9a3fc559c6c97531f4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-13 06:55:59 +00:00
Jacky Wang
4b1c39ef43 [automerger skipped] [DataStore] Migrate LocaleNotification SharedPreferences to BackupRestoreStorage am: 11c9f1bff4 -s ours
am skip reason: Merged-In I195ee91f29030fcfe7176ed0c18fb2e2d0d40257 with SHA-1 cc0a94d732 is already in history

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

Change-Id: I07188cecba8d5e9feb324418063e6c060c97c6ff
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-13 06:55:53 +00:00
Chaohui Wang
08e06a7775 Improve the number on "Label SIM" page
Bug: 318310357
Test: manual - on Mobile Settings
Change-Id: I79149db550e8d84dd2104cbfd72e144dddeb81cd
2024-03-13 14:55:38 +08:00
Charlotte Lu
8cad117210 Merge "Fix certX509 has not been initialized." into main 2024-03-13 06:42:51 +00:00
Wilson Wu
f2174611b8 Fix keyboard vibration settings delay
The default settings observer delay is 10s for
background service. It cause the apps get the
settings update delay and lead a unsync behavior.

Update the settings change without delay.

Bug: 327094397
Test: Manual test with bug steps
Test: atest KeyboardVibrationTogglePreferenceControllerTest
Change-Id: Ib1c23ec9e1442e8397c7a36ffa157594ac64a9b3
2024-03-13 06:33:08 +00:00
Charlotte Lu
6693a02a2b Fix certX509 has not been initialized.
Test: Manual
Fix: 329243388
Change-Id: If9507f2aeddc1a5077a39246ac2af2f32b2b94bc
2024-03-13 12:13:30 +08:00
Jacky Wang
081dbac72e Reset app preferences does not trigger backup for App battery usages
Bug: 328712606
Fix: 328712606
Test: UT && Verify logcat when change/reset App battery usages
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:ef8a51fac85eedee8f9509b9f7c002281c1ae093)
Merged-In: Ia3917c8dc2654185f5f048c048362fd47379b7d1
Change-Id: Ia3917c8dc2654185f5f048c048362fd47379b7d1
2024-03-13 03:23:50 +00:00
Jacky Wang
a234e1696e Enable android:restoreAnyVersion
Bug: 317149339
Test: Manual tests
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:65e283dca7ac2d353fe36d95bfd133767b2b347f)
Merged-In: If1f37519b59159c5cd6fa49a3e23dcc85348336e
Change-Id: If1f37519b59159c5cd6fa49a3e23dcc85348336e
2024-03-13 03:23:43 +00:00
Jacky Wang
b03de69d79 Sort applications to avoid backup data change
Bug: 328698829
Fix: 328698829
Test: Manual test
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:ea8ed47d070be8b74297f1ca330dfdf9b196ec29)
Merged-In: I0e5bf1145d972db136bbd85571f015b4ab6fb171
Change-Id: I0e5bf1145d972db136bbd85571f015b4ab6fb171
2024-03-13 03:23:34 +00:00
Jacky Wang
85e130ad7a [DataStore] Support backup data state computation
Bug: 325144964
Test: Manual tests
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:5847d50e7bcab7d45d03351df802fb1228226aa5)
Merged-In: I8ad4f2788f9f364eceb1bca841830e1f3a68fe77
Change-Id: I8ad4f2788f9f364eceb1bca841830e1f3a68fe77
2024-03-13 03:23:27 +00:00
Jacky Wang
a76aade27e [DataStore] Support backup data with compression
Bug: 325144964
Test: Manual tests
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:23821a69f31c5712cb369bfdd7776a66926dc5ac)
Merged-In: Id73a30c2b58fafa6d9d1cbe247a6d9c38397394b
Change-Id: Id73a30c2b58fafa6d9d1cbe247a6d9c38397394b
2024-03-13 03:23:19 +00:00
Jacky Wang
11c9f1bff4 [DataStore] Migrate LocaleNotification SharedPreferences to BackupRestoreStorage
Bug: 325144964
Test: Manual tests
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:cc0a94d73247fa81eff0054a0dcf06e99c45adb1)
Merged-In: I195ee91f29030fcfe7176ed0c18fb2e2d0d40257
Change-Id: I195ee91f29030fcfe7176ed0c18fb2e2d0d40257
2024-03-13 03:23:12 +00:00
Marcus Ge
3042a3f02b Merge "Update Settings homepage color role mappings" into main 2024-03-12 20:56:49 +00:00
songferngwang
e0b5de28ae Fix the settings crash
When the user select mobile network settings item with subid=-1 in
the search list, then some of objects are not initialized.

Bug: 325956182
Test: atest AutoSelectPreferenceControllerTest
atest MobileNetworkPhoneNumberPreferenceControllerTest
atest MobileNetworkSpnPreferenceControllerTest
atest MobileNetworkImeiPreferenceControllerTest
atest WifiCallingPreferenceControllerTest

Change-Id: I17c24b6f542392f018c65b689862f9735fad4b9f
2024-03-12 19:16:20 +00:00
Mike Schneider
3085f01f6f Merge "Fold [GoldenImagePathManager] into [GoldenPathManager] #cleanup" into main 2024-03-12 17:42:03 +00:00
Nino Jagar
720bdde511 Merge "Integrate admin controls for content protection" into main 2024-03-12 17:05:24 +00:00
Joseph Vincent
d003fb1be8 Merge "Show Alert dialog on Hide when locked is enabled" into main 2024-03-12 17:04:44 +00:00
Oli Thompson
e0f43bbc42 Merge "add a check if the app store link intent can be opened in the profile." into main 2024-03-12 11:07:48 +00:00
josephpv
3c97c63d62 Show Alert dialog on Hide when locked is enabled
Bug: 325398789
Test: atest HidePrivateSpaceControllerTest
Change-Id: I6bfa3546b3ba56905918f8fd44c5351bf2d284b8
2024-03-12 10:35:56 +00:00
Treehugger Robot
fb52d69142 Merge "Fix test failure in com.android.settings.wifi.details2" into main 2024-03-12 06:55:42 +00:00
Treehugger Robot
3c26c93bd5 Merge "Add new dialogue when user is going to delete multiple sims where aleast on of them use RAC." into main 2024-03-12 05:45:06 +00:00
Zaiyue Xue
ff8116cc36 Fix test failure in com.android.settings.wifi.details2
Bug: 329046490
Fix: 329046490
Test: manual
Change-Id: Ia8ecdc4e52c57c5491786c5f0741820a94345428
2024-03-12 12:47:09 +08:00
Charlotte Lu
e9ee2c66bb Merge "Add CertificateDetailsPageProvider." into main 2024-03-12 03:31:25 +00:00
Charlotte Lu
470c27b8bd Merge "Add dhcp in advanced settings toggle." into main 2024-03-12 02:32:57 +00:00
Chun-Ku Lin
deba8599d8 Reflect QS shortcut changes in a11y pages.
Bug: 314843909

Test: manual (modify qs tiles in QS panel while the a11y page is open,
verify the a11y page reflect the qs changes)
Test: atest com.android.settings.accessibility
Test: atest com.android.settings.accessibility.shortcuts

Flag: ACONFIG android.view.accessibility.a11y_qs_shortcut

Change-Id: Ie5b46459faab902912a214ca131eb5d0b105a7ef
2024-03-12 01:32:00 +00:00
Rafael Higuera Silva
9ac44b3aae Add new dialogue when user is going to delete multiple sims where aleast on of them use RAC.
Test: make, manually test, atest com.android.settings.network, atest SubscriptionUtilTest
Bug: 328649505
Change-Id: I0c6fb7b5407179ec6850ece47f486b64759e2d1c
2024-03-11 23:29:30 +00:00
Treehugger Robot
b9895a2438 Merge "Touchpad: add metric for tap dragging setting changes" into main 2024-03-11 16:00:28 +00:00
Treehugger Robot
f3b5904c94 Merge "settings(dev): Remove NFC stack logging control resources" into main 2024-03-11 11:23:15 +00:00
Charlotte Lu
458b942a90 Add CertificateDetailsPageProvider.
Test: Unit Test
Fix: 326191189
Change-Id: I542903b26bac589ba67c297d8758ea0a69ebdf23
2024-03-11 17:29:35 +08:00
Chaohui Wang
fd666490ec Merge "Restrict SimPreference" into main 2024-03-11 09:27:49 +00:00
Chaohui Wang
15b42fe25a Merge "Use SubscriptionUtil.getFormattedPhoneNumber" into main 2024-03-11 09:27:45 +00:00
Jacky Wang
e18a651d89 Merge "Reset app preferences does not trigger backup for App battery usages" into main 2024-03-11 09:11:12 +00:00
Angela Wang
c9563a59da Merge changes from topic "ha-preset" into main
* changes:
  Selects presets in device details page (2/2)
  Selects presets in device details page (1/2)
  Separate category controller out of HearingDeviceControlsController
2024-03-11 08:33:46 +00:00
Chaohui Wang
59c8ba7fd0 Use SubscriptionUtil.getFormattedPhoneNumber
For Primary SIM.

Bug: 318310357
Test: manual - on Mobile Settings
Change-Id: Ic8085532fd025bb1e0b6897f5509f485c37a6d56
2024-03-11 15:51:35 +08:00
Charlotte Lu
08f8f0ce9e Add dhcp in advanced settings toggle.
Test: Unit Test
Fix: 329002870
Change-Id: I5c57deb1e8ed0dd59a7699b56f5eb99ca29876b8
2024-03-11 06:47:38 +00:00
Jacky Wang
ef8a51fac8 Reset app preferences does not trigger backup for App battery usages
Bug: 328712606
Fix: 328712606
Test: UT && Verify logcat when change/reset App battery usages
Change-Id: Ia3917c8dc2654185f5f048c048362fd47379b7d1
2024-03-11 13:41:03 +08:00
Chaohui Wang
af43d95332 Restrict SimPreference
Check policy UserManager.DISALLOW_CONFIG_MOBILE_NETWORKS.

Bug: 329000499
Test: manual - on Mobile Settings
Change-Id: I37687299a9ec5c77b59cb231969180872271f4a6
2024-03-11 12:35:11 +08:00
Fan Wu
c8d5701ab5 Merge "Fix AppInfoWithHeaderTest" into main 2024-03-11 04:06:35 +00:00
Jacky Wang
a0f50eb526 Merge "Enable android:restoreAnyVersion" into main 2024-03-11 02:13:25 +00:00
Roshan Pius
aef8284b9d settings(dev): Remove NFC stack logging control resources
Was not fully removed in ag/26414526.

   
Bug: 327517842
Change-Id: Ia147e754547a73ff63d877eb6ef86794f3dd0250
Test: Compiles
2024-03-11 00:48:44 +00:00