Commit Graph

62061 Commits

Author SHA1 Message Date
Bonian Chen
d389bc1cb4 Merge "[Settings] Avoid from crash" into rvc-dev am: 7ff5f56ea6 am: 004301ca4e
Change-Id: I7a6eecd90b63f1a7ec4030fae2f8d52f95975403
2020-05-05 03:51:17 +00:00
Bonian Chen
d5c09fbced Merge "[Settings] Adopt TelephonyBasePreferenceController" into rvc-dev am: fb015a3c24 am: 551f515e6d
Change-Id: Ibe3efd7833ea504fa4032d832e8355467c2973bd
2020-05-05 03:51:10 +00:00
SongFerng Wang
c2c4a49752 Merge "Remove the second network scan." into rvc-dev am: 28754bf6a8
Change-Id: I05b12d26ba3015a24e97080bb98f1be416ae60fb
2020-05-05 03:33:06 +00:00
Bonian Chen
004301ca4e Merge "[Settings] Avoid from crash" into rvc-dev am: 7ff5f56ea6
Change-Id: I19f2b0afbc408df1ae548c50bbbadd35de399c1b
2020-05-05 03:32:59 +00:00
Bonian Chen
551f515e6d Merge "[Settings] Adopt TelephonyBasePreferenceController" into rvc-dev am: fb015a3c24
Change-Id: I2875046cb301f1862e458e9e0ed806629b5aabc2
2020-05-05 03:32:51 +00:00
hughchen
47994dea19 Add log for debug
This CL use flag to decide which log should be show on.
This flag can be dynamic turn on when use below command:
adb shell setprop log.tag."your tag" VERBOSE

Bug: 155121301
Test: manually test
Change-Id: I0f3a28c11f6bd055efc84feb41d646b6c033f5b7
2020-05-05 11:26:28 +08:00
SongFerng Wang
28754bf6a8 Merge "Remove the second network scan." into rvc-dev 2020-05-05 03:20:53 +00:00
Bonian Chen
7ff5f56ea6 Merge "[Settings] Avoid from crash" into rvc-dev 2020-05-05 03:17:50 +00:00
Bonian Chen
fb015a3c24 Merge "[Settings] Adopt TelephonyBasePreferenceController" into rvc-dev 2020-05-05 03:17:18 +00:00
Tim Peng
40111a5988 Update "Play <APP> to" to "Play <APP> on"
-design changes

Bug: 155345595
Test: build pass
Change-Id: I860673d22c57477bd2505360f0034731b28c7208
2020-05-05 11:01:03 +08:00
Arc Wang
0d01ba5a0e Merge "[Wi-Fi] Modify NetworkRequestDialog title & summary" into rvc-dev am: 032f77052b am: 955ff8831c
Change-Id: Ic47da691b686c5630f58f706c3c091b10ebadc72
2020-05-05 01:33:04 +00:00
Arc Wang
955ff8831c Merge "[Wi-Fi] Modify NetworkRequestDialog title & summary" into rvc-dev am: 032f77052b
Change-Id: I1e21a4fd28115e9fe3780e34cb878ad9936b0f6b
2020-05-05 01:21:34 +00:00
Arc Wang
032f77052b Merge "[Wi-Fi] Modify NetworkRequestDialog title & summary" into rvc-dev 2020-05-05 01:02:05 +00:00
Julia Reynolds
03e5b44cca Update some notification strings am: 9bb55e1084 am: 5e1fc5ecf5
Change-Id: I159231f0b5b7abc73b51126790311b49cd63e8c6
2020-05-04 19:45:32 +00:00
Julia Reynolds
5e1fc5ecf5 Update some notification strings am: 9bb55e1084
Change-Id: I7448f2bc4f2a0185a1d033e36b8f8c47a511d261
2020-05-04 19:26:59 +00:00
Marco Ballesio
cb96685c8f Developer option for the app freezer
The app freezer allows the system to suspend execution for cached apps.
Without it an app can receive CPU time even if cached, so this option
will allow developers to test their code when frozen while their apps
are cached.

The new developer option will present a list of alternatives for the
freezer operating mode:

"device default": use device/system settings to determine whether the
                  freezer is to be enabled or not. This is the current
                  behavior, and default value for the option.
"enabled": force freezer on
"disabled": force freezer off

A dialog prompting the user to reboot is presented upon freezer mode
change. The device is automatically rebooted if the user decides to
proceed.

Bug: 155465196
Change-Id: I857b77cc4fc1ad766e8d5825ada9b271d3e1ab3a
Test: manually verifued the option works as intendend when this patch is
applied with its companion CLs

Change-Id: I26450b7b7ea2b345fd3661d4869fbc74ae38c0c9
2020-05-04 11:29:10 -07:00
SongFerngWang
b7f98f7667 Remove the second network scan.
Fix: 153427564
Test: make RunSettingsRoboTests ROBOTEST_FILTER=NetworkSelectSettingsTest
(PASS)

Change-Id: If593fc4a4dd463bbc178b4864ad0ba01bb421b09
2020-05-04 22:31:15 +08:00
Julia Reynolds
9bb55e1084 Update some notification strings
Test: manual
Fixes: 155516603
Fixes: 155516894
Change-Id: I86058ebdb473890239236d30414cb05787832311
2020-05-04 10:25:57 -04:00
TreeHugger Robot
af0aff058f Merge "Fix broken test cases" into rvc-dev am: 15254e3b5e am: 13f57006fd
Change-Id: I566a9b0a1e2d5ec2128d1d0f479038c89cb3cf89
2020-05-04 11:40:47 +00:00
TreeHugger Robot
13f57006fd Merge "Fix broken test cases" into rvc-dev am: 15254e3b5e
Change-Id: I721b166d60d025986a67653bfadbb1acde849eae
2020-05-04 11:25:43 +00:00
Bonian Chen
b4c2f8c4d9 Merge "[Settings] Code refactor" into rvc-dev am: 1ab100e936 am: 91f2c3d931
Change-Id: Iae1885bb9d97d63ebf14be96443b59c0f1b424f5
2020-05-04 11:15:41 +00:00
Bonian Chen
10c825bc4d Merge "[Settings] Enable access from non-UI thread" into rvc-dev am: 068eb89251 am: 3ce8cab000
Change-Id: I77e316844b1e57439a9f835d3e640b534eda0a20
2020-05-04 11:15:17 +00:00
TreeHugger Robot
15254e3b5e Merge "Fix broken test cases" into rvc-dev 2020-05-04 11:12:50 +00:00
Bonian Chen
91f2c3d931 Merge "[Settings] Code refactor" into rvc-dev am: 1ab100e936
Change-Id: Ib84d0d5f03553c4bec81cf9c9325410da60b7460
2020-05-04 10:57:34 +00:00
Bonian Chen
3ce8cab000 Merge "[Settings] Enable access from non-UI thread" into rvc-dev am: 068eb89251
Change-Id: Ia130cfc79ddeb92c25256aea7b84420ff29b9132
2020-05-04 10:57:26 +00:00
Bonian Chen
1ab100e936 Merge "[Settings] Code refactor" into rvc-dev 2020-05-04 10:41:47 +00:00
Bonian Chen
068eb89251 Merge "[Settings] Enable access from non-UI thread" into rvc-dev 2020-05-04 10:41:16 +00:00
Tsung-Mao Fang
17b882a94d Fix broken test cases
Since we added a new API in ag/11355641,
we need to shadow this new new API.

Fix: 130916962
Test: run robo test
Change-Id: I2176253aae915d1a31043ebbf197d4dd1b1f2072
2020-05-04 17:22:01 +08:00
Bonian Chen
7661f3a090 Merge "[Settings] Code refactor for availability session" into rvc-dev am: 07431066c4 am: d6fd13ecc0
Change-Id: I6ac00a8f21ea8c6e61d5f8df2050e3c41ae66d0b
2020-05-04 09:15:03 +00:00
tim peng
22df412ef1 Merge "Modify rule of remote media session UI" into rvc-dev am: 1424b594c9 am: 8e81088c03
Change-Id: I1e8b934560c641d50434fddf129e482efd680866
2020-05-04 09:14:44 +00:00
Bonian Chen
cd3cb6120c [Settings] Crash avoidance am: 017cc4e48f am: 0f35750434
Change-Id: I5eb51ca530df14dcbc8e112dc221de783f336854
2020-05-04 09:14:37 +00:00
Bonian Chen
d6fd13ecc0 Merge "[Settings] Code refactor for availability session" into rvc-dev am: 07431066c4
Change-Id: I6cd5d25fd4b59b440605f0609d923109ab8db89a
2020-05-04 09:02:47 +00:00
tim peng
8e81088c03 Merge "Modify rule of remote media session UI" into rvc-dev am: 1424b594c9
Change-Id: I74eedc4056be20f794ad37962cc3ad2f7a1351fc
2020-05-04 09:02:38 +00:00
Bonian Chen
0f35750434 [Settings] Crash avoidance am: 017cc4e48f
Change-Id: Icc577b07a30bf31f5f745ebe4af2e526efb9ae6b
2020-05-04 09:02:12 +00:00
Bonian Chen
07431066c4 Merge "[Settings] Code refactor for availability session" into rvc-dev 2020-05-04 08:49:21 +00:00
tim peng
1424b594c9 Merge "Modify rule of remote media session UI" into rvc-dev 2020-05-04 08:47:41 +00:00
Bonian Chen
7ea8e7ef1e [Settings] Code refactor for availability session
Code refactor for session design of availability status config.

Bug: 141833767
Test: manual
Change-Id: Ia4982bc4036abbcff5ee1a4bba69bdf6f70ad657
2020-05-04 14:35:23 +08:00
Bonian Chen
017cc4e48f [Settings] Crash avoidance
Avoid crash when NullPointer.

Bug: 155248992
Test: manual
Change-Id: I5e4b46dcdf7ff21713b3f77fc9e20f503800b8e2
2020-05-04 14:11:09 +08:00
Tim Peng
e9b91f08c4 Modify rule of remote media session UI
-Add preference by remote session in Sound Setting
-Add slice item by remote session in Volume panel
-Replace media device data with media session data
-Add test case

Bug: 154918214
Test: make -j50 RunSettingsRoboTests
Change-Id: Ib1c873c9f99eebcba377f4115c4b9b4297b20c3d
2020-05-04 12:21:20 +08:00
Lucas Dupin
e1bcfeed31 Merge "Create QS media player setting" into rvc-dev am: 7dc7252c15 am: c716801a8d
Change-Id: Ic2c9038ed28a38bdbb18144358f40eb37d5b236b
2020-05-04 04:18:43 +00:00
Lucas Dupin
c716801a8d Merge "Create QS media player setting" into rvc-dev am: 7dc7252c15
Change-Id: I5d785681b2833ecbf6ae43234e5a09315a2a4232
2020-05-04 04:07:54 +00:00
Lucas Dupin
7dc7252c15 Merge "Create QS media player setting" into rvc-dev 2020-05-04 03:59:28 +00:00
Bonian Chen
3d62032fed [Settings] Query historical data in background
Move the query of historical data into background thread to avoid from
blocking other query operation in UI thread,

Bug: 141833767
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=DataUsageSummaryPreferenceControllerTest
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=DataUsagePreferenceControllerTest
Change-Id: I61e414d70136a0025ddd7373a4f34a99acb89510
2020-05-04 11:57:44 +08:00
Bonian Chen
d231727e3b [Settings] Code refactor
Move some work out of constructor of
EnabledNetworkModePreferenceController.
Which could avoid callbacks before init() been invoked.

Bug: 141833767
Test: make RunSettingsRoboTests -j
ROBOTEST_FILTER=Enhanced4gBasePreferenceControllerTest
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=EnabledNetworkModePreferenceControllerTest
Change-Id: I11f25d130a746c75184a21a8991177b02ad237f0

Change-Id: I6aa58a8d9d15b1524bf03f425e3eae3a0254593e
2020-05-04 11:48:09 +08:00
Bonian Chen
2a7767ee26 [Settings] Adopt TelephonyBasePreferenceController
Adopt TelephonyBasePreferenceController for better support on multi-SIM
environment.

Bug: 143996139
Test: make RunSettingsRoboTests -j
ROBOTEST_FILTER=DefaultSubscriptionControllerTest
Test: make RunSettingsRoboTests -j
ROBOTEST_FILTER=DisableSimFooterPreferenceControllerTest

Change-Id: I8a9c6efa927be1cb4a7ab4ebe816dcad9f20bd70
2020-05-04 11:23:11 +08:00
Bonian Chen
19507e7585 [Settings] Enable access from non-UI thread
To support query from settings intelligent, these listeners need to
support accessing from non-UI thread.

Bug: 149543756
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=ActiveSubsciptionsListenerTest
Change-Id: I768f41f76d0223634be2b728d33fa0cfcc69fe69
2020-05-04 11:07:41 +08:00
Bonian Chen
a9de4477e6 [Settings] Avoid from crash
Avoid from crash when updateState() performed before
displayPreference().

Bug: 141833767
Test: make RunSettingsRoboTests -j
ROBOTEST_FILTER=ApnPreferenceControllerTest

Change-Id: I4008010077c61930487fef01af306ccdfd69e38f
2020-05-04 10:59:58 +08:00
Sunny Shao
6d60248053 Enable some settings pages to use paralleled-loading method
- Here these pages include AppInfoDashboardFragment, ConnectedDeviceDashboardFragment,
  DevelopmentSettingsDashboardFragment, NetworkDashboardFragment, ConfigureNotificationSettings.
- The TimeSpentInAppPreferenceController use the LiveDataController.

Fixes: 135299529
Bug: 137558156
Test: compilation
Change-Id: I455a16536c9966184f1b2bd81d1f1217f3e09f9d
2020-05-04 10:34:23 +08:00
TreeHugger Robot
b2ff994477 [automerger skipped] Merge "Import translations. DO NOT MERGE" into rvc-d1-dev am: 1608a623b7 -s ours
am skip reason: subject contains skip directive

Change-Id: I4f235712e92d9d82c2ae8a57fb593149a4caf8a7
2020-05-03 09:16:12 +00:00
TreeHugger Robot
1608a623b7 Merge "Import translations. DO NOT MERGE" into rvc-d1-dev 2020-05-03 09:00:38 +00:00