Commit Graph

7739 Commits

Author SHA1 Message Date
TreeHugger Robot
0e08cfa095 Merge "Reduce scope for some methods in SliceFeatureProvider" 2019-03-14 19:15:49 +00:00
TreeHugger Robot
0dbefb0000 Merge "Disable avatar and contextual cards on low ram devices." 2019-03-14 16:59:59 +00:00
Cosmo Hsieh
135d90ac9b Merge "[Passpointv2] Implement DataUsage header for Wi-Fi detail fragment" 2019-03-14 10:10:54 +00:00
cosmohsieh
976995fa36 [Passpointv2] Implement DataUsage header for Wi-Fi detail fragment
Change header to a data usage chart of the specified Wi-Fi network.

Bug: 124700353
Test: make RunSettingsRoboTests -j32 ROBOTEST_FILTER=com.android.settings
Change-Id: Ide08ffd5e97ced5fe54707562690155414598dac
2019-03-14 16:41:08 +08:00
Fan Zhang
6120d57cbc Reduce scope for some methods in SliceFeatureProvider
Bug: 123937830
Test: rebuild
Change-Id: I62db60e8313fc94324b476642fe27a215b76b33d
2019-03-13 15:33:52 -07:00
Fan Zhang
6a312ab57a Merge "Fix robotests" 2019-03-13 21:57:09 +00:00
Fan Zhang
d4671b41b1 Merge "Refactor CustomSliceManager." 2019-03-13 21:32:51 +00:00
Fan Zhang
2014d16e46 Fix robotests
Fixes: 128536554
Test: rerun robotests
Change-Id: Ife81f9d161fc416a63a9b2f04ce2ae4f9a1e74db
2019-03-13 14:31:43 -07:00
Fan Zhang
d482da51e5 Disable avatar and contextual cards on low ram devices.
Fixes: 124127763
Test: robotest & manually inspected hprof
Change-Id: I8d328b782a9b1871b76edf433d2378d06face14a
2019-03-13 14:04:35 -07:00
Matthew Fritze
cc50a4a540 Disable Moblie Data Slice in AP mode
When airplane mode is enabled, users should not be able to
change the value of mobile data. Thus, when airplane mode is enabled,
replace the Slice with a no-op slice explaining why it cannot be
changed.

Fixes: 119411534
Fixes: 126726036
Test: robotests
Change-Id: I991fe05ad8f18004f77fbf1c87403de602d3a267
2019-03-13 09:07:19 -07:00
TreeHugger Robot
166fffd162 Merge "Suppress search from one of the build number prefs." 2019-03-13 01:10:04 +00:00
Fan Zhang
1ef08ae814 Fix robotests
This is related to settings_network_and_internet_v2 flag turn on. Some
tests were assuming old flag behavior.

Fixes: 128356137
Test: robotests
Change-Id: I4eca49f24ad5a10a0fb40f2c02a2d139ba4cb1a4
2019-03-12 16:50:28 -07:00
Fan Zhang
2fe7e9fc45 Refactor CustomSliceManager.
- Make everything that can be static, static.
- Also removed a unused slice for battery info.

Next step - going to make CustomSliceManager into a regular class
instead of getting it from FeatureProvider. This way it's no longer an
application level singleton, then we can do things like attaching
lifecycle to it. It will be easier to deal with "session" based use case
after the refactor

Bug: 123937830
Test: manual
Change-Id: I384761a6894fa907f72a3610437835c4dd4d1944
2019-03-12 16:42:12 -07:00
Fan Zhang
e2eefcd163 Suppress search from one of the build number prefs.
And make the search-enabled one copyable.

Fixes: 127962713
Test: search
Change-Id: I0867ea8a376e3aac5e94cd70245833b516bb154d
2019-03-12 15:54:52 -07:00
TreeHugger Robot
40d8ac2968 Merge "Hide network & internet top level entry for demo users." 2019-03-12 22:10:39 +00:00
Fan Zhang
717d4137b1 Hide network & internet top level entry for demo users.
Fixes: 113705941
Test: robotest
Change-Id: I72fdc4c7221963ae61e037c709b5158c207bd3e4
2019-03-12 12:44:26 -07:00
Salvador Martinez
f087a4cf60 Merge "Remove airplane mode restriction on hotspot" 2019-03-12 18:27:36 +00:00
TreeHugger Robot
76c3a0c90a Merge "Update screen lock complexity permission to password complexity" 2019-03-12 16:22:11 +00:00
timhypeng
abdf739071 Sound + Output Switcher on Sound Setting
1. Show "play media to" item when Previously Connected device is available
2. Click "Play media to" to launch output slice
3. Update test case

Bug: 126475101
Test: make -j50 RunSettingsRoboTests
Change-Id: Id8afd1a2407acb78c11e81d2420ae8c16130a321
2019-03-12 03:07:36 +00:00
TreeHugger Robot
94240c5a52 Merge "Update output switcher behavior and UI design" 2019-03-12 02:50:02 +00:00
Hall Liu
843290ccb8 Merge "Add description for Wi-Fi calling mode" 2019-03-12 01:40:43 +00:00
TreeHugger Robot
a07961a4bf Merge "Revert "Disable Moblie Data Slice in AP mode"" 2019-03-12 01:37:54 +00:00
TreeHugger Robot
b54224ef1d Merge "Make settings do nothing if ranking for a card is invalid" 2019-03-12 01:17:33 +00:00
TreeHugger Robot
08a2a8183e Merge changes I54a3f033,I2e894501
* changes:
  Fix [a11y] Wi-Fi Easy Connect Talkback issues
  Support to share Wi-Fi hotspot via QR code
2019-03-12 00:42:40 +00:00
Matthew Fritze
350ad14f10 Revert "Disable Moblie Data Slice in AP mode"
This reverts commit 6b065caf7e.

Reason for revert: flaky test: b/128355821

Change-Id: I4fccac1bf7978c5743bde9dd9bb0b76ea4733d2b
2019-03-11 23:58:41 +00:00
Fan Zhang
0d093fd1e1 Make settings do nothing if ranking for a card is invalid
Fixes: 124386997
Test: robotests
Change-Id: Ib01c75ec0490cdc034255300a09e8099e05fc389
2019-03-11 16:17:58 -07:00
Kazuya Ohshiro
c449048ac1 Add description for Wi-Fi calling mode
Replace the view of dialog with custom view that adds description
as summary.

Test: manual
Bug: 34793636
Change-Id: If9792b0a35c59c1260176b4b2c62107861de73b5
2019-03-11 13:21:51 -07:00
Quang Luong
252ae8bed0 Merge "Use getTitle() for AccessPoint display name" 2019-03-11 19:46:03 +00:00
TreeHugger Robot
5cc0a77c56 Merge "Use a boolean Consumer instead of RoleManagerCallback." 2019-03-11 17:22:39 +00:00
bernardchau
46ccd797ac Update screen lock complexity permission to password complexity
This is to match the method name "getPasswordComplexity" as requested by API review feedback

Bug: 128030136
Test: N/A
Change-Id: Ia4ce1b0ceb581608615364b41a05ca71142ef2b7
2019-03-11 16:39:08 +00:00
Kevin Chang
ece6d94b57 Merge "Add test cases for BalanceSeekBar" 2019-03-11 08:21:13 +00:00
hughchen
e13e09d1b4 Update output switcher behavior and UI design
- Remove media stream stuff, use active device info as header.
- Show the sub title of media device.
- Add new requirement, when user click disconnected bluetooth device,
  will auto connceted it.
- When bluetooth state is off, do not showing content of slice.

Bug: 127201385
Test: make -j42 RunSettingsRoboTests
Change-Id: Ie1880ba3ef9910a42caf0cca2b6502e54787f5a0
2019-03-11 11:44:27 +08:00
Kevin Chang
a22bd67d5c Add test cases for BalanceSeekBar
Bug: 123722274
Test: Manual
      make RunSettingsRoboTests ROBOTEST_FILTER=BalanceSeekBar

Change-Id: Ie6b560b2f92d78a0d3bd7ddb0e0d0a85c7803827
2019-03-11 10:46:13 +08:00
Salvador Martinez
b94251ad07 Remove airplane mode restriction on hotspot
This isn't needed anymore since we support this now.

Test: robotests
Bug: 111681176
Change-Id: I0292f0a38347e4fa3414170e0351a53f5997a192
2019-03-08 16:34:57 -08:00
Quang Luong
0df143834a Use getTitle() for AccessPoint display name
Instead of getSsidStr(), AccessPoint display names should use
getTitle() to accomodate Passpoint networks which use a provider
name instead of a single ssid. This change allows the provider
name to be displayed in the network details page, the long
press wifi dialog, and the config editing dialog.

Bug: 118705403
Test: atest WifiSettingsTest
Change-Id: I930d6218c7e464ad20c0c61130e0cb9ce315d9a2
2019-03-08 14:42:29 -08:00
Hai Zhang
93cfd2e28e Use a boolean Consumer instead of RoleManagerCallback.
And use RemoteCallback for it under the hood. This removes one AIDL
interface and allows using lambda, while aligning with what
PermissionControllerService does.

Bug: 127691087
Test: manual
Change-Id: I7af28be2df5f84ffcd040a80884efe7c08e2d067
2019-03-08 14:33:30 -08:00
TreeHugger Robot
a51b5f8756 Merge "Use RoleControllerService for role related APIs." 2019-03-08 21:51:25 +00:00
TreeHugger Robot
3bcfd763ef Merge "Disable Moblie Data Slice in AP mode" 2019-03-08 19:24:43 +00:00
TreeHugger Robot
28ad28d4be Merge "Revert "Revert "Change battery tip text""" 2019-03-08 19:15:24 +00:00
TreeHugger Robot
173a86275a Merge "Add Wifi Panel" 2019-03-08 19:13:08 +00:00
Salvador Martinez
790d4a3bd7 Merge "Create preference to allow user to toggle sticky battery saver" 2019-03-08 17:17:25 +00:00
Raff Tsai
deda67b7bf Revert "Revert "Change battery tip text""
This reverts commit 39beb2533f.

Reason for revert: <start to implement>

Fixes: 121042353
Test: adb shell settings put global battery_tip_constants test_low_battery_tip=true
      Then go to Settings -> battery to see the text

Change-Id: I83cc187d5bfda5312410e91ee636373f305ef449
2019-03-09 00:14:29 +08:00
TreeHugger Robot
e6e073f6aa Merge "Do not allow draw on top for App notification settings" 2019-03-08 13:52:18 +00:00
Raff Tsai
476b9050e8 Merge "Revert "Change battery tip text"" 2019-03-08 08:54:34 +00:00
Raff Tsai
39beb2533f Revert "Change battery tip text"
This reverts commit 2441b94c6d.

Reason for revert: <wrong commit>

Change-Id: I373fc065eafc81c26a8eba133255f9377d1d5d7f
2019-03-08 08:51:05 +00:00
TreeHugger Robot
760e6b66d8 Merge "Change battery tip text" 2019-03-08 08:50:02 +00:00
Raff Tsai
fe86a2a51f Do not allow draw on top for App notification settings
Fixes: 119115683
Test: manual
Change-Id: Ib7b878a23b4a99171c58b5de992fb87feca8a28a
2019-03-08 16:19:30 +08:00
Yanting Yang
cd5298934b Merge "Fix BluetoothDevicesSlice doesn't appear issue." 2019-03-08 06:50:08 +00:00
TreeHugger Robot
9b628203e7 Merge "Adjust timeout limit of contextual card loading" 2019-03-08 06:26:30 +00:00
Hai Zhang
729f1bb48b Use RoleControllerService for role related APIs.
Move isApplicationQualifiedForRole() and isRoleVisible() from
PermissionControllerService to RoleControllerService.

Bug: 127691087
Test: manual
Change-Id: I87edb1bc457fbbec3d9a87054eaad5024ed91310
2019-03-07 21:33:56 -08:00