Commit Graph

56792 Commits

Author SHA1 Message Date
Bonian Chen
0adbf36657 Merge "[Setting] MobileNetwork UI performance" 2019-11-04 14:18:50 +00:00
Bonian Chen
7dcfb7baf0 [Setting] MobileNetwork UI performance
1. Create a singleton to reduce number of SubscriptionManager accessing
2. Listening to Airplane mode change to clear cache value

Bug: 141833767
Test: Manual
make RunSettingsRoboTests -j ROBOTEST_FILTER=MobileNetworkActivityTest
make RunSettingsRoboTests -j ROBOTEST_FILTER=GlobalSettingsChangeListenerTest

Change-Id: Icd76fd9bcef7a7822400bfe42b0d40f5bd920eed
2019-11-04 12:37:31 +00:00
TreeHugger Robot
4d8e980637 Merge "Fix the crashed problem at the AccountSyncSettings" 2019-11-04 12:09:30 +00:00
TreeHugger Robot
79dda90792 Merge "Fix Weird floating "add language" item" 2019-11-04 10:41:40 +00:00
Raff Tsai
29c15273b5 Fix Weird floating "add language" item
- Base theme has android:clipToPadding=false attribute. It let user
UI draw under navigation bar but also cause this problem. Add
android:clipToPadding=true in layout to fix the problem.

Fixes: 142108980
Test: manual
Change-Id: Ibe60b348a3c7c01d9786612ceac23a47a78a208a
2019-11-04 17:34:02 +08:00
Bonian Chen
5fe90a3f5a Merge "[Settings] MobileNetworkActivity Refactor" 2019-11-04 09:20:43 +00:00
Stanley Wang
42f69520c0 Merge "Add query dynamic indexable data to SettingsSearchIndexablesProvider" 2019-11-04 08:01:05 +00:00
Bonian Chen
f1b43a970c [Settings] MobileNetworkActivity Refactor
Split MobileNetworkActivity into 2 files.
Enable testing through ActivityScenario

Bug: 141833767
Test: manual
make RunSettingsRoboTests -j ROBOTEST_FILTER=MobileNetworkActivityTest
make RunSettingsRoboTests -j ROBOTEST_FILTER=ActiveSubsciptionsListenerTest

Change-Id: I9f0f80f5edda53196ce0795113506495e8980e99
2019-11-04 15:51:54 +08:00
TreeHugger Robot
e156734423 Merge "Import translations. DO NOT MERGE" 2019-11-03 03:12:32 +00:00
Bill Yi
9f953cce54 [automerger skipped] Import translations. DO NOT MERGE am: 9db5fcb2ff -s ours
am: a42528ed7a -s ours
am skip reason: subject contains skip directive

Change-Id: I3dd281d7513df197605ef85b08bc9ee7fe2b1bbe
2019-11-02 20:02:26 -07:00
Bill Yi
a42528ed7a [automerger skipped] Import translations. DO NOT MERGE
am: 9db5fcb2ff -s ours
am skip reason: subject contains skip directive

Change-Id: I4e714f19ed19ab025c231efe6a1db51b960f6d1f
2019-11-02 19:55:55 -07:00
Bill Yi
9db5fcb2ff Import translations. DO NOT MERGE
Change-Id: Ie3137ceba6f623d0a7aa1176166930b522dee60e
Auto-generated-cl: translation import
2019-11-02 17:25:40 -07:00
Bill Yi
56ddb7e146 Import translations. DO NOT MERGE
Change-Id: I8e693f54207ef25e479e2ddddb0abe2453b6205c
Auto-generated-cl: translation import
2019-11-02 16:57:54 -07:00
Bill Yi
9c302428e2 Import translations. DO NOT MERGE
Change-Id: Iba15b4f235a486dbc97d9c0fb143d45622c85794
Auto-generated-cl: translation import
2019-11-01 14:08:51 -07:00
Kevin Chyn
7bd69425ab Merge "Revert "Remove attention controller"" into qt-qpr1-dev am: 1876b8c6dd
am: ca51533d56

Change-Id: I7f1e7b3ddc83ce806d826bfd2ff40b89c44bc386
2019-11-01 10:14:32 -07:00
Kevin Chyn
68e9c89fd3 Revert "Update attention string" am: 44efb41d98
am: 3ba07e6fa5

Change-Id: I22040f4f595dc0f1a5d7355b3da13cd2d8f527c4
2019-11-01 10:14:28 -07:00
Kevin Chyn
ca51533d56 Merge "Revert "Remove attention controller"" into qt-qpr1-dev
am: 1876b8c6dd

Change-Id: I5282deec73015da2920c0b429e1e23c5f97d4fbe
2019-11-01 10:06:20 -07:00
Kevin Chyn
3ba07e6fa5 Revert "Update attention string"
am: 44efb41d98

Change-Id: I915a682b72a47256fa1b0e9ea8611fdbca8be89b
2019-11-01 10:06:15 -07:00
Kevin Chyn
1876b8c6dd Merge "Revert "Remove attention controller"" into qt-qpr1-dev 2019-11-01 17:01:32 +00:00
Stanley Wang
5bad457e91 Add query dynamic indexable data to SettingsSearchIndexablesProvider
- Add getDynamicSearchIndexableRawFromProvider method.
- Extract the injection indexable part to the
  getInjectionIndexableRawData method.
- Extract the getting indexable provider part to the
  getIndexableProviderValues method.

Test: manual
Fixes: 143741131
Change-Id: Idbf5b5419c0b78e0586e9c8d611dd51013eb0971
2019-11-01 16:15:23 +08:00
Raff Tsai
68927639ee Remove mVideoPaused from VideoPreference
- We destoryed the MediaPlayer when VideoPreference is onPause().
When VideoPreference is onResumed, MediaPlayer always start from
pause state, we don't need a data save/restore current video state.

Bug: 143270527
Test: robolectric, manual
Change-Id: I544e933e4237f6d92aeff8a7eb04b52e89d74a4a
2019-11-01 10:44:47 +08:00
Xin Li
9101ab566a [automerger skipped] DO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master am: c73fd84126
am: ccfed7891d -s ours
am skip reason: subject contains skip directive

Change-Id: Ic75a00232ef7200a76832f406fbb63f2e117214b
2019-10-31 14:08:02 -07:00
Kevin Chyn
eac6fcff2d Revert "Remove attention controller"
Bug: 142979808

This reverts commit 8e1d1ca3ab.

Change-Id: I78b7572bcb384de2984f4d81946aceb03aec6758
2019-10-31 20:50:35 +00:00
Kevin Chyn
44efb41d98 Revert "Update attention string"
Bug: 142979808

This reverts commit 821fbc83a1.

Change-Id: Ibe426d3175b8b44fadaf78316201031f229d736e
2019-10-31 20:49:43 +00:00
Xin Li
ccfed7891d DO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master
am: c73fd84126

Change-Id: I63830094ee961fda25aaed356a428d041de6d672
2019-10-31 13:21:17 -07:00
Bill Yi
8d853c2ed0 [automerger skipped] Import translations. DO NOT MERGE am: f54c040bde -s ours
am: a928396136 -s ours
am skip reason: subject contains skip directive

Change-Id: I3e330ccdbb09073f305ff0d8ff3742793c59ad02
2019-10-31 11:13:44 -07:00
Bill Yi
a928396136 [automerger skipped] Import translations. DO NOT MERGE
am: f54c040bde -s ours
am skip reason: subject contains skip directive

Change-Id: I0847a6249e54b4e78f50937e2ea65f99c4305720
2019-10-31 11:07:43 -07:00
TreeHugger Robot
34721d3f06 Merge "Add AnimatedVectorDrawable support for VideoPreference" 2019-10-31 16:57:31 +00:00
Raff Tsai
953da2ee40 Add AnimatedVectorDrawable support for VideoPreference
- We are planning to use animation vector drawable to replace mp4
file to reduce apk size
- Add vectorAnimation attr in VideoPreference
- Delegate VideoPreference media control to AnimationController

Bug: 143270527
Test: manual, robolectric
Change-Id: Ia5859f928a9082085cdf715c762f964e1c99e003
2019-10-31 23:42:53 +08:00
Stanley Wang
c2e4ae1c9c New method implementation of BaseSearchIndexProvider for dynamic index.
Implement the new method getDynamicRawDataToIndex.

Test: manual
Fixes: 143664054
Change-Id: I1cc68e6ef6a4e03d8dc0b00d422029627c955bdf
2019-10-31 14:17:32 +08:00
Bill Yi
f54c040bde Import translations. DO NOT MERGE
Change-Id: I7256e981ee4f567d1b09dce74e476375f4f58bb3
Auto-generated-cl: translation import
2019-10-30 18:50:23 -07:00
TreeHugger Robot
02bd28edbd Merge "Fix Settings creating too many threads unexpectedly" 2019-10-31 01:26:09 +00:00
Xin Li
c73fd84126 DO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master
Bug: 142003500
Change-Id: Ibae6b218a616a93cfda05dd77a5ea6f3a2dc4cea
2019-10-30 11:49:56 -07:00
Quang Luong
e49ff7de26 Merge "User WifiPickerTracker API for saved network preference text" 2019-10-30 16:59:25 +00:00
Sunny Shao
f7d56e94ad Fix the crashed problem at the AccountSyncSettings
- Use uid mapping to lowWord request code to avoid checking error of the request code.
- Use the local variable to keep the mapping data.
- Use onSaveInstanceState and onActivityCreated to backup/restore the mapped data.

Fixes: 142573823
Test: make RunSettingsGoogleRoboTests -j ROBOTEST_FILTER=com.android.settings.accounts
Change-Id: Ib034c5c418d4b73df604a8dc7d9994309c717356
2019-10-30 18:15:07 +08:00
TreeHugger Robot
86fd3abe6a Merge "Restrict user to clear app defaults when DISALLOW_APPS_CONTROL policy is enabled." 2019-10-30 07:38:40 +00:00
TreeHugger Robot
1370361ed3 Merge "Fix animation in Night light page" 2019-10-30 07:15:35 +00:00
LuK1337
900cc96b86 Merge "Settings: Fix QrCamera crash on devices without flash" am: 68ddb3afdb am: 748ee1657f
am: 9a07055546

Change-Id: Ia93df2d63161923aa0563159f86d6238ea1f27d7
2019-10-30 00:03:03 -07:00
LuK1337
9a07055546 Merge "Settings: Fix QrCamera crash on devices without flash" am: 68ddb3afdb
am: 748ee1657f

Change-Id: Ic64d2c3a36939751891440639b5114a9df3fd184
2019-10-29 23:56:00 -07:00
TreeHugger Robot
3f2aed4952 Merge "Fix the MMS messages toggle preference not working" 2019-10-30 06:50:50 +00:00
LuK1337
748ee1657f Merge "Settings: Fix QrCamera crash on devices without flash"
am: 68ddb3afdb

Change-Id: I55006fe0d94a6a80574437c7b4a55c261013a2bf
2019-10-29 23:49:58 -07:00
Treehugger Robot
68ddb3afdb Merge "Settings: Fix QrCamera crash on devices without flash" 2019-10-30 06:29:47 +00:00
Edgar Wang
44187c0bb3 Restrict user to clear app defaults when DISALLOW_APPS_CONTROL policy is enabled.
- In App Info -> Open by defult -> Other defaults -> Clear defaults
   User should not able to clear app defaults when DISALLOW_APPS_CONTROL
   policy is enabled

Fixes: 140934406
Test: manual & robotest
Change-Id: Ia1aea3846d96b6faf9a1953101bafa4d2992322b
2019-10-30 14:18:51 +08:00
Raff Tsai
acd5d10e0d Fix animation in Night light page
Fixes: 143582072
Test: manual
Change-Id: I28c9dd48cec9cfbe76234f8e4b370bc79febe7dd
2019-10-30 13:45:40 +08:00
Sunny Shao
054e0eab87 Fix the MMS messages toggle preference not working
- MMS messages toggle preference doesn't work while the default Mobile data is on then switches off.
- Recall the displayPreference to execute the preference.setOnPreferenceChangeListener
  in the AbstractPreferenceController.

Fixes: 143204818
Test: make RunSettingsGoogleRoboTests -j ROBOTEST_FILTER=com.android.settings.network.telephony.MmsMessagePreferenceControllerTest
Change-Id: Ida65d04b095b7d2556fa5bdd93be7a67cba77206
2019-10-30 05:34:18 +00:00
LuK1337
b056ea70f0 Settings: Fix QrCamera crash on devices without flash
Change-Id: Ife34b5fb87a9a4f509b665a3433e0b2ba857c885
2019-10-30 02:45:08 +00:00
TreeHugger Robot
fe5b2d9624 Merge "Remove permission bar chart in Privacy setting" 2019-10-30 02:20:23 +00:00
TreeHugger Robot
1233e2dcf1 Merge "Import translations. DO NOT MERGE" 2019-10-30 00:34:38 +00:00
Quang Luong
1a5b620a19 User WifiPickerTracker API for saved network preference text
Change the source of the saved network preference text from WifiManager
to WifiPickerTracker and update it through the
WifiPickerTrackerCallback.

Bug: 70983952
Test: atest WifiSettings2Test
Change-Id: Ia0a61f174a061892cd9376c16402e4983eaaa03c
2019-10-29 16:23:31 -07:00
Bill Yi
9d48cb2f53 Import translations. DO NOT MERGE
Change-Id: Ic95641a6dc751442c21a717d64b5c278f1838852
Auto-generated-cl: translation import
2019-10-29 15:39:40 -07:00