Commit Graph

49587 Commits

Author SHA1 Message Date
TreeHugger Robot
fbe1ddeeae Merge "Fix notification widget's alerting logs" 2019-01-04 17:44:37 +00:00
Philip P. Moltmann
2a65b60e95 Merge "RuntimePermissionPresenter was renamed to PermissionControllerManager" 2019-01-04 17:32:43 +00:00
Julia Reynolds
8ddeb521ec Fix notification widget's alerting logs
- Use last alerted time if available
- Read from channel

Test: manual
Change-Id: I5e3ab7e234c9c6766a1a4dffb5636a633f6b5f2e
Fixes: 74495461
2019-01-04 11:09:35 -05:00
Yanting Yang
7eade17c85 Merge "Update the icon in BluetoothDevicesSlice" 2019-01-04 14:04:27 +00:00
TreeHugger Robot
fca9d221a3 Merge "Centerize contents of contextual cards and remove white space." 2019-01-04 09:26:28 +00:00
Arc Wang
ad9874e14e Merge "Add more Wi-Fi DPP UI features." 2019-01-04 08:55:53 +00:00
Yanting Yang
ca77c76bf9 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
2019-01-04 16:49:27 +08:00
Yi-Ling Chuang
1f320fa346 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
2019-01-04 15:43:58 +08:00
Arc Wang
c8cd5d3834 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
2019-01-04 12:17:02 +08:00
TreeHugger Robot
6be224a919 Merge "Change action WIFI_DPP_CONFIGURATOR_CHOOSE_SAVED_WIFI_NETWORK to PROCESS_WIFI_DPP_QR_CODE for more intuitive naming." 2019-01-04 03:29:07 +00:00
TreeHugger Robot
f07a7bd684 Merge changes from topic "status_bar_80%_white"
* changes:
  Fine tune items position of homepage
  Make status bar become 80% of white in homepage.
2019-01-04 03:08:44 +00:00
pastychang
79614823cb Rename prefix from suw to sud
Bug: 120805516
Test: RunSettingsRoboTests
Change-Id: I44a399b586671c100cb9d85c97effbfb1a379413
2019-01-04 10:46:20 +08:00
Stanley Wang
df495130c9 Merge "Fix WiFi calling option is showing in search result regardless the carrier supports VoWiFi or not" 2019-01-04 02:12:54 +00:00
Arc Wang
8e580952c3 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
2019-01-04 09:59:40 +08:00
TreeHugger Robot
fea78b800c Merge "Rename updatable graphics driver to Game Update Package." 2019-01-03 23:06:35 +00:00
TreeHugger Robot
45ae063526 Merge "Update battery dashboard based on spec" 2019-01-03 22:17:19 +00:00
Lei Yu
f1f0cd1f27 Merge "Display BT device even without legal name" 2019-01-03 22:14:50 +00:00
TreeHugger Robot
656c300e94 Merge "Add title support for SlicePreference" 2019-01-03 21:37:41 +00:00
jackqdyulei
fd0f48df86 Update battery dashboard based on spec
Following CL will change "battery suggestion" to card layout.

Bug: 119618813
Test: Screenshot
Change-Id: If71e5c0e4a4e230358aa0c8aa584028082f31d2e
2019-01-03 12:59:12 -08:00
TreeHugger Robot
1b1c2c2209 Merge "Release the media player when the video preference is not visible." 2019-01-03 20:15:33 +00:00
Philip P. Moltmann
70e81da549 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
2019-01-03 11:40:00 -08:00
Peiyong Lin
e70d103266 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
2019-01-03 11:19:01 -08:00
jackqdyulei
dc33747492 Add title support for SlicePreference
Bug: 120803703
Test: Manual
Change-Id: Icc529515a82430aa2cab869b9c85c855e47798ce
2019-01-03 10:35:39 -08:00
Beverly
8b4d3c3f0c Prevent ringing gesture uses master switch
Test: make ROBOTEST_FILTER=PreventRingingGesturePreferenceControllerTest RunSettingsRoboTests
Test: make ROBOTEST_FILTER=PreventRingingSwitchPreferenceControllerTest RunSettingsRoboTests
Change-Id: Iaf356ccd3623e67c39810955093fc353ae0d10a0
Fixes: 119787033
2019-01-03 12:56:13 -05:00
Nathan Harold
63b1ab12f6 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
2019-01-03 09:51:49 -08:00
Christine Franks
0057e45e6f Merge "Add display white balance setting" 2019-01-03 16:25:28 +00:00
Mill Chen
030aadad10 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
2019-01-03 16:36:40 +08:00
TreeHugger Robot
1c9fc3e9eb Merge "Show "Done" button to prevent user from getting stuck" 2019-01-03 07:20:19 +00:00
Johnson Lu
f0c2cc4466 Merge "Adjust landscape layout of QR code scanner/generator" 2019-01-03 05:49:22 +00:00
Stanley Wang
242502e5a9 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
2019-01-03 13:11:25 +08:00
Raff Tsai
2831b14048 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
2019-01-03 12:12:51 +08:00
TreeHugger Robot
564f4b6c8a Merge "Update Settings text styles to use DeviceDefault." 2019-01-03 04:03:16 +00:00
tmfang
191bde1b75 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
2019-01-03 11:52:20 +08:00
tmfang
af517d51cc Make status bar become 80% of white in homepage.
Test: visual
Change-Id: I005b49306e4c397d9f1fc5062da721709f303a1d
Fixes: 116346521
2019-01-03 11:44:43 +08:00
Johnson Lu
cb36eb394c Adjust landscape layout of QR code scanner/generator
Bug: 118794858
Test: RunSettingsRoboTests
Change-Id: Ifaef7c5fe02abbb377efeb0ab345976ab439aeb0
2019-01-03 11:41:26 +08:00
TreeHugger Robot
2541da8d4d Merge "Use settings gear widget layout" 2019-01-03 02:36:31 +00:00
TreeHugger Robot
f6deebffaa Merge "Add the missing unit test" 2019-01-03 01:19:38 +00:00
Lei Yu
0e66037fc1 Merge "Add lost prefController to WifiTetherSettings" 2019-01-02 23:07:08 +00:00
Lifu Tang
e35f24bc55 Add the missing unit test
Bug: 120910747
Test: build and run the unit test
Change-Id: Id1feb51a1577e9d0c90bff812d78e581e5dc5168
2019-01-02 14:54:50 -08:00
jackqdyulei
7b2ca324d0 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
2019-01-02 13:49:19 -08:00
Beverly
ce380bdeef Use settings gear widget layout
Instead of a custom image view for zen_rule_widget

Test: manual
Change-Id: I9e2bd75a8fa661434cf5e5f6ab65bd21d29c30ed
Fixes: 120913779
2019-01-02 16:37:18 -05:00
Amin Shaikh
a5e8bddc46 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
2019-01-02 16:08:19 -05:00
jackqdyulei
5ca4e06dfe 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
2019-01-02 11:30:03 -08:00
pastychang
382d34dc50 Change to show two footer buttons in SUW lockscreen page.
Bug: 121183851
Test: RunSettingsRoboTests
Change-Id: Id850e10a10bb8f3a344ef986e07bab1c39c37aa6
2019-01-02 15:32:29 +08:00
Arc Wang
221b7e0b77 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
2019-01-02 07:13:10 +00:00
Arc Wang
1988fb75c6 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
2019-01-02 07:12:15 +00:00
Arc Wang
cc8212edf6 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
2019-01-02 06:08:09 +00:00
Arc Wang
87c40f3b60 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
2019-01-02 06:07:46 +00:00
Cosmo Hsieh
06c514db6f Merge "Change privacy setting string" 2019-01-02 05:40:11 +00:00
Johnson Lu
0b0dec957d 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
2019-01-02 03:14:12 +00:00