If mode is MODE_FADE, it use a simple dim layer, it's unnecessary to
create the surface.
Bug: 186274303
Test: turn off/on screen to see if ColorFade works fine
Change-Id: I0f9f3bab63afe2fb37ae87f37cd6c55e924639fb
Also print a log when restore route to default while a bluetooth
route is avaialble.
Bug: 176386259
Test: build
Change-Id: I4a974438040595597fbf4dcb0ec57d49351540ef
We should not blend between the fill alpha and the sparkle alpha.
This would cause the sparkle pixel to have lower opacity than the fill,
when the fillAlpha > sparkleAlpha.
We do need to blend the fill and sparkle colors, but their alphas need
to be combined separately.
In the end we then premultiply the alpha into the color.
Test: manual
Bug: 186130682
Change-Id: I519f6c797839feda14e714c7375ee727aba2cf8b
If the application thread is not ready yet we cannot
get the package name and were shrt circuiting which
let to leaving the remainder of the payload in the
parcel breaking subsequent content reads.
bug: 184616098
Test: atest CtsAppOpsTestCases
Change-Id: I83f0d74deb87f2b4517d8a4d10b5331c7d41bb89
Put an app in the RESTRICTED bucket if it's crashed enough to be marked
bad.
Bug: 183103253
Test: manual (consistently crash an app via 'adb shell am crash <pkg>'
in intervals larger than MIN_CRASH_INTERVAL until the limit is reached
and check 'dumpsys activity usage' to ensure lastRestrictAttempt and
lastRestrictReason are both set for the app
Change-Id: Ie8c36075573efcb4f63bf6f8d836f2edb3bb27cd
Add force-dark support to RippleDrawable by modifying the ink color.
Test: manual
Test: atest CanvasOp
Fixes: 186130682
Change-Id: I89eaaf3afa5ec53a74d2d08de8cff6484e55a912
droidfood test coverage on the intended change.
This value is also protected by flags so it can be set to the previous
value while we run requested population experiments. Power tests show
that this change causes a < 1% change in days of use (see b/178902585).
Bug: 184875711
Test: Manual
Change-Id: Ied13dc79b0dca655dea05ad61f0b54f81290673c
Fixes: 187219563
The benchmark watches the number of frames and the
stretch overscroll animation can affect the number
of frames that are produced.
Test: ran testSlowBindRecyclerViewFling
Change-Id: I90774980be850eda797fb80e655e7f4cd2dd76ac
Remove old EJ timing sessions before we schedule the next cleanup alarm.
If we don't remove them, then we will continue to use stale sessions as
the basis for the next cleanup alarm, which would eventually result in
scheduling alarms in the past.
Bug: 187351354
Test: atest FrameworksMockingServicesTest:QuotaControllerTest
Change-Id: I1b968e0461efe9aad3e785760a3cd2f5d8d4de8b
Bug: 172289889
Test: open and close shade => fade in and out
scroll shade / normal usage => no fade
Change-Id: Ib6676e8d8eac0e4dd4ed84f08249bd2ec83ca77b
Remove getService from the constructor, delay
getting the service until it's used.
bug: 187425268
test: CTS MediaTranscodeManagerTest
Change-Id: I502bb428fcde96874a1af431af07413feea64d7a
This is temporary, to avoid breaking clients that already implemented
the API before onResumed was added.
Bug: 185274258
Test: manual
Change-Id: Icd2c392e248f01c22b95e0b88ba56847ae71f10a