summaryrefslogtreecommitdiffstats
path: root/core/jni
Commit message (Collapse)AuthorAgeFilesLines
* Unmap memory in MemoryFile.close().Bjorn Bringert2009-05-291-15/+35
| | | | | | | | | | | | | | | | | | | | | As reported in http://b/issue?id=1398215 MemoryFile did not munmap(2) the ashmem region after closing it. This causes the process to leak virtual address space. This change fixes the problem by calling munmap(2) in close(). The unmapping is done by a helper method deactivate(). The change also replaces the use of an int for the file descriptor with a FileDescriptor object to make sure that we keep track of when the file descriptor has been closed. I chose to implement it this way because I will need decativate() and a FileDescriptor object in an upcoming change that allows sending MemoryFile file descriptors between processes. The change also adds a number of tests for the behavior of close(). The testCloseRead() and testCloseWrite() fail with the old MemoryFile implementation, and testCloseLeak() causes a segfault. They all pass now.
* Merge change 2432 into donutAndroid (Google) Code Review2009-05-272-39/+51
|\ | | | | | | | | * changes: Make android_runtime to not include libemoji but use dlopen() instead. This must be submitted with change 2432
| * Make android_runtime to not include libemoji but use dlopen() instead.Daisuke Miyakawa2009-05-272-39/+51
| | | | | | | | This must be submitted with change 2432
* | Merge change 2331 into donutAndroid (Google) Code Review2009-05-261-25/+9
|\ \ | | | | | | | | | | | | * changes: Fix issue 1846343 - part 1
| * | Fix issue 1846343 - part 1Eric Laurent2009-05-261-25/+9
| |/ | | | | | | | | | | | | | | This change is the first part of a fix for issue 1846343, : - Added new enum values for input sources in AudioRecord and MediaRecorder for voice uplink, downlink and uplink+downlink sources. - renamed streamType to inputSource in all native functions handling audio record. A second change is required in opencore author driver and android audio input to completely fix the issue.
* | wifi: Fix problem parsing RSSI when the AP name contains a space.Mike Lockwood2009-05-251-1/+6
|/ | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* Sensors: Use a native_handle for the data channel instead of a single file ↵Mike Lockwood2009-05-231-6/+31
| | | | | | | | | descriptor. This eliminates the requirement that all sensors share a single file descriptor. This, along with concurrent changes in other projects, fixes bugs b/1614524 and b/1614481 Signed-off-by: Mike Lockwood <lockwood@android.com>
* Hook up the backup data writer, and add a utility to read the backup data files.Joe Onorato2009-05-204-5/+77
|
* Fix bad filtering of error code when set_position_mode() is being called.David 'Digit' Turner2009-05-201-1/+1
|
* process: Add setProcessGroup() hidden API call to set the cgroup ofSan Mehat2009-05-191-0/+31
| | | | | | a process and all its child threads. Signed-off-by: San Mehat <san@google.com>
* Fix bug 1856713 gl Pointer functions should use Buffer positionJack Palevich2009-05-152-16/+34
| | | | | | | | JSR239 and android.opengl gl Pointer functions (glColorPointer, etc.) now respect the current setting of the Buffer position. This fixes a regression introduced when we started requiring the Buffers passed to the Pointer functions to be direct Buffers.
* Start using CLDR for some date-and-time strings and formats.Eric Fischer2009-05-151-0/+11
| | | | | | | | | | | | | | | | | | | | | | | Use java.text.DateFormat where possible, since that is already using the CLDR data for the things it supports. Remove an unused date format object from DatePickerDialog. Add a new method for getting the standalone month names from applications, although @hidden for now because it is an API change. Pass the standalone month names down to native code in Time so that tztime's strftime() can use them. And then the bulk of the change: replace all the names for the months and the days of the week, and AM and PM, and yesterday, today, and tomorrow, with strings from CLDR. And replace several of the date format strings with ones derived from CLDR, but reformatted to use strftime() style instead of SimpleDateFormat style. All these resource changes go into new donottranslate-cldr.xml files and are removed from strings.xml so that they aren't part of the normal translation process and the translators don't have to bother with them (and risk messing them up).
* Get the backup calling through to the file backup helper.Joe Onorato2009-05-141-8/+13
| | | | | This includes some cleanup to make the parameters match between BackupService.onBackup and FileBackupHelper.performBackup.
* Merge change 1057 into donutAndroid (Google) Code Review2009-05-121-1/+40
|\ | | | | | | | | * changes: * Add regoin scaling for transparent support
| * * Add regoin scaling for transparent supportMitsuru Oshima2009-05-121-1/+40
| |
* | Fix native core runtime. A messy declaration was causing a problem at boot time.Romain Guy2009-05-121-1/+1
| |
* | Merge change 1478 into donutAndroid (Google) Code Review2009-05-121-4/+12
|\ \ | | | | | | | | | | | | * changes: Fixes #1847219. Add a new API to load fonts from arbitrary files: Typeface.createFromFile(String/File).
| * | Fixes #1847219. Add a new API to load fonts from arbitrary files: ↵Romain Guy2009-05-121-4/+12
| |/ | | | | | | Typeface.createFromFile(String/File).
* | Merge change 1297 into donutAndroid (Google) Code Review2009-05-121-25/+42
|\ \ | |/ |/| | | | | * changes: Check the size of the data to write for STATIC AudioTrack objects. Extracted actual writing from write jni function so it can be reused in an upcoming change.
| * Check the size of the data to write for STATIC AudioTrack objects.Jean-Michel Trivi2009-05-081-25/+42
| | | | | | | | Extracted actual writing from write jni function so it can be reused in an upcoming change.
* | GPS: Generalize SUPL support to include AGPS for CDMAMike Lockwood2009-05-111-62/+55
| | | | | | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* | remove the gl{Vertex|Color|TexCoord|Normal}PointerBounds() "extension" fro ↵Mathias Agopian2009-05-082-0/+26
| | | | | | | | eglext.h
* | Merge change 1192 into donutAndroid (Google) Code Review2009-05-081-4/+18
|\ \ | | | | | | | | | | | | * changes: Fix 1825581 - device restarts when using A2DP.
| * | Fix 1825581 - device restarts when using A2DP.Robert Greenwalt2009-05-071-4/+18
| |/ | | | | | | | | Had to do with using the wrong JNIEnv. Now storing the VM and looking up a JNIEnv appropriate to the thread as needed.
* | Require native-order direct buffers for glXXXPointer APIs.Jack Palevich2009-05-072-32/+56
| | | | | | | | | | | | | | | | | | | | This was always a documented restriction, but was not enforced by the runtime until now. Until now, if you passed in some other kind of buffer, it would sometimes work, and sometimes fail. The failures happened when the Java VM moved the buffer data while OpenGL was still holding a pointer to it. Now we throw an exception rather than leaving the system in a potentially bad state.
* | Merge change 1163 into donutAndroid (Google) Code Review2009-05-075-57/+71
|\ \ | | | | | | | | | | | | * changes: Fix automatically generated code for glGet
| * | Fix automatically generated code for glGetJack Palevich2009-05-075-57/+71
| |/ | | | | | | | | | | | | Remove include of an internal agl header file. We should not depend on any implementation details of our software renderer, since they may not be correct if another renderer is used. Fix glGet number-of-elements logic for GL_FOG_COLOR GL_LIGHT_MODEL_AMBIENT, and GL_COMPRESSED_TEXTURE_FORMATS.
* | More backup testsJoe Onorato2009-05-074-17/+98
|/
* Change error message.Wu-cheng Li2009-05-041-1/+2
|
* pass original ptrs to JNI release functions (instead of += index to them)Mike Reed2009-05-011-4/+2
|
* gps: Fix missing return value in android_location_GpsLocationProvider_initMike Lockwood2009-04-301-0/+1
| | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* Merge change 599 into donutAndroid (Google) Code Review2009-04-281-2/+7
|\ | | | | | | | | * changes: Add call to (new) Canvas.freeCaches() in response to low-memory
| * Add call to (new) Canvas.freeCaches() in response to low-memoryMike Reed2009-04-271-2/+7
| | | | | | | | | | This is in conjunction with removing a similar call made by the browser. Now it will be centralized, and the browser's call site will be removed.
* | Merge change 586 into donutAndroid (Google) Code Review2009-04-281-0/+8
|\ \ | |/ | | | | | | * changes: Manage imagecache ram budget
| * Manage imagecache ram budgetMike Reed2009-04-271-0/+8
| | | | | | | | | | This code was lifted from the browser, and is now global since java clients may also use this cache for decoded images
* | Merge change 376 into donutAndroid (Google) Code Review2009-04-271-0/+79
|\ \ | |/ |/| | | | | * changes: Add support for changing a threads scheduler group. Three groups are available (default, background non interactive, foreground boost). Setting a thread priority to PRIORITY_BACKGROUND will transparently change groups to background
| * Add support for changing a threads scheduler group. Three groups are ↵San Mehat2009-04-271-0/+79
| | | | | | | | | | | | available (default, background non interactive, foreground boost). Setting a thread priority to PRIORITY_BACKGROUND will transparently change groups to background Signed-off-by: San Mehat <san@google.com>
* | Merge change 546 into donutAndroid (Google) Code Review2009-04-272-53/+155
|\ \ | | | | | | | | | | | | * changes: Add (hidden for now) purgeable bitmaps
| * | Add (hidden for now) purgeable bitmapsMike Reed2009-04-242-53/+155
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BitmapFactory::Options now let you specify if the resulting bitmap can be "purgeable". If so, then its decoded pixels may be purged when not actively being drawn, freeing up that RAM. When such a bitmap is drawn, it will automatically be re-decoded on demand. This is done by having the bitmap keep a reference/copy of the encoded data. Where it is a reference or a copy is controlled by the "shareable" flag in Options. If this is true, the implementation *may* just reference the encode data (e.g. a file descriptor) rathern than making a complete copy of it. Currently, purgeable is not supported for generic inputstreams, but is enabled for byte-array, file-descriptor, and assets, though for impl reasons only file-descripts are currently enabled for "shareable", but that may change in the future.
* | Enable static Java APIs for OpenGL ES 1.1 extensions.Jack Palevich2009-04-242-167/+1215
|/ | | | | | | | | | | | This is just plumbing. The Java APIs existed already, but there were no C APIs to hook the Java APIs up to. Now there are C APIs, so we can call them. Of course, whether or not the C APIs actually work when you call them depend upon the capabilities of the active OpenGL driver, which must be checked at run time. Also, while we're here, make the glGetString method static. It was always supposed to be static, but was accidentally implemented as non-static, because the code was copied from the non-static OpenGL ES classes.
* Merge branch 'readonly-p4-donut' into donutEvan Millar2009-04-181-39/+62
|\
| * AI 146853: Add kernel wakelock data to batteryinfo dump.Evan Millar2009-04-181-39/+62
| | | | | | | | | | | | BUG=1755458 Automated import of CL 146853
* | Add an Android-specific static OpenGL ES 1.1 Java API.Jack Palevich2009-04-167-1/+7672
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds four new public classes that expose a static OpenGL ES 1.1 API: android.opengl.GLES10 android.opengl.GLES10Ext android.opengl.GLES11 android.opengl.GLES11Ext Benefits: + The static API is slightly faster (1% to 4%) than the existing Interface based JSR239 API. + The static API is similar to the C API, which should make it easier to import C-based example code. + The static API provides a clear path for adding new OpenGL ES 1.1 extensions and OpenGL ES 2.0 APIs, neither of which currently have a JSR standard. Example: import static android.opengl.GLES10.*; ... glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); Note that it is possible to mix-and-match calls to both the static and JSR239 APIs. This works because neither API maintains state. They both call through to the same underlying C OpenGL ES APIs. Implementation details: This change enhances the "glgen" "gen" script to generate both the original JSR239 and new static OpenGL ES APIs. The contents of the generated JSR239 classes remained the same as before, so there is no need to check in new versions of the generated JSR239 classes. As part of this work the gen script was updated to be somewhat more robust, and to work with git instead of perforce. The script prints out commands to git add the generated files, but leaves it up to the script runner to actually execute those commands.
* | gps: Add support for bringing up a GSM data connection on demand for SUPL.Mike Lockwood2009-04-141-15/+66
|/ | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* AI 145920: Don't filter out IPv6 multicast packets.Lorenzo Colitti2009-04-131-0/+2
| | | | Automated import of CL 145920
* AI 144241: Stop polling dbus.Robert Greenwalt2009-04-025-88/+407
| | | | | | BUG=1244263 Automated import of CL 144241
* AI 144176: To fix the race condition in case "requestCancelDecode"Ray Chen2009-04-021-2/+13
| | | | | | | | happens earlier than AutoDecoderCancel object is added to the gAutoDecoderCancelMutex linked list. BUG=1692286 Automated import of CL 144176
* AI 143788: am: CL 143740 Don't clear supported profiles in settings app if ↵Nick Pelly2009-03-311-5/+5
| | | | | | | | | | getRemoteClass returns error. Also clean up the error codes returned by the framework, so that the settings app can properly detect an error. Original author: npelly Merged from: //branches/cupcake/... Automated import of CL 143788
* AI 143171: am: CL 142873 fix [1732012] Only show screen rotation animation ↵Mathias Agopian2009-03-271-3/+3
| | | | | | | | | when triggered by sensor Original author: mathias Merged from: //branches/cupcake/... Automated import of CL 143171
* Automated import from //branches/donutburger/...@142484,142484Jack Palevich2009-03-241-112/+193
|