summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* libgui: have ST::updateTexImage check the GL ctxJamie Gennis2012-03-191-4/+11
| | | | | | | | This change adds a check to SurfaceTexture::updateTexImage to verify that the current GL context is the same as the one that was used for previous updateTexImage calls. Change-Id: If02d2f787bcfdb528046dc9ddf6665f8a90e1bf4
* libgui: add BQ consumer buffer free notificationsJamie Gennis2012-03-192-32/+117
| | | | | | | | | | | | | | | | | | | This change adds a new callback for BufferQueue consumers to be notified when the BufferQueue frees some or all of its buffers. This is needed to retain SurfaceTexture behavior where all buffers would be freed when the producer disconnects. This change also modifies the SurfaceTextureGLToGLTest.EglDestroySurfaceUnrefsBuffers test to catch when the buffers are not freed. The implementation is a little complicated because it needs to avoid circular sp<> references across what will be a binder interface (so wp<> can't be used directly). It also needs to avoid the possibility of locking the BufferQueue and consumer (e.g. SurfaceTexture) mutexes in the wrong order. This change also includes a few additional fixes and test cleanups. Change-Id: I27b77d0af15cb4b135f4b63573f634f5f0da2182
* SurfaceTexture: Fully refactored from BufferQueueDaniel Lam2012-03-133-8/+59
| | | | | | SurfaceTexture and BufferQueue are separate objects. Change-Id: I230bc0ae6f78d0f9b2b5df902f40ab443ed5a055
* Copy one more file to /frameworks/nativeJames Dong2012-03-121-0/+94
| | | | | | o related-to-bug: 6044887 Change-Id: I920c487089eb258ada87603134f2597db6fe14e9
* Merge "Copied some headers from /frameworks/base to /frameworks/native to ↵James Dong2012-03-1212-0/+7122
|\ | | | | | | support PDK effort"
| * Copied some headers from /frameworks/base to /frameworks/native to support ↵James Dong2012-03-1212-0/+7122
| | | | | | | | | | | | | | | | | | PDK effort o added some minor header include changes o related-to-bug: 6044887 Change-Id: Ia8e7ba861c509a4fb688ab2ed1e81151a708861a
* | Merge "Expose the set of enabled tags."Jeff Brown2012-03-121-22/+32
|\ \ | |/ |/|
| * Expose the set of enabled tags.Jeff Brown2012-03-091-22/+32
| | | | | | | | | | | | | | | | | | This is used by the Java trace wrappers to avoid JNI overhead when trace tags are disabled. Also added a new tag for the input subsystem and view hierarchy. Change-Id: Ia04a507e42a37b1d3bbb19859e6c07a92f4fe9aa
* | Move II420ColorConverter.h to /frameworks/native/include/media/editorJames Dong2012-03-121-0/+126
|/ | | | | | o related-to-bug: 6044894 Change-Id: Ib8f5406e32bd6c190d65e4a2e014f73e759d4415
* Instead of hardcoding OMX component names in our code, supportAndreas Huber2012-03-011-2/+2
| | | | | | a config file instead. Change-Id: I5835903ab9f1c4a22ccc605ca99ed966767adf57
* get rid of MemoryHeapPmemMathias Agopian2012-02-271-79/+0
| | | | | | | | | | | MemoryHeapPmem is not used any longer. PMEM is not a supported type of memory by the system anymore. a particular device might use PMEM and need something like MemoryHeapPmem, in this case this should be implemented in device specific code (HAL). This will most likely break older no longer supported targets. Change-Id: I434e4291219950018de8b793b0403bb2d92dd5cc
* move CursorWindow from libbinder to libandroidfwMathias Agopian2012-02-271-193/+0
| | | | Change-Id: I3b304e4f74e0d0ec8b20c57296c62449c9a0f792
* Removed dependecies between BufferQueue and SurfaceTextureDaniel Lam2012-02-272-21/+152
| | | | | | | | | Refactored SurfaceTexture and BufferQueue such that share no protected members. Created an consumer facing interface for BufferQueue in preparation of connecting SurfaceTexture and BufferQueue through a binder. Change-Id: I938e63e085128148c58d0e26c7213b30145c109f
* Merge "libutils: add a system-wide tracing utility"Jamie Gennis2012-02-271-0/+166
|\
| * libutils: add a system-wide tracing utilityJamie Gennis2012-02-261-0/+166
| | | | | | | | | | | | | | This change adds some utility functionality for doing userland tracing into the kernel trace log. Change-Id: Id0a8cee9ea515b1d8765afd1cecf472a88b4b9e8
* | Merge "Revert "Removed dependecies between BufferQueue and SurfaceTexture""Jamie Gennis2012-02-272-152/+21
|\ \
| * | Revert "Removed dependecies between BufferQueue and SurfaceTexture"Daniel Lam2012-02-272-152/+21
| | | | | | | | | This reverts commit a631399f71dbc7659d2f241968f85d337726ae61
* | | fix libgui header locationMathias Agopian2012-02-279-30/+28
| | | | | | | | | | | | Change-Id: Iec71706cdd4f29c6904993648ce873e83ef9cafe
* | | split utils/threads.h into multiple headersMathias Agopian2012-02-277-544/+779
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AndroidDefs.h - C/C++ enums and types Mutex.h - Mutex class declaration Condition.h - Condition class declaration RWLock.h - RWLock class declaration Thread.h - Thread class declaration AndroidThreads.h - low-level thread creation functions threads.h - includes all the above for backward source compatibility Change-Id: Ia2f80c175333b59a41d1720985810bb2346e94cb Note: implementations are still in Threads.cpp
* | | libagl shouldn't export anythingMathias Agopian2012-02-271-640/+0
| | | | | | | | | | | | Change-Id: Ia823dbc56aab2a0b8a6063df4348fe6baac124c6
* | | Merge "Removed dependecies between BufferQueue and SurfaceTexture"Jamie Gennis2012-02-262-21/+152
|\ \ \ | |/ / | | / | |/ |/|
| * Removed dependecies between BufferQueue and SurfaceTextureDaniel Lam2012-02-222-21/+152
| | | | | | | | | | | | | | | | | | Refactored SurfaceTexture and BufferQueue such that share no protected members. Created an consumer facing interface for BufferQueue in preparation of connecting SurfaceTexture and BufferQueue through a binder. Change-Id: Iff55e740e36a7f70c9f7a17ee7a5af38e3d21f0f
* | remove dependency on android_native{s_priv|buffer}.hMathias Agopian2012-02-248-114/+15
| | | | | | | | Change-Id: Ie4b95f7061c240f37c504414259f92d72c4ffc89
* | remove libui dependency on libEGLMathias Agopian2012-02-241-53/+0
| | | | | | | | Change-Id: I1194f04085637d5c384e134967249430cc43b6ee
* | deprecate L_8, LA_88 and RGB_332 in sdkMathias Agopian2012-02-241-7/+6
| | | | | | | | | | | | | | | | | | | | re-add support for pixelformats L_8, LA_88 and RGB_332 in libui for backward compatibility. This may or may not fix 6058926 Bug: 6049685 Change-Id: Ic1b8b4cc994522f7fe664da64c0ef76b98bc6d53
* | am 32916f7a: am fc4215ee: am 2d03a93e: Merge "Xcode 4.3 compatibility checkin"Jean-Baptiste Queru2012-02-231-3/+3
|\ \ | | | | | | | | | | | | * commit '32916f7a22f2abf5c1e7021f44c2337ca172f2e5': Xcode 4.3 compatibility checkin
| * | Xcode 4.3 compatibility checkinAl Sutton2012-02-191-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | The update compiler in Xcode 4.3 (and 4.4) requires lookups into dependant bases of class templates to be qualified. This checkin fixes the issues raised by the compiler by implementing the this-> recommendation from the llvm page at http://clang.llvm.org/compatibility.html#dep_lookup_bases Signed-off-by: Al Sutton <al@funkyandroid.com>
| * | Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF)Steve Block2012-01-191-5/+5
| | | | | | | | | | | | Change-Id: I26f76452ac49e2890b14d133c065493d8df0fb4a
| * | Rename (IF_)LOG() to (IF_)ALOG()Steve Block2012-01-181-2/+2
| | | | | | | | | | | | Change-Id: If49c81a2793182771c6160fbca93905daa6f44c1
* | | remove libui's dependency on libpixelflingerMathias Agopian2012-02-211-10/+2
| | | | | | | | | | | | | | | | | | this also remove support for unused pixelformats. Change-Id: I2c759a6d2daa740f3786ed62095def8047ae933d
* | | frameworks/base refactoring.Mathias Agopian2012-02-1710-3220/+0
| | | | | | | | | | | | | | | | | | step 2: move libutils headers to their new home: androidfw Change-Id: I14624ba23db92a81f2cb929f104386e1fab293ef
* | | frameworks/base refactoring.Mathias Agopian2012-02-178-2071/+0
| |/ |/| | | | | | | | | First step. Move libui includes to their new home: androidfw. Change-Id: Ic042b52fdba72f30edc3cc6339bf30b4c1b99662
* | Merge "Clean up InputChannel file descriptor data type."Jeff Brown2012-02-141-3/+3
|\ \
| * | Clean up InputChannel file descriptor data type.Jeff Brown2012-02-141-3/+3
| | | | | | | | | | | | | | | | | | File descriptors are ints. Change-Id: Ie36733bf36ddfeaa9a09ef6ebd7bd2f1788f5d27
* | | Merge "Refactored query function from SurfaceTexture into BufferQueue"Jamie Gennis2012-02-142-1/+3
|\ \ \
| * | | Refactored query function from SurfaceTexture into BufferQueueDaniel Lam2012-02-092-1/+3
| | | | | | | | | | | | | | | | Change-Id: Id1cb6cc38d01edb4fcfcad867c5a7693bdcc3ab1
* | | | Update commentsGlenn Kasten2012-02-141-1/+1
| |/ / |/| | | | | | | | | | | | | | We no longer put the filename at start of file. Change-Id: Ic435b159a23105681e3d4a6cb1ac097bc853302e
* | | Accurately track the sequence numbers of batched events.Jeff Brown2012-02-131-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of sending finished signals immediately when appending to a batch, record the chain of sequence numbers that were part of the batch and then send finished signals all at once when done. This change helps the dispatcher keep track of the true state of the application and can improve ANR detection slightly. This is part of a series of changes to improve input system pipelining. Bug: 5963420 Change-Id: I463c2221e2aa8fdf1c3d670c18e39e59ab69b0db
* | | Enable deferred input messages to be batched.Jeff Brown2012-02-131-4/+6
| | | | | | | | | | | | | | | | | | | | | This is part of a series of changes to improve input system pipelining. Bug: 5963420 Change-Id: I6874d2128e880a35c6c33890c858cc6ee22af0fd
* | | Implement batching of input events on the consumer side.Jeff Brown2012-02-131-7/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To support this feature, the input dispatcher now allows input events to be acknowledged out-of-order. As a result, the consumer can choose to defer handling an input event from one device (because it is building a big batch) while continuing to handle input events from other devices. The InputEventReceiver now sends a notification when a batch is pending. The ViewRoot handles this notification by scheduling a draw on the next sync. When the draw happens, the InputEventReceiver is instructed to consume all pending batched input events, the input event queue is fully processed (as much as possible), and then the ViewRoot performs traversals as usual. With these changes in place, the input dispatch latency is consistently less than one frame as long as the application itself isn't stalled. Input events are delivered to the application as soon as possible and are handled as soon as possible. In practice, it is no longer possible for an application to build up a huge backlog of touch events. This is part of a series of changes to improve input system pipelining. Bug: 5963420 Change-Id: I42c01117eca78f12d66d49a736c1c122346ccd1d
* | | Rewrite input transport using sockets.Jeff Brown2012-02-131-173/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since we will not longer be modifying events in place, we don't need to use an ashmem region for input. Simplified the code to instead use a socket of type SOCK_SEQPACKET. This is part of a series of changes to improve input system pipelining. Bug: 5963420 Change-Id: I05909075ed8b61b93900913e44c6db84857340d8
* | | Some hardening of isolated processes by restricting access to services.Dianne Hackborn2012-02-092-5/+6
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Services now must explicitly opt in to being accessed by isolated processes. Currently only the activity manager and surface flinger allow this. Activity manager is needed so that we can actually bring up the process; SurfaceFlinger is needed to be able to get the display information for creating the Configuration. The SurfaceFlinger should be safe because the app doesn't have access to the window manager so can't actually get a surface to do anything with. The activity manager now protects most of its entry points against isolated processes. Change-Id: I0dad8cb2c873575c4c7659c3c2a7eda8e98f46b0
* | Merge "Refactored ISurfaceTexture calls from SurfaceTexture into BufferQueue."Jamie Gennis2012-02-092-295/+346
|\ \
| * | Refactored ISurfaceTexture calls from SurfaceTexture into BufferQueue.Daniel Lam2012-02-072-295/+346
| | | | | | | | | | | | Change-Id: I514f6b802f6b49c9ae27bed37bf0b9d23da03c9a
* | | Preliminary support for clipRect(Rect, Op)Romain Guy2012-02-071-0/+14
|/ / | | | | | | | | | | | | This adds basic support for clip regions. It is currently disabled at compile time. Enabling clip regions will require setting up a stencil buffer. Change-Id: I638616a972276e38737f8ac0633692c3845eaa74
* | Merge "Multi-user - 1st major checkin"Amith Yamasani2012-02-031-0/+2
|\ \
| * | Multi-user - 1st major checkinAmith Yamasani2012-02-031-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Switching activity stacks Cache ContentProvider per user Long-press power to switch users (on phone) Added ServiceMap for separating services by user Launch PendingIntents on the correct user's uid Fix task switching from Recents list AppWidgetService is mostly working. Commands added to pm and am to allow creating and switching profiles. Change-Id: I15810e8cfbe50a04bd3323a7ef5a8ff4230870ed
* | | Merge "separate transactions from updates"Mathias Agopian2012-02-021-0/+2
|\ \ \
| * | | separate transactions from updatesMathias Agopian2012-02-011-0/+2
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | with this changes, SF transactions are handled as soon as possible but do not trigger updates. the update is delayed until the next vsync. this allows us to work much better without requiring triple-buffering. Change-Id: I1fa10794d0cf742129f0877698b7b1e1f2ec7401
* | | Merge "Thread::getTid returns pid_t gettid() after run"Glenn Kasten2012-02-021-2/+10
|\ \ \ | |/ / |/| |