summaryrefslogtreecommitdiffstats
path: root/core/jni/AndroidRuntime.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Tolerate missing AccountManager resource, not just missing resource nameBrian Carlstrom2011-04-071-1/+1
| | | | | | In addition to the primary change in the subject, also some minor cleanup of javadoc, typos, CloseGuard warning, etc found while working on a new AbstractAccountAuthenticator. Change-Id: I73f3408773a43a0021a15f8d051fd3dbbdf898a5
* Merge "Tracking merge of dalvik-dev to master"Brian Carlstrom2011-04-021-0/+1
|\
| * Tracking merge of dalvik-dev to masterBrian Carlstrom2011-04-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | git cherry-pick --no-commit a80febd83c8bf0b6717da2a7136179bdc906a5b7 git cherry-pick --no-commit 5e642b41cf44c5da7afdd95ab3d5e2bdbf7b31dd git cherry-pick --no-commit 4886db14c9eee4b6fee69bd54c57c5af04709c4c git cherry-pick --no-commit 560c685e448769904047507b9484ce8111967d7e git cherry-pick --no-commit 63dde7a2fcfa53dc531558635b64cea613d3cdb4 git cherry-pick --no-commit 74e5cb91060a379d98dd3a333b5f231bfb4f502e git cherry-pick --no-commit 1cc8c9708b555e2e338b7798d38887a2fefcfea6 git cherry-pick --no-commit 09625a21f5abe0c0db15757f58585d552d62c3d7 git cherry-pick --no-commit fcb02dfe0f5a2bb7c07e6d6fc69f756a484b5458 git cherry-pick --no-commit a68cb7fa3ab42854768b8145ff85231663770292 git cherry-pick --no-commit 716beb1c131dd2c6b805d4f681debaa20075010c git cherry-pick --no-commit 8c29b1097a7afe3a77e27546a56e396f3620a4ec git cherry-pick --no-commit 9c6a1a55d1c8086c1cc57464eea43725694ff70c git cherry-pick --no-commit b14f5ea5c57acdd009ba5b51f1bbe430f3d353b8 Change-Id: I8cc94175441b009e23549762d6baee1dbace4881
* | Add logging of graphics acceleration info to bugreportsChet Haase2011-04-011-0/+2
|/ | | | Change-Id: I9fa4cda6ccf92df9d1c644ccdc0e7274a30106e0
* Improve VelocityTracker numerical stability.Jeff Brown2011-03-151-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Replaced VelocityTracker with a faster and more accurate native implementation. This avoids the duplicate maintenance overhead of having two implementations. The new algorithm requires that the sample duration be at least 10ms in order to contribute to the velocity calculation. This ensures that the velocity is not severely overestimated when samples arrive in bursts. The new algorithm computes the exponentially weighted moving average using weights based on the relative duration of successive sample periods. The new algorithm is also more careful about how it handles individual pointers going down or up and their effects on the collected movement traces. The intent is to preserve the last known velocity of pointers as they go up while also ensuring that other motion samples do not count twice in that case. Bug: 4086785 Change-Id: I2632321232c64d6b8faacdb929e33f60e64dcdd3
* UsbDevice: Move IO related methods to new UsbDeviceConnection classMike Lockwood2011-03-111-0/+2
| | | | | | | | | | | | UsbDevice is now just an immutable parcelable object like UsbInterface and UsbEndpoint. All IO related functionality is now contained in UsbDeviceConnection and UsbRequest. Bug: 4067029 Change-Id: Ia84da0b512a697acc940eee0c3566711c62e1a68 Signed-off-by: Mike Lockwood <lockwood@android.com>
* Removing android.security.MessageDigestBrian Carlstrom2011-02-011-5/+0
| | | | | Bug: 3392028 Change-Id: I6b9732da17d086ba00c846c3ad1c7fb39baf9502
* New APIs for USB host support:Mike Lockwood2011-01-221-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | UsbManager: - is now a service retrievable via Context.getSystemService(Context.USB_SERVICE). - provides support for returning a list all connected USB devices - broadcasts ACTION_USB_DEVICE_ATTACHED and USB_DEVICE_DETACHED when devices are added and removed from the USB host bus UsbDevice: - represents an attached USB device. UsbInterface: - represents an interface on a USB device - devices may have multiple interfaces if they provide multiple sets of functionality (for example, android phones typically have interfaces for both USB mass storage and adb) UsbEndpoint: - represents an endpoint on a USB interface - endpoints are used for sending or receiving data (only in one or the other direction) UsbRequest: - encapsulates a send or receive request to be sent over an endpoint Change-Id: Ieef3e434c62760770ea839070cf5eba1a705967a Signed-off-by: Mike Lockwood <lockwood@android.com>
* Add a property for specifying a dalvik heap growth limit.Carl Shapiro2011-01-191-0/+8
| | | | Change-Id: I7334fb720277888df836414834ecf1e8d6b4b579
* Support non-rectangular input regions.Jeff Brown2011-01-161-1/+1
| | | | | | | | This enables the system bar to carve out a region through which events will be sent to the IME behind it. Bug: 3238092 Change-Id: I69b855a8d9b5b3ee525266c0861826e53e5b5028
* 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