Commit graph

2991 commits

Author SHA1 Message Date
Nick Vaccaro
c1ded2afef Sensors: MultiHal: support sensor API version 1.4
Add ability to support HALs with an API version of
SENSORS_DEVICE_API_VERSION_1_4.

Bug: 32113642
Change-Id: If61ff54faa9aefc959102a097df60e75a230cae3
2016-10-14 10:31:56 -07:00
Tucker Sylvestro
28a872eb79 Treat all tags as unsigned when comparing them
All tags are presumed to be unsigned, but some of them have signed
representations that are negative.  This caused problems in
AuthorizationSet.Deduplicate, where TAG_APPLICATION_DATA (signed rep
of -1879047492) was being sorted before TAG_INVALID (0), which was
presumed to always be first in the list.

BUG: 30701680
Change-Id: I67047cee21fd7617248022a4674779fe80d5ddfd
2016-10-05 14:39:39 -04:00
Eric Laurent
5982d8f27f audio effect: add flag for effects without actual processing
am: 4725741d0e

Change-Id: I74e8ca3a0670bb49ec69813a2f5bf91994c61515
2016-09-16 16:34:17 +00:00
Eric Laurent
4725741d0e audio effect: add flag for effects without actual processing
Add a flag for effect descriptor indicating that the effect does not
implement a process function. This tells the framework that no
latency or performance penalty comes with enabling this effect.
When this flag is set, the process function does not have to be implemented
by the effect implementation.

Bug: 31491112
Change-Id: I69e6959eb17e04266f4de3f2943c226e34868b1f
2016-09-15 11:52:22 -07:00
Nick Vaccaro
59d9fb4f88 Sensors: MultiHal: ignore errors from poll calls
MultiHal was not properly fielding errors from the poll() calls of
sub-HALs.  Propagating errors received from sub-HALs up to Sensor
Services causes Sensor Services to abort, so instead of propagating
the error up to Sensor Services, the MultiHal logs a message to
logcat to fix the sub-HAL problem.

Bug: 30060537
Change-Id: I6e20c193a2f2d228da48cf3d5a23e439eaf663df
2016-08-05 21:04:24 -07:00
Nick Vaccaro
890a976bb9 Merge \\\"DO NOT MERGE ANYWHERE Sensors: MultiHal: ignore errors from poll calls\\\" into cw-e-dev am: f7eed1ea07 -s ours am: df20006a10 -s ours
am: 2537c546f3  -s ours

Change-Id: I135fc8f84e358a0af581a8b10632035372c5450d
2016-07-20 00:37:41 +00:00
Nick Vaccaro
2537c546f3 Merge \\"DO NOT MERGE ANYWHERE Sensors: MultiHal: ignore errors from poll calls\\" into cw-e-dev am: f7eed1ea07 -s ours
am: df20006a10  -s ours

Change-Id: I2e73c8d4a4fd201a4e8ec1040b229440a4b365c9
2016-07-20 00:35:07 +00:00
Nick Vaccaro
df20006a10 Merge \"DO NOT MERGE ANYWHERE Sensors: MultiHal: ignore errors from poll calls\" into cw-e-dev
am: f7eed1ea07  -s ours

Change-Id: I48415c2c6aed8f18212b239469a9c66894f753af
2016-07-20 00:32:34 +00:00
Nick Vaccaro
f7eed1ea07 Merge "DO NOT MERGE ANYWHERE Sensors: MultiHal: ignore errors from poll calls" into cw-e-dev 2016-07-19 23:55:21 +00:00
Nick Vaccaro
877af59f24 DO NOT MERGE ANYWHERE Sensors: MultiHal: ignore errors from poll calls
MultiHal was not properly fielding errors from the poll() calls of
sub-HALs.  Propagating errors received from sub-HALs up to Sensor
Services causes Sensor Services to abort, so instead of propagating
the error up to Sensor Services, the MultiHal logs a message to
logcat to fix the sub-HAL problem.

Bug: 30060537
Change-Id: I6e20c193a2f2d228da48cf3d5a23e439eaf663df
2016-07-19 16:43:21 -07:00
Chenjie Luo
3653956398 Merge "power: Adds POWER_HINT_DISABLE_TOUCH" into nyc-mr1-dev 2016-07-19 16:34:51 +00:00
Chenjie Luo
29716dcc6b DO NOT MERGE ANYWHERE power: Adds POWER_HINT_DISABLE_TOUCH am: 2df182d7b1 -s ours am: 3e8005b289 -s ours
am: daddf59fe6  -s ours

Change-Id: I9a49c02e5f6992425e7b41a3f4381a31c5f1f910
2016-07-18 23:45:23 +00:00
Wei Wang
1417c5bb1c DO NOT MERGE ANYWHERE Add new power hints for launch activity am: a2aa3f358f -s ours am: 145907b2f5 -s ours
am: 45d1d74210  -s ours

Change-Id: I4689365f8c48e94160bc6c74ab1ff86a6f81e8c4
2016-07-18 23:45:23 +00:00
Chenjie Luo
daddf59fe6 DO NOT MERGE ANYWHERE power: Adds POWER_HINT_DISABLE_TOUCH am: 2df182d7b1 -s ours
am: 3e8005b289  -s ours

Change-Id: Ie308c154a314faf32ca21f6913053753549a6f29
2016-07-18 23:42:58 +00:00
Wei Wang
45d1d74210 DO NOT MERGE ANYWHERE Add new power hints for launch activity am: a2aa3f358f -s ours
am: 145907b2f5  -s ours

Change-Id: Iffa33cd078e302c60ed8d9d5e2ab082058122761
2016-07-18 23:42:58 +00:00
Chenjie Luo
3e8005b289 DO NOT MERGE ANYWHERE power: Adds POWER_HINT_DISABLE_TOUCH
am: 2df182d7b1  -s ours

Change-Id: I2e8f3feb242c8abf1410c49cc218becd4caf2e6a
2016-07-18 23:40:20 +00:00
Wei Wang
145907b2f5 DO NOT MERGE ANYWHERE Add new power hints for launch activity
am: a2aa3f358f  -s ours

Change-Id: I1cde82735cc43082f63e2ae901afb6faeec1c92e
2016-07-18 23:40:19 +00:00
Chenjie Luo
fc40b05ae1 power: Adds POWER_HINT_DISABLE_TOUCH
POWER_HINT_DISABLE_TOUCH is used to hint power hal that device is
in a state that touch controller could be disabled to save power.

Bug: 30143923
Change-Id: I56c588e62afadffdb367b6e2c3115cffef51bb45
(cherry picked from commit 90db35122d)
2016-07-18 23:23:54 +00:00
Chenjie Luo
2df182d7b1 DO NOT MERGE ANYWHERE power: Adds POWER_HINT_DISABLE_TOUCH
POWER_HINT_DISABLE_TOUCH is used to hint power hal that device is
in a state that touch controller could be disabled to save power.

Bug: 30143923
Change-Id: I56c588e62afadffdb367b6e2c3115cffef51bb45
(cherry picked from commit 90db35122d)
2016-07-18 16:16:45 -07:00
Wei Wang
a2aa3f358f DO NOT MERGE ANYWHERE Add new power hints for launch activity
BUG: 28220567
Change-Id: I6da77240cdca5caa2e8504c36e83287954fd6ffc
(cherry picked from commit a787ab79e5)
2016-07-18 23:01:32 +00:00
Andy Hung
4d2023e33a Merge "Improve stub hal read and write timing" into nyc-mr1-dev 2016-07-15 05:06:15 +00:00
Dan Stoza
e87229e267 HWC2: Add SKIP_CLIENT_COLOR_TRANSFORM capability
Adds HWC2_CAPABILITY_SKIP_CLIENT_COLOR_TRANSFORM, which indicates
that the client should never apply the color transform, even if all
layers are being composed by the client. This allows the device to
use its color management hardware in all cases to avoid any potential
mismatches between client and device application of the transform.

Bug: 29870302
Change-Id: I90234d91858206714e650eadb03227a4a180d975
2016-07-14 12:08:13 -07:00
Dan Stoza
814421ec1d HWC2: Redefine retire fence as present fence
Redefines the retire fence returned by presentDisplay to be a present
fence with more strictly defined semantics: this fence should fire
at the vsync when the frame is picked up by hardware, either for
scanout (in the case of video-mode panels) or for transfer to panel
memory (in the case of command-mode panels).

Bug: 29771461
Change-Id: Idf5f86c92a8748426cf3368242c08876a48d81dd
2016-07-14 09:10:32 -07:00
Andy Hung
0caeee8ac4 Improve stub hal read and write timing
Now considers time to mix or record.

Bug: 29634175
Change-Id: Ifb2a2e11cb75ca9e83aadbc95943a618b0707f3f
2016-07-13 11:19:40 -07:00
Eric Laurent
61187f61ef Merge "audio: Add callback event to asynchronously notify error" into nyc-mr1-dev 2016-07-12 21:01:40 +00:00
Haynes Mathew George
0d46876be9 audio: Add callback event to asynchronously notify error
Add new event to notify error using async callback path

Change-Id: I80a0ff74ea5a6497331a87ee33b2d0a890cbd2db
2016-07-11 17:19:39 -07:00
Alexey Polyudov
966a9f3f78 context hub: add reboot command/response and reboot notification
Change-Id: I20447c0b20eb2d6c4019f8038cb19749fee0126b
2016-07-11 09:34:55 -07:00
Jim Miller
4a2683f893 Revert \"Fingerprint: Add an API to support throttling.\"
am: e453c5212a

Change-Id: Ic925b2038494d20038de1d10454a5de3114d7763
2016-06-15 02:01:44 +00:00
Jim Miller
e453c5212a Revert "Fingerprint: Add an API to support throttling."
This reverts commit 7e9204a954.

Fixes bug 29248095

Change-Id: I60ce4dd96affbc263a14921cbdda59df7e7a65f4
2016-06-14 23:52:23 +00:00
Jakub Pawlowski
4878b58eb0 Use UINT16 for GATT attribute id field
am: 7dde9350e6

Change-Id: I84a92dc5d8a3d58b9e75767b5afe85b1b5391d48
2016-06-14 22:27:40 +00:00
Dan Stoza
9cf66cb6da Merge "Re-add gralloc 1.0 header" into nyc-mr1-dev 2016-06-14 19:59:39 +00:00
Jakub Pawlowski
7dde9350e6 Use UINT16 for GATT attribute id field
Id field is equal to attribute handle, so it must be 16bits.
Otherwise only piece of GATT database can be used.

Bug: 29253825
Change-Id: I75c0c993a987bf0a48e910fa3c0f41f9d876bec6
2016-06-14 12:47:34 -07:00
Paul McLean
64345f8f2e Simplify and clarify channel count/mask calculation for stream open routines.
Bug: 29154372
Change-Id: I849c02da0cc500e906cbda97b7258a3acf1e38f2
2016-06-13 13:59:59 -06:00
Dan Stoza
03a0e68b80 Re-add gralloc 1.0 header
Adds the header for version 1.0 of the gralloc HAL, now that the
framework properly supports it.

Bug: 28401203
Change-Id: I2ef28ca1e5ed5e9e71a14c4d1c97245051acce6c
2016-06-02 17:58:19 -07:00
Paul McLean
994ac07b96 replace naked pthread_mutex_ functions with semantics-explicit lock/unlock functions.
Bug: 29103653
Change-Id: Ic91f75f8653f7946790b8b433236fd918b41f3a6
2016-06-02 15:33:24 -06:00
Paul Mclean
dd01395ef1 Merge "Fix up inconsistent variable names." into nyc-mr1-dev 2016-06-02 13:37:18 +00:00
Mudumba Ananth
220c9d5bbe HFP 1.7 profile update (2/4)
-> Updated the HF HAL interface to support two
   new commands (AT + BIND, AT + BIEV) added
   in the profile update

Bug: 19983867
Change-Id: I672232522e9634d93ae86e5db81544b17b13576d
2016-06-01 14:37:30 -07:00
Paul McLean
76dba68c96 Fix up inconsistent variable names.
Bug: 29065081
Change-Id: I1c8305afdebd7e1eedb4afafb0d06003c6a9e576
2016-06-01 13:14:02 -06:00
Paul Mclean
f0541b5214 Merge "Add dump() (i.e dumpsys media.audio_flinger) functionality to USB HAL" into nyc-mr1-dev 2016-06-01 15:59:47 +00:00
Paul McLean
6a75e4e06a Add dump() (i.e dumpsys media.audio_flinger) functionality to USB HAL
Bug: 28960293

Change-Id: Ia3a2b966079633d9357e5ae96247b771073f2de6
2016-06-01 07:24:21 -06:00
Wei Wang
a787ab79e5 Add new power hints for launch activity
BUG: 28220567
Change-Id: I6da77240cdca5caa2e8504c36e83287954fd6ffc
2016-05-26 11:53:15 -07:00
Paul McLean
86196f57ef Merge "Ensure we get a default sample rate for "query" cases in open_input_device()." into nyc-dev
am: 86df5ad096

* commit '86df5ad096224060eb5275e6b7c4a1d5552210ee':
  Ensure we get a default sample rate for "query" cases in open_input_device().

Change-Id: I484e88a6b8da002b40f2769e3d869434f0b9efb2
2016-05-25 21:11:35 +00:00
Paul Mclean
86df5ad096 Merge "Ensure we get a default sample rate for "query" cases in open_input_device()." into nyc-dev 2016-05-25 20:54:05 +00:00
Paul McLean
9a1c30572b Ensure we get a default sample rate for "query" cases in open_input_device().
Bug: 28474561
Change-Id: I2946dda95ab47bd38a582f49e566541bc4e20bbf
2016-05-25 14:45:47 -06:00
Paul McLean
b096ff043d Merge "Lock input and output sample rates" into nyc-dev
am: 6bd8429fe2

* commit '6bd8429fe2efab5339c4a8446aaae53bd4d06422':
  Lock input and output sample rates

Change-Id: I7788bcfa7ea8581d72f508c8db0cc77bbd2b5016
2016-05-25 18:27:30 +00:00
Paul Mclean
6bd8429fe2 Merge "Lock input and output sample rates" into nyc-dev 2016-05-25 17:14:58 +00:00
Paul McLean
1d585cc7ab Lock input and output sample rates
Bug: 28474561
Change-Id: I551d346aea9c4f36b51a9c1a1c557c5e2757334b
2016-05-25 10:37:03 -06:00
Ajay Panicker
bf13132e20 Add guest mode functionality (1/3) am: 4e10135ef4 am: 6e98ba09a2 am: 4137555a77 am: 9ed5e051f0 -s ours am: 07c1c4dd8d am: d22d07f82b am: 9de98af266 am: 2fc4aebcdd
am: c32a7a662a

* commit 'c32a7a662a3a519dd79df44fd88dde1e008cb20f':
  Add guest mode functionality (1/3)

Change-Id: I2c48cee179955e232195bcf37faa7b2c5f596d63
2016-05-24 22:26:51 +00:00
Ajay Panicker
3280095d63 Add guest mode functionality (1/3) am: 4048610354 am: 1b89c8c0dd -s ours am: 4c7e952d48 am: 45c6e0013a
am: 8a1c5858ce

* commit '8a1c5858ce8468eb03824687526c05258da5886d':
  Add guest mode functionality (1/3)

Change-Id: I2719054c19528397189f36b125cede04d366fa60
2016-05-24 22:26:48 +00:00
Ajay Panicker
c32a7a662a Add guest mode functionality (1/3) am: 4e10135ef4 am: 6e98ba09a2 am: 4137555a77 am: 9ed5e051f0 -s ours am: 07c1c4dd8d am: d22d07f82b am: 9de98af266
am: 2fc4aebcdd

* commit '2fc4aebcdd48084125645340e5baeefc46f4c6a6':
  Add guest mode functionality (1/3)

Change-Id: I33613e8d89b198dbda2bc37bcbf25e355bedb201
2016-05-24 22:25:29 +00:00