Commit Graph

59465 Commits

Author SHA1 Message Date
jasonwshsu
13b6850c52 Fix the NPE error when get the service summary.
* Check NPE for AccessibilityInfo.loadSummary()
* Remove the state argument that could get from info argument

Bug: 148837311
Test: Manual test
Change-Id: Ic6906fdbdd7f1c241776d1045be33f89468670b6
2020-02-15 11:49:37 +08:00
TreeHugger Robot
f7d30b1f77 Merge "Add app badges to conversation icons" 2020-02-15 03:04:51 +00:00
Grace Jia
84da1e8a9a Fix mismatching intent filter string in AndroidManifest.xml
Test: Manual
Bug: 149524255
Change-Id: Ic5bfbfa41cba18ccc8166624da33c70b69db73f5
2020-02-14 15:55:52 -08:00
Bonian Chen
ef83d26558 Merge "[Settings] Avoid access hidden constant ACTION_IMS_REGISTRATION_ERROR" 2020-02-14 23:49:52 +00:00
Blake Kragten
79b0315be6 Enhanced Connectivity Dev Toggle
Add Enhanced Connectivity Developer option switch. This switch will
allow the connectivity thermal power manager to actively shutoff 5G in
order to save power when cellular throughput is below the set threshold.

ScreenShots: https://drive.google.com/drive/folders/109VTTXqIn5Teg6daHpNHV7z13MmEEb7Q?usp=sharing

Bug: 147305171
Test: make RunSettingsRoboTests ROBOTEST_FILTER=EnhancedConnectivityPreferenceControllerTest
Test: On-device using developer option menu

Change-Id: I311cfcadb8325db30ff4917959414b5a7d108bcc
2020-02-14 13:48:59 -08:00
Julia Reynolds
2eb9ef4d6f Notification history improvements
- don't keep readding history list onresume
- remove unstyled background (just use elevation for contrast for now)
- remove summaries from snoozed and recently dimissed because the user
wouldn't have seen their content

Test: manual
Fixes: 149499024
Change-Id: Ie43c752f42a7dfcac5ca9e3d118df07124daf974
2020-02-14 21:33:56 +00:00
Julia Reynolds
bfd03422c0 Add app badges to conversation icons
Test: atest, manual
Fixes: 149573346
Change-Id: I79e688b7837c361a12f3272b4e9a23c2f378adbe
2020-02-14 21:17:59 +00:00
Zoey Chen
b67662bc67 [automerger skipped] Merge "[Settings] Add permission for #getCdmaRoamingMode and use value from TelephonyManager Bug: 145788881 Test: make Change-Id: Idf237f008af2ab6cab07689f1f2a602f6a98c4f1 Merged-In: Idf237f008af2ab6cab07689f1f2a602f6a98c4f1" am: 864bd01efe am: 7b8e8255cd am: 3f23659639 -s ours
am skip reason: Change-Id Idf237f008af2ab6cab07689f1f2a602f6a98c4f1 with SHA-1 4a7ad4d74f is in history

Change-Id: I9dd3f027e1f3c2422295e9a47d3eecd82a5bb62b
2020-02-14 20:19:49 +00:00
Rahul Sabnis
91069d7b92 Revert "Ignore two broken tests"
This reverts commit 1958a27d24.

Reason for revert: Reverted CLs that caused the test failure

Change-Id: I93d7f1d4f95eb4982eff2f81b28b813c99f3b0ec
2020-02-14 19:15:20 +00:00
Zhen Zhang
8e7ab637f3 Remove obsolete TODO in AllInOneTetherSettings
These TODO are for b/147325229 which is obsolete now. Clean them up.
Test: build successful, CodeInspectionTest

Change-Id: Ibae56812810d870e728bbb685c2c3b1ba4fb2866
2020-02-14 18:43:32 +00:00
David Su
8de938499e Merge "Rename requirePMF to requirePmf" 2020-02-14 18:27:15 +00:00
TreeHugger Robot
c6ad5f77e8 Merge "Clean up unused DB columns." 2020-02-14 15:15:51 +00:00
TreeHugger Robot
0eba407374 Merge "UX changes for the new cross profile settings page" 2020-02-14 13:44:59 +00:00
Bonian Chen
64595f18d7 Merge "[Settings] Code refactor for IMS part" 2020-02-14 13:35:03 +00:00
Bonian Chen
fedd8fa7ef [Settings] Avoid access hidden constant ACTION_IMS_REGISTRATION_ERROR
Replace ACTION_IMS_REGISTRATION_ERROR by
ACTION_WFC_IMS_REGISTRATION_ERROR.

Bug: 140542283
Test: build pass
Change-Id: I9c54eb63a0df3fde38965ee7e2ae46cc1b7efd47
2020-02-14 21:25:52 +08:00
TreeHugger Robot
78de05712b Merge "Make TopLevelSettings un-searchable and direct result to relevant page." 2020-02-14 12:46:12 +00:00
Yi-Ling Chuang
682a30f4c9 Clean up unused DB columns.
Remove some columns from Contextual Card DB as they are never used.

Fixes: 143058171
Test: robotests
Change-Id: Ic618ccba16c3ed9f0a85b905535916e5d062d79e
2020-02-14 19:59:35 +08:00
kholoud mohamed
00c46041b6 UX changes for the new cross profile settings page
Bug: 136249261
Bug: 140728653
Bug: 148594054
Test: make RunSettingsRoboTests ROBOTEST_FILTER=InteractAcrossProfilesControllerTest
Test: make RunSettingsRoboTests ROBOTEST_FILTER=InteractAcrossProfilesDetailsTest
Test: make RunSettingsRoboTests ROBOTEST_FILTER=InteractAcrossProfilesPreferenceControllerTest
Test: make RunSettingsRoboTests ROBOTEST_FILTER=InteractAcrossProfilesSettingsTest

Change-Id: I9666b34a03e5c082eed7c4120e70a07017ab7ef0
2020-02-14 11:51:39 +00:00
Menghan Li
c23968fe0d Merge "Use HTML text preference for rich content" 2020-02-14 10:57:26 +00:00
Edgar Wang
77de405a5d Make TopLevelSettings un-searchable and direct result to relevant page.
Fixes: 149372187
Test: manual & robotest
Change-Id: I9daca03d1c11a262f8e3b55bb46aabbc035ece96
2020-02-14 17:58:38 +08:00
Jason Chiu
ca9ece1a0c Card showing mechanism change in homepage
- update contextual card proto interface to fit the new SettingsIntelligence
- show sticky cards at the tail of the card area

Bug: 149274976
Test: robotest
Change-Id: Icca167825c1c037ec12d8836d82c5fdff4331a8e
2020-02-14 17:44:11 +08:00
Bonian Chen
4074e9aab7 [Settings] Code refactor for IMS part
Return boolean in method names starting with "is".

Bug: 140542283
Test: m RunSettingsRoboTests -j ROBOTEST_FILTER=Enhanced4gBasePreferenceControllerTest
Test: m RunSettingsRoboTests -j ROBOTEST_FILTER=Enhanced4gLteSliceHelperTest
Test: m RunSettingsRoboTests -j ROBOTEST_FILTER=VideoCallingPreferenceControllerTest
Change-Id: I2a9ca9ae829f0dcda478f3343cd50e61f441a9a7
2020-02-14 16:29:11 +08:00
Zhen Zhang
c2b9e5ef20 Update summary for AllInOneTetherPreference accordingly
The summary for AllInOneTetherPreference in NetworkDashboardFragment is
updated according to tethering state and tether interface chosen by
user.

Bug: 149256198
Test: AllInOneTetherPreferenceControllerTest, TetherEnablerTest,
CodeInspectionTest

Change-Id: I24ba4deabbb02b203e76d32048040d7ccf1b2d22
2020-02-14 00:14:23 -08:00
TreeHugger Robot
fe83913c03 Merge "Move "Allow from lock screen" into advanced item" 2020-02-14 07:27:20 +00:00
Zoey Chen
3f23659639 Merge "[Settings] Add permission for #getCdmaRoamingMode and use value from TelephonyManager Bug: 145788881 Test: make Change-Id: Idf237f008af2ab6cab07689f1f2a602f6a98c4f1 Merged-In: Idf237f008af2ab6cab07689f1f2a602f6a98c4f1" am: 864bd01efe am: 7b8e8255cd
Change-Id: I29a8aee4d2c6ac45e3827555455f74c47589ca17
2020-02-14 07:11:47 +00:00
Zoey Chen
7b8e8255cd Merge "[Settings] Add permission for #getCdmaRoamingMode and use value from TelephonyManager Bug: 145788881 Test: make Change-Id: Idf237f008af2ab6cab07689f1f2a602f6a98c4f1 Merged-In: Idf237f008af2ab6cab07689f1f2a602f6a98c4f1" am: 864bd01efe
Change-Id: I951346d955f2223fce1b4c88e72cd44a5e33e1a5
2020-02-14 07:01:49 +00:00
Zoey Chen
864bd01efe Merge "[Settings] Add permission for #getCdmaRoamingMode and use value from TelephonyManager Bug: 145788881 Test: make Change-Id: Idf237f008af2ab6cab07689f1f2a602f6a98c4f1 Merged-In: Idf237f008af2ab6cab07689f1f2a602f6a98c4f1" 2020-02-14 06:49:45 +00:00
TreeHugger Robot
a23ae818a6 [automerger skipped] Merge "Set the max length of user name field in Profile info" into qt-qpr1-dev am: 936ebd0367 am: 74ad28ff90 -s ours
am skip reason: Change-Id Ica17297588fc6b84ef111ef00017afb27360acd3 with SHA-1 ca2bbc0685 is in history

Change-Id: I83cdd299719f70ac505240b6c270a274d482122f
2020-02-14 06:43:29 +00:00
TreeHugger Robot
74ad28ff90 Merge "Set the max length of user name field in Profile info" into qt-qpr1-dev am: 936ebd0367
Change-Id: I5cb48821cb1bd7cc4d88b33844af567dd9cfcf7a
2020-02-14 06:29:56 +00:00
TreeHugger Robot
936ebd0367 Merge "Set the max length of user name field in Profile info" into qt-qpr1-dev 2020-02-14 06:20:29 +00:00
TreeHugger Robot
ee583650c3 Merge "Add a feature flag for contextual home V2." 2020-02-14 04:50:58 +00:00
menghanli
eb6d37dc9d Move "Allow from lock screen" into advanced item
Bug: 142529032
Test: Manual test
Change-Id: I697a30d2da8d17bbbabe78c7a97acce686f521ef
2020-02-14 12:13:31 +08:00
Jason Chiu
0c3babb8b3 Merge "Fix the header talkback bug in DND schedule page" 2020-02-14 03:54:30 +00:00
Raff Tsai
50a0aafdfe Fix Battery optimization page broken
- mCompositeFilter is not changed after toggling filter, so the
list items are not changing. Fixed by changing mCompositeFilter
after toggle is changed.
- Because mSession.rebuild returns null, removes some dead code.

Fixes: 149362024
Test: 1. Settings > App & notifications > Special app access >
         Battery optimization
      2. Toggle Not optimized and All apps
      3. App list should change after step 2

Change-Id: Ifd5c7b0f1d809ae7a49d62b39e34fa899700326c
2020-02-14 10:45:14 +08:00
timhypeng
cc0069e42f Add listener for panel header icon
Bug: 146813761
Test: make -j42 RunSettingsRoboTests
Change-Id: I473b535593d4ecb445027d6c7dafbb235a70ffcf
2020-02-14 10:38:27 +08:00
Menghan Li
8a689ab650 Merge "Remove DaltonizerPreferenceControllerTest unnecessary test" 2020-02-14 01:59:19 +00:00
Jean Chen
e9f289d5b3 Merge "Support autoclick secondary action (5/n)" 2020-02-14 01:28:15 +00:00
Zhen Zhang
c4a2294730 Merge "Add a Preference into "Network & internet" for new tethering UI" 2020-02-14 00:05:54 +00:00
Menghan Li
655debca76 Merge "Accessibility Service & Shortcut Redesign - Remove “volume key shortcut” setting (2/n)" 2020-02-14 00:01:49 +00:00
menghanli
8a3a58eea5 Remove DaltonizerPreferenceControllerTest unnecessary test
Bug: 149481490
Test: make RunSettingsRoboTests ROBOTEST_FILTER=DaltonizerPreferenceControllerTest
Change-Id: Ieda7481a49fb84802e8ad27851c1971269ab1cde
2020-02-14 07:46:52 +08:00
TreeHugger Robot
c8fdd9265c Merge "Mode dnd title back to title bar" 2020-02-13 22:17:44 +00:00
TreeHugger Robot
c4e63d7834 Merge "Ignore two broken tests" 2020-02-13 21:16:15 +00:00
Curtis Belmonte
0802552947 Merge "Pass CDC text as credential-only to BiometricPrompt" 2020-02-13 20:29:14 +00:00
Jiashen Wang
217e88710d Change MobileNetworkUtils to use EuiccManager.isSupportedCountry
Currently LPA passed supported/unsupported countries to Settings by
writing the value into properties which is not ideal. Instead, we should
call EuiccManager.isSupportedCountry instead.
Bug: 147674689
Test: 1) Manually tested by flashing the change to the device
2) Change LPA to override onGetIsEuiccSupportedCountry
3) Make sure LPA can get the request

Change-Id: Ib136beea325eabdfbd8a6a843611143958dce603
2020-02-13 18:36:00 +00:00
Curtis Belmonte
c4bcf041d2 Pass CDC text as credential-only to BiometricPrompt
Invokes the new hidden API to allow the work authentication prompt to
supply specific text to BiometricPrompt for credential auth. This
allows the prompt to use work-specific language when verifying work
credentials, while retaining more generic language when authenticating
with biometrics.

Test: Work lock prompt shows "Enter your work ___" for credential
Test: Work lock prompt now shows "Verify it's you" for face

Bug: 149003660
Change-Id: Icab8e16702ca31d08fa8b0b00f0519c9a37f609f
2020-02-13 10:12:19 -08:00
Raff Tsai
7d932e4ef6 Merge "Fix test case error" 2020-02-13 17:51:19 +00:00
Bonian Chen
fd8e319801 Merge "[Settings] Replace isImsRegistered" 2020-02-13 17:25:57 +00:00
Julia Reynolds
3b29ff2559 Mode dnd title back to title bar
Test: manual
Fixes: 149183896
Change-Id: Ib5e0c3c79e3b36f58d9196a8435250230275a3f7
2020-02-13 11:17:04 -05:00
Raff Tsai
c793bd4761 Fix test case error
Fixes: 149473766
Test: make RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.deviceinfo.storage"
Change-Id: I94c857f1ed806ce5f6727a0159dd6e49a20e532a
2020-02-14 00:02:24 +08:00
TreeHugger Robot
1e7ecc1ad5 Merge "Show the footer when global switch is off." 2020-02-13 15:34:31 +00:00