Commit Graph

138877 Commits

Author SHA1 Message Date
Satish Yalla
4916f22ad5 Revert "Fix "Free up space" not clickable issue"
Revert submission 27450348-cherrypicker-L62500030004014460:N91700030063291466

Reason for revert: Droidmonitor triggered revert due to build breakage in b/342043629. Will be verifying through ABTD before submission.

Reverted changes: /q/submissionid:27450348-cherrypicker-L62500030004014460:N91700030063291466

Change-Id: Ifaf5fbee7f18719e89d5278585ae80bed3808bb5
2024-05-22 03:04:41 +00:00
pajacechen
567f04603d Fix "Free up space" not clickable issue
- Adding CardPreference.java back for "Free up space" item
- Rename CardPreference.kt to TipCardPreference.kt

Bug: 333016642
Test: http://ab/I85800010265092964
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:e5d99fa93d7b7c9034bd492191d781c9f211f051)
Merged-In: I36062703b7ab5c21083459616234e3a86500719b
Change-Id: I36062703b7ab5c21083459616234e3a86500719b
2024-05-22 00:49:43 +00:00
Bill Yi
2f2901316d Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ia7a99457461a1c60021dbea998949e764d8ad94a
2024-05-21 07:02:35 -07:00
Chaohui Wang
6d5dadfb0d Fix BackupTasksAppsTest
Fix: 341832628
Test: atest BackupTasksAppsTest
Change-Id: I8731604d896d58a9b46b4d0af660a40c34bb905b
Merged-In: Ib01bd6556768a943ae7fae013c6ccb82b1b96697
2024-05-21 06:08:59 +00:00
Chaohui Wang
83aeb45f3c Fix default mode for AlarmsAndRemindersAppList
When app ops permission's app ops mode is default, should check if
permission is grant.

Fix: 339846642
Test: manual - on AlarmsAndRemindersAppList
Test: unit test
Change-Id: Ia0f05211f5774637304502ead79dd98a1cf89886
2024-05-21 03:37:47 +00:00
Chaohui Wang
7a8d8fd091 Reapply "Migrate AppOps"
This reverts commit 19b01bd68b.

Bug: 341016088
Test: manual - on Special app access
Change-Id: I000274ae9c725f848e1c8910120ba886fcc5be95
Merged-In: I000274ae9c725f848e1c8910120ba886fcc5be95
2024-05-21 03:20:04 +00:00
Faye Yan
a7065f4d36 Revert "Add Voice activation apps into Settings->Apps->Special a..."
Revert submission 25108596-va-special-access

Reason for revert: voice activation is not going in V

Reverted changes: /q/submissionid:25108596-va-special-access

Bug: 306447565
Bug: 393727896

Test: presubmit

Change-Id: I4977e7d543cb800fc9fb6962bba3afebb9480dcc
Merged-In: I4977e7d543cb800fc9fb6962bba3afebb9480dcc
2024-05-20 11:56:48 +08:00
Faye Yan
f6b5904511 Revert "Add Voice activation apps into Settings->Apps->Specific app->AppInfo->Voice activation apps"
This reverts commit 7f2fbc2e4c.

Reason for revert: voice activation is not going in V

Test: manual - on Special app access
Change-Id: Idfabfd48f45d2ace7de9f8498181f281ad0358a1
Merged-In: Idfabfd48f45d2ace7de9f8498181f281ad0358a1
2024-05-20 11:56:47 +08:00
Chris Antol
c4c5ad5642 Merge "Fix NPE in AudioSwitchPreferenceController" into 24D1-dev 2024-05-17 16:19:32 +00:00
ELIYAZ MOMIN
19b01bd68b Revert "Migrate AppOps"
Revert submission 27392016-cherrypick-AppOpsController-AppOps-w48m53c1or

Reason for revert: <Potential culprit for b/341210811- verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.>

Reverted changes: /q/submissionid:27392016-cherrypick-AppOpsController-AppOps-w48m53c1or

Change-Id: Ib9813a48170f4ef38de9eee811c677ad75f5401e
2024-05-17 10:48:57 +00:00
Chaohui Wang
4573df2aaf Migrate AppOps
Bug: 339846642
Test: manual - on Special app access
Change-Id: I988bdf85036478d8e6d87a3b5a1a46a35df38422
2024-05-17 02:57:31 +00:00
Bill Lin
6a2de37817 Merge "Remove redundant marginStart for FaceSettings button" into 24D1-dev 2024-05-16 01:20:29 +00:00
Treehugger Robot
47ce042cf3 Merge "Update battery settings page loading text" into 24D1-dev 2024-05-15 15:09:26 +00:00
Wesley Wang
3ceffc39f9 Update battery settings page loading text
- Update the loading text into empty space text to prevent layout flaky before info loaded

Bug: N/A
Test: atest SettingsRoboTests
Change-Id: I272405f5045a682533a4e9405a9fd91f6c507f7e
2024-05-15 10:53:52 +00:00
songferngwang
7489c93347 Fix the BasePreferenceController.createInstance's IllegalStateException
When the settings search do BasePreferenceController.createInstance,
it get the the IllegalStateException, and then the search ignore this
controller. It causes the indexing can not filter this controller via
the PreferenceController's getAvailabilityStatus.

Bug: 335509130
Test: Build pass. Do search and no crash
Change-Id: Icaff8ca690ca3e3a46c2f21a5fbde0bbd99fd92e
2024-05-15 09:26:44 +00:00
Chaohui Wang
381638f284 Merge changes If41d957f,I5c49d195 into 24D1-dev
* changes:
  Fix empty network scan result
  Create NetworkScanRepository
2024-05-15 07:50:58 +00:00
Jason Chang
fd6a3aa516 Remove redundant marginStart for FaceSettings button
To set button's marginStart to zero to align layout.

Flag: NONE

Bug: 331945001

Test: manual build and check UI visually in Fold/Unfold and rotate
state

Change-Id: I967d9ac1af963c6dcdac631a4fba9631a8d5662c
(cherry picked from commit a547a145dc)
2024-05-15 07:32:27 +00:00
Chaohui Wang
99b09df4a8 Fix empty network scan result
Settings use TelephonyScanManager.NetworkScanCallback to scan, and its
onComplete() could happens before onResults().

We will change Settings to fix.

Fix: 338986191
Test: manual - on NetworkSelectSettings
Test: unit test
Change-Id: If41d957f916a99eacc1becb6b460e58722a4dca7
Merged-In: If41d957f916a99eacc1becb6b460e58722a4dca7
2024-05-15 15:29:55 +08:00
SongFerng Wang
365cc18c40 Merge "Fix search indexed the item from the invisible sim" into 24D1-dev 2024-05-15 07:02:53 +00:00
Chaohui Wang
12158eb1fe Create NetworkScanRepository
And migrate network scan to flow for better maintenance and prevent ANR.

Fix: 323105271
Test: manual - Choose network
Test: unit test
Change-Id: I5c49d195fc202143c0131ffd78bc3adc168b119c
Merged-In: I5c49d195fc202143c0131ffd78bc3adc168b119c
2024-05-15 14:09:03 +08:00
Chris Antol
f5cc663a8a Fix NPE in AudioSwitchPreferenceController
Test: Unit Test to verify nullness
Bug: 338892614
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:7ac80f0a0a69e99ec3603e9157cd5a2b20509e85)
Merged-In: Ic97d1a6269a6d98ffd15a9b512f6ae24ff1c5b5e
Change-Id: Ic97d1a6269a6d98ffd15a9b512f6ae24ff1c5b5e
2024-05-14 16:19:59 +00:00
songferngwang
6f8cc6f0b6 Fix search indexed the item from the invisible sim
When search start to index and run to MobileNetworkSettings.java, the
TelephonyBasePreferenceController will find which subId can be the
"AVAILABLE" from the active subscriptionInfo list. This active subscriptionInfo
list does not be filtered, so the search uses the invisibile sim's item for user.

Bug: 335509130
Test: atest MobileNetworkUtilsTest (pass)
Change-Id: I2840e7de344347643197592e125f5524d27a068e
2024-05-14 15:04:02 +00:00
Nick Chameyev
b9a0722d20 Update fold setting text
Clarify default behavior and correct
the 'never' option to make sure
that it takes into account power
button instantly locks setting.

Bug: 300238754
Change-Id: I3d513bd06880b7be7e5610659dd72174d468c3dd
Flag: none
Test: presubmit
2024-05-14 10:10:28 +00:00
Treehugger Robot
75779c3fc2 Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev 2024-05-13 18:16:20 +00:00
Treehugger Robot
fd5d889807 Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev 2024-05-13 18:16:20 +00:00
Bill Yi
9f186e2b09 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I88ddb0e7dc30d084c5156759a363b0793c1e405d
2024-05-12 17:33:41 -07:00
Bill Yi
abc9a7413b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I5f2d28351f89a4428ee3dd37d515d0b32bc79387
2024-05-12 17:30:31 -07:00
Bill Yi
bc401c3cb3 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iabf9cc384edabd73c43f64406904f033203d0606
2024-05-12 17:26:55 -07:00
Tom Hsu
580ef265ce Merge "Expose SatelliteWarningDialogActivity" into 24D1-dev 2024-05-10 06:46:57 +00:00
Treehugger Robot
6f6629e6cd Merge "Fix the flicker in the Lock screen page" into 24D1-dev 2024-05-10 02:44:25 +00:00
tomhsu
180b2d9561 Expose SatelliteWarningDialogActivity
Bug: 337154438
Test: Manual test
Test: Build pass
Change-Id: I530c554433d99b4732416b8f1b83677ddc0ff6d8
Merged-In: I530c554433d99b4732416b8f1b83677ddc0ff6d8
2024-05-09 09:56:30 +00:00
tomhsu
1f440aacec Show dialog on BT entries in Settings
- When satellite mode is switched on BT entries shall show the warning dialog and avoid user uses these functions.

Bug: 337154438
Test: Manual test.
Test: atest pass
Change-Id: Ic9b6d44731684d1cfba87570d72dcacb905a66d2
(cherry picked from commit c8f52f816c)
Merged-In: Ic9b6d44731684d1cfba87570d72dcacb905a66d2
2024-05-09 06:55:02 +00:00
Treehugger Robot
eb729f283c Merge "Fix flicker of "App data usage"" into 24D1-dev 2024-05-09 05:50:55 +00:00
sunnyshao
33aba0a694 Fix the flicker in the Lock screen page
- Due to without summary text in xml, the UI render will skip it and it
  flicker while program adding the summary later.
- Add the summary_placeholder in the shortcuts item.

Fixes: 325989849
Test: manual test
Change-Id: Icb7714c19ae73d15bccc9b6976a10cf343a16f53
Merged-In: Icb7714c19ae73d15bccc9b6976a10cf343a16f53
2024-05-09 02:43:50 +00:00
Treehugger Robot
a48f19c101 Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev 2024-05-08 19:24:31 +00:00
Tom Hsu
864122b8b7 Fix build break
Bug:339348046
Test: Build pass locally
Change-Id: I98db39d696617fc81fdad4e73419b34f5265b0ad
Merged-In: I45cd92a8688e7a619613361ea4a8d58a0984d99f
2024-05-08 08:56:44 +00:00
Chaohui Wang
bb90a2c5c8 Merge "Fix data usage when policy has no cycle" into 24D1-dev 2024-05-08 08:33:18 +00:00
tomhsu
c0b39601bf Show dialog on Wifi, and APM' entries in Settings
- When satellite mode is switched on Wifi, and APM entry shall show the warning dialog and avoid user uses these functions.

Bug: 337154438
Test: Manual test.
Test: atest pass
Change-Id: I45cd92a8688e7a619613361ea4a8d58a0984d99f
(cherry picked from commit 29b2f16edf)
Merged-In: I45cd92a8688e7a619613361ea4a8d58a0984d99f
2024-05-08 05:40:36 +00:00
Chaohui Wang
9e5b389de3 Fix flicker of "App data usage"
Use placeholder to hold the place.

Fix: 323466366
Test: manual - on Mobile Settings
Test: unit test
Change-Id: I3c4d9ff6538a79500318869f01f4b88b55bd9475
(cherry picked from commit 74fe516e09)
Merged-In: I3c4d9ff6538a79500318869f01f4b88b55bd9475
2024-05-08 05:29:27 +00:00
SongFerng Wang
bc4293cb4e Merge "Refacotr mobile data observer for repository" into 24D1-dev 2024-05-08 03:59:47 +00:00
Bill Yi
faa97ab210 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I0acd24de924d3d94f16985e24852b76a0523ab2b
2024-05-07 18:03:02 -07:00
Chaohui Wang
107cca7a77 Fix data usage when policy has no cycle
Fallback to four weeks, as the same as no policy.

Fix: 336108815
Test: manual - on DataUsageList
Test: unit test
Change-Id: I63140a13ea3f3ee790cc911432fbdfd6247f7318
2024-05-07 14:22:35 +00:00
Chaohui Wang
c63f06d4c8 Fix isInCallFlow when no active subscription
Direct emit false in this case to fix.

Fix: 338484668
Test: manual - on SIMs
Test: unit test
Change-Id: I5286701160d95b1c06e577db6232f7e70f040cdb
2024-05-07 10:57:24 +00:00
Mengjun Leng
0a9e7046cc Refacotr mobile data observer for repository
In current design, the mobile data observer might be removed due to
SIM absence after registered so that mobile data network info can't
be updated to clients.

To fix it, migrate it to use API TelephonyCallback.onUserMobileDataStateChanged

Change-Id: I26c8f946823abb7505f0227c8dd8ab0700d0c5f2
Merged-In: I26c8f946823abb7505f0227c8dd8ab0700d0c5f2
2024-05-07 09:05:25 +00:00
Jason Chang
f1be1400b7 Fix the text under the "Setup for limited vision or head motion"
is grayed out

Align the sub-title text color with main-title.

Flag: NONE

Bug: 337171531
Bug: 336678451

Test: manually test with reproducible steps then check it visually:
1. Go to Settings > Security & privacy > Device unlock
> Fingerprint & Face Unlock > Face Unlock
2. Confirm your PIN/Pattern/Password
3. Tap on "Setup for limited vision or head motion"

Change-Id: Id6db60d1fc97833607e184bc2fa71b76f46983a4
(cherry picked from commit a538f4efdc)
2024-05-04 09:16:42 +00:00
Treehugger Robot
2a8de4adc8 Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev 2024-05-03 22:27:03 +00:00
Treehugger Robot
ad279da071 Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev 2024-05-03 22:27:03 +00:00
Bill Yi
ed8dee24c8 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I4ee20195ebf4494832e819ed1bc171d86374f634
2024-05-03 07:09:35 -07:00
Bill Yi
7ea119c95e Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Icb2bf4badc91a370f1fcbd7d072b245bc6b50be6
2024-05-03 07:06:23 -07:00
Bill Yi
b2d407f276 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I05cf80b5cefaebbd6447392b80a71e68bf446d57
2024-05-03 07:03:03 -07:00