Commit Graph

53058 Commits

Author SHA1 Message Date
Prashant Malani ac72bbf4e4 inputflinger: Initial support for rotary encoders.
This change introduces support for rotary encoder input devices.

We also define a new input source (namely, AINPUT_SOURCE_ROTARY_ENCODER)
and a new axis of input (namely, AXIS_SCROLL), since the rotary encoder
motion doesn't necessarily tie to a horizontal or vertical scroll
motion.

A ROTARY_ENCODER input device class is also introduced, corresponding to
the new input source.

A new input source can be defined as producing rotary encoder motion
events, if its corresponding .idc file contains the following
declaration:

    device.type = rotaryEncoder

Bug: 18707397

Change-Id: I8ccd540908311d1ff44fdfeba81b691895413641
Signed-off-by: Prashant Malani <pmalani@google.com>
2015-09-14 13:55:21 -07:00
Aravind Akella 4baa69ddd2 am 8f35ca97: SensorManager fixes.
* commit '8f35ca973063e1449c5ec40b618393187a47ec58':
  SensorManager fixes.
2015-08-25 19:06:52 +00:00
Aravind Akella 8f35ca9730 SensorManager fixes.
i) Use pingBinder() to check the status of sensorservice everytime an
   event_queue is created. Retry to establish the binder connection if
   SensorService has recovered from a runtime restart.
ii) LOG_ALWAYS_FATAL_IF getService(SensorService) returns NULL or malloc
    returns NULL.

Bug: 22634472
Change-Id: I4e3912839b6f4114be1a124510878774dbd576a4
2015-08-25 11:24:02 -07:00
Mark Salyzyn df1bc67019 resolved conflicts for merge of d213f5e7 to cw-e-dev
Change-Id: Iaea0fdd483b4d0988df442f9b291b99943009829
2015-08-11 16:27:05 -07:00
Mark Salyzyn d213f5e7a4 am ecc0763e: dumpstate: add logcat -b all -S
* commit 'ecc0763e6c96c418ea4ee6c993d58d16a58407b3':
  dumpstate: add logcat -b all -S
2015-08-11 23:15:47 +00:00
Mark Salyzyn ecc0763e6c dumpstate: add logcat -b all -S
(cherry pick from commit e3c4df96083231b519dad919fd0ed6624100b368)

- For those that are proud to call themselves logspam police
- Every time someone declares that something is too chatty, or that
  they lost their logs because they were declared too chatty and
  their associated logs were aggresively pruned we generally
  ask them to report the logger statistics to pinpoint what software
  product that is the elephant in the room.
- Every time we want to spawn a new 'stop being so spammy' bug spawned
  off a bugreport collected for another purpose, we *wish* we had the
  logger statistics to help add gravitas to the claim that some piece
  of software is the top, or near the top, polluter.

Bug: 22351810
Change-Id: Ifae33cd21d0ae2917a3b4381502d723725b1701c
2015-08-11 14:56:49 -07:00
Michael Wright 18108fd683 am 1362ec74: Merge commit \'62ec2dd5\' into mm
* commit '1362ec74fc4f1dc223c9c322f8f49c966ba67594':
  DO NOT MERGE Add new media navigation keys.
2015-08-07 18:00:55 +00:00
Michael Wright 1362ec74fc Merge commit '62ec2dd5' into mm
Change-Id: I34801df36735545fc500486209573ed2864a0430
2015-08-07 18:12:20 +01:00
Michael Wright 62ec2dd563 DO NOT MERGE Add new media navigation keys.
Bug: 22059484
Change-Id: I587eb7622555194f18f403da583e3b70656a530e
2015-08-07 14:46:16 +01:00
Dan Stoza 04eeb28825 am 50be1df7: Merge "SF: Track missed frames and optionally drop them" into mnc-dr-dev
* commit '50be1df76e2c84fc3c893ec3d3e51ba427dd3ee6':
  SF: Track missed frames and optionally drop them
2015-08-05 18:55:39 +00:00
Dan Stoza 50be1df76e Merge "SF: Track missed frames and optionally drop them" into mnc-dr-dev 2015-08-05 18:48:10 +00:00
Naveen Leekha 7fa5c04d22 am c14a850f: am ea2afa46: Merge "Fix parsing of extension string" into mnc-dev
* commit 'c14a850f65b2946cad808c0abb8740e800b74ab8':
  Fix parsing of extension string
2015-08-03 14:57:57 +00:00
Naveen Leekha c14a850f65 am ea2afa46: Merge "Fix parsing of extension string" into mnc-dev
* commit 'ea2afa460a2c2ee6c44406c1993e8bbacac838ba':
  Fix parsing of extension string
2015-08-03 14:51:31 +00:00
Naveen Leekha ea2afa460a Merge "Fix parsing of extension string" into mnc-dev 2015-08-03 14:45:11 +00:00
Michael Lentine e2fc6f87be Fix parsing of extension string
Previously the parsing found the next space and then added the the difference
between the current position and space to the set of tokens. This improperly
generated empty strings if there were consecutive spaces or if spaces existed at
the beginning or end of strings. To fix this, the parse is modified to use
simple stringstream parsing.

Bug: 22709246

Change-Id: I9e32c07bbf984eadccdadf1dc34437fa0c46088b
2015-07-31 09:26:58 -07:00
Dan Stoza dca480ff7c am 03d7e301: am d87defaf: SF: Allow present if sideband stream changed
* commit '03d7e301c8beb971df7b560d1f16503ba3d6f440':
  SF: Allow present if sideband stream changed
2015-07-31 15:49:43 +00:00
Dan Stoza 03d7e301c8 am d87defaf: SF: Allow present if sideband stream changed
* commit 'd87defaf486ff4e9c0066754564851cfb7be49ed':
  SF: Allow present if sideband stream changed
2015-07-31 15:44:52 +00:00
Aravind Akella 5ed0df2d13 am e2806cb4: Bug fix in SensorManager.
* commit 'e2806cb4456e3815e979f333ed23ec7df591a9ff':
  Bug fix in SensorManager.
2015-07-30 21:05:51 +00:00
Aravind Akella e2806cb445 Bug fix in SensorManager.
If SensorService hasn't started when SensorManager instance is requested, keep retrying for a
longer duration.

Bug: 22529981
Change-Id: I3c506d962b61347085fc80b2c5832289539d6853
2015-07-30 19:05:21 +00:00
Dan Stoza d87defaf48 SF: Allow present if sideband stream changed
Allows the sideband layer to be passed all the way to HWC instead of
getting blocked by the updated PTS tracking code.

Bug: 22291067
Change-Id: Ic2f20a7528e276fff054e86ca35789c26873b348
2015-07-29 16:15:50 -07:00
Narayan Kamath 14d2548ab7 am 65f1d44c: am a29db50c: Merge "Revert "Bug fix in SensorManager."" into mnc-dev
* commit '65f1d44cd8d96a4555ce6929bb5e2022307738e8':
  Revert "Bug fix in SensorManager."
2015-07-29 10:27:27 +00:00
Narayan Kamath 65f1d44cd8 am a29db50c: Merge "Revert "Bug fix in SensorManager."" into mnc-dev
* commit 'a29db50c448f8d00a544b925544f3dee725f7750':
  Revert "Bug fix in SensorManager."
2015-07-29 10:07:56 +00:00
Narayan Kamath a29db50c44 Merge "Revert "Bug fix in SensorManager."" into mnc-dev 2015-07-29 09:41:23 +00:00
Narayan Kamath 8034fc63a0 Revert "Bug fix in SensorManager."
This reverts commit 869eb2089e.

Change-Id: I4fb865e3b18bbb011fa4e4b4732336930c3a45ae
2015-07-29 09:36:05 +00:00
Aravind Akella b04e02b9f7 am 3a77d009: am 2376bd68: Merge "Bug fix in SensorManager." into mnc-dev
* commit '3a77d009273731eeeb6782f0eee6458c46f30208':
  Bug fix in SensorManager.
2015-07-29 01:01:55 +00:00
Aravind Akella 3a77d00927 am 2376bd68: Merge "Bug fix in SensorManager." into mnc-dev
* commit '2376bd6869f4cd835a351322d48d35567eceec4f':
  Bug fix in SensorManager.
2015-07-29 00:40:49 +00:00
Aravind Akella 2376bd6869 Merge "Bug fix in SensorManager." into mnc-dev 2015-07-29 00:21:09 +00:00
Aravind Akella 869eb2089e Bug fix in SensorManager.
If SensorService hasn't started when SensorManager instance is requested, keep retrying for a
longer duration.

Bug: 22529981
Change-Id: I4ba6b760608e34d79273aeb39568f0fa72fbaf9d
2015-07-26 11:48:06 -07:00
Sharvil Nanavati 0a4a069a83 Merge "Dump raft logs in bugreports if they exist." into cw-e-dev 2015-07-24 17:44:59 +00:00
Sharvil Nanavati 8d4cb7ffc1 Dump raft logs in bugreports if they exist.
Change-Id: I7773b8b86675d9ebf3f6d158eaaa11e47619800e
2015-07-24 02:01:13 -07:00
Jim Miller 5f87f0b4b7 am 40481a71: am bf7cd01a: Merge "Add FEATURE_FINGERPRINT to PackageManager\'s feature list" into mnc-dev
* commit '40481a7126095606865f6b4c172e1f8d9cbf22f3':
  Add FEATURE_FINGERPRINT to PackageManager's feature list
2015-07-24 03:22:52 +00:00
Chenjie Luo 24c8f4b156 am 177a4166: am 99426810: Merge "Check for the presence of accel and magnetometer sensors before adding AOSP fusion sensors." into mnc-dev
* commit '177a4166252afddbe03a5ed7b2e56b0f9173ef81':
  Check for the presence of accel and magnetometer sensors before adding AOSP fusion sensors.
2015-07-24 03:02:43 +00:00
Jim Miller 40481a7126 am bf7cd01a: Merge "Add FEATURE_FINGERPRINT to PackageManager\'s feature list" into mnc-dev
* commit 'bf7cd01ab0fce5c76364f78e3b9fdba078c197c0':
  Add FEATURE_FINGERPRINT to PackageManager's feature list
2015-07-24 02:53:59 +00:00
Jim Miller bf7cd01ab0 Merge "Add FEATURE_FINGERPRINT to PackageManager's feature list" into mnc-dev 2015-07-24 02:41:02 +00:00
Jim Miller c89cf5f76e Add FEATURE_FINGERPRINT to PackageManager's feature list
Fixes bug 22674557

Change-Id: I2ced132c1cb4f4b5166f9af288dd3e697fdcf92b
2015-07-24 02:39:06 +00:00
Michael Wright 9202e49dc9 am 5ea7ea44: (-s ours) Merge "DO NOT MERGE. Cancel touches as well as pointer gestures." into cw-d-mr1-dev
* commit '5ea7ea44a23d0ab81f24eb290840db10d766b122':
  DO NOT MERGE. Cancel touches as well as pointer gestures.
2015-07-23 19:21:23 +00:00
Dan Stoza 14cd37cf3d SF: Track missed frames and optionally drop them
Adds code to track whether SurfaceFlinger has sent two frames to HWC in
the same vsync window. This can occur if one frame is delayed so far
it slips into the next window or just if one frame takes an abnormal
amount of time. If this occurs, it shows up as FrameMissed in systrace.

Also adds a property debug.sf.drop_missed_frames which, if set, tells
SurfaceFlinger to skip sending a frame to HWC (i.e., calling
prepare/set) when we detect this condition, which can help prevent
backpressure from the HWC implementation.

Bug: 22513558
Change-Id: I2df0d44cec5fd6edba419388d8c90b5710d1a5b6
2015-07-23 11:15:32 -07:00
Michael Wright 5ea7ea44a2 Merge "DO NOT MERGE. Cancel touches as well as pointer gestures." into cw-d-mr1-dev 2015-07-23 16:32:02 +00:00
Chenjie Luo 177a416625 am 99426810: Merge "Check for the presence of accel and magnetometer sensors before adding AOSP fusion sensors." into mnc-dev
* commit '99426810e4828719be84a0f8c186161578512e93':
  Check for the presence of accel and magnetometer sensors before adding AOSP fusion sensors.
2015-07-22 20:23:43 +00:00
Aravind Akella 7429480806 am e6406e35: (-s ours) Check for the presence of accel and magnetometer sensors before adding AOSP fusion sensors. DO NOT MERGE
* commit 'e6406e3589fa490bfa435384d2a3a6ac678e08fd':
  Check for the presence of accel and magnetometer sensors before adding AOSP fusion sensors. DO NOT MERGE
2015-07-22 17:37:51 +00:00
Aravind Akella e6406e3589 Check for the presence of accel and magnetometer sensors before adding AOSP fusion sensors. DO NOT MERGE
Bug: 22502485
Change-Id: I3d9018649302b98004e4e216b2173e8411a08501
(cherry picked from commit f504789dd3)
2015-07-22 06:27:05 +00:00
Chenjie Luo 99426810e4 Merge "Check for the presence of accel and magnetometer sensors before adding AOSP fusion sensors." into mnc-dev 2015-07-22 06:26:27 +00:00
Lajos Molnar b3ca8b29dd am a6364e25: am f892f914: Merge "omx: fix structure sizes to be the same on 32 and 64-bit builds" into mnc-dev
* commit 'a6364e257d6b0be3c94819cd16fffa2d4d7c8150':
  omx: fix structure sizes to be the same on 32 and 64-bit builds
2015-07-21 00:50:04 +00:00
Lajos Molnar a6364e257d am f892f914: Merge "omx: fix structure sizes to be the same on 32 and 64-bit builds" into mnc-dev
* commit 'f892f9141721a3805d18da2db0e1c17f1a99feb0':
  omx: fix structure sizes to be the same on 32 and 64-bit builds
2015-07-21 00:37:21 +00:00
Aravind Akella f504789dd3 Check for the presence of accel and magnetometer sensors before adding AOSP fusion sensors.
Bug: 22502485
Change-Id: I3d9018649302b98004e4e216b2173e8411a08501
2015-07-20 17:32:09 -07:00
Lajos Molnar f892f91417 Merge "omx: fix structure sizes to be the same on 32 and 64-bit builds" into mnc-dev 2015-07-21 00:22:19 +00:00
Lajos Molnar abaaf70129 omx: fix structure sizes to be the same on 32 and 64-bit builds
Bug: 22512621
Change-Id: I2100b8aad0a1cf110936f4a765718ba97f3d8ce7
2015-07-21 00:19:04 +00:00
Jeff Sharkey 24ac7f320f am 9ca52e34: am a2307aef: Only restorecon_data once for all users.
* commit '9ca52e34f742f6b8da936733626c334260c6edc8':
  Only restorecon_data once for all users.
2015-07-21 00:11:39 +00:00
Jeff Sharkey 9ca52e34f7 am a2307aef: Only restorecon_data once for all users.
* commit 'a2307aefd06f1310660ef1d35ce01bcfc72c9633':
  Only restorecon_data once for all users.
2015-07-20 23:56:41 +00:00
Jeff Sharkey a2307aefd0 Only restorecon_data once for all users.
restorecon_data already iterates across all found users internally,
so we don't need to call it for each UID moved.  In fact, this was a
bug that caused data for the owner to be relabeled when moving apps
back to internal storage.

Bug: 21813384
Change-Id: I5ba76d4f30d129365864c8a25b665f344b99a6b4
2015-07-20 16:26:22 -07:00