OSDN Git Service

android-x86/hardware-libhardware.git
3 years agoMerge remote-tracking branch 'cm/cm-14.1' into cm-14.1-x86 cm-14.1-x86
Chih-Wei Huang [Sun, 14 Feb 2021 13:32:54 +0000 (21:32 +0800)]
Merge remote-tracking branch 'cm/cm-14.1' into cm-14.1-x86

3 years agoUpdate the signature of init function to include whether the device is an ATV
Rahul Sabnis [Tue, 4 Aug 2020 21:17:15 +0000 (14:17 -0700)]
Update the signature of init function to include whether the device is an ATV

Bug: 157038281
Test: Manual
Change-Id: I1685c4318c27e8dcca5f7a696fe9e1f8bf594b9d
(cherry picked from commit 247c6468242308f853f778c9af4ffa0ff63053ef)

6 years agoMerge remote-tracking branch 'x86/nougat-x86' into cm-14.1-x86
Jaap Jan Meijer [Tue, 8 Aug 2017 15:31:22 +0000 (17:31 +0200)]
Merge remote-tracking branch 'x86/nougat-x86' into cm-14.1-x86

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 agoMerge tag 'android-7.1.2_r2' into cm-14.1
Dan Pasanen [Wed, 5 Apr 2017 12:25:23 +0000 (07:25 -0500)]
Merge tag 'android-7.1.2_r2' into cm-14.1

Android 7.1.2 Release 2 (N2G47E)

# gpg: Signature made Mon 03 Apr 2017 01:41:48 AM CDT
# gpg:                using DSA key E8AD3F819AB10E78
# gpg: Can't check signature: No public key

7 years agoMerge tag 'android-7.1.1_r21' into cm-14.1
Dan Pasanen [Fri, 24 Feb 2017 00:42:51 +0000 (18:42 -0600)]
Merge tag 'android-7.1.1_r21' into cm-14.1

Android 7.1.1 release 21

# gpg: Signature made Wed 01 Feb 2017 04:40:18 PM CST
# gpg:                using DSA key E8AD3F819AB10E78
# gpg: Can't check signature: No public key

7 years agohardware: power: Remove POWER_HINT_LAUNCH_BOOST
Zhao Wei Liew [Thu, 2 Feb 2017 00:55:35 +0000 (08:55 +0800)]
hardware: power: Remove POWER_HINT_LAUNCH_BOOST

This is superseded by AOSP's POWER_HINT_LAUNCH.

Change-Id: I25fa000b6efa30934dc42f843b31b3bf304ca7e0
Issue-Id: LINN-6

7 years agohardware: power: Remove POWER_HINT_AUDIO
Zhao Wei Liew [Thu, 2 Feb 2017 00:55:13 +0000 (08:55 +0800)]
hardware: power: Remove POWER_HINT_AUDIO

We have not used this in a long time.

Change-Id: I17936bd4d83af9fb8f1f91e841c30f03a7b36f6a

7 years agoRevert "power: Add support for camera preview in powerHAL"
Zhao Wei Liew [Thu, 2 Feb 2017 00:51:53 +0000 (08:51 +0800)]
Revert "power: Add support for camera preview in powerHAL"

This is no longer (was never?) used by CAF and by us.

This reverts commit 1a2852c6e90a0ecfaa140e4ee6edd8e4da03de74.

Change-Id: I91efa3705525f309cf11cf38ba2d32273bf6f3ca

7 years agogralloc1: getphys implementation for samsung OMX
Simon Shields [Sun, 30 Oct 2016 00:57:35 +0000 (11:57 +1100)]
gralloc1: getphys implementation for samsung OMX

Change-Id: I58ea60dab005e0470d9f6aecc4071964c600567c

7 years agoDim Layer color parameter should only be used for qcom.
Aaron Kling [Sat, 10 Sep 2016 03:53:02 +0000 (22:53 -0500)]
Dim Layer color parameter should only be used for qcom.

Change-Id: I7abe760df5a6660933bd1d920386823b8bfcd9a0

7 years agolibhardware: Only support tertiary display in QTI_BSP is defined
Abhisek Devkota [Tue, 20 Oct 2015 22:43:54 +0000 (15:43 -0700)]
libhardware: Only support tertiary display in QTI_BSP is defined

Non-caf display hals crap out with this

Change-Id: I85390a818ee074dd4bdf637976a3c010a67764ac

7 years agoMemory leak fix during sensor HAL initialization
Dhruva Krishnamurthy [Tue, 30 Aug 2016 13:45:14 +0000 (06:45 -0700)]
Memory leak fix during sensor HAL initialization

Change-Id: If8833dd1285f33498277c10b0e1fd0a1269284a0
(cherry picked from commit 7659cdd34d33498b3e172730a888f8ea793e1ef3)

7 years agopower: Add support for camera preview in powerHAL
Dilip Gudlur [Sat, 15 Aug 2015 02:30:13 +0000 (19:30 -0700)]
power: Add support for camera preview in powerHAL

Change adds support for camera preview hint detection
in powerHAL.

Change-Id: I0fff8c99f05d69db15e512c0adc84d612e343d2f

7 years agoaudio: add set_parameters for listen hal
Kiran Kandi [Thu, 17 Oct 2013 22:49:54 +0000 (15:49 -0700)]
audio: add set_parameters for listen hal

Add listen hal specific set parameters function so that Listen
service can call Listen hal directly, by passing audio hal. This
is needed since set_parameters call in audio hal does not guarantee the
correct return value is returned for any parameters set.

Change-Id: I647b9e7f841c8157e4eb597655166ea863a00925

7 years agoLEDs Brightness: Add the libhardware comment indications
AdrianDC [Tue, 15 Sep 2015 20:47:30 +0000 (22:47 +0200)]
LEDs Brightness: Add the libhardware comment indications

Change-Id: I6fe45707c53ff182d103dd03cf79dd453597e9a7
Signed-off-by: AdrianDC <radian.dc@gmail.com>
LEDs Brightness: Update the comment indications

Change-Id: I019450d67fb4e01ba142d1ecd4d1a67cbc2298f6
Signed-off-by: AdrianDC <radian.dc@gmail.com>
7 years agoMultiple LEDs [1/3]: Illumination Bars support
AdrianDC [Tue, 14 Jul 2015 08:48:37 +0000 (10:48 +0200)]
Multiple LEDs [1/3]: Illumination Bars support

Implement the support of a multiple LEDs settings.

The setting is deactivated by default
and will be ignored by the unimplemented phones.
Current LibLights will simply not use the new variable.

Changes includes :
  frameworks/base
  hardware/libhardware
  packages/Apps/Settings

Change-Id: I5242d1999f351909d284b88a8f14accaeb24ba49
Signed-off-by: AdrianDC <radian.dc@gmail.com>
7 years agoremote_submix: Fix resampler and channel conversion
Edward Wang [Mon, 5 Oct 2015 23:23:15 +0000 (16:23 -0700)]
remote_submix: Fix resampler and channel conversion

* Add support for multiple channels to resampler
* Fix out-of-bounds write during channel conversion.
  When pipe stream is stereo and input stream is mono, it will do
  inplace conversion. But the input buffer is only allocated for
  mono channel. Repurpose resampler_buffer for both conversion and
  resampling.

Change-Id: I5a683148317e4fabc1c40b308472f698a8429c6b

7 years agolights: Adding keypad alt/shift LED light IDs
Jason Parker [Mon, 31 Dec 2012 06:24:21 +0000 (00:24 -0600)]
lights: Adding keypad alt/shift LED light IDs

in conjunction with the keyboard light patch for
frameworks/base:
http://review.cyanogenmod.org/77945

Change-Id: Ie97a80d398d474950340cba60c48ba5904978ec5

7 years agoAdd Nfc HAL module ID for NXP NCI PN54x chips
Jizhou Liao [Fri, 1 Aug 2014 17:43:03 +0000 (10:43 -0700)]
Add Nfc HAL module ID for NXP NCI PN54x chips

Change-Id: I4164cbb123050ba44758eb8ac26e6c22df34b8b9

7 years agogralloc: added exynos4 specific usage bits
Daniel Hillenbrand [Wed, 19 Nov 2014 13:21:27 +0000 (08:21 -0500)]
gralloc: added exynos4 specific usage bits

Change-Id: I9252c8a8b8b7122afc9f196aa2e0c6b3829b4b1f

7 years agoaudio: Add audio amplifier HAL
Ethan Chen [Sun, 7 Jun 2015 18:34:30 +0000 (11:34 -0700)]
audio: Add audio amplifier HAL

audio: Notify amplifier HAL of device enable/disable

amplifier: add set_parameters method

- audio hal should pass the audio_device parameters to the amplifier
  to allow the amplifier to make decisions based on the additional
  parameters.  For example, we may want to change settings for DTS
  TrueMedia use case.

audio_amplifier: fix compilation

stdlib.h is needed explicitely with the new
toolchain/toolchain options.

amplifier: Fix compilation warning

* Forward declare str_parms

7 years agopower: Add new power hints
Steve Kondik [Fri, 1 Nov 2013 20:28:10 +0000 (20:28 +0000)]
power: Add new power hints

 * New hint to support CPU boosting with a duration.

libhardware: Add audio power hint

libhardware: Add power hint to set profile

 * A PowerHAL can implement support for this hint to receive
   power profile changes from the framework.

libhardware: Add POWER_HINT_LAUNCH_BOOST for PowerHAL

hardware: Add new getFeature() function to Power HAL

 * The current use case for this is to query the power HAL for
   the number of supported profiles.

hardware: Add definition for launch boost info

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
(cherry picked from commit 3f9a6d3bd97966999fa35b9423b8c0042c8198b3)

7 years agoMerge 3146da1b8d24e910404afc513e5c5f655aff8048 on remote branch
Linux Build Service Account [Thu, 15 Dec 2016 09:53:19 +0000 (02:53 -0700)]
Merge 3146da1b8d24e910404afc513e5c5f655aff8048 on remote branch

Change-Id: Ibd03564c83f5d7bee7367dd71aaecf054892dcff

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 N-MR1 to remote branch.
Naveen Kumar [Wed, 7 Dec 2016 14:28:14 +0000 (19:58 +0530)]
Merge N-MR1 to remote branch.

Change-Id: I7c51b040eeb8a3101a2fe9b49f45c243904549c5

7 years agoMerge commit 'edefe53f8b5ccc2339bec2d8fd9c7516aeb2d319' into remote
Lalit Kansara [Tue, 6 Dec 2016 09:15:23 +0000 (14:45 +0530)]
Merge commit 'edefe53f8b5ccc2339bec2d8fd9c7516aeb2d319' into remote

Conflicts:
include/hardware/bt_hf.h

Change-Id: I46d7cf89a27ecc905edf2005839876b9971abf99

7 years agoMerge ea16a590fa06edc0a77bf60880e6ae81b965a297 on remote branch
Linux Build Service Account [Tue, 6 Dec 2016 07:48:14 +0000 (00:48 -0700)]
Merge ea16a590fa06edc0a77bf60880e6ae81b965a297 on remote branch

Change-Id: I4a09f0d2f909f7d6550def0b16cc7a0b6d208245

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 agoMerge 677f1d3a5a532a2aa5d71293bb4f6a64e3791052 on remote branch
Linux Build Service Account [Mon, 7 Nov 2016 17:33:49 +0000 (10:33 -0700)]
Merge 677f1d3a5a532a2aa5d71293bb4f6a64e3791052 on remote branch

Change-Id: Ibbb03c5d3205dac54888ec302090b2138e3caba2

7 years agoPromotion of android-framework.lnx.2.0.c1-00004.
Linux Build Service Account [Thu, 3 Nov 2016 17:54:30 +0000 (11:54 -0600)]
Promotion of android-framework.lnx.2.0.c1-00004.

CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1074763   I06c6c0986c54f455901f59eaee58ec10a3ae94b5   hardware: Enable Soter for Android N

Change-Id: I8591e479a16f7509dcf0d793d052862966402eeb
CRs-Fixed: 1074763

7 years agoPromotion of android-framework.lnx.2.0-00016.
Linux Build Service Account [Fri, 28 Oct 2016 11:55:04 +0000 (04:55 -0700)]
Promotion of android-framework.lnx.2.0-00016.

CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1074763   I06c6c0986c54f455901f59eaee58ec10a3ae94b5   hardware: Enable Soter for Android N
1076967   Idf5f86c92a8748426cf3368242c08876a48d81dd   HWC2: Redefine retire fence as present fence
1076967   I90234d91858206714e650eadb03227a4a180d975   HWC2: Add SKIP_CLIENT_COLOR_TRANSFORM capability
1035805   I4ff5a0618538fc69ec3ee1d35cf240802a417aa7   audio: add parameter for device shutdown notification

Change-Id: Ibad05a404f237599f776e61060a839ee08c2c24b
CRs-Fixed: 103580510769671074763

7 years agoMerge "hardware: Enable Soter for Android N"
Linux Build Service Account [Wed, 19 Oct 2016 07:05:03 +0000 (00:05 -0700)]
Merge "hardware: Enable Soter for Android N"

7 years agohardware: Enable Soter for Android N
Shivaprasad Hongal [Tue, 18 Oct 2016 23:03:19 +0000 (16:03 -0700)]
hardware: Enable Soter for Android N

Add Soter specific API's and tags.

Change-Id: I06c6c0986c54f455901f59eaee58ec10a3ae94b5

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 agoMerge "audio: add parameter for device shutdown notification"
Linux Build Service Account [Fri, 14 Oct 2016 08:34:02 +0000 (01:34 -0700)]
Merge "audio: add parameter for device shutdown notification"

7 years agoaudio: add parameter for device shutdown notification
Bala Kishore Pati [Mon, 10 Oct 2016 14:09:28 +0000 (19:39 +0530)]
audio: add parameter for device shutdown notification

- Add new define to receive device shutdown notification

Change-Id: I4ff5a0618538fc69ec3ee1d35cf240802a417aa7

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 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
(cherry picked from commit d2168f7e471f07d4f9ea02e65357c83fbde13932)

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
(cherry picked from commit ef264828fe1c3801ade282221cd270d293cffbde)

7 years agomerge in nyc-mr1-release history after reset to nyc-mr1-dev
gitbuildkicker [Sun, 18 Sep 2016 07:07:25 +0000 (00:07 -0700)]
merge in nyc-mr1-release history after reset to nyc-mr1-dev

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 agohardware/libhw: Add S3D format definitions
Ray Zhang [Fri, 5 Aug 2016 07:32:48 +0000 (15:32 +0800)]
hardware/libhw: Add S3D format definitions

S3D video has various format like left/right and top/bottom,
and this definition will be shared by hardware composer and
its client.

Change-Id: I7b5a7d9786052081bede3436177db212122b9228
CRs-fixed: 999055

7 years agoBluetooth: Introduced new HAL directory for VS interface
Manu Viswanadhan [Tue, 12 Jul 2016 11:26:39 +0000 (16:56 +0530)]
Bluetooth: Introduced new HAL directory for VS interface

Introduced new HAL directory for all vendor specific interface
implementations. This helps in keeping original HAL untouched
with respect to vendor specific changes.

CRs-Fixed: 1046976
Change-Id: I1ab63e098d1e33bef2a8f84db47af846bee4cd84

7 years agoBluetooth: Add Reconfigure A2dp notification callback
pramod kotreshappa [Tue, 10 May 2016 18:09:11 +0000 (11:09 -0700)]
Bluetooth: Add Reconfigure A2dp notification callback

-Add reconfigure a2dp notification callback when soft handoff
is triggered in BT stack to notify audio manager that BT stack
has initiated soft handoff.
-Add offload capability parameter in init to configure split
a2dp

Change-Id: Id102052481a43c39ef0e3d4b6015acac94073df2

7 years agohwc: Add color member for Dim Layer
Sushil Chauhan [Mon, 25 Jul 2016 23:17:17 +0000 (16:17 -0700)]
hwc: Add color member for Dim Layer

SF client can set RGBA color on a Dim Layer. Black is default color.

CRs-Fixed: 1047307
Change-Id: Ia4586082e8e355ae5a402f91ed533cf5efa25ff7

7 years agoBluetooth: Introduced new interface for handling VS implementations
Manu Viswanadhan [Mon, 6 Jun 2016 10:48:03 +0000 (16:18 +0530)]
Bluetooth: Introduced new interface for handling VS implementations

Introduced new interface for handling vendor specific implementations

Created an API in the vendor interface that initiates SSR cleanup
that will be called in the case of enable and disable timeout.
SSR cleanup is called when the Bluetooth shuts down abruptly.
It sends vendor power OFF to the controller so that the next
startup occurs properly.

Created an API in the vendor interface that will be called while
transitioning from TURNING_OFF to BLE_ON, which cleanup the BREDR
profiles (from the btif layer). A callback is initiated from btif
layer which is redirected by the interface to the original implementation
of stopping the BREDR profiles. Also, since the cleanup for BREDR
profiles in the btif layer already happened during transition to
BLE_ON , the cleanup during BLE_TURNING_OFF to OFF is limited to
BLE profiles.

CRs-Fixed: 1027562
Change-Id: Iab74062bc6352961b65a8d4fa62785bc6c2610d6

7 years agoEnable Sink with multicast
Venkateshwarlu Domakonda [Wed, 1 Jun 2016 13:27:26 +0000 (18:57 +0530)]
Enable Sink with multicast

Enable support for sink with multicast.

Change-Id: I150170a689084d79908b30293d66d293d4f3ebaa

7 years agoRevert "Revert "Bluetooth: Add support for Qual tool""
Matadeen Mishra [Thu, 12 May 2016 04:21:17 +0000 (21:21 -0700)]
Revert "Revert "Bluetooth: Add support for Qual tool""

This reverts commit 12ec9b2e94ae4de7e39f68ca15b4e21e255ed9b5

Change-Id: Ie78c73b7da32434d62049e46935fb64de4d76b38
CRs-Fixed: 884479

7 years agoAVRCP(T): Add support for AVRCP 1.6
Sumit Bajpai [Tue, 25 Aug 2015 12:15:57 +0000 (17:45 +0530)]
AVRCP(T): Add support for AVRCP 1.6

This patch adds supports for following AVRCP 1.6 target features:
    - Get Total Number of Items
    - Cover Art Feature

Change-Id: I943ba312bc80b89d4478fc96beb494069720a1f9
CRs-Fixed: 715683

7 years agolibhardware: add support for tertiary display
Vinu Deokaran [Mon, 20 Jul 2015 18:13:36 +0000 (14:13 -0400)]
libhardware: add support for tertiary display

The legacy HWC header only supports Primary and External, we need
to support Tertiary display for automotive project.

Change-Id: I37637bf6c3ec341b9174a9f488b8bf06e0011733

7 years agohardware/libhw: Add display_defs.h to declare custom enums/flags
Arun Kumar K.R [Thu, 3 Dec 2015 02:58:50 +0000 (18:58 -0800)]
hardware/libhw: Add display_defs.h to declare custom enums/flags

hwcomposer: Add HWC_BLIT compositiontype value
- HWC_BLIT this layer will be handled in the HWC, using a
  blit engine
- setting this will inform Surfaceflinger to flip FB_TARGET
 change-Id: I25d19ec41b57863d451c3e390109c912faf1381c

libhardware: Disable rotation animation on External
- Added two new flags to used to inform HWC about rotation
  and roation animation to HWC
- This is used to disable rotation animation on external
 change-Id: I05a9796781dcda088ae6cd64481cd4e581d5cf9e

Change-Id: Idbc7e43d4fa8ec2299b4c7ee8378a1afd710cdf1

7 years agoBluetooth: A2dp soft hands-off support
Gaurav Asati [Thu, 14 Aug 2014 10:00:52 +0000 (15:30 +0530)]
Bluetooth: A2dp soft hands-off support

This patch adds A2dp soft hands-off support
in HAL.Adds bd_addr parameter for callbacks
from stack.

Change-Id: I0eee74fb094f00218a8e7ce342284cd9f7d2e791

Bluetooth: Add callback for A2dp multicast.

 - Change method signature to enable/disable multicast
 - Add callback to update apps for A2dp multicast state

Change-Id: Iaae8bab1bde3e565163002271cde89a012ee8be7

BT: Introduce Callback to update Avrcp on connection state change

Introduce Callback to update Avrcp TG App on connection state change.

CRs-Fixed: 843335
Change-Id: I154d26b5dc9fa7d2cd646d51c0851b87b5cca9d9

Bluetooth: Add interface to fetch active device in Handoff scenario

Add interface to fetch active device in Handoff scenario.

CRs-Fixed: 856063
Change-Id: I1a2d7725d7a999acd7a0f0890fc9a335afeb27b0

7 years agoAVRCP 1.5 Implementation.
Ayan Ghosh [Fri, 25 Jul 2014 11:41:58 +0000 (17:11 +0530)]
AVRCP 1.5 Implementation.

AVRCP 1.5 Implementation

Change-Id: Ib3435429c58a70ba7235a20712e6d73de62a147e

7 years agosensors: use proper name for sensor hal lib
Ananda Kishore [Thu, 12 May 2016 07:08:12 +0000 (12:38 +0530)]
sensors: use proper name for sensor hal lib

Use TARGET_BOARD_PLATFORM to have common name
for 32bit and 64bit variants.

Change-Id: I1a26fbf735d1a802a974423770507c1dba218f60

7 years agoBluetooth: Header file changes to add new APIs for Test APK
Srinu Jella [Fri, 6 Dec 2013 11:03:53 +0000 (16:33 +0530)]
Bluetooth: Header file changes to add new APIs for Test APK

New APIs added to send to test commands and recevie events
from bluedroid stack

Change-Id: Ibb161b09ef602a6c4e27d38a4c27a45331e1d381
CRs-Fixed: 598650

7 years agoRevert "Bluetooth: Add support for Qual tool"
Arusha Goyal [Mon, 9 May 2016 12:17:08 +0000 (05:17 -0700)]
Revert "Bluetooth: Add support for Qual tool"

This reverts commit 082dd24eacbb1e71ef72535ca65a71b6d0a4b083

Change-Id: I9fa8ee8dbc3177b38037889782af761dde143076

7 years agoBluetooth: Add Get/Set socket option prototypes (1/4)
Srinu Jella [Thu, 12 Sep 2013 12:29:45 +0000 (17:59 +0530)]
Bluetooth: Add Get/Set socket option prototypes (1/4)

Get/set socket option function prototypes added

CRs-Fixed: 557180
Change-Id: Iff7ff159c8cf765416b00ac504fe345492d05088

7 years agoBluetooth: Cleanup BREDR profiles before stopping
Manu Viswanadhan [Tue, 22 Mar 2016 14:30:51 +0000 (20:00 +0530)]
Bluetooth: Cleanup BREDR profiles before stopping

Root cause: Profiles while stopping as part of transition
from TURNING_OFF to BLE_ON does cleanup, assuming the cleanup
is already done in the stack for the services. But as per the current
implementation all stack level cleanup takes place during BLE_TURNING_OFF
to OFF transition.

Fix: We are posting a property from AdapterProperties while transitioning
from TURNING_OFF to BLE_ON which leads to cleanup of BREDR profiles
(from the btif layer). A callback is initiated from btif layer which
redirects it to the original implementation of stopping the BREDR profiles.
Also, since the cleanup for BREDR profiles in the btif layer already
happened during transition to BLE_ON , the cleanup during BLE_TURNING_OFF
to OFF is limited to BLE profiles.

CRs-Fixed: 984981
Change-Id: Id1f6417945da0495cf3abd004c61464ebdeb5f50

7 years agoBluetooth: HID: Add support for Set Idle and Get Idle commands
Hemant Gupta [Tue, 30 Jul 2013 10:43:46 +0000 (16:13 +0530)]
Bluetooth: HID: Add support for Set Idle and Get Idle commands

This patch adds the relevant callback prototyps for Set Idle and
Get Idle which is used for setting idle time on HID devices.

Change-Id: I4c528a510edd847bc6121ce0b875ae313f090b9c
CRs-Fixed: 522511

7 years agoBluetooth: Add support for Qual tool
Sunny Kapdi [Fri, 8 Apr 2016 18:12:01 +0000 (11:12 -0700)]
Bluetooth: Add support for Qual tool

Change-Id: I4506a5abb39582369eddeee71c826615a0a4c2db

7 years agoBluetooth: Add support for AT+CGMI and AT+CGMM
Satish Kodishala [Wed, 6 May 2015 13:55:42 +0000 (19:25 +0530)]
Bluetooth: Add support for AT+CGMI and AT+CGMM

Added new APIs to be able to upstream the manufactrer
identification and manufacturer model from BT stack to
HF client state machine.

CRs-fixed: 844824
Change-Id: I0bc61e429930468fba71d7edd7efe54bfe7729b3

7 years agoBT:[2/3] Send VSC to SOC for VOIP connectivity network type.
Sumit Bajpai [Tue, 9 Jun 2015 13:16:04 +0000 (18:46 +0530)]
BT:[2/3] Send VSC to SOC for VOIP connectivity network type.

- Add interface for passing voip network wifi type info to btif.

CRs-Fixed: 821566
Change-Id: Ie790415f181184cc79cf700c2faceeb0a2981d7b

7 years agoBT-HFP: HFP1.7 AG support
Sumit Bajpai [Fri, 9 Jan 2015 09:18:00 +0000 (14:48 +0530)]
BT-HFP: HFP1.7 AG support

Added interfaces to communicate HF indicators
information to application.

CRs-fixed: 715684
Change-Id: Iab63acef89aa9e36f04e46dbd9f869d7f0f8949e

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 in nyc-mr1-release history after reset to nyc-mr1-dev
gitbuildkicker [Wed, 20 Jul 2016 08:06:26 +0000 (01:06 -0700)]
merge in nyc-mr1-release history after reset to nyc-mr1-dev

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)