Commit Graph

77358 Commits

Author SHA1 Message Date
TreeHugger Robot
cfa667bb95 Merge "Preliminary classification for homepage IA grouping" am: 351821e688
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12771755

Change-Id: I33d1e46bd4d9a5e39056a906ab1fffbf9390531d
2020-10-07 11:52:53 +00:00
TreeHugger Robot
351821e688 Merge "Preliminary classification for homepage IA grouping" 2020-10-07 11:40:13 +00:00
TreeHugger Robot
59c9d42963 Merge "Implement advanced device battery prediction" am: 2489494cd3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12555477

Change-Id: Ia51f957c068f8009ad0a795b35228896edc03ed3
2020-10-07 07:46:34 +00:00
TreeHugger Robot
2489494cd3 Merge "Implement advanced device battery prediction" 2020-10-07 02:14:16 +00:00
Andras Kloczl
156b44339a Add user name photo dialog to user creation in SysUI am: 2ac45dd49e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12352922

Change-Id: I016c7a74d4f1b04b904e52ca87879a354bad93d9
2020-10-06 23:25:11 +00:00
Andras Kloczl
2ac45dd49e Add user name photo dialog to user creation in SysUI
- Move user creation dialog related resources to SettingsLib
- Change dialog showing logic in UserSettings because
   EditUserInfoController contracts have changed.
- Show UserCreatingDialog when user is being created
- Fix crash when phone is rotated during user creation

Test: manual test
Doc: http://shortn/_cJE9o6pBZR
Screenrecord: http://shortn/_Jy5Q0lTAUL
Bug: 147653252
Change-Id: I15e15ad88b768a5b679de32c5429d921d850a3cb
2020-10-06 20:43:52 +01:00
Yanting Yang
4dd4567bfc Preliminary classification for homepage IA grouping
Bug: 168166015
Test: robotest & visual
Change-Id: If02639d8a5b8886e036b30c5c654c27db5837b62
2020-10-06 20:40:53 +08:00
Alexander Dorokhine
7d952e6ad1 [automerger skipped] Merge "Migrate away from deprecated Truth APIs." am: c5a500bf07 am: 1b69ab26e9 am: 94fa8e0921 am: 01236ed32f -s ours am: 0488650aa0 -s ours
am skip reason: Change-Id I76f9c37cb699ce6ab8715ffe35d11668ccbceea1 with SHA-1 46e85a2fad is in history

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

Change-Id: I8c5e459eadfefe9deaceba3f3af9357d1dcbfe33
2020-10-06 12:36:07 +00:00
Alexander Dorokhine
0488650aa0 [automerger skipped] Merge "Migrate away from deprecated Truth APIs." am: c5a500bf07 am: 1b69ab26e9 am: 94fa8e0921 am: 01236ed32f -s ours
am skip reason: Change-Id I76f9c37cb699ce6ab8715ffe35d11668ccbceea1 with SHA-1 46e85a2fad is in history

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

Change-Id: Ia3f030f48315b88be8606576f563ee39707df8f8
2020-10-06 11:47:10 +00:00
Alexander Dorokhine
01236ed32f Merge "Migrate away from deprecated Truth APIs." am: c5a500bf07 am: 1b69ab26e9 am: 94fa8e0921
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1449661

Change-Id: I82dd6eb5510fd7e35bd2c0473725dc24780ce219
2020-10-06 11:17:56 +00:00
Alexander Dorokhine
94fa8e0921 Merge "Migrate away from deprecated Truth APIs." am: c5a500bf07 am: 1b69ab26e9
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1449661

Change-Id: I86b367dd8c072aeb8de4a610e7cf6c19fc5c8287
2020-10-06 11:05:22 +00:00
Alexander Dorokhine
1b69ab26e9 Merge "Migrate away from deprecated Truth APIs." am: c5a500bf07
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1449661

Change-Id: Ifd04dfaf4e806be9ed084a7241ac1fba781511e1
2020-10-06 10:19:41 +00:00
Alexander Dorokhine
c5a500bf07 Merge "Migrate away from deprecated Truth APIs." 2020-10-06 09:46:44 +00:00
Hugh Chen
fa75a469da Implement advanced device battery prediction
This CL implements prediction of advanced device to
let users know what time their advanced device will
be out of battery.

Bug: 153706138
Test: make -j42 SettingsGoogle
Change-Id: Iadf2f1fa425ff5f0fa1abed681d82d13c392db62
2020-10-06 17:38:08 +08:00
TreeHugger Robot
f46426dbe5 Merge "Move isMediaOutputDisabled() from Utils to LocalMediaManager" am: 1ae5e59c32
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12686596

Change-Id: I376a32dc009c56f0cf97aae5b79f832838755c17
2020-10-06 09:00:31 +00:00
TreeHugger Robot
1ae5e59c32 Merge "Move isMediaOutputDisabled() from Utils to LocalMediaManager" 2020-10-06 08:40:15 +00:00
Alexander Dorokhine
063ebd24cd Merge "Migrate away from deprecated Truth APIs." am: 7aadf2da70
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12641063

Change-Id: I66482548777336464930eb90711bef3c0f96e937
2020-10-06 07:26:51 +00:00
Alexander Dorokhine
6decca7890 Migrate away from deprecated Truth APIs.
This is a transitional step towards truth 1.0.1, where these APIs have
been completely removed.

Bug: 168765701
Test: m checkbuild
Merged-In: I76f9c37cb699ce6ab8715ffe35d11668ccbceea1
Change-Id: I76f9c37cb699ce6ab8715ffe35d11668ccbceea1
(cherry picked from commit 46e85a2fad)
2020-10-06 00:25:04 -07:00
Alexander Dorokhine
7aadf2da70 Merge "Migrate away from deprecated Truth APIs." 2020-10-06 07:06:00 +00:00
TreeHugger Robot
ea13379c95 Merge "Add the FLAG_IMMUTABLE flag for creating a PendingIntent" am: 4eb4e06ee4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12763543

Change-Id: I5110af2d37569bcbdd3f8fbd4c4023edf32c2e07
2020-10-06 06:47:01 +00:00
TreeHugger Robot
4eb4e06ee4 Merge "Add the FLAG_IMMUTABLE flag for creating a PendingIntent" 2020-10-06 06:29:09 +00:00
Tom Hsu
dbf8593720 Merge "[Settings] Refractor ApnSettings code to independent package folder." am: 272c21911d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12735636

Change-Id: Ie8b5c843be3bc86b540f923562a6afdfe7bf64d8
2020-10-06 04:01:34 +00:00
Sunny Shao
334968c113 Add the FLAG_IMMUTABLE flag for creating a PendingIntent
- Android S+ to specify explicitly either FLAG_MUTABLE or FLAG_IMMUTABLE
  when creating a PendingIntent.

Fixes: 170162598
Fixes: 170162878
Fixes: 170163592
Fixes: 170164316
Fixes: 170164458
Fixes: 170164327
Fixes: 169794524
Fixes: 170165106
Test: build pass and manual test add an account
Change-Id: I0f7b117273647dbe9e146033b8995c8c6f147576
2020-10-06 11:46:08 +08:00
Tom Hsu
272c21911d Merge "[Settings] Refractor ApnSettings code to independent package folder." 2020-10-06 03:30:10 +00:00
TreeHugger Robot
101fc1385c [automerger skipped] Merge "Hide tethering option when in a guest account" into rvc-qpr-dev am: ab41be5607 am: fafe12056c -s ours am: 3dd26e0e1d -s ours
am skip reason: Change-Id I7523b3f3c3a1372bb128a58a6a7fac973d27cfbe with SHA-1 bde627b263 is in history

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

Change-Id: I9cf2932c14db169cee734979615b6cadaf4e5025
2020-10-06 03:10:37 +00:00
TreeHugger Robot
3dd26e0e1d [automerger skipped] Merge "Hide tethering option when in a guest account" into rvc-qpr-dev am: ab41be5607 am: fafe12056c -s ours
am skip reason: Change-Id I7523b3f3c3a1372bb128a58a6a7fac973d27cfbe with SHA-1 bde627b263 is in history

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

Change-Id: If3c035698d73a278c02cb6b04b6337231a443ce7
2020-10-06 02:40:43 +00:00
TreeHugger Robot
fafe12056c Merge "Hide tethering option when in a guest account" into rvc-qpr-dev am: ab41be5607
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12723406

Change-Id: I4caa8937deae9bc104c9c6c3446b7f793cac1f80
2020-10-06 02:25:09 +00:00
TreeHugger Robot
ab41be5607 Merge "Hide tethering option when in a guest account" into rvc-qpr-dev 2020-10-06 02:06:23 +00:00
TreeHugger Robot
e1c5ba306f Merge "Added null check to fingerprint fragment" am: c84ea433b9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12765066

Change-Id: I2d4c8de60d3ff3df92e0c7a426bcd6b8dfafc612
2020-10-06 00:57:59 +00:00
TreeHugger Robot
c84ea433b9 Merge "Added null check to fingerprint fragment" 2020-10-06 00:23:42 +00:00
joshmccloskey
97a6da46a7 Added null check to fingerprint fragment
Test: It builds.
Fixes: 167619037
Change-Id: I76fdfd9f4be412b5f47fb05a772f7973fe6676da
2020-10-05 14:38:01 -07:00
Martijn Coenen
e3dd02f56b Revert "Kill uid when REQUEST_INSTALL_PACKAGES is denied" am: 98c7ad9953
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12763277

Change-Id: Ibd32c512c3221c562a87f2e11d5303a8ae279c73
2020-10-05 13:45:09 +00:00
Martijn Coenen
98c7ad9953 Revert "Kill uid when REQUEST_INSTALL_PACKAGES is denied"
This reverts commit 732edc3e39.
The kill is already done by StorageManagerService these days.

Bug: 133504844
Test: flip toggle, verify app is still killed.
Change-Id: I1de15108e1e214478c2b67701e95208f280195b6
2020-10-05 14:15:31 +02:00
PETER LIANG
41716103c3 Merge "Add test cases for legacy components." am: 4866b0ae7c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12715932

Change-Id: I91ff26604c91d40df40d3788c8fe0f8fbc5bf523
2020-10-05 09:32:40 +00:00
PETER LIANG
4866b0ae7c Merge "Add test cases for legacy components." 2020-10-05 09:09:27 +00:00
TreeHugger Robot
7049895fcc [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" am: f9a98626e1 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I373f981b774453bb1578c4896b2aae7ac05bf7ef
2020-10-05 06:34:32 +00:00
TreeHugger Robot
f9a98626e1 Merge "Import translations. DO NOT MERGE ANYWHERE" 2020-10-05 06:04:37 +00:00
Bill Yi
a47ca788f7 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 7ea96cf6db -s ours am: 45eb63a024 -s ours am: 4aef626285 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I71bc9c38168256d2aea7a1885517ea3ce2f441d5
2020-10-05 05:58:19 +00:00
Bill Yi
4aef626285 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 7ea96cf6db -s ours am: 45eb63a024 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ica0300d52307bfe9d0a5b99e5979cc210019f0bb
2020-10-05 05:43:52 +00:00
Bill Yi
45eb63a024 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 7ea96cf6db -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ie0a71db474d15bf39badbe81c177db78f2e4cb7b
2020-10-05 05:14:57 +00:00
Peter_Liang
7f0919aebe Add test cases for legacy components.
Bug: 168567356
Test: make RunSettingsRoboTests ROBOTEST_FILTER=ColorPreferenceTest
&& make RunSettingsRoboTests ROBOTEST_FILTER=EdgeTypePreferenceTest

Change-Id: I7ffc0561c6124050fe8c37007e547facdf8ab278
2020-10-05 10:22:37 +08:00
Bill Yi
48752e8b80 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I60b8225971e37129f28f91b3c849770aac8c024a
2020-10-04 23:06:29 +00:00
Bill Yi
7ea96cf6db Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I8bcf35d1b5eae3e56f485fa78ade8eea9ecb2deb
2020-10-04 21:51:40 +00:00
TreeHugger Robot
1c4bc0b9e5 Merge "Reduce the flickering of injected items when package is changed" am: 0659b1aa93
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12723423

Change-Id: I6d9f10b5294451ab58a9582c7657031190a5ada4
2020-10-03 07:10:19 +00:00
TreeHugger Robot
0659b1aa93 Merge "Reduce the flickering of injected items when package is changed" 2020-10-03 06:34:25 +00:00
Bill Yi
a68b314c81 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: bc9094cc6a -s ours
am skip reason: subject contains skip directive

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

Change-Id: I3d1942222740c881cd0e54f50e5a681b640c42d6
2020-10-03 05:01:09 +00:00
Bill Yi
bc9094cc6a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I9fa937aa93fc8318564d8a5a2b2c18280a747548
2020-10-02 17:52:18 -07:00
Jason Chiu
20df25e6b9 Reduce the flickering of injected items when package is changed
Root cause:
Settings listens to four package-related broadcasts in order to refresh
injected items because UI data may change. However, when the system is
updating apps on the first boot, it triggers a burst of broadcasts. For
each broadcast Settings will reload and then redraw all injected items,
which leads to the flickering.

Solution:
1. When Settings recieves a broadcast, check if there are already two
reloading tasks to avoid redundant updates.
2. In the reloading task, check if any injected item is changed, added,
or removed to notify categories changed.
3. Only refresh the UI when any of the changed items belongs to the
current page.

Bug: 166785977
Bug: 168309941
Test: manual, robotest
Change-Id: I77745b60f84510554bff1870a5bb7a8013eab528
2020-10-02 17:13:16 +08:00
Kevin Chyn
789f29d7af Merge "Update settings together with frameworks/base" am: a8bf11979b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12722836

Change-Id: I4468b3539dfd08497e9b6f9251d16c265b805f37
2020-10-01 01:41:52 +00:00
Kevin Chyn
a8bf11979b Merge "Update settings together with frameworks/base" 2020-10-01 01:24:02 +00:00