Commit Graph

53364 Commits

Author SHA1 Message Date
Haijie Hong
724af770b7 Merge "Hide LeAudio toggle for LeAudio-only device" into main 2024-04-19 08:07:39 +00:00
songferngwang
aecc940987 Using the new sim ui when user insert psim
When device has two active esim and the user insert psim, the settings
will popup the dailog to ask user select the two sim card.
Now, there is the new sim UI, so it should show the new one.

Bug: 335780975
Test: verify UI
Change-Id: I298d488d467c447d6f8d91d86383708a4d1f70c9
2024-04-19 07:44:22 +00:00
Tom Hsu
fa6289f81e Merge "Fixs user input nothing, but save it successfully" into main 2024-04-19 07:17:13 +00:00
Weng Su
3c2e22afc8 Restrict WifiAPITest
- Disable Wi-Fi functions below if user has DISALLOW_CHANGE_WIFI_STATE
  - disableNetwork
  - disconnect
  - enableNetwork

Bug: 290612834
Flag: None
Test: Manual testing
Change-Id: I7435b30381401b10fa82b25fb245b1ed12bf3ade
2024-04-19 14:57:33 +08:00
tomhsu
aebb53870c Fixs user input nothing, but save it successfully
- If user inputs nothing, use original sim carrier name instead
 - Add a hint of showing original sim carrier name on edit field.

fix: 333642116
fix: 335763360
Test: Manual test
Test: atest passed
Change-Id: I68fa6bb12c2039899c0a3d0d2aef7f7946b717d1
2024-04-19 05:12:37 +00:00
mxyyiyi
6853021975 Add content description string for '<1%'.
Bug: 322855583
Test: atest SettingsRoboTests:com.android.settings.fuelgauge.batteryusage
Change-Id: I704a591ab4cba21644e86457c2dd1000ceecc291
2024-04-19 12:21:55 +08:00
mxyyiyi
3950632041 Help talkback to read the hyphen of time frame '{day}{time}-{time}'
Talkback Hover: https://screenshot.googleplex.com/6Z5KMhXRPRWrqh9
Talkback Click: https://screenshot.googleplex.com/5iYVWXE95rgH98D

Bug: 322855775
Test: atest SettingsRoboTests:com.android.settings.fuelgauge.batteryusage
Change-Id: I54b78e9e29c67d514c0346ddae8331450bf53f01
2024-04-19 12:18:57 +08:00
mxyyiyi
08d4b7a2ae Log optimization mode for app usage in BatteryUsageSlot.
Bug: 335374932
Test: atest ConvertUtilsTest
Change-Id: Icf86b9bee58b3b70d99e166d9fce0dfd7e30dea3
2024-04-19 10:58:15 +08:00
Becca Hughes
862e71b73d Merge "Fix bug where empty section is sometimes shown" into main 2024-04-18 22:08:29 +00:00
josephpv
58050a6f56 Update string in Delete private space dialog
Screenshot : go/ss/BuyAQZLToiv3z3K.png

Bug: 335454847
Test: Manual
Change-Id: I95c8472f494793212d10d8968017780b3739c294
2024-04-18 20:06:51 +00:00
Becca Hughes
1c3fb49913 Fix bug where empty section is sometimes shown
There is a bug where the empty section is
sometimes shown for additional providers. This
is because the logic for calculating the
visibility gets the providers and then the
logic for displaying the list gets the providers
and can result in getting out of sync. This aligns
both sets of logic to use the same data.

Test: ondevice & unit
Bug: 330163369
Change-Id: Icf71c78d67d55c929476f8e699d5893e60a49776
2024-04-18 19:52:15 +00:00
josephpv
8c45e82c35 Remove logs revealing private space existence
With this change logs which can reveal private space existence when
private space is locked are removed.

Bug: 334040689
Test: Manual
Change-Id: I09e01db839569ca5cc995b72ece6fe25916788a8
2024-04-18 19:00:12 +00:00
Treehugger Robot
29ad4163c2 Merge "When erasing an eSIM, verify the device screen PIN lock if one is set." into 24D1-dev 2024-04-18 17:46:59 +00:00
Chun-Ku Lin
0245c465b9 Merge "Update footer text whenever the ScreenPinningSettings is shown" into main 2024-04-18 17:25:17 +00:00
Rafael Higuera Silva
6389239f76 Merge "Add logic to log interaction of RAC warning dialog." into 24D1-dev 2024-04-18 16:28:38 +00:00
Matías Hernández
c19aba4115 Remove TODO which is resolved by changes in ZenModeHelper
Bug: 326061620
Test: N/A
Change-Id: Ibbf025341c8c1705253accccc5a07b568de6f34a
2024-04-18 17:38:31 +02:00
Chaohui Wang
660986353e Fix NetworkScanRequest maxSearchTime
Which should read from resource
R.integer.config_network_scan_helper_max_search_time_sec

Fix: 334814332
Test: manual - with network scan
Change-Id: I4afefe6470d6ef4bf325e83a0decce41b321e201
2024-04-18 05:41:11 +00:00
Roy Chou
39e42bf97a Merge "feat(onefingerpan): hide the one finger pan settings when window mode only" into main 2024-04-18 03:07:04 +00:00
Jason Chiu
8d3d975795 Merge "Remove the package name restriction of ACTION_UNINSTALL_PACKAGE" into main 2024-04-18 01:49:09 +00:00
Amith Yamasani
83da3f0041 Merge "Call noteAppRestrictionChanged when toggling restrictions/exemptions" into main 2024-04-18 01:47:35 +00:00
Edgar Wang
55a27a4160 Merge "Allow dynamic injecting preference into specific preferenceCategory" into main 2024-04-18 01:02:54 +00:00
Meng Wang
63d10cc4ba When erasing an eSIM, verify the device screen PIN lock if one is set.
SIM PIN lock existence isn't checked anymore.

Bug: 329202869
Test: manual - see b/329202869#comment41
Merged-In: I2c4d2b7e224973c4afa75573e05afe7607d2ae6b
Change-Id: I2c4d2b7e224973c4afa75573e05afe7607d2ae6b
(cherry picked from commit f4462ac5c2)
2024-04-17 22:16:46 +00:00
Meng Wang
0f4680e79b Merge "When erasing an eSIM, verify the device screen PIN lock if one is set." into main 2024-04-17 22:15:39 +00:00
Meng Wang
f4462ac5c2 When erasing an eSIM, verify the device screen PIN lock if one is set.
SIM PIN lock existence isn't checked anymore.

Bug: 329202869
Test: manual - see b/329202869#comment41
Change-Id: I2c4d2b7e224973c4afa75573e05afe7607d2ae6b
2024-04-17 22:13:23 +00:00
Treehugger Robot
f02cfc9526 Merge "Add logic to log interaction of RAC warning dialog." into 24D1-dev 2024-04-17 17:30:24 +00:00
SongFerng Wang
9a9b22b3ca Merge "Finish the sims page when airplane mode on" into main 2024-04-17 16:44:44 +00:00
Hakjun Choi
65cb3dfee7 Return empty list when SatelliteManager is not created
TelephonyFrameworkInitializer returns null for SatelliteManager when the feature PackageManager.FEATURE_TELEPHONY_SATELLITE is not enabled.
Therefore it is needed to add a exception handling for the case SatelliteManager is null.

Bug: 331182758
Test: manually select choose network in Settings menu from CuttleFish to reproduce
Change-Id: I5faf4f10585b78aada00d0a925d005de1dd71de1
2024-04-17 16:25:41 +00:00
songferngwang
f8a48668b0 Finish the sims page when airplane mode on
Bug: 335392575
Test: verify UI
Change-Id: I9d1e4c243e195abe8c917dc83ffed175f7ef74ec
2024-04-17 10:27:46 +00:00
Matías Hernández
fb0e00e3eb Merge "Introduce ZenModesBackend and ZenMode" into main 2024-04-17 08:59:48 +00:00
SongFerng Wang
27e947f729 Merge "Set Phone number format as LTR" into main 2024-04-17 08:59:26 +00:00
Jason Chiu
5d82f6a648 Remove the package name restriction of ACTION_UNINSTALL_PACKAGE
PackageInstaller has protected the intent action by setting
"android:priority=1".

Test: manual
Fix: 332228634
Change-Id: If0794e5957366d8b26acd0362b59c6c9076a0c4f
2024-04-17 16:26:52 +08:00
Haijie Hong
0307bbfb1f Hide LeAudio toggle for LeAudio-only device
Bug: 333827147
Test: atest BluetoothDetailsProfilesControllerTest
Change-Id: Ie446d8866fb51972795b66aac2db84703ef51b84
2024-04-17 16:12:42 +08:00
Samuel Huang
efe0ce2b2f Merge "Disable SIM On/Off operation when device is in Satellite Enabled Mode" into 24D1-dev 2024-04-17 07:44:44 +00:00
songferngwang
3219f6da97 Set Phone number format as LTR
Bug: 334339964
Test: verify the phone number format
Change-Id: Ifa5dc394c3d9b8d7565e6200a47b7cb9fb1bba84
2024-04-17 07:10:20 +00:00
SongFerng Wang
15d619f9b4 Merge "Text input in dialog should extend to full width" into main 2024-04-17 06:28:28 +00:00
Chun-Ku Lin
247476bab7 Update footer text whenever the ScreenPinningSettings is shown
Bug: 333029993
Test: atest ScreenPinningSettings
Test: manual
Flag: EXEMPT low risk bug fix
Change-Id: Ia14a50fcc81d672732b78c523968a5921cae65b1
2024-04-17 05:34:59 +00:00
Amith Yamasani
7676217e4d Call noteAppRestrictionChanged when toggling restrictions/exemptions
This is to log the reasons for restriction level change and force stop

Bug: 333882527
Test: statsd_testdrive 863
      Toggle battery restrictions manually for an app and verify logging
      of reason
      atest BatteryOptimizeUtilsTest
Change-Id: Ifcc99efc1b6acc5a992f7d952967210b07319f2e
2024-04-16 21:58:40 -07:00
YK Hung
84050edcdd Merge "Update wireless charging string" into main 2024-04-17 04:47:38 +00:00
Yiling Chuang
37a35d5833 Update wireless charging string
Add a capability to provide different strings during wireless charging.

Bug: 316239566
Test: robotests
Change-Id: Ic7c70ae33ae951dfe931995e5ab0d478222d57c9
2024-04-17 03:22:38 +00:00
Jason Chiu
fd8c705af9 Merge "Restart or finish HomepageActivity when it's launched unexpectedly" into main 2024-04-17 01:37:23 +00:00
Jason Chiu
b0c011e077 Restart or finish HomepageActivity when it's launched unexpectedly
Settings homepage should be started with the flag FLAG_ACTIVITY_NEW_TASK
to ensure it's the first activity in a task. Otherwise, there will be UI
issues.

When homepage is started with FLAG_ACTIVITY_NEW_TASK but not the first
activity, it means another homepage activity has been started, so
finishing the current invocation will bring up the previous activity in
the task.

On the other hand, when homapage is not started with the flag and not
the first activty, it indicates that the invocation is from another
app. Restarting the homepage activity with FLAG_ACTIVITY_NEW_TASK will
keep the UI behavior consistent.

Fix: 297857732
Fix: 309045575
Test: robotest, manual
  1. Start Settings from QuickSettings, go to any subpage, navigate to
     home, click Settings icon on the launcher, and the previously
     opened page should be kept.
  2. On a LS device, start Settings from another app without
     FLAG_ACTIVITY_NEW_TASK, Settings should be started in dual-pane
     mode.
Change-Id: If1f31e26dc37f681bd97c185cbeac2de06bdd48f
2024-04-17 01:33:04 +00:00
Edgar Wang
9ff8ddeed1 Allow dynamic injecting preference into specific preferenceCategory
Bug: 333547416
Test: robotest
Change-Id: I443ec8c16afc6db334a6f16d857f69f293803979
2024-04-16 15:30:56 +00:00
Vaibhav Devmurari
50a16b9fef Merge "Modify PK Settings page to make it more user friendly" into 24D1-dev 2024-04-16 13:26:07 +00:00
Santiago Seifert
b5aa766a25 Merge "Remove unused parameter" into main 2024-04-16 11:55:33 +00:00
songferngwang
3daaf1a073 Text input in dialog should extend to full width
Bug: 329710418
Test: verify the UI
Change-Id: I7ff3c390686aa752a42531419ea66eea764e1812
2024-04-16 11:34:24 +00:00
Joseph Vincent
252d1f19ff Merge "Launch full screen private space setup on Fold when unfolded" into main 2024-04-16 10:48:30 +00:00
Jakob Schneider
d18aba0792 Merge "Handle PackageManager.NameNotFoundException thrown from PackageManager.isAppArchivable as false" into main 2024-04-16 10:02:32 +00:00
Samuel Huang
8782bd4fdc Merge "Disable SIM On/Off operation when device is in Satellite Enabled Mode" into main 2024-04-16 09:54:41 +00:00
Samuel Huang
316e7bf3e6 Disable SIM On/Off operation when device is in Satellite Enabled Mode
Cherry-picking ag/26965536 into the 24D1-dev branch caused conflicts. Therefore, manually create this CL to migrate the MobileNetworkSwitchController to Kotlin and utilize Compose.

Bug: 315928920
Test: atest, manual
Change-Id: I215b5a4615a3b3da6fc160f76c85c814210cc3ef
Merged-In: I7aaaf43b4c449129197e7cc92565d274ffdd2d8c
2024-04-16 09:52:00 +00:00
Matías Hernández
59c6a66f5c Introduce ZenModesBackend and ZenMode
Test: atest ZenModesBackendTest ZenModeTest
Bug: 327419222
Change-Id: Ic2871a6124b2df4b77275b54a940f7b47666991c
2024-04-16 11:21:37 +02:00