summaryrefslogtreecommitdiffstats
path: root/core/jni
Commit message (Collapse)AuthorAgeFilesLines
* Add plumbing to support gradients in OpenGL renderer.Romain Guy2010-07-162-8/+76
| | | | | | | | | | The LinearGradient class keeps a copy of the various parameters that define the gradient. The copies are native arrays to avoid copying Java arrays on every draw call. The gradient code path is implemented until OpenGLRenderer::drawRect() (see TODO.) The actual gradient implementation will be added in a latter change. Change-Id: I9300d250ef5e2e9c2e097c3116ee71dfc9d752d8
* Improve clip support (add intersect, union and replace.)Romain Guy2010-07-161-6/+9
| | | | | | | This change also modifies the way the clip is stored. The clip is now always stored in screen-space coordinates. Change-Id: I96375784d82dfe975bc6477a159e6866e7052487
* Merge "Handle Input and network signal changes for HID and tethering."Jaikumar Ganesh2010-07-151-0/+14
|\
| * Handle Input and network signal changes for HID and tethering.Jaikumar Ganesh2010-07-151-0/+14
| | | | | | | | Change-Id: I7f0c2884bb766189b41093bdcd6241f4540a31f3
* | Merge "Add support for BitmapShader."Romain Guy2010-07-151-0/+19
|\ \ | |/ |/|
| * Add support for BitmapShader.Romain Guy2010-07-151-0/+19
| | | | | | | | | | | | This change also fixes an issue with the clip and layers. Change-Id: I5fd9832098d8cf7ae8eb781ff9bffe7defaea279
* | am a6be4e01: am 3a053db2: Merge "The ICU data is no longer compiled directly ↵Joe Onorato2010-07-151-1/+0
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | into the shared library." into gingerbread Merge commit 'a6be4e01b23610cbcc27c6f26cfa390beabfa1fe' * commit 'a6be4e01b23610cbcc27c6f26cfa390beabfa1fe': The ICU data is no longer compiled directly into the shared library.
| * \ am 3a053db2: Merge "The ICU data is no longer compiled directly into the ↵Joe Onorato2010-07-151-1/+0
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | shared library." into gingerbread Merge commit '3a053db28451858162f3dd84f18fae2f245b07f1' into gingerbread-plus-aosp * commit '3a053db28451858162f3dd84f18fae2f245b07f1': The ICU data is no longer compiled directly into the shared library.
| | * \ Merge "The ICU data is no longer compiled directly into the shared library." ↵Joe Onorato2010-07-151-1/+0
| | |\ \ | | | | | | | | | | | | | | | into gingerbread
| | | * | The ICU data is no longer compiled directly into the shared library.Joe Onorato2010-07-131-1/+0
| | | | | | | | | | | | | | | | | | | | Change-Id: I1f6adf66a28b62a6f45c1622d669cb8c519adcbb
* | | | | SQLiteDatabase: Add mechanism for registering custom sqlite3 functionsMike Lockwood2010-07-141-0/+72
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | This allows you to define a callback in Java that can be called from sqlite3 database triggers. Change-Id: I09fdbd38c9807b6b0dd19c2761b01e8db76f1adc Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | | Merge "Pass network properties to ConnectivityService."Robert Greenwalt2010-07-141-3/+3
|\ \ \ \
| * | | | Pass network properties to ConnectivityService.Robert Greenwalt2010-07-131-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Used as a bag to hold ipaddr, gateway, dns, proxy info. addr's are InetAddresses for v4/v6 use. Cleaning up some old v4-only code bug:2655015 Change-Id: I7ac886fe5c519e8bab42f49cd82a5189d9c9ab59
* | | | | Merge "Implement native dump for "am dumpheap -n"."Andy McFadden2010-07-141-1/+176
|\ \ \ \ \
| * | | | | Implement native dump for "am dumpheap -n".Andy McFadden2010-07-131-1/+176
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds the ability to generate a trivial heap dump on demand. If the appropriate system properties aren't set, the output file will instead contain instructions for enabling them. The data returned by get_malloc_leak_info() is processed and written to the specified file. The output looks something like: Android Native Heap Dump v1.0 Total memory: 2981301 Allocation records: 2152 z 1 sz 65557 num 1 bt 8010dd78 afd12618 ... z 1 sz 52008 num 3 bt 8010dd78 afd12618 ... z 1 sz 24428 num 1 bt 8010dd78 8010de84 ... ...2149 more... END (the "..." is actually the remaining entries in the stack backtrace; I truncated it here) "z" indicates whether the allocation was made pre- or post-zygote, "sz" is the size allocated, and "num" is the number of allocations made of that size with the specified backtrace. Change-Id: I2d60f07444fce5f7178b3f51c928c8faa0b051bd
* | | | | | am f8d9379b: am d76b67c3: IME events are now dispatched to native applications.Dianne Hackborn2010-07-131-34/+303
|\ \ \ \ \ \ | | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit 'f8d9379bd834573feca085284970cf686993c330' * commit 'f8d9379bd834573feca085284970cf686993c330': IME events are now dispatched to native applications.
| * | | | | am d76b67c3: IME events are now dispatched to native applications.Dianne Hackborn2010-07-131-34/+303
| |\ \ \ \ \ | | | |_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit 'd76b67c340d1564abf8d14d976fdaf83bf2b3320' into gingerbread-plus-aosp * commit 'd76b67c340d1564abf8d14d976fdaf83bf2b3320': IME events are now dispatched to native applications.
| | * | | | IME events are now dispatched to native applications.Dianne Hackborn2010-07-131-34/+303
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And also: - APIs to show and hide the IME, and control its interaction with the app. - APIs to tell the app when its window resizes and needs to be redrawn. - API to tell the app the content rectangle of its window (to layout around the IME or status bar). There is still a problem with IME interaction -- we need a way for the app to deliver events to the IME before it handles them, so that for example the back key will close the IME instead of finishing the app. Change-Id: I37b75fc2ec533750ef36ca3aedd2f0cc0b5813cd
* | | | | | am 706623dd: am c0a7e690: Add Parcel::readExceptionCode() and ↵Brad Fitzpatrick2010-07-131-1/+1
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Parcel::writeNoException() Merge commit '706623ddb8314850c0551f0b66e24b5f0bd28620' * commit '706623ddb8314850c0551f0b66e24b5f0bd28620': Add Parcel::readExceptionCode() and Parcel::writeNoException()
| * | | | | am c0a7e690: Add Parcel::readExceptionCode() and Parcel::writeNoException()Brad Fitzpatrick2010-07-131-1/+1
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit 'c0a7e690bfd32dd897ceccd04dd0fa6bf6e9cee6' into gingerbread-plus-aosp * commit 'c0a7e690bfd32dd897ceccd04dd0fa6bf6e9cee6': Add Parcel::readExceptionCode() and Parcel::writeNoException()
| | * | | | Add Parcel::readExceptionCode() and Parcel::writeNoException()Brad Fitzpatrick2010-07-131-1/+1
| | | |_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add native Parcel methods analogous to the Java versions. Currently, these don't do much, but upcoming StrictMode work changes the RPC calling conventions in some cases, so it's important that everybody uses these consistently, rather than having a lot of code trying to parse RPC responses out of Parcels themselves. As a summary, the current convention that Java Binder services use is to prepend the reply Parcel with an int32 signaling the exception status: 0: no exception -1: Security exception -2: Bad Parcelable -3: ... -4: ... -5: ... ... followed by Parceled String if the exception code is non-zero. With an upcoming change, it'll be the case that a response Parcel can, non-exceptionally return rich data in the header, and also return data to the caller. The important thing to note in this new case is that the first int32 in the reply parcel *will not be zero*, so anybody manually checking for it with reply.readInt32() will get false negative failures. Short summary: If you're calling into a Java service and manually checking the exception status with reply.readInt32(), change it to reply.readExceptionCode(). Change-Id: I23f9a0e53a8cfbbd9759242cfde16723641afe04
* | | | | Merge "Support bidi/shaping for getTextPath"Kenny Root2010-07-135-305/+436
|\ \ \ \ \ | |_|_|/ / |/| | | |
| * | | | Support bidi/shaping for getTextPathDoug Felt2010-07-125-305/+436
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move layout-related code into separate class since it's needed by both canvas and paint. Change-Id: Iba89a1d94d7cca650255ffa3cbc952b988a51b54
* | | | | am b14f325a: am 289b9b62: Add ANativeWindow API for directly drawing to the ↵Dianne Hackborn2010-07-094-83/+124
|\ \ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | surface bits. Merge commit 'b14f325a0118ffce286155caaabaae149653462c' * commit 'b14f325a0118ffce286155caaabaae149653462c': Add ANativeWindow API for directly drawing to the surface bits.
| * | | | am 289b9b62: Add ANativeWindow API for directly drawing to the surface bits.Dianne Hackborn2010-07-094-83/+124
| |\ \ \ \ | | | |/ / | | |/| | | | | | | | | | | | | | | | | | | | | | Merge commit '289b9b62372ef52a06113b83dfb870e2c2fb325a' into gingerbread-plus-aosp * commit '289b9b62372ef52a06113b83dfb870e2c2fb325a': Add ANativeWindow API for directly drawing to the surface bits.
| | * | | Add ANativeWindow API for directly drawing to the surface bits.Dianne Hackborn2010-07-094-83/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also other cleanup and fixes: - We now properly set the default window format to 565. - New APIs to set the window format and flags from native code. - Tweaked glue for simpler handling of the "destroy" message. - Um, other stuff. Change-Id: Id7790a21a2fa9a19b91854d225324a7c1e7c6ade
* | | | | Remove support for density compatibility in the hardware renderer.Romain Guy2010-07-091-73/+40
| | | | | | | | | | | | | | | | | | | | Change-Id: I535e919986e5ccfb344ede8516ccd84c02642823
* | | | | am 49159f07: am 74bf59b4: Merge "Add new glue code for writing native apps." ↵Dianne Hackborn2010-07-081-2/+2
|\ \ \ \ \ | |/ / / / | | | / / | |_|/ / |/| | | | | | | | | | | | | | | | | | | into gingerbread Merge commit '49159f0748c704e53a7bd754f26113d9ab844a97' * commit '49159f0748c704e53a7bd754f26113d9ab844a97': Add new glue code for writing native apps.
| * | | am 74bf59b4: Merge "Add new glue code for writing native apps." into gingerbreadDianne Hackborn2010-07-081-2/+2
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | Merge commit '74bf59b450daf9e7e6bf234f01db164099edbfd5' into gingerbread-plus-aosp * commit '74bf59b450daf9e7e6bf234f01db164099edbfd5': Add new glue code for writing native apps.
| | * | Add new glue code for writing native apps.Dianne Hackborn2010-07-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This factors out the boiler-plate code from the sample app to a common glue code that can be used for everyone writing this style of app: a dedicated app thread that takes care of waiting for events and processing them. As part of doing this, ALooper has a new facility to allow registration of fds that cause ALooper_pollOnce() to return the fd that has data, allowing the app to drive the loop without callbacks. Hopefully this makes some people feel better. :) Also do some other cleanup of the ALooper API, plus some actual documentation. Change-Id: Ic53bd56bdf627e3ba28a3c093faa06a92be522b8
* | | | Add support to draw 9patches in OpenGL.Romain Guy2010-07-071-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This change only adds the necessary API and stubs. The implementation will be added in another change. Change-Id: Ie50b8aff5868e78796cee331df15bdbf990d2ea1
* | | | Support bidi layout for drawTextOnPath.Doug Felt2010-07-071-137/+188
| | | | | | | | | | | | | | | | Change-Id: Ie5867fdb66fe15336774e20d65fa63e0d05bf6fe
* | | | am e24901d3: am 68267415: Add new native Looper API.Dianne Hackborn2010-07-072-3/+25
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Merge commit 'e24901d3adb28fff72821d4e8e2ccc25b2184550' * commit 'e24901d3adb28fff72821d4e8e2ccc25b2184550': Add new native Looper API.
| * | | am 68267415: Add new native Looper API.Dianne Hackborn2010-07-072-3/+25
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | Merge commit '682674154e3fe88f6061245145f934f25f1a2eb8' into gingerbread-plus-aosp * commit '682674154e3fe88f6061245145f934f25f1a2eb8': Add new native Looper API.
| | * | Add new native Looper API.Dianne Hackborn2010-07-022-3/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows us to avoid exposing the file descriptor of the event queue; instead, you attach an event queue to a looper. This will also should allow native apps to be written without the need for a separate thread, by attaching the event queue to the main thread's looper and scheduling their own messages there. Change-Id: I38489282635895ae2cbfacb88599c1b1cad9b239
* | | | am 39c921c6: am 8ae5a8e7: Get to the point of being able to do native drawing.Dianne Hackborn2010-07-011-2/+6
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Merge commit '39c921c6e5316696d8c61d1ee465f9b5f894c4ed' * commit '39c921c6e5316696d8c61d1ee465f9b5f894c4ed': Get to the point of being able to do native drawing.
| * | | am 8ae5a8e7: Get to the point of being able to do native drawing.Dianne Hackborn2010-07-011-2/+6
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | Merge commit '8ae5a8e7c04c7b204b739dfcd5da9e2e0f83e1eb' into gingerbread-plus-aosp * commit '8ae5a8e7c04c7b204b739dfcd5da9e2e0f83e1eb': Get to the point of being able to do native drawing.
| | * | Get to the point of being able to do native drawing.Dianne Hackborn2010-07-011-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | A little cleanup. Change-Id: I37ef0557abf330d91d6fe47e81d062206b3bc346
* | | | am 58f35ff4: am 54a181b1: Make real API for native code to get its window.Dianne Hackborn2010-07-014-29/+94
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Merge commit '58f35ff41601769ca4f357575a9385f16c01b991' * commit '58f35ff41601769ca4f357575a9385f16c01b991': Make real API for native code to get its window.
| * | | am 54a181b1: Make real API for native code to get its window.Dianne Hackborn2010-07-014-29/+94
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | Merge commit '54a181b1a2b1517a9479b21fbf7705a688232faf' into gingerbread-plus-aosp * commit '54a181b1a2b1517a9479b21fbf7705a688232faf': Make real API for native code to get its window.
| | * | Make real API for native code to get its window.Dianne Hackborn2010-07-014-29/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Added implementation to use ANativeWindow and provide it to a NativeActivity. Change-Id: I890d71b6e15d4af71e6cf81b327961d7061ec1c2
* | | | Merge "Don't use full screen FBOs, this dramatically increase performance."Romain Guy2010-07-011-4/+14
|\ \ \ \
| * | | | Don't use full screen FBOs, this dramatically increase performance.Romain Guy2010-07-011-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The next step will be to add an FBO cache to avoid churning memory on every frame we draw. This change also adds support for drawBitmap(Bitmap, Matrix, Paint). Change-Id: I7825cdcf0cad9bffe6219e05d8328a53d4a6e583
* | | | | resolved conflicts for merge of d3233ae9 to masterChristopher Tate2010-07-011-0/+39
|\ \ \ \ \ | |/ / / / |/| / / / | |/ / / Change-Id: I59ecf8f2d3bd253f51457c11ec15f022ac5fdeb6
| * | | am 160edb36: Add ability to guard a thread against setting its own prio to bgChristopher Tate2010-06-301-0/+39
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | Merge commit '160edb3645f8b7012bab70ae6e6e8c4a5733082b' into gingerbread-plus-aosp * commit '160edb3645f8b7012bab70ae6e6e8c4a5733082b': Add ability to guard a thread against setting its own prio to bg
| | * | Add ability to guard a thread against setting its own prio to bgChristopher Tate2010-06-301-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The guard is compiled out by default because it adds overhead to android.os.Process.setPriority(). Change-Id: Ibb2a648c6349b381abb7ae62a358888b04fba871
* | | | Add implementation for drawBitmap(Bitmap, Rect, Rect, Paint)Romain Guy2010-06-301-3/+7
| |_|/ |/| | | | | | | | Change-Id: I10904d2325a5431d15801aebcec1048715678e8c
* | | Merge "Add hooks for drawBitmap()."Romain Guy2010-06-301-47/+74
|\ \ \
| * | | Add hooks for drawBitmap().Romain Guy2010-06-301-47/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I58e962c3a8b2bc75c2605fe369ad3002579d86e0 Add texture cache. Change-Id: I1c0e5581d228869e114438258a1014e33e024ad7
* | | | resolved conflicts for merge of 7f6c6e8f to masterDianne Hackborn2010-06-302-16/+144
|\ \ \ \ | |/ / / |/| / / | |/ / Change-Id: Id9dddb78c51f16ff8c4b60339421c94fde506db2