Commit Graph

75101 Commits

Author SHA1 Message Date
timhypeng
1268629fda Fix java.lang.ArrayIndexOutOfBoundsException in RemoteVolumeGroupController
-Caused by removing and adding preference at the same time
-Make preference operation method synchronized
-Not to update preference by removing and adding. To check session status and update its content to preference
-Post to UI thread to handle the onDeviceListUpdate() callback from framework

Bug: 170049403
Test: make -j50 RunSettingsRoboTests
Change-Id: Ibfc11e1bd99ba2e578b5d9e7dcc9132e372b68dd
2020-10-08 07:43:46 +00:00
TreeHugger Robot
2489494cd3 Merge "Implement advanced device battery prediction" 2020-10-07 02:14:16 +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
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
1ae5e59c32 Merge "Move isMediaOutputDisabled() from Utils to LocalMediaManager" 2020-10-06 08:40:15 +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
4eb4e06ee4 Merge "Add the FLAG_IMMUTABLE flag for creating a PendingIntent" 2020-10-06 06:29:09 +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
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
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
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
4866b0ae7c Merge "Add test cases for legacy components." 2020-10-05 09:09:27 +00:00
TreeHugger Robot
f9a98626e1 Merge "Import translations. DO NOT MERGE ANYWHERE" 2020-10-05 06:04:37 +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
0659b1aa93 Merge "Reduce the flickering of injected items when package is changed" 2020-10-03 06:34:25 +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
a8bf11979b Merge "Update settings together with frameworks/base" 2020-10-01 01:24:02 +00:00
tom hsu
2fd7c9ffd1 [Settings] Refractor ApnSettings code to independent package folder.
Bug: 169750507
Test: make RunSettingsRoboTests
Change-Id: I8b2709ba8d16c625863d8a17abc3d0ab5d019bb8
2020-09-30 15:56:01 +00:00
TreeHugger Robot
e732daa386 Merge "Fix color lint errors" 2020-09-30 12:10:14 +00:00
Tsung-Mao Fang
6e4d250a8e Fix color lint errors
Fix: 169704254
Test: Upload cl successfully.
Change-Id: I3d2e6d64b6bf39010f4b4b48766d5f13dfca8c75
2020-09-30 16:09:05 +08:00
TreeHugger Robot
5709f7a083 Merge "Do nothing when choosing file transfer when in accessory mode" 2020-09-30 06:54:29 +00:00
Betty Chang
e8fa746299 Merge "[Testing] Use AndroidJUnit4 instead in CellDataPreferenceTest" 2020-09-30 06:12:31 +00:00
Hugh Chen
3251a04ba3 Do nothing when choosing file transfer when in accessory mode
- Before this CL, the device will be disconnected and reconnected
  to accessory mode when choosing "File transfer/Android Auto" in
  accessory mode. Because the USB menu didn't check state of
  function, it should do nothing when choosing
  "File transfer/Android Auto" in accessory mode.

  This CL add condition to check state of function, it will do
  nothing when choosing "File transfer/Android Auto" in
  accessory mode.

Bug: 162451162
Test: make -j42 RunSettingsRoboTests
Change-Id: I1749c6c43d2a192e4ce1bf1ae5343ff8deafbe48
2020-09-30 11:19:31 +08:00
Kevin Chyn
587bd62dff Update settings together with frameworks/base
Bug: 169459906
Test: Builds

Exempt-From-Owner-Approval: Name change

Change-Id: I453d743fe29c33776a784942863dcba19c67c26a
2020-09-29 18:19:16 -07:00
TreeHugger Robot
ab45ca09bc Merge "Add DNS warning message" 2020-09-29 15:34:20 +00:00
Weng Su
2059abd84b Add DNS warning message
When private DNS (DNS over TLS) is active,
that setting a DNS for a static IP configuration will have no effect.

Add DNS warning message as below screenshot.
https://screenshot.googleplex.com/8JHK328tX6HxrYZ

Bug: 157620236
Test: Manual verify by WiFi Settings UI
Change-Id: Ibed34ceda32670f481d84b85b431d855af478dc3
2020-09-29 14:14:25 +00:00
Treehugger Robot
a4dfd60335 [automerger skipped] Merge "[Testing] Use AndroidJUnit4 instead in TelephonyBasePreferenceControllerTest" am: 177533ddbb am: fc6cb188b5 am: be8b195fe1 am: 2f068a914e am: 159de41477 -s ours
am skip reason: Change-Id Iabe24aef0b7a5c3aa9d7be275f0c4ed552cdd2e8 with SHA-1 933e4df3c9 is in history

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

Change-Id: If913ad6394001e9c917ac80d8c391b441dc929cf
2020-09-29 06:29:36 +00:00
Treehugger Robot
159de41477 Merge "[Testing] Use AndroidJUnit4 instead in TelephonyBasePreferenceControllerTest" am: 177533ddbb am: fc6cb188b5 am: be8b195fe1 am: 2f068a914e
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1427809

Change-Id: Iafcefc2aa64cf3c50b1d139ec0204a315be29da7
2020-09-29 06:18:19 +00:00
Treehugger Robot
2f068a914e Merge "[Testing] Use AndroidJUnit4 instead in TelephonyBasePreferenceControllerTest" am: 177533ddbb am: fc6cb188b5 am: be8b195fe1
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1427809

Change-Id: I63d1925ed0bb4347098b926e27dcd4b8887421a4
2020-09-29 06:04:54 +00:00
Treehugger Robot
b1fcf50050 [automerger skipped] Merge "[Testing] Use AndroidJUnit4 instead in TelephonyBasePreferenceControllerTest" am: 93cec35cea am: b4093123de am: e13fa41a29 am: 722f9f4ea8 am: c0dbafc438 -s ours
am skip reason: Change-Id Iabe24aef0b7a5c3aa9d7be275f0c4ed552cdd2e8 with SHA-1 933e4df3c9 is in history

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

Change-Id: Ie2c1e7c09dc8263f2230d708767866a43de0fa24
2020-09-29 06:04:30 +00:00
Treehugger Robot
b2c1e02077 [automerger skipped] Merge "[Testing] use AndroidJUnit4 in new MobileDataPreferenceControllerTest" am: 27806fde5e am: e0890849cd am: 000159f6db am: 6513978872 am: 580963266b -s ours
am skip reason: Change-Id I1a2d7b38023681f3db3320aa9f315109280cfbd0 with SHA-1 ff6bc3ce27 is in history

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

Change-Id: Idd0fa5686c61c0e575bca33e2990a1486429bbde
2020-09-29 06:04:23 +00:00
Treehugger Robot
41f8651ff9 [automerger skipped] Merge "[Testing] use AndroidJUnit4 in new EuiccPreferenceControllerTest" am: 1cd8904fc5 am: 8c58bd4520 am: e570e80eb8 am: 24dc71f7e8 am: 4d513437aa -s ours
am skip reason: Change-Id I028ca81d38252beb3abccef9e938988510f3f55e with SHA-1 4126ec2d32 is in history

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

Change-Id: Iba258a6fb4ac6baf8f784c9f9a433bf1388bd1ee
2020-09-29 06:04:16 +00:00
Treehugger Robot
32a6bba2df [automerger skipped] Merge "[Testing] use AndroidJUnit4 in new MultiNetworkHeaderControllerTest" am: 3eeb8b44c2 am: 27978c5d47 am: 5f81bb9a07 am: bb98b793e5 am: 6ace0ecdde -s ours
am skip reason: Change-Id Ic66425aca4047d2eacd04509f3bfb315f6dd57fc with SHA-1 a1aaccf670 is in history

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

Change-Id: Iab38a1060b1fb43dc105da9a095d587b2a241fe5
2020-09-29 06:04:04 +00:00
Treehugger Robot
87daeb4f31 [automerger skipped] Merge "[Testing] Use AndroidJUnit4 instead in TelephonyTogglePreferenceControllerTest" am: 71c667322c am: 48c399c18a am: 7c9cc5621b am: 7f3bbcddf0 am: 7b7382fdf2 -s ours
am skip reason: Change-Id I3d6c39f45cb1efb1742148f20f03372214eb0cbe with SHA-1 d2e9e42f32 is in history

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

Change-Id: I23e5dbb3a2cceeeab6b1d1dd1a89bee6f8fce21f
2020-09-29 06:03:55 +00:00
Treehugger Robot
c0dbafc438 Merge "[Testing] Use AndroidJUnit4 instead in TelephonyBasePreferenceControllerTest" am: 93cec35cea am: b4093123de am: e13fa41a29 am: 722f9f4ea8
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1426565

Change-Id: I3f2fb62790ba30914d1b7a5555809954066e0455
2020-09-29 05:29:52 +00:00