summaryrefslogtreecommitdiffstats
path: root/native
Commit message (Collapse)AuthorAgeFilesLines
* Add native tracing APIChris Craik2015-06-102-0/+31
| | | | | | bug:21195272 Change-Id: I520de9fee7fc40d0570d6bef450d756ce42a1462
* Add -round and -notround qualifier to android runtime/aaptAdam Lesinski2015-05-151-0/+9
| | | | | | | | The round qualifier denotes a device with a screen shape that is round. The qualifier shows up after the 'long/notlong' qualifier and before the orientation 'port/land/square' qualifiers. Change-Id: I3044258b2703a9165694b79725bade770fa6cea1
* Switch libjnigraphics.so to hash-style=bothDmitriy Ivanov2015-05-081-1/+1
| | | | | | Bug: http://b/19059885 Change-Id: I15f70b434b1d450e5b62ca7c204c628e2dc9edcc (cherry picked from commit 2e84bc6948bb24ec67bf289ee1d0ed937a0fd4ff)
* Fix broke NDK sensor manager APISvet Ganov2015-05-071-0/+18
| | | | Change-Id: I0f4e2a3ce20ce20e0aa5a7d38d1f988497c033c0
* Add warning if an in-use Bitmap is reconfiguredJohn Reck2015-05-061-3/+9
| | | | | | | | | Bug: 18928352 Also fix an issue around re-configure not properly handling mPinnedCount in android::Bitmap Change-Id: I1815b121f1474ad931060771bb1d52ef31d2aac7
* Add body sensors app op - framework baseSvet Ganov2015-05-011-5/+0
| | | | Change-Id: Idd5cd573fab3405e5b2a6e51d2d9d115650826e9
* Change how Java Bitmaps are accessed in a few placesJohn Reck2015-04-301-17/+18
| | | | | | | | | | | | | Stop assuming that a Java Bitmap has a SkBitmap* that has some externally managed lifecycle, and instead switch a bunch of users to accessing the bitmap by providing their own SkBitmap* on which to set the (ref counted!) SkPixelRef* instead Attempt #2 to land this, original issue was in getSkBitmap and should be fixed Change-Id: I0fd9e193968b41e5597784140d56b4885906864a
* GraphicsJNI Canvas cleanupJohn Reck2015-04-221-1/+2
| | | | Change-Id: I72e142986a8bc9f464c1951b6b5187919de3462e
* Merge "Revert "Change how Java Bitmaps are accessed in a few places""John Reck2015-04-201-18/+17
|\
| * Revert "Change how Java Bitmaps are accessed in a few places"John Reck2015-04-201-18/+17
| | | | | | | | | | | | | | | | Bug: 20207616 This reverts commit a771b9861d11671c780092d35c0062eeefcf37c0. Change-Id: Ifd891cc075274a7986e987229e0fed5a04ed9ff0
* | Revert "A bunch more cleanups"John Reck2015-04-171-2/+1
| | | | | | | | | | | | This reverts commit c294d128d03bc9a9982b273a82516c04583438cc. Change-Id: Id1ebb236950f7c36c6d86e1dd95566d3a200748d
* | Merge "A bunch more cleanups"John Reck2015-04-151-1/+2
|\ \
| * | A bunch more cleanupsJohn Reck2015-04-141-1/+2
| |/ | | | | | | | | | | | | | | Switch a few places to using android::canvas instead of SkCanvas as well which eliminated some JNI Change-Id: I8f98b56442a06362b82b984cd1bd3a92398d8dbc
* | multinetwork API: native implementationErik Kline2015-04-152-3/+92
|/ | | | | Bug: 19537384 Change-Id: I04f4a7de2b1e583989b67a853df6ab50289c2185
* Change how Java Bitmaps are accessed in a few placesJohn Reck2015-04-131-17/+18
| | | | | | | | | | Stop assuming that a Java Bitmap has a SkBitmap* that has some externally managed lifecycle, and instead switch a bunch of users to accessing the bitmap by providing their own SkBitmap* on which to set the (ref counted!) SkPixelRef* instead Change-Id: I0fd9e193968b41e5597784140d56b4885906864a
* am 1c8b3778: am 9aeb080e: Merge "Switch libjnigraphics to sysv-only hash style"Dmitriy Ivanov2015-03-131-1/+1
|\ | | | | | | | | * commit '1c8b3778e1c380992a9ca96e965cdc4e6f3bca66': Switch libjnigraphics to sysv-only hash style
| * Switch libjnigraphics to sysv-only hash styleDmitriy Ivanov2015-03-131-1/+1
| | | | | | | | | | Bug: 19059885 Change-Id: I3474974983931c67dce30dfc581a8d28d8b62e6a
* | am 3b9cfe30: am a6ed1b95: am 6e116429: Merge "Generate gnu hash for arm only"Dimitry Ivanov2015-03-111-1/+1
|\ \ | |/ | | | | | | * commit '3b9cfe30ed4ae34d06a8f005c8ada593c314316b': Generate gnu hash for arm only
| * Generate gnu hash for arm onlyGoran Jakovljevic2015-03-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | Fixes build failure caused by: https://android-review.googlesource.com/#/c/139670/ As previously discussed [1], MIPS does not support GNU-style ELF hashes. [1] https://android-review.googlesource.com/#/c/49282/2/tests/Android.mk Change-Id: I8edb8a1595308db2ecd1bd6650a069b1224ae64f
* | am 1944667b: am 8ced0357: am 2a88ff2f: Merge "Generate sysv hash for ↵Dmitriy Ivanov2015-03-111-0/+3
|\ \ | |/ | | | | | | | | | | libjnigraphics" * commit '1944667b7f70c336da66cc3fbdee3a2fbd766980': Generate sysv hash for libjnigraphics
| * Generate sysv hash for libjnigraphicsDmitriy Ivanov2015-03-091-0/+3
| | | | | | | | | | Bug: 19059885 Change-Id: I9b227fda6549e15a5ce50ac6b59250dff1371bb3
* | Cleanup Bitmap JNI attempt #2John Reck2015-03-051-3/+3
| | | | | | | | | | | | | | | | Original version missed a spot This reverts commit c02977e3bbfaaedcb1b1d67e1692becc7dddd59b. Change-Id: I56244ce10d709fcdef42a001fe4c6ba7b6bbb04d
* | Revert "Cleanup Bitmap JNI"Chad Jones2015-03-051-3/+3
| | | | | | | | | | | | This reverts commit b2915245b74b3b5541b123e38403f8e26426b4b7. Change-Id: Idd7d7f33eec4ea5024c83de6b10d3d1a6ab2b17a
* | Cleanup Bitmap JNIJohn Reck2015-03-051-3/+3
|/ | | | | | | | 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
* Merge "Frameworks/base: Wall Werror in native/graphics"Andreas Gampe2014-11-112-5/+11
|\
| * Frameworks/base: Wall Werror in native/graphicsAndreas Gampe2014-11-102-5/+11
| | | | | | | | | | | | Turn on -Wall -Werror in native/graphics. Mask skia warnings. Change-Id: Ia671e91348296ace84d9a24b3c6c025fa889bead
* | Frameworks/base: Wall Werror in native/androidAndreas Gampe2014-11-101-1/+3
|/ | | | | | Turn on -Wall -Werror in native/android. Change-Id: I28bab9ebd2fe3f6935878816773a04531e26450f
* Sensor related changes for NDK.Aravind Akella2014-08-051-0/+18
| | | | | | | | i) Add ASensor_isWakeUpSensor and ASensorManager_getDefaultSensorEx methods. Bug: 16399898 Change-Id: Icc252aad068fa337bef8b22f20584f98cd5a155d
* SkBitmap::Config is deprecated, use SkColorTypeMike Reed2014-07-081-5/+5
| | | | Change-Id: Ic953741325607bf85598c097bb3ab648d4a08996
* Add java APIs for Sensor reportingMode.Aravind Akella2014-06-091-0/+5
| | | | Change-Id: Iba6bb11f990d9966b86bf02d70ced7312f3e64a8
* am c7153377: am 73da981f: Merge "Remove getRequiredPermission from NDK." ↵Aravind Akella2014-05-231-5/+0
|\ | | | | | | | | | | | | into klp-modular-dev * commit 'c7153377cf03303e97185397544a13971a089961': Remove getRequiredPermission from NDK.
| * am 73da981f: Merge "Remove getRequiredPermission from NDK." into klp-modular-devAravind Akella2014-05-221-5/+0
| |\ | | | | | | | | | | | | * commit '73da981fd60f9dc855a04ea53e9fff59a011577e': Remove getRequiredPermission from NDK.
| | * Remove getRequiredPermission from NDK.Aravind Akella2014-05-221-5/+0
| | | | | | | | | | | | Change-Id: Ieb1e97e44ef335e6087ba9164058fe3535e9998a
* | | Bug fix for wakeup sensors.Aravind Akella2014-04-231-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | SensorService should hold a wakelock till the app reads events from a wakeup sensor. Currently drivers hold a wakelock with a timeout while delivering events from a wake up sensor like Significant Motion. This hack can be removed now. Bug: 9774884 Change-Id: I6cab0147c63f57a494a61f4dfe2a64a27dfe1b4e
* | | am 8ebd66c2: am cd4c1c71: Merge "Add stringType and requiredPermissions to ↵Aravind Akella2014-04-111-0/+20
|\ \ \ | |/ / | | | | | | | | | | | | | | | SensorManager.java, as well as a permission for the heart rate sensor" into klp-modular-dev * commit '8ebd66c259602f6b0be26fdfd3fe2f55538f6424': Add stringType and requiredPermissions to SensorManager.java, as well as a permission for the heart rate sensor
| * | am cd4c1c71: Merge "Add stringType and requiredPermissions to ↵Aravind Akella2014-04-111-0/+20
| |\ \ | | |/ | | | | | | | | | | | | | | | SensorManager.java, as well as a permission for the heart rate sensor" into klp-modular-dev * commit 'cd4c1c714c37a1bc7ba35ebd2509eca4f0f6a314': Add stringType and requiredPermissions to SensorManager.java, as well as a permission for the heart rate sensor
| | * Add stringType and requiredPermissions to SensorManager.java, as well as a ↵Aravind Akella2014-04-111-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | permission for the heart rate sensor This reverts commit 819239e5bec90ee3c861ac45fffac4a832a183a1. Change-Id: I4bbb222e5c9dc65aed03aa28fd9e0f00fe335819
| * | am 819239e5: Revert "Add stringType and requiredPermissions to ↵Etienne Le Grand2014-04-051-20/+0
| |\ \ | | |/ | | | | | | | | | | | | | | | SensorManager.java, as well as a permission for the heart rate sensor" * commit '819239e5bec90ee3c861ac45fffac4a832a183a1': Revert "Add stringType and requiredPermissions to SensorManager.java, as well as a permission for the heart rate sensor"
| | * Revert "Add stringType and requiredPermissions to SensorManager.java, as ↵Etienne Le Grand2014-04-051-20/+0
| | | | | | | | | | | | | | | | | | | | | | | | well as a permission for the heart rate sensor" This reverts commit fd53d8352a4617941b0a0449390aa562a01ea1d3. Change-Id: I1c6322d1d992147bb5ef201238374966128c1a61
* | | Revert "Add stringType and requiredPermissions to SensorManager.java, as ↵Etienne Le Grand2014-04-051-20/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | well as a permission for the heart rate sensor" This reverts commit fd53d8352a4617941b0a0449390aa562a01ea1d3. Change-Id: I1c6322d1d992147bb5ef201238374966128c1a61 (cherry picked from commit 819239e5bec90ee3c861ac45fffac4a832a183a1)
* | | am bdfe3841: am fd53d835: Add stringType and requiredPermissions to ↵Etienne Le Grand2014-04-051-0/+20
|\ \ \ | |/ / | | | | | | | | | | | | | | | SensorManager.java, as well as a permission for the heart rate sensor * commit 'bdfe384106de364ea2effac6ab80108556d11649': Add stringType and requiredPermissions to SensorManager.java, as well as a permission for the heart rate sensor
| * | am fd53d835: Add stringType and requiredPermissions to SensorManager.java, ↵Etienne Le Grand2014-04-051-0/+20
| |\ \ | | |/ | | | | | | | | | | | | | | | as well as a permission for the heart rate sensor * commit 'fd53d8352a4617941b0a0449390aa562a01ea1d3': Add stringType and requiredPermissions to SensorManager.java, as well as a permission for the heart rate sensor
| | * Add stringType and requiredPermissions to SensorManager.java, as well as a ↵Etienne Le Grand2014-04-041-0/+20
| | | | | | | | | | | | | | | | | | permission for the heart rate sensor Change-Id: I16e5da68f860494e24cca64075be76fad02617bc
* | | Cleanup unnecessary includes for libskia.Derek Sollenberger2014-02-271-1/+0
| | | | | | | | | | | | | | | | | | | | | The libskia target exports all of its public includes directories so redefining them here is redundant. Also this cleans up and makes it obvious where the framework is making using of private Skia headers. Change-Id: Ie7ecc9ddd3df780bed6b9af54ba58ca58274e043
* | | Revert "Split AndroidRuntime into AndroidRuntimeBase base-class and the rest."Andreas Huber2014-02-132-3/+1
| | | | | | | | | | | | | | | | | | This reverts commit 7825334929b098b36e1144872200e75ba6d24b13. Change-Id: I1702eb3ff9d7192d64039c8bf4bc3fc5d8e458c4
* | | Split AndroidRuntime into AndroidRuntimeBase base-class and the rest.Andreas Huber2014-02-122-1/+3
|/ / | | | | | | | | | | | | | | AndroidRuntimeBase (exported by libandroid_runtime_base.so) is all you need to link against to gain the ability to do AndroidRuntimeBase::getJNIEnv() thus minimizing build dependencies. Change-Id: Ia7f0c94c8c02b974c068e0db34774827f96aa95b
* | AArch64: Make AssetManager and related classes 64-bit compatibleAshok Bhat2014-01-311-2/+2
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | Following changes have been done: [x] Long is used to store native pointers as pointers can be 64-bit. [x] AssetManager openAsset native function returned -1 if file name was empty and java function considered any non-zero value as success. This has been fixed by native function throwing Illegal Argument Exception as well. [x] AssetManager incRefsLocked and decRefsLocked now accept long as input to support 64-bit native references. [x] AssetManager incRefsLocked method incorrecly used 'this.hashCode()' instead of the passed parameter id. This has been fixed. [x] Some minor changes have been done to conform with standard JNI practice (e.g. use of jint instead of int in JNI function prototypes) Change-Id: I095b9f900d49e51f43ad6afc47cbc23116a6a64a Signed-off-by: Ashok Bhat <ashok.bhat@arm.com> Signed-off-by: Craig Barber <craig.barber@arm.com> Signed-off-by: Kévin PETIT <kevin.petit@arm.com>
* Track Looper decoupling from ALooperBrian Carlstrom2013-12-182-8/+16
| | | | Change-Id: I54f4d36f105e60eaaa453ae60f591d634c681fd7
* Move input library code to frameworks/native.Jeff Brown2013-07-012-2/+3
| | | | | | | | | No longer compile libandroidfw as a static library on the device since it already exists as a shared library. Keeping the static library would force us to provide a static library version of libinput for the device as well which doesn't make sense. Change-Id: I3517881b87b47dcc209d80dbd0ac6b5cf29a766f
* am 09377ddb: Merge "Fix AMotionEvent_getHistorical* to take const ↵Andrew Hsieh2013-05-281-12/+12
|\ | | | | | | | | | | | | AInputEvent* motion_event" * commit '09377ddb93a964b9e0def6d84b8beb3a515f4a18': Fix AMotionEvent_getHistorical* to take const AInputEvent* motion_event