5522 Commits

Author SHA1 Message Date
Rob Carr
4e9a9dfb67 Merge "Force windows to be scalable during pinned animation." into nyc-dev 2016-04-19 22:11:02 +00:00
Robert Carr
1ca6a33f36 Force windows to be scalable during pinned animation.
We resize windows at the beginning of the pinned stack
animation when animating to a larger size, and so for some
duration a resize will be pending. We need to force the window
out of SCALING_MODE_FREEZE so we can animate during this period.

Bug: 27891386
Change-Id: I5cff599ed67f2c179e938662b6f0d99bd790aaba
2016-04-19 12:47:18 -07:00
Eric Laurent
0b724f8770 Merge "AudioSystem: allow platforms no audio ports" into nyc-dev 2016-04-19 17:05:01 +00:00
John Reck
8cddce3f8f Merge "Make getFrameNumber lazy" into nyc-dev 2016-04-18 23:20:39 +00:00
John Reck
28912a5084 Make getFrameNumber lazy
Change-Id: I783de544ad9a3636ea90f1c8c4034738997bfbc8
Fixes: 28246085
2016-04-18 14:34:18 -07:00
John Reck
4afbed15f3 Fix NPE checkjni
Fixes: 28240259

releasedCallback can be null, which we need to check for

Change-Id: Ib218e1c624be8734db5722fc625ebbd72fa099ec
2016-04-18 10:35:08 -07:00
John Reck
85cfc8c368 Merge "Add a callback for when a gl functor is released" into nyc-dev 2016-04-15 19:26:16 +00:00
John Reck
cd1c3eba69 Add a callback for when a gl functor is released
Bug: 27709981

Change-Id: Id5be3e8f88d6d84a9c59c7ed23e7e8862feefbe8
2016-04-15 10:56:53 -07:00
Raph Levien
032a35954c Don't do layout in hasGlyph for codepoint + vs
In the case where the input is a base codepoint + a variation selector,
the code currently checks hasVariationSelector and then does a layout,
checking for a single glyph. However, HarfBuzz in some cases will change
the VS into a space glyph, so hasGlyph will return false.

This patch makes hasGlyph rely entirely on the hasVariationSelector
method in the case of a base codepoint + a VS

Bug: 27531970
Bug: 28182689
Change-Id: Id190c427149213509f2d779ec1aa330feb4b62d8
2016-04-14 21:22:37 -07:00
Eric Laurent
b36d104b8f AudioSystem: allow platforms no audio ports
Allow platforms with no audio outputs or inputs. This
means that listAudioPorts() and listAudioPatches() methods can
return no ports or patches.

Bug: 25075342
Change-Id: I891c3ee2cdb2b96c0ac37d4e9cc00e77ae58a5b4
2016-04-14 18:00:38 -07:00
Winson Chung
de16f96c7e Merge "Take app screenshots in 565." into nyc-dev 2016-04-15 00:56:20 +00:00
Winson
a5fdde9d15 Take app screenshots in 565.
- Or to be specific, SurfaceFlinger can’t easily take 565 screenshots,
  so convert them when creating the ashmem bitmap.

Bug: 28151300
Change-Id: Ic7586659a41cc19c322136f77a1c52ef68c22707
2016-04-14 16:03:44 -07:00
John Reck
d6a25c2b3e Merge "Revert "Revert "Make stopped state a first-class thing""" into nyc-dev 2016-04-14 17:40:52 +00:00
John Reck
8afcc76920 Revert "Revert "Make stopped state a first-class thing""
This reverts commit eab3f2658aa41d37c3b05d49a2ce4e3f4ed85399.

Fixes first-frame issue, mReportNextDraw needs to override
mStopped

Fixes: 28118961
Fixes: 27286867

Change-Id: I5c811759637d08ba9f3b342016d1b3006986d5a2
2016-04-14 10:39:03 -07:00
Calin Juravle
53553d3bcd Merge "Handle dalvik.vm.jitprithreadweight property" into nyc-dev 2016-04-14 15:24:11 +00:00
Craig Donner
08a26ee1d6 Merge "Minor changes needed to support EXT_protected_content." into nyc-dev 2016-04-13 21:46:08 +00:00
Calin Juravle
aa9ecac10b Handle dalvik.vm.jitprithreadweight property
Bug: 28065407
Bug: 27865109
Change-Id: I8cebc22a9e072fd1d6d765427a0cd59ba2201bf6

(cherry picked from commit 0de80b9f550fc8ff1f46d5f95cf229745d71eb2a)
2016-04-13 12:48:12 +01:00
Craig Donner
afe9a4c67c Minor changes needed to support EXT_protected_content.
Bug: 22775237
Change-Id: I40affa4f2cb245b8acd0106a2ee21a06cb9f9162
2016-04-12 17:42:11 -07:00
Doris Liu
b35da39060 Allow leading spaces in path string (to keep behavior consistent)
Bug: 28132454
Change-Id: Iee799c13a85738db3d6940aca0fe917f284fa651
2016-04-12 21:38:07 +00:00
Doris Liu
1ee2dd2f5f Merge "Check whether VD tree is still valid before calling native setter" into nyc-dev 2016-04-12 19:50:39 +00:00
Ashutosh Joshi
250c617d13 Merge "Remove LOAD_OS_APP message from standard context hub messages" into nyc-dev 2016-04-12 18:30:20 +00:00
Doris Liu
cdedc9a80d Check whether VD tree is still valid before calling native setter
VD tree is ref-counted in both Java and native. VD's child nodes are
entirely owned by the native tree, as VD nodes in native should outlive
its Java counterparts, with one exception: when there's an infinite UI
animator running on VD, the animator may have weak reference to a few
child nodes. In the case of hidden animator running infinitely, the child
nodes would keep getting the animation pulse while the rest of the tree
would have been destroyed. To prevent the setters triggered by animation
from calling into native, we need to check whether the tree is still
valid before going down into JNI.

Bug: 28104172
Change-Id: Ie9d4bf3898c0c23e620a4747624d24b8ab779743
2016-04-12 11:13:10 -07:00
John Reck
d2eec0efb2 Merge "Framework-side of SurfaceView#getBitmap" into nyc-dev 2016-04-12 14:36:11 +00:00
John Reck
10dd0585c1 Framework-side of SurfaceView#getBitmap
Bug: 27708453

Change-Id: Ie6fd7eca522d3e6549d8af587c975fd7e6053649
2016-04-11 16:00:22 -07:00
Ashutosh Joshi
85202e0a6e Remove LOAD_OS_APP message from standard context hub messages
Removing LOAD_OS_APP from the list of standard Android messages.

Change-Id: I1db1933e2c090716a1921f14e04e1f5d133ea9cd
2016-04-11 15:47:38 -07:00
John Reck
825fa4d5ae Merge "Revert "Make stopped state a first-class thing"" into nyc-dev 2016-04-11 20:54:36 +00:00
John Reck
eab3f2658a Revert "Make stopped state a first-class thing"
This reverts commit 945961f78a78eced823d5ba78505c781b079703d.

Change-Id: Iebc1d49fac33380233f8785fc39bec6c30a5e714
2016-04-11 20:49:28 +00:00
Alexey Polyudov
34994b74bb Merge "contexthub: nanohub HAL redefined hub_app_name_t; keep in sync" into nyc-dev 2016-04-11 20:28:57 +00:00
Alexey Polyudov
ab2d44596b contexthub: nanohub HAL redefined hub_app_name_t; keep in sync
we're now using hub_app_name_t as unique nanoapp ID throughout
all layers

Bug: 28086503
Change-Id: Ie8113de1b2bafd441d79e45137f44d74970fcd01
Signed-off-by: Alexey Polyudov <apolyudov@google.com>
2016-04-11 08:21:13 -07:00
Doris Liu
0e89f98044 Merge "Improve error logging for parsing failures" into nyc-dev 2016-04-08 18:02:51 +00:00
Doris Liu
0a1a5167be Improve error logging for parsing failures
Bug: 27043594
Change-Id: I901b65f734c49444a78e0714e007e15e2340ab9d
2016-04-08 18:01:54 +00:00
Raph Levien
c147dbbca4 Merge "Avoid copying of font table data, provide raw font bytes" into nyc-dev 2016-04-08 16:32:14 +00:00
Raph Levien
296bf8c55a Avoid copying of font table data, provide raw font bytes
Minikin is changing its approach to table access to use HarfBuzz to
access the tables, based on raw font data, rather than calling the
MinikinFont::GetTable() virtual method. This patch provides raw access
to the font data to make this work.

There's a bit of plumbing to make sure fonts get a pointer to the raw
data as well.

Bug: 27860101
Change-Id: I638e18cf363644bf22fbc9fb9b3358a9e731087f
2016-04-08 08:29:32 -07:00
John Reck
c724dcf23c Merge "Make stopped state a first-class thing" into nyc-dev 2016-04-08 15:09:42 +00:00
John Reck
4a62effbfe Merge "Fix some edge cases" into nyc-dev 2016-04-07 23:08:10 +00:00
John Reck
945961f78a Make stopped state a first-class thing
Bug: 27286867

WindowManager has committed to stopped state
controlling the lifecycle of the Surface, so
make that a first-class thing in HWUI as well.

This makes it more resistent to things like
a rogue updateSurface() happening while mStopped=true,
leading to bad things down the line. Instead let
the surface be changed/updated as often as desired,
and just block any attempt to draw on that surface.

Also removes some unnecessary makeCurrent()s, as
EglManager ensures that we *always* have a valid
GL context now (using a pbuffer surface if there is
no window surface set)

Change-Id: Iead78ddebc7997e8fdb0c9534836352f5e54b9bd
2016-04-07 16:02:33 -07:00
John Reck
51f2d606dc Fix some edge cases
Bug: 27709981

This desperately needs a refactor, but to keep
the current (really needed & nice) behavior of
dispatching after sync finishes would be difficult
to handle cleanly without lots of ripping so... #yolo

Change-Id: I831a06c6ae7412a062720d68ecbe3085190f0258
2016-04-07 14:10:43 -07:00
Ashutosh Joshi
7d4a7fa333 Merge "Add dumpsys capabilities for context hub service" into nyc-dev 2016-04-07 14:00:49 +00:00
Seigo Nonaka
8c83a85e26 Merge "Paint.hasGlyph should return false on unsupported flags." into nyc-dev 2016-04-07 09:27:57 +00:00
Ashutosh Joshi
6239cc6fe1 Add dumpsys capabilities for context hub service
Add useful debug hook for context hub service.
Fix constants
Use helper functions to address OS

Change-Id: Iba5f24a9a1fd809c3d83752953389d373ff334ca
2016-04-06 21:21:34 -07:00
Craig Donner
59ee472c95 Downgrades error messages about not being able to detect whether we are in protected mode or not to informational messages. If there is no GL context, then we are by definition not in protected mode, and still return false as advertised, thus there's no need for an error message.
Bug: 27926028

Change-Id: Ia791a989b92be17bc31f9221654168347d60eed9
2016-04-05 15:18:34 -07:00
Seigo Nonaka
589cddc034 Paint.hasGlyph should return false on unsupported flags.
By Noto font update, now it has a special glyph for unsupported flags.
Paint.hasGlyph should return false in this case even if it has a glyph.

Bug: 27999343
Change-Id: Icbd31db83d945d66de1477aa888275f6c0ef79b0
2016-04-05 14:48:14 +09:00
Ashutosh Joshi
b4cc448946 Merge "App upload to Context hub." into nyc-dev 2016-04-05 01:32:59 +00:00
Ashutosh Joshi
cafdee9a72 App upload to Context hub.
Fix constants
Use helper functions to address OS

Change-Id: I61bd1f3eff2716ead2771eda335998f2e9b73afc
2016-04-04 16:50:27 -07:00
Doris Liu
d9289085be Merge "Make AVD thread safe" into nyc-dev 2016-04-04 21:53:45 +00:00
Doris Liu
1d8e194661 Make AVD thread safe
This CL introduces staging properties to VectorDrawable, which holds
properties coming from UI thread. When staging properties are changed,
they are marked dirty, and the staging properties then get pushed to
RenderThread at sync point. In cases where no staging property has
been changed, at sync point we sync the render thread properties back
to staging properties to reflect the latest render thread animation
value change.

Also, update Vector Drawable bitmap only when it's dirty

Bug: 27343970
Bug: 27385912
Bug: 27263667
Bug: 27927674
Bug: 27774383

Change-Id: Ia864f5400a53a08dbfb284fae581fb1aac4fff87
2016-04-04 14:40:17 -07:00
Derek Sollenberger
c6418c04ab Merge "Cleanup addtional files that were missed in the first purge of AvoidXfermode" into nyc-dev 2016-04-04 20:26:28 +00:00
Derek Sollenberger
93ab281e1c Cleanup addtional files that were missed in the first purge of AvoidXfermode
bug: 14650725
Change-Id: Ib7fb6a31705fb60535ecf2017db321c15e3d06cc
2016-04-04 14:49:51 -04:00
Ashutosh Joshi
b741e3b374 Added handling apps query response from context hub
Added handling of app query reponse from context hub.
Exposed the maximum message size to clients.

Change-Id: Ie96a860774d005ad6ad72acc88dc79964835486b
2016-04-01 20:10:27 -07:00
Ashutosh Joshi
2c697fb4a8 Revert "Added handling apps query response from context hub"
This reverts commit adf75e31f52a7a935a66a884fb55631c7309ee75.

Change-Id: I8391eb57c3a53e686bd817d27860fa6f785113f1
2016-04-01 20:49:28 +00:00