summaryrefslogtreecommitdiffstats
path: root/core/jni
Commit message (Collapse)AuthorAgeFilesLines
* Add setStartValue to RNAJohn Reck2014-06-021-0/+6
| | | | | | | | Bug: 15198607 Should be good-enough for Ripples to use for pseudo-chaining support. Change-Id: Ia8666928ccb69ae401cb583751632a52bd928b63
* Merge "AudioManager: add audio port gain control" into lmp-preview-devEric Laurent2014-05-311-22/+61
|\
| * AudioManager: add audio port gain controlEric Laurent2014-05-301-22/+61
| | | | | | | | | | | | | | | | Implement AudioManager.setAudioPortGain() API. Bug: 14815883. Change-Id: Ib54bd1fd1392c474f4767a00228b0a617c51ec5e
* | Merge "audio routing update listener" into lmp-preview-devEric Laurent2014-05-311-1/+121
|\ \ | |/
| * audio routing update listenerEric Laurent2014-05-301-1/+121
| | | | | | | | | | | | | | | | | | | | | | Implement audio port and audio patch callback infrastructure for clients to receive notifications when audio routing changes occur via the OnAudioPortUpdateListener interface. Bug: 14815883. Change-Id: I32cbba64eca7369871aec235ff100de1f0c2d344
* | Merge "AudioSystem: added JNI for routing extensions" into lmp-preview-devEric Laurent2014-05-312-1/+1007
|\ \ | |/
| * AudioSystem: added JNI for routing extensionsEric Laurent2014-05-302-1/+1007
| | | | | | | | | | | | Bug: 14815883. Change-Id: Ia0c0d14a8e3051a4bc0ce502b6e979135b170c97
* | Merge "Re-jigger layers" into lmp-preview-devJohn Reck2014-05-302-20/+12
|\ \
| * | Re-jigger layersJohn Reck2014-05-302-20/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 15185239 Bug: 15238382 Make DeferredLayerUpdater ref counted so that HardwareLayer:finalizer() works non-crashily on leaked layers Give DeferredLayerUpdater the ability to have a layer destroyer set so that leaked layers can still be recycled on the RenderThread Order layer updates based off of pushLayerUpdate() calls to fix issue with nested layers Change-Id: I4449cee607f7e5126e02fed7464cf48038e3dfdf
* | | Merge "Language and variant selection for Minikin" into lmp-preview-devRaph Levien2014-05-292-4/+15
|\ \ \ | |/ / |/| |
| * | Language and variant selection for MinikinRaph Levien2014-05-292-4/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the frameworks/base side of what's needed to support language selection (especially Han unification, but also compact/elegant selection for scripts that require more vertical space). This is part of the fix for bug 15179652 "Japanese font isn't shown on LMP". Change-Id: I8f0f3aa9a1915659f8d0b590cf1c56529356049a
* | | Merge "Enable debug stuffs" into lmp-preview-devJohn Reck2014-05-292-4/+20
|\ \ \
| * | | Enable debug stuffsJohn Reck2014-05-292-4/+20
| |/ / | | | | | | | | | | | | | | | | | | | | | Bug: 14596762 * dumpsys gfxinfo implemented * profile GPU visual_bars implemented Change-Id: Icb948a9d5af5989b5615504d0d76ade64b93ef5b
* | | Implement bind-to-network functionality of android.net.Network.Paul Jensen2014-05-292-0/+41
| |/ |/| | | | | | | | | | | | | | | | | This is implemented by calling through to netd_client. Included are functions to bind-to-network-for-process strictly for DNS to facilitate startUsingNetworkFeature() reimplementation. bug: 13885501 Change-Id: Ib22c7d02ea81d251bdfeeb0f64a47ce32eefcb1b (cherry picked from commit dbf76f898f1f57eb74722358087c926d2f529bda)
* | Move to dalvik.vm.lib.2 to force default to libartBrian Carlstrom2014-05-281-1/+1
|/ | | | | Bug: 14298175 Change-Id: I8afa91bddfb6fec6b61c39286a16594eb947830e
* Merge "Implement FlushCaches TODO" into lmp-preview-devJohn Reck2014-05-281-0/+7
|\
| * Implement FlushCaches TODOJohn Reck2014-05-231-0/+7
| | | | | | | | Change-Id: Id05429e98ffe0858275b32c41fb215c1d8d930b2
* | Merge "camera2: Move DngCreator to hardware/camera2." into lmp-preview-devRuben Brunk2014-05-243-0/+777
|\ \
| * | camera2: Move DngCreator to hardware/camera2.Ruben Brunk2014-05-223-0/+777
| | | | | | | | | | | | | | | Bug: 15091253 Change-Id: Ibe2ee376436e5c796e33c0b782ea68278589f2e6
* | | Merge "DO NOT MERGE Inspect SkShader to determine hw shader." into ↵Chris Craik2014-05-232-317/+4
|\ \ \ | |_|/ |/| | | | | lmp-preview-dev
| * | DO NOT MERGE Inspect SkShader to determine hw shader.Leon Scroggins III2014-05-232-317/+4
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cherry-pick of Iaa7189178bda1c55f96da044d2a9fa602ba36034 Instead of duplicating internal info about SkShader, inspect the SkShader installed on the SkPaint. core/java/android/view/GLES20Canvas.java: Remove setupModifiers, nResetModifiers, and nSetupShader. core/jni/android/graphics/Shader.cpp: Remove calls to create/destroy the (previously) attached SkiaShader. core/jni/android_view_GLES20Canvas.cpp: Remove native code for setupShader and resetModifiers. graphics/java/android/graphics/BitmapShader.java: graphics/java/android/graphics/ComposeShader.java: graphics/java/android/graphics/LinearGradient.java: graphics/java/android/graphics/RadialGradient.java: graphics/java/android/graphics/Shader.java: graphics/java/android/graphics/SweepGradient.java: Remove code keeping track of native SkiaShader. libs/hwui/Caches.h: Include Extensions.h. libs/hwui/DeferredDisplayList.cpp: Compare shaders on the paint, instead of on DrawModifiers. libs/hwui/DisplayList.cpp: libs/hwui/DisplayList.h: Remove vector of SkiaShaders. libs/hwui/DisplayListOp.h: Access the SkShader on mPaint. Remove SetupShaderOp and ResetShaderOp. libs/hwui/DisplayListRenderer.cpp: libs/hwui/DisplayListRenderer.h: Remove resetShader, setupShader, refShader, and mShaderMap. libs/hwui/FontRenderer.cpp: Pass SkShader to setupDrawShader and setupDrawShaderUniforms. libs/hwui/OpenGLRenderer.cpp: libs/hwui/OpenGLRenderer.h: Add LayerShader, a class inheriting from SkShader, to mimic the behavior of SkiaLayerShader. Unlike SkiaLayerShader, it can be set on the SkPaint so it can be inspected later. Set a LayerShader instead of a SkiaLayerShader. setupDrawShader and setupDrawShaderUniforms now inspect an SkShader passed in. Inspect SkShader instead of mDrawModifiers.mShader. Remove resetShader and setupShader. setupDrawColorUniforms now takes a boolean indicating whether there is a shader. Add an inline function for accessing the SkShader on an SkPaint. In setupDrawBlending(Layer*, bool), do not check the shader (which will never be set), but do check whether the color filter may change the alpha (newly fixed behavior). In setupDrawBlending(SkPaint, ...), check the SkShader and whether the color filter affects alpha (the latter is new behavior). libs/hwui/Renderer.h: Remove pure virtual functions setupShader and resetShader. libs/hwui/ResourceCache.cpp: libs/hwui/ResourceCache.h: Remove functions for refing/unrefing shaders. libs/hwui/SkiaShader.cpp: libs/hwui/SkiaShader.h: Much of this code was redundant and has been removed. Convert structs into class with nothing but static functions for calling describe/setupProgram. libs/hwui/TextureCache.cpp: libs/hwui/TextureCache.h: Use the SkPixelRef as the key to the bitmap Lru cache, since shader inspection will provide a different SkBitmap pointer (though it will hold the correct SkPixelRef with the correct generation ID). tests/CanvasCompare/src/com/android/test/hwuicompare/DisplayModifier.java: tests/CanvasCompare/src/com/android/test/hwuicompare/ResourceModifiers.java: Update manual test to have more shaders: radial, sweep, compose, invalid compose. BUG:10650594 Change-Id: I2e7182b3fc28268e7ca82fac6780540b6b45365c
* | Merge "Bag of scheduling tweaks" into lmp-preview-devJohn Reck2014-05-231-0/+7
|\ \
| * | Bag of scheduling tweaksJohn Reck2014-05-231-0/+7
| |/ | | | | | | | | | | | | | | | | | | | | | | | | Bug: 15118640 * Prevent over-stuffing the queue by dropping frames * Prevent double-drawing in one pulse by RT by deferring vsync registration until post-draw so that it catches the next vsync pulse instead of the current one * Bias vsync race condition towards the UI thread * Fix queueDelay to actually work Change-Id: Ibf584258bd93ebcbba058bd976dc8b307f1c6155
* | camera2: Refactor CameraMetadata.Key out into 3 key classesIgor Murashkin2014-05-231-0/+119
|/ | | | | | | | | | | | | | | | | | | | Before: * CameraMetadata.Key<T> After: * CameraCharacteristics.Key<T> * CaptureResult.Key<T> * CaptureRequest.Key<T> CameraMetadata#get has been removed (each metadata subclass has its own #get now) due to java generic limitations (in particular a type bound <T1<T2> extends Key<T2>> is an illegal bound). CameraMetadataNative gets a new #dumpToLog function to dump the native metadata to logcat. Bug: 15091017 Change-Id: Ic56c54c0d184e209e20de374dc8a6d79527c209f
* Merge "camera2: Add HAL1 compatibility shim skeleton."Ruben Brunk2014-05-225-13/+436
|\
| * camera2: Add HAL1 compatibility shim skeleton.Ruben Brunk2014-05-215-13/+436
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds basic support for running the Camera2 API on a device running a camera HAL version lower than CAMERA_MODULE_API_VERSION_2_0. This CL includes support for: - N-way preview output streams - N-way jpeg output streams - CameraDevice emulation at the binder interface - Basic camera metadata querying in the CameraManager Bug: 15117269 Bug: 15116722 Change-Id: I8322955034c91f34bb348d4b28c2b774dbef38f6
* | opengl: Fix #include style in generated JNI codeJesse Hall2014-05-218-16/+16
| | | | | | | | | | Bug: 15028495 Change-Id: Iad98380264c349fddf3b88df0c3a997d94c84fc8
* | opengl: Add GLES31 and GLES31Ext classesJesse Hall2014-05-214-0/+4559
| | | | | | | | | | Bug: 15028495 Change-Id: Ie967c1938060edb42864dd48efa668ae7bf5cd76
* | Merge "Define light position (using new lighting spec) in Java"Chris Craik2014-05-221-4/+6
|\ \
| * | Define light position (using new lighting spec) in JavaChris Craik2014-05-211-4/+6
| | | | | | | | | | | | | | | | | | Also updates the relative shadow strengths. Change-Id: I6cac7275d38df98aea9f0dda463cd7207102986a
* | | Temporary fix for buffer overrun issue.Mathieu Chartier2014-05-211-8/+1
| |/ |/| | | | | | | | | | | | | | | | | Allocating the bitmap using getSafeSize() causes problems since getSafeSize64() < getSize() if there is a stride. Since everywhere else uses getSize() it results in a lot of possible buffer overruns. The fix reverts to using getSize instead of getSafeSize64. Bug: 15089814 Change-Id: Ia471cf9715672d57bb7eb61bf735064aeb405ffe
* | Switching to the final PDF rendering librarySvetoslav Ganov2014-05-211-4/+4
| | | | | | | | Change-Id: Id92674ce762af894a5c4b0df0f8e9a711131bccc
* | Fix the build: Revert "Switching to the final PDF rendering library"Ed Heyl2014-05-211-4/+4
| | | | | | | | | | | | This reverts commit e7a8f476ea3873941ace96751fa2d633c95b7c10. Change-Id: I457e45b0a536bbde721a3355ed860b2363e36467
* | Switching to the final PDF rendering librarySvetoslav2014-05-211-4/+4
| | | | | | | | Change-Id: I5bad4fc620378f3ca6b070bbaeee631f526b66c7
* | Merge "USB: Fix race condition in acquiring global reference in UsbRequest ↵Mike Lockwood2014-05-201-10/+12
|\ \ | |/ |/| | | JNI code"
| * USB: Fix race condition in acquiring global reference in UsbRequest JNI codeMike Lockwood2014-05-201-10/+12
| | | | | | | | | | | | Fixes bug https://code.google.com/p/android/issues/detail?id=59467 Change-Id: I8365e1be4eb0f1f2da49b658af677b590a80e382
* | fix argument order in call to SkBlurDrawLooper constructorVictoria Lease2014-05-191-1/+1
| | | | | | | | | | | | | | This fixes all sorts of badness. Bug: 15074512 Change-Id: I5e96983c58d19e0dc2d8fa61d1efa9dcff076ca1
* | camera2: Plumb DngCreator to native library.Ruben Brunk2014-05-162-0/+27
| | | | | | | | Change-Id: Ic58bf6cf5086808b503460ef8e451fc0d6f1f850
* | Merge "AudioSystem: native to JAVA status translation"Eric Laurent2014-05-163-77/+99
|\ \
| * | AudioSystem: native to JAVA status translationEric Laurent2014-05-163-77/+99
| | | | | | | | | | | | | | | | | | | | | | | | Regroup status code translation from native to JAVA in AudioSystem. The same codes will be used by AudioTrack, AudioRecord, AudioManager and defined in a single place in AudioSystem. Change-Id: I7d3f39f30e3bb8e53f33f4408bcb0672df8af42b
* | | Update ripple behavior, use render thread animationAlan Viverette2014-05-161-5/+18
| | | | | | | | | | | | Change-Id: Ib6bc1e08b05d29606f452961963d58b8fc866746
* | | Merge "Get rid of dirFlags log spam"Raph Levien2014-05-161-1/+0
|\ \ \ | |/ / |/| |
| * | Get rid of dirFlags log spamRaph Levien2014-05-161-1/+0
| | | | | | | | | | | | | | | | | | I was logging the BiDi flags for debugging, did not mean to commit this. Change-Id: I0a89c68fe17562f2ed38843efacbaa310dca24fa
* | | Merge "AudioTrack JNI cleanup"Jean-Michel Trivi2014-05-161-33/+3
|\ \ \
| * | | AudioTrack JNI cleanupJean-Michel Trivi2014-05-141-33/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove unused query of AudioFlinger sample rate and frame count. Remove redundant stream type check, it's already done in Java. Change-Id: I2565f8df7488f5f994f6f72c746dadbcaeb43966
* | | | Merge "Round rect outline clipping"Chris Craik2014-05-161-0/+7
|\ \ \ \ | |_|/ / |/| | |
| * | | Round rect outline clippingChris Craik2014-05-151-0/+7
| | | | | | | | | | | | | | | | Change-Id: Iee9cf4f719f6f1917507b69189ad114fa365917b
* | | | Merge "Battery stats more wake history, power save mode."Dianne Hackborn2014-05-151-0/+32
|\ \ \ \
| * | | | Battery stats more wake history, power save mode.Dianne Hackborn2014-05-151-0/+32
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add new option for battery stats to record the full wake lock history, and recording the current power save mode. Also add in some additional error constants when generating Binder error exceptions. And fix issue #14974572: Avoid repeating wakeup_reason at the beginning of history Change-Id: I7c1a2ab9569de216634f63d8ad69f1294ef1d235
* | | | Merge "Adding APIs to render PDF documents."Svetoslav2014-05-154-0/+295
|\ \ \ \