Commit Graph

49358 Commits

Author SHA1 Message Date
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
Bill Yi
c149976966 [automerger skipped] Import translations. DO NOT MERGE am: 9e39db9d62 -s ours
am: 5285ef3490  -s ours

Change-Id: If76fe3e71cc1705530953a23eee19a2c53d4876c
2018-12-28 18:07:21 -08:00
Bill Yi
5285ef3490 [automerger skipped] Import translations. DO NOT MERGE
am: 9e39db9d62  -s ours

Change-Id: I7fee4d617fe40d725dbd8bee03e138b95fb3cb9c
2018-12-28 18:03:18 -08:00
Bill Yi
9e39db9d62 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I2fd8dffe12b55f223316b37c9c097194e7cf426f
2018-12-28 13:41:40 -08:00
Mill Chen
637c874dff Merge "Fix distortion in conditional cards" 2018-12-28 03:35:21 +00:00
cosmohsieh
a83b304670 Change privacy setting string
Change privacy setting (mac randomized) string

Test: manual and robotests
Change-Id: I264c89e0b8ccaeff0a057ff7d791d006a5e7d7cd
2018-12-28 10:07:20 +08:00
Johnson Lu
8bc04efd1a Merge "Show QR Code picture for WiFi sharing" 2018-12-28 01:00:37 +00:00
Pengquan Meng
20e6b01327 Merge "Add PreferenceChangeListener to ApnSettings" am: 66d28c3e37 am: 9745ec5421
am: 1f2ba13698

Change-Id: I6f62e47e04e74cd1d2d9ec7fa3b35032ab8c3ad6
2018-12-27 16:08:07 -08:00
Pengquan Meng
1f2ba13698 Merge "Add PreferenceChangeListener to ApnSettings" am: 66d28c3e37
am: 9745ec5421

Change-Id: I6a6021f131f568b51fb491248d71e4ccbcdc49ef
2018-12-27 15:55:34 -08:00
Pengquan Meng
9745ec5421 Merge "Add PreferenceChangeListener to ApnSettings"
am: 66d28c3e37

Change-Id: Ideef529174f7b8b89f5668f7c9366cea090df68f
2018-12-27 15:51:21 -08:00
Pengquan Meng
66d28c3e37 Merge "Add PreferenceChangeListener to ApnSettings" 2018-12-27 23:36:18 +00:00
Lei Yu
ee8908b8aa [automerger skipped] Merge "Update color-check-baseline.xml" am: 81cb8a2612 -s ours am: 3461bd0644 -s ours
am: 2b976cce96  -s ours

Change-Id: I73a07959ae2ce9fa968af7cada9f0c943ed63c18
2018-12-27 13:56:45 -08:00
Lei Yu
2b976cce96 [automerger skipped] Merge "Update color-check-baseline.xml" am: 81cb8a2612 -s ours
am: 3461bd0644  -s ours

Change-Id: I6e510de1b75e2656e4f82727e2a9911f3e32d8d7
2018-12-27 13:49:35 -08:00
Lei Yu
3461bd0644 [automerger skipped] Merge "Update color-check-baseline.xml"
am: 81cb8a2612  -s ours

Change-Id: Id047f4c0964dc1f38ebf4c1afc46796c9c793ea1
2018-12-27 13:45:22 -08:00
Kevin Chyn
71724ae03c 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
2018-12-27 13:38:35 -08:00
Lei Yu
81cb8a2612 Merge "Update color-check-baseline.xml" 2018-12-27 21:35:31 +00:00
Pengquan Meng
2f434aa7ca 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
2018-12-27 13:27:26 -08:00
TreeHugger Robot
b940fc3d45 Merge "Fix App data usage screen header title changing after device orientation" 2018-12-27 15:59:25 +00:00
Yanting Yang
13bc82b456 Merge "Clean up assertion methods in SliceTester" 2018-12-27 12:11:01 +00:00
Edgar Wang
0fc557bbc9 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
2018-12-27 20:07:31 +08:00
Yanting Yang
1c9b97d537 Clean up assertion methods in SliceTester
Fixes: 120592507
Test: robotests
Change-Id: Ic20fa96aa500d9ab50ef2adcb59f48c328989ec8
2018-12-27 17:24:36 +08:00
Johnson Lu
7414543635 Show QR Code picture for WiFi sharing
Bug: 118794858
Test: make RunSettingsRoboTests
Change-Id: Ic5a489840ba59262eb444f02d77bf066889a4220
2018-12-27 09:55:44 +08:00
Pasty Chang
feb271378c Merge "Apply FooterButton builder" 2018-12-27 01:18:53 +00:00
Lucas Dupin
1e971fe9be Renamed method
Test: make
Bug: 111405682
Change-Id: If3e48c5ee5f90aefb2795ce31025fabec689e7ad
2018-12-26 14:11:41 -08:00
TreeHugger Robot
3142d56f54 Merge "Clean up styles and aliases" 2018-12-26 10:10:27 +00:00
pastychang
908501e40f Apply FooterButton builder
FotterButton constructor in setupcompat will be deprecated, change to
use builder.

Bug: 120805516
Test: RunSettingsRoboTests
Change-Id: Ic84b0c91205bf3c770bc658e8eaf2626e4d7bddd
2018-12-26 14:56:44 +08:00
Mill Chen
d973776112 Fix distortion in conditional cards
When setting device font and display size to largest, conditional cards
will get distorted. The fix is to add a different layout for screens that
have smaller than 360dp available width.

Change-Id: I8b61c9d8a568e79045e4a490aa387c801a57f9a7
Fixes: 119505249
Test: visual
2018-12-26 14:39:22 +08:00
Pasty Chang
2fe6673d9e Merge "Migrating to new footer button for lockscreen pages." 2018-12-26 06:31:15 +00:00
Raff Tsai
f6d42a99d1 Clean up styles and aliases
- Remove unused style
- Remove identical style declaration

Test: Manual, Robolectric
Change-Id: Ia98ed82e6ccd4a25af6abbc66709eda1867581ee
2018-12-26 12:56:48 +08:00
pastychang
5dfdb4ff45 Migrating to new footer button for lockscreen pages.
Bug: 120805516
Test: RunSettingsRoboTests
Change-Id: I12d68cd2eaa750eecd2c40e172efd6b6b16a0849
2018-12-26 11:12:46 +08:00