Commit graph

673 commits

Author SHA1 Message Date
Hemant Gupta
4d8645547d [1/2] Bluetooth: Security: Handle authentication rejected error status
Handle authentication rejected error status in failure scenario.

Change-Id: Ibd59d161ee5481ced2cb078a6ee6f4a6b045bcd4
2014-06-29 11:53:55 -07:00
Andre Eisenbach
9ef3c72ef3 LE: Add notification sent and congestion callbacks (1/4)
This change introduces two new callbacks for applications to better
handle LE notification flow control and transport congestion. The
notification callback is invoked when the remote platform confirms an
indication or when a local notification has been passed to the
controller. No new notifications should be sent until a callback is
received.

Congestion callbacks are triggered when a GATT operation cannot be sent
to the local Bluetooth controller. Repeatedly calling
writeCharacteristic() for example will eventually trigger a congestion
callback. Applications cannot send additional data until a further
callback is received, indicating that the congestion has cleared up.

Change-Id: I613cbf968770921f853a407888bb8308849039f3
2014-06-25 14:00:30 -07:00
Andre Eisenbach
0d553bc12f LE: Add is_connected() function (1/3)
Change-Id: I1b94ab0c8b0ff2e1026a4f5bbe95dca25be3d104
2014-06-19 11:32:12 -07:00
Jim Miller
953524b2bd Minor cleanup of HAL fingerprint API
Change-Id: I7a4b1caadfe499d2394c8645e45903759b672e8b
2014-06-16 21:06:13 -07:00
Wonsik Kim
ace6d32dd7 Merge "tv_input: Add HDMI port ID" 2014-06-10 22:29:12 +00:00
Wonsik Kim
45849fb74e tv_input: Add HDMI port ID
Bug: 15570939
Change-Id: Id15ef9dbc79cd9c4f55be1eb114d66e08dfe923d
2014-06-13 11:47:08 +09:00
Ganesh Ganapathi Batta
460343a1b5 Add support for retrieving local LE features via get_adapter_properties
Change-Id: I337614aa96ec08f631667dc4a18b4e5c993a79b1
2014-06-12 01:34:38 +00:00
Sasha Levitskiy
da105cd382 Merge "HAL: Fingerprint: Incremental scan notification." 2014-06-10 22:12:51 +00:00
Sasha Levitskiy
ba45e05a6a HAL: Fingerprint: Incremental scan notification.
Change-Id: If943fe6b46a8261ca936e07a36e11c10c7e6d63a
Signed-off-by: Sasha Levitskiy <sanek@google.com>
2014-06-11 10:17:25 -07:00
Zhijun He
5f36d1af13 Merge "hardware: camera_common: add module open legacy device API" 2014-06-10 21:32:31 +00:00
Zhijun He
bcdebf37fb hardware: camera_common: add module open legacy device API
This adds the module API to open a camera device as lower HAL version legacy
device.

Change-Id: I6616aebc5ec0cef28f675e5dddb334dc6b5dfea9
2014-06-13 11:44:19 -07:00
Mike Lockwood
21e50b1898 Use separate HAL interfaces for A2DP source and sink roles.
Both use the same structs for APIs and callbacks, but now
source and sink mode can operate independently with separate
Bluetooth profile services in the framework.

An extra callback btav_audio_config_callback is used for reporting
audio configuration for A2DP sink role

Change-Id: I6e8172b66ff95e61721d1c35790609b7ae2be030
2014-06-13 09:09:58 -07:00
Mike Lockwood
7da4cb8b6f Move AVRCP controller support to a different HAL interface
This allows us to add a new BluetoothProfile subclass for
the AVRCP controller role independent of the existing AVRCP target support.

Change-Id: I504bbf58a88808d1a884266992ae0c635c62aca1
2014-06-13 09:09:58 -07:00
Hemant Gupta
1beebfc39b Add Support for AVRCP Controller Feature
- Provide support for AVRCP Controller CAT 1 and CAT 2
    passthrough commands.

Change-Id: If437a3bbd1e97d22e5ceddf0d052dbaad1093257
2014-06-13 09:09:57 -07:00
Mike Lockwood
5735b772ee Merge "Bluetooth: Add support for HFP Client role." 2014-06-12 17:09:07 +00:00
Hemant Gupta
e7737c81e8 Bluetooth: Add support for HFP Client role.
Implementation changes in HAL for HFP Client role.
Include HFP Client Interface ID.

Change-Id: I1117c6a0c53e7e7059e46711f7a26639d2bbaee3
2014-06-12 13:20:32 -07:00
Aravind Akella
457265f5c0 Merge "Add sensor flags for reportingMode." 2014-06-12 05:34:42 +00:00
Aravind Akella
c841efdc36 Add sensor flags for reportingMode.
Change-Id: Ife456dd13264bafa7cd50d72b8818526030d7a3e
2014-06-12 14:49:09 -07:00
Sharvil Nanavati
3bd8cba787 Add callouts for bluedroid to acquire wake locks and set wake alarms.
Since bluedroid is running outside of system_server, it does not have
the necessary Linux capabilities or filesystem permissions to access
/sys/power/wake_* and /dev/alarm (or any other wake alarm). This change
provides a mechanism by which bluedroid can call back up into Java code
and use the standard Android APIs to get wake locks / wake alarms.

Change-Id: I714fd394224d38da5ff0f82de5559599d522010b

Conflicts:
	include/hardware/bluetooth.h
2014-06-12 14:01:25 -07:00
Prashant Malani
0f0b6d5ccb Merge "hwcomposer: Add function pointer for setPowerMode() callback" 2014-06-10 21:44:22 +00:00
Prashant Malani
02b31986cb hwcomposer: Add function pointer for setPowerMode() callback
The blank HWC call is being replaced by a setPowerMode() call.
This incorporates all of the blank functionality, but provides added
support for display low power modes, if they are available in hardware.

Currently there are three supported modes:
- HWC_POWER_MODE_OFF    : Turn screen off.
- HWC_POWER_MODE_DOZE   : Put screen in low power mode.
- HWC_POWER_MODE_NORMAL : Turn screen on, and exit low power mode (if
                          display was previously in low power mode).

Where applicable, the device driver is expected to retain and restore
the low power mode state of the display during entry and exit from
suspend, respectively.

Bug: 13472578
Change-Id: I743ea3a2cb58247d14d7c47158b09a5309cca710
Signed-off-by: Prashant Malani <pmalani@google.com>
2014-06-12 17:11:03 +00:00
destradaa
f48cc67fcf IPv6 support for GPS HAL.
Change-Id: Ieb5aead647c10ed42e50bef9c4d7cd558fe7160b
2014-06-10 10:38:53 -07:00
Dan Stoza
cbdd561911 Merge "hwcomposer: Correct padding for 32/64-bit" 2014-06-06 17:23:17 +00:00
Eric Laurent
7bb04adc53 Merge "added sound trigger HAL." 2014-06-05 01:09:46 +00:00
Dan Stoza
91699a82eb hwcomposer: Correct padding for 32/64-bit
The size of hwc_layer_1_t varies depending on whether we're building
for a 32- or 64-bit target. This change splits the padding into two
sections so that we can add more fields without changing the overall
size on either bitness.

Change-Id: Ib7c960a9feb0061586dc6398211d7d3dc012d573
2014-06-04 16:10:46 -07:00
Eric Laurent
46bbe8a782 added sound trigger HAL.
Defined HAL for hardware voice and sound activity
activity detection (sound trigger).

Change-Id: I04f3c770c69a81245e8a15dd9e097e2c3f5ef069
2014-06-04 14:34:06 -07:00
Aravind Akella
80efde7c11 Merge "Replace integer constants with strings in Activity Recognition HAL." 2014-06-03 17:21:37 +00:00
Aravind Akella
871b748733 Replace integer constants with strings in Activity Recognition HAL.
Change-Id: I67d543869f5870f9e771c36c0fe1d58e7495ca57
2014-06-03 01:37:50 +00:00
Etienne Le Grand
2ec41a17b2 Merge "Rewording of tilt sensor" 2014-05-30 02:42:58 +00:00
Etienne Le Grand
426f14df08 Rewording of tilt sensor
Change-Id: I7bb0e63c3e1e6850359d7e690bfeea9e8c8fbcbf
2014-05-29 19:35:48 -07:00
Wonsik Kim
ced2c37d05 DO NOT MERGE: Add audio info to tv_input
Bug: 15177175
Change-Id: I5d3d710753065f108a5346237fbb9a1880f7c08d
(cherry picked from commit 8b5714fe2f)
2014-05-29 02:38:26 +00:00
Wonsik Kim
2fb5dc4813 Merge "Add audio info to tv_input" 2014-05-29 02:26:06 +00:00
Zhijun He
7b4c58e8f0 am 5f3b7da7: Merge "camera3: Update FULL/LIMITED operational modes" into lmp-preview-dev
* commit '5f3b7da796c638591c27dfdf04f2c1cd85791d5b':
  camera3: Update FULL/LIMITED operational modes
2014-05-29 00:42:27 +00:00
Zhijun He
5f3b7da796 Merge "camera3: Update FULL/LIMITED operational modes" into lmp-preview-dev 2014-05-28 22:46:28 +00:00
Etienne Le Grand
6b007d084d Merge "Update starting gravity of tilt definition" 2014-05-28 22:46:27 +00:00
Etienne Le Grand
53017efa7b Update starting gravity of tilt definition
Change-Id: I9be79fe264b8a751757a2b6840b7ff928679028d
2014-05-28 15:42:48 -07:00
Zhijun He
1ab5c5e037 camera3: Update FULL/LIMITED operational modes
Change-Id: I2a76361868a2ab3cc1dafb08905d5f5d53052a6d
2014-05-28 15:25:42 -07:00
Eric Laurent
060a115f44 DO NOT MERGE - audio: audio HAL extension for routing and volume control
Added audio HAL functions to control audio routing and audio gain.
Audio HALs above version 3.0 must implement these functions.
These functions will be used by the framework instead of
out_set_parameters("routing"=XXX) for device selection on an output
or input stream.
They will also allow direct connection of input devices to output devices
as well as gain control on devices or streams.

The gain or routing capabilities are exposed in audio_polciy.conf file.

Change-Id: Ic293fd41d492e38e86bdc35e3ad93aa5deb0b48f
2014-05-28 14:03:59 -07:00
Eric Laurent
a906a33d30 DO NOT MERGE - audio HAL: add minimum supported version
Add a definition for the minimum audio HAL version supported
by the audio framework.

Change-Id: Id7df440cc9fcc23b27b61c81bacb569599a20c13
2014-05-28 14:03:22 -07:00
Mike Lockwood
2d4d96574e audio: add AUDIO_PARAMETER_A2DP_SOURCE_ADDRESS parameter name
Change-Id: I6eedc25ed16be82a7a875d13774f31a47f0f9443
2014-05-28 11:09:54 -07:00
Etienne Le Grand
7b7b4cb433 am ec9236ef: am ef2c616c: Merge "Update definition of the heart rate monitor to include confidence" into klp-modular-dev
* commit 'ec9236ef18e13b40a1b28aa05b4d5f483cc6ab74':
  Update definition of the heart rate monitor to include confidence
2014-05-27 18:14:50 +00:00
Etienne Le Grand
ec9236ef18 am ef2c616c: Merge "Update definition of the heart rate monitor to include confidence" into klp-modular-dev
* commit 'ef2c616c4e45eaa1e621aa69bffb7438b1c64755':
  Update definition of the heart rate monitor to include confidence
2014-05-27 18:10:16 +00:00
Etienne Le Grand
ef2c616c4e Merge "Update definition of the heart rate monitor to include confidence" into klp-modular-dev 2014-05-27 18:03:06 +00:00
Matthew Xie
d34c7d3d1a Revert "bt: add interface function to provide wakelock access"
This reverts commit 19f3696f85.
2014-05-23 17:07:19 -07:00
Dmitry Grinberg
fb8326e77e am b752c08d: am 19f3696f: bt: add interface function to provide wakelock access
* commit 'b752c08d1366155783894accf75fd65548b101ff':
  bt: add interface function to provide wakelock access
2014-05-23 21:38:38 +00:00
Dmitry Grinberg
b752c08d13 am 19f3696f: bt: add interface function to provide wakelock access
* commit '19f3696f852d6787076b70a7d31f5684ad2aa93f':
  bt: add interface function to provide wakelock access
2014-05-23 21:35:42 +00:00
Etienne Le Grand
7b36158da7 Update definition of the heart rate monitor to include confidence
Change-Id: I88a8cddf647f77588a283c16d37f3f99ecda3115
2014-05-23 13:07:08 -07:00
Wonsik Kim
8b5714fe2f Add audio info to tv_input
Bug: 15177175
Change-Id: I5d3d710753065f108a5346237fbb9a1880f7c08d
2014-05-23 17:22:04 +09:00
Zhijun He
0677eae8d8 am f1ee67e1: camera3: Update the HAL spec for raw cropping behavior
* commit 'f1ee67e1ea6d55e4621bbd418c15fdc1aac32a84':
  camera3: Update the HAL spec for raw cropping behavior
2014-05-23 04:00:26 +00:00
Dmitry Grinberg
19f3696f85 bt: add interface function to provide wakelock access
Change-Id: I7ea173aee49ae7fdfe81a24a9b3666efc1c29ed4
2014-05-22 19:26:25 -07:00