Commit Graph

56807 Commits

Author SHA1 Message Date
Raff Tsai
c5e1fc677c Integrated SearchIndexableResources interface in Settings
- New SearchIndexableResources interface returns SearchIndexableBundle,
we don't need reflection to get SearchIndexableProvider

Bug: 135053028
Test: robolectric, check database search_index.db items
Change-Id: I5ed3416ccf72ef3d38db817fcb4aff7502649ed4
2019-11-05 17:38:32 +08:00
TreeHugger Robot
cdaa57742e Merge "Leverage the bahavior of Back key to the Up button of action bar" 2019-11-05 08:25:43 +00:00
Raff Tsai
5243629d25 [automerger skipped] Merge "Fix Battery page animation" into qt-qpr1-dev am: 8b348f1f30
am: 5d0c49e9ef -s ours
am skip reason: change_id I167ac87c9bd83035e00d4991961599e76f4f69e1 with SHA1 648ada031d is in history

Change-Id: Ibbc4555497debc8b6280e6e2c1e4ca4da30c6437
2019-11-04 22:21:04 -08:00
Raff Tsai
5d0c49e9ef Merge "Fix Battery page animation" into qt-qpr1-dev
am: 8b348f1f30

Change-Id: I922be1ac21e17c9ae71d7721401a08bbd56ca020
2019-11-04 22:15:20 -08:00
TreeHugger Robot
8b348f1f30 Merge "Fix Battery page animation" into qt-qpr1-dev 2019-11-05 05:34:41 +00:00
Bonian Chen
d7e52888b4 Merge "[Settings] Manual network select without aggregate" 2019-11-05 05:33:53 +00:00
Jason Chiu
bbaf0a0014 Leverage the bahavior of Back key to the Up button of action bar
Fixes: 138765370
Fixes: 134395822
Fixes: 132049537
Test: manual, robotest
Change-Id: I2099a232049bb9f0fffc18755fca8d5c7d7b7ef0
2019-11-05 12:46:53 +08:00
Bonian Chen
ef1481f589 [Settings] Manual network select without aggregate
Remove the feature of aggregation when performing manual network
selection.

Bug: 141287649
Test: Manual
make RunSettingsRoboTests -j ROBOTEST_FILTER=NetworkSelectSettingsTest
make RunSettingsRoboTests -j ROBOTEST_FILTER=NetworkOperatorPreferenceTest

Change-Id: I813ad31f9d5cf310877442f5558e236671ab5d23
2019-11-05 04:19:30 +00:00
Raff Tsai
6a3433b67a Fix Battery page animation
TextView summary1 has default height 2 line. If the content is longer
than 2 line, the TextView increases itself which causes the animation.
By increasing minLines to 3, it can avoid the animation. And remove
summary2 because it is only for debug purpose, the debug information
can be merged to summary1.

Fixes: 139554919
Test: visual, make RunSettingsRoboTests
Change-Id: I167ac87c9bd83035e00d4991961599e76f4f69e1
(cherry picked from commit 648ada031d)
Merged-In: I167ac87c9bd83035e00d4991961599e76f4f69e1
2019-11-05 12:11:51 +08:00
Arc Wang
5474667892 Merge "[Wi-Fi][A11Y] Fix TalkBack lose focus in WifiSettings & WifiSettings2" 2019-11-05 02:01:36 +00:00
TreeHugger Robot
ee9f1be50a Merge "Schematize Telephony System Properties" 2019-11-04 23:44:33 +00:00
TreeHugger Robot
1d9a7b3fa3 Merge "Remove redundant code in certificate pref controllers" 2019-11-04 18:42:52 +00:00
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
Victor Hsieh
bde026ae67 Remove redundant code in certificate pref controllers
mPreferenceKey in BasePreferenceController is set via the second
argument of the constructor and has a getter. It doesn't look necessary
to override the getter to return the key. The given one also looks
inconsistent.

Test: atest com.android.settings.security
Bug: 139173976
Bug: 112038744
Change-Id: I6e20b46675308f7dbb8f82f7e372bf94f21e4bed
2019-11-01 10:06:21 -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
Inseob Kim
4db955ad57 Schematize Telephony System Properties
Properties accessed across partitions are now schematized and will
become APIs to make explicit interfaces among partitions.

Bug: 117924132
Bug: 141246285
Test: lunch blueline-userdebug; m checkbuild
Change-Id: Ic4f16a4475eb2870dcaeec41b38de90a0f6473bb
2019-11-01 13:10:51 +09: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
Arc Wang
f4d3ba1049 [Wi-Fi][A11Y] Fix TalkBack lose focus in WifiSettings & WifiSettings2
Use stable ID feature of RecycleView to keep preference focus.

Bug: 126132618
Test: WifiSettingsTest
      WifiSettings2Test
      manual visual

Change-Id: Id73157b0935186c9a59d1ef68190d853f671ebc2
2019-11-01 09:47:37 +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