summaryrefslogtreecommitdiffstats
path: root/core/jni/AndroidRuntime.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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
* | First pass at NativeActivity.Dianne Hackborn2010-05-051-0/+3
| | | | | | | | | | | | | | | | | | | | | | This is a rough sketch of the new pure-native API, which you can use through a NativeActivity in your manifest (no Java code in the .apk needed!). Intentionally no docs yet, the API is still being seriously messed with. But it works. Change-Id: I0e916d58a0d159ecaf3689e41834eb8dc681c0c0
* | am 15feb4de: am 19275cb5: Merge "Remove code to pass the nonexistant ↵Carl Shapiro2010-04-201-9/+0
|\ \ | |/ | | | | | | | | | | | | | | lockprofsample flag to Dalvik." into froyo Merge commit '15feb4defc61c7bded6fdd3ea1c3781f25666275' into kraken * commit '15feb4defc61c7bded6fdd3ea1c3781f25666275': Remove code to pass the nonexistant lockprofsample flag to Dalvik.
| * Remove code to pass the nonexistant lockprofsample flag to Dalvik.Carl Shapiro2010-04-201-9/+0
| | | | | | | | Change-Id: If334e21d770bc21a9b7c4f04d0fb652f53359231
* | am cb2906e4: am d5a873fb: Merge "Add command line flags to enable lock ↵Carl Shapiro2010-04-161-0/+18
|\ \ | |/ | | | | | | | | | | | | | | profiling." into froyo Merge commit 'cb2906e4bbb96b0be83029572a78f97dc6763eca' into kraken * commit 'cb2906e4bbb96b0be83029572a78f97dc6763eca': Add command line flags to enable lock profiling.
| * Add command line flags to enable lock profiling.Carl Shapiro2010-04-151-0/+18
| |
* | am c1420832: am 5945579e: Merge "Change TrafficStats to a new JNI ↵Dan Egnor2010-04-081-0/+2
|\ \ | |/ | | | | | | | | | | | | | | implementation." into froyo Merge commit 'c1420832a8f9c7fa62b143ce63c71062b3969c1b' into kraken * commit 'c1420832a8f9c7fa62b143ce63c71062b3969c1b': Change TrafficStats to a new JNI implementation.
| * Change TrafficStats to a new JNI implementation.Dan Egnor2010-04-071-0/+2
| | | | | | | | | | | | | | | | Also change phone's ConnectionStateTrackers to use it directly, rather than through the INetStat binder interface. Bug: 2578938 Change-Id: I8858e2609cbec3be845a0ce5178cb03f67e01b41
* | Move files internal to LocationManagerService from framework.jar to services.jarMike Lockwood2010-04-041-2/+0
|/ | | | | Change-Id: Iebbfc49b8300ab59730733efdf489ec87ea45a25 Signed-off-by: Mike Lockwood <lockwood@android.com>
* Update a stale JIT option name.Ben Cheng2010-03-241-2/+2
| | | | Change-Id: I4b2f2c215a0258adf52861bac025e32df7f40b14
* Tone down a log message.Andy McFadden2010-03-011-1/+1
| | | | | | | | | | | | | | | | Sometimes shell commands like "am" return before the framework stuff really finishes initializing (e.g. if you give it no arguments so you can see the usage info). The runtime used to print the dire and uninformative message: E/AndroidRuntime(): ERROR: thread attach failed With this change it's a bit more subdued: I/AndroidRuntime(): NOTE: attach of thread 'Binder Thread #2' failed Ideally it wouldn't get logged at all when it's "expected", but that requires actual code changes.
* Add support for accessing native bidi implementation via jni.Doug Felt2010-02-241-0/+2
| | | | Include a simple test to verify that the bidi code works.
* remove android.os.Base64UtilsDoug Zongker2010-02-081-2/+0
| | | | | | There are no more users of this code. Change-Id: Ie0109ece2ea329aeb9607e9193eaf0808955eab9
* Add a "dalvik.vm.gc.overwritefree" property. When set to "true", theBarry Hayes2010-02-031-0/+9
| | | | | VM will be given the "-Xgc:overwritefree" flag, and the GC will clobber the memory of freed objects.
* Add a Java API that converts yuv data to a jpeg.Wei-Ta Chen2010-01-271-0/+2
| | | | | | The compression is done in the native layer via calling libjpeg. Bug: 2285598
* resolved conflicts for merge of dfaf2e03 to masterMike Lockwood2009-11-251-2/+0
|\ | | | | | | Change-Id: I440d2042dd404a421789063e42102699fa33b7c0
| * Remove HardwareService and move vibrator support to VibratorService.Mike Lockwood2009-11-251-2/+0
| | | | | | | | | | | | | | | | | | The lights support is only needed by PowerManagerService and NotificationManagerService, so we do not need a Binder API for it. Move backlight and notification light support to new LightsService class. The camera flash is now handled directly by the camera HAL, so the flash Hardware service flash support is obsolete. Change-Id: I086d681f54668e7f7de3e8b90df3de19d59833c5 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | am 483ae632: am 5a03f36e: maintain cache of statementids returned by sqlite ↵Vasu Nori2009-11-201-0/+2
|\ \ | |/ | | | | | | | | | | | | | | upon compiling a sql stmnt Merge commit '483ae6328701d29e9731af25c64b09b1e18bc2e7' * commit '483ae6328701d29e9731af25c64b09b1e18bc2e7': maintain cache of statementids returned by sqlite upon compiling a sql stmnt
| * maintain cache of statementids returned by sqlite upon compiling a sql stmntVasu Nori2009-11-201-0/+2
| |
* | Add a Java API for OpenGL ES 2.0.Jack Palevich2009-11-191-0/+2
| | | | | | | | | | | | Currently this API is hidden. Add a test program.
* | Add support to suppress individual JIT optimizations.Ben Cheng2009-09-111-0/+12
|/
* Fix issue #2010965: Increase process size on WVGA devicesDianne Hackborn2009-08-191-10/+5
| | | | | This introduces a new system property to set the max vm size. The default is still 16mb.
* Bluetooth: API change.Nick Pelly2009-08-181-2/+2
| | | | | | | | | | | | | | | Split BluetoothDevice into BluetoothDevice and BluetoothAdapter. BluetoothAdapter: Represents the local BT adapter. Operations on the local adapter (start a scan, etc). BluetoothDevice: Represents a remote BT device. Operations on remote devices (pair, connect, etc). IBluetoothDevice.aidl -> Bluetooth.aidl BluetoothDeviceService.java -> BluetoothDeviceService.java TODO: Javadoc
* Add an option to enable JIT trace profiling for app_process.Ben Cheng2009-07-171-0/+9
|
* am b505ae41: Merge change 5459 into donutAndroid (Google) Code Review2009-06-251-0/+2
|\ | | | | | | | | | | | | Merge commit 'b505ae4195d9b8a93c71b1f9da6d7d8c3aaa3c08' * commit 'b505ae4195d9b8a93c71b1f9da6d7d8c3aaa3c08': Make the BackupHelperDispatcher properly handle multiple helpers.
| * Make the BackupHelperDispatcher properly handle multiple helpers.Joe Onorato2009-06-251-0/+2
| |
* | am 856dd8a6: Merge change 4952 into donutAndroid (Google) Code Review2009-06-221-4/+2
|\ \ | |/ | | | | | | | | | | Merge commit '856dd8a60a70a5b7dca2bf2114872ce063e2ad60' * commit '856dd8a60a70a5b7dca2bf2114872ce063e2ad60': Helper API cleanup. Allows multiple helpers to function,
| * Helper API cleanup. Allows multiple helpers to function,Joe Onorato2009-06-221-4/+2
| | | | | | | | | | because they'll always go in the same order, and this lets us not have to write headers to keep them paired.
* | Shorten the property name as there appears to be a length limit for it.Ben Cheng2009-06-191-2/+2
| |
* | Process new property definitions for JIT-specific options for apps ↵Ben Cheng2009-06-191-1/+70
| | | | | | | | performance tuning and debugging.
* | am 16ce3504: Merge change 4708 into donutAndroid (Google) Code Review2009-06-181-0/+2
|\ \ | |/ | | | | | | | | | | Merge commit '16ce3504c5bf98d95d5c36001f755bb4b15253c9' * commit '16ce3504c5bf98d95d5c36001f755bb4b15253c9': Make RestoreHelper and friends also write out the snapshot state.
| * Make RestoreHelper and friends also write out the snapshot state.Joe Onorato2009-06-181-0/+2
| |
* | am 2fdd428e: Fix some backup reader/writer issues; make local transport do ↵Christopher Tate2009-06-141-0/+2
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | backup Merge commit '2fdd428e0f18384160f7c38ce3a2cd9ba7e7b2c2' * commit '2fdd428e0f18384160f7c38ce3a2cd9ba7e7b2c2': Fix some backup reader/writer issues; make local transport do backup Fix the jni initializer. Add RestoreFileHelper, BackupDataInput, and add java wrappers for the methods on BackupDataOutput. Fix bug #1812041: activity manager crash with bad args. Journal backup requests so that they won't be lost in a crash Fix data connection issues.
| * Add RestoreFileHelper, BackupDataInput, and add java wrappers for the ↵Joe Onorato2009-06-121-0/+2
| | | | | | | | methods on BackupDataOutput.
* | rename string_array.h to StringArray.h and move the implementation from the ↵Mathias Agopian2009-06-051-1/+1
| | | | | | | | | | | | header file to a new cpp file. StringArray is used in two places in framework/base and in the Sim. Ideally we should get rid of it and use Vector<String8> instead of creating new code.
* | New BluetoothSocket API.Nick Pelly2009-05-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Modeled on blocking java.net.Socket and java.net.ServerSocket library. Public interface is: public final class BluetoothSocket implements Closeable { public static BluetoothSocket createRfcommSocket(String address, int port) throws IOException; public static BluetoothSocket createInsecureRfcommSocket(String address, int port) throws IOException; public void connect() throws IOException; public void close() throws IOException; public String getAddress(); public InputStream getInputStream() throws IOException; public OutputStream getOutputStream() throws IOException; } public final class BluetoothServerSocket implements Closeable { public static BluetoothServerSocket listenUsingRfcommOn(int port) throws IOException; public static BluetoothServerSocket listenUsingUnsecureRfcommOn(int port) throws IOException; public BluetoothSocket accept() throws IOException; public BluetoothSocket accept(int timeout) throws IOException; public void close() throws IOException; }