Commit Graph

56968 Commits

Author SHA1 Message Date
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
James Mattis
90c23d2fe7 SoftApCallback using executor vs handler
Updating classes to support making SoftApCallback methods available to @SystemAPI including
the API for registration of a SoftApCallback which includes a change to
now use executor vs handler.

Bug: 143564153
Test: make RunSettingsRoboTests ROBOTEST_FILTER=WifiTetherPreferenceControllerTest
Also tested manually on a Pixel 3.

Change-Id: I952ad10dd88b7d97b3cd86b269b8f67b00b1fa15
Merged-In: I952ad10dd88b7d97b3cd86b269b8f67b00b1fa15
2019-11-13 21:39:26 -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
timhypeng
c71f996da9 Battery icon is too large
-sync layout from SystemUI

Bug: 141139595
Test: make -j42 RunSettingsRoboTests
Change-Id: I5e165e953682fcfdebf0d06475bb1abd171684d9
2019-11-14 10:55:54 +08:00
Arc Wang
d1ea136cb8 [A11Y] Fix MasterSwitchPreference onClick not callback after TalkBack is enabled
TalkBack service dispatches onClick event to the Switch component
instead of the LinearLayout wrapping it. Do all the onClick tasks
for the Switch component instead of the LinearLayout wrapping it.

Bug: 142570671
Test: MasterSwitchPreferenceTest
      Manual click the toggle button for both TalkBack enabled case and disabled case.

Change-Id: I4b2f9df309d03a477863445cd187384cdb61314b
2019-11-14 09:59:35 +08: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
Yi-Ling Chuang
e786ce000e Fix non responding slice toggling
The issue happens when users are toggling slices. Sometimes the toggle
doesn't work as expected because the pending intent of the toggle action
seems to be canceled for some reasons.

Hence, we replace FLAG_CANCEL_CURRENT with FLAG_UPDATE_CURRENT to
prevent from getting PendingIntent.CancelExcpetion from SliceActionView
when toggling slices.

This change only applies on those auto converted Slices.

Bug: 140719905
Test: toggle slices in Settings Search and NGA
Change-Id: Iff724ce5f6a1e6a7d9ca85b8ce76539a72e72964
Merged-In: Iff724ce5f6a1e6a7d9ca85b8ce76539a72e72964
(cherry picked from commit ddf6cefcac)
2019-11-13 10:30:26 +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
James Mattis
33379b361b Swap param order in registerSoftApCallback
Moving executor to be the first argument in registerSoftApCallback.

Bug: 144379300
Test: Manually on pixel 3

Change-Id: I5563c1059cc04014a0fd909e2508f7bf497d708e
2019-11-12 22:26:33 -08: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
Raff Tsai
a19e37a02d Merge "change screen pinning settings UI" 2019-11-13 00:54:42 +00:00
Kevin Chang
1595fc8fc8 Merge "Add accessibility timeout video and illustration" 2019-11-13 00:53:49 +00:00
Sunny Shao
a4d2ab80fa Add a feature flag for controller loading enhancement
Bug: 137558156
Test: manual test
Change-Id: I4f2988ea889735e66bc227bb814707c5b01b770b
2019-11-13 08:47:43 +08:00
Dianne Hackborn
cdbc0dfa6a Rework platform version to hide codenames.
The public platform version no longer can be a codename, it is
always the most recently released platform.  A new build property
and API provides either the offical version or the current codename
as appropriate.  This will avoid breaking apps that look at the
platform version while development is under a codename.

Bug:  143175463
Test: manual
Change-Id: I711ca20c4c8ce389697e940696051a336f5fd808
2019-11-12 15:55:59 -08:00
Bernardo Rufino
f529543d54 Merge "Ignore "package:<package>" in MANAGE_OVERLAY_PERMISSION intent" 2019-11-12 10:03:25 +00:00
Raff Tsai
a1678dade1 Add dynamic injection item to site map
- That will make injection able to build site map

Bug: 143116297
Test: manual
Change-Id: Ic07280519bb7f904a3e80e172b6cb8785b94616f
2019-11-12 17:06:36 +08:00
Jason Chiu
48a0ff4304 Fix Settings creating too many threads unexpectedly
Limit the number of threads by using the shared thread pool in
ThreadUtils.

Bug: 143434413
Test: manual
Change-Id: I4afe1f641a11e218616772c1d5446efcc99cd1cc
Merged-In: I4afe1f641a11e218616772c1d5446efcc99cd1cc
(cherry picked from commit 3e4c47dbc0)
2019-11-12 08:24:10 +00:00
Raff Tsai
d785e78594 Fix PendingIntent CanceledException exception
- b/142107748 has more context

Fixes: 143267879
Test: manual
Change-Id: I3a5446febc09006fd07986c13e0a150cf89e84fd
2019-11-12 16:13:39 +08:00