Commit Graph

50787 Commits

Author SHA1 Message Date
Michael Groover
961e55309c Merge "Add Sensors Off QS developer tile" 2019-03-22 00:34:21 +00:00
Mill Chen
a77a05d5ae Add keywords for wifi slice
Wifi slice didn't have a bunch of keywords for search, so users have to
type full matched text to search for wifi setting. We added keywords for
wifi slice to fix it, in which keywords are defined in strings.xml.

Fixes: 109922806
Test: rebuild
Change-Id: Ibe3b65c186cf6f43ae744c1f478d8985e270374c
2019-03-21 17:21:33 -07:00
TreeHugger Robot
8a26152a50 Merge "Make conditional work properly when toggle it in QS" 2019-03-22 00:16:45 +00:00
Mady Mellor
982236bd79 More strings for bubble settings
Test: it compiles
Change-Id: I92964a1864fbe0bca243db424495afd399ade4cc
2019-03-21 16:59:37 -07:00
Fan Zhang
e3cee29472 Merge "Remove reference to R.id.summary_container." 2019-03-21 23:41:58 +00:00
TreeHugger Robot
3f7cbc7c54 Merge "Update string for app storage settings" 2019-03-21 23:41:15 +00:00
TreeHugger Robot
0847f14097 Merge "Clean up the hard cache in SettingSliceProvider." 2019-03-21 23:23:45 +00:00
Matthew Fritze
1c60b80084 Fix Slices in Panel no-op bug
Slices in panels stopped changing the underlying settings.

It is not always reproducible, but the error happend when PendingIntents
started failing to fire, and thus not connecting with the Broadcast
Receiver in Settings dedicated to handling Slice changes.

This fix always highlighted that we shouldn't be using TaskAffinity,
because there is no guarantee 3p apps don't spoof it.

In order to fix both the PendingIntent issue, and to de-dupe activities
from Settings vs Settings Panels: we use 'documentLaunchMode=always' instead.

Fixes: 129006165
Test: manual
Test: atest SettingsPanelTest
Change-Id: If94dd719a2e33c85c04a416868f565f719941234
2019-03-21 14:43:12 -07:00
Fan Zhang
a8291be3a9 Clean up the hard cache in SettingSliceProvider.
It doesn't need to be a map.

Bug: 129002750
Test: manual
Change-Id: If784dfe4fb497414a04dc5fa8c8374731539d8ed
2019-03-21 14:12:38 -07:00
Mill Chen
bd10886288 Make conditional work properly when toggle it in QS
Some conditionals do not work properly when users toggle its state in
QS, the cause is that these conditionals don't have a way to monitor the
status changed. Make RecyclerView handle onWindowFocusChanged event and
make sure that conditionals can update the status when going back to
Settings from QS.

Bug: 118387886
Bug: 123171638
Bug: 123167705
Test: visual, robotests
Change-Id: Ib3bb9bf43afaa58726502eea1e98bcf602bc3677
2019-03-21 13:28:25 -07:00
jackqdyulei
8eff5deeac Update strings for battery settings
Bug: 112285389
Test: Build
Change-Id: I0be0a4b4ddd18be12a277526711bf88e7f333c5c
2019-03-21 12:56:36 -07:00
Fan Zhang
92fad094b0 Update string for app storage settings
Fixes: 128347544
Test: visual
Change-Id: I4dd803a04301b39d7f2de8f61eb7d193f8164d0b
2019-03-21 12:45:26 -07:00
TreeHugger Robot
b4ae464e99 Merge "Show connecting and connected messages on the header subtext of Wi-Fi slice" 2019-03-21 19:27:04 +00:00
Rubin Xu
eba6d5db52 Do not relaunch ConfirmLock after rotation
Bug: 122712696
Test: manual
Change-Id: I44fdbdb54b42c3a680bd83fc21c00e5769b83151
2019-03-21 17:44:57 +00:00
Mady Mellor
e57cd2478e Merge "Update bubbles strings in settings" 2019-03-21 17:29:27 +00:00
TreeHugger Robot
08e2a5f0f4 Merge "Change Suggestion dismiss day" 2019-03-21 16:57:33 +00:00
TreeHugger Robot
a480df53de Merge "RuntimePermissionUsageInfo.getName() now returns a String." 2019-03-21 16:56:15 +00:00
Beverly
efd88a9a7c Move WakeScreenGesturePrefController
Test: n/a
Bug: 127955764
Change-Id: Ib4ca072e1ade3d2c0fd015e25d95807d8804d74d
2019-03-21 10:13:19 -04:00
TreeHugger Robot
8ef991f979 Merge "Remove tint to show rainbow drawable on Bluetooth devices slice" 2019-03-21 13:25:28 +00:00
Julia Reynolds
f7b793f808 Merge "Add settings for individual NAS components" 2019-03-21 13:09:00 +00:00
TreeHugger Robot
fc38c5c04e Merge "Revert layout transition from slice view" 2019-03-21 12:00:28 +00:00
tmfang
4b8eccb519 Clean up manage_applications_apps.xml
Since LinearLayout have only one view(FrameLayout),
LinearLayout is redundant.

It can improve a bit render time.

Test: Open App info screen
Fixes: 124702325
Change-Id: I368b20c5f9916b876586dab71eac43512664d15b
2019-03-21 19:29:49 +08:00
Jason Chiu
b056c3a2b6 Show connecting and connected messages on the header subtext of Wi-Fi slice
Fixes: 128631698
Test: robotest
Change-Id: I1ea2a65d09eca9b3dd06f56c4ae69ef7f68ffd86
2019-03-21 18:49:09 +08:00
Yanting Yang
02aee793f9 Remove tint to show rainbow drawable on Bluetooth devices slice
Bluetooth icon has changed to rainbow icon. These new icons will be
abnormal if apply tint to them.

Fixes: 129038598
Test: visual
Change-Id: Ic02d226a46c36bb0b80f00b2e30d31a311e14e2f
2019-03-21 18:17:55 +08:00
Annie Meng
c1d4c47711 Merge "Use new dataManagementLabel AIDL in Backup Settings" 2019-03-21 10:17:09 +00:00
Yanting Yang
1cdb780526 Revert layout transition from slice view
Fixes:129002765
Test: visual
Change-Id: Ice56eb0ee5cd6018927271ab33ad9dd3321953b1
2019-03-21 16:59:47 +08:00
Michele Berionne
5c68865a88 Merge "Modified MultiSim APIs" 2019-03-21 08:01:43 +00:00
Raff Tsai
165708d793 Change Suggestion dismiss day
Fixes: 129021859
Test: manual
Change-Id: I2da7a0c23f9e266b18482f9593e987287ca9e1f0
2019-03-21 15:57:56 +08:00
TreeHugger Robot
6666c7dabb Merge "Revert "Import statsdprotolite library to use atoms.proto"" 2019-03-21 06:32:27 +00:00
Arc Wang
815d9bf1f2 Add strings for adding a different Wi-Fi Easy Connect entry point
Bug: 129031195
Test: NA
Change-Id: I392148328552c268ff6a57836efa9987f4680b39
2019-03-21 14:31:25 +08:00
TreeHugger Robot
b9e6f894c3 Merge "Add divider line in Preference for scan QR code button and share hotspot button" 2019-03-21 06:26:27 +00:00
Arc Wang
abfd8ab726 Improve Wi-Fi Easy Connect lock screen UI information
1. Change lock screen title and remove description
2. In QR code generator screen, change summary and show password under QR code picture

Bug: 128920152
Bug: 128576809
Test: manual test
Change-Id: Id096d7f417308df14ffe50c618644750aa991df8
2019-03-21 14:09:22 +08:00
cosmohsieh
ed2fac12f5 [Network Connection] Start dialog as affinity activity
Use affinity to keep a clear back stack to prevent caller activity from
stopped stage. If there is only NetworkRequestDialog activity in back stack,
caller will not be covered and then only become paused stage.

Bug: 128995251
Test: manual
Change-Id: I552b942810c919a41a690beff523a01aba1e4d0b
2019-03-21 05:57:19 +00:00
TreeHugger Robot
4a6b8a608c Merge "[Network Connection] Implement Unavailable callback when the user cancels" 2019-03-21 05:48:17 +00:00
Chen Xu
ea3a25ea83 Merge "Create TM for each subId to register phonestatelistner" 2019-03-21 05:39:19 +00:00
TreeHugger Robot
3c2a508463 Merge "[Issue fix] Hearing aids subtitle status is not updated." 2019-03-21 05:30:35 +00:00
cosmohsieh
3babe9e908 [Network Connection] Don't dismiss dialog when touching outside of
dialog

To Improve user experience, prevent dialog dismissing from touching outside
of the dialog

Bug: 128877712
Test: atest NetworkRequestDialogFragment
Change-Id: Idfa90c3647f5cf766aaa63fdb8a829fec5db5934
2019-03-21 13:22:36 +08:00
TreeHugger Robot
55cbba6073 Merge "Use "Disable"/"Enable" for system app" 2019-03-21 04:45:23 +00:00
lucaslin
411435b669 Modify dialog message for partial connectivity
In some networks, network validation may only get success
result for http probe but fail result for https probe.
For this kind of network, it may still work at some websites
or apps, but user didn't know about that. In order to fix this
issue, we will check if network has partial connectivity and
notify user to make a choice if they want to use this partial
connectivity or not.

Bug: 113450764
Bug: 128489091
Test: 1. Build pass.
      2. make -j44 RunSettingsRoboTests
      ROBOTEST_FILTER=WifiDetailPreferenceControllerTest
      3. Change captive_portal_https_url to https://invalid.com
      to simulate partial connectivity.

Change-Id: I0e87f6f2ede173f45a7b6fcf842b4f9a83d8efa1
Merged-In: I0e87f6f2ede173f45a7b6fcf842b4f9a83d8efa1
2019-03-21 12:10:02 +08:00
TreeHugger Robot
ff02854e9a Merge "Remove hardcoded height for SliceView" 2019-03-21 04:02:48 +00:00
Arc Wang
890f3a4340 Add divider line in Preference for scan QR code button and share hotspot button
Bug: 128940862
Test: manual test
Change-Id: If576f0840cc8924b63348f04fe12c3a0d4edcb89
2019-03-21 10:48:55 +08:00
Raff Tsai
20308f735d Revert "Import statsdprotolite library to use atoms.proto"
This reverts commit 7ba77ceadf.

Reason for revert: <increase settings apk size>

Change-Id: I39bfebf3f50f997d7b36ed80ac6302a4529a6432
2019-03-21 02:48:18 +00:00
Lucas Lin
f32823bc6d Merge "Modify dialog message for partial connectivity" 2019-03-21 02:34:03 +00:00
Yanting Yang
e2914e0845 Merge "Improve notification slice string on home page" 2019-03-21 02:04:22 +00:00
Mady Mellor
dde0b7717e Update bubbles strings in settings
Test: manual - check that the strings are right
Change-Id: I9aeb80abb868ff73bbb9b1481d8f3793a6b451e5
2019-03-20 18:59:39 -07:00
cosmohsieh
5944fa9427 [Network Connection] Implement Unavailable callback when the user cancels
UI should invoke NetworkRequestUserSelectionCallback.reject() callback when the user clicks cancel.

Bug: 128876386
Test: atest NetworkRequestDialogFragment
Change-Id: Ia5faedf8cc7113a602a4cda10b3252d02c3c8876
2019-03-21 09:37:49 +08:00
tim peng
18979c5313 [Issue fix] Hearing aids subtitle status is not updated.
- Replace LifecycleObserver library with androidx.lifecycle

Bug: 128470997
Test: make -j50 RunSettingsRoboTests
Change-Id: I6d59d8b888dcb374c346a94a1ad38956317576bf
2019-03-21 01:24:10 +00:00
Michele
3dafea2641 Modified MultiSim APIs
Capitalize S in Multisim.
isMultiSimSupported should return three states, to describe the three possible cases
(hardware not supported, hardware supported but carrier restricted, available)

Bug: 128524079
Test: compilation
Change-Id: Ic52496e326d1398384e5fe22587a236e5352fc4f
2019-03-20 17:51:16 -07:00
Clown SHEN
f5d2552b7a Merge "Add new string for toast to notify user Wi-Fi not in range" 2019-03-21 00:43:37 +00:00
chen xu
96d0c484f3 Create TM for each subId to register phonestatelistner
To register phonestatelistner for different subscription, do not
create phonestatelistener(subId) this contructor is going to be removed.
instead, create TelephonyManager instance for each subId and pass
separate phonestateListener object.

Bug: 117555407
Test: Maunal test
Change-Id: Ia2a1be6e559c3a5b98e178a02d0eee14cc14eb47
2019-03-20 17:28:26 -07:00