Commit Graph

7329 Commits

Author SHA1 Message Date
James Lemieux
ad8d702b06 Merge "Fix test cases for impending Robolectric merge" 2018-12-22 01:50:48 +00:00
jackqdyulei
6d70582054 Set default value for mobile listPreference
In some cases we don't set value for listPreference, so we need to set
a default one. This is a bug from code migration.

Change-Id: I8072b2a288a6a1254dceabea963f19459b0a9011
Fixes: 119770064
Test: RunSettingsRoboTests
2018-12-21 15:34:42 -08:00
Kevin Chyn
3205fe6419 Merge "Revert "Get enrollment animation from overlay"" 2018-12-21 22:23:55 +00:00
James Lemieux
db06e1f9b8 Fix test cases for impending Robolectric merge
Bug: 121048884
Test: make -j56 RunSettingsRoboTests
Change-Id: I13568f48b66c79ff6f7806d8bc2c54ba05e7f595
2018-12-21 14:20:11 -08:00
TreeHugger Robot
19ce37648a Merge "Add custom dnd pages for each dnd auto rule" 2018-12-21 21:16:38 +00:00
Kevin Chyn
4cedaafe0e Revert "Get enrollment animation from overlay"
This reverts commit 9ed7cb40cb.

Bug: 111548033
Bug: 121222038
Change-Id: Ic9c85628c45ea5327d0d3b6969034c13789b920c
2018-12-21 10:30:34 -08:00
Christine Franks
a226307b17 Add display white balance setting
Bug: 111215474
Test: make RunSettingsRoboTests -j100
Change-Id: Icf31ff820008740312ad811d0eda72fd3fb90a63
2018-12-21 09:16:01 -08:00
Yanting Yang
6b17d51070 Merge "Limit displayable rows in BluetoothDevicesSlice" 2018-12-21 11:46:45 +00:00
Stanley Wang
2beb5442bb Merge "Implement the Copyable interface to BuildNumberPreferenceController" 2018-12-21 10:39:47 +00:00
Yanting Yang
0fc817bd1b Limit displayable rows in BluetoothDevicesSlice
The maximum displayable row count in current design is 3.
i.e., There are 1 header and 3 rows in a Slice when the number of
Bluetooth device exceeds 3.

Change-Id: Ie585617da0665dde4cbe1ab60a2693e3e1199c27
Fixes: 121308955
Bug: 114807655
Test: visual, robotests
2018-12-21 17:29:23 +08:00
Yanting Yang
040124cca2 Merge "Support Bluetooth activation in BluetoothDevicesSlice" 2018-12-21 03:44:42 +00:00
TreeHugger Robot
0b9740883f Merge "Remove tests in WifiSettingsUiTest" 2018-12-21 03:33:34 +00:00
Stanley Wang
118a712486 Implement the Copyable interface to BuildNumberPreferenceController
Fixes: 121233543
Test: manual and robotests
Change-Id: I4f424be6dfeb2c9fc9ac0bc11b38139f7d52b2b7
2018-12-21 10:57:45 +08:00
TreeHugger Robot
a09d0fdda2 Merge "Schematize Setup Wizard System Properties" 2018-12-21 01:01:49 +00:00
jackqdyulei
2bdefaf68b Remove tests in WifiSettingsUiTest
One is obsolete and one is covered by robo test

Change-Id: I862882c5e1f2f4a7be15b042a8f778a158a9b89c
Fixes: 73796195
Test: atest
2018-12-20 15:55:36 -08:00
Beverly
b9f38af689 Add custom dnd pages for each dnd auto rule
- Fix strings
- Add zen custom settings dialog when custom settings are being applied
Test: make RunSettingsRoboTests -j40
Bug: 111475013
Fixes: 120787133
Fixes: 120796642
Fixes: 120865472
Change-Id: I34d6b4b23d36277e3704416d65e2418418c124e1
2018-12-20 15:06:01 -05:00
TreeHugger Robot
86005a91b3 Merge "Make taps on subscriptions in multi-network header go to mobile page" 2018-12-20 18:59:54 +00:00
Antony Sargent
8e57fedc95 Make taps on subscriptions in multi-network header go to mobile page
This CL does 2 things:

-Makes the MobileNetworkActivity class capable of showing details for
 "available" in addition to just "active" networks. This is useful for
 dual-standby devices where one subscription is active and another is
 registered but not currently active. It also changes the title of this
 screen to be the network display name (defaults to the carrier name
 but can be customized by the user) instead of the generic "Mobile
 network".

-Wires up the subscription entries in the multi-network header (which
 only appears when a device has multiple subscriptions) so that taps on
 a subscription preference bring you to the MobileNetworkActivity screen
 to show details for that network.

Bug: 116349402
Test: make RunSettingsRoboTests
Change-Id: I0e985652c1d8ec3c597b6b6e4426d222e2ad5352
2018-12-20 09:03:34 -08:00
TreeHugger Robot
4bd75b0715 Merge "Implement QR code parser WifiQrCodetest." 2018-12-20 10:05:26 +00:00
Inseob Kim
9d78bf6557 Merge "Remove unused system properties" am: fd0426d438
am: c3eb0887b0

Change-Id: If0837ac203b720b57868c1e6bbb64b05f7f8ffbf
2018-12-20 01:42:16 -08:00
Treehugger Robot
fd0426d438 Merge "Remove unused system properties" 2018-12-20 09:24:39 +00:00
TreeHugger Robot
90e932be83 Merge "Remove unused system properties" 2018-12-20 08:28:58 +00:00
TreeHugger Robot
9d3eddcb66 Merge "Add new layout for Slice half card" 2018-12-20 08:00:33 +00:00
Arc Wang
e1b6712926 Implement QR code parser WifiQrCodetest.
The parser supports standard WI-Fi DPP QR code & ZXing reader library's
Wi-Fi Network config format.

Bug: 118797380
Test: atest WifiQrCodetest
      atest RunSettingsRoboTests

Change-Id: Ia47b8f65a900099749a6aa24afa3abd21ede1582
2018-12-20 15:12:34 +08:00
Pasty Chang
b8af3afff8 Merge "Migrating to new footer button for fingerprint and face enrolling pages." 2018-12-20 07:07:29 +00:00
Mill Chen
3f3823e456 Add new layout for Slice half card
- Extract dismissal view as a layout xml and reuse it in half card
- fixed minor naming convention

This new layout is composed of custom views and the purpose is to
show slice in half width form in contextual homepage.

Bug: 119655434
Test: visual
Change-Id: I224d8bc1b7f95f969f6a134a316bd80b4cd013ee
2018-12-20 14:32:22 +08:00
timhypeng
e7cc5d6431 Replace ArgumentCaptor with getReceiversForIntent()
Bug: 117989208
Test: make -j RunSettingsRoboTests
Change-Id: I0a790a6af4075fbb2228aa77c3a4e237d89e3b98
2018-12-20 01:52:08 +00:00
Inseob Kim
1119bb9399 Remove unused system properties
Properties ro.config.license_path and ro.config.manual_path are not set
from anywhere but only from a test.

Bug: N/A
Test: mma -j
Change-Id: I651405f3a201f5129bf37059e96e7bcc5efa73bf
Merged-In: I651405f3a201f5129bf37059e96e7bcc5efa73bf
2018-12-20 00:33:24 +00:00
TreeHugger Robot
347829525c Merge "Fix test" 2018-12-19 22:24:22 +00:00
Yanting Yang
5416342343 Support Bluetooth activation in BluetoothDevicesSlice
- Show available media devices only.
- Support activation for available media devices.

Bug: 114807655
Test: visual, robotest
Change-Id: Ie3058598a103a0fedc451a0e4d7f91603dcee0fc
2018-12-20 04:01:21 +08:00
Matthew Fritze
7fa8e3131d Merge "Move Panel to public API" 2018-12-19 19:21:46 +00:00
Philip P. Moltmann
adc1fbc37a Merge "Use new UsbManager#getPorts API" 2018-12-19 19:10:06 +00:00
TreeHugger Robot
9f7927f6d5 Merge "Hide wifi card sometimes." 2018-12-19 17:42:58 +00:00
pastychang
1b1666855e Migrating to new footer button for fingerprint and face enrolling pages.
Bug: 120805516
Test: RunSettingsRoboTests
Change-Id: I89a5e3674b8ba9ec66945c03c9b783664eee214f
2018-12-19 23:24:48 +08:00
Inseob Kim
4b83150687 Schematize Setup Wizard System Properties
Properties accessed across partitions are now schematized and will
become APIs to make explicit interfaces among partitions.

Bug: 117924132
Test: mma -j
Change-Id: I53b16e6d784071a04fe3fe1a9aaac8d5be91077b
(cherry picked from commit d328f613cbe55ba935f23cef081a0f1e1cc40977)
2018-12-19 23:50:36 +09:00
Inseob Kim
4d56f11c4a Remove unused system properties
Properties ro.config.license_path and ro.config.manual_path are not set
from anywhere but only from a test.

Bug: N/A
Test: mma -j
Change-Id: I651405f3a201f5129bf37059e96e7bcc5efa73bf
(cherry picked from commit 31e37683f0e859d355d0bbb57500498cc0de3962)
2018-12-19 12:25:34 +09:00
TreeHugger Robot
0ade53c9b5 Merge "Fix crash in BatteryUtils" 2018-12-19 02:04:29 +00:00
TreeHugger Robot
03653641a2 Merge "Add sliceUri in broadcast intent" 2018-12-19 01:47:11 +00:00
Lei Yu
abcfa26bf6 Merge changes from topic "bluetooth_uri"
* changes:
  Add feature provider for bluetooth settings
  Build infra to inject slice to PreferenceFragment
2018-12-19 01:39:43 +00:00
Ruchi Kandoi
b7251fa693 Add support for FEATURE_NFC_ANDROID_BEAM
Test: Check if app shows the Toggle switch
Bug: 117519147
Change-Id: I395653dd977dc9b149fc343b533d15df71affaf1
2018-12-18 16:08:43 -08:00
Kevin Chyn
549cdc66ad Merge "Show Choose/ConfirmLock before showing BiometricEnrollIntroduction" 2018-12-18 23:53:43 +00:00
jackqdyulei
2def5ccb6c Fix crash in BatteryUtils
When enhanced estimation is enabled, it may still have malfunction
when getting data from it. This CL handles this case and fall back
to default estimation.

Change-Id: Id8d75b07316afa8a73a302b49dc7f8e8b77d4fa4
Fixes: 121213171
Test: RunSettingsRoboTests
2018-12-18 15:26:07 -08:00
Fan Zhang
c002cd5d5e Fix test
Change-Id: I47d2533295e4cbf8f11654d4d3ee2740f971ad67
Fixes: 119829673
Test: robotests
2018-12-18 14:54:38 -08:00
jackqdyulei
bdc4ea6336 Add feature provider for bluetooth settings
Also add method to get settings uri for specific device. Use feature
provider here because it give us more flexibility.

Bug: 120803703
Test: RunSettingsRoboTests
Change-Id: I6f4840e76279c02a75b95fdecd822a72cb0b42e5
2018-12-18 14:42:49 -08:00
jackqdyulei
cf6374e427 Build infra to inject slice to PreferenceFragment
Reuse the PreferenceController and LayoutPreference however create
specific one for slice:
1. SlicePreference: container to inject slice view
2. SlicePreferenceController: handle updates for slice

Also add styles for it with default layout.

Bug: 120803703
Test: RunSettingsRoboTests

Change-Id: I6ab083ad57117e6198dcba37702a25213da78719
2018-12-18 14:38:25 -08:00
Hongming Jin
f969bb48e7 Merge "Add special apps access settings page for financial app." 2018-12-18 22:20:40 +00:00
Kevin Chyn
69e8a089d7 Show Choose/ConfirmLock before showing BiometricEnrollIntroduction
Skip button is now shown when ChooseLock is launched by
BiometricEnroll, otherwise users are forced to use passwords
(maybe good thing?)

Bug: 111548033

Test: Pin/pattern/pass must be set/confirmed before enrollment
Test: Able to enroll FP in SUW and Settings

Change-Id: Ic4bbeb539e4bf01c1c402dec308943292b43406d
2018-12-18 13:59:45 -08:00
Hongming Jin
43374eabb8 Add special apps access settings page for financial app.
Test: manual test in settings app
Bug:111207447
Change-Id: Ifa3afba2fbfd2f874deeea35f5735ac3459eed17
2018-12-18 12:38:52 -08:00
Raff Tsai
f7a6d94863 Add sliceUri in broadcast intent
Bug: 119748954
Test: robolectric
Change-Id: I24eb8d5a274be60ba3395d05d2b306e185e7dcab
2018-12-19 02:29:52 +08:00
Fan Zhang
0db4ead2b3 Hide wifi card sometimes.
When there is a connected wifi, we now hide the wifi slice card.

However, if we initially shows this card but later wifi is connected
while the card is visible, we keep showing this card to avoid janky
animation. The card will be gone if user nagivates to a different UI and
comes back.

- Create a new slice ContextualWifiSlice for homepage use case, all
  special logic for homepage are added here.
- Change reference for WIFI_SLICE to CONTEXTUAL_WIFI_SLICE where make
  sense.

Change-Id: Ibd87f88058f357aabef0f7d68a5bf48350d75b06
Fixes: 121040746
Test: robotests
2018-12-18 10:18:08 -08:00