Power: Add multimedia hints

Add hints for video encode and decode use cases. These
hints are sent when the relevant use case starts and ends.
Clients can also send metadata along with the hint to provide
context to the power HAL so that it can make more informed
decisions about how to tweak system-level parameters.

Bug: 9325608
Change-Id: I4731acbe50a7401a95ec9231c4e1a4795098fcd4
Signed-off-by: Iliyan Malchev <malchev@google.com>
libhardware: deprecate POWER_HINT_VIDEO_ENCODE/_DECODE

Bug: 9581070
Change-Id: Ifb47ed0d4fc201732ca6593d41317ec356ead2ba
Signed-off-by: Iliyan Malchev <malchev@google.com>
merge in jb-mr2-zeroday-release history after reset to jb-mr2-dev
Enable native HAL tests to work for camera3 devices

Change-Id: Ie11270cc8cf301ec94795b595f0517ee3bad2817
merge in jb-mr2-zeroday-release history after reset to jb-mr2-dev
Bluetooth: Security: Handle authentication rejected error status

Handle authentication rejected error status in failure scenario.

Change-Id: Ibd59d161ee5481ced2cb078a6ee6f4a6b045bcd4
CRs-Fixed: 516087
Merge remote-tracking branch 'cm/cm-10.2' into cm-10.2
usbaudio: Make the USB audio HAL actually work.

 * Set a default device if none is set.
 * Shush some logging.
 * Only use the mmap interface on QCOM devices.

Change-Id: I790a6733e85b169e645e020fa92608a0d4fea3c2
Merge remote-tracking branch 'cm/cm-10.2' into cm-10.2
usbaudio: Provide a way to hardcode the card id

 * Some devices will have secondary sound cards for things like SPDIF.
 * Let's provide a way to hardcode the correct value for now until we
   have framework support for doing this correctly.

Change-Id: I6f3396692f1acc1602491e3a3befea8e04b6c9cf
Merge remote-tracking branch 'cm/cm-10.2' into cm-10.2
Merge tag 'android-4.3_r2.2' of https://android.googlesource.com/platform/hardware/libhardware into cm-10.2

Android 4.3 release 2.2

Change-Id: I224a6f5c72e7def81f4c7b89bdaf44bf1a920643
Merge remote-tracking branch 'cm/cm-10.2' into cm-10.2
Irda: Added IrDA HAL Library

This HAL is supposed to be generic in the long term, and at the
very least, works on other Samsung devices such as n80xx.

Change-Id: I6521f4b4fd4822381d941a83581d4bce942e41a8
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
Bluetooth: Add BT_PROPERTY_REMOTE_TRUST_VALUE in BT property

Add the above property for device trust feature in bluetooth.

Change-Id: Ieab0dd140ac6080551f162a0517552bd469204f2
CRs-fixed: 523135
Merge remote-tracking branch 'cm/cm-10.2' into cm-10.2