With b/150232615, we will need an explicit value set for the exported
flag when intent filters are present, as the default behavior is
changing for S+. This change adds the value reflecting the previous
default to the manifest.
These changes were made using an automated tool, the xml file may be
reformatted slightly creating a larger diff. The only "real" change is
the addition of "android:exported" to activities, services, and
receivers that have one or more intent-filters.
Bug: 150232615
Test: TH
Exempt-From-Owner-Approval: mechanical refactoring
Change-Id: I4457ff2bd466a4c56fed2570e110f251031c2385
Replace the existing usages of now-deprecated API
WindowManager.getDefaultDisplay() with WindowMetrics or
Context.getDisplay() in frameworks/base.
Bug: 128338354
Test: Build, auto test
Change-Id: I02d38a022c5e0e6e9d699f03d35b65d6c8126da9
Bug: 129694386
Test: No change in behavior, no new tests
EdgeType is only used as a parameter to quickReject, but it is always
ignored. Deprecate it and the existing quickReject methods. Add new
versions of quickReject without EdgeType parameters. Switch clients to
the new versions.
Change-Id: Id932f10915a8c4959fe0e85f507ce7fd2da8a576
Add RuntimeShader hidden API, which calculates pixel output with
a fragment shader running on GPU.
Extend ColorFiltersMutateActivity HWUI test to use new API and
show how to animate uniforms on UI thread.
Test: Updated HwAccelerationTest
Change-Id: Ia26e44259b12099924facba250880cbbd9be21c7
As discussed with Romain Guy in the email thread, the Apache 2.0
license applies to the affected .jpg files now and retroactively from
the time of import.
Usage terms updated with exiftool:
$ exiftool -UsageTerms='Apache License Version 2.0' \
frameworks/base/tests/HwAccelerationTest/res/drawable-nodpi/very_large_photo.jpg
1 image files updated
$ exiftool -URL -WebStatement -UsageTerms -Rights -Creator \
frameworks/base/tests/HwAccelerationTest/res/drawable-nodpi/very_large_photo.jpg
Usage Terms : Apache License Version 2.0
Rights : Romain Guy
Creator : Romain Guy
$ exiftool -UsageTerms='Apache License Version 2.0' \
frameworks/base/tests/UiBench/res/drawable-nodpi/frantic.jpg
Warning: [minor] Fixed incorrect list type for XMP-xmpRights:UsageTerms - frameworks/base/tests/UiBench/res/drawable-nodpi/frantic.jpg
1 image files updated
$ exiftool -URL -WebStatement -UsageTerms -Rights -Creator \
frameworks/base/tests/UiBench/res/drawable-nodpi/frantic.jpg
Usage Terms : Apache License Version 2.0
Rights : Romain Guy
Creator : Romain Guy
Test: doesn't really apply to images
Change-Id: I3b9503efab871600512840531b477d3226432d58
As discussed with Romain Guy in the email thread, the Apache 2.0
license applies to the affected .jpg files now and retroactively from
the time of import.
The exiftool did not remove the old CreativeCommons metadata.
The images were altered using the bless hex editor to manually
overwrite the metadata.
$ exiftool -URL -WebStatement -UsageTerms tests/CanvasCompare/res/drawable/sunset1.jpg
URL : http://www.apache.org/licenses/LICENSE-2.0
Web Statement : http://www.apache.org/licenses/LICENSE-2.0
Usage Terms : Apache License Version 2.0
$ exiftool -URL -WebStatement -UsageTerms tests/HwAccelerationTest/res/drawable-hdpi/sunset1.jpg
URL : http://www.apache.org/licenses/LICENSE-2.0
Web Statement : http://www.apache.org/licenses/LICENSE-2.0
Usage Terms : Apache License Version 2.0
$ exiftool -URL -WebStatement -UsageTerms tests/HwAccelerationTest/res/drawable/sunset1.jpg
URL : http://www.apache.org/licenses/LICENSE-2.0
Web Statement : http://www.apache.org/licenses/LICENSE-2.0
Usage Terms : Apache License Version 2.0
Change-Id: Icbd8c8c65ca521751d63a213377e3ababff0b7da
As discussed with Romain Guy in the email thread, the Apache 2.0
license applies to the affected .jpg files now and retroactively from
the time of import.
'wallpaper_goldengate.jpg' and 'wallpaper_goldengate_scale.jpg' were
altered using the exiftool:
exiftool -WebStatement=http://www.apache.org/licenses/LICENSE-2.0
Each of the other images was altered using the exiftool:
exiftool -URL=http://www.apache.org/licenses/LICENSE-2.0 \
-WebStatement=http://www.apache.org/licenses/LICENSE-2.0 \
-UsageTerms='Apache License Version 2.0'
Change-Id: I52a032fc6aa6373d2fb0ea941e041ea72764268c
Allow views to register a list of rects where the device's system UI
should not intercept complex (read: down+move+up) gestures on specific
sub-regions of the view. This should not be used for large-scale,
full-view gesture recognition such as scrolling, but rather for specific
areas such as SeekBar's scroll thumb or DrawerLayout's edge strip for
swiping open a navigation drawer.
Add ability for ViewTreeObserver to observe transformed exclusion rects
Bug: 126360272
Test: atest android.view.cts.SystemGestureExclusionRectsTest
Change-Id: If89b6f66637e40efa12955d6408f6e37b25cb46f
See build/soong/README.md for more information.
Bug: 122332340
Test: treehugger
Change-Id: I23d8d5a019155a0f3296f7ab75e9b44b7621f3c8
Merged-In: I23d8d5a019155a0f3296f7ab75e9b44b7621f3c8
Removed PorterDuffColorFilter#setColor and PorterDuffColorFilter#setMode
as the public facing ColorFilter API is immutable. These framework
internal APIs were causing issues with Drawables as updates to state of
the ColorFilter would not be propagated up to the Drawable to cause an
invalidation.
Fixes: 77723600
Test: Ran atest on SystemUITest and CtsGraphicsTest modules
Change-Id: I935c9e35ffa225735b951bb3b1eb753ea5815a84
This change sets LOCAL_SDK_VERSION for all packages where
this is possible without breaking the build, and
LOCAL_PRIVATE_PLATFORM_APIS := true otherwise.
Setting one of these two will be made required soon, and this
is a change in preparation for that. Not setting LOCAL_SDK_VERSION
makes the app implicitly depend on the bootclasspath, which is
often not required. This change effectively makes depending on
private apis opt-in rather than opt-out.
Test: make relevant packages
Bug: 73535841
Change-Id: I4233b9091d9066c4fa69f3d24aaf367ea500f760
Use the public API version of the same thing that the private API
access was doing. No behavior change.
Test: built
Change-Id: I4a9032cfb1d4e699f72df3b079ef363d308419e8
Allows creating a HW Bitmap from the drawing
commands of a RenderNode.
Bug: 38507414
Bug: 37698012
Test: Sample in HwAccelerationTest
Change-Id: I57c60b2c8bf5194f4412ad4b7f1c1f35e2e4c757
Bug: 36025103
Test: cts-tradefed run singleCommand cts-dev --module CtsGraphicsTestCases
Now, similar to Shaders, we defer native creation until Paint is being
used, and ensure that we have an up to date filter when drawing.
Also implements ColorMatrix#equals to behave like Matrix#equals.
Change-Id: I5f74addd97f5662800802e6f660fead58d518725
This is unsafe because the random will be seeded in the zygote, which
means all processes on the system generate the same sequence of random
numbers. Fortunately, this code is only used in tests, so get rid of it.
Note that the Random that backs Math.random() is reseeded after every
fork to avoid a similar issue.
Bug: 35918685
Test: HwAccelerationTest
Change-Id: Ice79aa25bb9017f7a0b91659afe04112850cb74b
ThreadedRenderer is not synonymous with hardware rendering, so
remove references to hardware rendering when referring to
ThreadedRenderer.
Change-Id: Ic66a482ccf05f556ebe6ec194ce4f858f75bbb8b
-Switch to material style handles.
-Delete old handles.
-Remove the unrelated use of old handle in a test.
Bug: 28723844
Change-Id: I268c2672df541e5a1cdcdeb6712289fe06c06d5f
Bug: 28428970
Test for video sources and fix a bug where
we should throw an IAE for surfaces that are invalid
at request time.
Change-Id: I891a2b1568f583300433c7aca6de36d2e2621c63
bug:27098060
Snap SurfaceView positions to safely align to pixel boundaries.
Also expands MovingSurfaceViewActivity to support a scaling option, and
show problems more clearly.
Change-Id: Ic8e9c1e2f80c2c653bf4428e373f14528ddbce81