summaryrefslogtreecommitdiffstats
path: root/core/jni
Commit message (Collapse)AuthorAgeFilesLines
* am 870110e0: am 30fcd2aa: Merge "Drop unusable SELinux APIs."Nick Kralevich2015-03-131-107/+0
|\ | | | | | | | | * commit '870110e01af5c4875a9cf7134cee7c6842fd31af': Drop unusable SELinux APIs.
| * Drop unusable SELinux APIs.Stephen Smalley2015-03-131-107/+0
| | | | | | | | | | | | | | | | | | setSELinuxEnforce is not allowed by policy. get/setBooleanValue and getBooleanNames are moot since SELinux policy booleans are forbidden by CTS. Change-Id: I512953edd1c38828efce698ae8475603775c32e8 Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
* | Merge "Start moving text measurement into native code"Raph Levien2015-03-131-12/+85
|\ \
| * | Start moving text measurement into native codeRaph Levien2015-03-131-12/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We want to move text measurement into native code, mostly so that alternate measurement for hyphens can be performant. This patch begins that migration, in the main StaticLayout case, but still surfaces the widths array to Java (for ellipsis calculation), and also includes a hack (used mostly for testing) for computing widths in Java and sending them down to native code when TextPaint is subclassed. Change-Id: I476c9e8b3aa8e4e3552eb18f66c4bcd5683f3a72
* | | Refactor DisplayList path caching.Derek Sollenberger2015-03-131-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This removes dependence on SkPath ptrs that HWUI does not control the lifecycle of. This clears up some errors where the paths are not generated from Java, but rather the Skia test suites. Cherry-pick of a change that originally landed in master-skia and is dependent on a skia merge (ag/655422). Change-Id: I41b9797a2b0af5d6b4ea51891565469d4f1d832d
* | | Fix use of SkMutex.Leon Scroggins III2015-03-131-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Recent change to Skia moved SkMutex into its own header file. Include it to use and SkMutex. Use SK_DECLARE_STATIC_MUTEX to remove static initializer/finalizer. Fixes master-skia build. Change-Id: I2ab43c511587167b81310d5d55a65604d82761f5
* | | Merge "SkStream is no longer a ref counted object."Derek Sollenberger2015-03-138-32/+34
|\ \ \
| * | | SkStream is no longer a ref counted object.Leon Scroggins III2015-03-128-32/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With https://codereview.chromium.org/849103004/, SkStream is no longer ref counted. Change callers that currently unref() SkStreams to one of either: - delete the stream - pass ownership of the stream screencap.cpp: Call EncodeData directly, bypassing SkDynamicMemoryWStream and SkBitmap. Utils.cpp: Write directly to an SkData, and then use that to construct a new SkStream. Cherry-pick of a change that originally landed in master-skia and is dependent on a skia merge (ag/655422). Change-Id: Idc99ad7d5a70c893dc012d59915216f301ab3c9d
* | | | Don't allow clients to add FDs to Looper without callbacks.Jeff Brown2015-03-121-1/+1
|/ / / | | | | | | | | | | | | Bug: 10349083 Change-Id: Ia75e37bb1055559f6442f97c42ec109078e737b6
* | | Merge "Make Bitmap_createFromParcel check the color count."Leon Scroggins III2015-03-121-7/+15
|\ \ \
| * | | Make Bitmap_createFromParcel check the color count.Leon Scroggins III2015-03-111-7/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When reading from the parcel, if the number of colors is invalid, early exit. Add two more checks: setInfo must return true, and Parcel::readInplace must return non-NULL. The former ensures that the previously read values (width, height, etc) were valid, and the latter checks that the Parcel had enough data even if the number of colors was reasonable. Also use an auto-deleter to handle deletion of the SkBitmap. BUG=19666945 Change-Id: Icbd562d6d1f131a723724883fd31822d337cf5a6
* | | | Fix 64-bit MessageQueue JNI buildGreg Hackmann2015-03-111-1/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: I75b3788e7dcece4a2d64d969a10d28e7a9593cd6 Signed-off-by: Greg Hackmann <ghackmann@google.com>
* | | | Add support for non-blocking I/O with Looper.Jeff Brown2015-03-112-16/+78
| | | | | | | | | | | | | | | | | | | | Bug: 10349083 Change-Id: I4a94b1eac53df57c05103913bd593d92b1e062d7
* | | | Rename Looper::isIdling() to isPolling() to resolve confusion.Jeff Brown2015-03-111-3/+3
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The loop isn't technically idle at this time, it's just checking whether any file descriptors have pending events. However it's still a good signal as to whether the loop is alive. Added a real isIdle() function. Bug: 19532373 Change-Id: Idd273e8774f469ccafb00d560818cf279dfd6ba6
* | | Cleanups & simplificationsJohn Reck2015-03-112-10/+12
|/ / | | | | | | Change-Id: I5ad5e3b8fe55b1528f2e20c63e5abe51d9e40ff1
* | Merge "resolved conflicts for merge of 7545accf to master"Elliott Hughes2015-03-102-6/+8
|\ \
| * \ resolved conflicts for merge of 7545accf to masterElliott Hughes2015-03-102-6/+8
| |\ \ | | |/ | | | | | | Change-Id: I7a9264e818fdd14bf59f0dec63ab83985f9e66fb
| | * am 63d43949: Merge "Use the icu:: namespace for icu4c API."Elliott Hughes2015-03-092-5/+7
| | |\ | | | | | | | | | | | | | | | | * commit '63d43949047eaed1cddf10bb4f666df6807618ce': Use the icu:: namespace for icu4c API.
| | | * Use the icu:: namespace for icu4c API.Elliott Hughes2015-03-072-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The icu guys recommend working this way, though it's not the default. Internally Google makes this the default, and I've switched libcore over. Bug: 15350832 Change-Id: I038e12bea58dd089a46d0e681b5ab76cfc19d7b9
* | | | Merge "Rename and simplify DisplayList Canvas classes"Chris Craik2015-03-103-54/+54
|\ \ \ \ | |/ / / |/| | |
| * | | Rename and simplify DisplayList Canvas classesChris Craik2015-03-093-54/+54
| | | | | | | | | | | | | | | | Change-Id: I49fd2ce02e01401209fe2a378e9f9547c7b27c61
* | | | Add DEPTH image formats, support in ImageReaderEino-Ville Talvala2015-03-091-0/+94
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add an explicit mapping between public ImageFormat/ PixelFormat enums and internal HAL format/dataspace. - Add DEPTH16 and DEPTH_POINT_CLOUD formats - Wire up mapping layer to ImageReader to support depth formats Change-Id: I8197eccef900cc91baddcfcb934ccd4d8c972eff
* | | am ea3d53f5: am 773bcfa7: am e59b7ce2: Merge "Add JIT system properties"Mathieu Chartier2015-03-081-0/+10
|\ \ \ | |/ / | | | | | | | | | * commit 'ea3d53f5a8f8e396bf8918041087db4603d444e5': Add JIT system properties
| * | am e59b7ce2: Merge "Add JIT system properties"Mathieu Chartier2015-03-061-0/+10
| |\ \ | | |/ | | | | | | | | | * commit 'e59b7ce2564a916240e561b36f4476f2d72a65c5': Add JIT system properties
| | * Add JIT system propertiesMathieu Chartier2015-03-051-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added the following runtime options. "dalvik.vm.usejit" -> "-Xusejit:" "dalvik.vm.jitcodecachesize" -> "-Xjitcodecachesize:" "dalvik.vm.jitthreshold" -> "-Xjitthreshold:" Bug: 17950037 Change-Id: I4996cdd1e34a1743d83c37069f545e6e09bccdb9
* | | Merge "Revert "Revert "Remove references to SkPorterDuff as it is deprecated."""Chris Craik2015-03-064-16/+33
|\ \ \
| * | | Revert "Revert "Remove references to SkPorterDuff as it is deprecated.""Chris Craik2015-03-064-16/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix build breakage. This reverts commit 26b4f598c8b1e99b43261614a6861785638c8c00. Change-Id: If39ce2a41d26a8520091f330234c3d35e413ee92
* | | | Merge "Revert "Remove references to SkPorterDuff as it is deprecated.""Chris Craik2015-03-064-33/+16
|\ \ \ \ | |/ / /
| * | | Revert "Remove references to SkPorterDuff as it is deprecated."Chris Craik2015-03-064-33/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug:19627342 This reverts commit a9aded1f6253afbea7906509992a8a3721f731ab. Change-Id: Ic865edfbd31c9e24d18a1397a1d346633376e20a
* | | | Cleanup Bitmap JNI attempt #2John Reck2015-03-058-39/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original version missed a spot This reverts commit c02977e3bbfaaedcb1b1d67e1692becc7dddd59b. Change-Id: I56244ce10d709fcdef42a001fe4c6ba7b6bbb04d
* | | | emove uncessary include for SkPorterDuff.h (Part 2)Derek Sollenberger2015-03-051-1/+0
| | | | | | | | | | | | | | | | Change-Id: I4d29d65a2e8eaf26b1cde6a525703be248bce63d
* | | | Merge "Add JNI StaticLayout.Builder"Raph Levien2015-03-051-51/+91
|\ \ \ \
| * | | | Add JNI StaticLayout.BuilderRaph Levien2015-03-051-51/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds a native C++ Builder object for StaticLayout to complement the Java one introduced in a previous patch. The Builder object contains state used in constructing a layout, as well as temporary buffers, to avoid having to allocate such. In particular, it holds a break iterator, so avoids the cost of constructing that in the common case of a single locale. Change-Id: I1125103b7ccf00b8674c1586c3ea8d5d915fdd5b
* | | | | Merge "Revert "Cleanup Bitmap JNI""Chad Jones2015-03-058-16/+39
|\ \ \ \ \
| * | | | | Revert "Cleanup Bitmap JNI"Chad Jones2015-03-058-16/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit b2915245b74b3b5541b123e38403f8e26426b4b7. Change-Id: Idd7d7f33eec4ea5024c83de6b10d3d1a6ab2b17a
* | | | | | Merge "Cleanup Bitmap JNI"John Reck2015-03-058-39/+16
|\ \ \ \ \ \ | |/ / / / / | | | / / / | |_|/ / / |/| | | |
| * | | | Cleanup Bitmap JNIJohn Reck2015-03-058-39/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a bunch of places where mNativeBitmap was being poked at directly, switch them either to the NDK API or to GraphicsJNI where it made sense Change-Id: I6b3df3712d6497cba828c2d3012e725cb4ebb64d
* | | | | Remove references to SkPorterDuff as it is deprecated.Derek Sollenberger2015-03-054-16/+33
|/ / / / | | | | | | | | | | | | Change-Id: Ic0722cfef4ed61aa546c495924397097a45cfe77
* | | | Add missing paramater to AudioPort jni initialization.David Stevens2015-03-021-0/+1
|/ / / | | | | | | | | | Change-Id: Ia50a810ca8ceeece52a712e1daf5ffa616951b02
* | | Add fingerprint settings support to the frameworkJim Miller2015-02-271-30/+29
| | | | | | | | | | | | | | | | | | | | | | | | - cleanup thread issue and simplify native FingerprintService methods - add new permissions and enforce them - add fingerprint hardware detection API Change-Id: I87c2243ea2412061f1e85b044138480d0161bcdf
* | | am bbef7cf3: am 012c3b72: am a891d08d: Merge "jni: Add paranoia regarding ↵Mark Salyzyn2015-02-271-0/+4
|\ \ \ | |/ / | | | | | | | | | | | | | | | android_logger_list_read" * commit 'bbef7cf3bbf778dd8ae3b91b140bf4542241093b': jni: Add paranoia regarding android_logger_list_read
| * | am a891d08d: Merge "jni: Add paranoia regarding android_logger_list_read"Mark Salyzyn2015-02-271-0/+4
| |\ \ | | |/ | | | | | | | | | * commit 'a891d08dad829c9aacd29bd2c3b36debe3fc1cc3': jni: Add paranoia regarding android_logger_list_read
| | * jni: Add paranoia regarding android_logger_list_readMark Salyzyn2015-02-261-0/+4
| | | | | | | | | | | | Change-Id: Ic52be201ec7efaef6a385aaf8ea523554aa06f22
* | | don't reference (deprecated) kIgnore_SkAlphaTypeMike Reed2015-02-272-3/+6
| | | | | | | | | | | | Change-Id: I6c09845c48efc66a1057bc8db512b7567ade7e72
* | | Merge "camera2: Fix local variable names in rgb->ycbcr conversion."Ruben Brunk2015-02-261-9/+9
|\ \ \
| * | | camera2: Fix local variable names in rgb->ycbcr conversion.Ruben Brunk2015-02-101-9/+9
| | | | | | | | | | | | | | | | Change-Id: I413becdd8dcc4faff74d747badaffb66f220c99a
* | | | Merge "Glop mesh reorg, support for drawBitmapMesh"Chris Craik2015-02-261-6/+0
|\ \ \ \
| * | | | Glop mesh reorg, support for drawBitmapMeshChris Craik2015-02-261-6/+0
| | | | | | | | | | | | | | | | | | | | Change-Id: Iaf5550bdd93da93e59a5b838234ab5612e067387
* | | | | am 72e7217d: am b7121d70: am b78cce6f: Merge "Update autogenerated gl ↵Dan Albert2015-02-253-4/+9
|\ \ \ \ \ | | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | functions." * commit '72e7217d0bd1035fc0c947da5d1e802624774a80': Update autogenerated gl functions.
| * | | | am b78cce6f: Merge "Update autogenerated gl functions."Dan Albert2015-02-253-4/+9
| |\ \ \ \ | | | |_|/ | | |/| | | | | | | | | | | | * commit 'b78cce6f92e38b57a6a56183cdbafc054c5758fe': Update autogenerated gl functions.