summaryrefslogtreecommitdiffstats
path: root/core/jni/android
Commit message (Collapse)AuthorAgeFilesLines
* A library for encoding and decoding ETC1 textures.Jack Palevich2009-12-311-0/+309
| | | | | The ETC1 compressed texture format is commonly supported by OpenGL ES 2.0-capable devices.
* throw if we have a null typeface native instance (so we don't crash in ↵Mike Reed2009-12-171-1/+1
| | | | | | native code) we may still have to native-destroy a Typeface with a null ref, so check for that
* am 1864d01f: Merge change Iae849da2 into eclairMike Reed2009-10-301-0/+21
|\ | | | | | | | | | | | | Merge commit '1864d01f2be0e82da7d8844fa91bee8880282041' into eclair-mr2 * commit '1864d01f2be0e82da7d8844fa91bee8880282041': add table maskfilter
| * add table maskfilterMike Reed2009-10-301-0/+21
| | | | | | | | | | | | hidden for now, since it need only be seen by Launcher2 http://b/issue?id=2210685
* | add boundary patchMike Reed2009-10-283-8/+57
|/
* add (hidden) setHasAlpha() to allow clients like the view's cache to hint ↵Mike Reed2009-10-071-0/+6
| | | | | | that a bitmap is opaque. Knowing that a 32bit bitmap is opaque is a performance boost for some blits.
* Hack to fix issue #2125365: Sports Trivia compatability with EclairDianne Hackborn2009-09-281-5/+5
| | | | | | | | | Adds a mechanism to tell Paint the scaling factor its target canvas will have, for it to compute font metrics based on the correct font size. Only TextView uses this, but that is enough for the large majority of apps. Change-Id: I6cacaa0dd26d40ee3ad959bed0028678d6e9016e
* Merge change 26851 into eclairAndroid (Google) Code Review2009-09-241-3/+4
|\ | | | | | | | | * changes: use new setDither on ImageRef to retain that setting for purgeable images
| * use new setDither on ImageRef to retain that setting for purgeable imagesMike Reed2009-09-241-3/+4
| |
* | Fix issue #2125720 Weather Forecast Widget - graphics do not scaleDianne Hackborn2009-09-233-7/+10
|/ | | | | | I forgot to add the new density field to the Bitmaps' parcelable data. Change-Id: I77cf3e93e356297e0caed6fc71b62b5cd8f79124
* Various cleanup around resources and nine-patches.Dianne Hackborn2009-09-112-13/+44
| | | | | | | | | | | | | | | | | | | Remove the stuff that doesn't use preloaded drawables when in compatibility mode, since this works fine ever since we were able to deal with drawables in a different density than the canvas. Change the snapshot function on View to return a snapshot at the same size that will actually be drawn on screen (when in compatibility mode), to be able to show scaling artifacts and all. This change was original an attempt to fix issue #2101917: Text field edges appears to be improperly rounded. That turns out to probably be something deeper in the graphics system, but also included here is the debugging code I did to try to track down the problem to make it easy to turn on again later. Change-Id: I34bfca629639c7ff103f3989d88874112ef778d9
* change default for dither to trueMike Reed2009-09-111-5/+7
|
* Change util_texSubImage2D to call glCompressedTexImage2D correctly.Jack Palevich2009-08-311-70/+71
| | | | | | Previously we had been setting the imageSize parameter to 0, which was incorrect. According to the OpenGL ES spec for glCompressedTexImage2D this parameter should be the size in bytes of the compressed data.
* expose runtime changes to gammaMike Reed2009-08-251-1/+21
|
* am 6af2552d: use safeUnref() since the other macro is not defined in donutMike Reed2009-07-302-2/+2
|\ | | | | | | | | | | | | Merge commit '6af2552d244ff933dfd54570121db455cc7c3cda' * commit '6af2552d244ff933dfd54570121db455cc7c3cda': use safeUnref() since the other macro is not defined in donut
| * use safeUnref() since the other macro is not defined in donutMike Reed2009-07-302-2/+2
| |
* | am 7299d6ad: Merge change 9159 into donutAndroid (Google) Code Review2009-07-302-16/+26
|\ \ | |/ | | | | | | | | | | Merge commit '7299d6ad9820bbb601034542c94d6dc73cc4829d' * commit '7299d6ad9820bbb601034542c94d6dc73cc4829d': check for null native objects, which never happens on a real subclass (we throw in that case)
| * Merge change 9159 into donutAndroid (Google) Code Review2009-07-302-16/+26
| |\ | | | | | | | | | | | | * changes: check for null native objects, which never happens on a real subclass (we throw in that case) but can happen because we allow the callers to create the base class from java.
| | * check for null native objects, which never happens on a real subclass (we ↵Mike Reed2009-07-302-16/+26
| | | | | | | | | | | | | | | | | | throw in that case) but can happen because we allow the callers to create the base class from java.
* | | am 25dff70f: Merge change 9039 into donutAndroid (Google) Code Review2009-07-301-11/+35
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '25dff70f153529b87f5ad4a92f4de21e8950b1de' * commit '25dff70f153529b87f5ad4a92f4de21e8950b1de': Fix #2018814: System cannot correctly render assets with "wrap_content" attribute in QVGA
| * | Fix #2018814: System cannot correctly render assets with "wrap_content" ↵Dianne Hackborn2009-07-291-11/+35
| |/ | | | | | | | | | | | | | | | | | | | | | | | | attribute in QVGA It turns out we were not returning the density for anything retrieved from a TypedArray... which basically means any bitmap references from a layout or style...!!! This is now fixed. Also fiddle with the density compatibility mode to turn on smoothing in certain situations, helping the look of things when they need to scale and we couldn't do the scaling at load time.
* | Merge change 8639Android (Google) Code Review2009-07-271-4/+9
|\ \ | | | | | | | | | | | | * changes: explicitly set the hinting level for android apps (to match the old default)
| * | explicitly set the hinting level for android apps (to match the old default)Mike Reed2009-07-271-4/+9
| | |
* | | am 11ea3347: Allow for screen density drawables in compatibility mode.Dianne Hackborn2009-07-244-26/+39
|\ \ \ | |/ / |/| / | |/ | | | | | | Merge commit '11ea33471e1a14a8594f0b2cd012d86340dd3bd8' * commit '11ea33471e1a14a8594f0b2cd012d86340dd3bd8': Allow for screen density drawables in compatibility mode.
| * Allow for screen density drawables in compatibility mode.Dianne Hackborn2009-07-244-26/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change allows us to use drawables that match the current screen density even when being loaded in compatibility mode. In this case, the bitmap is loaded in the screen density, and the bitmap and nine-patch drawables take care of accounting for the density difference. This should be safe for existing applications, for the most part, since they shouldn't really be pulling the bitmap out of the drawable. For the small rare chance of them breaking, it worth getting the correct graphics. Also this will only happen when there is actually a resource of the matching density, and no existing apps should have resources for anything besides the default density (though of course all of the framework resources will be available in the native density). As part of this, the bitmap density API has been changed to a single integer provider the DPI unit density.
* | am 09a903ab: Merge change 7696 into donutAndroid (Google) Code Review2009-07-174-31/+47
|\ \ | |/ | | | | | | | | | | Merge commit '09a903ab5b8d940605783ae4ee591c0f090a31d1' * commit '09a903ab5b8d940605783ae4ee591c0f090a31d1': add hidden Options field for native allocations
| * add hidden Options field for native allocationsMike Reed2009-07-174-31/+47
| |
* | remove deprecated use of porterduffMike Reed2009-06-222-3/+6
| |
* | am 766d7236: Merge change 4737 into donutAndroid (Google) Code Review2009-06-221-24/+30
|\ \ | |/ | | | | | | | | | | Merge commit '766d7236c84f636b816d71189e309e67db1f593a' * commit '766d7236c84f636b816d71189e309e67db1f593a': Add prepareToDraw() to Bitmap for fixing http://b/issue?id=1907995.
| * Add prepareToDraw() to Bitmap for fixing http://b/issue?id=1907995.Wei-Ta Chen2009-06-221-24/+30
| | | | | | | | | | | | | | The function is used to rebuild any caches associated with the bitmap. In the case of purgeable bitmaps, this call ensures that the pixels are decoded for drawing, and therefore prefetching techniques implemented by callers can be leveraged.
* | am 066e6bfd: Merge change 4792 into donutAndroid (Google) Code Review2009-06-191-0/+2
|\ \ | |/ | | | | | | | | | | Merge commit '066e6bfd01a5ddd4748eacdc82fee5374e2af929' * commit '066e6bfd01a5ddd4748eacdc82fee5374e2af929': when we reset a paint, it should return to the state it was in when it was first created.
| * when we reset a paint, it should return to the state it was in when it was ↵Mike Reed2009-06-191-0/+2
| | | | | | | | | | | | first created. for java, this means setting its text-encoding to UTF16...
* | am a4196206: Merge change 3074 into donutAndroid (Google) Code Review2009-06-041-2/+5
|\ \ | |/ | | | | | | | | | | Merge commit 'a41962065a93b63e7161cffd662b564e01a9e189' * commit 'a41962065a93b63e7161cffd662b564e01a9e189': Modify the decoding logic in the FD case when a purgeable flag is set,
| * Modify the decoding logic in the FD case when a purgeable flag is set,Wei-Ta Chen2009-06-031-2/+5
| | | | | | | | | | | | | | and lower the threshold of bitmap size for using ashmem(). For the decoding logic, we now go through the "non-purgeable" path if isShareable is false, irrespective of the value of the purgeable flag.
* | move libbinder's header files under includes/binderMathias Agopian2009-05-202-2/+2
| |
* | am 807f23b: Merge change 1057 into donutAndroid (Google) Code Review2009-05-121-1/+40
|\ \ | |/ | | | | | | | | | | Merge commit '807f23b2d8c7148cf6fc95bb88cfc2f78e4be66a' * commit '807f23b2d8c7148cf6fc95bb88cfc2f78e4be66a': * Add regoin scaling for transparent support
| * 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
| | |
* | | am 2bb3ea1: Fix native core runtime. A messy declaration was causing a pRomain Guy2009-05-121-1/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '2bb3ea162a58c0f1dddccdbe68b64e02456f11f9' * commit '2bb3ea162a58c0f1dddccdbe68b64e02456f11f9': Fix native core runtime. A messy declaration was causing a problem at boot time.
| * | Fix native core runtime. A messy declaration was causing a problem at boot time.Romain Guy2009-05-121-1/+1
| | |
* | | am 3e3439d: Merge change 1478 into donutAndroid (Google) Code Review2009-05-121-4/+12
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '3e3439d5ba0cf5eda060c4991219c32af917fc5b' * commit '3e3439d5ba0cf5eda060c4991219c32af917fc5b': 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).
* | am e5c4725: Merge change 873 into donutAndroid (Google) Code Review2009-05-011-4/+2
|\ \ | |/ | | | | | | | | | | Merge commit 'e5c4725666da25138193bed83831b66b9c0b2c45' * commit 'e5c4725666da25138193bed83831b66b9c0b2c45': pass original ptrs to JNI release functions (instead of += index to them)
| * pass original ptrs to JNI release functions (instead of += index to them)Mike Reed2009-05-011-4/+2
| |
* | am 77c9990: Merge change 599 into donutAndroid (Google) Code Review2009-04-291-2/+7
|\ \ | |/ | | | | | | | | | | Merge commit '77c9990ae0806575ae7a2750459f3e74f0bec092' * commit '77c9990ae0806575ae7a2750459f3e74f0bec092': 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.
* | am 1fb758e: Merge change 546 into donutAndroid (Google) Code Review2009-04-291-53/+154
|\ \ | |/ | | | | | | | | | | Merge commit '1fb758e94b5b9e342b6dc6452cb5bd7cf0cc4ed6' * commit '1fb758e94b5b9e342b6dc6452cb5bd7cf0cc4ed6': Add (hidden for now) purgeable bitmaps
| * Add (hidden for now) purgeable bitmapsMike Reed2009-04-241-53/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * 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
| * Automated import from //branches/donutburger/...@141859,141859Jack Palevich2009-03-241-0/+43
| |