Commit Graph

56925 Commits

Author SHA1 Message Date
Raff Tsai
178f8c9f10 Merge "Add take persistable permission for uri" 2019-11-15 03:23:22 +00:00
Bonian Chen
66d9e08e34 Merge "[Settings] Remove isWfcProvisionedOnDevice API" 2019-11-15 03:00:14 +00:00
Bonian Chen
43fa3a0140 Merge "[Settings] Replace VT and VOLTE provisioning API" 2019-11-15 02:57:29 +00:00
Bonian Chen
7f88b51851 Merge "[Settings] Remove PhoneStateIntentReceiver" 2019-11-15 02:57:01 +00:00
Tsung-Mao Fang
1a744e9867 Merge "Update baseline for search index" 2019-11-15 02:32:25 +00:00
Kevin Lau Fang
a40bf2aec2 Merge "Revert submission" 2019-11-14 20:31:13 +00:00
Kevin Lau Fang
40dd1e2183 Revert submission
Reason for revert: This causes a boot issue on Taimen (b/144480969). It wasn't caught by TreeHugger due to Taimen tests being disabled due to a different lab outage (b/144350336).

Change-Id: I490dc6c933c08c3c83b962786df11bd2da66b28a
2019-11-14 20:07:38 +00:00
Raff Tsai
c79756a866 Merge "Fix robo test on NotificationAccessDetailsTest" 2019-11-14 17:59:05 +00:00
Raff Tsai
c9e6d1d00d Merge "Fix robo test on CodeInspectionTest" 2019-11-14 17:58:42 +00:00
Tsung-Mao Fang
17de44e052 Update baseline for search index
Rerun SettingsSearchResultRegressionTest#generate_search_result_list,
and then got a new baseline.

This would be helpful to check duplicated/bad search index.

Test: atest SettingsSearchResultRegressionTest
Bug: 113907111
Change-Id: I9dc7edf33ed0e20b08c2af66124c390590ae3b85
2019-11-14 18:40:42 +08:00
Bonian Chen
65817204e6 [Settings] Replace VT and VOLTE provisioning API
Replace isVtProvisionedOnDevice() and isVolteProvisionedOnDevice()
by android.telephony.ims.ProvisioningManager.

Bug: 140542283
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=Enhanced4gBasePreferenceControllerTest
make RunSettingsRoboTests -j ROBOTEST_FILTER=Enhanced4gLteSliceHelper
make RunSettingsRoboTests -j ROBOTEST_FILTER=VideoCallingPreferenceController

Change-Id: Ie92794b794a6b9f2d9e161ca5f328cd9fa01064a
2019-11-14 18:24:55 +08:00
Bonian Chen
2aafbd38e7 [Settings] Remove isWfcProvisionedOnDevice API
Replace isWfcProvisionedOnDevice() by IMS's ProvisioningManager.

Bug: 140542283
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=WifiCallingSettingsTest
make RunSettingsRoboTests -j ROBOTEST_FILTER=WifiCallingSettingsForSubTest
make RunSettingsRoboTests -j ROBOTEST_FILTER=WifiCallingSliceHelperTest
make RunSettingsRoboTests -j ROBOTEST_FILTER=MobileNetworkUtilsTest

Change-Id: Idb063bdab3d3b11c348804c1c0ecb268cca3068e
2019-11-14 18:22:02 +08:00
Tsung-Mao Fang
cd3347ba3e Fix robo test on NotificationAccessDetailsTest
Test: robo test
Change-Id: I09911bdda0242f71d1b04cd71703bf0f3f048698
Fix: 144475678
2019-11-14 17:24:29 +08:00
Raff Tsai
b4a6245d8d Merge "Fix testcase error" 2019-11-14 08:56:40 +00:00
Raff Tsai
3119f8d4a2 Fix testcase error
- Because BatteryFixSlice.updateBatteryTipAvailabilityCache() doesn't
run in ShadowThreadUtils shadow function, add a function to override
default behavior.

Fixes: 144405844
Test: make RunSettingsRoboTests
Change-Id: I72ee40a7a8fc524ab7bdc1fd838f8243159f2d21
2019-11-14 08:55:20 +00:00
Bonian Chen
505ae874c2 Merge "[Settings] Fix unit test" 2019-11-14 08:01:04 +00:00
hughchen
7a2fb4011e Add take persistable permission for uri
Fixes: 144443382
Test: Manual
Change-Id: Iaec788982330355099d7e8551fed0f000377ce8a
2019-11-14 15:02:41 +08:00
Tsung-Mao Fang
cb9f4c6487 Fix robo test on CodeInspectionTest
Add a whitelist for NotificationAccessDetails

Test: ronbo test
Change-Id: Ie004b0eeb5ba0eaf12d2c4f94db72b5602cd547c
Fix: 144469696
2019-11-14 14:45:49 +08:00
Bonian Chen
5980b80adc [Settings] Remove PhoneStateIntentReceiver
1. Replace PhoneStateIntentReceiver by adopting PhoneStateListener
2. Replace TelephonyProperties.in_ecm_mode() by
TelephonyManager.getEmergencyCallbackMode()

Bug: 144331663
Test: Manual
make RunSettingsRoboTests -j ROBOTEST_FILTER=AirplaneModePreferenceControllerTest

Change-Id: I95c80d9857c9ca44deede7105e1c200d729fefd3
2019-11-14 04:37:12 +00:00
Raff Tsai
b22bbffe90 Merge "Modify preference_list_fragment to support tabLayout" 2019-11-14 04:04:31 +00:00
Dianne Hackborn
cdf01bb144 Merge "Rework platform version to hide codenames." 2019-11-13 23:16:05 +00:00
TreeHugger Robot
a9968d586a Merge "Import translations. DO NOT MERGE" 2019-11-13 22:20:26 +00:00
Jason Chiu
63be7b7ea1 [automerger skipped] Fix Settings creating too many threads unexpectedly am: 48a0ff4304
am: 21e8231523 -s ours
am skip reason: change_id I4afe1f641a11e218616772c1d5446efcc99cd1cc with SHA1 3e4c47dbc0 is in history

Change-Id: Id4a6950878e2f2efef68089bb9d9759e6c626834
2019-11-13 13:46:03 -08:00
James Mattis
85379adca3 [automerger skipped] Merge "Support for hotspot client visibility." am: 2b7c8937de am: 24546e531f
am: 1a71177bc8 -s ours
am skip reason: change_id Ife4bb5ca7bbcf075683cb0a233f2b5716ccd51d9 with SHA1 b16500d595 is in history

Change-Id: Iefb7eda2ac411de6bc4e9ecdfa26068aaafc70f8
2019-11-13 13:43:50 -08:00
Bill Yi
99877ab69c Import translations. DO NOT MERGE
Change-Id: Iec335f65ffc271388a8563cb319f729aa27a84fa
Auto-generated-cl: translation import
2019-11-13 13:05:38 -08:00
Jason Chiu
21e8231523 Fix Settings creating too many threads unexpectedly
am: 48a0ff4304

Change-Id: I28068c2c68bffd0d97c1286df4f034a1f4a9825d
2019-11-13 09:40:13 -08:00
James Mattis
1a71177bc8 Merge "Support for hotspot client visibility." am: 2b7c8937de
am: 24546e531f

Change-Id: Ie04b18cbf7f9d640cf314f427381ebd102c40d5e
2019-11-13 08:58:40 -08:00
James Mattis
24546e531f Merge "Support for hotspot client visibility."
am: 2b7c8937de

Change-Id: Ib52bd8e9fa9a2affdd02771c1f64e86297c50458
2019-11-13 08:53:37 -08:00
James Mattis
2b7c8937de Merge "Support for hotspot client visibility." 2019-11-13 16:37:27 +00:00
Bonian Chen
9bc522e743 [Settings] Fix unit test
ActiveSubscriptionListener should enable cache after started.

Bug: 144407438
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=ActiveSubsciptionsListenerTest
Change-Id: I93b031da6e71a09b5ed5163bbecaaef99a254013
2019-11-13 22:20:05 +08:00
TreeHugger Robot
d5bb245f99 Merge "Fix the NPE in the ScreenPinningSettings" 2019-11-13 14:15:04 +00:00
Bonian Chen
48d472583a Merge "[Settings] Remove access to getSimOperator() API" 2019-11-13 14:02:58 +00:00
Julia Reynolds
9540929cfe Merge "Add NLS specific screens for notification listener approval" 2019-11-13 14:02:39 +00:00
TreeHugger Robot
03964f34da Merge "Ignore all failed test cases" 2019-11-13 13:41:48 +00:00
Sunny Shao
56b7acd49e Fix the NPE in the ScreenPinningSettings
- move mFooterPreference and others init before the SwitchBar

Fixes: 144407413
Test: manual test
Change-Id: I80d86942f35d16e0460c5fa48bb127932d2086a1
2019-11-13 20:35:56 +08:00
Tsung-Mao Fang
6a2d48d158 Ignore all failed test cases
Test: Run all robo test
Bug: 144405844
Bug: 144407418
Bug: 144407438
Fix: 144406422
Bug: 144405885
Bug: 144408475

Change-Id: Ia94636632106206b062d35b2ca53a028d0cbc35d
2019-11-13 20:31:01 +08:00
Alex Johnston
37d975b02f Merge "Fix broken preference controller test" 2019-11-13 11:54:11 +00:00
Alex Johnston
aa62e5e482 Fix broken preference controller test
This bug was introduced with the work to change certificate installation.
The CA, User and Wi-Fi certificate preferences should always be available
which is why the negative test was failing.

Bug: 144257985
Test: atest com.android.settings.security
Change-Id: Ib4a1880c3b21fa10c77568bc053b67ce4a0bbf85
2019-11-13 10:21:33 +00:00
Raff Tsai
988a912237 Modify preference_list_fragment to support tabLayout
- Remove buttonBar because it is only used in PublicVolumeSettings
- Add tabLayout in preference_list_fragment.xml

Bug: 141601408
Test: manual
Change-Id: Ieb84ccf2e685a03abec7b07cb8f9f4b64ee475e0
2019-11-13 17:37:59 +08:00
Bonian Chen
bb53dd5f93 [Settings] Remove access to getSimOperator() API
Replace getSimOperator() by having SubscriptionInfo
from getAccessibleSubscriptionInfo().

Bug: 144263441
Test: Manual
make RunSettingsRoboTests -j ROBOTEST_FILTER=ApnEditorTest

Change-Id: I25cc9dc0912564b8d6f8b23b53f3eb20a51eea32
2019-11-13 17:33:08 +08:00
TreeHugger Robot
3af21959b5 Merge "Remove redundant code" 2019-11-13 06:58:46 +00:00
Bonian Chen
63f837e6dc Merge "[Settings] Replace getSimCount() API" 2019-11-13 06:45:55 +00:00
TreeHugger Robot
e75f77d753 Merge "Don't use Lambda when register callback" 2019-11-13 05:08:01 +00:00
Tsung-Mao Fang
31dd22cc4c Remove redundant code
Don't need to define onResume and onPause again.

Test: Rebuild
Change-Id: I470ced021d1ffab13659335b54db0b01b5766940
2019-11-13 12:36:43 +08:00
hughchen
e487b00157 Don't use Lambda when register callback
This CL before, the lambda callback is different it cause
callback didn't unregister.
If you re-enter bluetooth detail page many times,
onDeviceAttributesChanged() will be called many times cause UI not
smooth.

This CL remove the lambda callback and show the UI when device
connected.

Fixes: 141583252
Test: Manual
Change-Id: Icd3e84b2d461d9b949f080269dfa2bb5b5d5cb73
2019-11-13 11:55:32 +08:00
Kevin Chang
673b5393a7 [automerger skipped] Merge "Add accessibility timeout video and illustration" am: 1595fc8fc8 am: 95d21e0d44
am: ec6fad2ca2 -s ours
am skip reason: change_id I0e4ba60c934191afbcaddb81e6d07d37244dce64 with SHA1 6838ae7c0b is in history

Change-Id: Idf6348e4304012a6d9ab9911f3cb79229e195093
2019-11-12 17:15:01 -08:00
Kevin Chang
ec6fad2ca2 Merge "Add accessibility timeout video and illustration" am: 1595fc8fc8
am: 95d21e0d44

Change-Id: I888cae4271d525f7cd9a02b9ffb494544409a5c9
2019-11-12 17:11:33 -08:00
Kevin Chang
95d21e0d44 Merge "Add accessibility timeout video and illustration"
am: 1595fc8fc8

Change-Id: Ib1c19cfd318de968cb426e9fb09eb4e4d674a70b
2019-11-12 17:06:59 -08:00
Raff Tsai
d43163d429 Merge "Add a feature flag for controller loading enhancement" 2019-11-13 00:57:50 +00:00
Raff Tsai
a12aa853a7 Merge "Fix PendingIntent CanceledException exception" 2019-11-13 00:55:27 +00:00