Commit Graph

100803 Commits

Author SHA1 Message Date
Bill Yi
3913e56dd9 [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: b07f4eca84
Blank merge reason: commit message contains skip directive

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

Change-Id: Idd1873b76e7931f2fc0befd3b34dea0acf7fe1cb
2022-02-23 08:21:07 +00:00
Bill Yi
b07f4eca84 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Icf0bc906bc6e41539af9fa4200ec6fe24d559b0f
2022-02-23 08:20:54 +00:00
Bill Yi
cae842bfdb Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ibdaf4e2f48546dcdeae112c352b8a76b11583436
2022-02-23 08:17:02 +00:00
Mill Chen
f71c407cd6 [automerged blank] Cache mechanism for Storage page 2p: c23be3fa16 2p: 068fe1c035
Blank merge reason: Change-Id I75533742a025dc61116207285a894ee728d0af68 with SHA-1 77775a66f2 is in history

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

Bug: 191117970
Change-Id: Ic7cd78287a138ef3d33041c0408eb3f3129286d5
Merged-In: I75533742a025dc61116207285a894ee728d0af68
2022-02-23 08:16:09 +00:00
Mill Chen
068fe1c035 [automerge] Cache mechanism for Storage page 2p: c23be3fa16
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16986444

Bug: 191117970
Change-Id: I3c09e755c1dd3a218be047fb25a751a3931caf42
Merged-In: I75533742a025dc61116207285a894ee728d0af68
2022-02-23 08:16:01 +00:00
Mill Chen
c23be3fa16 Cache mechanism for Storage page
- Use SharedPreference to cache the size info
- Improve the flicker problem on Documents & other preference
- The jobs are destroied on onPause to prevent the jobs being
  restarting when back to Storage page
- Enable progress bar animation for each storage item

Bug: 191117970
Test: manual test
1) The loading spinner will be shown when entering Storage page
   at first time.
2) Back to Settings homepage and switch back to Storage page, the
   loading spinner shouldn't be shown.
3) Click each preference in the Storage page and switch between these
   pages, the size info should be updated if something removed and the
   order of preference shouldn't be changed.

Change-Id: I75533742a025dc61116207285a894ee728d0af68
Merged-In: I75533742a025dc61116207285a894ee728d0af68
(cherry picked from commit 77775a66f2)
2022-02-23 08:15:14 +00:00
Bill Yi
b4d4a7920c Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I47878174684f827d121e953b91c66d89183b26c9
2022-02-23 08:09:18 +00:00
Bill Yi
f3ce34203a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I359d7ac2de90ff5b5096ee70f30c00c20e2ccebe
2022-02-23 08:06:38 +00:00
Kweku Adams
3ad1c4a9c8 Simplifying settings string generation. am: 82b0e1ccdb am: e6f24f02fd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16980814

Change-Id: I80e5e86952ce74d234cd3f366fbfc4bd7498b1d3
2022-02-22 21:57:26 +00:00
menghanli
3c24caf357 Refine A11y Tile Service javadoc
- Explicitly say that this is only the class name,to be looked up in the a11y services package, and not a full component name
- Fix typo of Javadoc refers to class names (plural)
- Rename to getTileServiceName()

Bug: 219873375
Test: manual test
Change-Id: Ib06e68bd07cb85bffe0fa6ee1c680e4ee4e8e00a
2022-02-22 21:51:32 +00:00
Marie Matheson
26f5dfd966 Rename safety source ids to match format from other apps.
Test: atest SettingsUnitTests
Bug: 16979198
Change-Id: I671779281c594ad69b9f4b6aa5473aac5e7854a1
2022-02-22 21:14:46 +00:00
Kweku Adams
e6f24f02fd Simplifying settings string generation. am: 82b0e1ccdb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16980814

Change-Id: Ic1b46b0e0cc05f6cfbed6e2d672ea4daafa89ad8
2022-02-22 21:14:27 +00:00
Lais Andrade
e000a21064 Enable touch feedback settings when the phone is in silent mode
Allow users to change this settings when the phone is in silent mode, if
they prefer to make all interactions as silent as possible in that
context.

Fix: 165478128
Test: [Alarm|HapticFeedback|Media]Vibration[Intensity|Toggle]PreferenceControllerTest
Change-Id: I68f90559b2bf8088f22397412c149e2a4b91cf13
2022-02-22 19:01:51 +00:00
Kweku Adams
82b0e1ccdb Simplifying settings string generation.
Remove duplicate code for generating the settings constant strings, and
make sure not to write redundant data (setting a value to its default).

Bug: 158300259
Test: Android builds
Change-Id: Id79bae3685bfecb4858574ee38b67b2a554823fe
2022-02-22 18:52:35 +00:00
Presubmit Automerger Backend
097d3e242c [automerge] Merge SafetyCenterStatusHolder into SafetyCenterManagerWrapper 2p: ce321f0dd0 2p: 4efab754ce
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16941462

Bug: 220384387
Change-Id: I6d4b9c4cbc151519ad6630e34b13b0b3aeb87367
2022-02-22 16:37:31 +00:00
Presubmit Automerger Backend
4efab754ce [automerge] Merge SafetyCenterStatusHolder into SafetyCenterManagerWrapper 2p: ce321f0dd0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16941462

Bug: 220384387
Change-Id: I2bb6eee411ddf17fdca8e0b6fc80050a080c1e14
2022-02-22 16:37:22 +00:00
Marie Matheson
ce321f0dd0 Merge SafetyCenterStatusHolder into SafetyCenterManagerWrapper
Test: SettingsUnitTests
Bug: 220384387
Change-Id: I3886d3cf4717b5c7efd99ebd8ffb6a039e3565a4
2022-02-22 16:36:17 +00:00
Yuri Ufimtsev
2aeaefbaba Merge "Provide data to LockScreenSafetySource" into tm-dev am: 6368af8bdf am: 6a31bfe04b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16931921

Change-Id: Ibedc09cf02b0d24deae4efebaf0b951e1679d04b
2022-02-22 15:27:56 +00:00
Yuri Ufimtsev
175e48cb19 Merge "Move all the shared data from biometric controllers to separate utility classes" into tm-dev am: 9bc5f2ee0d am: 3104be2f95
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16931922

Change-Id: I0adf8b48c962eb316548a2c76c943163fe37029b
2022-02-22 15:17:15 +00:00
Yuri Ufimtsev
877964852a Merge changes from topic "presubmit-am-4b2506520ad5436ca10c9e64940a6c76" into tm-mainline-prod am: 11a32117f2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16931921

Change-Id: I68180cf76225ee872872f1dac5817e87d961ab4b
2022-02-22 15:03:28 +00:00
Yuri Ufimtsev
4a314e82b1 Merge "Move all the shared data from biometric controllers to separate utility classes" into tm-dev am: 9bc5f2ee0d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16931922

Change-Id: I13d8d14302ee401ded26a89a87ef074b06d59bb8
2022-02-22 14:53:00 +00:00
Yuri Ufimtsev
6a31bfe04b Merge "Provide data to LockScreenSafetySource" into tm-dev am: 6368af8bdf
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16931921

Change-Id: I979e08ada4c8ddd6ddc3bd929d37fa95e7a27ab8
2022-02-22 14:41:25 +00:00
Yuri Ufimtsev
3104be2f95 Merge "Move all the shared data from biometric controllers to separate utility classes" into tm-dev am: 9bc5f2ee0d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16931922

Change-Id: Ifaeb66fa2089e6c84d2a32381301a11d71956988
2022-02-22 14:41:00 +00:00
Yuri Ufimtsev
6368af8bdf Merge "Provide data to LockScreenSafetySource" into tm-dev 2022-02-22 14:21:40 +00:00
Yuri Ufimtsev
11a32117f2 Merge changes from topic "presubmit-am-4b2506520ad5436ca10c9e64940a6c76" into tm-mainline-prod
* changes:
  [automerge] Provide data to LockScreenSafetySource 2p: fc9b13e865
  Provide data to LockScreenSafetySource
2022-02-22 14:21:40 +00:00
Yuri Ufimtsev
8e1113b735 Merge changes from topic "presubmit-am-4b2506520ad5436ca10c9e64940a6c76"
* changes:
  [automerge] Provide data to LockScreenSafetySource 2p: fc9b13e865 2p: 2ff02b865a
  [automerge] Provide data to LockScreenSafetySource 2p: fc9b13e865
2022-02-22 14:21:40 +00:00
Yuri Ufimtsev
cb3ae2da69 Merge changes from topic "presubmit-am-4b2506520ad5436ca10c9e64940a6c76"
* changes:
  [automerge] Provide data to LockScreenSafetySource 2p: fc9b13e865
  Provide data to LockScreenSafetySource
2022-02-22 14:21:40 +00:00
Yuri Ufimtsev
9bc5f2ee0d Merge "Move all the shared data from biometric controllers to separate utility classes" into tm-dev 2022-02-22 14:20:51 +00:00
Yuri Ufimtsev
c7532d90cc Merge changes from topic "215517420-tm-dev"
* changes:
  [automerge] Move all the shared data from biometric controllers to separate utility classes 2p: 268d1d6dc6 2p: b777246dca
  [automerge] Move all the shared data from biometric controllers to separate utility classes 2p: 268d1d6dc6
2022-02-22 14:20:51 +00:00
Presubmit Automerger Backend
41eba560d1 [automerge] Move all the shared data from biometric controllers to separate utility classes 2p: 268d1d6dc6 2p: b777246dca
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16931922

Bug: 215517420
Change-Id: I83b554c3353b2ab8502501724d368c92a2fae8f2
2022-02-22 10:37:52 +00:00
Presubmit Automerger Backend
28d902c509 [automerge] Move all the shared data from biometric controllers to separate utility classes 2p: 268d1d6dc6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16931922

Bug: 215517420
Change-Id: I93674481947eca5ebabea41d183be9c24c2df029
2022-02-22 10:37:45 +00:00
Presubmit Automerger Backend
b777246dca [automerge] Move all the shared data from biometric controllers to separate utility classes 2p: 268d1d6dc6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16931922

Bug: 215517420
Change-Id: If193c916550c2fe5adc3e251239da40519ab4638
2022-02-22 10:37:44 +00:00
Yuri Ufimtsev
268d1d6dc6 Move all the shared data from biometric controllers to separate utility classes
Test: atest SettingsUnitTests

Bug: 215517420
Change-Id: Ic5421cd910ae77d4e7c0a29ae0337edb98a1d3b9
2022-02-22 10:35:45 +00:00
Tsung-Mao Fang
09c96a331b Media permission update for Android T
To improve user clarity of the storage permission and
reduce the number of apps with broad file access,
we will update the Files & Media permission model
for apps targeting API 32.

Apps must now request permission for images, videos,
or audio files independently.

Test: Build apk and see Storage page works.
Fix: 220259725
Change-Id: I8f14cf5b4b48c6b28374ba7266c62a3897cdda8e
2022-02-22 17:06:01 +08:00
TreeHugger Robot
ad3e2672af Merge changes from topic "presubmit-am-dae18c09d7104904b218ce9f2cd87ee0"
* changes:
  [automerge] Show prediction time when both value are ready 2p: 827910d3c3 2p: 25356e7a9e
  [automerge] Show prediction time when both value are ready 2p: 827910d3c3
2022-02-22 08:17:41 +00:00
Hugh Chen
da38751678 [automerge] Show prediction time when both value are ready 2p: 827910d3c3 2p: 25356e7a9e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16972164

Bug: 215767460
Change-Id: I4e233fb2c668dc4a3bed59e6d62d94839ac63865
2022-02-22 05:38:58 +00:00
Hugh Chen
25356e7a9e [automerge] Show prediction time when both value are ready 2p: 827910d3c3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16972164

Bug: 215767460
Change-Id: I2ddb768ff2abdaeeed20afe29375f92ec6ce8777
2022-02-22 05:38:42 +00:00
Hugh Chen
fc328bc08e [automerge] Show prediction time when both value are ready 2p: 827910d3c3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16972164

Bug: 215767460
Change-Id: Ic1931ca8176c5c06a234d2c734c016d05b9be55c
2022-02-22 05:38:42 +00:00
Hugh Chen
827910d3c3 Show prediction time when both value are ready
Bug: 215767460
Test: make -j64 RunSettingsRoboTests
Change-Id: I07947b3eca1f656e0dc603f9b9839825dd3149fd
2022-02-22 05:38:33 +00:00
Kweku Adams
7b756e12b0 Merge "Update constant names." into tm-dev am: 01ad893e8c am: edbd62b8b3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16941456

Change-Id: I4f1210d5aac903e2a2927b70d7d467ee2010f7b1
2022-02-22 02:38:49 +00:00
Kweku Adams
fd5997cc19 Merge "Update constant names." into tm-dev am: 01ad893e8c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16941456

Change-Id: I4752c8ef63aaa64aebb4c44471de4b4f95c629a4
2022-02-22 02:06:42 +00:00
Kweku Adams
edbd62b8b3 Merge "Update constant names." into tm-dev am: 01ad893e8c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16941456

Change-Id: I7e59aefcde83e5cf119c895b48c3f64c2df7e30e
2022-02-22 01:45:17 +00:00
Kweku Adams
01ad893e8c Merge "Update constant names." into tm-dev 2022-02-22 01:20:10 +00:00
Menghan Li
db2c17f862 Merge "Show different tooltips for QS features auto-added and non-auto-added" into tm-dev am: 24abb535ed am: f3b9f17cfa
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16932282

Change-Id: If8eda233edc2c3554faa8a50b49d92f6559844a6
2022-02-21 22:18:37 +00:00
Menghan Li
f3b9f17cfa Merge "Show different tooltips for QS features auto-added and non-auto-added" into tm-dev am: 24abb535ed
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16932282

Change-Id: I5c69534e1d9bfaadee0f3f2c8ae890360fe9dc9e
2022-02-21 21:33:50 +00:00
Menghan Li
24abb535ed Merge "Show different tooltips for QS features auto-added and non-auto-added" into tm-dev 2022-02-21 21:15:01 +00:00
Christian Göllner
ff9065ac95 Add support for device state based auto-rotation preferences in Settings.
- Creates new preferences that are shown when device-state rotation
  is supported.
- Hides standard preferences when device-state rotation is supported.
- Controllers/Preferences for individual folded/unfolded rotation
  settings are created and added programatically based on the settable
  device states available.

Test: Manually + Unit tests
Bug: 195757480
Change-Id: I16f50fd3664756b363c7eb79e5c35eb0d3b6df17
2022-02-21 17:18:04 +01:00
Wesley Wang
b5e941420e Merge "Refactor compact battery status method (1/2)" into tm-dev am: a01477087c am: d43d91eb9a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16932281

Change-Id: Iece5767237ca477e1dba0d1cda2bc6e42d2c457c
2022-02-21 09:52:03 +00:00
Wesley Wang
a6bf7f6d55 Merge changes from topic "cherrypick-refactor_compact_status-3o1lsmqltp" into tm-mainline-prod am: 937e8a5cf2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16932281

Change-Id: If4709521a70fa011153dda408b18c38120f70fc5
2022-02-21 09:50:45 +00:00
Wesley Wang
d43d91eb9a Merge "Refactor compact battery status method (1/2)" into tm-dev am: a01477087c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16932281

Change-Id: Iaef1acdf77cbe69ac90206fdc2941aa34e8cdec9
2022-02-21 09:50:39 +00:00