summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Merge "SharedBufferStack now can grow up to 16 buffers." into krakenMathias Agopian2010-05-123-3/+55
|\
| * SharedBufferStack now can grow up to 16 buffers.Mathias Agopian2010-05-123-3/+55
| | | | | | | | | | | | there is a new resize() api, which currently only allows growing. Change-Id: Ia37b81b73be466d2491ffed7f3a23cd8e113c6fe
* | Merge "ZipUtilsRO rewrite based on Dalvik Zip rewrite" into krakenKenny Root2010-05-122-10/+27
|\ \ | |/ |/|
| * ZipUtilsRO rewrite based on Dalvik Zip rewriteKenny Root2010-05-122-10/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change the way zip archives are handled. This is necessary to deal with very large (~1GB) APK files, for which our current approach of mapping the entire file falls over. We now do the classic scavenger hunt for the End Of Central Directory magic on a buffer of data read from the file, instead of a memory-mapped section. We use what we find to create a map that covers the Central Directory only. If the caller is interested in unpacking the file contents, we have to do an additional file read to discover the size of the Local File Header section so we can skip past it. This is based on Change I745fb15abb in the dalvik tree. Both implementations share a common ancestry, but the cost of unifying them outweighs the benefits of wrapping C calls. Change-Id: Iddacb50fe913917c2845708a530872d65fdbe620
* | Merge "Add incStrong and decStrong methods to ↵Jamie Gennis2010-05-112-0/+27
|\ \ | |/ |/| | | android_native_{window,buffer}_t." into kraken
| * Add incStrong and decStrong methods to android_native_{window,buffer}_t.Jamie Gennis2010-05-102-0/+27
| | | | | | | | | | | | | | | | | | This change adds the methods necessary to use sp<> to handle refcounting android_native_window_t and android_native_buffer_t. The new methods forward the refcounting operations to the corresponding android_native_base_t functions. Change-Id: I7de8e262728e439bc1efdf69374a2a9f6f432ced
* | am ca48c88c: am 8a8658a5: Merge "Make static versions of libutils and ↵Dan Egnor2010-05-061-1/+0
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | libbinder." into froyo Merge commit 'ca48c88c3d5733c4405a2fc4f7d9bb7fbba3d43f' into kraken * commit 'ca48c88c3d5733c4405a2fc4f7d9bb7fbba3d43f': Make static versions of libutils and libbinder.
| * \ am 8a8658a5: Merge "Make static versions of libutils and libbinder." into froyoDan Egnor2010-05-061-1/+0
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | Merge commit '8a8658a5de261c2da72d431940877bd054bc9837' into froyo-plus-aosp * commit '8a8658a5de261c2da72d431940877bd054bc9837': Make static versions of libutils and libbinder.
| | * | Make static versions of libutils and libbinder.Dan Egnor2010-05-061-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix some small static-initialization-order issues (and a static- initializers-missing issue) that result from doing so. The static libraries don't actually get used for anything real at the moment -- they're used for perf tests of bug 2660235. Bug: 2660235 Change-Id: Iee2f38f79cc93b395e8d0a5a144ed92461f5ada0
* | | | am f7896449: merge from open-source masterThe Android Open Source Project2010-05-051-1/+5
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit 'f78964490d8098387d51444c87bf520ad3f674e2' into kraken * commit 'f78964490d8098387d51444c87bf520ad3f674e2': Add new keycodes for the convenience of Japanese IMEs Call register_localized_collators() with the current locale. Fixed deserialization problem in DatePicker. Fix for bug 2467152 files with spaces fail to open. Set alpha value for newly created dim surface. telephony: Fix CID when CID is unknown
| * | | merge from open-source masterThe Android Open Source Project2010-05-051-1/+5
| |\ \ \ | | | | | | | | | | | | | | | Change-Id: Ia9e1f4e049f5870386ea29ddb6e3ef028ea918da
| | * | | Add new keycodes for the convenience of Japanese IMEsmogimo2010-05-051-1/+5
| | | | | | | | | | | | | | | | | | | | Change-Id: Ibd308cef11261147856258595f6ca0137e03e05c
* | | | | Merge "Add support for enqueuing buffers in arbitrary order" into krakenMathias Agopian2010-04-301-1/+3
|\ \ \ \ \ | |_|_|_|/ |/| | | |
| * | | | Add support for enqueuing buffers in arbitrary orderMathias Agopian2010-04-281-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also added a very simple SharedBufferStack unit test. Change-Id: I253dbbe98a53c966b78d22d4d6dd59f8aefc8c40
* | | | | Merge "cleanup. waitForCondition() now uses polymorphsim instead of ↵Mathias Agopian2010-04-292-72/+43
|\ \ \ \ \ | |/ / / / | | | | | | | | | | templtes" into kraken
| * | | | cleanup. waitForCondition() now uses polymorphsim instead of templtesMathias Agopian2010-04-282-72/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the reason for the above change is that waitForCondition() had become large over time, mainly to handle error cases, using inlines to evaluate the condition doesn't buys us much anymore while it increases code size. Change-Id: I2595d850832628954b900ab8bb1796c863447bc7
* | | | | Merge "fix a race condition in undoDequeue(), where 'tail' could be computed ↵Mathias Agopian2010-04-291-2/+2
|\ \ \ \ \ | |/ / / / | | | | | | | | | | incorrectly." into kraken
| * | | | fix a race condition in undoDequeue(), where 'tail' could be computed ↵Mathias Agopian2010-04-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | incorrectly. in the undoDequeue() case, 'tail' was recalculated from 'available' and 'head' however there was a race between this and retireAndLock(), which could cause 'tail' to be recalculated wrongly. the interesting thing though is that retireAndLock() shouldn't have any impact on the value of 'tail', which is client-side only attribute. we fix the race by saving the value of 'tail' before dequeue() and restore it in the case of undoDequeue(), since we know it doesn't depend on retireAndLock(). Change-Id: I4bcc4d16b6bc4dd93717ee739c603040b18295a0
* | | | | New xlarge screen size.Dianne Hackborn2010-04-281-3/+28
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Not complete, only for experimentation at this point. This includes a reworking of how screen size configurations are matched, so that if you are on a larger screen we can select configurations for smaller screens if there aren't any exactly matching the current screen. The screen size at which we switch to xlarge has been arbitrarily chosen; the compatibility behavior has not yet been defined. Change-Id: I1a33b3818eeb51a68fb72397568c39ab040a07f5
* | | | better fix for [2420565] Surface.lockCanvas() updates the dirty region too oftenMathias Agopian2010-04-211-1/+1
| | | | | | | | | | | | | | | | Change-Id: I83438b40effd21538f1c74396dc665254b9d5ab6
* | | | am f021d12f: merge from open-source masterThe Android Open Source Project2010-04-211-7/+10
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | Merge commit 'f021d12f6f7116e9275cd3553a349ce5cb8aab14' into kraken * commit 'f021d12f6f7116e9275cd3553a349ce5cb8aab14': Allow META* macros outside of the framework Fix printing order of phone objects creation
| * | | merge from open-source masterThe Android Open Source Project2010-04-211-7/+10
| |\ \ \ | | |/ / | | | | | | | | Change-Id: I08f1feae65b1dfc3f740d78654c267f2e3ae5e85
| | * | Allow META* macros outside of the frameworkMichael Richardson2010-04-201-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The META* macros are useful outside of the framework for other systems implementing Binder interfaces, but they depend upon the android namespace. This includes the appropriate namespace operations, which should be sane even in that android namespace. Change-Id: If600156c65191f51f487d0ee301d9f9f532b263d
* | | | added setCrop() to android_native_window_tMathias Agopian2010-04-204-14/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | hooked up the new method up to Surface.cpp the actual crop is not implemented in SF yet Change-Id: Ic6e313c98fd880f127a051a0ccc71808bd689751
* | | | add support for up to 16 buffers per surfaceMathias Agopian2010-04-201-8/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | also increase the dirtyregion size from 1 to 6 rectangles. Overall we now need 27KiB process instead of 4KiB Change-Id: Iebda5565015158f49d9ca8dbcf55e6ad04855be3
* | | | am 26f61635: am 0a4ab1b9: Merge "fix [2599939] "cannot play video" after ↵Mathias Agopian2010-04-193-5/+2
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | open/close a video player a dozen of times" into froyo Merge commit '26f6163557980062dbb203388b3d0794ee0d06f7' into kraken * commit '26f6163557980062dbb203388b3d0794ee0d06f7': fix [2599939] "cannot play video" after open/close a video player a dozen of times
| * | | am 0a4ab1b9: Merge "fix [2599939] "cannot play video" after open/close a ↵Mathias Agopian2010-04-193-5/+2
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | video player a dozen of times" into froyo Merge commit '0a4ab1b9b4c7b891c1ecb67eed99e9c9b30c93aa' into froyo-plus-aosp * commit '0a4ab1b9b4c7b891c1ecb67eed99e9c9b30c93aa': fix [2599939] "cannot play video" after open/close a video player a dozen of times
| | * | fix [2599939] "cannot play video" after open/close a video player a dozen of ↵Mathias Agopian2010-04-193-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | times get rid off the MAP_ONCE flag is MemoryHeapBase (as well as it's functionality), this feature should not be used anymore. the software renderer was incorrectly using the default ctor which set MAP_ONCE, causing the leak. the software renderer itself is incorrectly used while coming back from sleep. Change-Id: I123621f8d140550b864f352bbcd8a5729db12b57
* | | | when a zero dimension buffer is allocated, turn the allocation intoMathias Agopian2010-04-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | a 1x1 buffer instead of Nx1 (or 1xN) Change-Id: I27eeb15e83e13002dd9405f4e52b54f7dffc0fe7
* | | | don't hardcode "mSurface" throughout our source codeMathias Agopian2010-04-121-0/+2
|/ / / | | | | | | | | | | | | | | | | | | this is used in a few places to get access to the android.view.Surface native surface. use a macro instead. Also rename the field to mNativeSurface. Change-Id: I1c6dea14abd6b8b1392c7f97b304115999355094
* | | merge from open-source masterThe Android Open Source Project2010-04-081-1/+5
|\ \ \ | |/ / |/| / | |/ Change-Id: I975030d9572463bc69245bcffa25c47d7acb2b51
| * Add keycodes PageUp and PageDownChih-Wei Huang2010-04-021-1/+5
| | | | | | | | | | | | This is useful for applications like web browser. Change-Id: Ie9262d5b75de87ecd0971407a7c3ce9aa6e4998e
* | fix [2545826] calling into gralloc with external lock heldMathias Agopian2010-03-251-1/+0
| | | | | | | | Change-Id: I2d0e017382404c684c768a0dd0423d574213f10a
* | libutils Condition are now PRIVATE by defaultMathias Agopian2010-03-191-1/+18
| | | | | | | | | | | | | | | | | | | | | | Condition must be initialized with SHARED for the old behavior, where they can be used accross processes. Updated the two places android that require SHARED conditions. PRIVATE conditions (and mutexes) use more efficient syscalls. Change-Id: I9a281a4b88206e92ac559c66554e886b9c62db3a
* | Update TTS plugin interface to receive engine configuration dataJean-Michel Trivi2010-03-181-15/+8
| | | | | | | | | | | | coming from the plugin helper code (handling config and preferences). Change-Id: Ibc1d229463f11f8977552d74d1fd2aa6a6cab88e
* | implement connect/disconnect in our native_window_t implementationsMathias Agopian2010-03-111-0/+8
| | | | | | | | | | | | | | | | the framebuffer implementation doesn't do anything special with this but the surfaceflinger implementation makes sure the surface is not used by two APIs simultaneously. Change-Id: Id4ca8ef7093d68846abc2ac814327cc40a64b66b
* | Add a new connect/disconnect API to android_native_window_tMathias Agopian2010-03-111-1/+37
| | | | | | | | | | | | it's used to keep track of which API owns the surface. Change-Id: I1021c5905c020efc3c428e561b38189377168b22
* | Add ability for some manifest attributes to reference resources.Dianne Hackborn2010-03-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | This loosens our restriction on many manifest attributes requiring literal string values, to allow various ones to use values from resources. This is only allowed if the resource value does not change from configuration changes, and the restriction is still in place for attributes that are core to security (requesting permissions) or market operation (used libraries and features etc). Change-Id: I4da02f6a5196cb6a7dbcff9ac25403904c42c2c8
* | Refactor car mode.Dianne Hackborn2010-03-051-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extract all UI behavior from dock observer and ACTION_DOCK_EVENT. Also introduce a desk type to go along with the car type all through the resource system, since we now need to have corresponding high-level broadcasts for desk dock mode. As part of that I also reworked some of the logic for switching modes to all funnel through a single update() call that looks all of the current state to decide what to do next, and fixed various locking issues. In addition I found there were bugs in the configuration change handling causing us to only switch into the car mode config and then never get out of it. Unfortunately now that we are actually changing the configuration for each mode change, the transitions between them are really crummy as we restart all kinds of activities. :(
* | Fix issue #2448075: aapt doesn't fix up activity-alias ↵Dianne Hackborn2010-03-011-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | android:targetActivity links And related: - The aapt tool now sets a resource configurations sdk level to match any configs that have been set (for example if you specify density your sdk level will be at least 4). - New option to modify the targetPackage attribute of instrumentation. - Clean up of aapt options help. - Fix of UI type values to leave 0 for "unspecified". - Make the UI mode config APIs public.
* | Added a name to Surface created by SurfaceFlingerMathias Agopian2010-03-012-0/+12
| | | | | | | | | | Updated the window manager to use this new facility. Surfaces name are now printed by "dumpsys".
* | Use UTF-8 strings to avoid duplicate caching, part 1Kenny Root2010-02-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | StringBlock instances containing UTF-8 strings use a cache to convert into UTF-16, but using that cache and then using a JNI call to NewString causes the UTF-8 string as well as two copies of the UTF-16 string to be held in memory. Getting the UTF-8 string directly from the StringPool eliminates one copy of the UTF-16 string being held in memory. This is part 1. Part 2 will include ResXMLParser optimizations. Change-Id: Ibd4509a485db746d59cd4b9501f544877139276c
* | remove a dependency of GraphicBuffer (libui) on Parcel (libbinder).Mathias Agopian2010-02-213-6/+77
| | | | | | | | | | | | | | | | | | Add a Flattenable interface to libutils which can be used to flatten an object into bytestream + filedescriptor stream. Parcel is modified to handle Flattenable. And GraphicBuffer implements Flattenable. Except for the overlay classes libui is now independent of libbinder.
* | Remove a dependency of Region (libui) on Parcel (libbinder).Mathias Agopian2010-02-171-6/+0
| |
* | fix a bug I introduced recently where YUV formats would crash the systemMathias Agopian2010-02-161-1/+2
| |
* | get rid off the YUV formats at the libui layerMathias Agopian2010-02-161-18/+9
| |
* | Totally remove Unicode.cpp and rely on ICUKenny Root2010-02-121-128/+0
| | | | | | | | | | | | | | Unicode.cpp used a packed data table for character data that essentially duplicated ICU's functionality. Change-Id: Ia68fe4ac94e89dc68d9a3f45f33f6e648a5500b7
* | Excise code from Unicode.cpp that was deadKenny Root2010-02-121-127/+0
| | | | | | | | | | | | | | Remove some utility functions for discovering character data that ICU probably took over a while ago. Change-Id: I97abe4de2f51eb2bf48679941258bc501184c3dc
* | split libsurfaceflinger_client and libcamera_client out of libuiMathias Agopian2010-02-1113-972/+44
| |
* | Introduce special UI modes for night and car usage.Tobias Haamel2010-02-111-16/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The device mode is now called ui mode. Furthermore is the order of precedence for the resources now in such a way that the ui mode needs to be specified after the orientation and before the density. The ui mode can be set, like it is done for the locale, as follows: IActivityManager am = ActivityManagerNative.getDefault(); Configuration config = am.getConfiguration(); config.uiMode = Configuration.UI_MODE_TYPE_CAR | Configuration.UI_MODE_NIGHT_ANY; am.updateConfiguration(config); To allow users to disable the car mode and set the night mode the IUiModeManager interface is used. The automatic night mode switching will be added in a separate change.