Commit Graph

30501 Commits

Author SHA1 Message Date
Mark Kim
63f48ad2c6 Add 'Archive' button to AppInfo screen
Disable 'Archive' button whenever 'Uninstall' button is disabled.

Test: AppArchiveButtonTest, AppButtonsTest

Bug: 304256700
Change-Id: I9671905eca2cb71a5bf30bf29be83e5305a48ef4
2023-12-07 20:21:40 +00:00
Hani Kazmi
05f85914d8 Enable ECM restrictions for Usage Access and Device Admin
This commit continues the work to make all special app access
permissions ECM restrictable. Some implementation notes:

1. The FilterTouchesSwitchPreference and AppSwitchPrefernce components
   are replaced with RestrictedSwitchPreference. afaict this is a
   superset - it still filters out obscured touches and shows the app
   icon.

2. I'm treating this as mostly a refactoring, and so do not have a
   feature flag around most of the changes. Enabling ECM for them /is/
   behind the feature flag in RestrictedLockUtilsInternal.

3. app_ops_permissions_details.xml is currently only used by
   UsageAccessDetails.

Bug: 297372999
Test: Manually tested on device. Automated tests to follow
Change-Id: I65fe7ec099582de19192a77ad2e41c1558761502
2023-12-07 15:59:52 +00:00
josephpv
992f6b97dd Update private space setup string and loading screen title
This includes below changes based on the updated UX mocks:
- Add one more loading screen in setup flow
- Update feature intro text on Setup page
- To swap order of bullets on the setup intro screen
- Update "Private Space" to "private space" in setup flow screens

go/ss/7pVGBSPqezDek47.png
go/ss/ADLX8aXAAGgYQHD.png
go/ss/tYtrGypBgRuXM9V.png
go/ss/3zZfij6JDpudwYR.png
go/ss/BFtWegFZyTueQoT.png
Recording link - b/313654776#comment5

Bug: 313654776, 313882412, 313655290
Test: Verify title and text is same as UX flow
Change-Id: I6a985c4fd6ecbe8ddd11e36bf76a2a9cc8427ef5
2023-12-07 12:39:56 +00:00
Anubhav Kakkar
86b5a0afc1 Merge "Implement special app access settings for MEDIA_ROUTING_CONTROL app-op." into main 2023-12-07 10:58:40 +00:00
Yiyi Shen
57fe15ae51 Merge "[Audiosharing] Add sharing dialogs custom title layout." into main 2023-12-07 10:41:06 +00:00
Yiyi Shen
cb60abd00d Merge "[Audiosharing] Add rounded ripple for sharing dialogs." into main 2023-12-07 10:40:38 +00:00
Yiyi Shen
4b06129dd5 [Audiosharing] Add rounded ripple for sharing dialogs.
Bug: 305620450
Test: manual
Change-Id: Ie6c6dc197805edccba6a4cd3ae233351c6c4c65a
2023-12-07 17:14:58 +08:00
Anubhav Kakkar
642bc5a6bc Implement special app access settings for MEDIA_ROUTING_CONTROL app-op.
Bug: b/307632045
Test: Pair a watch with companion app > Settings > Apps > Special app access > enter "Change Media Output" > Find the companion app > Ensure the special app access is Allowed > ensure companion app is able to call remote media routing APIs > come back to the settings > revoke the access > ensure that now companion app is NOT able to call the remote media routing APIs.

Change-Id: I35487660365ef05f3b998e8ecf13aaed7ba844a9
2023-12-07 09:12:08 +00:00
Yiyi Shen
e9004b718d [Audiosharing] Add sharing dialogs custom title layout.
Bug: 305620450
Test: manual
Change-Id: I3e27812613e35228acadc0fdb99ae50fdf38e834
2023-12-07 17:11:49 +08:00
Charlotte Lu
0a896ff0f6 Telephony Issue: Apn config mmsc should start with http but is 啊.
Test: Visual Test
Fix: 313630772
Change-Id: I46dfabde31f0df7b4b0fd473aff24f9707987114
2023-12-07 14:30:27 +08:00
Bill Yi
d8f67dec38 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2023-12-07 00:09:26 +00:00
Joseph Vincent
85f0c65554 Merge "Show customized message for private space lock setup screen" into main 2023-12-06 23:21:36 +00:00
josephpv
2d7985fbf3 Show customized message for private space lock setup screen
go/ss/3kmkEkasv6vmDDo.png
go/ss/7CzzSXZthbJVcEr.png

Bug: 308862923
Test: atest ChooseLockGenericTest and Verified manually customized
message is shown when passed with intent.

Change-Id: I784d42c4702801ec45bc8d4c5e911a404f549d46
2023-12-06 20:39:51 +00:00
Daniel Norman
0fa75c4e41 Merge "Adds a summary to the (screen) Magnification preference for the main A11y Settings page." into main 2023-12-06 20:22:28 +00:00
Chelsea Hao
1a7a4d24ab Merge "[Audiosharing] Start / stop broadcast scanning." into main 2023-12-06 03:00:49 +00:00
Daniel Norman
01e624c76b Adds a summary to the (screen) Magnification preference for the main A11y Settings page.
This helps differentiate this from other magnification tools.

Reuses (and slightly modifies) the `magnification_feature_summary`
string which was not used by any existing code. This helps ensure
the existing localizations should be close enough, until L10n
translators have time to update based on the new shorter version.

Bug: 303499185
Test: ToggleScreenMagnificationPreferenceFragmentTest
Test: Open Settings > Accessibility, observe summary
Change-Id: If5ee4f937bbd655b425d4767ad8bbcef08dbe345
2023-12-06 01:10:52 +00:00
Bill Yi
6e5f68368b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ibf2c33df9097c89e03fcf78937ba40b68b3f37ac
2023-12-05 13:10:10 -08:00
Tyler Freeman
3fddb64a0d Merge "feat(force invert): add force invert Settings preference in A11y > Color and Motion" into main 2023-12-05 20:36:36 +00:00
chelseahao
fdf67f0cfe [Audiosharing] Start / stop broadcast scanning.
Bug: 308368124
Test: Manual
Change-Id: I4dfedbd329172c790a901b0eabe5400303395072
2023-12-05 18:39:32 +08:00
Chaohui Wang
794f5153ec Async load eid in SimEidPreferenceController am: d3cc9b20e4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/25498123

Change-Id: I32a34923fdf9943a51bce3571977a328e33b3a97
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-05 07:12:45 +00:00
Chaohui Wang
bbbd0e640a Merge "Clean up BackupSettingsHelper.getSummary()" into main 2023-12-05 06:42:54 +00:00
Joseph Vincent
b940da0fcb Merge "Swap orders of GAIA signin and lock setup during Private space setup" into main 2023-12-04 23:19:34 +00:00
Tyler Freeman
e0f10d3fe2 feat(force invert): add force invert Settings preference in A11y > Color and Motion
Bug: 312289375
Test: atest packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ColorAndMotionFragmentTest.java
  && atest packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ToggleForceInvertPreferenceControllerTest.java
Flag: android.view.accessibility.Flags.forceInvertColor

Change-Id: I2739a1dfecbbddcd240a3113344987ade2b7c717
2023-12-04 14:12:43 -08:00
josephpv
fa6ee75c0e Swap orders of GAIA signin and lock setup during Private space setup
Bug: 312892127
Test: Verified manually Lock setup is before GAIA login
Change-Id: I05b7c61306e4988a59511988f88e26cdefbed194
2023-12-04 17:37:09 +00:00
Jasmine Cha
9e45469833 Show the output switcher when no media is playing
- Support output switcher for system routing.
- Add an new string to indicate the device that
  audio will output to.

Bug: 284227163
Test: device/host atest
 atest MediaOutputPreferenceControllerTest
 atest AudioOutputSwitchPreferenceControllerTest
 atest MediaOutputIndicatorSliceTest

Change-Id: I94bcf84e7e93b3e4f5db1d95d5380a54a3e0c460
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-12-04 08:19:05 +00:00
Chaohui Wang
d3cc9b20e4 Async load eid in SimEidPreferenceController
Avoid data loading in getAvailabilityStatus() to prevent ANR, override
updateNonIndexableKeys() for search availability.

Fix: 304560734
Test: manual - on "About phone" page
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:b6e44ce818a5284a612a31e0d451a33f9e1ce93e)
Merged-In: I9994abf3787f5db0edc71ff48d08e549a4b70bf7
Change-Id: I9994abf3787f5db0edc71ff48d08e549a4b70bf7
2023-12-04 07:53:34 +00:00
chelseahao
1340427763 [Audiosharing] Send intent to the qr code scanner.
Bug: 308368124
Test: Manual
Change-Id: I45abe790caecc6eb86e4ada2827ed740a5ee6a46
2023-12-04 05:15:04 +00:00
SongFerng Wang
0a32ca2bbc Allow l10n to translate it for the fr-CA
Bug: 280221906
Change-Id: I087403a5b305771ddbc96f66c5879f30366e54f4
Test: build pass
2023-12-03 02:51:03 +00:00
Bill Yi
dc4d9f62c7 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2023-11-30 17:46:32 +00:00
Nino Jagar
324b19d332 Merge "Fix wrapping when zoom or large font is used" into main 2023-11-30 07:26:39 +00:00
Chaohui Wang
a7b3ac7384 Merge "Clean up AllInOneTetherSettings" into main 2023-11-30 06:31:14 +00:00
Derek Jedral
db72f4ea5f Merge "Update strings for Watch Unlock" into main 2023-11-30 05:23:33 +00:00
Chaohui Wang
0664d3cc45 Clean up AllInOneTetherSettings
This project is not on-going.

Clean up to help improve latency.

Bug: 311604902
Test: manual - on Network & internet page
Test: robo test
Change-Id: I6addb92e5587206661d1b64bdc56473a85ba9c9f
2023-11-30 12:27:33 +08:00
Bill Yi
5c3d71154e Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iad5b125cb9a7b90beda38d098f5853c2868f5227
2023-11-29 18:31:38 -08:00
Bill Yi
1cbdbad8b7 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I064bf3fbe6ae14b998f334e767b5a43772a2e379
2023-11-29 18:29:53 -08:00
Edgar Wang
07b2af4120 Merge "Refactor Date & Time Settings" into main 2023-11-29 13:19:40 +00:00
Edgar Wang
fdab44f9e7 Refactor Date & Time Settings
- Rid off AbstractPreferenceController

Test: robotest
Bug: 235445309
Change-Id: I61118a0ff580231973509c06e84e7088dba897f5
2023-11-29 18:35:43 +08:00
Xinyi Mao
1dac4a24e4 Merge "Update Power Anomaly UI based on new visD spec." into main 2023-11-29 09:59:03 +00:00
Chaohui Wang
880068d23a Avoid ANR of TetherPreferenceController
Off load the following work from main thread,
- Calculate title
- Calculate summery

This also helps improve the latency.

Also migrate to registerTetheringEventCallback() since
TetheringManager.ACTION_TETHER_STATE_CHANGED is deprecated.

Fix: 311848767
Test: manual - on Network & internet page and turn on / off tethering
Test: unit tests
Change-Id: I6ee182b41ef51f691ea31938142be1a41faf5573
2023-11-29 12:06:37 +08:00
Derek Jedral
2c4f5454f1 Update strings for Watch Unlock
Test: Built locally
Bug: 294281617
Change-Id: I01493060d5ea1b1941b1fb381d0c90cd4ce2ee78
2023-11-29 01:21:09 +00:00
mxyyiyi
440c3fc278 Update Power Anomaly UI based on new visD spec.
- update anomaly hint chip on app list.

App battery usage:
[dark]	https://screenshot.googleplex.com/RoTWFon4ocoFe25
[light]	https://screenshot.googleplex.com/3UtaxbVNkMtB4w2

Battery usage:
[dark]	https://screenshot.googleplex.com/6hAoxtuVp3dawQw
[light] https://screenshot.googleplex.com/68NeFBymVc2D2Ab

Bug: 309569299
Test: manual
Change-Id: I6a2bc8192e7d9301f20913913e7b722a9c598e7c
2023-11-28 15:57:33 +08:00
Edgar Wang
d640a51d09 Merge "Refactor AppPicker to adopt the latest UX" into main 2023-11-28 05:50:29 +00:00
Chaohui Wang
c3e97122c1 Clean up BackupSettingsHelper.getSummary()
Backup item in System page no longer has summary.

Bug: 310513318
Test: m RunSettingsRoboTests
Change-Id: I0bb3b9114287546c279a5f30b65fb7081af54e44
2023-11-28 02:30:09 +00:00
Treehugger Robot
63b69694f6 Merge "Updated error text color for pin/pass" into main 2023-11-28 01:40:53 +00:00
Joshua McCloskey
6904a341de Updated error text color for pin/pass
Test: Manually verified color was different.
Fixes: 281957374
Change-Id: If03efe588c82649d9898e7818511cec2a2b207df
2023-11-28 00:24:50 +00:00
Nino Jagar
8580d8031b Fix wrapping when zoom or large font is used
Bug: 310774085, 310774092
Test: Manual
Change-Id: I882f40b7df7fea8471a8668830067835d1325a82
2023-11-27 17:53:21 +00:00
Chaohui Wang
b848685b8d Merge "Clean up Contextual Wifi card" into main 2023-11-27 06:55:55 +00:00
Chaohui Wang
34c4deb6c9 Clean up Contextual Wifi card
Bug: 245854887
Test: m RunSettingsRoboTests
Change-Id: I3b4ccc076a68eadc11e9fb3d2967a34fe0396cf9
2023-11-27 13:59:33 +08:00
Chaohui Wang
ee7139a889 Remove injecting developer options into Settings itself
- It can improve performance because we use less injected item
- Also use RestrictedPreference instead just checking restrictions,
  so we follow policy transparency.

Note: Renamed DevelopmentSettingsDashboardActivity to
DevelopmentSettingsActivity,
because DevelopmentSettingsDashboardActivity could in disabled state
even after Settings upgrades, use a new name to prevent this issue.

Bug: 311604902
Test: manual - turn on / off Developer Options
Test: unit test
Change-Id: I17be117ae59e59410687e6d08fd5edd034d0508f
2023-11-27 05:12:13 +00:00
Chaohui Wang
a39905eabd Clean up unused MobilePlanPreferenceController
Which can improve the latency of "Network & internet" page.

Bug: 311604902
Test: manual - on "Network & internet" page
Change-Id: If306e93491402278ede4f20591296765b30bde37
2023-11-24 23:55:14 +08:00