Commit Graph

140535 Commits

Author SHA1 Message Date
Chaohui Wang
298b738171 Create AppForceStopRepository
Use Intent.ACTION_QUERY_PACKAGE_RESTART for more accurate app state.

Fix: 340150349
Test: manual - on App info
Test: unit test
Change-Id: I1fb634b3fbee200f2251afa37ef2cba88ff58fe0
2024-05-13 19:21:39 +08:00
Treehugger Robot
7b4b26b3af Merge "[Thread] fix flaky Thread settings tests" into main am: 5a7eeea1e1 am: 0b6c1a781a
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3081385

Change-Id: I45f9dc9a23cd804f311124c90ac612d7b2efa780
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-13 10:02:30 +00:00
Treehugger Robot
0b6c1a781a Merge "[Thread] fix flaky Thread settings tests" into main am: 5a7eeea1e1
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3081385

Change-Id: I2b5665c65fdceed258a0c902be8fd3f8ff3703b2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-13 09:46:16 +00:00
Treehugger Robot
5a7eeea1e1 Merge "[Thread] fix flaky Thread settings tests" into main 2024-05-13 09:21:28 +00:00
Kangping Dong
253be810ae [Thread] fix flaky Thread settings tests
This fix the flaky issue by using the directExecutor()

Bug: 340148095
Change-Id: Ib0ed0f660828ec3c2601b4fc0b3360e891eb48af
2024-05-13 16:14:56 +08:00
Chaohui Wang
b63ed17b94 Merge "Use DataUsageFormatter to format app data usage" into main 2024-05-13 08:06:38 +00:00
Weng Su
ec4db174a8 Merge "Remove Instant Hotspot from Settings search" into main 2024-05-13 06:54:59 +00:00
Chaohui Wang
7ca1ceb722 Use DataUsageFormatter to format app data usage
Use the new unitsContentDescription from Formatter.formatBytes()

Fix: 318780411
Test: manual - on AppDataUsage
Test: unit test
Change-Id: I55079c83db2e46a48f49f746f2371825ec0bb029
2024-05-13 12:41:27 +08:00
Chaohui Wang
881c19480a Fix isSubscriptionEnabledFlow crash
When INVALID_SUBSCRIPTION_ID.

Fix: 338014486
Test: unit test
Change-Id: I97b5f005fb99473c2712f9643704a35cfaeecfac
2024-05-13 11:25:46 +08: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
7abd589f90 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie92111dce1b19f4e21cb12f3ddc10444f5bd639c
2024-05-12 17:32:46 -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
eb0d61ebf1 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I917e19b5e146ac8415ba6a302e8ea721b7e1c0e2
2024-05-12 17:28:35 -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
Bill Yi
e1ee6d8bfe Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Id0c0db0dd782cfeb420a1b3333cddfca2ab03196
2024-05-12 17:26:04 -07:00
Bill Yi
163789e60e Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ib3d12bcc4aa3efbcab08a95474711bd73f1c3448
2024-05-12 17:24:24 -07:00
Bill Yi
75a4637eba Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1d6f65dc534d84befba2f14868ec94f2d9b83962
2024-05-12 17:22:52 -07:00
Weng Su
3dc7837617 Remove Instant Hotspot from Settings search
- If Instant Hotspot is not enabled then remove it from Settings search

Bug: 339159245
Flag: None
Test: Manual testing
atest -c WifiTetherSettingsTest

Change-Id: I0b1d34c1130b17bfc0f3f0451a10c8aba265733c
2024-05-11 20:00:02 +08:00
Alice Kuo
7443e2dfe8 Avoid update the le audio mode as bluetooth turn off
1. Fix the wrong "disable" setting as bluetooth state is off
2. disable the switcher as bluetooth state is disabled

Bug: 336448875
Test: atest
Change-Id: I34d9f6aef11712cad16ff105c5859a694f1fe9c9
2024-05-11 18:33:03 +08:00
mxyyiyi
ee501485b8 Schedule periodic job in next full-hour timestamp under local timezone.
Bug:315228870
Test: atest SettingsRoboTests:com.android.settings.fuelgauge.batteryusage.PeriodicJobManagerTest
Change-Id: I1d2b298ea53c1018b5f94b5ba00692055374eef2
2024-05-11 17:36:32 +08:00
Fan Wu
67541a9444 Merge "Ignore existing failed tests and promote SettingsUnitTests to Presubmit. Exclude a few tests from Presubmit as they are failing in Presubmit but can pass locally." into main 2024-05-11 05:28:39 +00:00
Pawan Wagh
3e4a37adbb Merge "UI and error message fixes for 16k developer option" into main am: e550896658 am: 588dbe4b31
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3079811

Change-Id: Ie63bca803a77b8f3468e68050898934cc8b9e1b5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-11 03:50:47 +00:00
Pawan Wagh
588dbe4b31 Merge "UI and error message fixes for 16k developer option" into main am: e550896658
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3079811

Change-Id: Id0bf33ca5fce8a964cb7b4ae0365c318993b2b3d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-11 03:32:02 +00:00
Pawan Wagh
e550896658 Merge "UI and error message fixes for 16k developer option" into main 2024-05-11 03:06:28 +00:00
Chun-Ku Lin
01463cac05 Update Setting's Robolectric tests' instructions
Test: N/A

Change-Id: I00a0b3ac910caaeb35f66762a9d67610b9180ff6
2024-05-11 02:29:57 +00:00
mrulhania
532be5f4e9 mark developer settings page as sensitive
Marking the view as sensitive will black out the
screen during screen share. This will help prevent
scammers using remote viewing apps disable the
screen share protection option.

Fix: 332918161
Test: manual verification of black screen during screen share
Change-Id: Icaf0aacab5dc71a49c48f561f021af8b4e2d5211
2024-05-10 18:47:42 -07:00
Fan Wu
f44ea077d6 Ignore existing failed tests and promote SettingsUnitTests to Presubmit. Exclude a few tests from Presubmit as they are failing in Presubmit but can pass locally.
Bug: 339533415

Test: atest and presubmit
Change-Id: Icdc94195f3b4dda4e523d4b7498698a5ada198ea
2024-05-11 01:37:13 +00:00
Treehugger Robot
02e0dc41cf Merge "Apply lineBreakWordStyle and hyphenationFrequency in EditShortcutScreen" into main 2024-05-10 23:27:57 +00:00
Vlad Popa
e9322f84fc Improve the BT settings audio device type strings
Flag: EXEMPT string xml only update
Test: manual
Bug: 337044231
Change-Id: I717fda31ca937a9f09d548e037ca7497a7d2a829
2024-05-10 15:36:26 -07:00
Treehugger Robot
619af9349d Merge "Don't overwrite the system global gender settings" into main 2024-05-10 18:45:07 +00:00
Marcus Ge
fd0dd5dfdd Merge "[Contrast] Migrate contrast settings into Display" into main 2024-05-10 15:23:47 +00:00
Simon Wingrove
82f4844bd7 Update access strings per UXW
Bug: 338390125
Test: Builds
Flag: EXEMPT resource only update
Change-Id: I4719a37bd63b46c51ae4cf3009abaf920d624697
2024-05-10 14:31:27 +00:00
Chaohui Wang
59e2bce852 Merge "Fix empty network scan result" into main 2024-05-10 12:03:26 +00:00
Manish Singh
544f85c262 Merge "Move mock init before fragment is created" into main 2024-05-10 11:50:05 +00:00
Treehugger Robot
2d4ef85b2f Merge "[Thread] fix Thread unit test failures" into main am: bb5bb304aa am: fc2d8c650f
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3081467

Change-Id: I62d9d558c43a610daea3d0628488a3699568d60e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-10 10:58:34 +00:00
Treehugger Robot
fc2d8c650f Merge "[Thread] fix Thread unit test failures" into main am: bb5bb304aa
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3081467

Change-Id: I615a740f9141e2c16a8e4a9c674a52e1e55b0e99
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-10 10:45:37 +00:00
Treehugger Robot
bb5bb304aa Merge "[Thread] fix Thread unit test failures" into main 2024-05-10 10:18:40 +00:00
Mill Chen
f5ad0734a7 Merge "Deprecate Settings panels and its infrastructure" into main 2024-05-10 10:02:51 +00:00
Chaohui Wang
0514c664fa [automerger skipped] Merge "Use permission com.android.settings.BATTERY_DATA" into main am: 51fe6894f9 am: 5998074b89 -s ours
am skip reason: Merged-In I5a1753835d2d47712ea249081c9a77c455eb3291 with SHA-1 23c66d1278 is already in history

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

Change-Id: Ib45d2607321b73f15a788b0411334c9fff58a460
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-10 09:56:21 +00:00
Chaohui Wang
5998074b89 Merge "Use permission com.android.settings.BATTERY_DATA" into main am: 51fe6894f9
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3078823

Change-Id: I1fac29bf240989aa4528b4abdaf77c94d9d1b08a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-10 09:37:56 +00:00
Manish Singh
07fec29f7c Merge "Support multi-pane deeplink in PrivateSpaceAuthenticationActivity" into main 2024-05-10 09:29:30 +00:00
Chaohui Wang
51fe6894f9 Merge "Use permission com.android.settings.BATTERY_DATA" into main 2024-05-10 09:15:47 +00:00
Manish Singh
7b5c1bf766 Move mock init before fragment is created
Bug: 336518132
Test: atest PrivateSpaceDeletionProgressFragmentTest
Change-Id: Ic7d81e59515ad9ad1a354fff8884133e7cc8ea64
2024-05-10 09:11:49 +00:00
Kangping Dong
257e164562 [Thread] fix Thread unit test failures
It looks like SettingsUnitTests is not in presubmit and the existing Thread settings unit tests are failing in postsubmit.

This commit fixes two small issues:
1. The default Thread enabled state in FakeThreadNetworkController and ThreadNetworkToggleController is not consistent
2. The executor in ThreadNetworkToggleControllerTest is reusing the main thread which could result in flaky as the callbacks are not guaranteed to be invoked before the API returns

Bug: 339767488
Bug: 339145155
Test: atest SettingsUnitTests:com.android.settings.connecteddevice.threadnetwork.ThreadNetworkToggleControllerTest
Change-Id: Id8b453cf6d7bef698d08dbf106e48250369d0832
2024-05-10 17:10:50 +08:00
Chaohui Wang
df5e5ac130 Merge "No show DisableSimFooterPreference when sub not found" into main 2024-05-10 08:54:31 +00:00
Chaohui Wang
6e4ac4bdc0 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
2024-05-10 16:19:40 +08:00
Kangping Dong
8231d00bb9 [automerger skipped] Merge "[Thread] update Thread settings screen" into main am: ba221ea50c am: 0ff02951c2 -s ours
am skip reason: Merged-In Iffbb2471f5a28ec57d30a378f22642fe6ac0b9cc with SHA-1 d454ac2963 is already in history

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

Change-Id: I1485a97ef7f9d83ccdf30410651d07ed15384ded
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-10 07:16:22 +00:00
Chaohui Wang
e216fd4248 No show DisableSimFooterPreference when sub not found
DisableSimFooterPreferenceController.getAvailabilityStatus() used to
return AVAILABLE when the subscription is not found in selectable
subscription info list.

Return CONDITIONALLY_UNAVAILABLE in this case to fix.

Bug: 336232487
Test: manual - on Mobile Settings
Change-Id: I88642fc9853ce6603a78dfdc0e5fed1da1553adc
2024-05-10 15:08:53 +08:00
Tom Hsu
1e2c0b68e6 [automerger skipped] Merge "Expose SatelliteWarningDialogActivity" into 24D1-dev am: 580ef265ce -s ours
am skip reason: Merged-In I530c554433d99b4732416b8f1b83677ddc0ff6d8 with SHA-1 a50dd92e49 is already in history

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

Change-Id: Icc8dc8b0f6d9764c0da7366fdf7a8ed24b401de8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-10 07:02:31 +00:00
tomhsu
5d41cc2d8b [automerger skipped] Expose SatelliteWarningDialogActivity am: 180b2d9561 -s ours
am skip reason: Merged-In I530c554433d99b4732416b8f1b83677ddc0ff6d8 with SHA-1 a50dd92e49 is already in history

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

Change-Id: I105118a7e027b8c3231364745dcbe7b9ce60bc55
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-10 07:02:26 +00:00