Commit Graph

138799 Commits

Author SHA1 Message Date
Bill Yi
ae2b1116ef [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 7fc1fb810b -s ours
am skip reason: subject contains skip directive

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

Change-Id: I22db0b71b25c28e5738953b6db607b387a6fc513
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-04 01:27:41 +00:00
Bill Yi
1f7e32c467 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 8c0acadf03 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I54a4e5f42e2c48a3a17969fb01ed0c13302ad5fb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-04 01:27:20 +00:00
Bill Yi
8842653554 Merge "Import translations. DO NOT MERGE ANYWHERE" into udc-qpr-dev 2024-01-04 00:10:27 +00:00
Andy Yu
0612c9b103 Merge "Update game default frame description char limit" into main 2024-01-03 19:17:42 +00:00
Andy Yu
6f19be8630 Update game default frame description char limit
To accomodate the highest number of characters for the localication
request, updating the limit to 65.

Bug: 306266471
Test: m; flash; boot;
Change-Id: Ie3f6fd420ae3466b62da0d830a477039351a57f8
2024-01-03 10:34:54 -08:00
Bill Yi
685859224c [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 072fc7f175 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Id346b3475bc9d8a3f12563780d0a2f8cc5c93c5c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-03 17:49:28 +00:00
Jan Tomljanovic
be50a8f6f3 Merge "Require authentication for changing USB preferences." into main 2024-01-03 15:19:21 +00:00
Julia Reynolds
e6c3d18648 Update content description
Test: manual: use TalkBack on conversations screen
Fixes: 317316662
Change-Id: I7c9b0746bf610168e8a3c2bc0d2932082da221a8
2024-01-03 15:00:20 +00:00
Kevin Jeon
89ea9597ea Merge "Increase character limit on PSS toggle translation" into main 2024-01-03 14:37:55 +00:00
Beverly Tai
b996d0a4ea Merge "Add new folding grace period settings strings" into main 2024-01-03 13:48:42 +00:00
Xinyi Mao
df262ad2d6 Merge "Reset the delay time to refresh the periodic job." into main 2024-01-03 09:28:08 +00:00
Allen Su
ef83eeb1db Merge "Remove the xml entry when the system language is removed" into main 2024-01-03 08:29:07 +00:00
mxyyiyi
5ef828930d Reset the delay time to refresh the periodic job.
Bug: 315225261
Test: manual
Change-Id: I5a42a9d2ac11ff5f036eaa85e37682438fceeac2
2024-01-03 15:53:38 +08:00
Allen Su
d8695cbf9b Remove the xml entry when the system language is removed
Bug: 301395074
Test: atest SettingsRoboTests:com.android.settings.localepicker
Change-Id: Ic771cd5146ab954c3da65748bf87cd14d30770b4
2024-01-03 07:27:52 +00:00
Chaohui Wang
ce84bfbc7e Merge "Refactor CellInfoUtil" into main 2024-01-03 07:05:11 +00:00
MiltonWu
bb8be99c5c Fix calibrator missing during suw page switch
Pass previous calibrator uuid to next fingerprint enroll activity

Bug: 318453900
Test: Manully test suw fingerprint flow
Change-Id: Iad1e9e1811f58fa880b8d05a722b7fdf57a814fa
2024-01-03 14:49:23 +08:00
Pajace Chen
6bdfac7cdd Merge "[Shadow] Switch the button for defend battery tips" into main 2024-01-03 06:24:28 +00:00
Chaohui Wang
e3b527a2bf Refactor CellInfoUtil
Unify and simplify the logic, and add unit test.

Bug: 293845605
Test: manual - on Mobile Settings
Test: unit test
Change-Id: I5467b92baa8e47fbd400c7a21fd39fd5ec90ed3a
2024-01-03 13:41:45 +08:00
Bill Yi
7fc1fb810b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I3529df91c2d48ac11fec8f8755dfb3c6faad7a60
2024-01-02 14:37:53 -08:00
Bill Yi
041c4f50e4 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Idc4301e9a0396c6ed9ec7abd81d8825d4c288710
2024-01-02 14:37:04 -08:00
Bill Yi
8c0acadf03 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie43dc95d487e328a20d88df957d9239a6cbf4bfa
2024-01-02 14:35:04 -08:00
Bill Yi
ecf19e1b4b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I14cadfd029985bc29b520551660099938f2151e6
2024-01-02 14:33:15 -08:00
Bill Yi
072fc7f175 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ib6fb378d4b39375c6d0356cf33ee16fce603afab
2024-01-02 14:29:49 -08:00
Julia Reynolds
c12e8be1b7 Remove unneeded code
Because the setting is marked as 'clone to profile'

Test: none/see other cl in topic
Bug: 314320478
Change-Id: I10fe30c4cbb186b9ef5a3a9f583a287b65cebe3e
2024-01-02 13:39:39 -05:00
Piotr Wilczyński
369cfd8ea5 Don't back up Smooth Display if feature flag off
In the previous CL (ag/24838636), we decided to back up Smooth Display and Force Peak Refresh Rate even if the feature flag is off and then just convert the value in DisplayModeDirector based on the state of the feature flag. This was because it wasn't clear how to access the feature flag from the Settings module. This resulted in the feature partially working if the flag is off.

Bug: 313021502
Test: atest DisplayModeDirectorTest
Test: atest ForcePeakRefreshRatePreferenceControllerTest
Test: atest PeakRefreshRatePreferenceControllerTest
Test: atest SettingsBackupAgentTest
Test: atest SettingsBackupTest
Test: atest SettingsValidatorsTest
Change-Id: I3406bc5c5f49fe6102cdfe6934813a9c4073ac6f
2024-01-02 15:06:31 +00:00
Pajace Chen
484f82e776 [Shadow] Switch the button for defend battery tips
Align the button position of defender settings tips with new design

Bug: 299403437
Test: Manual Test
Flag: None
Change-Id: I897d7291bfc21da69b661893368ddf4d6af7b06b
2024-01-02 14:37:36 +00:00
Treehugger Robot
1a564010bf Merge "Inject mocks in RemoteVolumeControllerTest via constructor" into main 2024-01-02 14:03:43 +00:00
Iván Budnik
b02f9f38e4 Inject mocks in RemoteVolumeControllerTest via constructor
This fix avoids the test wrongfully initializing real components before
the tests can modify mockable fields, which causes NPEs.

Bug: 318078730
Test: atest RemoteVolumeGroupControllerTest
Change-Id: I350e3e2e45eadb0f9737ba5d4b45c9f80e3355fb
2024-01-02 13:10:19 +00:00
Vaibhav Devmurari
da30b549be Merge "Add A11Y settings for Bounce keys and Sticky keys" into main 2024-01-02 13:05:59 +00:00
Jan Tomljanovic
b3e3fcb0fb Merge "Add auth challenge for increasing screen timeout." into main 2024-01-02 12:08:38 +00:00
Oli Thompson
1d0cadeac8 Merge "Fix incorrect test runner" into main 2024-01-02 09:31:17 +00:00
Zaiyue Xue
3b300cbf9f Merge "Fix battery usage chart was unexpectedly cleared" into main 2024-01-02 08:38:38 +00:00
Chaohui Wang
aa6f9d2d66 Merge "Fix ANR in WifiCallingPreferenceController.getAvailabilityStatus" into main 2024-01-02 07:15:58 +00:00
Pajace Chen
cccb5e5746 Revert "[Shadow] Switch the button for defend battery tips"
This reverts commit 882058de81.

Reason for revert: Need update the test case

Change-Id: I9bb35941541408f04fb414e2b119619749e28cbf
2024-01-02 05:21:25 +00:00
Zaiyue Xue
9c06e522bc Fix battery usage chart was unexpectedly cleared
Bug: 318308397
Fix: 318308397
Test: manual
Change-Id: Ia00c0680a563eaffb3609c1372336a6b9ed7fa17
2024-01-02 11:59:16 +08:00
Pajace Chen
882058de81 [Shadow] Switch the button for defend battery tips
Align the button position of defender settings tips with new design

Bug: 299403437
Test: Manual Test
Flag: None
Change-Id: Ieac9cd34ba2e14581040a87a1eb7382decbe1212
2023-12-31 11:54:11 +00:00
Kevin Jeon
2f9787a0c0 Increase character limit on PSS toggle translation
This change increase the character limit on the toggle for
enabling/disabling memory usage profiling. This toggle is gated behind
developer settings and changes some device behaviors; a higher
character limit will allow for more accurate translations.

Test: N/A
Bug: 296454553
Change-Id: I129a22a4c2ebd10f09b3d3a695fdf669da00fe33
2023-12-29 16:01:48 -05:00
Chaohui Wang
355144675a Fix ANR in WifiCallingPreferenceController.getAvailabilityStatus
Move the following to background thread to avoid block main thread,
- MobileNetworkUtils.isWifiCallingEnabled(mContext, mSubId, null)
- MobileNetworkUtils.buildPhoneAccountConfigureIntent()
- getSummaryForWfcMode()
- Call State

Since WifiCallingPreferenceController no longer calculate availability
in getAvailabilityStatus(), also update the
CallingPreferenceCategoryController accordingly.

Also introduce ImsMmTelRepository for split business logic for easy
testing.

Fix: 292401934
Test: manual - on Mobile Settings
Test: unit test
Change-Id: If92e2c8f6e137e40b83e578294c03c1b917eef8e
2023-12-29 17:16:49 +08:00
Sunny Shao
946f52b2a1 Merge "Revert "Nullability Annotations replacement"" into main 2023-12-29 03:18:24 +00:00
Jason Chiu
01f992a698 Support "Add account" search indexing
Implement a default getRawDataToIndex method of preference controller
base for indexing preference's raw data.

Test: manual, robotest
Fix: 243899250
Change-Id: I3fb4f88c881edcbaa3c5bfc7f78cc2e169b0380f
2023-12-29 10:36:57 +08:00
Sunny Shao
19d1d3d15d Revert "Nullability Annotations replacement"
This reverts commit cf0501e4d7.

Reason for revert: b/317462033, it seems a flaky but revert it first.

Change-Id: Ie1d5e279cca6477fc17d8c27c1ecda8d7a6b2553
2023-12-29 02:28:24 +00:00
Vaibhav Devmurari
315f2546fc Add A11Y settings for Bounce keys and Sticky keys
Test: manual
Bug: 294546335
Change-Id: I943300c31d0c8e142f64f084f4c65e05249a72ec
2023-12-28 21:02:11 +00:00
Beverly
20e48424d9 Add new folding grace period settings strings
Bug: 315219497
Flag: ACONFIG com.android.internal.foldables.flags.fold_grace_period_enabled DEVELOPMENT
Test: manually enable and see new strings (adb root && adb shell setprop
persist.fold_grace_period_enabled true && adb reboot)

Change-Id: Ie278b45e3928e1154f78066e71551fb5cac8a176
2023-12-28 17:24:58 +00:00
Oli Thompson
da00c1e86f Fix incorrect test runner
Bug: 317966701
Test: atest WorkModePreferenceControllerTest

Change-Id: Idf2d66940bebff622c8f65c41ed846d9c24d0ba6
2023-12-28 17:22:44 +00:00
Julia Reynolds
2d2fc79edd Merge "Hide spinner options for locked users" into main 2023-12-28 14:59:15 +00:00
Julia Reynolds
2890ac7101 Hide spinner options for locked users
'Most Recent' and 'Most Frequent' depend on usagestats data, which
is only available for unlocked users. Hide them if the user is
currently locked

Test: turn off work profile and view app notification list, primary &
work
Test: turn on work profile and view app notifications list, primary &
work
Fixes: 195092949
Flag: none

Change-Id: Ia87b2b64824dff645286ea8910bcd2c412d070ae
2023-12-28 14:11:27 +00:00
Chaohui Wang
b26ae73c39 Merge changes from topic "AutoSelectPreferenceController" into main
* changes:
  Clean up ServiceStateStatus
  Improve AutoSelectPreferenceController
2023-12-28 10:41:10 +00:00
SongFerng Wang
19dbb00acb Merge "Using carrier config for hiding 3G item at preferred network mode" into main 2023-12-28 09:40:26 +00:00
Chaohui Wang
851996d01c Clean up ServiceStateStatus
And LifecycleCallback*, which is no longer used.

Bug: 299068234
Test: m Settings
Change-Id: I29ce5609db2a4b249477da1bcbb0502fa04902fa
2023-12-28 16:58:42 +08:00
Chaohui Wang
2ec3840987 Improve AutoSelectPreferenceController
Deprecate ServiceStateStatus (which could produce wrong value),
and replaced with serviceStateFlow.

Fix: 299068234
Test: manual - turn auto select off and on
Test: unit test
Change-Id: I42fe160500c68cc9ee0fe383121f64146ddbb7f2
2023-12-28 16:58:42 +08:00