OSDN Git Service

android-x86/hardware-libhardware.git
6 years agoHACK - Avoid crashes on SurfaceFlinger when using software rendering nougat-x86 android-x86-7.1-r1 android-x86-7.1-r2 android-x86-7.1-r3 android-x86-7.1-r4 android-x86-7.1-r5
Paulo Sergio Travaglia [Sun, 30 Oct 2016 23:37:16 +0000 (21:37 -0200)]
HACK - Avoid crashes on SurfaceFlinger when using software rendering

When using sw rendering, depending user action (pressing HOME button after
lauching an app, for instance) there's an attempt do map a vaddr that has
already been mapped. And this is done by the process that created it.
This triggers a kernel trap and surfaceflinger is destroyed:

=========================================================================
10-30 18:14:11.474  1096  1645 D gralloc : gralloc_map() succeeded fd=59,
 off=0, size=1028096, vaddr=0xaac21000

10-30 18:14:11.474  1355  1389 D gralloc : gralloc_map() succeeded fd=202,
 off=0, size=1028096, vaddr=0x8d0f2000

10-30 18:14:11.475  1096  1096 D gralloc : Registering a buffer in the
process that created it. This may cause memory ordering problems.

10-30 18:14:11.475  1096  1096 D gralloc : gralloc_map() succeeded
fd=60, off=0, size=1028096, vaddr=0xaac21000

10-30 18:14:11.574  1095  1095 I ServiceManager: service 'gpu' died
=========================================================================

In order to avoid this, the patch avoids mapping a buffer when the
mapping process is the creator process.

This should be threated as a workaround and removed when the real
root cause is discovered.

6 years agogralloc: auto select pixel format according to color depth
Chih-Wei Huang [Thu, 2 Dec 2010 03:27:10 +0000 (11:27 +0800)]
gralloc: auto select pixel format according to color depth

Change-Id: I1e6db2bbe03260d156644ca0700eb2e3e02956dc

7 years agohw_auth_token: use macro for HW_AUTH_TOKEN_VERSION
Jongrak Kwon [Tue, 13 Dec 2016 22:58:45 +0000 (14:58 -0800)]
hw_auth_token: use macro for HW_AUTH_TOKEN_VERSION

This is to support FPC SW20.6

Bug: 33251689
Change-Id: I9abbf7f9d21c7c8ed21920d94fcf5bf889d4b3f7

7 years agoMerge "BLE OOB Pairing - parse address type (2/5)" into nyc-mr2-dev
Jakub Pawlowski [Fri, 2 Dec 2016 20:14:00 +0000 (20:14 +0000)]
Merge "BLE OOB Pairing - parse address type (2/5)" into nyc-mr2-dev

7 years agoFix security vulnerability: potential OOB write in audioserver am: 3f9a6d3bd9 am...
rago [Wed, 30 Nov 2016 20:21:30 +0000 (20:21 +0000)]
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
am: ecab7b6547

Change-Id: I3fb3598eb11bab1860a55762ba26700bece207aa

7 years agoFix security vulnerability: potential OOB write in audioserver am: 3f9a6d3bd9 am...
rago [Wed, 30 Nov 2016 20:16:28 +0000 (20:16 +0000)]
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

7 years agoFix security vulnerability: potential OOB write in audioserver am: 3f9a6d3bd9 am...
rago [Wed, 30 Nov 2016 20:10:57 +0000 (20:10 +0000)]
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

7 years agoFix security vulnerability: potential OOB write in audioserver am: 3f9a6d3bd9 am...
rago [Wed, 30 Nov 2016 20:05:25 +0000 (20:05 +0000)]
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

7 years agoFix security vulnerability: potential OOB write in audioserver am: 3f9a6d3bd9 am...
rago [Wed, 30 Nov 2016 20:00:25 +0000 (20:00 +0000)]
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

7 years agoFix security vulnerability: potential OOB write in audioserver am: 3f9a6d3bd9 am...
rago [Wed, 30 Nov 2016 19:55:25 +0000 (19:55 +0000)]
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

7 years agoFix security vulnerability: potential OOB write in audioserver am: 3f9a6d3bd9 am...
rago [Wed, 30 Nov 2016 19:49:23 +0000 (19:49 +0000)]
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

7 years agoFix security vulnerability: potential OOB write in audioserver am: 3f9a6d3bd9 am...
rago [Wed, 30 Nov 2016 19:44:52 +0000 (19:44 +0000)]
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

7 years agoFix security vulnerability: potential OOB write in audioserver am: 3f9a6d3bd9 am...
rago [Wed, 30 Nov 2016 19:38:52 +0000 (19:38 +0000)]
Fix security vulnerability: potential OOB write in audioserver am: 3f9a6d3bd9 am: 28d8817df3 am: 750a6a4ed8 am: 559dbde531 am: 4654f9ab8b
am: 4154f08e79

Change-Id: I810091a4bc2713ec688e01f8656d581018e767dd

7 years agoFix security vulnerability: potential OOB write in audioserver am: 3f9a6d3bd9 am...
rago [Wed, 30 Nov 2016 19:34:22 +0000 (19:34 +0000)]
Fix security vulnerability: potential OOB write in audioserver am: 3f9a6d3bd9 am: 28d8817df3 am: 750a6a4ed8 am: 559dbde531
am: 4654f9ab8b

Change-Id: I6b12abacd19b3ac06c054d05c5f381d234756593

7 years agoFix security vulnerability: potential OOB write in audioserver am: 3f9a6d3bd9 am...
rago [Wed, 30 Nov 2016 19:28:51 +0000 (19:28 +0000)]
Fix security vulnerability: potential OOB write in audioserver am: 3f9a6d3bd9 am: 28d8817df3 am: 750a6a4ed8
am: 559dbde531

Change-Id: I800e527ba948c4416aeee1375e909f7da6f42a71

7 years agoFix security vulnerability: potential OOB write in audioserver am: 3f9a6d3bd9 am...
rago [Wed, 30 Nov 2016 19:23:23 +0000 (19:23 +0000)]
Fix security vulnerability: potential OOB write in audioserver am: 3f9a6d3bd9 am: 28d8817df3
am: 750a6a4ed8

Change-Id: I9254658ce47758df06c15c049d80862e7e774847

7 years agoFix security vulnerability: potential OOB write in audioserver am: 3f9a6d3bd9
rago [Wed, 30 Nov 2016 19:17:50 +0000 (19:17 +0000)]
Fix security vulnerability: potential OOB write in audioserver am: 3f9a6d3bd9
am: 28d8817df3

Change-Id: Icd0c6917e987c5a5cbb1fb540a4d34e2032d6081

7 years agoFix security vulnerability: potential OOB write in audioserver
rago [Wed, 30 Nov 2016 19:12:19 +0000 (19:12 +0000)]
Fix security vulnerability: potential OOB write in audioserver
am: 3f9a6d3bd9

Change-Id: Ia7aefc3e6e49f9e0105acc5fc816cd8e0bdd9cd9

7 years agoFix security vulnerability: potential OOB write in audioserver
rago [Tue, 29 Nov 2016 18:29:39 +0000 (10:29 -0800)]
Fix security vulnerability: potential OOB write in audioserver

Bug: 32705438
Bug: 32703959
Test: cts security test
Change-Id: I920a74cb0a809c623ddf802f3d2808f0f1bd537c

7 years agoBLE OOB Pairing - parse address type (2/5)
Jakub Pawlowski [Thu, 10 Nov 2016 00:44:30 +0000 (16:44 -0800)]
BLE OOB Pairing - parse address type (2/5)

When address type is not parsed, creating bond to devices not using
random address is impossible.

Bug: 32780409
Test: try pairing with nRF52DK using random address
Change-Id: I1265b6abdefa12dc024d00ecf232f7fc7722d178
(cherry picked from commit d82fbad4aa900a6187525bc0f779de76f47cccb5)

7 years agoSensors: MultiHal: support sensor API version 1.4
Nick Vaccaro [Fri, 14 Oct 2016 17:24:10 +0000 (10:24 -0700)]
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

7 years agoTreat all tags as unsigned when comparing them
Tucker Sylvestro [Wed, 5 Oct 2016 18:39:39 +0000 (14:39 -0400)]
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

7 years agoaudio effect: add flag for effects without actual processing
Eric Laurent [Fri, 16 Sep 2016 16:34:17 +0000 (16:34 +0000)]
audio effect: add flag for effects without actual processing
am: 4725741d0e

Change-Id: I74e8ca3a0670bb49ec69813a2f5bf91994c61515

7 years agoaudio effect: add flag for effects without actual processing
Eric Laurent [Thu, 15 Sep 2016 18:40:57 +0000 (11:40 -0700)]
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

7 years agoSensors: MultiHal: ignore errors from poll calls
Nick Vaccaro [Tue, 19 Jul 2016 17:34:00 +0000 (10:34 -0700)]
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

7 years agoMerge \\\"DO NOT MERGE ANYWHERE Sensors: MultiHal: ignore errors from poll calls...
Nick Vaccaro [Wed, 20 Jul 2016 00:37:41 +0000 (00:37 +0000)]
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

7 years agoMerge \\"DO NOT MERGE ANYWHERE Sensors: MultiHal: ignore errors from poll calls\...
Nick Vaccaro [Wed, 20 Jul 2016 00:35:07 +0000 (00:35 +0000)]
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

7 years agoMerge \"DO NOT MERGE ANYWHERE Sensors: MultiHal: ignore errors from poll calls\"...
Nick Vaccaro [Wed, 20 Jul 2016 00:32:34 +0000 (00:32 +0000)]
Merge \"DO NOT MERGE ANYWHERE Sensors: MultiHal: ignore errors from poll calls\" into cw-e-dev
am: f7eed1ea07  -s ours

Change-Id: I48415c2c6aed8f18212b239469a9c66894f753af

7 years agoMerge "DO NOT MERGE ANYWHERE Sensors: MultiHal: ignore errors from poll calls" into...
Nick Vaccaro [Tue, 19 Jul 2016 23:55:21 +0000 (23:55 +0000)]
Merge "DO NOT MERGE ANYWHERE Sensors: MultiHal: ignore errors from poll calls" into cw-e-dev

7 years agoDO NOT MERGE ANYWHERE Sensors: MultiHal: ignore errors from poll calls
Nick Vaccaro [Tue, 19 Jul 2016 17:34:00 +0000 (10:34 -0700)]
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

7 years agoMerge "power: Adds POWER_HINT_DISABLE_TOUCH" into nyc-mr1-dev
Chenjie Luo [Tue, 19 Jul 2016 16:34:51 +0000 (16:34 +0000)]
Merge "power: Adds POWER_HINT_DISABLE_TOUCH" into nyc-mr1-dev

7 years agoDO NOT MERGE ANYWHERE power: Adds POWER_HINT_DISABLE_TOUCH am: 2df182d7b1 -s ours...
Chenjie Luo [Mon, 18 Jul 2016 23:45:23 +0000 (23:45 +0000)]
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

7 years agoDO NOT MERGE ANYWHERE Add new power hints for launch activity am: a2aa3f358f -s...
Wei Wang [Mon, 18 Jul 2016 23:45:23 +0000 (23:45 +0000)]
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

7 years agoDO NOT MERGE ANYWHERE power: Adds POWER_HINT_DISABLE_TOUCH am: 2df182d7b1 -s ours
Chenjie Luo [Mon, 18 Jul 2016 23:42:58 +0000 (23:42 +0000)]
DO NOT MERGE ANYWHERE power: Adds POWER_HINT_DISABLE_TOUCH am: 2df182d7b1  -s ours
am: 3e8005b289  -s ours

Change-Id: Ie308c154a314faf32ca21f6913053753549a6f29

7 years agoDO NOT MERGE ANYWHERE Add new power hints for launch activity am: a2aa3f358f -s...
Wei Wang [Mon, 18 Jul 2016 23:42:58 +0000 (23:42 +0000)]
DO NOT MERGE ANYWHERE Add new power hints for launch activity am: a2aa3f358f  -s ours
am: 145907b2f5  -s ours

Change-Id: Iffa33cd078e302c60ed8d9d5e2ab082058122761

7 years agoDO NOT MERGE ANYWHERE power: Adds POWER_HINT_DISABLE_TOUCH
Chenjie Luo [Mon, 18 Jul 2016 23:40:20 +0000 (23:40 +0000)]
DO NOT MERGE ANYWHERE power: Adds POWER_HINT_DISABLE_TOUCH
am: 2df182d7b1  -s ours

Change-Id: I2e8f3feb242c8abf1410c49cc218becd4caf2e6a

7 years agoDO NOT MERGE ANYWHERE Add new power hints for launch activity
Wei Wang [Mon, 18 Jul 2016 23:40:19 +0000 (23:40 +0000)]
DO NOT MERGE ANYWHERE Add new power hints for launch activity
am: a2aa3f358f  -s ours

Change-Id: I1cde82735cc43082f63e2ae901afb6faeec1c92e

7 years agopower: Adds POWER_HINT_DISABLE_TOUCH
Chenjie Luo [Thu, 14 Jul 2016 22:46:58 +0000 (15:46 -0700)]
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 90db35122df088212dfef1c09af9d5470363d6c0)

7 years agoDO NOT MERGE ANYWHERE power: Adds POWER_HINT_DISABLE_TOUCH
Chenjie Luo [Thu, 14 Jul 2016 22:46:58 +0000 (15:46 -0700)]
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 90db35122df088212dfef1c09af9d5470363d6c0)

7 years agoDO NOT MERGE ANYWHERE Add new power hints for launch activity
Wei Wang [Wed, 18 May 2016 18:27:54 +0000 (11:27 -0700)]
DO NOT MERGE ANYWHERE Add new power hints for launch activity

BUG: 28220567
Change-Id: I6da77240cdca5caa2e8504c36e83287954fd6ffc
(cherry picked from commit a787ab79e50f6c5d5fe8b3866cd417a50ef46ff8)

7 years agoMerge "Improve stub hal read and write timing" into nyc-mr1-dev
Andy Hung [Fri, 15 Jul 2016 05:06:15 +0000 (05:06 +0000)]
Merge "Improve stub hal read and write timing" into nyc-mr1-dev

7 years agoHWC2: Add SKIP_CLIENT_COLOR_TRANSFORM capability
Dan Stoza [Thu, 14 Jul 2016 18:48:16 +0000 (11:48 -0700)]
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

7 years agoHWC2: Redefine retire fence as present fence
Dan Stoza [Wed, 13 Jul 2016 21:51:09 +0000 (14:51 -0700)]
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

7 years agoImprove stub hal read and write timing
Andy Hung [Sat, 25 Jun 2016 02:41:06 +0000 (19:41 -0700)]
Improve stub hal read and write timing

Now considers time to mix or record.

Bug: 29634175
Change-Id: Ifb2a2e11cb75ca9e83aadbc95943a618b0707f3f

7 years agoMerge "audio: Add callback event to asynchronously notify error" into nyc-mr1-dev
Eric Laurent [Tue, 12 Jul 2016 21:01:40 +0000 (21:01 +0000)]
Merge "audio: Add callback event to asynchronously notify error" into nyc-mr1-dev

7 years agoaudio: Add callback event to asynchronously notify error
Haynes Mathew George [Fri, 8 Jul 2016 03:05:39 +0000 (20:05 -0700)]
audio: Add callback event to asynchronously notify error

Add new event to notify error using async callback path

Change-Id: I80a0ff74ea5a6497331a87ee33b2d0a890cbd2db

7 years agocontext hub: add reboot command/response and reboot notification
Alexey Polyudov [Sun, 10 Jul 2016 21:26:18 +0000 (14:26 -0700)]
context hub: add reboot command/response and reboot notification

Change-Id: I20447c0b20eb2d6c4019f8038cb19749fee0126b

7 years agoRevert \"Fingerprint: Add an API to support throttling.\"
Jim Miller [Wed, 15 Jun 2016 02:01:44 +0000 (02:01 +0000)]
Revert \"Fingerprint: Add an API to support throttling.\"
am: e453c5212a

Change-Id: Ic925b2038494d20038de1d10454a5de3114d7763

7 years agoRevert "Fingerprint: Add an API to support throttling."
Jim Miller [Tue, 14 Jun 2016 23:52:03 +0000 (23:52 +0000)]
Revert "Fingerprint: Add an API to support throttling."

This reverts commit 7e9204a954deeeb6c2fad6752b87af0638ef0d5d.

Fixes bug 29248095

Change-Id: I60ce4dd96affbc263a14921cbdda59df7e7a65f4

7 years agoUse UINT16 for GATT attribute id field
Jakub Pawlowski [Tue, 14 Jun 2016 22:27:40 +0000 (22:27 +0000)]
Use UINT16 for GATT attribute id field
am: 7dde9350e6

Change-Id: I84a92dc5d8a3d58b9e75767b5afe85b1b5391d48

7 years agoMerge "Re-add gralloc 1.0 header" into nyc-mr1-dev
Dan Stoza [Tue, 14 Jun 2016 19:59:37 +0000 (19:59 +0000)]
Merge "Re-add gralloc 1.0 header" into nyc-mr1-dev

7 years agoUse UINT16 for GATT attribute id field
Jakub Pawlowski [Tue, 14 Jun 2016 19:45:59 +0000 (12:45 -0700)]
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

7 years agoSimplify and clarify channel count/mask calculation for stream open routines.
Paul McLean [Mon, 6 Jun 2016 19:26:05 +0000 (13:26 -0600)]
Simplify and clarify channel count/mask calculation for stream open routines.

Bug: 29154372
Change-Id: I849c02da0cc500e906cbda97b7258a3acf1e38f2

7 years agoRe-add gralloc 1.0 header
Dan Stoza [Fri, 20 May 2016 20:10:14 +0000 (13:10 -0700)]
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

7 years agoreplace naked pthread_mutex_ functions with semantics-explicit lock/unlock functions.
Paul McLean [Thu, 2 Jun 2016 21:33:24 +0000 (15:33 -0600)]
replace naked pthread_mutex_ functions with semantics-explicit lock/unlock functions.

Bug: 29103653
Change-Id: Ic91f75f8653f7946790b8b433236fd918b41f3a6

7 years agoMerge "Fix up inconsistent variable names." into nyc-mr1-dev
Paul Mclean [Thu, 2 Jun 2016 13:37:17 +0000 (13:37 +0000)]
Merge "Fix up inconsistent variable names." into nyc-mr1-dev

7 years agoHFP 1.7 profile update (2/4)
Mudumba Ananth [Mon, 29 Feb 2016 10:14:09 +0000 (02:14 -0800)]
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

7 years agoFix up inconsistent variable names.
Paul McLean [Wed, 1 Jun 2016 18:29:11 +0000 (12:29 -0600)]
Fix up inconsistent variable names.

Bug: 29065081
Change-Id: I1c8305afdebd7e1eedb4afafb0d06003c6a9e576

7 years agoMerge "Add dump() (i.e dumpsys media.audio_flinger) functionality to USB HAL" into...
Paul Mclean [Wed, 1 Jun 2016 15:59:47 +0000 (15:59 +0000)]
Merge "Add dump() (i.e dumpsys media.audio_flinger) functionality to USB HAL" into nyc-mr1-dev

7 years agoAdd dump() (i.e dumpsys media.audio_flinger) functionality to USB HAL
Paul McLean [Wed, 25 May 2016 20:09:02 +0000 (14:09 -0600)]
Add dump() (i.e dumpsys media.audio_flinger) functionality to USB HAL

Bug: 28960293

Change-Id: Ia3a2b966079633d9357e5ae96247b771073f2de6

7 years agoAdd new power hints for launch activity
Wei Wang [Wed, 18 May 2016 18:27:54 +0000 (11:27 -0700)]
Add new power hints for launch activity

BUG: 28220567
Change-Id: I6da77240cdca5caa2e8504c36e83287954fd6ffc

7 years agoMerge "Ensure we get a default sample rate for "query" cases in open_input_device...
Paul McLean [Wed, 25 May 2016 21:11:35 +0000 (21:11 +0000)]
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

7 years agoMerge "Ensure we get a default sample rate for "query" cases in open_input_device...
Paul Mclean [Wed, 25 May 2016 20:54:05 +0000 (20:54 +0000)]
Merge "Ensure we get a default sample rate for "query" cases in open_input_device()." into nyc-dev

7 years agoEnsure we get a default sample rate for "query" cases in open_input_device().
Paul McLean [Wed, 25 May 2016 19:30:54 +0000 (13:30 -0600)]
Ensure we get a default sample rate for "query" cases in open_input_device().

Bug: 28474561
Change-Id: I2946dda95ab47bd38a582f49e566541bc4e20bbf

7 years agoMerge "Lock input and output sample rates" into nyc-dev
Paul McLean [Wed, 25 May 2016 18:27:30 +0000 (18:27 +0000)]
Merge "Lock input and output sample rates" into nyc-dev
am: 6bd8429fe2

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

Change-Id: I7788bcfa7ea8581d72f508c8db0cc77bbd2b5016

7 years agoMerge "Lock input and output sample rates" into nyc-dev
Paul Mclean [Wed, 25 May 2016 17:14:58 +0000 (17:14 +0000)]
Merge "Lock input and output sample rates" into nyc-dev

7 years agoLock input and output sample rates
Paul McLean [Tue, 24 May 2016 17:28:10 +0000 (11:28 -0600)]
Lock input and output sample rates

Bug: 28474561
Change-Id: I551d346aea9c4f36b51a9c1a1c557c5e2757334b

7 years agoAdd guest mode functionality (1/3) am: 4e10135ef4 am: 6e98ba09a2 am: 4137555a77 am...
Ajay Panicker [Tue, 24 May 2016 22:26:51 +0000 (22:26 +0000)]
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

7 years agoAdd guest mode functionality (1/3) am: 4048610354 am: 1b89c8c0dd -s ours am: 4c7e952...
Ajay Panicker [Tue, 24 May 2016 22:26:48 +0000 (22:26 +0000)]
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

7 years agoAdd guest mode functionality (1/3) am: 4e10135ef4 am: 6e98ba09a2 am: 4137555a77 am...
Ajay Panicker [Tue, 24 May 2016 22:25:29 +0000 (22:25 +0000)]
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

7 years agoAdd guest mode functionality (1/3) am: 4048610354 am: 1b89c8c0dd -s ours am: 4c7e952d48
Ajay Panicker [Tue, 24 May 2016 22:25:25 +0000 (22:25 +0000)]
Add guest mode functionality (1/3) am: 4048610354 am: 1b89c8c0dd  -s ours am: 4c7e952d48
am: 45c6e0013a

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

Change-Id: Id1fc54275a9ed8c8126a52b2b885496c6a279992

7 years agoAdd guest mode functionality (1/3) am: 4e10135ef4 am: 6e98ba09a2 am: 4137555a77 am...
Ajay Panicker [Tue, 24 May 2016 22:24:06 +0000 (22:24 +0000)]
Add guest mode functionality (1/3) am: 4e10135ef4 am: 6e98ba09a2 am: 4137555a77 am: 9ed5e051f0  -s ours am: 07c1c4dd8d am: d22d07f82b
am: 9de98af266

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

Change-Id: I582f40a1780d529f9ec91786470743bb7c74578b

7 years agoAdd guest mode functionality (1/3) am: 4048610354 am: 1b89c8c0dd -s ours
Ajay Panicker [Tue, 24 May 2016 22:21:25 +0000 (22:21 +0000)]
Add guest mode functionality (1/3) am: 4048610354 am: 1b89c8c0dd  -s ours
am: 4c7e952d48

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

Change-Id: Id2aceac8aa59a1c49261428a0b0c7d2d0aaada1a

7 years agoAdd guest mode functionality (1/3) am: 4e10135ef4 am: 6e98ba09a2 am: 4137555a77 am...
Ajay Panicker [Tue, 24 May 2016 22:21:24 +0000 (22:21 +0000)]
Add guest mode functionality (1/3) am: 4e10135ef4 am: 6e98ba09a2 am: 4137555a77 am: 9ed5e051f0  -s ours am: 07c1c4dd8d
am: d22d07f82b

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

Change-Id: Ibc2e00534f707c70977ff64207fae05ba43addd2

7 years agoAdd guest mode functionality (1/3) am: 4048610354
Ajay Panicker [Tue, 24 May 2016 22:15:52 +0000 (22:15 +0000)]
Add guest mode functionality (1/3) am: 4048610354
am: 1b89c8c0dd  -s ours

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

Change-Id: I69d69431c767ecd615839f97cef1faaa912f2f50

7 years agoAdd guest mode functionality (1/3) am: 4e10135ef4 am: 6e98ba09a2 am: 4137555a77 am...
Ajay Panicker [Tue, 24 May 2016 22:15:50 +0000 (22:15 +0000)]
Add guest mode functionality (1/3) am: 4e10135ef4 am: 6e98ba09a2 am: 4137555a77 am: 9ed5e051f0  -s ours
am: 07c1c4dd8d

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

Change-Id: I4be5d4c2d2095ce288bc4b80970359265a714b4d

7 years agoAdd guest mode functionality (1/3) am: 4e10135ef4 am: 6e98ba09a2 am: 4137555a77
Ajay Panicker [Tue, 24 May 2016 22:12:59 +0000 (22:12 +0000)]
Add guest mode functionality (1/3) am: 4e10135ef4 am: 6e98ba09a2 am: 4137555a77
am: 9ed5e051f0  -s ours

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

Change-Id: I252ab37ea484800f920ad224b85e2cad9ed28032

7 years agoAdd guest mode functionality (1/3) am: 4e10135ef4 am: 6e98ba09a2
Ajay Panicker [Tue, 24 May 2016 22:07:25 +0000 (22:07 +0000)]
Add guest mode functionality (1/3) am: 4e10135ef4 am: 6e98ba09a2
am: 4137555a77

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

Change-Id: I5cc9b7d8082908d2c64012b63e5183365366ed1e

7 years agoAdd guest mode functionality (1/3) am: 4e10135ef4
Ajay Panicker [Tue, 24 May 2016 22:05:24 +0000 (22:05 +0000)]
Add guest mode functionality (1/3) am: 4e10135ef4
am: 6e98ba09a2

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

Change-Id: I3dd89a69243cdacb5b8ebe5227a2b718b17968d4

7 years agoAdd guest mode functionality (1/3)
Ajay Panicker [Tue, 24 May 2016 22:02:01 +0000 (22:02 +0000)]
Add guest mode functionality (1/3)
am: 4048610354

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

Change-Id: Ic2bd8be69bbe1dc2a247e1d152e95d158ad3161c

7 years agoAdd guest mode functionality (1/3)
Ajay Panicker [Tue, 24 May 2016 22:02:00 +0000 (22:02 +0000)]
Add guest mode functionality (1/3)
am: 4e10135ef4

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

Change-Id: I8942fea871b1c1721d0644a5eedf9fdd6a6bc0eb

7 years agoHWC2: Add format to VD create, surface damage
Dan Stoza [Tue, 24 May 2016 17:22:39 +0000 (17:22 +0000)]
HWC2: Add format to VD create, surface damage
am: 68cd3759be

* commit '68cd3759be6a20245eba10f8aaf861cc65ab41b7':
  HWC2: Add format to VD create, surface damage

Change-Id: I809781fd15492bafdbda3312badf86a874448d5f

7 years agoAdd guest mode functionality (1/3)
Ajay Panicker [Fri, 18 Mar 2016 21:27:36 +0000 (14:27 -0700)]
Add guest mode functionality (1/3)

Add a flag to enable() to start Bluetooth in restricted
mode. In restricted mode, all devices that are paired during
restricted mode are deleted upon leaving restricted mode.
Right now restricted mode is only entered while a guest
user is active

Bug: 27410683
Change-Id: I994a2933fd60301927ff2df65da634f81d4c9428

7 years agoHWC2: Add format to VD create, surface damage
Dan Stoza [Fri, 20 May 2016 20:30:42 +0000 (13:30 -0700)]
HWC2: Add format to VD create, surface damage

Adds a format in/out parameter to createVirtualDisplay so that the
device knows what format the consumer prefers, but can override it if
it is not capable of rendering to it.

Also adds a surface damage region to the setClientTarget call.

Bug: 22767098
Change-Id: I58801aed2d95fd7dbf63db2e303bc3079caaba25

7 years agoMerge "Glonass ID Revision" into nyc-dev
Wyatt Riley [Thu, 19 May 2016 18:49:32 +0000 (18:49 +0000)]
Merge "Glonass ID Revision" into nyc-dev
am: 0b1e0f0e48

* commit '0b1e0f0e48620b328e4a49024403dc49887c5b10':
  Glonass ID Revision

Change-Id: Ia90f966ccf80cc100dd74fee244be0213861d2b2

7 years agoMerge "Glonass ID Revision" into nyc-dev
Wyatt Riley [Thu, 19 May 2016 18:37:53 +0000 (18:37 +0000)]
Merge "Glonass ID Revision" into nyc-dev

7 years agoGlonass ID Revision
Wyatt Riley [Wed, 18 May 2016 20:01:05 +0000 (13:01 -0700)]
Glonass ID Revision

Comments only

Change-Id: Ie61367fcdb20fb1f580aa739c98e05bfbb2f40ca

7 years agoRemove gralloc1 header
Dan Stoza [Wed, 18 May 2016 17:44:16 +0000 (17:44 +0000)]
Remove gralloc1 header
am: 89c7452d15

* commit '89c7452d15e6922719ed99134313af8ba35420b7':
  Remove gralloc1 header

Change-Id: Ib19abf7bb7d80dc7c0db91117b4109b7b3a2c663

7 years agoRemove gralloc1 header
Dan Stoza [Tue, 17 May 2016 19:43:54 +0000 (12:43 -0700)]
Remove gralloc1 header

Removes the gralloc1 header until such time as framework support can
be added.

Bug: 28401203
Change-Id: I7fbaf60d5b1c3c2267cf8d2216e94736c70bf8bb

7 years agogralloc: Adds a new inline method map_usage_to_memtrack.
Ruchi Kandoi [Wed, 30 Mar 2016 01:23:39 +0000 (18:23 -0700)]
gralloc: Adds a new inline method map_usage_to_memtrack.

map_usage_to_memtrack takes in the gralloc usage flag and returns a
const char pointer containing the memtrack tag.

This function should be used to find the appropriate memtrack tag that
needs to be used after allocating buffers. This will help in-kernel
memtrack module to classify memory into pre-defined buckets.

Bug: 27525688
Change-Id: Ieee868f9b90ab170c16ba80aceedcb3b2e3762df
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
7 years agoMerge "Update VR HAL docs." into nyc-dev
Ruben Brunk [Wed, 4 May 2016 23:44:44 +0000 (23:44 +0000)]
Merge "Update VR HAL docs." into nyc-dev
am: a7145d28d8

* commit 'a7145d28d8e615430771ead8a953e16e25c0f03f':
  Update VR HAL docs.

Change-Id: Ifffe900df54c13998d3a62e4507e13e04981b14d

7 years agoMerge "Update VR HAL docs." into nyc-dev
Ruben Brunk [Wed, 4 May 2016 23:35:42 +0000 (23:35 +0000)]
Merge "Update VR HAL docs." into nyc-dev

7 years agoMerge "HWC2: Clarify null client target handle" into nyc-dev
Dan Stoza [Wed, 4 May 2016 21:39:09 +0000 (21:39 +0000)]
Merge "HWC2: Clarify null client target handle" into nyc-dev
am: 0154a6b08d

* commit '0154a6b08d8bd1f87bc519713369e30bb5bd4146':
  HWC2: Clarify null client target handle

Change-Id: I692b714bd625c72e3efa3ef720c4dd83dbf9a305

7 years agoMerge "HWC2: Clarify null client target handle" into nyc-dev
TreeHugger Robot [Wed, 4 May 2016 20:51:28 +0000 (20:51 +0000)]
Merge "HWC2: Clarify null client target handle" into nyc-dev

7 years agoAdd guest mode functionality (1/3)
Ajay Panicker [Fri, 18 Mar 2016 21:27:36 +0000 (14:27 -0700)]
Add guest mode functionality (1/3)

Add a flag to enable() to start Bluetooth in restricted
mode. In restricted mode, all devices that are paired during
restricted mode are deleted upon leaving restricted mode.
Right now restricted mode is only entered while a guest
user is active

Bug: 27410683
Change-Id: I994a2933fd60301927ff2df65da634f81d4c9428

7 years agoHWC2: Clarify null client target handle
Dan Stoza [Wed, 4 May 2016 19:21:06 +0000 (12:21 -0700)]
HWC2: Clarify null client target handle

Documentation-only change that clarifies that in the case where the
client isn't compositing any of the layers, the buffer handle
provided to setClientTarget may be null, and that this should not be
treated as an error by the device.

Bug: 28569722
Change-Id: Ia5825eb0a80c7f838894642654db7d7be14a3b6b

7 years agoUpdate VR HAL docs.
Ruben Brunk [Tue, 3 May 2016 02:29:57 +0000 (19:29 -0700)]
Update VR HAL docs.

Bug: 28526281
Change-Id: If9673af47962f6fadd10f8a622e9587245f7ffb6

7 years agoRevert "tv_input: add signal detection flag to stream config"
Dongwon Kang [Wed, 4 May 2016 17:44:33 +0000 (17:44 +0000)]
Revert "tv_input: add signal detection flag to stream config"
am: da941d8f1c

* commit 'da941d8f1c26b4e513e35c27eafce452a14de4e9':
  Revert "tv_input: add signal detection flag to stream config"

Change-Id: Ia4da08b2fd3288ad6e7ec67d93c505c2d07dae1c

7 years agoRevert "tv_input: add signal detection flag to stream config"
Dongwon Kang [Tue, 3 May 2016 23:37:18 +0000 (23:37 +0000)]
Revert "tv_input: add signal detection flag to stream config"

This reverts commit d15399e13d219c26d68cfe65a24eaf8788503f6b.

Change-Id: I02ef4ac7b796f3380616c08a42ecc4ad2d5e3474

7 years agoMerge "nanohub HAL: define magic value for nanoapp" into nyc-dev
Alexey Polyudov [Mon, 2 May 2016 21:05:11 +0000 (21:05 +0000)]
Merge "nanohub HAL: define magic value for nanoapp" into nyc-dev
am: d6c2deb560

* commit 'd6c2deb560a13a5161742b1cc7026926c03f97bb':
  nanohub HAL: define magic value for nanoapp

Change-Id: Ibad10d3924210fd72897fab7f76fa204e1cd6df3