OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Avoid calling updateOomAdj an extra time" into pi-dev
Amith Yamasani [Wed, 16 May 2018 12:54:14 +0000 (12:54 +0000)]
Merge "Avoid calling updateOomAdj an extra time" into pi-dev

6 years agoFixed regression on jank test of changeBrightness
shawnlin [Fri, 11 May 2018 08:44:42 +0000 (16:44 +0800)]
Fixed regression on jank test of changeBrightness

Replace using hardware layer for alpha animation with drawing
transparent color with MULTIPLY mode.

Test: atest google/perf/jank/SystemUI/UbSystemUIJankTests-Trace:android.platform.systemui.tests.jank.SystemUiJankTests#testChangeBrightness
Change-Id: I9615af89c4418dd90ccc86e9e7c71d88e7121826
Fixes: 79266233

6 years agoMerge "Add connection state summary for android auto" into pi-dev
TreeHugger Robot [Wed, 16 May 2018 06:52:20 +0000 (06:52 +0000)]
Merge "Add connection state summary for android auto" into pi-dev

6 years agoMerge "Allow recents component to launch non-exported activities" into pi-dev
Winson Chung [Wed, 16 May 2018 04:40:35 +0000 (04:40 +0000)]
Merge "Allow recents component to launch non-exported activities" into pi-dev

6 years agoMerge "Update misc settingslib icons" into pi-dev
TreeHugger Robot [Wed, 16 May 2018 02:46:53 +0000 (02:46 +0000)]
Merge "Update misc settingslib icons" into pi-dev

6 years agoMerge "Fixes Value metrics in statsd and app upgrades." into pi-dev
TreeHugger Robot [Wed, 16 May 2018 02:27:37 +0000 (02:27 +0000)]
Merge "Fixes Value metrics in statsd and app upgrades." into pi-dev

6 years agoMerge "Fix issue where panel wouldn't collapse" into pi-dev
TreeHugger Robot [Wed, 16 May 2018 02:24:42 +0000 (02:24 +0000)]
Merge "Fix issue where panel wouldn't collapse" into pi-dev

6 years agoUpdate misc settingslib icons
Fan Zhang [Wed, 16 May 2018 01:15:27 +0000 (18:15 -0700)]
Update misc settingslib icons

- new icon size for edit pencil
- removed home.xml, it's not needed by anything except test

Bug: 77982107
Test: visual
Change-Id: I451bc12c4a57e5f61e7c561c394b00bd95e7228d

6 years agoAdd connection state summary for android auto
ryanywlin [Tue, 15 May 2018 06:20:50 +0000 (14:20 +0800)]
Add connection state summary for android auto

Androd auto still need the summaries with "Connected*" strings,
use separate method for android auto.

Bug: 78936284
Test: make RunSettingsLibRoboTests ROBOTEST_FILTER=CachedBluetoothDeviceTest -j28
Change-Id: I0a5dff4ae231108f528f1cd2e2a25b2f4633ac99

6 years agoMerge "Revert "When ringer changes to vibrate, phone vibrates" Fixes: 79773317 Bug...
TreeHugger Robot [Wed, 16 May 2018 01:03:33 +0000 (01:03 +0000)]
Merge "Revert "When ringer changes to vibrate, phone vibrates" Fixes: 79773317 Bug: 78665512" into pi-dev

6 years agoMerge "Add summaries for Bluetooth audio active device status" into pi-dev
Ryan Lin [Wed, 16 May 2018 00:52:44 +0000 (00:52 +0000)]
Merge "Add summaries for Bluetooth audio active device status" into pi-dev

6 years agoFixes Value metrics in statsd and app upgrades.
David Chen [Wed, 16 May 2018 00:50:32 +0000 (17:50 -0700)]
Fixes Value metrics in statsd and app upgrades.

Pulled value metrics with conditions had a subtle bug that caused
us to leave the condition on even if it should've been false.

Bug: 79778783
Test: Added unit-test and verified on marlin-eng.
Change-Id: I31f34791118319b3471f7a6ea8a024e2d511cfe7

6 years agoAllow recents component to launch non-exported activities
Winson Chung [Tue, 15 May 2018 18:01:44 +0000 (11:01 -0700)]
Allow recents component to launch non-exported activities

- When relaunching an activity in an existing task, allow the recents
  component to launch all activity including those that are not exported
  (since the recents component can not have START_ANY_ACTIVITY).

Bug: 73068266
Test: Open facebook, hit back to end the task, and try and relaunch from
      Overview

Change-Id: I45e7ce339f83aadfb5a7faf5af51df97dd1414a5

6 years agoMerge "Set DEBUG to false for BrightnessMappingStrategy." into pi-dev
TreeHugger Robot [Wed, 16 May 2018 00:36:59 +0000 (00:36 +0000)]
Merge "Set DEBUG to false for BrightnessMappingStrategy." into pi-dev

6 years agoMerge "Fix odd avatar when message sender is a number" into pi-dev
Sanry Huang [Wed, 16 May 2018 00:27:56 +0000 (00:27 +0000)]
Merge "Fix odd avatar when message sender is a number" into pi-dev

6 years agoMerge "Add shell command to get slice permissions" into pi-dev
TreeHugger Robot [Wed, 16 May 2018 00:12:32 +0000 (00:12 +0000)]
Merge "Add shell command to get slice permissions" into pi-dev

6 years agoMerge "Add SCREEN_BRIGHTNESS_FOR_VR to set of public settings." into pi-dev
TreeHugger Robot [Tue, 15 May 2018 23:53:02 +0000 (23:53 +0000)]
Merge "Add SCREEN_BRIGHTNESS_FOR_VR to set of public settings." into pi-dev

6 years agoRevert "When ringer changes to vibrate, phone vibrates"
Beverly Tai [Tue, 15 May 2018 23:49:05 +0000 (23:49 +0000)]
Revert "When ringer changes to vibrate, phone vibrates"
Fixes: 79773317
Bug: 78665512

This reverts commit d253f98c0e2357307e5ae352d26e077ed7259b9b.

Reason for revert: b/79773317

Change-Id: I6f3eebd64b94436748986422906006686351cc4b

6 years agoFix issue where panel wouldn't collapse
Lucas Dupin [Tue, 15 May 2018 23:43:38 +0000 (16:43 -0700)]
Fix issue where panel wouldn't collapse

Notification panel would not collapse after clicking on a notification
when the keyguard is occluded.

Collapsing is necessary because otherwise the afterKeyguardGoneRunnable
would not be reached.

Test: manual
Change-Id: I15f997e0181e9af0c322834ad3357d26f9c38c1b
Fixes: 78907161

6 years agoMerge "Keep detailed job-ended reasons in the history ring" into pi-dev
TreeHugger Robot [Tue, 15 May 2018 23:34:56 +0000 (23:34 +0000)]
Merge "Keep detailed job-ended reasons in the history ring" into pi-dev

6 years agoSet DEBUG to false for BrightnessMappingStrategy.
Michael Wright [Tue, 15 May 2018 23:19:08 +0000 (16:19 -0700)]
Set DEBUG to false for BrightnessMappingStrategy.

Accidentally enabled when checking in other code.

Bug: 78909876
Test: manual
Change-Id: Ic1341bcb14c9e9a29b75a598aeb735aa36bd657e

6 years agoMerge "Added a debug flag to turn on the AOD animation" into pi-dev
TreeHugger Robot [Tue, 15 May 2018 22:59:56 +0000 (22:59 +0000)]
Merge "Added a debug flag to turn on the AOD animation" into pi-dev

6 years agoAdd shell command to get slice permissions
Jason Monk [Tue, 15 May 2018 19:46:26 +0000 (15:46 -0400)]
Add shell command to get slice permissions

Lets shell/root get a list of pkgs that have access to any slices
within an authority.

Test: manual
Bug: 78136892
Change-Id: Id33fd458ed5ad73b30f69b3a464676428344e446

6 years agoMerge "Center QS icons (wifi, invert colors, night light)" into pi-dev
TreeHugger Robot [Tue, 15 May 2018 22:44:36 +0000 (22:44 +0000)]
Merge "Center QS icons (wifi, invert colors, night light)" into pi-dev

6 years agoMerge "Generally improve brightness dumpsys." into pi-dev
Michael Wright [Tue, 15 May 2018 22:22:06 +0000 (22:22 +0000)]
Merge "Generally improve brightness dumpsys." into pi-dev

6 years agoMerge "Call access(2) on all files/dirs modified by Mtp" into pi-dev
Jerry Zhang [Tue, 15 May 2018 21:35:43 +0000 (21:35 +0000)]
Merge "Call access(2) on all files/dirs modified by Mtp" into pi-dev

6 years agoMerge "Access removable volumes through /mnt/media_rw" into pi-dev
Jerry Zhang [Tue, 15 May 2018 21:35:43 +0000 (21:35 +0000)]
Merge "Access removable volumes through /mnt/media_rw" into pi-dev

6 years agoKeep detailed job-ended reasons in the history ring
Christopher Tate [Tue, 15 May 2018 19:49:17 +0000 (12:49 -0700)]
Keep detailed job-ended reasons in the history ring

These are all static strings, so the RAM impact is minimal, and it's
quite useful for dumpsys to distinguish between cancel, clean finish,
reschedule, etc.

Bug: 77958513
Test: atest CtsJobSchedulerTestCases
Change-Id: I1e9d918b19b38c458ab24c2e9fb8af856326e1d6

6 years agoMerge "Update RemoteInput#setChoices documentation" into pi-dev
TreeHugger Robot [Tue, 15 May 2018 21:07:35 +0000 (21:07 +0000)]
Merge "Update RemoteInput#setChoices documentation" into pi-dev

6 years agoMerge "Switch the setting for Off Body Radios Off to User Absent Radios Off" into...
Damien Bargiacchi [Tue, 15 May 2018 20:58:31 +0000 (20:58 +0000)]
Merge "Switch the setting for Off Body Radios Off to User Absent Radios Off" into pi-dev

6 years agoMerge "Add support for manually set surround formats." into pi-dev
Jiabin Huang [Tue, 15 May 2018 20:54:27 +0000 (20:54 +0000)]
Merge "Add support for manually set surround formats." into pi-dev

6 years agoMerge "Report touchable region changes to Accessibility." into pi-dev
TreeHugger Robot [Tue, 15 May 2018 20:51:16 +0000 (20:51 +0000)]
Merge "Report touchable region changes to Accessibility." into pi-dev

6 years agoAdded a debug flag to turn on the AOD animation
Selim Cinek [Tue, 15 May 2018 20:15:42 +0000 (13:15 -0700)]
Added a debug flag to turn on the AOD animation

Test: adb shell setprop debug.force_no_blanking true
Bug: 78205990
Change-Id: I372770e9ee40c221d4d2db8d8c4e5644b04ce9fc

6 years agoMerge "Update a11y when alpha changes" into pi-dev
Phil Weaver [Tue, 15 May 2018 19:49:09 +0000 (19:49 +0000)]
Merge "Update a11y when alpha changes" into pi-dev

6 years agoUpdate RemoteInput#setChoices documentation
Kodlee Yin [Wed, 9 May 2018 23:19:56 +0000 (16:19 -0700)]
Update RemoteInput#setChoices documentation

The behavior that #setChoices didn't render on mobile devices from apps
that target SDK < P went undocumented. Because this is changing in P and
above, this documentation needs to point out this behavior.

Also updated formatting and style of docs to improve interop with
kotlin.

Test: none
Bug: 79244189
Change-Id: Iabfe3b2ddcc369e5ec15f9773481468cbc48dabb

6 years agoMerge "Made sure that the ambient single line view remains invisible" into pi-dev
TreeHugger Robot [Tue, 15 May 2018 19:42:39 +0000 (19:42 +0000)]
Merge "Made sure that the ambient single line view remains invisible" into pi-dev

6 years agoCall access(2) on all files/dirs modified by Mtp
Jerry Zhang [Mon, 14 May 2018 19:19:08 +0000 (12:19 -0700)]
Call access(2) on all files/dirs modified by Mtp

External sdcards are accessed through /mnt/media_rw,
so access() each touched file for sdcardfs to update
its metadata.

Java handles single object renames directly so that
is the only place where it is needed.

Bug: 77849654
Test: use mtp with emulated sdcard
Change-Id: Ie460398010f1fe74d8084808a6333b121674362c

6 years agoMerge "Fixed autofill compat mode so it works on secondary user." into pi-dev
TreeHugger Robot [Tue, 15 May 2018 19:20:19 +0000 (19:20 +0000)]
Merge "Fixed autofill compat mode so it works on secondary user." into pi-dev

6 years agoMerge "[Notif] Safeguard animation start" into pi-dev
TreeHugger Robot [Tue, 15 May 2018 19:12:38 +0000 (19:12 +0000)]
Merge "[Notif] Safeguard animation start" into pi-dev

6 years agoMerge "Prevent instant apps to host app widgets" into pi-dev
TreeHugger Robot [Tue, 15 May 2018 19:05:08 +0000 (19:05 +0000)]
Merge "Prevent instant apps to host app widgets" into pi-dev

6 years agoMerge "Fixed an issue where the wrong notification would be heads upped" into pi-dev
Selim Cinek [Tue, 15 May 2018 19:04:01 +0000 (19:04 +0000)]
Merge "Fixed an issue where the wrong notification would be heads upped" into pi-dev

6 years agoMerge "Blacklist doze setting from tuner reset" into pi-dev
TreeHugger Robot [Tue, 15 May 2018 18:38:36 +0000 (18:38 +0000)]
Merge "Blacklist doze setting from tuner reset" into pi-dev

6 years agoMade sure that the ambient single line view remains invisible
Selim Cinek [Tue, 15 May 2018 18:17:07 +0000 (11:17 -0700)]
Made sure that the ambient single line view remains invisible

The single line views are visible by default when they are inflated
and not all calls to it actually ensure that the visibility is
updated. We therefore make sure that the view is appropriately
hidden.

Change-Id: Ied7641347d910fff5c8f1f0b38d349e7f3b56b76
Fixes: 77290485
Test: add second notification to group, observe no overlapping text

6 years agoFixed autofill compat mode so it works on secondary user.
Felipe Leme [Tue, 15 May 2018 17:38:13 +0000 (10:38 -0700)]
Fixed autofill compat mode so it works on secondary user.

Test: manual verification using Chrome and sample service
Test: atest CtsAutoFillServiceTestCases

Fixes: 79747293

Change-Id: I83b6fa23e9e7307e9eb44720942f55dc58820ed7

6 years agoMerge "When ringer changes to vibrate, phone vibrates" into pi-dev
TreeHugger Robot [Tue, 15 May 2018 18:00:11 +0000 (18:00 +0000)]
Merge "When ringer changes to vibrate, phone vibrates" into pi-dev

6 years agoMerge "The argument type is bool, the current bug passes a "true" or "false" string...
TreeHugger Robot [Tue, 15 May 2018 17:47:16 +0000 (17:47 +0000)]
Merge "The argument type is bool, the current bug passes a "true" or "false" string." into pi-dev

6 years agoMerge "Rethrow SecurityExceptions in UsageStatsManager" into pi-dev
TreeHugger Robot [Tue, 15 May 2018 17:40:32 +0000 (17:40 +0000)]
Merge "Rethrow SecurityExceptions in UsageStatsManager" into pi-dev

6 years agoMerge "Hiding all views when the notification shade is collapsed" into pi-dev
Selim Cinek [Tue, 15 May 2018 17:38:31 +0000 (17:38 +0000)]
Merge "Hiding all views when the notification shade is collapsed" into pi-dev

6 years agoAdd support for manually set surround formats.
jiabin [Tue, 3 Apr 2018 01:18:45 +0000 (18:18 -0700)]
Add support for manually set surround formats.

To make surround sound setting more clear to users, we are changing
surround setting from ALWAYS to MANUAL. With MANUAL, users could enable
surround formats according to their need.

Bug: 67479735
Test: Try creating AudioTrack with enable/disable surround formats.
Change-Id: I79e610f6c43d7003daf13da3bee4e03ba9b6ea87

6 years agoMerge "Fixed notification shelf not fully visible on lockscreen" into pi-dev
Selim Cinek [Tue, 15 May 2018 17:07:56 +0000 (17:07 +0000)]
Merge "Fixed notification shelf not fully visible on lockscreen" into pi-dev

6 years agoBlacklist doze setting from tuner reset
Jason Monk [Tue, 15 May 2018 16:50:57 +0000 (12:50 -0400)]
Blacklist doze setting from tuner reset

Test: manual
Change-Id: I934cfcd65552c9998eb95ecfed65670ec73dde8d
Fixes: 78512759

6 years agoMerge "Keeping the header hidden while the hun is going away" into pi-dev
Selim Cinek [Tue, 15 May 2018 16:47:44 +0000 (16:47 +0000)]
Merge "Keeping the header hidden while the hun is going away" into pi-dev

6 years agoMerge "Fixed that views could be stuck transiently at times" into pi-dev
Selim Cinek [Tue, 15 May 2018 16:47:17 +0000 (16:47 +0000)]
Merge "Fixed that views could be stuck transiently at times" into pi-dev

6 years agoMerge "Fix crash when loading resources without code" into pi-dev
TreeHugger Robot [Tue, 15 May 2018 16:33:20 +0000 (16:33 +0000)]
Merge "Fix crash when loading resources without code" into pi-dev

6 years agoHiding all views when the notification shade is collapsed
Selim Cinek [Tue, 15 May 2018 02:17:06 +0000 (19:17 -0700)]
Hiding all views when the notification shade is collapsed

Non-heads up views could still be visible when the shade
was collapsed. Therefore they would briefly peak out
after heads up views would be swiped away leading
to ugly flickering.

Test: add hun (with notch enabled) and swipe away hun with other views present
Change-Id: I794693d7d5af5591490df7c2f4b95c01043897d2
Fixes:  76150837

6 years agoFix crash when loading resources without code
Jason Monk [Tue, 15 May 2018 15:30:09 +0000 (11:30 -0400)]
Fix crash when loading resources without code

Should use default appComponentFactory, not the actual one from the
app because we have no code.

Test: manual
Change-Id: I982967543c4cf5c28b19b36b6d183a30052bf602
Fixes: 78883500

6 years agoFix odd avatar when message sender is a number
Tony Huang [Wed, 2 May 2018 03:42:27 +0000 (11:42 +0800)]
Fix odd avatar when message sender is a number

When sender symbol is number or special-char, use person avatar icon
with sendor name color tint.

Fixes: 73551742
Test: manual use different sender name and send message notification
Change-Id: I5e3080efc834bf09c1dae93ef8af06cf3df4d22d

6 years agoMerge "Let tests enumerate all transports/capabilities." into pi-dev
Jeff Sharkey [Tue, 15 May 2018 15:17:30 +0000 (15:17 +0000)]
Merge "Let tests enumerate all transports/capabilities." into pi-dev

6 years agoMerge "Add RemoteViews.setIsWidgetCollectionChild to light grey." into pi-dev
Nicolas Geoffray [Tue, 15 May 2018 14:59:04 +0000 (14:59 +0000)]
Merge "Add RemoteViews.setIsWidgetCollectionChild to light grey." into pi-dev

6 years agoAdd summaries for Bluetooth audio active device status
ryanywlin [Tue, 15 May 2018 06:01:35 +0000 (14:01 +0800)]
Add summaries for Bluetooth audio active device status

Restore string formating for android auto summaries.

Bug: 78936284
Test: rebuild
Change-Id: Ifef26f5edc33589178098a77ade827f3e96dad82

6 years agoMerge "clean up comments" into pi-dev
Chris Wren [Tue, 15 May 2018 14:15:09 +0000 (14:15 +0000)]
Merge "clean up comments" into pi-dev

6 years agoclean up comments
Chris Wren [Mon, 14 May 2018 21:16:31 +0000 (17:16 -0400)]
clean up comments

Bug: 79698458
Test: make framework-protos
Change-Id: Ifaac050f2e00912188e3fb999b308101e3b07bf0

6 years agoFixed notification shelf not fully visible on lockscreen
shawnlin [Tue, 15 May 2018 08:39:56 +0000 (16:39 +0800)]
Fixed notification shelf not fully visible on lockscreen

Remove the height limitation of mBackgroundBounds.bottom, and allow min
height of NSSL to be shelf size in keyguard when qs panel fully
expanded.

Test: runtest systemui
Change-Id: I74755f8eefa70beec32db2a66a7a425b7fff0276
Fixes: 79202907

6 years agoMerge "Don't call setAutofillClient() on base Context if it's null." into pi-dev
TreeHugger Robot [Tue, 15 May 2018 05:47:51 +0000 (05:47 +0000)]
Merge "Don't call setAutofillClient() on base Context if it's null." into pi-dev

6 years agoMerge "Allow Print subsystem to work with services provided by instant app" into...
Philip P. Moltmann [Tue, 15 May 2018 04:58:00 +0000 (04:58 +0000)]
Merge "Allow Print subsystem to work with services provided by instant app" into pi-dev

6 years agoMerge "Do not immediately perform traversals when executing transition" into pi-dev
Jorim Jaggi [Tue, 15 May 2018 04:13:38 +0000 (04:13 +0000)]
Merge "Do not immediately perform traversals when executing transition" into pi-dev

6 years agoMerge "Change quickstep onboarding tip window type to TYPE_NAVIGATION_BAR_PANEL....
TreeHugger Robot [Tue, 15 May 2018 02:18:14 +0000 (02:18 +0000)]
Merge "Change quickstep onboarding tip window type to TYPE_NAVIGATION_BAR_PANEL." into pi-dev

6 years agoFixed that views could be stuck transiently at times
Selim Cinek [Tue, 15 May 2018 01:12:42 +0000 (18:12 -0700)]
Fixed that views could be stuck transiently at times

Removed all references to overlay from the stackscroller
and always using transient views now. We were using
the overlay in places where we shouldn't have been and
therefore views could become stuck.

Change-Id: I8bf455e2d1c4d065d0b3c441606d51b3b96eab9f
Fixes: 78493499
Test: add hun, click on it, observe no transient view stuck behind

6 years agoMerge "Metrics for hardware reliability reporting" into pi-dev
TreeHugger Robot [Tue, 15 May 2018 01:16:33 +0000 (01:16 +0000)]
Merge "Metrics for hardware reliability reporting" into pi-dev

6 years agoChange quickstep onboarding tip window type to
Tracy Zhou [Mon, 14 May 2018 23:58:54 +0000 (16:58 -0700)]
Change quickstep onboarding tip window type to
TYPE_NAVIGATION_BAR_PANEL.

Fixes: 73990691
Test: Go through the talkback flow, "settings cannot verify your
response" toast does not show.

Change-Id: I6f4819eb6ace1260a30589dbcc6c01fa4c8e5c35

6 years agoThe argument type is bool, the current bug passes a "true" or "false"
Yi Jin [Tue, 15 May 2018 01:04:29 +0000 (18:04 -0700)]
The argument type is bool, the current bug passes a "true" or "false"
string.

Bug: 79710844
Test: atest incidentd_test
Change-Id: I66fc086e4a194e68638311ccdc305a495ecf8da4

6 years agoDon't call setAutofillClient() on base Context if it's null.
Felipe Leme [Tue, 15 May 2018 00:51:58 +0000 (17:51 -0700)]
Don't call setAutofillClient() on base Context if it's null.

Test: atest CtsAutoFillServiceTestCases
Test: changed activity on autofill sample to override attachBaseContext() by
      calling super.attachBaseContext(null) - the activity still crashes, but
      not on attachBaseContext().

Fixes: 79707861

Change-Id: Idfaa9c596cc338ab815441138ce06ba64cd3b4d2

6 years agoMerge "Autofill: allow switch IME when autofill is showing" into pi-dev
Dake Gu [Tue, 15 May 2018 01:02:41 +0000 (01:02 +0000)]
Merge "Autofill: allow switch IME when autofill is showing" into pi-dev

6 years agoMerge "Simplify Javadoc for easier parsing." into pi-dev
TreeHugger Robot [Tue, 15 May 2018 00:48:52 +0000 (00:48 +0000)]
Merge "Simplify Javadoc for easier parsing." into pi-dev

6 years agoMerge "Decrease the inferred auto-brightness adjustment at the extremes." into pi-dev
TreeHugger Robot [Tue, 15 May 2018 00:37:10 +0000 (00:37 +0000)]
Merge "Decrease the inferred auto-brightness adjustment at the extremes." into pi-dev

6 years agoCenter QS icons (wifi, invert colors, night light)
Evan Laird [Tue, 15 May 2018 00:26:31 +0000 (20:26 -0400)]
Center QS icons (wifi, invert colors, night light)

Test: look at qs; avoid angst
Change-Id: Id0e57c188a877de68bcd2d50d4f41d05e7dc8c82
Fixes: 67310956
Bug: 74344964

6 years agoKeeping the header hidden while the hun is going away
Selim Cinek [Tue, 15 May 2018 00:17:31 +0000 (17:17 -0700)]
Keeping the header hidden while the hun is going away

Previously we were showing the Hun header immediately again
when the heads up times out, but we now also factor in
if it's animating away.

Test: add hun, click on it, header is still hidden
Change-Id: I2e5714c9282f0dd76d17511485c002010be169bb
Fixes:  77219603

6 years agoFixed an issue where the wrong notification would be heads upped
Selim Cinek [Tue, 8 May 2018 21:43:21 +0000 (14:43 -0700)]
Fixed an issue where the wrong notification would be heads upped

When setting the heads up on the summary, the headsup could be transfered
to the children, which is correct whenever we only have one child but not
if contains more then one. We're now looking at the pending notifications
as well in order to make the heads up transfer and revert back in case
we just made the wrong decision.

Test: install test app from bug: first post group and first child and then group with second child, observe normal heads up behavior
Change-Id: I52803f6846d602b6eb542aa18185bde7d60573e0
Fixes: 71818291

6 years agoMerge "Update javadoc for setVisualVoicemailSmsFilterSettings" into pi-dev
Ta-wei Yen [Mon, 14 May 2018 23:48:55 +0000 (23:48 +0000)]
Merge "Update javadoc for setVisualVoicemailSmsFilterSettings" into pi-dev

6 years agoReport touchable region changes to Accessibility.
Robert Carr [Mon, 14 May 2018 23:34:53 +0000 (16:34 -0700)]
Report touchable region changes to Accessibility.

Some UI Popups provided by the framework are now using
large surfaces and touchable regions instead of resizing, which
had broken accessibility.

Bug: 79272211
Test: Manual
Change-Id: I40cccce8459348f1f2e7fcb5d9c36b7ab705c20d

6 years agoMerge "Reset auto-brightness on new BrightnessConfiguration" into pi-dev
Michael Wright [Mon, 14 May 2018 23:33:02 +0000 (23:33 +0000)]
Merge "Reset auto-brightness on new BrightnessConfiguration" into pi-dev

6 years agoMerge "Fixing user tap on suspended widget" into pi-dev
TreeHugger Robot [Mon, 14 May 2018 23:32:08 +0000 (23:32 +0000)]
Merge "Fixing user tap on suspended widget" into pi-dev

6 years agoGenerally improve brightness dumpsys.
Michael Wright [Mon, 30 Apr 2018 23:38:32 +0000 (00:38 +0100)]
Generally improve brightness dumpsys.

For the recent spate of autobrightness bugs, being able
to determine both current state of the display brightness and the
overall situational context of the device (e.g. ALS readings) is
critical to quick diagnosis. This tidies up the logs and adds some more
state information so we have more context about the situation the device
is in.

Bug: 78909876
Test: adb shell dumpsys display
Change-Id: I0e3cd5d00268b5b44f3d486fae8940d7d7d2ed2e

6 years agoMerge "Improve a11y ordering" into pi-dev
Phil Weaver [Mon, 14 May 2018 23:25:07 +0000 (23:25 +0000)]
Merge "Improve a11y ordering" into pi-dev

6 years agoLet tests enumerate all transports/capabilities.
Jeff Sharkey [Mon, 14 May 2018 19:49:07 +0000 (13:49 -0600)]
Let tests enumerate all transports/capabilities.

This gives them a way to collect all included values without
resorting to manual probing of each newly added value.

Bug: 16207332
Test: atest com.android.cts.net.HostsideVpnTests
Change-Id: I35ca412512dc8515b44d5518e1ca4caa5bdc678f

6 years agoDecrease the inferred auto-brightness adjustment at the extremes.
Michael Wright [Mon, 14 May 2018 22:53:48 +0000 (15:53 -0700)]
Decrease the inferred auto-brightness adjustment at the extremes.

Now that the brightness slider always represents the brightness of the
panel, rather than the auto-brightness adjustments like it did prior to
P, we need to infer the adjustment by comparing the old and new
brightness values. At the extremes, this inferred brightness increases
dramatically towards (+/-) infinity, so we use a different strategy.
Based on dogfood feedback, the current inference seems to have too
strong of an effect, so we're cutting it in half in the hopes that this
is more reasonable.

Change-Id: If6a6c3355f9dcce8588512f1d969c871149ec299
Fixes: 79153846
Test: manual

6 years agoMerge "Allow to create trusted BaseDexClassLoader" into pi-dev
TreeHugger Robot [Mon, 14 May 2018 23:11:33 +0000 (23:11 +0000)]
Merge "Allow to create trusted BaseDexClassLoader" into pi-dev

6 years agoMerge "Mitigating cache corruption in ArrayMap" into pi-dev
TreeHugger Robot [Mon, 14 May 2018 23:03:39 +0000 (23:03 +0000)]
Merge "Mitigating cache corruption in ArrayMap" into pi-dev

6 years agoMetrics for hardware reliability reporting
Andrew Chant [Thu, 10 May 2018 21:16:07 +0000 (14:16 -0700)]
Metrics for hardware reliability reporting

Add event metrics for hardware reliability reporting.

Events include:
 - Battery Health Snapshot
 - Battery Charge cycles
 - Physical Drop
 - Hardware Failed
 - USB Audio Device insertion & removal
 - USB Connector insertion & removal

Bug: 69978775
Test: Logged events from Pixelstats HAL
Change-Id: I9389f71ffe85a430273f33650503f714ea308a78

6 years agoMerge "Configurable data error action in value metric" into pi-dev
TreeHugger Robot [Mon, 14 May 2018 22:46:15 +0000 (22:46 +0000)]
Merge "Configurable data error action in value metric" into pi-dev

6 years agoUpdate javadoc for setVisualVoicemailSmsFilterSettings
Ta-wei Yen [Mon, 30 Apr 2018 18:55:47 +0000 (11:55 -0700)]
Update javadoc for setVisualVoicemailSmsFilterSettings

Test: N/A
Change-Id: I024fa5c2947b562e61e693ecb4d8421fe2507c9e
Fixes: 73829091

6 years agoMitigating cache corruption in ArrayMap
Suprabh Shukla [Mon, 14 May 2018 21:22:11 +0000 (14:22 -0700)]
Mitigating cache corruption in ArrayMap

Before calling freeArrays, storing the array reference into a temporary
pointer so that the main pointer doesn't end up corrupting the static
pool of arrays on concurrent access. An earlier change missed a rare
case when removeAt was called for the last element in the map.

Test: atest android.util.ArrayMapTest
atest android.util.cts.ArrayMapTest

Bug: 78898947
Change-Id: I454c5b1600eb0a6c690e746df10f6a0ebcd8aa1d

6 years agoRethrow SecurityExceptions in UsageStatsManager
Amith Yamasani [Mon, 14 May 2018 21:47:19 +0000 (14:47 -0700)]
Rethrow SecurityExceptions in UsageStatsManager

Some of the newer methods were not rethrowing the system server
exceptions. When not returning a default value, rethrow the
RemoteException from the system server.

Bug: 79692228
Test: atest CtsUsageStatsTestCases:UsageStatsTest
Change-Id: I7b2ae735fc97f3e1903903ed5c98ce914aeaa84a

6 years agoMerge "Measuring the content views always at their specified size" into pi-dev
Selim Cinek [Mon, 14 May 2018 21:36:28 +0000 (21:36 +0000)]
Merge "Measuring the content views always at their specified size" into pi-dev

6 years agoMerge "Add 'Snooze' to local context menu for notifications" into pi-dev
Mady Mellor [Mon, 14 May 2018 21:10:49 +0000 (21:10 +0000)]
Merge "Add 'Snooze' to local context menu for notifications" into pi-dev

6 years agoWhen ringer changes to vibrate, phone vibrates
Beverly [Mon, 14 May 2018 20:48:40 +0000 (16:48 -0400)]
When ringer changes to vibrate, phone vibrates

Change-Id: I382e1ba9bd4aef05dc0a8e093870a04b2795fa7f
Fixes: 78665512
Test: manual

6 years agoAllow to create trusted BaseDexClassLoader
Philip P. Moltmann [Mon, 14 May 2018 21:00:45 +0000 (14:00 -0700)]
Allow to create trusted BaseDexClassLoader

Currently the API is blacklisted.

Bug: 78235528
Test: Called the API after light-greylisting
Change-Id: I7f094a96262a9c8527b339a175f17f2addc87cda

6 years agoMerge "Add CallAudioState ctor as TestApi" into pi-dev
Hall Liu [Mon, 14 May 2018 20:56:57 +0000 (20:56 +0000)]
Merge "Add CallAudioState ctor as TestApi" into pi-dev

6 years agoConfigurable data error action in value metric
Chenjie Yu [Mon, 14 May 2018 17:14:16 +0000 (10:14 -0700)]
Configurable data error action in value metric

Right now in value metric, if a later pull produces a smaller number
than the previous one, we use absolute value of the current value.
This is not correct for some atoms as listed in the CL, which should
just take 0.
For some other atoms, this is unexpected error and should just dump
stale data.

Test: manual test
Bug: 79265262
Change-Id: I59fbfd96cbb57be22cd8d21cb57a7c60ca6856ee

6 years agoMerge "Allow device/profile owners to change app ops modes." into pi-dev
Dianne Hackborn [Mon, 14 May 2018 20:43:31 +0000 (20:43 +0000)]
Merge "Allow device/profile owners to change app ops modes." into pi-dev