summaryrefslogtreecommitdiffstats
path: root/core/jni
Commit message (Collapse)AuthorAgeFilesLines
* Merge "DO NOT MERGE Incoming Bluetooth Connection requests - dialog." into ↵Jaikumar Ganesh2011-06-212-23/+35
|\ | | | | | | gingerbread
| * DO NOT MERGE Incoming Bluetooth Connection requests - dialog.Jaikumar Ganesh2011-06-212-23/+35
| | | | | | | | | | | | | | This sends the intents to the Settings app to show the dialogs for the incoming connection requests. Change-Id: Ibe267f7cda28ce2a46c25800df2e8ac685b0b9e6
* | Prevent allocation overflows by corrupt NDEF records.Martijn Coenen2011-05-311-0/+13
|/ | | | | | | | | Basic sanity check for the length fields in NdefRecord; this prevents malformed NdefRecords from crashing the vm and the entire NFC service with it. Bug: 4165324 Change-Id: I67b341d445d6647cb76cc24ea49afaf77de0610e
* Handle GET_POWER failuresIrfan Sheriff2011-05-041-1/+3
| | | | | | | | Return a failure when GET_POWER returns a non-conforming format Bug: 4380317 Change-Id: If1ce73572ae261cd6998e4289e21112c88859437
* Add some debug code to try to track down issue 3183612Dianne Hackborn2011-03-141-0/+9
| | | | | | | java.lang.SecurityException: Neither user 1209 nor current process has android.permission.WAKE_LOCK. Change-Id: I3e84f8795941744e697824a5e5b2e651f565b253
* DO NOT MERGE WiMAX supportTK MUN2011-03-091-0/+32
| | | | | | | | | | - In Connectivity service, start WiMAX service - 4G icon display in StatusBarPolicy - Add DHCP renew - Add radio for WiMAX Change-Id: Iffff012b270d80e84ec8fbd4486921a8adb847dd Signed-off-by: TK MUN <tk.mun@samsung.com>
* Do not merge.Wei-Ta Chen2011-01-117-1/+365
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backport changes related to BitmapRegionDecoder from HoneyComb to Gingerbread. Bug: 3309014 //////////////////////////////////////////////////// This is a combination of 7 commits. Revert "Do not merge." This reverts commit f7681f84918c27f6a626681ce37ed2a236c44e82. Change-Id: I46fd710600b1649773eaea2d9abc2b21a592f9a6 Fix a initialization bug in BitmapRegionDecoder. Change-Id: I6c1151fd34970a84d4de52d664d9a5dc464892c5 Fix segfault when tring to throw IOException. Change-Id: I530cc4409ba4ca17cec933afad077c5f60ba554f Fix 3122139, where previewing an attachment for the second time will fail. Use AutoFDSeek to mark and restore the position before we read data from the descriptor. Change-Id: I3d4f012dce486e19b113bc90a98b94031cfa8195 Add inPreferQualityOverSpeed into BitmapFactory.Options. The new field allows a developer to use a more accurate by slightly slower IDCT method in JPEG decode. This in turns improves the quality of the reconstructed image. The field by default is not set and thus does not affect existing applications. Bug: 3238925 Change-Id: I93d55b7226e47a43e639325cd1a677694d6f2ee4 Unhide inPreferQualityOverSpeed in BitmapFactory.Options. The new field allows a developer to use a more accurate by slightly slower IDCT method in JPEG decode. This in turns improves the quality of the reconstructed image. The field by default is not set and thus does not affect existing applications. Bug: 3238925 Related changes: https://android-git.corp.google.com/g/#change,83291 and https://android-git.corp.google.com/g/#change,83294 Change-Id: I969f5c413f9b2179454aeb90e18ae8222ee583b4 Correct the API comments. BitmapRegionDecoder supports PNG as well.
* Merge "Fix JNI reference leak in NativeActivity. (DO NOT MERGE)" into ↵Jeff Brown2010-11-101-0/+2
|\ | | | | | | gingerbread
| * Fix JNI reference leak in NativeActivity. (DO NOT MERGE)Jeff Brown2010-11-081-0/+2
| | | | | | | | | | | | | | | | | | | | This change ensures that the native activity releases the KeyEvent objects that it allocates since they will not be released automatically and eventually the JNI slot table will overflow and crash the process. Bug: 3170494 Change-Id: I2ea527f056096fae9bc9e7685dccb56ec7a0e8b4
* | Reduce log clutter.Jeff Hamilton2010-11-083-18/+19
|/ | | | Change-Id: Ia034b563b028d74b4878f1af7db9188c82d03548
* Fix issue #3126018: No way to specify NativeActivity's native methodDianne Hackborn2010-10-241-3/+7
| | | | Change-Id: I59de6a543e7f7f45d963a905829a3f56f32bf8cf
* Attempt to fix simulator build.Nick Pelly2010-10-222-0/+4
| | | | | Change-Id: I7f912ce58292bdd03fa683d2e5c203480d94e945 Signed-off-by: Nick Pelly <npelly@google.com>
* Backport ParcelFileDescriptor.createPipe() from master.Jeff Hamilton2010-10-211-0/+22
| | | | | | | This allows content providers to expose arbitraty data through the ContentResolver open* APIs. Change-Id: I408a0b7cee9cdba5654a962098386c012d6b3549
* Fix issue #3117918: No way to finish a native activityDianne Hackborn2010-10-211-2/+32
| | | | Change-Id: Ic53e712f7ab5412d72a31b96ecba252344b91644
* Added missing implementation for NdefRecord.Sylvain Fonteneau2010-10-181-0/+84
| | | | | | | Implemented constructor using a byte array to parse. Added missing exception in method declaration, leading to update api/current.xml Change-Id: I2660484aef1225e90c2f32a572041a2c3aecf288
* Fix issue 3098880.Eric Laurent2010-10-151-0/+4
| | | | | | | Test value returned by getJNIEnv() in android_media_AudioSystem_error_callback() and exit if NULL. Change-Id: If30e5a05c585f34c66e6ad8cece3f7b46ef4be8e
* NFC: Move NFC service implementation out of system_server.Nick Pelly2010-10-155-33/+329
| | | | | | | | | | | | | | | | | | | | | | | | NFC service is now an application service in packages/apps/Nfc. NFC service is registered through ServiceManager.addService(), and the proxy object NfcAdapter obtains a handle to it through ServiceManager.getService(). **Important** Had to add new symbols AID_NFC / NFC_UID / android.uid.nfc and modify service_manager.c, Process.java and PackageManagerService.java in order to force the com.android.nfc process to take a fixed uid, so that it can use ServiceManager.addService(). Most of the JNI has moved to packages/apps/Nfc/jni. However NdefRecord and NdefMessage require some in-process native code, so android_com_NdefMessage.cpp and android_com_NdefRecord.cpp stay in frameworks/base/core/jni. They link to a very small library libnfc_ndef.so that implements NDEF message parsing. This has been added to core.mk so all devices (even without NFC hardware) can work with NDEF data. Bug: 3041259 Bug: 3097445 Change-Id: If8f00ce8f2053acfc9319ca366d4a9c02bd396e6 Signed-off-by: Nick Pelly <npelly@google.com>
* OBB: use PBKDF2 for key generation.Kenny Root2010-10-131-0/+11
| | | | | | | | | Switch to using PBKDF2 for the key generation for OBBs. Any previously generated OBBs will stop being read correctly. A small pbkdf2gen program is available to allow generation of appropriate keys with the salts. Bug: 3059950 Change-Id: If4305c989fd692fd1150eb270dbf751e09c37295
* Switch Looper back to using poll() instead of epoll().Jeff Brown2010-10-071-21/+11
| | | | | | | | | | | | Added a couple of micro-optimizations to avoid calling wake() unnecessarily and reduce JNI overhead slightly. Fixed a minor issue where we were not clearing the "next" field of Messages returned by the MessageQueue so the Message would hold on to its successor and potentially prevent the GC from collecting it if the message were leaked somehow. Change-Id: I488d29417ce0cdd7d0e447cda76ec978ef7f811c
* Do not merge.Wei-Ta Chen2010-10-015-335/+0
| | | | | | | Fix 3052285 by not publishing the BitmapRegionDecoder API until the honeycomb release. Bug: 3052285 Change-Id: Ie339e414c1a5581e1d38684621e0e97162616977
* NFC integrationNick Pelly2010-09-282-0/+32
| | | | | | | | | | | | | | | | Source: Trusted_NFC_Device_Host_AA03.01e02_google.zip code drop (23-Sep-2010) Conflicts: core/java/android/app/ApplicationContext.java core/java/android/provider/Settings.java core/jni/Android.mk core/jni/AndroidRuntime.cpp core/res/AndroidManifest.xml include/utils/Asset.h Change-Id: I62c92f4c79f5ee65126c97602f6bc1c15794e573 Signed-off-by: Nick Pelly <npelly@google.com>
* Update OBB API to include callbacksKenny Root2010-09-281-6/+17
| | | | | | | | | | | | Add a callback for users of the StorageManager API to be able to receive notifications when the requested operation completes for mountObb and unmountObb. Add NDK API to get to ObbInfo like the Java API has. Also update the docs for the API and remove the "STOPSHIP" comments. Change-Id: I23a4409c7f8b74d3169614beba920b4d667990a4
* fix problem in AudioEffect JNI setup.Eric Laurent2010-09-241-13/+19
| | | | | | | | | | | | | | | | | There is a problem in AudioEffect and Visualizer native_setup() methods that causes a crash in the application after the mediaserver process has crashed and restarted. The problem is that the native AudioEffect/Visualizer constructor is called while the JNI is in critical state after calling GetPrimitiveArrayCritical(). As the mediaserver process just restarted, the first call to AudioSystem will cause the binder IAudioflinger interface to be reteived and a callback send to AudioSystem JNI to clear the mediaserver error state. This will call env->FindClass() and crash due to the JNI being in critical state. Also fixed a similar problem in AudioTrack JNI Change-Id: I4a9026a3e26c7f78d9b4b4bec1aac90fbee2ab62
* Unhide BitmapRegionDecoder.Wei-Ta Chen2010-09-239-374/+451
| | | | | | | | | | | | | 1. Rename LargeBitmap to BitmapRegionDecoder 2. Move the instantiations of BitmapRegionDecoder out of BitmapFactory. 3. Remove the use of MemoryFile in BitmapRegionDecoder, since MemoryFile's API had been modified in master. Otherwise, the change will break the master build. 4. Move AssetStreamAdaptor, AutoFDSeek and nullObjectReturn to Utils.h because BitmapFactory.cpp and BitmapRegionDecoder.cpp both need to use these utility functions. Most of the modifications, except for (2) and (3), were reviewed in https://android-git.corp.google.com/g/#change,64716 . However, that change broke the master build due to (3) and was reverted eventually. So, instead of withdrawing this change and waiting for that change to be checked in again, I merge the two changes into one. Change-Id: I2202c0fbbbd6d6676bbd9637e690023ea4099c40
* Kill off the remaining GC-specific system properties.Carl Shapiro2010-09-161-36/+0
| | | | Change-Id: Ib09ef132c6fb99b9eb22ecfd75a910c9c0f01e25
* Fix the runtime restart due to name change.Wu-cheng Li2010-09-151-2/+2
| | | | | | bug:3001395 bug:3001399 Change-Id: I73fd1a63fea0807531b01ae2a754b32efffd41b1
* Merge "Replace epoll() with poll() and rename PollLoop to Looper." into ↵Jeff Brown2010-09-145-56/+56
|\ | | | | | | gingerbread
| * Replace epoll() with poll() and rename PollLoop to Looper.Jeff Brown2010-09-145-56/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As part of this change, consolidated and cleaned up the Looper API so that there are fewer distinctions between the NDK and non-NDK declarations (no need for two callback types, etc.). Removed the dependence on specific constants from sys/poll.h such as POLLIN. Instead looper.h defines events like LOOPER_EVENT_INPUT for the events that it supports. That should help make any future under-the-hood implementation changes easier. Fixed a couple of compiler warnings along the way. Change-Id: I449a7ec780bf061bdd325452f823673e2b39b6ae
* | Out Of Band API for Secure Simple Pairing.Jaikumar Ganesh2010-09-132-0/+173
|/ | | | Change-Id: I54ded27ab85d46eef3d2cca84f2394b1ffe88ced
* Merge "Fix bug in JNI BitmapFactory" into gingerbreadJoseph Wen2010-09-101-36/+64
|\
| * Fix bug in JNI BitmapFactoryJoseph Wen2010-09-101-36/+64
| | | | | | | | | | | | | | In nativeCreateLargeBitmapFromFileDescriptor() if the file descriptor can not be rewinded isShareable should be set to false. Change-Id: I7dd545c9d52d21c226e11b8921e35a1d9bba9515
* | DO NOT MERGE: Remove Device Bluez-Dbus interface watch.Jaikumar Ganesh2010-09-091-1/+1
| | | | | | | | Change-Id: I6bc04efd1292784bae5fc4786949d9da79e4aa22
* | Add support for secure views.Jeff Brown2010-09-081-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | Added the MotionEvent.FLAG_WINDOW_IS_OBSCURED flag which is set by the input manager whenever another visible window is partly or wholly obscured the target of a touch event so that applications can filter touches accordingly. Added a "filterTouchesWhenObscured" attribute to View which can be used to enable filtering of touches when the view's window is obscured. Change-Id: I936d9c85013fd2d77fb296a600528d30a29027d2
* | Merge "Remove dead code: NIOBuffer." into gingerbreadElliott Hughes2010-09-084-174/+0
|\ \ | |/ |/|
| * Remove dead code: NIOBuffer.Elliott Hughes2010-09-074-174/+0
| | | | | | | | | | | | | | | | Working on speeding up our NIO implementation, I came across this suboptimal code. Happily, it turns out to be unused. Bug: 2935622 Change-Id: I07ae6e573d63e439f496d55af215b34598d8258a
* | Revert "Rename LargeBitmap to BitmapRegionDecoder for having a better API."Wei-Ta Chen2010-09-089-423/+347
| | | | | | | | This reverts commit 50ba3d2c09a9131f3578d271adf2bc8258ca1742.
* | Merge "Rename SETSUSPEND to SETSUSPENDOPT DO NOT MERGE" into gingerbreadDmitry Shmidt2010-09-071-1/+1
|\ \
| * | Rename SETSUSPEND to SETSUSPENDOPT DO NOT MERGEIrfan Sheriff2010-09-071-1/+1
| |/ | | | | | | | | Bug: 2973101 Change-Id: I874381eeb12bb796382717285750d700e9b181ce
* | Merge "Rename LargeBitmap to BitmapRegionDecoder for having a better API." ↵Wei-Ta Chen2010-09-079-347/+423
|\ \ | | | | | | | | | into gingerbread
| * | Rename LargeBitmap to BitmapRegionDecoder for having a better API.Wei-Ta Chen2010-09-079-347/+423
| |/ | | | | | | | | | | | | Move AssetStreamAdaptor, AutoFDSeek and nullObjectReturn to Utils.h because BitmapFactory.cpp and BitmapRegionDecoder.cpp both need to use these utility functions. Change-Id: I3e60c7fe4abd0289e1384e69a08fd20fe6fb0e10
* | Modify native ALooper to take an explicit ident.Dianne Hackborn2010-09-071-3/+4
| | | | | | | | | | | | | | | | The ALooper API now uses an explicit "identifier" for the integer that is returned rather than implicitly using the fd. This allows the APIs that had the fd to be a little more sane. Change-Id: I8507f535ad484c0bdc4a1bd016d87bb09acd7ff0
* | Add system property to turn off scheduling groups.Dianne Hackborn2010-09-071-2/+1
|/ | | | | | | | Do this: adb shell setprop debug.sys.noschedgroups 1 Change-Id: I6e06a74205fd45ee1526ce71fe33944465d39984
* Improve messages when java process is starting.Dianne Hackborn2010-09-011-3/+6
| | | | Change-Id: I33e401eb240a454845987c10d44e3520e419721b
* Don't propagate StrictMode over one-way Binder calls.Brad Fitzpatrick2010-08-311-0/+1
| | | | | | | | | | | | | | | | | This was causing stack stitching problems where a one-way call with violations followed by a two-way call without violations was getting the previous one-way call's violation stack stitched on to the second caller's stack. The solution is a little more indirect than I would've liked (preserving the binder's onTransact flags until enforceInterface) but was seemingly necessary to work without changing the AIDL compiler. It should also be sufficiently cheap, since no new calls to thread-local IPCThreadState lookups were required. The additional work is just same-thread getter/setters on the existing IPCThreadState. Change-Id: I4b6db1d445c56e868e6d0d7be3ba6849f4ef23ae
* Broken build. Missing ;Gilles Debunne2010-08-271-1/+1
| | | | Change-Id: Ic266e491a73fb3df00e77111a4ad9f270741c28b
* Fix for 512 limit in assetManager.listGilles Debunne2010-08-261-77/+77
| | | | | | | | | | Also replaced all doThrow by jniThrow. OutOfMemory after string creation were removed: should have been thrown before. Bug http://b/issue?id=2949164 Change-Id: Idea8e27fdedeb43e3976776c477766e4dcdebcf8
* Update AndroidRuntime with dalvik-dev changesBrian Carlstrom2010-08-241-52/+28
| | | | | | | | | | | | | | | This change is the result of three cherry-picks: - Add dalvik.vm.gc.preverify dalvik.vm.gc.postverify properties. git cherry-pick --no-commit 0ef82fcf - Add the property dalvik.vm.gc.verifycardtable to set the -Xgc:-Xgc:verifycardtable option for the vm. git cherry-pick --no-commit 8b4faf54 - Eliminate short JIT debugging properties git cherry-pick --no-commit 57a673fc3db9d84908467ae6d245fd60d4637b2f Change-Id: I5f8002ed1e431344570add02f58e2641c8fae549
* Merge "Use getMinFrameCount() instead of querying AudioSystem directly." ↵Chia-chi Yeh2010-08-192-43/+20
|\ | | | | | | into gingerbread
| * Use getMinFrameCount() instead of querying AudioSystem directly.Chia-chi Yeh2010-08-192-43/+20
| | | | | | | | Change-Id: I6c4d2f1778703c1fd1ba5610c46e77c857418bff
* | DO NOT MERGE. Fix the build.Romain Guy2010-08-191-1/+2
| | | | | | | | Change-Id: I3322faa948af015f7d8df31b9a4c281f5311f067