OSDN Git Service

android-x86/packages-apps-Settings.git
5 years agoMerge "Fix BandMode Dialog Crash on Open due to Style" am: 7588ef1518 am: 7aacdc2c13
Nathan Harold [Tue, 8 Jan 2019 01:50:20 +0000 (17:50 -0800)]
Merge "Fix BandMode Dialog Crash on Open due to Style" am: 7588ef1518 am: 7aacdc2c13
am: c015a1bac0

Change-Id: I5d1f931b9b5a6dae87d4effd20ec91d6f9114989

5 years agoMerge "Fix BandMode Dialog Crash on Open due to Style" am: 7588ef1518
Nathan Harold [Tue, 8 Jan 2019 01:31:14 +0000 (17:31 -0800)]
Merge "Fix BandMode Dialog Crash on Open due to Style" am: 7588ef1518
am: 7aacdc2c13

Change-Id: I50588e17f07d89daa3a989a72080a4fe695b4729

5 years agoMerge "Fix BandMode Dialog Crash on Open due to Style"
Nathan Harold [Tue, 8 Jan 2019 01:16:52 +0000 (17:16 -0800)]
Merge "Fix BandMode Dialog Crash on Open due to Style"
am: 7588ef1518

Change-Id: I0dd365652f4deac7b69b181317b0dd86610400a7

5 years agoMerge "Fix BandMode Dialog Crash on Open due to Style"
Nathan Harold [Tue, 8 Jan 2019 00:18:21 +0000 (00:18 +0000)]
Merge "Fix BandMode Dialog Crash on Open due to Style"

5 years agoRemove logging for ssids
Salvador Martinez [Mon, 7 Jan 2019 22:35:31 +0000 (14:35 -0800)]
Remove logging for ssids

This is potentially PII so we should not log this. This change
simply removes the lines of logging code.

Test: changing preference does not result in logging
Bug: 117637133
Change-Id: I620ac4cc4eaaf8227b0694e6cc5f9a85d54bc0e8

5 years agoMerge "Fix TODO for mobile network settings"
TreeHugger Robot [Mon, 7 Jan 2019 20:24:13 +0000 (20:24 +0000)]
Merge "Fix TODO for mobile network settings"

5 years agoMerge "Fix ConcurrentModificationException in SliceBackgroundWorker"
TreeHugger Robot [Mon, 7 Jan 2019 20:11:17 +0000 (20:11 +0000)]
Merge "Fix ConcurrentModificationException in SliceBackgroundWorker"

5 years agoFix ConcurrentModificationException in SliceBackgroundWorker
Jason Chiu [Fri, 4 Jan 2019 07:12:19 +0000 (15:12 +0800)]
Fix ConcurrentModificationException in SliceBackgroundWorker

- Two different threads could call SliceBackgroundWorker.getInstance()
  at the same time and caused ConcurrentModificationException
- Add a new API overloading getInstance for each slice to get a nullable
  worker since there is no result data then
- Only slice provider can create a new worker instance in main thread

Test: robotest
Change-Id: I560529bb6034ec22263418adeb7f3ccebf879196
Fixes: 121043385

5 years agoMerge "Refine the conditionals layout"
TreeHugger Robot [Mon, 7 Jan 2019 16:52:27 +0000 (16:52 +0000)]
Merge "Refine the conditionals layout"

5 years agoMerge "Make filter appear floating in ManagerApplication."
TreeHugger Robot [Mon, 7 Jan 2019 14:23:57 +0000 (14:23 +0000)]
Merge "Make filter appear floating in ManagerApplication."

5 years agoRefine the conditionals layout
Mill Chen [Mon, 7 Jan 2019 08:15:08 +0000 (16:15 +0800)]
Refine the conditionals layout

1. Add the minWidth for a button in the condition full tile and adjust
the start margin of the button.
2. Decrease the start padding of the conditional header layout.

Bug: 113451905
Test: visual
Change-Id: I4864730b35154c0bd4b0a806815aa912b19ca3d7

5 years agoMake filter appear floating in ManagerApplication.
tmfang [Mon, 24 Dec 2018 07:09:23 +0000 (15:09 +0800)]
Make filter appear floating in ManagerApplication.

Using new layouts to make filter component appear
floating on top of the page.

The layouts contain the NestedScollView and AppBarLayout.
The NestedScrollView was given a layout_behavior which
defined the behavior of AppBarLayout.

Test: visual
Change-Id: Ia76104f80c6b60ac6c8f5937ebface8e9a7238b5
Fixes: 121148001

5 years agoMerge "Implement slice half card"
Mill Chen [Mon, 7 Jan 2019 08:17:47 +0000 (08:17 +0000)]
Merge "Implement slice half card"

5 years agoMerge "Build a way to decide card width"
Mill Chen [Mon, 7 Jan 2019 08:17:47 +0000 (08:17 +0000)]
Merge "Build a way to decide card width"

5 years agoMerge "Refactor slice renderer to handle different card width"
TreeHugger Robot [Mon, 7 Jan 2019 06:55:31 +0000 (06:55 +0000)]
Merge "Refactor slice renderer to handle different card width"

5 years agoImplement slice half card
Mill Chen [Wed, 19 Dec 2018 16:04:14 +0000 (00:04 +0800)]
Implement slice half card

To display slice in half width form needs to bind slice, extract the
title and the icon from slice, and finally put the title and the icon
into half card layout.

Bug: 119655434
Test: visual, robotests
Change-Id: Ib390f9a45f0ee609eb9e3499bff74136c7616ac3

5 years agoRefactor slice renderer to handle different card width
Mill Chen [Tue, 18 Dec 2018 16:07:17 +0000 (00:07 +0800)]
Refactor slice renderer to handle different card width

- Refactor SliceContextualCardRenderer to support for displaying slice
in half/full width card.
- Add two helper classes to separately deal with different card width.

Only the skeleton of the half card helper is put in this CL, the
implementation hasn't been filled in yet. Will implement the detail in
next CL.

Bug: 119655434
Test: visual, robotests
Change-Id: Iacdc90c23bf41cfa7ccae3c0c70a3b663e89307d

5 years agoMerge "Improve visual - Collapse the conditionals in all cases"
TreeHugger Robot [Mon, 7 Jan 2019 05:29:31 +0000 (05:29 +0000)]
Merge "Improve visual - Collapse the conditionals in all cases"

5 years agoImprove visual - Collapse the conditionals in all cases
Mill Chen [Fri, 4 Jan 2019 13:28:20 +0000 (21:28 +0800)]
Improve visual - Collapse the conditionals in all cases

Changing the threshold value to make collapsing mechanism of conditionals
work in all cases, where the threshold value is changed to 0 from 2.

Bug: 122310542
Test: robotests
Change-Id: I227114acdc6770baa0c133397d08e3ad77f6c572

5 years agoMerge "GUP: Add stub UI"
TreeHugger Robot [Sat, 5 Jan 2019 02:26:04 +0000 (02:26 +0000)]
Merge "GUP: Add stub UI"

5 years agoFix TODO for mobile network settings
jackqdyulei [Wed, 19 Dec 2018 22:52:42 +0000 (14:52 -0800)]
Fix TODO for mobile network settings

1. Add intent filter to MobileNetworkActivity(new page)
2. Add metrics id
3. Remove obsolete TODOs

Bug: 114749736
Test: Manual
Change-Id: I36f41983dc8cc36ccdf548174fc494044ec1b241

5 years agoMerge "Unit test for AppLocationPermissionPreferenceController"
TreeHugger Robot [Fri, 4 Jan 2019 23:53:38 +0000 (23:53 +0000)]
Merge "Unit test for AppLocationPermissionPreferenceController"

5 years agoMerge "Unit test for RecentLocationAccessPreferenceController"
TreeHugger Robot [Fri, 4 Jan 2019 23:00:43 +0000 (23:00 +0000)]
Merge "Unit test for RecentLocationAccessPreferenceController"

5 years agoMerge "Add support for FEATURE_NFC_ANDROID_BEAM" am: 6827785e52 am: 39845367ab
Ruchi Kandoi [Fri, 4 Jan 2019 22:19:23 +0000 (14:19 -0800)]
Merge "Add support for FEATURE_NFC_ANDROID_BEAM" am: 6827785e52 am: 39845367ab
am: a7c886925f

Change-Id: I08ff3b1bd80e913aeec9800b1c5ddce69543ba3c

5 years agoMerge "Add support for FEATURE_NFC_ANDROID_BEAM" am: 6827785e52
Ruchi Kandoi [Fri, 4 Jan 2019 22:07:48 +0000 (14:07 -0800)]
Merge "Add support for FEATURE_NFC_ANDROID_BEAM" am: 6827785e52
am: 39845367ab

Change-Id: Ia7fc968221a6eb314a9ee384e0dd84d3aa0e84b4

5 years agoMerge "Add support for FEATURE_NFC_ANDROID_BEAM"
Ruchi Kandoi [Fri, 4 Jan 2019 21:58:22 +0000 (13:58 -0800)]
Merge "Add support for FEATURE_NFC_ANDROID_BEAM"
am: 6827785e52

Change-Id: I7c71bad831892bf9a853ca5d4777e42c1b3a9171

5 years agoGUP: Add stub UI
Yiwei Zhang [Fri, 28 Dec 2018 03:38:11 +0000 (11:38 +0800)]
GUP: Add stub UI

Bug: 119221883
Test: make RunSettingsRoboTests ROBOTEST_FILTER=GupDashboardTest

Change-Id: I1f7cc66790e1d1e1de5113e28a055ec5d1679013

5 years agoMerge "Add support for FEATURE_NFC_ANDROID_BEAM"
Treehugger Robot [Fri, 4 Jan 2019 21:49:14 +0000 (21:49 +0000)]
Merge "Add support for FEATURE_NFC_ANDROID_BEAM"

5 years agoUnit test for RecentLocationAccessPreferenceController
Lifu Tang [Thu, 27 Dec 2018 00:15:25 +0000 (16:15 -0800)]
Unit test for RecentLocationAccessPreferenceController

Bug: 120910747
Test: run unit test
Change-Id: I5a3e4eb3dd9519f0fa1fe1e3f90612ee1cd5762d

5 years agoUnit test for AppLocationPermissionPreferenceController
Lifu Tang [Thu, 27 Dec 2018 20:33:05 +0000 (12:33 -0800)]
Unit test for AppLocationPermissionPreferenceController

Bug: 120910747
Test: build and run the unit test
Change-Id: Id5f79d0f6b143d1ef5e37d75c27a64b4e1dcd9e0

5 years agoMerge "Prevent ringing gesture uses master switch"
Beverly Tai [Fri, 4 Jan 2019 18:36:56 +0000 (18:36 +0000)]
Merge "Prevent ringing gesture uses master switch"

5 years agoMerge "Fix notification widget's alerting logs"
TreeHugger Robot [Fri, 4 Jan 2019 17:44:37 +0000 (17:44 +0000)]
Merge "Fix notification widget's alerting logs"

5 years agoMerge "RuntimePermissionPresenter was renamed to PermissionControllerManager"
Philip P. Moltmann [Fri, 4 Jan 2019 17:32:43 +0000 (17:32 +0000)]
Merge "RuntimePermissionPresenter was renamed to PermissionControllerManager"

5 years agoFix notification widget's alerting logs
Julia Reynolds [Fri, 4 Jan 2019 16:09:35 +0000 (11:09 -0500)]
Fix notification widget's alerting logs

- Use last alerted time if available
- Read from channel

Test: manual
Change-Id: I5e3ab7e234c9c6766a1a4dffb5636a633f6b5f2e
Fixes: 74495461

5 years agoMerge "Update the icon in BluetoothDevicesSlice"
Yanting Yang [Fri, 4 Jan 2019 14:04:27 +0000 (14:04 +0000)]
Merge "Update the icon in BluetoothDevicesSlice"

5 years agoMerge "Centerize contents of contextual cards and remove white space."
TreeHugger Robot [Fri, 4 Jan 2019 09:26:28 +0000 (09:26 +0000)]
Merge "Centerize contents of contextual cards and remove white space."

5 years agoMerge "Add more Wi-Fi DPP UI features."
Arc Wang [Fri, 4 Jan 2019 08:55:53 +0000 (08:55 +0000)]
Merge "Add more Wi-Fi DPP UI features."

5 years agoUpdate the icon in BluetoothDevicesSlice
Yanting Yang [Fri, 4 Jan 2019 08:49:27 +0000 (16:49 +0800)]
Update the icon in BluetoothDevicesSlice

- By request from UX team, to update the settings icon of end item.
- Also correct the icon to ic_menu_add in pair new device slice action.

Bug: 114807655
Test: visual, robotests
Change-Id: I5e9f533eec953c415cffea1860608291a3c408a5

5 years agoCenterize contents of contextual cards and remove white space.
Yi-Ling Chuang [Fri, 4 Jan 2019 07:43:58 +0000 (15:43 +0800)]
Centerize contents of contextual cards and remove white space.

Decrease the minHeight of the two buttons in the dismissal view and have
the contents centered.

Change-Id: I806e8ccae88e693dc222a13940597fd33684ee70
Fixes: 120086509
Test: visual

5 years agoAdd more Wi-Fi DPP UI features.
Arc Wang [Thu, 3 Jan 2019 10:36:27 +0000 (18:36 +0800)]
Add more Wi-Fi DPP UI features.

1. Update strings and icons.
2. Add more UI features in WifiDppAddDeviceFragment &
   WifiDppChooseSavedWifiNetworkFragment.

Bug: 118794978
Test: manual test
Change-Id: I2bee3f66732a1083fb13c113695899272e98c23e

5 years agoMerge "Change action WIFI_DPP_CONFIGURATOR_CHOOSE_SAVED_WIFI_NETWORK to PROCESS_WIFI_...
TreeHugger Robot [Fri, 4 Jan 2019 03:29:07 +0000 (03:29 +0000)]
Merge "Change action WIFI_DPP_CONFIGURATOR_CHOOSE_SAVED_WIFI_NETWORK to PROCESS_WIFI_DPP_QR_CODE for more intuitive naming."

5 years agoMerge changes from topic "status_bar_80%_white"
TreeHugger Robot [Fri, 4 Jan 2019 03:08:44 +0000 (03:08 +0000)]
Merge changes from topic "status_bar_80%_white"

* changes:
  Fine tune items position of homepage
  Make status bar become 80% of white in homepage.

5 years agoMerge "Fix WiFi calling option is showing in search result regardless the carrier...
Stanley Wang [Fri, 4 Jan 2019 02:12:54 +0000 (02:12 +0000)]
Merge "Fix WiFi calling option is showing in search result regardless the carrier supports VoWiFi or not"

5 years agoChange action WIFI_DPP_CONFIGURATOR_CHOOSE_SAVED_WIFI_NETWORK to
Arc Wang [Thu, 3 Jan 2019 10:09:06 +0000 (18:09 +0800)]
Change action WIFI_DPP_CONFIGURATOR_CHOOSE_SAVED_WIFI_NETWORK to
PROCESS_WIFI_DPP_QR_CODE for more intuitive naming.

This change also caches the Wi-Fi DPP QR code in activity for
fragment to use.

Bug: 118794978
Test: manual test
Change-Id: I4bdb021883cb21ce7cc56edf656d1eee079359e5

5 years agoMerge "Rename updatable graphics driver to Game Update Package."
TreeHugger Robot [Thu, 3 Jan 2019 23:06:35 +0000 (23:06 +0000)]
Merge "Rename updatable graphics driver to Game Update Package."

5 years agoMerge "Update battery dashboard based on spec"
TreeHugger Robot [Thu, 3 Jan 2019 22:17:19 +0000 (22:17 +0000)]
Merge "Update battery dashboard based on spec"

5 years agoMerge "Display BT device even without legal name"
Lei Yu [Thu, 3 Jan 2019 22:14:50 +0000 (22:14 +0000)]
Merge "Display BT device even without legal name"

5 years agoMerge "Add title support for SlicePreference"
TreeHugger Robot [Thu, 3 Jan 2019 21:37:41 +0000 (21:37 +0000)]
Merge "Add title support for SlicePreference"

5 years agoUpdate battery dashboard based on spec
jackqdyulei [Wed, 2 Jan 2019 23:22:55 +0000 (15:22 -0800)]
Update battery dashboard based on spec

Following CL will change "battery suggestion" to card layout.

Bug: 119618813
Test: Screenshot
Change-Id: If71e5c0e4a4e230358aa0c8aa584028082f31d2e

5 years agoMerge "Release the media player when the video preference is not visible."
TreeHugger Robot [Thu, 3 Jan 2019 20:15:33 +0000 (20:15 +0000)]
Merge "Release the media player when the video preference is not visible."

5 years agoRuntimePermissionPresenter was renamed to PermissionControllerManager
Philip P. Moltmann [Fri, 21 Dec 2018 18:22:50 +0000 (10:22 -0800)]
RuntimePermissionPresenter was renamed to PermissionControllerManager

The new name better matches the functionality

Test: Looked at the settings pages affected and verified data that came
      from the service
Change-Id: I796b93b0491a24b0cf857d17659f79660a8fc18a

5 years agoRename updatable graphics driver to Game Update Package.
Peiyong Lin [Wed, 26 Dec 2018 21:21:40 +0000 (13:21 -0800)]
Rename updatable graphics driver to Game Update Package.

We have rebranded this project to Game Update Package, and GUP for short.

BUG: 119221883
Test: Build, flash and boot. Verify by going to developer options.
Change-Id: Ibc0814b6cd1e9bee991624c925456bc330fd93c6

5 years agoAdd title support for SlicePreference
jackqdyulei [Thu, 3 Jan 2019 18:35:39 +0000 (10:35 -0800)]
Add title support for SlicePreference

Bug: 120803703
Test: Manual
Change-Id: Icc529515a82430aa2cab869b9c85c855e47798ce

5 years agoPrevent ringing gesture uses master switch
Beverly [Wed, 2 Jan 2019 23:25:00 +0000 (18:25 -0500)]
Prevent ringing gesture uses master switch

Test: make ROBOTEST_FILTER=PreventRingingGesturePreferenceControllerTest RunSettingsRoboTests
Test: make ROBOTEST_FILTER=PreventRingingSwitchPreferenceControllerTest RunSettingsRoboTests
Change-Id: Iaf356ccd3623e67c39810955093fc353ae0d10a0
Fixes: 119787033

5 years agoFix BandMode Dialog Crash on Open due to Style
Nathan Harold [Thu, 3 Jan 2019 04:39:06 +0000 (20:39 -0800)]
Fix BandMode Dialog Crash on Open due to Style

This sidesteps an error saying that the radio
BandMode activity must inherit from an AppCompat
style. Instead the window is now full-screen and
matches the theme of the RadioInfo menu.

Bug: 117571514
Test: manual - open the activity without a crash and
      verify that the new style change is effective.
Change-Id: I6e49d731e039709db43dfa6531723781e9e48640

5 years agoMerge "Add display white balance setting"
Christine Franks [Thu, 3 Jan 2019 16:25:28 +0000 (16:25 +0000)]
Merge "Add display white balance setting"

5 years agoBuild a way to decide card width
Mill Chen [Tue, 11 Dec 2018 16:31:33 +0000 (00:31 +0800)]
Build a way to decide card width

Slice cards in contextual homepage are shown as half card or full card.
We will use Category field of ContextualCard to decide card width.

In this CL, also fixed the problem of not showing full card after a
consecutive suggestion card dismissal.

Bug: 119655434
Bug: 121315057
Test: visual, robotest
Change-Id: I3243b9db21b8f288cab88238b20d7d50a2a20d46

5 years agoMerge "Show "Done" button to prevent user from getting stuck"
TreeHugger Robot [Thu, 3 Jan 2019 07:20:19 +0000 (07:20 +0000)]
Merge "Show "Done" button to prevent user from getting stuck"

5 years agoMerge "Adjust landscape layout of QR code scanner/generator"
Johnson Lu [Thu, 3 Jan 2019 05:49:22 +0000 (05:49 +0000)]
Merge "Adjust landscape layout of QR code scanner/generator"

5 years agoFix WiFi calling option is showing in search result regardless the carrier supports...
Stanley Wang [Fri, 28 Dec 2018 10:39:47 +0000 (18:39 +0800)]
Fix WiFi calling option is showing in search result regardless the carrier supports VoWiFi or not

Change Availability Status to UNSUPPORTED_ON_DEVICE when device doesn't
support VoWiFi.

Change-Id: I8ac501cf7442f1cd7d41f61d2db912d82a9e8c25
Fixes: 120806624
Test: manual and robotests

5 years agoRelease the media player when the video preference is not visible.
Raff Tsai [Wed, 2 Jan 2019 09:07:22 +0000 (17:07 +0800)]
Release the media player when the video preference is not visible.

Mediaplayer is not released when the device is paused, and hence it
keep consuming battery.

Fixes: 120945749
Test: adb root && watch -n 0.5 -d "adb shell cat /sys/kernel/debug/msm_vidc/core0/inst*/info\|egrep -i \"height\|width\|instance\|fps\|name\""
      Use above command to check if any decoder instance exists.

Change-Id: Ia0edbba0c2fd3c70753bc36d23d82c0770f95672

5 years agoMerge "Update Settings text styles to use DeviceDefault."
TreeHugger Robot [Thu, 3 Jan 2019 04:03:16 +0000 (04:03 +0000)]
Merge "Update Settings text styles to use DeviceDefault."

5 years agoFine tune items position of homepage
tmfang [Tue, 25 Dec 2018 11:22:46 +0000 (19:22 +0800)]
Fine tune items position of homepage

Since homepage becomes full screen and status bar is 80% of white,
some homepage items are overlappd by status bar.

Enlarge padding size and add a space for fixing this problem.

Test: visual
Bug: 116346521

Change-Id: I7bc9e9a08adafb8fe38bedf527199e4db4424fd0

5 years agoMake status bar become 80% of white in homepage.
tmfang [Tue, 25 Dec 2018 07:18:07 +0000 (15:18 +0800)]
Make status bar become 80% of white in homepage.

Test: visual
Change-Id: I005b49306e4c397d9f1fc5062da721709f303a1d
Fixes: 116346521

5 years agoAdjust landscape layout of QR code scanner/generator
Johnson Lu [Thu, 3 Jan 2019 03:41:26 +0000 (11:41 +0800)]
Adjust landscape layout of QR code scanner/generator

Bug: 118794858
Test: RunSettingsRoboTests
Change-Id: Ifaef7c5fe02abbb377efeb0ab345976ab439aeb0

5 years agoMerge "Use settings gear widget layout"
TreeHugger Robot [Thu, 3 Jan 2019 02:36:31 +0000 (02:36 +0000)]
Merge "Use settings gear widget layout"

5 years agoMerge "Add the missing unit test"
TreeHugger Robot [Thu, 3 Jan 2019 01:19:38 +0000 (01:19 +0000)]
Merge "Add the missing unit test"

5 years agoMerge "Add lost prefController to WifiTetherSettings"
Lei Yu [Wed, 2 Jan 2019 23:07:08 +0000 (23:07 +0000)]
Merge "Add lost prefController to WifiTetherSettings"

5 years agoAdd the missing unit test
Lifu Tang [Thu, 27 Dec 2018 19:43:50 +0000 (11:43 -0800)]
Add the missing unit test

Bug: 120910747
Test: build and run the unit test
Change-Id: Id1feb51a1577e9d0c90bff812d78e581e5dc5168

5 years agoDisplay BT device even without legal name
jackqdyulei [Wed, 2 Jan 2019 21:49:19 +0000 (13:49 -0800)]
Display BT device even without legal name

So user has ability to forget this device in settings app.

Change-Id: I756df1e3df1a14c00ad7c68c34b6ad6ccc8d835c
Fixes: 120474281
Test: Manual

5 years agoUse settings gear widget layout
Beverly [Wed, 2 Jan 2019 20:59:09 +0000 (15:59 -0500)]
Use settings gear widget layout

Instead of a custom image view for zen_rule_widget

Test: manual
Change-Id: I9e2bd75a8fa661434cf5e5f6ab65bd21d29c30ed
Fixes: 120913779

5 years agoUpdate Settings text styles to use DeviceDefault.
Amin Shaikh [Wed, 19 Dec 2018 19:42:59 +0000 (14:42 -0500)]
Update Settings text styles to use DeviceDefault.

- Replace all TextAppearance.Material styles with the equivalent
TextAppearance.DeviceDefault style
- Reparent Theme.Settings.HomeBase to inherit from Theme.Settings. This
ensures that the correct textAppearance theme attributes are applied
throughout the Settings application.

Bug: 121211932
Test: manually opening Settings and enabling/disabling HotDogOverlay
Change-Id: Ibe4873ed0294de79dbb6aeca464d14c291239c4b

5 years agoAdd lost prefController to WifiTetherSettings
jackqdyulei [Wed, 2 Jan 2019 19:24:12 +0000 (11:24 -0800)]
Add lost prefController to WifiTetherSettings

One controller is lost during a refactor(ag/4774003), this CL adds
it back.

Change-Id: Ie50a3ac009f302d4fd7a179117fe026031cc1ae8
Fixes: 122235175
Test: RunSettingsRoboTests

5 years agoRefine Wi-Fi DPP fragments.
Arc Wang [Thu, 27 Dec 2018 09:00:15 +0000 (17:00 +0800)]
Refine Wi-Fi DPP fragments.

1. WifiDppQrCodeBaseFragment only declairs common UI components between fragments.
2. Initiate UI components in onViewCreated of each View.
3. Remove the only one usage of @NonNull since it should be used consistently
   throughout the class if we want to use it.
4. Use android.R.id for icon/title/summary

Bug: 120645817
Test: atest WifiDppConfiguratorActivityTest
      atest WifiDppEnrolleeActivityTest
      atest WifiDppQrCodeGeneratorFragmentTest
      atest WifiDppQrCodeScannerFragmentTest

Change-Id: I54f99a3072533cec46f0e47753ee0331fecf2ada

5 years agoImplement Wi-Fi QR code scanner flow.
Arc Wang [Thu, 27 Dec 2018 05:54:15 +0000 (13:54 +0800)]
Implement Wi-Fi QR code scanner flow.

1. Implements WifiNetworkConfig Wi-Fi connection method
2. Shows error message when the QR code is not valid and hides it after 2s
3. In configurator mode, launchs AddDeviceFragment for a valid QR code
4. In enrollee mode, connects Wi-Fi for a valid QR code

Bug: 118794978
Test: manual test
      atest WifiQrCodetest
      atest WifiDppConfiguratorActivityTest
      atest WifiDppEnrolleeActivityTest
      atest WifiDppQrCodeScannerFragmentTest

Change-Id: Ie4731b22df295c60906156d33ea28dad9c084ce4

5 years agoAdd connect() method in WifiNetworkConfig to connect Wi-fi.
Arc Wang [Thu, 27 Dec 2018 03:39:22 +0000 (11:39 +0800)]
Add connect() method in WifiNetworkConfig to connect Wi-fi.

This method uses data of ZXing Wi-Fi QR code to connect.

Bug: 118794978
Test: manual test
Change-Id: I249f2f638c8d2fe231c50ba50eae8dfc0dc40a5c

5 years agoFix ZXing Wi-Fi QR code parsing bug.
Arc Wang [Thu, 27 Dec 2018 02:19:21 +0000 (10:19 +0800)]
Fix ZXing Wi-Fi QR code parsing bug.

ZXing Wi-Fi QR code uses ';' as the delimiter for key/value pairs,
should not treat an escaped "\;" as the delimiter.

This fix also change the parsing result:

  If there is no specified key, the result value is null.
  If specified key exists with empty value, the result value is an empty string.

Bug: 118797380
Test: atest WifiQrCodetest
Change-Id: I786ce7c4fa66dcb31d8a61d7a3251c2f539ccc99

5 years agoMerge "Change privacy setting string"
Cosmo Hsieh [Wed, 2 Jan 2019 05:40:11 +0000 (05:40 +0000)]
Merge "Change privacy setting string"

5 years agoRefine decorate view of QR Code scanner
Johnson Lu [Mon, 24 Dec 2018 09:29:06 +0000 (17:29 +0800)]
Refine decorate view of QR Code scanner

1.Draw rounded corner line.
2.Paint 70% white transparency background.

Bug: 118797380
Test: make RunSettingsRoboTests
Change-Id: I1192e32cf4ec801a3efcad4287c2e547deeac3bf

5 years ago[automerger skipped] Import translations. DO NOT MERGE am: 9e39db9d62 -s ours
Bill Yi [Sat, 29 Dec 2018 02:07:21 +0000 (18:07 -0800)]
[automerger skipped] Import translations. DO NOT MERGE am: 9e39db9d62  -s ours
am: 5285ef3490  -s ours

Change-Id: If76fe3e71cc1705530953a23eee19a2c53d4876c

5 years ago[automerger skipped] Import translations. DO NOT MERGE
Bill Yi [Sat, 29 Dec 2018 02:03:18 +0000 (18:03 -0800)]
[automerger skipped] Import translations. DO NOT MERGE
am: 9e39db9d62  -s ours

Change-Id: I7fee4d617fe40d725dbd8bee03e138b95fb3cb9c

5 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 28 Dec 2018 21:41:40 +0000 (13:41 -0800)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I2fd8dffe12b55f223316b37c9c097194e7cf426f

5 years agoMerge "Fix distortion in conditional cards"
Mill Chen [Fri, 28 Dec 2018 03:35:21 +0000 (03:35 +0000)]
Merge "Fix distortion in conditional cards"

5 years agoChange privacy setting string
cosmohsieh [Wed, 19 Dec 2018 08:25:02 +0000 (16:25 +0800)]
Change privacy setting string

Change privacy setting (mac randomized) string

Test: manual and robotests
Change-Id: I264c89e0b8ccaeff0a057ff7d791d006a5e7d7cd

5 years agoMerge "Show QR Code picture for WiFi sharing"
Johnson Lu [Fri, 28 Dec 2018 01:00:37 +0000 (01:00 +0000)]
Merge "Show QR Code picture for WiFi sharing"

5 years agoMerge "Add PreferenceChangeListener to ApnSettings" am: 66d28c3e37 am: 9745ec5421
Pengquan Meng [Fri, 28 Dec 2018 00:08:07 +0000 (16:08 -0800)]
Merge "Add PreferenceChangeListener to ApnSettings" am: 66d28c3e37 am: 9745ec5421
am: 1f2ba13698

Change-Id: I6f62e47e04e74cd1d2d9ec7fa3b35032ab8c3ad6

5 years agoMerge "Add PreferenceChangeListener to ApnSettings" am: 66d28c3e37
Pengquan Meng [Thu, 27 Dec 2018 23:55:34 +0000 (15:55 -0800)]
Merge "Add PreferenceChangeListener to ApnSettings" am: 66d28c3e37
am: 9745ec5421

Change-Id: I6a6021f131f568b51fb491248d71e4ccbcdc49ef

5 years agoMerge "Add PreferenceChangeListener to ApnSettings"
Pengquan Meng [Thu, 27 Dec 2018 23:51:21 +0000 (15:51 -0800)]
Merge "Add PreferenceChangeListener to ApnSettings"
am: 66d28c3e37

Change-Id: Ideef529174f7b8b89f5668f7c9366cea090df68f

5 years agoMerge "Add PreferenceChangeListener to ApnSettings"
Pengquan Meng [Thu, 27 Dec 2018 23:36:18 +0000 (23:36 +0000)]
Merge "Add PreferenceChangeListener to ApnSettings"

5 years ago[automerger skipped] Merge "Update color-check-baseline.xml" am: 81cb8a2612 -s ours...
Lei Yu [Thu, 27 Dec 2018 21:56:45 +0000 (13:56 -0800)]
[automerger skipped] Merge "Update color-check-baseline.xml" am: 81cb8a2612  -s ours am: 3461bd0644  -s ours
am: 2b976cce96  -s ours

Change-Id: I73a07959ae2ce9fa968af7cada9f0c943ed63c18

5 years ago[automerger skipped] Merge "Update color-check-baseline.xml" am: 81cb8a2612 -s ours
Lei Yu [Thu, 27 Dec 2018 21:49:35 +0000 (13:49 -0800)]
[automerger skipped] Merge "Update color-check-baseline.xml" am: 81cb8a2612  -s ours
am: 3461bd0644  -s ours

Change-Id: I6e510de1b75e2656e4f82727e2a9911f3e32d8d7

5 years ago[automerger skipped] Merge "Update color-check-baseline.xml"
Lei Yu [Thu, 27 Dec 2018 21:45:22 +0000 (13:45 -0800)]
[automerger skipped] Merge "Update color-check-baseline.xml"
am: 81cb8a2612  -s ours

Change-Id: Id047f4c0964dc1f38ebf4c1afc46796c9c793ea1

5 years agoShow "Done" button to prevent user from getting stuck
Kevin Chyn [Thu, 27 Dec 2018 21:38:35 +0000 (13:38 -0800)]
Show "Done" button to prevent user from getting stuck

When the user has already reached max enrollments, we should show a done
button. It's possible to get to the introduction page (back button during
SUW, or launching android.settings.BIOMETRIC_ENROLL).

Bug: 111548033
Test: Done button is shown and works as expected when max enrollments
Change-Id: Ia70c21f63606393116e222ca940ee93bcfb25995

5 years agoMerge "Update color-check-baseline.xml"
Lei Yu [Thu, 27 Dec 2018 21:35:31 +0000 (21:35 +0000)]
Merge "Update color-check-baseline.xml"

5 years agoAdd PreferenceChangeListener to ApnSettings
Pengquan Meng [Thu, 27 Dec 2018 21:22:55 +0000 (13:22 -0800)]
Add PreferenceChangeListener to ApnSettings

The PreferenceChangeListener was removed from aosp/779634, when the
selected apn is changed, the result is not saved to the database.

In this CL, we add the PreferenceChangeListener back.

Bug: 121229775
Test: build & manual test
Change-Id: Ief1a2e05c072e5eff8060731b044c19878d346be

5 years agoMerge "Fix App data usage screen header title changing after device orientation"
TreeHugger Robot [Thu, 27 Dec 2018 15:59:25 +0000 (15:59 +0000)]
Merge "Fix App data usage screen header title changing after device orientation"

5 years agoMerge "Clean up assertion methods in SliceTester"
Yanting Yang [Thu, 27 Dec 2018 12:11:01 +0000 (12:11 +0000)]
Merge "Clean up assertion methods in SliceTester"

5 years agoFix App data usage screen header title changing after device orientation
Edgar Wang [Thu, 27 Dec 2018 06:03:10 +0000 (14:03 +0800)]
Fix App data usage screen header title changing after device orientation

- Chageed the title "App data usage" to "Mobile data & Wi-Fi"

Change-Id: I0fa00180eedda6be6189f871f9984ac164f9fb67
Fixes: 118770561
Test: visual & robotests

5 years agoClean up assertion methods in SliceTester
Yanting Yang [Wed, 19 Dec 2018 15:09:22 +0000 (23:09 +0800)]
Clean up assertion methods in SliceTester

Fixes: 120592507
Test: robotests
Change-Id: Ic20fa96aa500d9ab50ef2adcb59f48c328989ec8

5 years agoShow QR Code picture for WiFi sharing
Johnson Lu [Thu, 20 Dec 2018 07:02:50 +0000 (15:02 +0800)]
Show QR Code picture for WiFi sharing

Bug: 118794858
Test: make RunSettingsRoboTests
Change-Id: Ic5a489840ba59262eb444f02d77bf066889a4220