Commit Graph

32189 Commits

Author SHA1 Message Date
Pavlin Radoslavov
607ed23030 Merge "Add Bluetooth Codec selection UI to the Developer Options" am: bfd7f9a1f8 am: d190040dd1 am: 8905569c67
am: afdf387e13

Change-Id: I493e5f8f639a0c7e0dccabed00b48e9216b3cc34
2017-01-07 01:40:55 +00:00
Pavlin Radoslavov
afdf387e13 Merge "Add Bluetooth Codec selection UI to the Developer Options" am: bfd7f9a1f8 am: d190040dd1
am: 8905569c67

Change-Id: I74b2606347e9b6e2a2424add4aa74d0db687f6ee
2017-01-07 01:36:47 +00:00
Pavlin Radoslavov
8905569c67 Merge "Add Bluetooth Codec selection UI to the Developer Options" am: bfd7f9a1f8
am: d190040dd1

Change-Id: I051932a98729e91f4e6512c9fa84a7e261b8cd96
2017-01-07 01:29:44 +00:00
Pavlin Radoslavov
d190040dd1 Merge "Add Bluetooth Codec selection UI to the Developer Options"
am: bfd7f9a1f8

Change-Id: I0cc5f64f292a56e6301b294974c1bd3cc72664c0
2017-01-07 01:25:34 +00:00
Pavlin Radoslavov
60d704f841 Add Bluetooth Codec selection UI to the Developer Options
Test: A2DP streaming to headsets and manual UI interaction
Bug: 30958229
Change-Id: I88f6efedf1c89b524c863543135ef7be9b7e1a7c
2017-01-06 15:44:27 -08:00
TreeHugger Robot
03614f3fec Merge "Move category refresh call into a separeate method." 2017-01-06 21:27:52 +00:00
Andrew Sapperstein
27d2440ae4 Update CHAR LIMIT for notification body. am: 429cafb85e
am: ddb2539508

Change-Id: I0aa9498f9669db6d55e5bacf5f23ae5b01ca3229
2017-01-06 21:03:26 +00:00
Andrew Sapperstein
ddb2539508 Update CHAR LIMIT for notification body.
am: 429cafb85e

Change-Id: I2cfa08917ce4581d4119ba7a6e492874368cf957
2017-01-06 20:57:05 +00:00
Andrew Sapperstein
fcf6cc3062 Add temperature config for high temp warning.
am: 1cac83218c

Change-Id: I1aedaf0714e0f020f6e062bac716841ec472db2a
2017-01-06 20:04:30 +00:00
Fan Zhang
d2d3e2cce8 Move category refresh call into a separeate method.
By default we no longer refresh category with each setTileEnabled.
Instead app will call update after all setTileEnabled are called.

This saves a lot of async task execution when Settings app starts

Bug: 34103984
Test: RunSettingsRoboTest (no regresssion)
Change-Id: I71ddcdb3e1fc0df6cacb53583a4f7e8ae8d675f1
2017-01-06 11:44:38 -08:00
Andrew Sapperstein
429cafb85e Update CHAR LIMIT for notification body.
Test: is comment change
Bug: 34097363
Change-Id: I8ae19c3b5108c9c2f00614cd5d32cee06082a052
2017-01-06 18:57:41 +00:00
Andrew Sapperstein
1cac83218c Add temperature config for high temp warning.
Adds an integer resource (config_warningTemperature) that is used
to display the high temp warning. If it is set to less than 0,
the value from HardwarePropertiesManager#getDeviceTemperatures(
HardwarePropertiesManager.DEVICE_TEMPERATURE_SKIN,
HardwarePropertiesManager.TEMPERATURE_THROTTLING) is used instead.

Test: manual
Bug: 30995038
Change-Id: I05aa1b5930c6c151ebac439dfd5c00b3305dc46d
(cherry picked from commit 7518471ab6)
2017-01-06 18:28:10 +00:00
Andrew Sapperstein
e7dc98733d Merge "Add temperature config for high temp warning." 2017-01-06 18:27:26 +00:00
Julia Reynolds
bb983d20d2 Use internal volume controller and status bar.
Remove code that let these components be replaced by external
processes.

Bug: 33006669
Bug: 34106436
Test: manual. reboot device, play music, change volume,
view notifications
Change-Id: I458f11537ab9db6f23735487513815553004613f
2017-01-06 15:59:45 +00:00
TreeHugger Robot
0a7b66b0bb Merge "Create a global registry for system message IDs" 2017-01-06 15:54:58 +00:00
Chris Wren
5e6c0ffd3e Create a global registry for system message IDs
Port all system UI notifications to use the registry.  Retain stable
integer IDs where they exist. Assign new stable IDs where resource IDs
were previously used.

Using "message" rather than "notification" since we may eventually
want to include dialogs and toasts.

Bug: 32584866
Bug: 30995038
Test: runtest systemui
Change-Id: Iec4d7cebbd88683e339ada29a279315222699942
2017-01-06 09:22:02 -05:00
TreeHugger Robot
0a454c39cb Merge "Only parse new IA category when needed." 2017-01-06 01:00:18 +00:00
Andrew Sapperstein
7518471ab6 Add temperature config for high temp warning.
Adds an integer resource (config_warningTemperature) that is used
to display the high temp warning. If it is set to less than 0,
the value from HardwarePropertiesManager#getDeviceTemperatures(
HardwarePropertiesManager.DEVICE_TEMPERATURE_SKIN,
HardwarePropertiesManager.TEMPERATURE_THROTTLING) is used instead.

Test: manual
Bug: 30995038
Change-Id: I05aa1b5930c6c151ebac439dfd5c00b3305dc46d
2017-01-05 16:45:37 -08:00
TreeHugger Robot
4471609235 Merge "Add Theme and ThemeOverride for new Settings" 2017-01-06 00:10:28 +00:00
Makoto Onuki
f6f244bae7 Merge "Bugreport sharing is now work profile aware" 2017-01-05 23:57:46 +00:00
Fan Zhang
8bfb3eac94 Only parse new IA category when needed.
Bug: 34103984
Test: RunSettingsLibRoboTests
Change-Id: I66dd023dc119e06fded9409f03fb8e12200857db
2017-01-05 15:30:42 -08:00
Fan Zhang
9db32f35fb Add Theme and ThemeOverride for new Settings
Bug: 33558692
Test: visual inspection

The new action bar theme has
- light background
- colorAccent as textColorPrimary
- no elevation

Change-Id: I4c1b88410701a35b0e2305d9162ba448d1f5d67b
2017-01-05 14:29:23 -08:00
Makoto Onuki
ff329c4329 Bugreport sharing is now work profile aware
Now we look at work profile too, if available, when looking for a preferred
email address.

TODO: The chooser activity should default to work profile too, but it seems
to require a lot more work, so not done yet.

Test: manual tests
Test: adb shell am instrument -w -e class com.android.shell.BugreportProgressServiceTest com.android.shell.tests

Bug 30865666

Change-Id: I9b4776d53455a23bfdc4960da25e98bd1dc1b2a1
2017-01-05 14:14:51 -08:00
Roger Xue
412706458e Merge "making changes to settingsLib so we can create car setting using settingsLib" 2017-01-05 19:54:33 +00:00
Winson Chung
31c568274b Add logging for task view thumbnail state. am: eb2206cb51
am: 96a5c216b7

Change-Id: Id6f8fbdac18861ea1244b2c43885d978851694e7
2017-01-05 19:45:06 +00:00
Winson Chung
96a5c216b7 Add logging for task view thumbnail state.
am: eb2206cb51

Change-Id: Ibf8fed3d189483f8a8b351d87f406c90d0259fc5
2017-01-05 19:38:37 +00:00
TreeHugger Robot
1d513b28e3 Merge "Add logging for task view thumbnail state." into nyc-mr2-dev 2017-01-05 19:33:48 +00:00
Lei Yu
2cba0e8b0f Merge "Remove hardcoded color for cellular data usage view" 2017-01-05 18:57:57 +00:00
Lei Yu
fe6648912d Merge "Move textColor to style StatusBar.Expanded.Date" 2017-01-05 18:49:56 +00:00
Lei Yu
1ddd16e030 Merge "Remove hardcoded color for tuner and emergency call" 2017-01-05 18:28:32 +00:00
roger xue
8f06ab0774 making changes to settingsLib so we can create car setting using settingsLib
Test: make -j40 RunSettingsLibRoboTests

Change-Id: I4eff074ebbbf1d4a4325580d68a2123d3f5ff930
2017-01-05 10:20:24 -08:00
Fan Zhang
97c5cdca4e Merge "Disable nav drawer in Settings app." 2017-01-05 17:38:20 +00:00
Ben Murdoch
f0b74e306d Remove two unused filters on PowerUI receiver.
Removing some dead code.

Test: None, remove dead code.
Change-Id: Ibcb31797dc1551f7fed540843afc58cb4eb7d077
2017-01-05 14:57:43 +00:00
TreeHugger Robot
c21eb9eb7d Merge "Import translations. DO NOT MERGE" 2017-01-05 10:12:25 +00:00
TreeHugger Robot
9e8b15b953 Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev 2017-01-05 10:06:47 +00:00
Bill Yi
a51dba4ca5 Import translations. DO NOT MERGE
Change-Id: Ic18109adbc1f4e2e3f8bf15aa6d5cf0cb703b601
Auto-generated-cl: translation import
2017-01-05 00:27:04 -08:00
Andrew Sapperstein
b54a792429 Added alert icon to high temp dialog.
am: bd4eeb7259

Change-Id: I8f6d4a0c9ba5c15478010714995243c305982707
2017-01-05 03:07:47 +00:00
Andrew Sapperstein
a477ead31c Add VR mode check for thermal notification
am: d51ac7322e

Change-Id: I056136375b74a38a4973951fb33f795e784bab1e
2017-01-05 03:07:01 +00:00
Andrew Sapperstein
104c66d71e Show notif when device reaches throttling temp
am: 67e97053c5

Change-Id: I44639cb19b7fa9547dc1e579a5beb34f923da2a7
2017-01-05 03:05:59 +00:00
Svetoslav Ganov
0b1501a7c8 Warn makeDefault ignored for system settings only if true
Test: changed system setting and got it back without a warning

bug:33816118

Change-Id: I4e185b46467fc885d2bafedbcbdf41354d0fa9d8
2017-01-04 17:12:03 -08:00
Bill Yi
b1871a2117 Import translations. DO NOT MERGE
Change-Id: I1f02709e81ed68998fb070d5a3f970ff4f645bbe
Auto-generated-cl: translation import
2017-01-04 17:07:41 -08:00
Andrew Sapperstein
bd4eeb7259 Added alert icon to high temp dialog.
Test: manual
Bug: 30995038
Change-Id: I966294c5fb0b8297b2f336102996291f66c08d2c
(cherry picked from commit e26dc3d194)
2017-01-04 16:54:31 -08:00
Andrew Sapperstein
d51ac7322e Add VR mode check for thermal notification
When in VR mode, don't show the high temp notification
since VR shows its own notification.

Test: manual
Bug: 30995038
Change-Id: I845480d968a9b0da9997f035875885bc261c577a
(cherry picked from commit 65d8a5fc73)
2017-01-04 16:54:15 -08:00
Andrew Sapperstein
67e97053c5 Show notif when device reaches throttling temp
Adds logic to SystemUI that shows a notification alerting the user
that their phone has reached a certain temperature and has throttled
itself in order to cool down.

The logic is controlled by a configuration resource:
R.bool.config_showTemperatureWarning. If false, no action is taken.

When true, PowerUI checks every 30 seconds if the current temp of
HardwarePropertiesManager.DEVICE_TEMPERATURE_SKIN is greater than
the throttling temp of HardwarePropertiesManager.DEVICE_TEMPERATURE_SKIN.
If any one of the temperatures returned is greater, a notification is shown.

Clicking on the notification will show a dialog explaining more details
about what the device is doing in response to the high temperature.

The notification will disappear once the temperature drops below
the throttling temperature.

In order to check the temperature in SystemUI, HardwarePropertiesManager
has been updated to also allow any calls made by callers holding the
signature-level DEVICE_POWER permission.

Test: runtest systemui
Bug: 30995038

Change-Id: I1b3f122341911c68e90c8a49ad35267ac382b356
(cherry picked from commit b7caf1d06d)
2017-01-04 16:53:44 -08:00
jackqdyulei
b68fd7ae0a Remove hardcoded color for cellular data usage view
1. Remove hardcoded color and create colorStateList instead
2. Remove warning color and use attr textColorError instead
3. Add function to extract color from colorStateList

Bug: 32592245
Test: manual - Take screenshots
Change-Id: I7f0a54b304b09b99ba1f255952e7e99e009a4d2a
2017-01-04 16:12:44 -08:00
TreeHugger Robot
220c4155f7 Merge "Add notifications for incorrect plugin versions" 2017-01-04 22:21:16 +00:00
jackqdyulei
77880db705 Move textColor to style StatusBar.Expanded.Date
Bug: 32592245
Test: Manual - take an screenshot
Change-Id: Iebcd9046bfdfcebb06f51bbfa26b59684ba47699
2017-01-04 13:44:03 -08:00
jackqdyulei
9cbffcba23 Remove hardcoded color for tuner and emergency call
1. Add tint color for icon tuner
2. Remove hardcoded color for emergency call in styles.xml

Bug: 32592245
Test: manual - Take a screenshot
Change-Id: I64de3f95506ac977cc30726305a79e0024b5bd17
2017-01-04 13:33:42 -08:00
Andrew Sapperstein
388ef5df44 Merge "Added alert icon to high temp dialog." 2017-01-04 21:08:38 +00:00
Jason Monk
26bc8996c8 Add notifications for incorrect plugin versions
Test: runtest systemui
Change-Id: Ic59a583202a8a20fbfc6fb504e6ab60ecc71ce78
2017-01-04 15:57:30 -05:00