Commit Graph

51975 Commits

Author SHA1 Message Date
Clown SHEN
530438261b Merge "Redraw WiFi detail page's header icon" 2019-04-09 00:52:57 +00:00
Malcolm Chen
e0bc974553 [automerger skipped] Merge "Correct name of PRIMARY_SUBSCRIPTION_LIST_CHANGED." am: bf857c7374
am: d6875ddf82 -s ours
am skip reason: change_id I008e5346ff1e015d1aa57ca31844426e33bd99b8 with SHA1 a05e6f8182 is in history

Change-Id: Ib81c4db615e06e621c92527413a08a1754c7716f
2019-04-08 17:21:41 -07:00
Bill Yi
b8678ee1e4 [automerger skipped] Merge "Import translations. DO NOT MERGE" into qt-dev
am: 00846385a5 -s ours
am skip reason: subject contains skip directive

Change-Id: If5996274be37c73be9453d120e48f487ecf8135f
2019-04-08 17:14:23 -07:00
Nate Jiang
ca7acf2346 [CLEANUP] Clean up unused permissions from Settings
Clean up MANAGE_WIFI_WHEN_WIRELESS_CONSENT_REQUIRED,
ACCESS_WIMAX_STATE, CHANGE_WIMAX_STATE from
Settings/AndroidManifest.xml.

Test: build
Bug: 120853187
Change-Id: I5db7c53fb6445f42150f376cd9bb75405cd497d0
2019-04-08 17:13:51 -07:00
TreeHugger Robot
6a270547e5 Merge "Import translations. DO NOT MERGE" 2019-04-08 23:43:30 +00:00
TreeHugger Robot
00846385a5 Merge "Import translations. DO NOT MERGE" into qt-dev 2019-04-08 23:37:53 +00:00
Lei Yu
4350317580 Move bitmap recycle to onDestroy()
If we recycle it in OnStop() and this page isn't destoried,
it will crash when we revisit it.

Fixes: 130185099
Test: RunSettingsRoboTests
Change-Id: I4d3c1c12debcccb1ee7d676a1c5accece0b42e09
2019-04-08 16:25:47 -07:00
Antony Sargent
4646fe8e63 Use active instead of available subscriptions in 2 places
In a couple of places we were showing DSDS UI using the list of
*available* subscriptions instead of the list of *active* ones. This
difference is relevant for instance if you have multiple eSIM profiles -
in typical hardware only one of those can be active at one time. This CL
fixes that problem in two places:

1) The header at the top of the Network & internet page

2) The ListPreference's on the mobile network detail page for selecting
   the default subscription for Calls / SMS.

Fixes: 129673046
Test: make RunSettingsRoboTests
Change-Id: I891c856bdd4516286fcee1067684d9161ceaca80
2019-04-08 16:22:55 -07:00
Malcolm Chen
d6875ddf82 Merge "Correct name of PRIMARY_SUBSCRIPTION_LIST_CHANGED."
am: bf857c7374

Change-Id: I2422f31d45e1b7242f8f73decd7eab5d4f33da3d
2019-04-08 16:06:13 -07:00
Suprabh Shukla
d3864daebd Treat mode_default as denied for install_unknown_apps
Test: atest SettingsRoboTests
Bug: 123700348
Change-Id: Ieeb6456854cc3d0faa0e9c407accd94f56a25813
2019-04-08 15:23:03 -07:00
Xiangyu/Malcolm Chen
9106454fbd Merge "Revert switchBar if enable / disable subscription fails." into qt-dev
am: 81f31ef4d3

Change-Id: I50d58d53ecd2f56fbd43bb616253c0433085d1c6
2019-04-08 15:09:40 -07:00
Lei Yu
afffd04568 Merge "Settings: [BT] Wrong Pairing Popup is shown on new pairing request." into qt-dev
am: 8f45be526d

Change-Id: I5e22c3368f2a70331b9f7ee81f698cce1c531222
2019-04-08 15:08:04 -07:00
Treehugger Robot
bf857c7374 Merge "Correct name of PRIMARY_SUBSCRIPTION_LIST_CHANGED." 2019-04-08 21:53:58 +00:00
Xiangyu/Malcolm Chen
81f31ef4d3 Merge "Revert switchBar if enable / disable subscription fails." into qt-dev 2019-04-08 21:38:25 +00:00
Lei Yu
8f45be526d Merge "Settings: [BT] Wrong Pairing Popup is shown on new pairing request." into qt-dev 2019-04-08 21:28:09 +00:00
Amit Mahajan
2fa0b7ed85 Treat mcx apn type as not wild-cardable.
Test: manual
Bug: 130167974
Change-Id: Ic3e643646491e5a187505fd54ca767ad91e285f5
2019-04-08 14:22:40 -07:00
Andrew Sapperstein
4bbd1e867b Merge "Delete carrier entry from mobile network details page." into qt-dev
am: b93761d252

Change-Id: Iba51501adb7106d1ca6b0fbf4327bc94c9e58c41
2019-04-08 14:04:11 -07:00
Bill Yi
ef1e217daf Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: If0ee949c0948860c8a6834fc3b63fa0d9175cfb0
2019-04-08 13:57:43 -07:00
Fan Zhang
276edc8d86 Do not retrive app detail if the fragment is exiting.
The exit flag can be set by a variety of things, such as when package is
removed, or package is invalid (hidden mainline module). Loading such
packages changes the internal state of ApplicationsState class (an app
singleton), which leads to inconsistencies later.

Fixes: 130166465
Test: robotest
Change-Id: Ib09240cb694fa16692914a7aa9ce354869615c2d
2019-04-08 13:56:59 -07:00
Fan Zhang
f2390512c1 Add null check in UserPreference
The comparator can get null objects according to bug report.

Fixes: 130144755
Test: manual
Change-Id: Ic8a332d390f411d2eb69c944fb7fd166d9961535
2019-04-08 13:55:58 -07:00
Antony Sargent
159f011022 Merge "Fix 'Advanced' collapse point on Network & internet page" into qt-dev am: 5c28e42538
am: da62a42ef8

Change-Id: Ic7b7c9a2fc1126b952cd62c60433ec6c8ef56855
2019-04-08 13:25:57 -07:00
Bill Yi
ad91a8b512 Import translations. DO NOT MERGE
Change-Id: Ie7a8b551765891732db4bc2e44475f26c8cf5ec6
Auto-generated-cl: translation import
2019-04-08 13:16:04 -07:00
TreeHugger Robot
b93761d252 Merge "Delete carrier entry from mobile network details page." into qt-dev 2019-04-08 20:00:29 +00:00
Malcolm Chen
e0cf5ece32 Correct name of PRIMARY_SUBSCRIPTION_LIST_CHANGED.
Correct name of PRIMARY_SUBSCRIPTION_LIST_CHANGED in manifest.
Also, make sure SimSelectNotification only listens to that intent.

Bug: 128645056
Test: manual
Change-Id: I008e5346ff1e015d1aa57ca31844426e33bd99b8
Merged-In: I008e5346ff1e015d1aa57ca31844426e33bd99b8
2019-04-08 12:52:04 -07:00
Julia Reynolds
8a9e6cc9fa Move NAS selection to 'special app access'
Test: manual
Fixes: 130169253
Change-Id: I0e69b11c557bc153cee0073bb2e982e3ee36e721
2019-04-08 15:46:57 -04:00
Antony Sargent
da62a42ef8 Merge "Fix 'Advanced' collapse point on Network & internet page" into qt-dev
am: 5c28e42538

Change-Id: I886e9b11d7b0ec8c7a9742388cc0867f24f50850
2019-04-08 11:43:38 -07:00
Malcolm Chen
046419a92a Revert switchBar if enable / disable subscription fails.
Bug: 123321718
Test: build manual test
Change-Id: Ia7e8c762d91f81b67e0d0b11d36dfa78ec1e2d18
2019-04-08 18:42:06 +00:00
Sumit Deshmukh
c00e137a55 Settings: [BT] Wrong Pairing Popup is shown on new pairing request.
Usecase:
1. Start advertising from DUT (using BLE Smartertooth app).
2. Scan and connect from central device.
3. Now initiate bond from central and accept pairing request.
   (Consent Pairing Dialog will be shown on DUT)
4. Notification will be received for PASSKEY CONFIRMATION Dialog.
   Do not open notification and let it timeout.
5. Repeat steps 2 and 3. At step 3, Passkey Confirmation pairing
   dialog is show instead of Consent pairing dialog.

Issue:
Wrong Pairing Popup is shown. Passkey Confirmation pairing
dialog is show instead of Consent pairing dialog.

Reproducible Rate: 100%

Root Cause:
PendingIntent created for showing pairing notification are getting
reused as only FLAG_ONE_SHOT is used. This flag is not updating new
extra's in the pending intent.

Fix:
Use flag FLAG_UPDATE_CURRENT in pending Intent.

Test: Tested above mentioned testcase and pairing scenarios.

Fix: 129479787
Bug: 129456113

Change-Id: I46813f355cd796cee1b472774b494c8580b39784
2019-04-08 18:20:36 +00:00
TreeHugger Robot
5c28e42538 Merge "Fix 'Advanced' collapse point on Network & internet page" into qt-dev 2019-04-08 18:15:57 +00:00
Andrew Sapperstein
95c915d9dc Delete carrier entry from mobile network details page.
Followup CL will need to delete the backing code after we remove the feature flag.

Bug: 127540176
Test: robotests and visual inspection
Change-Id: I17e917b9726cf7f5470af09332ede38f8c253eed
2019-04-08 11:15:47 -07:00
Amin Shaikh
6e344a4882 Merge "Fix battery color tint issue." into qt-dev am: f1cea95f3e
am: 3c77da98ca

Change-Id: I0825206c0e857e994f68029f72dd21bba342c1d8
2019-04-08 08:59:09 -07:00
Amin Shaikh
3c77da98ca Merge "Fix battery color tint issue." into qt-dev
am: f1cea95f3e

Change-Id: I75046ab74618c513d70b60fab8f753ea094efbec
2019-04-08 08:37:21 -07:00
Svetoslav Ganov
2aaf200c82 Merge "Update Settings to use the proper DeviceConfig API." into qt-dev am: d5161f8d90
am: 7b5fe13e0c

Change-Id: If30bae1ea756781784b9b6ed673dafd58b32001f
2019-04-08 08:35:50 -07:00
Svetoslav Ganov
7b5fe13e0c Merge "Update Settings to use the proper DeviceConfig API." into qt-dev
am: d5161f8d90

Change-Id: Idc44f6c4358c0061158c4b5715c67bd4a2faca1e
2019-04-08 08:20:14 -07:00
TreeHugger Robot
f1cea95f3e Merge "Fix battery color tint issue." into qt-dev 2019-04-08 15:03:58 +00:00
Svetoslav Ganov
d5161f8d90 Merge "Update Settings to use the proper DeviceConfig API." into qt-dev 2019-04-08 14:54:03 +00:00
Arc Wang
63b4c1ab85 Remove the PreferenceGroup without title in WifiNetworkDetailsFragment
To remove the PreferenceGroup title space.

Bug: 129683066
Test: manual
Change-Id: I00bced8038a01c0ef7e8f4dfa0b82e36a275004e
2019-04-08 20:19:11 +08:00
tmfang
9592a28384 Improve launch time for app & notification screen am: e9f11d6efc
am: f8a56930b6

Change-Id: I4455577eee4709106b308e73481df2c57763d3c2
2019-04-08 04:19:53 -07:00
tmfang
f8a56930b6 Improve launch time for app & notification screen
am: e9f11d6efc

Change-Id: I5572d71f1344b228e7c0ae4785de8159654150e7
2019-04-08 04:14:45 -07:00
clownshen
86f65ef488 Redraw WiFi detail page's header icon
Tint 87% dark in day mode and 100% white for night mode

Bug: 129413562
Test: make RunSettingsRoboTests -j32 ROBOTEST_FILTER=com.android.settings.wifi.details.WifiDetailPreferenceControllerTest
Test: manual test
Change-Id: Ia31231ca7871ac4efcea5e1232690ff4374df5b3
2019-04-08 08:50:12 +00:00
tmfang
e9f11d6efc Improve launch time for app & notification screen
- We won't query recent apps in getAvailabilityStatus().
And then we do that in background thread.
So, we can launch app & notificatins screen as soon as possible.

- Create a RecentAppStatsMixin class which is responsible
for maintaining the recent apps data.

- Controllers and fragment update their UI after they got
onReloadDataCompleted callback from RecentAppStatsMixin.

Test: manual, robotest
Fixes: 128849426
Fixes: 126453868
Change-Id: I636d5878cb5d53496978fe613c625382d8d382bc
2019-04-08 16:40:33 +08:00
Svet Ganov
864765f8b4 Update Settings to use the proper DeviceConfig API.
Exempt-From-Owner-Approval: carry over approval from ag/6908306

bug:124769181

Change-Id: If18d0dc5e55dabf82b7c7a2b6df240fb8b24f736
2019-04-07 22:37:02 -07:00
cnchen
caf122bcb6 Fix fingerprint screens from "Anything else" screen not applying Stencil theme
Bug: 129788677
Test: RunSettingsRoboTests, manual test intent extra data has been passed
Change-Id: Icfae54061e5d87a8ba9c95263d840c456aac5bcb
2019-04-08 03:45:59 +00:00
Antony Sargent
2858c05963 Merge "Don't allow CBRS subscriptions to be set as default for Calls/SMS" into qt-dev am: 6010c3a9a8
am: bc0affa980

Change-Id: I6ac853489bde85a8274ed5dd943443e5ca1ff48a
2019-04-05 22:55:36 -07:00
Christine Franks
8807312990 Merge "Use CDS display white balance getter and setter" into qt-dev am: 65b535f44a
am: b4a96145bb

Change-Id: I1a32a5e19fd47778236614b74549e929a0007909
2019-04-05 22:36:53 -07:00
Fan Zhang
6a2e90f0e3 Merge "Clean up tts preference layout." into qt-dev am: 963ebf576a
am: 0e89993b47

Change-Id: I8e0d8b3ae8704ecad38c577321ddf070cb66cd33
2019-04-05 22:26:17 -07:00
Fan Zhang
d79636445e Merge "Remove mainline module feature flag checks." into qt-dev am: 023fa7fdf9
am: 37017efb9c

Change-Id: I67e68220a79e560b78b617837b35a925ce3dc043
2019-04-05 21:58:05 -07:00
Antony Sargent
bc0affa980 Merge "Don't allow CBRS subscriptions to be set as default for Calls/SMS" into qt-dev
am: 6010c3a9a8

Change-Id: I1b51f0ac7d0bad02552d0f918d01da1b653550b9
2019-04-05 21:16:32 -07:00
TreeHugger Robot
6010c3a9a8 Merge "Don't allow CBRS subscriptions to be set as default for Calls/SMS" into qt-dev 2019-04-06 04:05:32 +00:00
Linda Tseng
f9316fe23d Merge "Remove divider above device switcher in panel" into qt-dev am: 3d46fcd5b4
am: 7d8e6d6fb9

Change-Id: Ia02fd6fe022004221b75cd0ee46409df783e9afe
2019-04-05 20:53:22 -07:00