summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | 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
* | | | | Merge "Update comments"Glenn Kasten2012-02-147-31/+66
|\ \ \ \ \
| * | | | | Update commentsGlenn Kasten2012-02-147-31/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We no longer put the filename at start of file. Change-Id: Ic435b159a23105681e3d4a6cb1ac097bc853302e
* | | | | | Merge "Remove dead code AudioTrack::getLoop"Glenn Kasten2012-02-141-1/+0
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | Remove dead code AudioTrack::getLoopGlenn Kasten2012-02-081-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I868329c52f31bc20125f068500d8f892b4ec9796
* | | | | | AudioRecord and AudioTrack client tidGlenn Kasten2012-02-143-3/+7
| |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | Inform AudioFlinger of the tid of the callback thread. Change-Id: I670df92dd06749b057238b48ed1094b13aab720b
* | | | | Merge "Playback rate on MediaPlayer"Jean-Michel Trivi2012-02-133-0/+7
|\ \ \ \ \ | |_|_|/ / |/| | | |
| * | | | Playback rate on MediaPlayerJean-Michel Trivi2012-02-133-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for modifying the playback rate of a MediaPlayer by altering the sample rate of its AudioTrack. The playback rate is expressed in permille, where 1000 is the playback at normal speed. Change-Id: I981d060ab32f7bae7a767e82c60c88ae635dceed
* | | | | 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-132-9/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Move away from MediaDebug and use ADebug insteadJames Dong2012-02-101-36/+0
| | | | | | | | | | | | | | | | Change-Id: I963a3b6f79a7292891973cbeeaf3378b38629f08
* | | | 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
* | | | Merge "Enable B frame support in MPEG4Writer"James Dong2012-02-081-1/+1
|\ \ \ \ | |_|/ / |/| | |
| * | | Enable B frame support in MPEG4WriterJames Dong2012-02-071-1/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch allows us to automatically detect whether ctts box is needed in MPEG4Writer. MPEG4Writer uses ctts version 0 (non-negative offset value) store the composition time offset on a needed basis. Currently, the size of the ctts box is not optimized. Optimization will be addressed in a subsequent patch. o also changed the private method retrieveDecodingTime(bool) in OMXCodec to getDecodingTime() o related-to-bug: 4232183 Change-Id: Ic6dc7b25ecd258c2506ca4b9c25156e922456e51
* | | Use audio_io_handle_t consistently instead of intGlenn Kasten2012-02-083-27/+37
| | | | | | | | | | | | | | | | | | | | | | | | Other: - add a comment to nextUniqueId - made ThreadBase::mId const, since it is only assigned in constructor. Change-Id: I4e8b7bec4e45badcde6274d574b8a9aabd046837
* | | Effect UUID inputs passed by pointer are constGlenn Kasten2012-02-083-5/+5
| | | | | | | | | | | | Change-Id: I1f5c338bcb7368e3dd8cd5f804b2e6d9fbe087f8
* | | Merge "Don't double destruct audio_track_cblk_t"Glenn Kasten2012-02-081-0/+1
|\ \ \
| * | | Don't double destruct audio_track_cblk_tGlenn Kasten2012-02-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fortunately audio_track_cblk_t doesn't have a destructor, but for clarity remove the double destruction. Also add warning not to add any virtuals to audio_track_cblk_t. Change-Id: I70ebe1a70460c7002145b2cdf10f9f137396e6f3
* | | | Merge "Remove dead mutex in AudioTrack/AudioRecord thread"Glenn Kasten2012-02-082-2/+0
|\ \ \ \
| * | | | Remove dead mutex in AudioTrack/AudioRecord threadGlenn Kasten2012-02-022-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The client callback threads had mutexes called AudioTrackThread::mLock and ClientRecordThread::mLock. These mutexes were only used by start() and stop(), and were unused by the thread itself. But start() and stop() already have their own protection provided by AudioTrack::mLock and AudioRecord::mLock. So the thread mutexes can be removed. Change-Id: I098406d381645d77fba06a15511e179a327848ef
* | | | | Merge "AudioTrack declare more methods const"Glenn Kasten2012-02-081-7/+7
|\ \ \ \ \
| * | | | | AudioTrack declare more methods constGlenn Kasten2012-02-031-7/+7
| | |/ / / | |/| | | | | | | | | | | | | Change-Id: I4999e984460893961d0d8092cff17f3cf07d7214
* | | | | Merge "Declare more IAudioFlinger methods const"Glenn Kasten2012-02-082-8/+10
|\ \ \ \ \
| * | | | | Declare more IAudioFlinger methods constGlenn Kasten2012-02-032-8/+10
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is just documentation, as C++ method const-ness doesn't mean anything for a binder API. Instead, here const means "no side effects". Change-Id: Iaa9cd2fe477db10ae9a40cac4f79f0faa9b4e5e6
* | | | | Merge "Preliminary support for clipRect(Rect, Op)"Romain Guy2012-02-071-0/+14
|\ \ \ \ \ | |_|_|/ / |/| | | |
| * | | | 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
* | | | | Don't call virtual function in destructor of SurfaceMediaSourceJames Dong2012-02-061-1/+3
|/ / / / | | | | | | | | | | | | Change-Id: I3cbc2b1222335b61c814b5cdcfaefa495148b0ec
* | | | Merge "Don't call virtual functions in the destructor for audio and camera ↵James Dong2012-02-043-6/+5
|\ \ \ \ | | | | | | | | | | | | | | | source classes"
| * | | | Don't call virtual functions in the destructor for audio and camera source ↵James Dong2012-02-023-6/+5
| | |/ / | |/| | | | | | | | | | | | | | | | | | classes Change-Id: Ia74ffc1c0cbd7971697f5e3c476e340ec5c7727a
* | | | Merge "Don't call virtual functions in destructors for the writer classes"James Dong2012-02-034-4/+8
|\ \ \ \
| * | | | Don't call virtual functions in destructors for the writer classesJames Dong2012-02-024-4/+8
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | Have not found any concrete bugs related to these calls yet, but we should avoid calling virtual functions in destructors, regardless. Change-Id: I2d47b79d3fb2d29f418619bee83aa147d232a5d4
* | | | 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 "Use audio_in_acoustics_t consistently"Glenn Kasten2012-02-031-1/+1
|\ \ \
| * | | Use audio_in_acoustics_t consistentlyGlenn Kasten2012-01-271-1/+1
| | | | | | | | | | | | | | | | Change-Id: I0a9dd668fb2e57b1c3ece3190588194974b99062
* | | | Merge "Use ToneGenerator::tone_type consistently"Glenn Kasten2012-02-031-2/+2
|\ \ \ \
| * | | | Use ToneGenerator::tone_type consistentlyGlenn Kasten2012-01-271-2/+2
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | Also remove defaults in startToneCommand(), they're not needed and the default for tone type was nonsense. Change-Id: I70fa8cee4f3dbb8c66ceb3719c8d3d2f447f05b9
* | | | Use NULL not 0 for raw pointersGlenn Kasten2012-02-034-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | Use if (p != NULL) instead of if (ptr) Change-Id: Iaec3413a59ccbf233c98fcd918cc7d70ac5da9fa
* | | | Merge "Make AudioTrack control block volume field private"Glenn Kasten2012-02-031-1/+14
|\ \ \ \
| * | | | Make AudioTrack control block volume field privateGlenn Kasten2012-01-201-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is part of the process of abstracting the control block to make it easier to maintain. Change-Id: Idb8f461e68dab3bcf268159cc0781651c6fb7094
* | | | | 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 "More audio_stream_type_t"Glenn Kasten2012-02-021-1/+1
|\ \ \ \ \
| * | | | | More audio_stream_type_tGlenn Kasten2012-01-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I1260259efe0aa3fc1ef13de69758aaa592e1f815