9861 Commits

Author SHA1 Message Date
Stan Iliev
421449a4a6 Fix TextureView.getBitmap with scale layer transform
Fix TextureView.getBitmap to capture content only from the layer.

Bug: 111401911
Test: A new test TextureViewTest.testTransformScale is passing
Change-Id: I2b9cee17fc48de7b12ed03d5b4f173ce5445dbfe
Merged-In: I2b9cee17fc48de7b12ed03d5b4f173ce5445dbfe
(cherry-picked from ff129aefe2b68c5dc6fe51a9b1d34f98750d4973)
(cherry picked from commit 9675537555913a6aa7c25a71a6b854a083e22ede)
2018-08-29 14:54:53 +08:00
Mike Reed
d19d39425c onDrawTextOnPath is deprecated (not called)
Test: build

Change-Id: I28a4886ba011d35de323c75b49c1377aeb09548a
2018-08-28 15:59:22 -04:00
Sudheer Shanka
25469aacb8 Remove DefaultContainerService usage in StorageManagerService.
StorageManagerService uses DefaultContainerService to obtain ObbInfo
for files passed through mountObb() transaction. This change moves this
logic to client side and so ObbInfo will be passed as part of mountObb()
transaction.

Bug: 111838160
Test: atest src/android/os/storage/cts/StorageManagerTest.java
Test: atest core/tests/coretests/src/android/os/storage/StorageManagerIntegrationTest.java
Test: atest services/tests/servicestests/src/com/android/server/MountServiceTests.java
Change-Id: I29aee3aa54a45057df96aae289888161a3e3af71
2018-08-27 15:50:59 -07:00
Greg Kaiser
f15c333ddc Merge changes Ie072511b,I6424f90c am: 9d10637e01 am: ddedd24e96
am: 57d7cabbf5

Change-Id: Ic92512281269ceedbbfb197e1d7d0a230bf2317f
2018-08-24 15:54:32 -07:00
Greg Kaiser
ddedd24e96 Merge changes Ie072511b,I6424f90c
am: 9d10637e01

Change-Id: I06ca7319633534e38b45ab960f285a072cff84da
2018-08-24 15:38:07 -07:00
Ryan Mitchell
b9b540baf1 AFW: Lookup shared library resource ids
Shared libraries were failing to retrieve correct resource ids from the
values of attributes in xml files. The packages of the shared ids were
not changed from 0 to their runtime assigned package ids.

Bug: 112776204
Test: atest FieldsClassificationTest#testGetAlgorithm
Change-Id: I509bc7632f5ec3e9b644e590934e6cf569a4d938
2018-08-24 10:11:01 -07:00
Greg Kaiser
174b50fa50 TreeInfo: Make ~ErrorHandler() virtual
ErrorHandler has a pure virtual function, so we also make its
destructor virtual, to assure any children classes will get
properly destructed.

Test: TreeHugger
Change-Id: Ie072511b450d507f8764b0888d232ffac8f6d6f5
2018-08-24 06:10:18 -07:00
Yiwei Zhang
2c2bfc33f0 Update the initialize list for DisplayInfo
Bug: b/113041831
Test: build
Change-Id: I2a6468e55137834c9215ca9410b00e2dbba6ee87
2018-08-23 17:24:55 -07:00
Greg Kaiser
a95435b836 RenderThread: Make ~IFrameCallback() virtual
IFrameCallback has a pure virtual method, but its destructor was
non-virtual.  While CanvasContext, which inherits from
IFrameCallback, declares its own destructor virtual, this is not
sufficient when accessing via an IFrameCallback pointer.

We fix this by making the base destructor virtual.

Test: Treehugger
Change-Id: I6424f90c16caea417b5f80b60d76a7ca7c7ef97c
2018-08-23 17:07:56 -07:00
Anton Hansson
47ee291898 Merge "androidfw changes to support /product-services." 2018-08-22 13:58:00 +00:00
Ben Wagner
1d155336a8 Remove use of SkTLazy.
Skia is planning to make SkTLazy private to Skia. This changes uses of
SkTLazy to std::optional.

Test: refactoring CL. Existing unit tests still pass.
Change-Id: Id92c27cb8b3b41eb2e531b1a930511064a47a6f7
2018-08-21 11:11:37 -04:00
Greg Daniel
7fd08795de Merge "Update VulkanManager to use new skia Vulkan context api." 2018-08-20 20:11:46 +00:00
Greg Daniel
a227dbb322 Update VulkanManager to use new skia Vulkan context api.
Test: manual build and run on phone.
Change-Id: Ib21f4091cf11de5655323337e86a35cb7b845b15
2018-08-20 13:23:41 -04:00
Dario Freni
4ce4679309 androidfw changes to support /product-services.
See CL I7a6a30bf8e8db9f2738594d187bb9148f138b8da for a more detailed
description of the change.

Test: see CL I7a6a30bf8e8db9f2738594d187bb9148f138b8da description
Bug: 80741439
Change-Id: I6cc9d713c07c319fc2ee1c531af41243bd1d4aee
2018-08-17 16:34:18 +00:00
Derek Sollenberger
333a83c02f Prefer ES 2.0 with external image support vs ES 3.0 without that support
We currently attempt to use ES 3.0 shaders even if it lacks the
extension for external images.  This CL reverts back to ES 2.0 in
the event that we find that the OES_EGL_image_external_essl3 is not
present.

Test: no change in graphics output
Bug: 111220579
Change-Id: I6bd7145026d9686cfcf49393a19580208db8a367
2018-08-15 10:17:45 -04:00
John Reck
4d7c62b0f2 Remove unused library dependency
Test: builds
Change-Id: I38e2672238e4571b9236621528e5b362039de03d
2018-08-02 16:33:21 -07:00
Stan Iliev
038fc3732d Set bilinear filter quality when drawing VectorDrawable
Set filter quality to GL_LINEAR, when drawing
VectorDrawable cache into the frame buffer.

Bug: 77841258
Test: Search bar icon jagged edge in launcher fixed
Change-Id: I91270f64964ae3ba7a47264aec395bc2c2d9e968
2018-07-31 15:11:31 +00:00
TreeHugger Robot
96fb339b4b Merge "Have the framework setup android defines for including vulkan.h" 2018-07-27 14:20:34 +00:00
Florin Malita
aee140c8b6 Remove SkiaCanvasProxy
No longer being used.

Change-Id: Iae2c1938522b7802c4d38a04a365ad8881f3c4aa
2018-07-26 14:12:08 -04:00
Greg Daniel
22cc59dd3a Have the framework setup android defines for including vulkan.h
We're moving skia to place where it has its own vulkan header and
the clients have theirs. So this sets up the VulkanManager to be
able to handle including vulkan.h how it wants to.

Test: manual building and running

Change-Id: I0818d2fc607bf8a265bf6ddf1e2f737d1228131a
2018-07-24 13:47:48 -04:00
John Reck
fbd7479ba5 Merge "More auto-dark stuff" 2018-07-23 23:28:40 +00:00
John Reck
339cf9b327 More auto-dark stuff
Initial attempt at selective bitmap inverting
Use CIE_LAB colorspace for inverting instead of HSV

Test: Manually poking around
Change-Id: I014ff31eeae471ee7f6a40a6daa4e7099c2a7ff8
2018-07-19 15:58:39 -07:00
Stan Iliev
0678660c8d Merge "Fix TextureView.getBitmap with scale layer transform" into pi-dev
am: f5d4ea6132

Change-Id: I76c8480c0ce5583ce75a91d665862032415c54d8
2018-07-18 16:54:22 -07:00
TreeHugger Robot
f5d4ea6132 Merge "Fix TextureView.getBitmap with scale layer transform" into pi-dev 2018-07-18 23:39:26 +00:00
Jorim Jaggi
edf3e1fa2e Merge "Move allocateBuffers to RT" into pi-dev am: 2f8a3a4bb8
am: c9756c9193

Change-Id: Ieed40312fe16a54c3e1974621b53e29b23ddcdbc
2018-07-18 15:19:39 -07:00
Jorim Jaggi
c9756c9193 Merge "Move allocateBuffers to RT" into pi-dev
am: 2f8a3a4bb8

Change-Id: I6c8f84406a40fa324a4486f71fccf01f6acfe60a
2018-07-18 15:06:29 -07:00
Jorim Jaggi
2f8a3a4bb8 Merge "Move allocateBuffers to RT" into pi-dev 2018-07-18 21:47:59 +00:00
Jorim Jaggi
7823ee73ee Move allocateBuffers to RT
Such that it gets executed after setSurface, in order that
mReqUsage has the correct flags set.

Test: Take trace, ensure that allocateBuffers actually allocates
in the right format/usage by ensuring that dequeueBuffer doesn't
trash them immediately again.
Bug: 111517695
Change-Id: I94b402d7b29d565155a77a2d09106246261712d2
2018-07-17 17:34:49 +02:00
Stan Iliev
aac878f108 Fix TextureView.getBitmap with scale layer transform
Fix TextureView.getBitmap to capture content only from the layer.

Bug: 111401911
Test: A new test TextureViewTest.testTransformScale is passing
Change-Id: I2b9cee17fc48de7b12ed03d5b4f173ce5445dbfe
2018-07-17 13:39:54 +00:00
Todd Kennedy
c7d7611719 Merge "Loosen resource file verification" into pi-dev am: cf0b127110
am: 60413d0697

Change-Id: I95400ba3a885605bc52df10968ef2b4adf7f90a6
2018-07-16 14:31:10 -07:00
Todd Kennedy
60413d0697 Merge "Loosen resource file verification" into pi-dev
am: cf0b127110

Change-Id: I0b4012085579aa172a1a3f5a83325f0827523af5
2018-07-16 14:15:09 -07:00
Stan Iliev
ff129aefe2 Fix TextureView.getBitmap with scale layer transform
Fix TextureView.getBitmap to capture content only from the layer.

Bug: 111401911
Test: A new test TextureViewTest.testTransformScale is passing
Change-Id: I2b9cee17fc48de7b12ed03d5b4f173ce5445dbfe
2018-07-16 21:03:39 +00:00
Todd Kennedy
28e663cbed Loosen resource file verification
Bug: 77808145
Test: Tried to install corrupt APK prior to the change, install failed
Test: Tried to install corrupt APK after the change, install succeeded
Test: atest CtsAppSecurityHostTestCases:CorruptApkTests
Change-Id: I19a69e52a17c1080beaf2cc575c32f564b1033a3
2018-07-16 20:52:55 +00:00
Greg Daniel
4aa5867051 No longer create a GrVkInterface in the VulkanManger.
Test: manual

Change-Id: I5debded1f42cab60bacd3b9b9d2f10ada088c86a
2018-07-13 14:04:55 -04:00
TreeHugger Robot
27cfaae798 Merge "Remove use of SkRefCnt_SafeAssign." 2018-07-12 20:24:24 +00:00
Ben Wagner
c1a8a46fd4 Remove use of SkRefCnt_SafeAssign.
Update pointer to SkRefCnt fields which require it to sk_sp.

Test: refactoring CL. Existing unit tests still pass.
Change-Id: I4f3eb790ee67c09746708458c4492569b64cc58f
2018-07-12 19:19:53 +00:00
John Reck
e5a55523d6 Merge "Merge "Disable LTO on -eng" am: 1918b39942 am: af3e763358" into pi-dev-plus-aosp
am: 7ac9ac5605

Change-Id: I7b048d8897006ba3e0772a9c6e60ecfed0cbe2a8
2018-07-11 16:03:35 -07:00
John Reck
888f73388b Merge "Disable LTO on -eng" am: 1918b39942
am: af3e763358

Change-Id: I5146424fc06ad7c62088a0ac6f957e0a02b0ec66
2018-07-11 15:09:34 -07:00
John Reck
af3e763358 Merge "Disable LTO on -eng"
am: 1918b39942

Change-Id: I925182b722d7bf6b1bb63c298a8ec9e345f0c4ac
2018-07-11 14:48:50 -07:00
Ben Wagner
81926cfbe7 Merge "Replace SkDrawFilter with PaintFilter." 2018-07-11 19:36:52 +00:00
John Reck
2729418128 Disable LTO on -eng
Speeds up incremental compile of one cpp file change
from over a minute to around 15 seconds

Bug: 111277863
Test: touch a .cpp file in hwui & mmm
Change-Id: I946ecad411a7a59f87ed9e1eeb146d6f57bd038a
2018-07-11 18:24:58 +00:00
Ben Wagner
0ed10bedbb Replace SkDrawFilter with PaintFilter.
Skia is removing SkDrawFilter.

Test: refactoring CL. Existing unit tests still pass.
Change-Id: If81c1a2feabf7d377ae1d7bcb3e8cf0f599ad3ce
2018-07-11 12:07:22 -04:00
Siarhei Vishniakou
8027876f9f Refactor String8 to std::string calls
DisplayViewport::uniqueId is now std::string, so change the calls
appropriately. Do some additional cleanups and conversions.
This almost completely removes the dependency on String8.

Test: build only
Bug: 111108021
Change-Id: Ibbb6ca59e9061954d4a5fb930ef03d42cb0230db
2018-07-11 09:56:43 +01:00
John Reck
b91ec50287 Fix NPE in makeTransformCanvas
Test: builds && hwuiunit passes
Change-Id: Ie728832352b3652630c11bdb3115872482f12923
2018-07-10 09:14:57 -07:00
TreeHugger Robot
d57794b1be Merge "Auto-dark mode prototype" 2018-07-10 00:02:26 +00:00
Haibo Huang
50621368c8 Merge "Remove CSV support" am: 0faecf7b89 am: 9fada2364f
am: 6fc2f09b35

Change-Id: I28d0bae71507247125daadf39313a9dab5b284fd
2018-07-09 15:56:22 -07:00
Haibo Huang
6fc2f09b35 Merge "Remove CSV support" am: 0faecf7b89
am: 9fada2364f

Change-Id: Ibf1fe01c8e69407decf760307ad3747f1c3cb317
2018-07-09 15:44:54 -07:00
Haibo Huang
9fada2364f Merge "Remove CSV support"
am: 0faecf7b89

Change-Id: I02e8b74299afda2642567e3fcf9a41653cb7b888
2018-07-09 14:41:03 -07:00
John Reck
9ce2bf7e0c Auto-dark mode prototype
Experimental force_dark prototype mode. Enabled
by setting debug.hwui.force_dark to true.

Test: verified nothing changes without prop being set

Change-Id: Ib02f3f1a9c591cab1f312b827451f04c782c2f41
2018-07-09 10:16:25 -07:00
Haibo Huang
783d76ec31 Remove CSV support
CSV is deprecated upstream. See:
7b8d0249d8

Test: m checkbuild
Change-Id: I4b85535d4296c6f0d1f0eec95b40c065b3143134
2018-07-06 16:55:27 -07:00