Commit Graph

56861 Commits

Author SHA1 Message Date
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
TreeHugger Robot
eb3eb1fdb3 Merge "Update text on notification on/off toggles for clarity" 2019-11-11 19:24:42 +00:00
Julia Reynolds
f356ced8d7 Remove filtering from "recent sent" notifs preference
The 'has a launch intent' filter was inherited from 'recent apps'
preference but an app doesn't need a launch intent in order to
send notifications. Also, the next screen didn't apply the filter
so the data wouldn't always match up.

Also make the preferencecontroller more robust to failure.

Test: manual, trigger a notification from a non-launchable app
and makes sure it appears in the list
Fixes: 141380329
Fixes: 142956641

Change-Id: Icf3abead82c572bbffe6e06ecf51a8e02c11c982
2019-11-11 17:38:23 +00:00
Julia Reynolds
78b4505d6e Update text on notification on/off toggles for clarity
Test: manual
Fixes: 141011559
Change-Id: I06b8519bb5a80496d84889f8c5264bff098ebefd
2019-11-11 17:37:45 +00:00
Bonian Chen
bfe25c3b29 Merge "[Settings] Apply proxy design to data usage" 2019-11-11 06:33:31 +00:00
Bonian Chen
5e65da0c2f [Settings] Apply proxy design to data usage
Enable proxy to subscription manager in data usage UI.

Bug: 141833767
Test: manual
make RunSettingsRoboTests -j ROBOTEST_FILTER=BillingCyclePreferenceTest
make RunSettingsRoboTests -j ROBOTEST_FILTER=CellDataPreferenceTest
make RunSettingsRoboTests -j ROBOTEST_FILTER=DataUsageListTest
make RunSettingsRoboTests -j ROBOTEST_FILTER=DataUsageSummaryTest
make RunSettingsRoboTests -j ROBOTEST_FILTER=DataUsageUtilsTest
make RunSettingsRoboTests -j ROBOTEST_FILTER=MobileDataEnabledListenerTest

Change-Id: Id119738dc16ece8767c088b9a0794997e4b0334f
2019-11-11 13:03:03 +08:00
Bill Yi
be658e94f7 Import translations. DO NOT MERGE
Change-Id: Id91fd596039e71d8e677fa03f66521fd019fa245
Auto-generated-cl: translation import
2019-11-10 01:07:23 -08:00
Bill Yi
8cac391fb2 [automerger skipped] Import translations. DO NOT MERGE am: 8134971f00 -s ours
am: 9d83dbcd08 -s ours
am skip reason: subject contains skip directive

Change-Id: I577e8bacc6a7778ac741d5a539c3df06589891e3
2019-11-09 07:55:28 -08:00
Bill Yi
9d83dbcd08 [automerger skipped] Import translations. DO NOT MERGE
am: 8134971f00 -s ours
am skip reason: subject contains skip directive

Change-Id: I138449ceec7c49f369cb04853365b071f32e8a64
2019-11-09 07:48:14 -08:00
Bill Yi
8134971f00 Import translations. DO NOT MERGE
Change-Id: I5b9dc323282c81680df423e4df855f9f25e3c028
Auto-generated-cl: translation import
2019-11-08 23:40:50 -08:00
James Mattis
4a18957c2d 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 Hawk.

Change-Id: I952ad10dd88b7d97b3cd86b269b8f67b00b1fa15
2019-11-08 08:44:35 -08:00
Jay Aliomer
b499cc5643 Merge "Don't disable DND permission settings for apps that have disabled NLS" 2019-11-08 16:38:12 +00:00
Jay Aliomer
8754d40124 Don't disable DND permission settings for apps that have disabled NLS
ZenAccessController.getPackagesRequestingNotificationPolicyAccess
was including disabled packages.
We change this behavior to exclude any disabled package

Test: make -j64 RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.applications.specialaccess.zenaccess.ZenAccessControllerTest"
Change-Id: I354b8f0bdbf602d1f35233d5003ce09f01df3cb2
Fix: 141318822
2019-11-08 16:21:15 +00:00
TreeHugger Robot
f9b41559b6 Merge "Use the getBidiFormattedPhoneNumber to replace getFormattedPhoneNumber" 2019-11-08 11:47:21 +00:00
Sunny Shao
f0771bdbc2 [automerger skipped] Fix the MMS messages toggle preference not working am: b377713547
am: ac3b465e96 -s ours
am skip reason: change_id Ida65d04b095b7d2556fa5bdd93be7a67cba77206 with SHA1 054e0eab87 is in history

Change-Id: I8fbd43096c78d21848e8d7856e44b9590d95f576
2019-11-08 03:01:27 -08:00
Sunny Shao
ac3b465e96 Fix the MMS messages toggle preference not working
am: b377713547

Change-Id: I8f37573cca361a826d786d2d9693185b051d266c
2019-11-08 02:55:28 -08:00
Sunny Shao
0f844d168b Use the getBidiFormattedPhoneNumber to replace getFormattedPhoneNumber
Fixes: 123698996
Test: make RunSettingsGoogleRoboTests -j ROBOTEST_FILTER=com.android.settings.deviceinfo.PhoneNumberPreferenceControllerTest
Test: make RunSettingsGoogleRoboTests -j ROBOTEST_FILTER=com.android.settings.deviceinfo.simstatus.SimStatusDialogControllerTest
Test: make RunSettingsGoogleRoboTests -j ROBOTEST_FILTER=com.android.settings.network.telephony.RenameMobileNetworkDialogFragmentTest
Test: make RunSettingsGoogleRoboTests -j ROBOTEST_FILTER=com.android.settings.homepage.contextualcards.deviceinfo.DeviceInfoSliceTest
Change-Id: I5dfb71ceb87a8f658ef7fbceacf460ef8d35593a
2019-11-08 16:36:33 +08:00
Raff Tsai
1ade809ff9 Filter invalid uid from Battery list
- Normally uid is start from 0. That was a bug in framework during
some time period, and was not reproduced later. We just remove this
kind of invalid item from UI.

Fixes: 141404334
Test: manual
Change-Id: I964a8b8af18ac6a5d8d2dea89722ea466e27e6ad
2019-11-08 08:30:38 +00:00
TreeHugger Robot
9aded56b70 Merge "Remove duplicate layout mobile_network_settings_container_v2" 2019-11-08 08:22:15 +00:00
TreeHugger Robot
7aa1aa4c5f Merge "Fix the NPE in the AnimationController" 2019-11-08 05:46:37 +00:00
Raff Tsai
8fe35bff52 Remove duplicate layout mobile_network_settings_container_v2
- MobileNetworkActivity can use settings_base_layout.xml as layout.
- MobileNetworkActivity need to use Theme.Settings.Home because
it requests Window.FEATURE_NO_TITLE. Otherwise MobileNetworkActivity
will show title defined in xml first then change to new title.

Fixes: 123794771
Test: rebuild, manual
Change-Id: I39ae25b6d335437ffddb2f1562e7a0347db97108
2019-11-08 12:04:16 +08:00
TreeHugger Robot
504d2d3cba Merge "Modify account page multiple profile UI" 2019-11-08 03:48:32 +00:00
Sunny Shao
b808eb0464 Fix the NPE in the AnimationController
Add the null checking in onBindViewHolder

Fixes: 144099781
Test: compilation
Change-Id: Iafb8f758d7d71ce9fa67f4ad94d5a8a417ad674a
2019-11-08 10:53:53 +08:00
Roshan Pius
adfdb0ddf1 Merge "Settings: Use public API for mac randomization support" 2019-11-07 23:17:57 +00:00
TreeHugger Robot
1a3a50bceb Merge "Remove unused resources" 2019-11-07 11:27:36 +00:00
Raff Tsai
4992919d95 Remove unused resources
Bug: 123794771
Test: rebuild, robolectric
Change-Id: I22f43220cc9ad4ec2074af425b0da75f59e470a4
2019-11-07 18:12:34 +08:00
Stanley Wang
722ca1078c Merge "Refactor SettingsSearchIndexablesProvider." 2019-11-07 09:00:35 +00:00
Raff Tsai
f5277ba54a Modify account page multiple profile UI
- Extend the tab width to 50%
- Hide category title in two tab mode

Bug: 141601408
Test: manual
Change-Id: I73a1a64c704f7a74c200803efef97cdac5534aa7
2019-11-07 14:53:54 +08:00
Stanley Wang
79eaa655ef Refactor SettingsSearchIndexablesProvider.
- Extract the adding raw indexable columns
  to createIndexableRawColumnObjects method.
- Refactor the getInjectionIndexableRawData
  method for query injection data.

Test: manual
Fixes: 144007045
Change-Id: I9c028818dcaff165c3b7f8d495f6002370cd30fa
2019-11-07 10:36:04 +08:00
Kevin Chang
efcfbaeb5a Merge "Add accessibility timeout video and illustration" 2019-11-07 01:12:40 +00:00
Roshan Pius
f13145b323 Settings: Use public API for mac randomization support
Also, don't directly reference the default tether ssid overlay. This info
should always be retrieved from wifiManager.
This ensures that we don't use wifi overlays in settings.

Bug: 143464763
Test: atest com.android.server.wifi
Change-Id: I893a4ca0f4243e1eb6f9c8bef810d0b4a493fb88
2019-11-06 07:58:19 -08:00
Sunny Shao
b377713547 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
Merged-In: Ida65d04b095b7d2556fa5bdd93be7a67cba77206
(cherry picked from commit 054e0eab87)
2019-11-06 06:19:35 +00:00
Bonian Chen
38701ed7ea Merge "[Settings] Hidden API remove - WFC mode settings" 2019-11-06 06:05:21 +00:00
TreeHugger Robot
07e39a6246 Merge "Remove mobile network v1" 2019-11-06 05:01:41 +00:00
TreeHugger Robot
0b0f25c1f5 Merge "Fix Settings crashed on tapping on notification animation video" 2019-11-06 04:50:52 +00:00
Bonian Chen
c3b94292ea [Settings] Hidden API remove - WFC mode settings
Change API from getWfcMode/setWfcMode into APIs within ImsMmTelManager.

Bug: 140542283
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=WifiCallingPreferenceControllerTest
make RunSettingsRoboTests -j ROBOTEST_FILTER=WifiCallingSettingsForSubTest
make RunSettingsRoboTests -j ROBOTEST_FILTER=WifiCallingSliceHelperTest
atest WifiCallingSettingUiTest

Change-Id: I2ee01852cb4ee90fe9db256d3333f461cc070da5
2019-11-06 12:17:09 +08:00
Stanley Wang
59b709bccb Merge "Fix a11y issue, the description of navigation buttons should be the same." 2019-11-06 03:31:41 +00:00
TreeHugger Robot
3ca3f15572 Merge "Integrated SearchIndexableResources interface in Settings" 2019-11-06 01:21:38 +00:00
Rahul Sabnis
c5a039a89f Merge "Refactor usages of getAliasName to use getAlias in Settings" am: eed0f8816b am: 4f85f36e7d
am: 2a60040d29

Change-Id: If24afc1a316da64fbf49ad08ee761e5af7dde4b7
2019-11-05 11:47:05 -08:00
Felipe Leon
16cc74021f Merge "Settings: fix apn_editor carrier_enabled summaryOff string" am: 9d29833485 am: 6ee2108bdb
am: 980d003f40

Change-Id: I484d34231ff23a25e41010c2deffdb46bf539ec5
2019-11-05 10:58:53 -08:00
Rahul Sabnis
2a60040d29 Merge "Refactor usages of getAliasName to use getAlias in Settings" am: eed0f8816b
am: 4f85f36e7d

Change-Id: I726b2cd3025d2bee79320b420af570ee30eb3700
2019-11-05 10:49:43 -08:00
Rahul Sabnis
4f85f36e7d Merge "Refactor usages of getAliasName to use getAlias in Settings"
am: eed0f8816b

Change-Id: Icb70620c2bc7e84fb19196c26d8c576220eefe13
2019-11-05 10:42:41 -08:00
Treehugger Robot
eed0f8816b Merge "Refactor usages of getAliasName to use getAlias in Settings" 2019-11-05 18:20:50 +00:00
Felipe Leon
980d003f40 Merge "Settings: fix apn_editor carrier_enabled summaryOff string" am: 9d29833485
am: 6ee2108bdb

Change-Id: I86c907e3899841df85cc7433133d1430be7f7c5e
2019-11-05 10:14:35 -08:00
Felipe Leon
6ee2108bdb Merge "Settings: fix apn_editor carrier_enabled summaryOff string"
am: 9d29833485

Change-Id: Ie05efff7a54b001dbe7c86b03f00091c86245ab0
2019-11-05 09:47:14 -08:00
Treehugger Robot
9d29833485 Merge "Settings: fix apn_editor carrier_enabled summaryOff string" 2019-11-05 17:15:45 +00:00
Kevin Chang
6838ae7c0b Add accessibility timeout video and illustration
Add the new assets of accessibility timeout.

Bug: 143861394
Test: Visual
Change-Id: I0e4ba60c934191afbcaddb81e6d07d37244dce64
2019-11-05 19:32:05 +08:00
Kevin Chang
b36d53535f Merge "Add the license announcement in the drawable files of Accessibility warning dialog" 2019-11-05 11:27:29 +00:00
Raff Tsai
1eccd55a70 Remove mobile network v1
Fixes: 142920912
Test: rebuild, robolectric
Change-Id: Ib365ba712af62729ca35abbc370aef087ce52a90
2019-11-05 17:54:54 +08:00
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