67364 Commits

Author SHA1 Message Date
Jeff Brown
877f352b84 am d1c48a05: Dispatch multiple touch events in parallel.
* commit 'd1c48a0525d05021036d4b14e937e221c0ae1318':
  Dispatch multiple touch events in parallel.
2012-02-13 10:34:07 -08:00
Jeff Brown
477f82dc9a am 8b4be560: Delete premature optimization.
* commit '8b4be56030c3b8c93dfa45bccac7365f90f377ce':
  Delete premature optimization.
2012-02-13 10:33:59 -08:00
Jeff Brown
dead32ccc1 am 28b5cf1c: Delete dead code.
* commit '28b5cf1c33df847d667b8974ba07c4157a49b48a':
  Delete dead code.
2012-02-13 10:31:21 -08:00
Jeff Brown
1863d69da8 am 59f1ff99: Delete latency tracking information in the Connection.
* commit '59f1ff99786e9d4a94270d6752aa3ca61e10f0a6':
  Delete latency tracking information in the Connection.
2012-02-13 10:31:19 -08:00
Jeff Brown
9ea6e4d291 am 9831d90d: Remove active connection tracking.
* commit '9831d90db8fba7e967d22b1f86eea1d6ac831541':
  Remove active connection tracking.
2012-02-13 10:31:11 -08:00
Jeff Brown
8eefb07925 am e9bb9be9: Simplify input target handling in the dispatcher.
* commit 'e9bb9be9e46523ed901e38cfa83f4630f6496418':
  Simplify input target handling in the dispatcher.
2012-02-13 10:31:08 -08:00
Jeff Brown
52acea839c am cbee6d6e: Rewrite input transport using sockets.
* commit 'cbee6d6ede0499fb4a2c00bfc00d5db8d9ed5139':
  Rewrite input transport using sockets.
2012-02-13 10:31:06 -08:00
Jeff Brown
efa35663ec am 3241b6b7: Remove batching and streaming from the input dispatcher.
* commit '3241b6b7bd7eff64f0118ba2d636030e505a98f9':
  Remove batching and streaming from the input dispatcher.
2012-02-13 10:31:03 -08:00
Jeff Brown
4ea576477f am d4762334: Merge "Process input events immediately when received."
* commit 'd4762334f103055b3aa59d97d027ace7c5950b6e':
  Process input events immediately when received.
2012-02-13 10:28:49 -08:00
Jeff Brown
485e4ae32c am 62d1058c: Merge "Remove the input dispatcher throttle."
* commit '62d1058cc972a8fcb7739547abd3298f5d98a9b1':
  Remove the input dispatcher throttle.
2012-02-13 10:28:47 -08:00
Jeff Brown
d1c48a0525 Dispatch multiple touch events in parallel.
This change enables the input dispatcher to send multiple touch
events to an application without waiting for them to be acknowledged.
Essentially this is a variation on the old streaming optimization
but it is much more comprehensive.  Event dispatch will stall as
soon as 0.5sec of unacknowledged events are accumulated or a
focused event (such as a key event) needs to be delivered.

Streaming input events makes a tremendous difference in application
performance.  The next step will be to enable batching of input
events on the client side once again.

This is part of a series of changes to improve input system pipelining.

Bug: 5963420
Change-Id: I025df90c06165d719fcca7f63eed322a5cce4a78
2012-02-13 10:28:41 -08:00
Jeff Brown
8b4be56030 Delete premature optimization.
This is part of a series of changes to improve input system pipelining.

Bug: 5963420

Change-Id: I5c182f6e17d468bf3033125b2094b2baa5b94e81
2012-02-13 10:28:41 -08:00
Jeff Brown
28b5cf1c33 Delete dead code.
This is part of a series of changes to improve input system pipelining.

Bug: 5963420

Change-Id: I9f8b93f6a25ddd872f993366b57bab404c93bede
2012-02-13 10:28:40 -08:00
Jeff Brown
59f1ff9978 Delete latency tracking information in the Connection.
The information gathered here will no longer be valid once we
start dispatching multiple events at a time to the same connection.
Moreover, we are more concerned with end-to-end latency, which we
can measure with sufficiently high accuracy in other ways.

This is part of a series of changes to improve input system pipelining.

Bug: 5963420

Change-Id: I49a0c9876b64af56b40e96e0d98c45f325da2a73
2012-02-13 10:28:40 -08:00
Jeff Brown
9831d90db8 Remove active connection tracking.
The dispatcher no longer needs to track which connections are
active except perhaps for diagnostic purposes, so we might as well
remove this code.

This is part of a series of changes to improve input system pipelining.

Bug: 5963420

Change-Id: Ibadc830b7b792a59b9244d0a6e85f320c4947109
2012-02-13 10:28:40 -08:00
Jeff Brown
e9bb9be9e4 Simplify input target handling in the dispatcher.
Since we no longer stream events to the application, we don't need to
keep the current list of input targets around longer than it takes
to begin the dispatch cycle.

This is part of a series of changes to improve input system pipelining.

Bug: 5963420

Change-Id: I5824b04e564c8a4dec991598292441e46c331905
2012-02-13 10:28:40 -08:00
Jeff Brown
cbee6d6ede Rewrite input transport using sockets.
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
2012-02-13 10:28:40 -08:00
Jeff Brown
3241b6b7bd Remove batching and streaming from the input dispatcher.
Don't worry, these features will be moving to a different part of
the pipeline.  We're just getting them out of the way for now so
we can make deeper changes to how the input dispatcher works.

This is part of a series of changes to improve input system pipelining.

Bug: 5963420

Change-Id: If97de923c8165776882eef23f5204cc448dad0fc
2012-02-13 10:28:39 -08:00
Jeff Brown
d4762334f1 Merge "Process input events immediately when received." 2012-02-13 10:26:40 -08:00
Jeff Brown
62d1058cc9 Merge "Remove the input dispatcher throttle." 2012-02-13 10:26:33 -08:00
Marc Blank
20fde39b92 am 5a1f6fb4: Merge "Use ' for apostrophe in HTML encoding"
* commit '5a1f6fb4073ee4b27359faa950808a6eeac33a4c':
  Use ' for apostrophe in HTML encoding
2012-02-13 10:21:58 -08:00
Marc Blank
5a1f6fb407 Merge "Use ' for apostrophe in HTML encoding" 2012-02-13 10:20:38 -08:00
Marc Blank
f4832da16a Use ' for apostrophe in HTML encoding
* We were using ' which is not correct

Change-Id: I4872da7d5e19f18ecd570dbcaac295020d66681c
2012-02-13 10:11:50 -08:00
Mike Lockwood
98007ef5a3 am f96901f8: Merge "Add support for non-linear ramping of master volume adjustment"
* commit 'f96901f8ccf7e5bdb05bb22ca1b522c381f05043':
  Add support for non-linear ramping of master volume adjustment
2012-02-10 21:58:01 -08:00
Mike Lockwood
f96901f8cc Merge "Add support for non-linear ramping of master volume adjustment" 2012-02-10 21:55:52 -08:00
James Dong
f91dc7dd96 am 8fdaf785: Merge "Change the signature of method addTextSource() in AwesomePlayer"
* commit '8fdaf785e2624f355c525c1370fe0837969e5072':
  Change the signature of method addTextSource() in AwesomePlayer
2012-02-10 17:59:22 -08:00
James Dong
8fdaf785e2 Merge "Change the signature of method addTextSource() in AwesomePlayer" 2012-02-10 17:57:16 -08:00
Wink Saville
cbf1b9725c am e4e04945: am 5caed1d9: am f11b6fbf: am 197fe269: Merge "Add OEM specific USB mode enumeration based on ro.bootmode property" into ics-mr1
* commit 'e4e04945e73ac06f7b39e07b9ba1d71339a2db49':
2012-02-10 17:03:21 -08:00
Wink Saville
e4e04945e7 am 5caed1d9: am f11b6fbf: am 197fe269: Merge "Add OEM specific USB mode enumeration based on ro.bootmode property" into ics-mr1
* commit '5caed1d99b99a011501c532fbf970324ea82e13d':
2012-02-10 17:00:51 -08:00
Wink Saville
0819b191a0 am 92881551: Merge "resolved conflicts for merge of e8b57fea to master"
* commit '928815515481551c8318d5decc7009f00b82a511':
  Add OEM specific USB mode enumeration based on ro.bootmode property
2012-02-10 16:59:06 -08:00
Wink Saville
9288155154 Merge "resolved conflicts for merge of e8b57fea to master" 2012-02-10 16:57:39 -08:00
Wink Saville
41b564f354 resolved conflicts for merge of e8b57fea to master
Change-Id: I2ccf2b4cb73faadd0c8608cc21dda5db888d2937
2012-02-10 16:11:18 -08:00
Mike Lockwood
9760647dd0 Add support for non-linear ramping of master volume adjustment
Bug: 5472584

Change-Id: I1227007d1563eca739fb78b6d9595febc04a3f03
Signed-off-by: Mike Lockwood <lockwood@google.com>
2012-02-10 15:58:07 -08:00
Glenn Kasten
ead488d82f am ad8d175b: mAudioHwDevs and related cleanup
* commit 'ad8d175b405373b9614ad4278f274eae706df588':
  mAudioHwDevs and related cleanup
2012-02-10 15:39:17 -08:00
Glenn Kasten
ad8d175b40 mAudioHwDevs and related cleanup
Inline AudioFlinger::initCheck and remove unnecessary lock.

Remove redundant check of mAudioHwDevs.size().

No need to lock mHardwareLock for each device separately
during initialization.

Use size_t not int to loop through Vector, since size() returns size_t.

Add missing hardware lock for get_mic_mute() and get_input_buffer_size().

Add comments.

Change-Id: Iafae78ef78bbf65f703d99fcc27c2f4ff221aedc
2012-02-10 15:36:46 -08:00
Glenn Kasten
e6f55c3d73 am da639f54: Merge "Simplify ThreadBase::exit() aka requestExitAndWait"
* commit 'da639f54382d9342793a05aec59f179dd172bd57':
  Simplify ThreadBase::exit() aka requestExitAndWait
2012-02-10 15:34:02 -08:00
Glenn Kasten
a69ab5ac9f am 6f5f9ce7: Merge "Disable HQ resamplers for now until qualified"
* commit '6f5f9ce713b3ea58cbc71f3f4b02c2b694ce9dec':
  Disable HQ resamplers for now until qualified
2012-02-10 15:33:59 -08:00
Glenn Kasten
9df62e2802 am d335c1cc: Merge "Move header declarations around for clarity"
* commit 'd335c1cc4f9980d3fe2600876bd068ee5cb0002e':
  Move header declarations around for clarity
2012-02-10 15:33:57 -08:00
Glenn Kasten
17f7228eeb am 3ebf95bb: Merge "Camel case readability & private disconnect(bool)"
* commit '3ebf95bb52c94d641fe8e49a7767dc73b1695ac7':
  Camel case readability & private disconnect(bool)
2012-02-10 15:33:55 -08:00
Glenn Kasten
8e270e13f9 am 2a67e1a6: Merge "Remove aliasing"
* commit '2a67e1a6c037ea170958da754a1c8a5d4375ac06':
  Remove aliasing
2012-02-10 15:33:52 -08:00
Glenn Kasten
f898f78928 am 5bb3090a: Merge "Use mul from audioutils"
* commit '5bb3090a18ce7d5b8910b8394516efc5fba7b817':
  Use mul from audioutils
2012-02-10 15:33:49 -08:00
Glenn Kasten
79740b3039 am 52ee6350: Merge "Mark fields const if only set in constructor"
* commit '52ee6350390ccbe000b9bf8c2637a968d7951c33':
  Mark fields const if only set in constructor
2012-02-10 15:33:47 -08:00
Glenn Kasten
da639f5438 Merge "Simplify ThreadBase::exit() aka requestExitAndWait" 2012-02-10 15:32:16 -08:00
Glenn Kasten
6f5f9ce713 Merge "Disable HQ resamplers for now until qualified" 2012-02-10 15:31:54 -08:00
Glenn Kasten
d335c1cc4f Merge "Move header declarations around for clarity" 2012-02-10 15:31:07 -08:00
Mike Lockwood
516da34092 am c199e2c7: Merge changes Iefeba018,I1ce5b26d,Ie3f59793,Id3c5e1ec,I9063154a,Ib7bd88a3,I20963df8,I01060b08,I7dc29739,I5c55a051,Ia07aa3c4,I3194ea94,I0dc37cce,Ic3a7bb65,I0a7eaecf,Ifa7b0614,Ice952c8e,Ia5abdb9e,Ifcb310f9,If5f4ec97,I4767690f,I79824179,I6e0f981e,Id60ae7f6
* commit 'c199e2c7e0f8895273fdd912c5c88495a8b30e35': (24 commits)
  EthernetDataTracker: Don't run DHCP or set network available until link is up
  Only send master volume or mute updates if the settings have changed
  Make AudioManager.adjustMasterVolume public and hidden
  Allow disabling network stats support in a resource overlay
  Restore persisted master volume if the media server restarts
  Don't allow changing master volume when muted
  Show the flags in package manager debugging.
  Modified the constructor of EndpointBase
  Add a getEndpointInfo accessor to AIDL-generated RPC proxy classes
  Defer persisting master data to avoid excessive database writes
  Add an option that disables the AUDIO_BECOMING_NOISY intent send when a headset is hotplugged.
  Remove reference counting and client death notification for master mute
  AudioService: Send broadcasts when master volume and mute state change
  Use the new get/putFlattenable methods on RpcData.
  Don't try to unmarshal void return types when there are out parameters being returned.
  AudioManager: Add wrapper methods for master volume support
  AudioManager: Add support for master mute
  NetworkTimeUpdateService: Schedule NTP on ethernet connect as well as wifi
  For events, require that the parameters be marked in.
  PhoneWindowManager: stifle warning that ITelephony service does not exist
  ...
2012-02-10 15:30:58 -08:00
Svetoslav Ganov
01fdbf5c88 am 0ee0969f: Merge "UI automation service disconnected upon package change."
* commit '0ee0969ffb92d40c290c9da9bfc6f2cd5b1ba3aa':
  UI automation service disconnected upon package change.
2012-02-10 15:30:52 -08:00
Alex Sakhartchouk
ff3de0e5d9 am 87a36a3b: Merge "Making shader compilation errors throw a Java exception."
* commit '87a36a3b291e78a612d2d08c14b245ff970080e0':
  Making shader compilation errors throw a Java exception.
2012-02-10 15:30:48 -08:00
Amith Yamasani
aa21b7c1bc am f0451db4: Merge "Multi-user - wallpaper service"
* commit 'f0451db4224e2b6360efa39cd65c88cd391f14e0':
  Multi-user - wallpaper service
2012-02-10 15:30:45 -08:00
James Dong
c209047bf6 am 385f1caf: Merge "Move away from MediaDebug and use ADebug instead"
* commit '385f1cafa6e55d2f4b8846746fe7fe4e8755aedd':
  Move away from MediaDebug and use ADebug instead
2012-02-10 15:30:39 -08:00