Commit graph

3005 commits

Author SHA1 Message Date
rago
ecab7b6547 Fix security vulnerability: potential OOB write in audioserver am: 3f9a6d3bd9 am: 28d8817df3 am: 750a6a4ed8 am: 559dbde531 am: 4654f9ab8b am: 4154f08e79 am: 2ebeab8c6b am: c196433170 am: cd6ebe9b27 am: 21c9c6dc69 am: 3110aeafeb am: c5ced57319
am: 66b8752e83

Change-Id: I1aa2ef6f03391f9f53630f030b6bbef12e1a019d
2016-11-30 20:16:28 +00:00
rago
66b8752e83 Fix security vulnerability: potential OOB write in audioserver am: 3f9a6d3bd9 am: 28d8817df3 am: 750a6a4ed8 am: 559dbde531 am: 4654f9ab8b am: 4154f08e79 am: 2ebeab8c6b am: c196433170 am: cd6ebe9b27 am: 21c9c6dc69 am: 3110aeafeb
am: c5ced57319

Change-Id: Ie3a728280f0eb897f4cff39f1f97c24d62989f4e
2016-11-30 20:10:57 +00:00
rago
c5ced57319 Fix security vulnerability: potential OOB write in audioserver am: 3f9a6d3bd9 am: 28d8817df3 am: 750a6a4ed8 am: 559dbde531 am: 4654f9ab8b am: 4154f08e79 am: 2ebeab8c6b am: c196433170 am: cd6ebe9b27 am: 21c9c6dc69
am: 3110aeafeb

Change-Id: I5f6830b3d713fa9836065ef4101317f4d17488c2
2016-11-30 20:05:25 +00:00
rago
3110aeafeb Fix security vulnerability: potential OOB write in audioserver am: 3f9a6d3bd9 am: 28d8817df3 am: 750a6a4ed8 am: 559dbde531 am: 4654f9ab8b am: 4154f08e79 am: 2ebeab8c6b am: c196433170 am: cd6ebe9b27
am: 21c9c6dc69

Change-Id: I199ff9b65f50ab98676c4e449fa7cfc1ebb8ec85
2016-11-30 20:00:25 +00:00
rago
21c9c6dc69 Fix security vulnerability: potential OOB write in audioserver am: 3f9a6d3bd9 am: 28d8817df3 am: 750a6a4ed8 am: 559dbde531 am: 4654f9ab8b am: 4154f08e79 am: 2ebeab8c6b am: c196433170
am: cd6ebe9b27

Change-Id: Ia1c55db37373474552543c3a0f4fad7b6305a2a0
2016-11-30 19:55:25 +00:00
rago
cd6ebe9b27 Fix security vulnerability: potential OOB write in audioserver am: 3f9a6d3bd9 am: 28d8817df3 am: 750a6a4ed8 am: 559dbde531 am: 4654f9ab8b am: 4154f08e79 am: 2ebeab8c6b
am: c196433170

Change-Id: Ib2c430673490d56347b7c5719ae9ac222129d046
2016-11-30 19:49:23 +00:00
rago
c196433170 Fix security vulnerability: potential OOB write in audioserver am: 3f9a6d3bd9 am: 28d8817df3 am: 750a6a4ed8 am: 559dbde531 am: 4654f9ab8b am: 4154f08e79
am: 2ebeab8c6b

Change-Id: I8ee48760ca62d1e9002a53694be8f39ff47a7b33
2016-11-30 19:44:52 +00:00
rago
2ebeab8c6b Fix security vulnerability: potential OOB write in audioserver am: 3f9a6d3bd9 am: 28d8817df3 am: 750a6a4ed8 am: 559dbde531 am: 4654f9ab8b
am: 4154f08e79

Change-Id: I810091a4bc2713ec688e01f8656d581018e767dd
2016-11-30 19:38:52 +00:00
rago
4154f08e79 Fix security vulnerability: potential OOB write in audioserver am: 3f9a6d3bd9 am: 28d8817df3 am: 750a6a4ed8 am: 559dbde531
am: 4654f9ab8b

Change-Id: I6b12abacd19b3ac06c054d05c5f381d234756593
2016-11-30 19:34:22 +00:00
rago
4654f9ab8b Fix security vulnerability: potential OOB write in audioserver am: 3f9a6d3bd9 am: 28d8817df3 am: 750a6a4ed8
am: 559dbde531

Change-Id: I800e527ba948c4416aeee1375e909f7da6f42a71
2016-11-30 19:28:51 +00:00
rago
559dbde531 Fix security vulnerability: potential OOB write in audioserver am: 3f9a6d3bd9 am: 28d8817df3
am: 750a6a4ed8

Change-Id: I9254658ce47758df06c15c049d80862e7e774847
2016-11-30 19:23:23 +00:00
rago
750a6a4ed8 Fix security vulnerability: potential OOB write in audioserver am: 3f9a6d3bd9
am: 28d8817df3

Change-Id: Icd0c6917e987c5a5cbb1fb540a4d34e2032d6081
2016-11-30 19:17:50 +00:00
rago
28d8817df3 Fix security vulnerability: potential OOB write in audioserver
am: 3f9a6d3bd9

Change-Id: Ia7aefc3e6e49f9e0105acc5fc816cd8e0bdd9cd9
2016-11-30 19:12:19 +00:00
rago
3f9a6d3bd9 Fix security vulnerability: potential OOB write in audioserver
Bug: 32705438
Bug: 32703959
Test: cts security test
Change-Id: I920a74cb0a809c623ddf802f3d2808f0f1bd537c
2016-11-29 14:56:45 -08:00
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