| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|\
| |
| |
| |
| | |
* changes:
Make android_runtime to not include libemoji but use dlopen() instead. This must be submitted with change 2432
|
| |
| |
| |
| | |
This must be submitted with change 2432
|
|\ \
| | |
| | |
| | |
| | | |
* changes:
Fix issue 1846343 - part 1
|
| |/
| |
| |
| |
| |
| |
| |
| | |
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.
|
|/
|
|
| |
Signed-off-by: Mike Lockwood <lockwood@android.com>
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
| |
|
|
|
|
|
|
| |
a process and all its child threads.
Signed-off-by: San Mehat <san@google.com>
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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).
|
|
|
|
|
| |
This includes some cleanup to make the parameters match
between BackupService.onBackup and FileBackupHelper.performBackup.
|
|\
| |
| |
| |
| | |
* changes:
* Add regoin scaling for transparent support
|
| | |
|
| | |
|
|\ \
| | |
| | |
| | |
| | | |
* changes:
Fixes #1847219. Add a new API to load fonts from arbitrary files: Typeface.createFromFile(String/File).
|
| |/
| |
| |
| | |
Typeface.createFromFile(String/File).
|
|\ \
| |/
|/|
| |
| | |
* 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.
|
| |
| |
| |
| | |
Extracted actual writing from write jni function so it can be reused in an upcoming change.
|
| |
| |
| |
| | |
Signed-off-by: Mike Lockwood <lockwood@android.com>
|
| |
| |
| |
| | |
eglext.h
|
|\ \
| | |
| | |
| | |
| | | |
* changes:
Fix 1825581 - device restarts when using A2DP.
|
| |/
| |
| |
| |
| | |
Had to do with using the wrong JNIEnv. Now storing the VM and looking up a
JNIEnv appropriate to the thread as needed.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|\ \
| | |
| | |
| | |
| | | |
* changes:
Fix automatically generated code for glGet
|
| |/
| |
| |
| |
| |
| |
| | |
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.
|
|/ |
|
| |
|
| |
|
|
|
|
| |
Signed-off-by: Mike Lockwood <lockwood@android.com>
|
|\
| |
| |
| |
| | |
* changes:
Add call to (new) Canvas.freeCaches() in response to low-memory
|
| |
| |
| |
| |
| | |
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.
|
|\ \
| |/
| |
| |
| | |
* changes:
Manage imagecache ram budget
|
| |
| |
| |
| |
| | |
This code was lifted from the browser, and is now global since java clients may
also use this cache for decoded images
|
|\ \
| |/
|/|
| |
| | |
* 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
|
| |
| |
| |
| |
| |
| | |
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>
|
|\ \
| | |
| | |
| | |
| | | |
* changes:
Add (hidden for now) purgeable bitmaps
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|/
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|\ |
|
| |
| |
| |
| |
| |
| | |
BUG=1755458
Automated import of CL 146853
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|/
|
|
| |
Signed-off-by: Mike Lockwood <lockwood@android.com>
|
|
|
|
| |
Automated import of CL 145920
|
|
|
|
|
|
| |
BUG=1244263
Automated import of CL 144241
|
|
|
|
|
|
|
|
| |
happens earlier than AutoDecoderCancel object is added
to the gAutoDecoderCancelMutex linked list.
BUG=1692286
Automated import of CL 144176
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
when triggered by sensor
Original author: mathias
Merged from: //branches/cupcake/...
Automated import of CL 143171
|
| |
|