Commit graph

1662 commits

Author SHA1 Message Date
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
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
Nick Vaccaro
8264af903a am aa13433c: am c384b186: Don\'t pass up bad sensor event packets to Sensor Services
* commit 'aa13433c89d720d4b707e2e14110688d8b733e35':
  Don't pass up bad sensor event packets to Sensor Services
2014-06-11 21:48:40 +00:00
Nick Vaccaro
aa13433c89 am c384b186: Don\'t pass up bad sensor event packets to Sensor Services
* commit 'c384b1863768d424116c1bcc7f26f5764c35c330':
  Don't pass up bad sensor event packets to Sensor Services
2014-06-11 19:53:01 +00:00
Nick Vaccaro
c384b18637 Don't pass up bad sensor event packets to Sensor Services
If an event packet is read containing an unknown sensor handle,
don't pass it on to Sensor Services. Drop it on the floor instead
as it's causing Sensor Services to crash.

Moved read of queue size in sensors_poll_context_t::poll() to post
queue mutex grab for safety.

Bug: 15285345
Change-Id: I2ebc0f8591a1ae60f09bf9599b8321c5a3dfae69
2014-06-11 10:42:07 -07: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
Stewart Miles
ffccd84656 am 10f1a806: Fixed submix buffering when input and output stream formats differ.
* commit '10f1a806e6537835de7f71dbc05db1889436732e':
  Fixed submix buffering when input and output stream formats differ.
2014-06-11 11:24:56 +00:00
Stewart Miles
10f1a806e6 Fixed submix buffering when input and output stream formats differ.
When channel conversion is enabled and the pipe is opened with less channels
(e.g 1) than the output stream's channels (e.g 2) the input stream's buffer
size was calculated incorrectly which resulted in the input stream buffer size
being larger than the output stream buffer size in terms of time.  This
changes the pipe size to take into the account maximum frame size so the
output stream buffer size will be greater or equal to the input stream buffer
size.

In addition, if the pipe is created when the input stream is opened and the
output stream is opened at a different sample rate (e.g input = 8KHz,
output = 48Khz) the pipe will incorrectly rate limit writes to the pipe
resulting in gaps of silence in the data read from the pipe by the input
stream.

Bug: 15291446
Change-Id: I01480edff7ef3a199f509866c1e95ecd4c437a92
2014-06-10 11:04:40 -07: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
09bdd1ab25 Merge "sound trigger test/stub HAL - WIP" 2014-06-05 15:46:43 +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
cbca9056de sound trigger test/stub HAL - WIP
Change-Id: Ie8120df144662b12bba41e2346bac3ce816f9838
2014-06-04 14:34:43 -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
Jinsuk Kim
5fa7fb99b0 Merge "Header file for MHL HAL interface definition" 2014-05-31 21:21:10 +00:00
Jinsuk Kim
fb09811c30 Header file for MHL HAL interface definition
Added MHL(Mobile High-definition Link) HAL definition to provide
interface between the hardware driver and the HdmiControlService
which also talks to HDMI-CEC HAL. They are both based on HDMI signal
specification.

MHL version 2.0 and above is supported.

Change-Id: Idcdfa1a61abfbf63bf838f6efe8b037fb32764ee
2014-05-31 06:51:39 +09:00
Zhijun He
bbfe583be5 Merge "Camera2: Build both 32 and 64 bit test binaries" 2014-05-30 17:58:59 +00:00
Zhijun He
32282973ba Camera2: Build both 32 and 64 bit test binaries
Change-Id: I6efd201a52bb546efa59ff0a5178a25a040654b4
2014-05-30 10:02:59 -07: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
c8bb8fd2b4 am ced2c37d: (-s ours) DO NOT MERGE: Add audio info to tv_input
* commit 'ced2c37d0579d9182c6b44fd50419209613c8c0a':
  DO NOT MERGE: Add audio info to tv_input
2014-05-29 09:43:35 +00: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
Eric Laurent
dcb36903aa am 060a115f: (-s ours) DO NOT MERGE - audio: audio HAL extension for routing and volume control
* commit '060a115f44bb458a73e6540bcd890b5ab44bd7bc':
  DO NOT MERGE - audio: audio HAL extension for routing and volume control
2014-05-29 00:42:18 +00:00
Eric Laurent
924bab32de am a906a33d: (-s ours) DO NOT MERGE - audio HAL: add minimum supported version
* commit 'a906a33d3045019cbc1502c3e53686b06d6302d9':
  DO NOT MERGE - audio HAL: add minimum supported version
2014-05-29 00:42:10 +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
Eric Laurent
73b8a7414a 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-22 18:24:02 -07:00