Commit Graph

83328 Commits

Author SHA1 Message Date
Arc Wang
044c91cc70 Query storage size instead of calculate size of installed APP
From android S, Storage Settings show files of images/videos/audios
category instead of installed APP of each category. So it's
necessary to change the way to calculate size information.

This change also
- StorageItemPreference shows changing storage size units instead
  of fixed GB. It helps UX for categories of only small size files.
- Query media provider for size of Documents and others.
- Query media provider for size of Trash.

Bug: 170918505
Bug: 177892478
Bug: 179871408
Bug: 184379946
Bug: 186077224
Bug: 187128447
Test: atest com.android.settings.deviceinfo
      atest com.android.settings.deviceinfo.storage
      make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.deviceinfo
      make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.deviceinfo.storage
      manual visual
      Click each file category to count files size is the same as
      displayed in Storage Settings.
Change-Id: I37c7b3a4b5860323cb55581b23a90f583f4af216
2021-05-25 23:44:21 +08:00
TreeHugger Robot
b0e2c5f754 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into mainline-prod am: a75a0302cc -s ours am: 37947fc40c -s ours
am skip reason: subject contains skip directive

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

Change-Id: I8b71db04cd59d4eed4ce8a19bd7a1395bc4c1444
2021-05-25 15:15:15 +00:00
Bill Yi
0f875fd3f7 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 59ac543b64 -s ours am: 1474e88ef3 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ifbaad7c811c216b49f6bf817c17998bfc98e9b1e
2021-05-25 15:14:58 +00:00
Wesley.CW Wang
92feb9e8fc Add new battery entry into AppInfo page launch variable
- Insert uid as launch variable
 - Add new launch type into AppInfo page

Bug: 178197718
Test: make RunSettingsRoboTests
Change-Id: I8c68bebd02491dbbc1516bbebc14254ed06940f6
2021-05-25 23:13:03 +08:00
TreeHugger Robot
37947fc40c [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into mainline-prod am: a75a0302cc -s ours
am skip reason: subject contains skip directive

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

Change-Id: I6f0f358961066530f199940f196f4a3ef19b654b
2021-05-25 15:00:06 +00:00
Bill Yi
1474e88ef3 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 59ac543b64 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I09016ff83f9d48a2fd2f925c8ecbfbeed49a1c20
2021-05-25 14:59:56 +00:00
TreeHugger Robot
a75a0302cc Merge "Import translations. DO NOT MERGE ANYWHERE" into mainline-prod 2021-05-25 14:45:06 +00:00
TreeHugger Robot
a078563e7b [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev am: 64d9cc56c6 -s ours am: f556c56609 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Iee85a15636869bca3b9d376e726ecd4ae5cf9a6e
2021-05-25 14:42:34 +00:00
Bill Yi
1fea84687e [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: b57f6bc1df -s ours am: 9769c467a3 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Icd9df8520f011e48ecddefb3c8e82f3d7798662f
2021-05-25 14:42:26 +00:00
TreeHugger Robot
f556c56609 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev am: 64d9cc56c6 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I9e32efe0e2586a085b1b2fc3771ccf3e65aa4b76
2021-05-25 14:42:20 +00:00
TreeHugger Robot
8715c8d1c7 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev am: 00764f15b6 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Icdec1bf1298704ce60cc6ef8d83ba71601851be8
2021-05-25 14:42:06 +00:00
Bill Yi
9769c467a3 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: b57f6bc1df -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ic964765ba631ee92349015f35f53424d9578badf
2021-05-25 14:42:00 +00:00
TreeHugger Robot
00764f15b6 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-05-25 14:37:46 +00:00
TreeHugger Robot
70b2bf3cc6 Merge "Update fonts & colors" into sc-dev am: bdd98ec216
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14702067

Change-Id: I57167387b474b426944e9e6b46f2f116048d4fd3
2021-05-25 14:35:08 +00:00
TreeHugger Robot
6b45572a0a [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev am: 2baf80f3a1 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Idf2ef14fc1a1d943da556b10e81a8de5213b24a1
2021-05-25 14:34:23 +00:00
TreeHugger Robot
bdd98ec216 Merge "Update fonts & colors" into sc-dev 2021-05-25 14:34:16 +00:00
TreeHugger Robot
64d9cc56c6 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-05-25 14:30:07 +00:00
TreeHugger Robot
2baf80f3a1 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-05-25 14:22:36 +00:00
Yanting Yang
f29709bba2 Merge "Remove silky flag from Notifications for official release" into sc-dev am: ed671ebe6c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14716192

Change-Id: Ic023fd37c52da6aa03d3cee2b54be1ebdb09c668
2021-05-25 14:01:34 +00:00
Jernej Virag
be83067221 Merge "Add a setting to enable or disable corner invocation of assistant app" into sc-dev am: 1baf9a867e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14502326

Change-Id: I8bf9157ff9d91c7927b082e20a87155db3a6210f
2021-05-25 14:01:29 +00:00
Yanting Yang
ed671ebe6c Merge "Remove silky flag from Notifications for official release" into sc-dev 2021-05-25 13:53:26 +00:00
Yanting Yang
5c60d3905e Remove silky flag from App info for official release
Remove the silky condition and clean up redundant files.

Bug: 183670633
Test: robotests & visual with turning on/off silky home
Change-Id: I6b159c348dd3266a8515d58b3c5f508375ac4301
2021-05-25 21:29:50 +08:00
Jernej Virag
1baf9a867e Merge "Add a setting to enable or disable corner invocation of assistant app" into sc-dev 2021-05-25 13:16:41 +00:00
TreeHugger Robot
64d72cff3c Merge "Suppress shared axis transition on Brightness level" into sc-dev am: b2a97fb735
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14682964

Change-Id: Ifd6183202293403375e1ef9748dcd24576d86303
2021-05-25 13:03:15 +00:00
Yanting Yang
f6c664d94e Merge "Remove Advanced section" into sc-dev am: 5dede180cd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14716191

Change-Id: I2e835e81022e0a286aa92ad6396fe132d71aa408
2021-05-25 12:57:50 +00:00
TreeHugger Robot
2256d1f212 Merge "Support different types of transitions." into sc-dev am: 332ee0f374
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14682961

Change-Id: I41610dba5c7b075be33c2befdf6655eadb4750df
2021-05-25 12:57:30 +00:00
TreeHugger Robot
b2a97fb735 Merge "Suppress shared axis transition on Brightness level" into sc-dev 2021-05-25 12:55:16 +00:00
Yanting Yang
5dede180cd Merge "Remove Advanced section" into sc-dev 2021-05-25 12:24:00 +00:00
TreeHugger Robot
332ee0f374 Merge "Support different types of transitions." into sc-dev 2021-05-25 11:49:59 +00:00
Jan Tomljanovic
f91a22cafd Merge "Avoid cold start of the security hub app." into sc-dev am: d747c8db1d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14683790

Change-Id: I8227c5b41a1a5d02ab26be2470280c592b4aee04
2021-05-25 11:49:23 +00:00
Yanting Yang
fe174516a9 Remove silky flag from Notifications for official release
Remove the silky condition and clean up redundant files.

Bug: 183670633
Test: robotests & visual with turning on/off silky home
Change-Id: Ie183b5fd935b3f4e42b12795c00dba67dcd540b6
2021-05-25 19:38:46 +08:00
Yanting Yang
b0d0569ae1 Remove Advanced section
Based on the UX design to remove the Advanced category.

- Security
- Privacy
- Location
- Internet > Network details
- App info > Notifications
- Developer options > Wireless debugging > gear icon

Fixes: 182237530
Test: robotests & visual
Change-Id: I8d060e536607f446537c55f805e50fed4f65abf6
2021-05-25 19:13:40 +08:00
Jason Chiu
5f0fc1ff91 Add icon declaration in metadata for injected activities
Settings injection no longer supports auto-load the component icon when
metadata doesn't contain icon and icon_uri.

Copy the icon resource from the activity to metadata.

Bug: 186801104
Test: visual
Change-Id: I3a90bbb5e27eb0f4491d57b1412b14a326fca0a7
2021-05-25 11:08:59 +00:00
Yi-Ling Chuang
eed791e238 Suppress shared axis transition on Brightness level
The brightness bar is a dialog activity. If the shared axis transition
is applied, we'll see an empty page appears with a seek bar on the top,
which is not ideal. Hence, suppress the transition to keep the original
behaviour.

Fixes: 189076430
Test: robotest and test on the brightness level
Change-Id: I1572c31f09d8c6bb3b2c906f6211ed9b97024439
2021-05-25 19:05:42 +08:00
Yi-Ling Chuang
250858e4be Apply setup wizard's transition on a11y pages
- Start a11y activities with transition type.
- Only play fade out transition on these activities with transition type.

Fixes: 174540259
Test: rebuild and launch pages from Vision Settings
Change-Id: I7e8e0ee8cdb7a3f99cfc9a6e2d1623e2970511b7
2021-05-25 18:52:03 +08:00
Mill Chen
bf62e70ee6 Apply sliding transition for lock screen
The flow of changing lock screen is combined with Settings and SUW pages
together where their implementation are different, which causes the
page-to-page transition inconsistent. Sub-setting pages will apply
shared axis transition while SUW pages will keep the slide in/out
transition. In order to make these 2 types of page work together, we
intent to use slide in/out transition in the lock screen.

Fix: 174434707
Test: visual verified
Change-Id: I827211e45bcbfdfc558c9d95e6814e62b339b4aa
2021-05-25 17:55:09 +08:00
Jan Tomljanovic
d747c8db1d Merge "Avoid cold start of the security hub app." into sc-dev 2021-05-25 09:46:18 +00:00
TreeHugger Robot
276b01e34d Merge "Update string" into sc-dev am: a1b8f78af1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14682960

Change-Id: I69f0a453decbb01e619a7ee2b524e5f4a29a2d37
2021-05-25 08:33:11 +00:00
Yanting Yang
fa194472cb Merge "Remove silky flag from Sound for official release" into sc-dev am: 77c09892f9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14702757

Change-Id: Idd40aa1ac7fec0fe598fdf81884a82c1824b9467
2021-05-25 08:33:05 +00:00
Pasty Chang
bf9c8923ba Merge "Migrate summary text in wifi QR scan page to DescriptionMixin" into sc-dev am: b15fd6233f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14682959

Change-Id: I5b4499917173f717b7ab38aa43adf6fc4bd7cc7f
2021-05-25 08:32:58 +00:00
Yanting Yang
f695d839b2 Merge "Update subtext for "Network & internet"" into sc-dev am: 259b678865
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14675090

Change-Id: I9583344eb392e1eb02936b295acaa7dea3f68c52
2021-05-25 08:32:53 +00:00
TreeHugger Robot
a1b8f78af1 Merge "Update string" into sc-dev 2021-05-25 08:21:56 +00:00
Yanting Yang
77c09892f9 Merge "Remove silky flag from Sound for official release" into sc-dev 2021-05-25 07:43:47 +00:00
Pasty Chang
b15fd6233f Merge "Migrate summary text in wifi QR scan page to DescriptionMixin" into sc-dev 2021-05-25 07:40:47 +00:00
Yanting Yang
259b678865 Merge "Update subtext for "Network & internet"" into sc-dev 2021-05-25 07:36:38 +00:00
Jernej Virag
089aed8bb8 Add a setting to enable or disable corner invocation of assistant app
This setting allows the user to disable the bottom corner swipe gesture when they have system navigation set to corner gestures.

Bug: 179673792
Test: Verified on a physical device
      Ran robolectric unit tests for gesture settings package
Change-Id: Ib4e818e884c36ddfafaf4e8c75d81e01a13a5831
2021-05-25 07:01:34 +00:00
Bill Yi
d6c25a733e Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I65d8f1f45f67a1fff18f8ef31c5f4b7abea20b37
2021-05-25 06:50:39 +00:00
SongFerng Wang
fa326f76e8 Merge "Add more log for NetworkProviderWorker" into sc-dev am: 3a55bed8a1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14702392

Change-Id: Ib3b47aa8db5e6f467ff73943f5b49313fd1e09eb
2021-05-25 06:42:37 +00:00
Bill Yi
a3ecbc278f Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I169f6bb1c92a143242e5c57712824e22794cd276
2021-05-25 06:41:50 +00:00
Bill Yi
b57f6bc1df Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ib5ebb974b502948bf0cde019f6794cc2a569fee1
2021-05-25 06:37:45 +00:00