summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
...
* | 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.
* | Add exposure compensation parameter.Wu-cheng Li2010-02-091-0/+7
| | | | | | | | bug:2375993
* | fix [2133133] Software OpenGL ES Lighting is buggy (GL Gears washed out bug)Mathias Agopian2010-02-031-2/+2
| | | | | | | | | | | | | | | | | | | | A typo caused GL_AMBIENT_AND_DIFFUSE to only set the the ambient color. Fix another typo which caused the viewer position to be wrong for specular highlights. Switch back to eye-space lighting, since there are still some issues with some demos (San Angeles in particular).
* | implement [2396050] Add ETC1 texture support to AGLMathias Agopian2010-02-021-1/+6
| |
* | Add float support for set and get in CameraParameters.Wu-cheng Li2010-01-311-0/+2
| | | | | | | | | | bug:2375989 bug:2375987
* | Add focal length and view angle API.Wu-cheng Li2010-01-301-0/+10
| | | | | | | | bug:2375989,2375987
* | Simplify the MemoryDealer implementationMathias Agopian2010-01-292-208/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | At some point the implementation became complicated because of SurfaceFlinger's special needs, since we are now relying on gralloc we can go back to much simpler MemoryDealer. Removed HeapInterface and AllocatorInterface, since those don't need to be paramterized anymore. Merged SimpleMemory and Allocation. Made SimplisticAllocator non virtual. Removed MemoryDealer flags (READ_ONLY, PAGE_ALIGNED) Removed a lot of unneeded code.
* | Add support for setting camera display orientation.Chih-Chung Chang2010-01-262-10/+1
| |
* | Change key to KEY_SUPPORTED_JPEG_THUMBNAIL_SIZES for consistency.Wu-cheng Li2010-01-251-3/+4
| | | | | | | | bug:2375986
* | Add support for 180/270 degrees rotation.Chih-Chung Chang2010-01-221-1/+4
| |
* | Add an orientation parameter for overlay, so we can do camera preview in ↵Chih-Chung Chang2010-01-211-1/+1
| | | | | | | | portrait mode.
* | Add string resource type inspectionKenny Root2009-12-101-0/+4
| | | | | | | | | | | | | | Allows "aapt dump --values resource" to print out whether a string in a ResStringPool is in UTF-8 or UTF-16 encoding. Change-Id: I6478884a70a3b46fee862dece6cb33454fc34843
* | Merge change I129483f8 into eclair-mr2Android (Google) Code Review2009-12-083-2/+20
|\ \ | | | | | | | | | | | | * changes: Optional use of UTF-8 strings in resource bundles
| * | Optional use of UTF-8 strings in resource bundlesKenny Root2009-12-073-2/+20
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allows the use of UTF-8 for packing resources instead of the default of UTF-16 for Java. When strings are extracted from the ResStringPool, they are converted to UTF-16 and the result is cached for subsequent calls. When using aapt to package, add in the "-8" switch to pack the resources using UTF-8. This will result in the value, key, and type strings as well as the compiled XML string values taking significantly less space in the final application package in most scenarios. Change-Id: I129483f8b3d3b1c5869dced05cb525e494a6c83a
* | Propagate background scheduling class across processes.Dianne Hackborn2009-12-073-2/+28
|/ | | | | | | | | | | This is a very simply implementation: upon receiving an IPC, if the handling thread is at a background priority (the driver will have taken care of propagating this from the calling thread), then stick it in to the background scheduling group. Plus an API to turn this off for the process, which is used by the system process. This also pulls some of the code for managing scheduling classes out of the Process JNI wrappers and in to some convenience methods in thread.h.
* fix some aspects of [2258746] native crash in launcher2Mathias Agopian2009-11-131-2/+2
| | | | | | Surface::validate() could sometimes dereference a null pointer before checking it wasn't null. This will prevent the application to crash when given bad parameters or used incorrectly. However, the bug above probably has another cause.
* Merge change I36d0184e into eclairAndroid (Google) Code Review2009-11-022-1/+5
|\ | | | | | | | | * changes: fix[2228133] pixelflinger ignores the "vertical stride" leading to artifacts when playing back video
| * fix[2228133] pixelflinger ignores the "vertical stride" leading to artifacts ↵Mathias Agopian2009-11-022-1/+5
| | | | | | | | | | | | | | | | when playing back video we lost the concept of vertical stride when moving video playback to EGLImage. Here we bring it back in a somewhat hacky-way that will work only for the softgl/mdp backend.
* | Merge change Ibaef6141 into eclairAndroid (Google) Code Review2009-11-021-1/+2
|\ \ | |/ |/| | | | | * changes: libbinder: add a NO_CACHING flag to MemoryHeapBase
| * libbinder: add a NO_CACHING flag to MemoryHeapBaseIliyan Malchev2009-10-301-1/+2
| | | | | | | | | | | | The NO_CACHING flag translates to opening a memory region with O_SYNC. Signed-off-by: Iliyan Malchev <malchev@google.com>
* | Fix issue #2226370: Resource versions match with equalityDianne Hackborn2009-11-011-2/+2
|/ | | | | | Also fixed turned-around increment of version number for resources. :( Change-Id: I604137272da984bcd69cee4f174e6b7f2c786e46
* Use image rect information to display zoomed picture.Wu-cheng Li2009-10-291-0/+9
|
* fix [2143798] Need to figure out how to do videoMathias Agopian2009-10-271-2/+12
| | | | | | | | | Use EGLImageKHR instead of copybit directly. We now have the basis to use streaming YUV textures (well, in fact we already are). When/if we use the GPU instead of the MDP we'll need to make sure it supports the appropriate YUV format. Also make sure we compile if EGL_ANDROID_image_native_buffer is not supported
* fix [2182249] [MR1] valgrind error in surface flingerMathias Agopian2009-10-151-6/+9
|
* fix [2170319] gmail bulk operation checkbox latency on passionMathias Agopian2009-10-073-49/+2
| | | | | | | | | | | | | | | This also fixes [2152536] ANR in browser When SF is enqueuing buffers faster than SF dequeues them. The update flag in SF is not counted and under some situations SF will only dequeue the first buffer. The state at this point is not technically corrupted, it's valid, but just delayed by one buffer. In the case of the Browser ANR, because the last enqueued buffer was delayed the resizing of the current buffer couldn't happen. The system would always fall back onto its feet if anything -else- in tried to draw, because the "late" buffer would be picked up then.
* fix [2152536] ANR in browserMathias Agopian2009-10-061-7/+13
| | | | | | | | | | | | | | | | A window is created and the browser is about to render into it the very first time, at that point it does an IPC to SF to request a new buffer. Meanwhile, the window manager removes that window from the list and the shared memory block it uses is marked as invalid. However, at that point, another window is created and is given the same index (that just go freed), but a different identity and resets the "invalid" bit in the shared block. When we go back to the buffer allocation code, we're stuck because the surface we're allocating for is gone and we don't detect it's invalid because the invalid bit has been reset. It is not sufficient to check for the invalid bit, I should also check that identities match.
* fix [2168531] have software-only gralloc buffer side-step the HALMathias Agopian2009-10-061-0/+83
|
* fix [2167050] glTexImage2D code path buggy in SurfaceFlingerMathias Agopian2009-10-068-141/+297
| | | | | | | | | | | | | | When EGLImage extension is not available, SurfaceFlinger will fallback to using glTexImage2D and glTexSubImage2D instead, which requires 50% more memory and an extra copy. However this code path has never been exercised and had some bugs which this patch fix. Mainly the scale factor wasn't computed right when falling back on glDrawElements. We also fallback to this mode of operation if a buffer doesn't have the adequate usage bits for EGLImage usage. This changes only code that is currently not executed. Some refactoring was needed to keep the change clean. This doesn't change anything functionaly.
* Add zoom functions and sendCommand.Wu-cheng Li2009-10-063-2/+19
| | | | b2060030
* Attempt to fix [2152536] ANR in browserMathias Agopian2009-10-021-7/+9
| | | | | | | | | | | The ANR is caused by SurfaceFlinger waiting for buffers of a removed surface to become availlable. When it is removed from the current list, a Surface is marked as NO_INIT, which causes SF to return immediately in the above case. For some reason, the surface here wasn't marked as NO_INIT. This change makes the code more robust by always (irregadless or errors) setting the NO_INIT status in all code paths where a surface is removed from the list. Additionaly added more information in the logs, should this happen again.
* Change FLASH_MODE_VIDEO_LIGHT to FLASH_MODE_TORCH.Wu-cheng Li2009-09-281-5/+7
|
* Add camera parameter key constants and documentation.Wu-cheng Li2009-09-251-1/+193
|
* fix [2132563] stuck in boot animation (framebuffer_device_open: Failed to ↵Mathias Agopian2009-09-231-0/+4
| | | | create flip chain)
* Android side of the fix for [2121211] Sholes has stutter during animationsMathias Agopian2009-09-171-0/+1
| | | | a new method, compostionComplete() is added to the framebuffer hal, it is used by surfaceflinger to signal the driver that the composition is complete, BEFORE it releases its client. This gives a chance to the driver to
* add basic time stats for surfaces lock timeMathias Agopian2009-09-171-8/+20
|