summaryrefslogtreecommitdiffstats
path: root/core/jni/AndroidRuntime.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add SurfaceTexture JNI registration.Jamie Gennis2011-01-061-0/+2
| | | | Change-Id: I5441600b334e11e6ef88eb96ebb010df75080ad6
* Temporarily remove UsbManager support for USB host.Mike Lockwood2011-01-061-2/+0
| | | | | | | A new USB host API will be added in an upcoming commit Change-Id: I5816c10c7acd236d31ab8ae255fc83c77121eea0 Signed-off-by: Mike Lockwood <lockwood@android.com>
* UsbManager: Add methods to convert between USB device names and IDsMike Lockwood2010-12-291-1/+2
| | | | | Change-Id: I199a47805b629cc7b1714191d6af2fd70c2bda6d Signed-off-by: Mike Lockwood <lockwood@android.com>
* Framework-side support for Dalvik "isSensitiveThread" hook.Brad Fitzpatrick2010-12-141-0/+20
| | | | | | | Used in lock contention stats. Bug: 3226270 Change-Id: Ie6f58d130a29079a59bdefad40b80304d9bc3623
* Add a comment regarding the sizing of the Dalvik heap.Carl Shapiro2010-12-081-3/+5
| | | | Change-Id: I07a3267531580f034e78b5316162bfb553f1f819
* Remove stale code and unneeded '\n' chars from findClass.Carl Shapiro2010-12-071-31/+6
| | | | Change-Id: I496d56105a0889eb0a8c492985f8a324a200edc6
* Add a property to set the starting size of a VM.Carl Shapiro2010-12-071-0/+6
| | | | Change-Id: I3c981417baadfef64990fd90b4a275ed706a0b5b
* Apparently SystemProperties jni native support must now be registered before ↵Andreas Huber2010-11-161-1/+1
| | | | | | Binder's. Change-Id: Ia7197f41052c4d47dbecec400a7c789317f743a0
* Adding JNI methods as a faster reflection mechanismChet Haase2010-11-041-0/+3
| | | | | | | This approach is only for the common cases of void-return, single-argument float/int methods. Change-Id: Ifb31535a6f717b85417eced93c579be6e461e039
* NFC: Move NFC service implementation out of system_server.Nick Pelly2010-10-171-24/+4
| | | | | | | | | | | | | | | | | | | | | | | | 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: If7f00cd8f2053acfc9319ca366d4a9c02bd396e6 Signed-off-by: Nick Pelly <npelly@google.com>
* resolved conflicts for merge of f4c3b7e9 to masterNick Pelly2010-09-291-0/+24
|\ | | | | | | Change-Id: Idcdc521144f3072058b2bb6cb383e42c852e64f4
| * NFC integrationNick Pelly2010-09-281-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | am ac487f70: am 6b849e21: Unhide BitmapRegionDecoder.Wei-Ta Chen2010-09-221-2/+2
|\ \ | |/ | | | | | | | | | | Merge commit 'ac487f708f7b58dbd4f3021b520c6ed5975daebe' * commit 'ac487f708f7b58dbd4f3021b520c6ed5975daebe': Unhide BitmapRegionDecoder.
| * Unhide BitmapRegionDecoder.Wei-Ta Chen2010-09-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | am b0abf3ea: am 4b164c1b: Kill off the remaining GC-specific system properties.Carl Shapiro2010-09-161-36/+0
|\ \ | |/ | | | | | | | | | | Merge commit 'b0abf3ea47b74296fd790843e789cfd101f58a00' * commit 'b0abf3ea47b74296fd790843e789cfd101f58a00': Kill off the remaining GC-specific system properties.
| * Kill off the remaining GC-specific system properties.Carl Shapiro2010-09-161-36/+0
| | | | | | | | Change-Id: Ib09ef132c6fb99b9eb22ecfd75a910c9c0f01e25
* | am 8fc6f8b2: am 1b214be9: Merge "Revert "Rename LargeBitmap to ↵Wei-Ta Chen2010-09-071-2/+2
|\ \ | |/ | | | | | | | | | | | | | | BitmapRegionDecoder for having a better API."" into gingerbread Merge commit '8fc6f8b2152564cab6ede025644f9bc3ee61ce16' * commit '8fc6f8b2152564cab6ede025644f9bc3ee61ce16': Revert "Rename LargeBitmap to BitmapRegionDecoder for having a better API."
| * Revert "Rename LargeBitmap to BitmapRegionDecoder for having a better API."Wei-Ta Chen2010-09-081-2/+2
| | | | | | | | This reverts commit 50ba3d2c09a9131f3578d271adf2bc8258ca1742.
* | am a295a390: am b356f8ac: Merge "Rename LargeBitmap to BitmapRegionDecoder ↵Wei-Ta Chen2010-09-071-2/+2
|\ \ | |/ | | | | | | | | | | | | | | for having a better API." into gingerbread Merge commit 'a295a3908befeb9dd30203c612d95411d68492ed' * commit 'a295a3908befeb9dd30203c612d95411d68492ed': Rename LargeBitmap to BitmapRegionDecoder for having a better API.
| * Rename LargeBitmap to BitmapRegionDecoder for having a better API.Wei-Ta Chen2010-09-071-2/+2
| | | | | | | | | | | | | | Move AssetStreamAdaptor, AutoFDSeek and nullObjectReturn to Utils.h because BitmapFactory.cpp and BitmapRegionDecoder.cpp both need to use these utility functions. Change-Id: I3e60c7fe4abd0289e1384e69a08fd20fe6fb0e10
* | am 14d56840: am bc5ec2f9: Merge "Improve messages when java process is ↵Dianne Hackborn2010-09-011-3/+6
|\ \ | |/ | | | | | | | | | | | | | | starting." into gingerbread Merge commit '14d56840eeec537c037bebaeaebf1b37f48d8dad' * commit '14d56840eeec537c037bebaeaebf1b37f48d8dad': Improve messages when java process is starting.
| * Improve messages when java process is starting.Dianne Hackborn2010-09-011-3/+6
| | | | | | | | Change-Id: I33e401eb240a454845987c10d44e3520e419721b
* | resolved conflicts for merge of 50d35946 to masterBrian Carlstrom2010-08-251-52/+37
|\ \ | |/ | | | | Change-Id: Ia8c3312d626952c378fc4e7fec1d46119e2ccf42
| * 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
* | am 81dcea60: am f1f48bc7: Do JPEG tile-based decoding.Joseph Wen2010-08-171-0/+2
|\ \ | |/ | | | | | | | | | | Merge commit '81dcea6093dfcdadd52982505249a5eacf47a81b' * commit '81dcea6093dfcdadd52982505249a5eacf47a81b': Do JPEG tile-based decoding.
| * Do JPEG tile-based decoding.Joseph Wen2010-08-171-0/+2
| | | | | | | | Change-Id: I5c1b4ac3c02eb4350ef0ba9a7877b22cfd730cfb
* | am 679ac09a: am a5ae50cd: Merge "More native work." into gingerbreadDianne Hackborn2010-08-111-0/+2
|\ \ | |/ | | | | | | | | | | Merge commit '679ac09a5c22175354f3a04b28456b323839530e' * commit '679ac09a5c22175354f3a04b28456b323839530e': More native work.
| * More native work.Dianne Hackborn2010-08-111-0/+2
| | | | | | | | | | | | | | Implement save/restore of state, and add native APIs for configuration information. Change-Id: I2a3ddc2ba605db58d7c8b2b31b9215fb323f90b5
| * Tracking merge of dalvik-dev to gingerbreadBrian Carlstrom2010-08-041-1/+40
| | | | | | | | | | | | | | | | | | | | | | git cherry-pick --no-commit f77cf7f0 git cherry-pick --no-commit c8f503b5285e30c1a881d0ba860ba9021f57d113 git cherry-pick --no-commit 570bb561 git cherry-pick --no-commit e2417541 git cherry-pick --no-commit e4d81f25bd4dc1a5c909b56ab56a56406290da30 git cherry-pick --no-commit 5e8a587d Change-Id: I101a385d43f3e0f4ce5352217f92ef67a3908c88
* | Make libhwui entirely optional.Romain Guy2010-08-081-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | The makefile variable USE_OPENGL_RENDERER must be set to true to compile libhwui and the related code in the JNI layer. This change also removes obsolete APIs from Canvas that must not be used and would be confusing if left in. These APIs were remnants of our first attempt at an OpenGL renderer for the view hierarchy and had not been taken out before Android 1.0 was released. Change-Id: I2475ff1307212bab26c926724f3c508681c7dae1
* | Remove overwritefree property. The underlying flag no longer exists.Carl Shapiro2010-08-051-9/+0
| | | | | | | | Change-Id: Iecd1710887a7b16536cdbd52846952cc72cc0727
* | Add support for dalvik.vm.extra-opts property.Andy McFadden2010-07-301-1/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The goal here is to avoid the dalvik.vm.* property explosion by having a single property that takes an arbitrary collection of Dalvik command-line options. This is intended for testing of various configurations by the Dalvik team, not industrial use. Options should be separated by spaces, e.g. adb shell setprop dalvik.vm.extra-opts "-showversion -Xmx4m" will print the version banner and set the heap max to 4MB, which won't get you very far. The extra-opts options will appear last, which allows them to override values set earlier (like the heap max). Bug 2838629. (cherry-pick from dalvik-dev branch) Change-Id: Ibcbb1b62367cf2152798583e8722ef7e461ad19a
* | delete ScoSocketDanica Chang2010-07-201-2/+0
| | | | | | | | Change-Id: Ib941ca2d817e0a788638a5e72f1eb2e1fc4739e9
* | resolved conflicts for merge of 181bb0ab to masterKenny Root2010-07-161-0/+3
|\ \ | |/ | | | | Change-Id: I2284e7c671d127da0d124fbabae8d887727fd5bf
| * Add API to call to vold for mounting OBBsKenny Root2010-07-151-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Unhide StorageService class; hide all the USB-related items * Add application-visible API to StorageManager for OBB files * Add class for parceling OBB info across binders (ObbInfo) * Add a JNI glue class to libutils/ObbFile (ObbScanner) * Add API to MountService to deal with calling into vold and checking permissions Change-Id: I33ecf9606b8ff535f3a2ada83931da6bbef41cfd
* | Move MTP JNI code from libandroid_runtime to libmedia_jniMike Lockwood2010-06-301-6/+0
| | | | | | | | | | | | Signed-off-by: Mike Lockwood <lockwood@android.com> Change-Id: I0c54bbe4e6146beba7d22e782e02ded420f50dbd
* | MTP: Add MtpServer Java class to wrap MTP device support.Mike Lockwood2010-06-301-0/+2
| | | | | | | | | | Change-Id: I818c2d3b3f52ad5bb515acc4d3288b2b43e11908 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | am 96725326: am 31e0ffe8: Merge "Native input event dispatching." into ↵Chris Tate2010-06-281-2/+0
|\ \ | |/ | | | | | | | | | | | | | | gingerbread Merge commit '96725326149687168937cf62f75364cf9cc3e96b' * commit '96725326149687168937cf62f75364cf9cc3e96b': Native input event dispatching.
| * Native input event dispatching.Jeff Brown2010-06-281-2/+0
| | | | | | | | | | | | | | | | | | Target identification is now fully native. Fixed a couple of minor issues related to input injection. Native input enabled by default, can be disabled by setting WindowManagerPolicy.ENABLE_NATIVE_INPUT_DISPATCH to false. Change-Id: I7edf66ed3e987cc9306ad4743ac57a116af452ff
* | am dae19d7c: am aaf39f84: Merge "GPS: remove GpsEventThread from ↵Mike Lockwood2010-06-231-2/+4
|\ \ | |/ | | | | | | | | | | | | | | GpsLocationProvider" into gingerbread Merge commit 'dae19d7c00455e500cc9731071557ea91f162a7d' * commit 'dae19d7c00455e500cc9731071557ea91f162a7d': GPS: remove GpsEventThread from GpsLocationProvider
| * GPS: remove GpsEventThread from GpsLocationProviderMike Lockwood2010-06-221-2/+4
| | | | | | | | | | | | | | | | | | | | | | Rather than polling for events from the native code in an event thread, we now require the GPS HAL libraries to call our callbacks from a thread that is registered with the JVM to call directly into Java. This eliminates a thread from our code and removes one step in the chain of message passing from the GPS to the Location Manager client. Change-Id: I2745a157690310ba9a699a8369f54a7366c6b1ba Signed-off-by: Mike Lockwood <lockwood@android.com>
* | Add libhwui, to hardware accelerate the Canvas API using OpenGL ES 2.0.Romain Guy2010-06-171-0/+2
| | | | | | | | | | | | | | This is the initial checkin to setup the library and turn on OEGL ES 2.0 in ViewRoot, not a functional renderer. Change-Id: I6655c54166e2967da2e21e7d6dcfba78bf113b44
* | resolved conflicts for merge of 9e660c82 to masterJeff Brown2010-06-131-0/+10
|\ \ | |/ | | | | Change-Id: Ic4bd85cbaa5b9a10dcb474a0dad46490bf967e43
| * Native input dispatch rewrite work in progress.Jeff Brown2010-06-131-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The old dispatch mechanism has been left in place and continues to be used by default for now. To enable native input dispatch, edit the ENABLE_NATIVE_DISPATCH constant in WindowManagerPolicy. Includes part of the new input event NDK API. Some details TBD. To wire up input dispatch, as the ViewRoot adds a window to the window session it receives an InputChannel object as an output argument. The InputChannel encapsulates the file descriptors for a shared memory region and two pipe end-points. The ViewRoot then provides the InputChannel to the InputQueue. Behind the scenes, InputQueue simply attaches handlers to the native PollLoop object that underlies the MessageQueue. This way MessageQueue doesn't need to know anything about input dispatch per-se, it just exposes (in native code) a PollLoop that other components can use to monitor file descriptor state changes. There can be zero or more targets for any given input event. Each input target is specified by its input channel and some parameters including flags, an X/Y coordinate offset, and the dispatch timeout. An input target can request either synchronous dispatch (for foreground apps) or asynchronous dispatch (fire-and-forget for wallpapers and "outside" targets). Currently, finding the appropriate input targets for an event requires a call back into the WindowManagerServer from native code. In the future this will be refactored to avoid most of these callbacks except as required to handle pending focus transitions. End-to-end event dispatch mostly works! To do: event injection, rate limiting, ANRs, testing, optimization, etc. Change-Id: I8c36b2b9e0a2d27392040ecda0f51b636456de25
* | Fix native crash when enabling hardware acceleration.Romain Guy2010-06-101-0/+2
| | | | | | | | | | | | | | | | | | This change also prevents hardware acceleration when the ViewRoot is in the system process. This causes problem in EGL intialization because of having both a SurfaceControl and a Surface. This is not needed and better to leave it off anyway (so that preview windows don't get unnecessary hw acceleration.) Change-Id: I1cc55d7fb9a4c1a9c4c59f11f49d3e44de78acef
* | am 8207e2fd: am a8ebe8b3: am df2e2eff: Merge "Watchdog now records kernel ↵Christopher Tate2010-06-061-0/+2
|\ \ | |/ | | | | stacks when it fires" into froyo
| * am df2e2eff: Merge "Watchdog now records kernel stacks when it fires" into froyoChristopher Tate2010-06-061-0/+2
| |\ | | | | | | | | | | | | | | | | | | Merge commit 'df2e2eff9446c0220515fa7aab7857135e04e12e' into kraken * commit 'df2e2eff9446c0220515fa7aab7857135e04e12e': Watchdog now records kernel stacks when it fires
| | * Watchdog now records kernel stacks when it firesChristopher Tate2010-06-041-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | The kernel threads are appended to the usual /data/anr/traces.txt file and dropboxed along with the usual Dalvik stack dumps. Change-Id: I120f1f5ee54c965efe9ac0c7f40fdef56385f1fa NOTE: this change depends on the kernel publishing /proc/$PID/stack
* | | Prototype Content Provider support for MTP/PTP devices.Mike Lockwood2010-06-011-0/+4
|/ / | | | | | | | | | | | | | | | | | | | | | | At this point much of the plumbing is in place, but only a few simple queries are supported. This is enough to support a proof of concept sample program that navigates the file hierarchy of a digital camera connected via USB. Also removed obsolete ptptest host test program. Change-Id: I17644344b9f0ce1ecc302bc0478c1f3d44a1647f Signed-off-by: Mike Lockwood <lockwood@android.com>
* | Sketch of Native input for MessageQueue / Looper / ViewRootChristopher Tate2010-05-061-0/+2
| | | | | | | | | | | | | | | | MessageQueue now uses a socket for internal signalling, and is prepared to also handle any number of event input pipes, once the plumbing is set up with ViewRoot / Looper to tell it about them as appropriate. Change-Id: If9eda174a6c26887dc51b12b14b390e724e73ab3