5387 Commits

Author SHA1 Message Date
Christopher Tate
10c3a2838c BinderProxy native destruction resilience
* Don't race with construct/init; we can't abide partial state here
* Defense in depth: null check the contained native state to catch
  double invocations.

Bug 27377823

Change-Id: I38f91668d36404c2a7b93d5f7c6616d9eb3f0a30
2016-02-26 17:48:08 -08:00
Jean-Michel Trivi
768d81374b Merge "Audio record notification: report audio device information" into nyc-dev 2016-02-26 22:37:34 +00:00
Jean-Michel Trivi
8ab728093e Audio record notification: report audio device information
Support querying the AudioDeviceInfo in AudioRecordConfiguration.
When AudioService (through RecordingActivityMonitor) receives
  a recording event on an existing session, report it as an
  update if the recording configuration has changed.

Bug 22876530

Change-Id: I1b72c08aa0589077fe8ad254087965e6384ce50a
2016-02-26 11:11:30 -08:00
Dimitry Ivanov
1a2cb453fa Merge "Create linker-namespace for the classloader" into nyc-dev 2016-02-26 18:03:56 +00:00
Paul McLean
9b09e533ac JNI plumbing for native audio routing API
Bug: 23899814
Change-Id: I3a831bb661fbdfe1981ae3482fcc8773c7df22b6
2016-02-26 10:15:07 -07:00
Glenn Kasten
642a4f5b66 Merge "Allow sample rate UNSPECIFIED to mean a route-dependent value" into nyc-dev 2016-02-26 00:17:45 +00:00
John Reck
4dfd6c0abc Merge "Disable HWUI_NEW_OPS" into nyc-dev 2016-02-25 23:28:38 +00:00
John Reck
0bed032eb2 Disable HWUI_NEW_OPS
Bug: 27365711

Change-Id: Ife7ecc7c688738df4028f30847a2ff914e433b99
2016-02-25 15:03:48 -08:00
Dimitry Ivanov
a55c7f15a3 Create linker-namespace for the classloader
With this change ApplicationLoaders.getClassLoader()
creates linker-namespace for the classloader at the
construction time. Before this change the namespace
was created on first load of a jni library.

With this change we ensure that every classloader
has initialized namespace associated with it.

As an additional advantage we now can avoid storing
namespace-specific fields in the classloaders.

Bug: http://b/27189432
Bug: http://b/22548808
Change-Id: I3b160bd478a55171008682c40b2ebc13bdbd9882
2016-02-25 14:57:55 -08:00
Glenn Kasten
1cbf9b3741 Allow sample rate UNSPECIFIED to mean a route-dependent value
Bug: 25641253
Bug: 21019153
Change-Id: I3b8e01b6ea09f42c813ab1a0f3f625dc3803cc0b
2016-02-25 11:39:37 -08:00
Pablo Ceballos
0f61ae26ce Merge "Add glReadPixels with buffer-offset argument" into nyc-dev 2016-02-25 18:54:18 +00:00
Jean-Michel Trivi
16ad43c000 Merge "Audio record notification: report client/device configuration" into nyc-dev 2016-02-24 17:08:34 +00:00
Jean-Michel Trivi
33fd8169cd Audio record notification: report client/device configuration
Report client and device recording configuration during updates.
Support querying the AudioFormat in AudioRecordConfiguration.

Bug 22876530

Change-Id: I90b44db9bc3fda479452fc63221f8082f5b6a741
2016-02-23 16:40:03 -08:00
Doris Liu
3005843506 Merge "Support running AVD on UI thread" into nyc-dev 2016-02-23 22:43:53 +00:00
Doris Liu
28cfd20f02 Support running AVD on UI thread
By default, AVD animates on RT thread. But since in some cases there's a
need for a finer control on when the frame update for the animation should
happen, such as coordiating the AVD animation with other animations that
run on UI thread, we are providing a way to force the AVD to run on UI
thread.

Bug: 27278616
Change-Id: I372ecd3dc52e3fa0bdce3a1e9c19443f9b199027
2016-02-23 14:40:47 -08:00
Bo Hu
4dc580c0df Merge "Emulator: Replace ro.kernel.qemu.gles with qemu.gles" into nyc-dev 2016-02-23 21:46:33 +00:00
Pablo Ceballos
68981ff03b Add glReadPixels with buffer-offset argument
- For reading into PBOs on GLES3, add an overloaded version of
  glReadPixels that takes an offset argument.

Bug 18878609

Change-Id: I744483deab6358a66b0dc5e87be1ae2b96560ac1
2016-02-22 11:50:31 -08:00
Polina Bondarenko
280c5b2155 Merge "Added hardwareproperties SystemService" into nyc-dev 2016-02-22 09:27:21 +00:00
Erik Kline
adc49e8fd5 Delete all NetworkUtils DHCP-related code.
am: c3b52bc466

* commit 'c3b52bc46604cb18d74fbe13dda15f4679222107':
  Delete all NetworkUtils DHCP-related code.
2016-02-22 09:16:16 +00:00
Erik Kline
0f6ae2ec0d resolve merge conflicts of b242549166 to nyc-dev
Change-Id: I42d4cac95a209fdfae5769d75d90f004a94d60a4
2016-02-22 15:42:07 +09:00
Erik Kline
c3b52bc466 Delete all NetworkUtils DHCP-related code.
Bug: 26991160
Change-Id: I2c74e0161f43f65c1b6a85dc9f294b64c8f1ae6e
2016-02-22 15:14:31 +09:00
Erik Kline
b242549166 Give bluetooth sufficient capabilities to run DhcpClient
Specifically:
    CAP_NET_RAW
    CAP_NET_BIND_SERVICE

Bug: 26991160
Change-Id: I2afddc9efa3b613d974afb0ea33703948203d99a
2016-02-22 15:14:31 +09:00
bohu
b73396b3f8 Emulator: Replace ro.kernel.qemu.gles with qemu.gles
ro.kernel.qemu.gles is passed in by emulator and is read only;
the actual gles version can only be decided at egl library
loading time, and qemu.gles value will be set there and be
queried here.

bug: 27273457
Change-Id: I5ba228a2fa6649786dc87da09367d368e9e6d1e8
2016-02-20 01:40:05 +00:00
Doris Liu
350e65206c End staging animators when destroy RootRenderNode
When animation happens in a dialog, it is possible for the dialog to
be dismissed and RootRenderNode to be destroyed before we create
animation handle for the staged animators. In that case, we need
to remove the staged animators so they will not run without a
animation handle.

Bug: 26975079
Change-Id: I0c2c6c1b530beaec3984c0b1c410df4fd8f25c95
2016-02-19 14:20:37 -08:00
Doris Liu
c4bb185d41 VectorDrawable native rendering - Step 5 of MANY
This is reverting the revert of what reverts the revert of the original
implementation. Fourth revert is a charm!

This reverts commit df7fdb1e0bdb5c289bbc08047e5c710185503309.

Change-Id: I6fc3a5accfd8b79c3da31bbc101ad9e9b4d6e7dd
2016-02-19 13:51:31 -08:00
Polina Bondarenko
f8754ac212 Added hardwareproperties SystemService
Add HardwarePropertiesManagerService which call native methods to
get CPU, GPU, battery temperatures, CPU usage info, fan speeds.
Restrict hardware properties retrieval only for device and profile
owners.

Bug: 26945055
Change-Id: I4d6b30b78e575532d5e9cfa59ef6cd81355439d4
2016-02-19 18:24:29 +01:00
Ben Wagner
31af215b26 Merge "Use UTF32 directly in HarfBuzz<->Skia interface." into nyc-dev 2016-02-19 15:03:48 +00:00
Keisuke Kuroyanagi
f491051143 Merge "Optimize: Use measureText instead of doLayout." into nyc-dev 2016-02-18 23:19:44 +00:00
Ben Wagner
c1fa6d0deb Use UTF32 directly in HarfBuzz<->Skia interface.
This fixes a TODO to use kUTF32_TextEncoding directly. This avoids
encoding UTF32 codepoints from HarfBuzz into UTF16 to pass to Skia,
which will then re-decode to UTF32. This also removes a use of
SkUtils.h which Skia desires to move to private use.

Change-Id: I087f4216c25f7874e496920cd33e2f109530c397
2016-02-18 17:20:17 -05:00
Keisuke Kuroyanagi
4c8a526478 Optimize: Use measureText instead of doLayout.
measureText is a light weight method dedicated to measure text width.
With this CL, breakText, doRunAdvance and doOffsetForAdvance use
measureText.

Bug: 24505153

Change-Id: Ibd62de2e0fe2e196cf07472f2270cc8c6325daab
2016-02-18 11:31:56 -08:00
Doris Liu
5b7188aebc Merge "Revert "Revert "Revert "VectorDrawable native rendering - Step 5 of MANY"""" into nyc-dev 2016-02-18 19:06:20 +00:00
Doris Liu
df7fdb1e0b Revert "Revert "Revert "VectorDrawable native rendering - Step 5 of MANY"""
This reverts commit 0d20a275a5baf8579c8b9111cf2ce6615874a6b6.

Change-Id: I97c782f1164a5d39ab74dc098cca71d9e1b30cd8
2016-02-18 18:37:02 +00:00
Derek Sollenberger
fccb29cbbf Merge "Update Region parcelling to use SkRegion::Iter" into nyc-dev 2016-02-17 21:07:42 +00:00
Andres Morales
8e1206bfff Merge "allow for slow FrameMetricsListeners" into nyc-dev 2016-02-17 20:59:45 +00:00
Andres Morales
11f02d7e52 allow for slow FrameMetricsListeners
A slow listener could cause a race in the NotifyHandler
where the single reference to the buffer to send would get
updated when it shouldn't have been.

Switch to a queue of available buffers to prevent this race.

Also, stop setting and clearing the observer reference and instead
incStrong/decStrong to mark temporary strong ownership without
colliding with other owners in flight.

Bug: 27097094
Change-Id: Iee647bfae8b80019b6d8290179eed3973230901f
2016-02-17 12:16:06 -08:00
Derek Sollenberger
fd00820ca3 Update Region parcelling to use SkRegion::Iter
Bug: 26593930
Change-Id: Ie673c776ed7e1c327ca0f3196900fbb229c2a936
2016-02-17 12:22:20 -05:00
Doris Liu
5b49c6f31b Merge "Revert "Revert "VectorDrawable native rendering - Step 5 of MANY""" into nyc-dev 2016-02-16 23:38:43 +00:00
Andreas Gampe
faa1033dc7 Frameworks/base: Fix registration function
Registration functions return "int."

Change-Id: Icb8d35f3bc23794cdb22db1c1adda236c9d8676e
2016-02-16 10:38:20 -08:00
Leon Scroggins
8e552f2eae Merge "use std factory for compose-shader" into nyc-dev 2016-02-16 14:51:36 +00:00
Doris Liu
0d20a275a5 Revert "Revert "VectorDrawable native rendering - Step 5 of MANY""
This reverts commit e03ef25a3e44ef5d495e366c30b9b5b69fc58194.

Change-Id: I9c2e1c891667451a3ee668e414bf337ad67279ab
2016-02-12 19:49:29 -08:00
Phil Burk
af9aa07fbd Merge "AudioFormat: implement ENCODING_IEC61937" into nyc-dev 2016-02-12 22:24:55 +00:00
Ben Wagner
fb95699364 Deduplicate font file mappings.
With ttc and gx variation fonts, it is now possible and common that a
number of fonts will use the same font file for data but with different
parameters. In the current code each font will map the font file data,
taking up an unecessary amount of virtual address space and is
inefficient with respect to memory management (like the tlb). This CL
deduplicates these file mappings so that a given font file will only be
mapped into memory once.

DO NOT MERGE
Change-Id: I5ca69f963a434c72ec4028402ecbf9e0f0ee7148
(cherry picked from commit fffcf0a31fd4c9a4ec8aa7de70b1eda0d48fb337)
2016-02-12 19:33:26 +00:00
Ben Wagner
e2caaa9c8d Merge "Add support for gx font variation axes." into nyc-dev 2016-02-12 18:50:12 +00:00
Matt Sarett
4531e2df1d Merge "Use SkCodec::MinBufferedBytes() for front buffered image decode stream" into nyc-dev 2016-02-12 17:08:33 +00:00
Jean-Michel Trivi
d9cd292369 Merge "Dynamic audio policies: JNI support for UID rules" into nyc-dev 2016-02-12 16:57:50 +00:00
Ben Wagner
a87b07d7fa Add support for gx font variation axes.
This adds an 'axis' child element to the 'font' element. The 'axis'
element has attributes 'tag' (a four byte identifier) and 'stylevalue'
(a float value) to the parser. This also modifies reading the font file
name in a backwards compatible fashion by using only the direct #text
children of the 'font' element. (Both the Minikin and Skia parsers now
allow the font file name on a separate line in the fonts.xml file).

This information is then passed through to Skia in order to select the
desired variation. The Skia parser already parses this way and has for
some time, so Chrome and WebView can already read this format.

Change-Id: I15623fe864fa92b2bf0705af5e389daedfb77e5c
(cherry picked from commit b8e367fb7428076ff2e4aa2a97adaed1ef806e92)
2016-02-12 16:28:35 +00:00
Matt Sarett
96ffbdc9dd Use SkCodec::MinBufferedBytes() for front buffered image decode stream
This should not change decode behavior, but it's worth noting that
the number of bytes buffered will decrease from 64 to 30.

Change-Id: I66b0e38a487c1786823b0125686b094dae5d13dc
2016-02-12 15:15:12 +00:00
Mike Reed
c3703a258d use std factory for compose-shader
Change-Id: I4562d66cb8b9b8237e6aae7c205228731732cf17
2016-02-12 14:35:28 +00:00
Phil Burk
43f4b276a5 AudioFormat: implement ENCODING_IEC61937
Allows applications to wrap compressed audio in a PCM
stream and pass through directly to HDMI output.

Bug: 24541671
Bug: 20891646
Bug: 26373761
Signed-off-by: Phil Burk <philburk@google.com>

Change-Id: If29e10b0665758330eca085bfeaac19fefc373b3
2016-02-11 19:36:12 +00:00
John Reck
e03ef25a3e Revert "VectorDrawable native rendering - Step 5 of MANY"
Bug: 27136799

This reverts commit 18bdf443e371e9f293439b4ff92cc79abaa422e5.

Change-Id: I825b061eec2a591f2d18119ba64494624b9ad4f2
2016-02-11 17:02:33 +00:00