OSDN Git Service

android-x86/hardware-libhardware.git
12 years agoAdd specific version number constants to Camera HAL.
Eino-Ville Talvala [Tue, 27 Mar 2012 23:15:25 +0000 (16:15 -0700)]
Add specific version number constants to Camera HAL.

These constants should be used by HAL implementations to indicate
which versions of the module and device APIs they support.

Change-Id: I4b6eae278481545694e6a1827833b5958c26720c

12 years agoadd support for setting the background color
Mathias Agopian [Fri, 3 Feb 2012 23:54:11 +0000 (15:54 -0800)]
add support for setting the background color

this is a revision of the h/w composer API. This change
is binary backward compatible.

Change-Id: Id4cf43447594db9049f7e2c44ea08157ca725129

12 years agoUse frameworks/native copy of UniquePtr.h
Kenny Root [Thu, 22 Mar 2012 23:33:37 +0000 (16:33 -0700)]
Use frameworks/native copy of UniquePtr.h

Change-Id: Idfe46c057699b5f019f84e588bb8a9697e48236c

12 years agoFix camera2.h header.
Eino-Ville Talvala [Thu, 22 Mar 2012 20:09:56 +0000 (13:09 -0700)]
Fix camera2.h header.

Change-Id: Ibcc93279da2180743d7bbe2561f2bf10879ae08e

12 years agoMerge "Reorganize camera HAL, and add versioning support."
Eino-Ville Talvala [Thu, 22 Mar 2012 18:09:08 +0000 (11:09 -0700)]
Merge "Reorganize camera HAL, and add versioning support."

12 years agoMerge remote-tracking branch 'goog/ics-aah-exp'
Mike Lockwood [Thu, 22 Mar 2012 00:35:00 +0000 (17:35 -0700)]
Merge remote-tracking branch 'goog/ics-aah-exp'

empty -s ours merge

Change-Id: Idccc5a540d4d50ad529fe8d08a49fe55556dd9a8

12 years agoReorganize camera HAL, and add versioning support.
Eino-Ville Talvala [Thu, 22 Dec 2011 21:50:37 +0000 (13:50 -0800)]
Reorganize camera HAL, and add versioning support.

Includes a draft of camera device HAL 2.

Change-Id: I5f56a8c54a33d0ca039360185822a9c22436cab8

12 years agohardware: add hardware_device_api_version() macro
Dima Zavin [Wed, 21 Mar 2012 20:35:32 +0000 (13:35 -0700)]
hardware: add hardware_device_api_version() macro

Change-Id: I79c4d65f6bab227364d5f271df9bd7bc565857c2
Signed-off-by: Dima Zavin <dima@android.com>
12 years agoMerge "libhardware: add current HAL version and a module version macro"
Dima Zavin [Wed, 21 Mar 2012 17:44:43 +0000 (10:44 -0700)]
Merge "libhardware: add current HAL version and a module version macro"

12 years agolibhardware: add current HAL version and a module version macro
Dima Zavin [Wed, 21 Mar 2012 06:15:50 +0000 (23:15 -0700)]
libhardware: add current HAL version and a module version macro

Change-Id: I30c67a6c5231f8b270b57f78bd6322c201b90859
Signed-off-by: Dima Zavin <dima@android.com>
12 years agoMerge changes Ie543d3a9,I3e33e5a9
Dima Zavin [Tue, 20 Mar 2012 19:32:17 +0000 (12:32 -0700)]
Merge changes Ie543d3a9,I3e33e5a9

* changes:
  hardware: provide temp version defines for source compatibility
  hardware: rename version_major/minor to module/hal api version

12 years agohardware: provide temp version defines for source compatibility
Dima Zavin [Tue, 20 Mar 2012 05:48:32 +0000 (22:48 -0700)]
hardware: provide temp version defines for source compatibility

This allows all the existing modules to have source level
compatibility until they are fixed to use the new field names.

Since the binary compatibility has not been altered, we do not
need to force all the implementors to rev their version numbers.

This change should be reverted when all the clients have been updated.

Change-Id: Ie543d3a972d8abe03ca5123e3000966f048d1771
Signed-off-by: Dima Zavin <dima@android.com>
12 years agohardware: rename version_major/minor to module/hal api version
Dima Zavin [Tue, 20 Mar 2012 05:38:15 +0000 (22:38 -0700)]
hardware: rename version_major/minor to module/hal api version

The previous names and documentation were not clear as to how the
version fields should be used. As a result, they were often either
unused or used improperly.

It became clear that there were two version fields necessary. One
to version the implementing module and the other to version the
hw_module_t interface itself.

This change renames version_major and version_minor members of
hw_module_t to module_api_version and hal_api_version. It also
provides in-depth descriptions for all the fields and clarifies
the purpose of the version field in hw_device_t structure.

Change-Id: I3e33e5a922cdc17c5e3b1c30a00e211394f18e86
Signed-off-by: Dima Zavin <dima@android.com>
12 years agoAdd tests for keymaster API
Kenny Root [Fri, 16 Mar 2012 20:19:07 +0000 (13:19 -0700)]
Add tests for keymaster API

This adds unit tests for implementors of the keymaster API. It can be
compiled and run as a stand-alone executable.

Change-Id: Id5bb8f4533b744c254b52e07df66a8d158dfda0d

12 years agoMerge "Update keymaster API to final signing spec"
Kenny Root [Tue, 13 Mar 2012 20:11:09 +0000 (13:11 -0700)]
Merge "Update keymaster API to final signing spec"

12 years agoUpdate keymaster API to final signing spec
Kenny Root [Tue, 13 Mar 2012 16:22:21 +0000 (09:22 -0700)]
Update keymaster API to final signing spec

Switch from unspecified encoding for import of keys to PKCS#8 (Java
standard encoding).

Add function for obtaining the public key from a keypair.

Add fields for RSA key generation that indicate modulus size and desired
public exponent.

Add in placeholder fields for possible digest and padding types for
signatures. Currently the only thing supported is "none" and "none"
respectively.

Change-Id: I19ee02cf35321aee859e2460a963c7213791414b

12 years agoam 6d2bc4fc: am 4cbd62c2: add i2c_device_address member to nfc_pn544_device_t
Rakesh Goyal [Fri, 9 Mar 2012 19:43:56 +0000 (11:43 -0800)]
am 6d2bc4fc: am 4cbd62c2: add i2c_device_address member to nfc_pn544_device_t

* commit '6d2bc4fc11ca04326eaf982f97d13d6410a73af2':
  add i2c_device_address member to nfc_pn544_device_t

12 years agoam 4cbd62c2: add i2c_device_address member to nfc_pn544_device_t
Rakesh Goyal [Fri, 9 Mar 2012 19:34:13 +0000 (11:34 -0800)]
am 4cbd62c2: add i2c_device_address member to nfc_pn544_device_t

* commit '4cbd62c2ca1600dcd2001d1c5a736abc043a0333':
  add i2c_device_address member to nfc_pn544_device_t

12 years agoadd i2c_device_address member to nfc_pn544_device_t
Rakesh Goyal [Fri, 27 Jan 2012 12:43:29 +0000 (18:13 +0530)]
add i2c_device_address member to nfc_pn544_device_t

Add I2C slave address. Multiple I2C addresses are possible
for PN544 module. Configure address according to board design.

Change-Id: I847e8f3db631f5039cf15143a9982f4b9b209f27

12 years agoaudio policy: use audio_devices_t when appropriate
Eric Laurent [Thu, 8 Mar 2012 21:44:18 +0000 (13:44 -0800)]
audio policy: use audio_devices_t when appropriate

Change-Id: Iee57cf5c3bdfefd981e1ed5958df10171f8716e6

12 years agoaudio HAL : added string for A2DP address
Eric Laurent [Thu, 8 Mar 2012 02:59:47 +0000 (18:59 -0800)]
audio HAL : added string for A2DP address

Added a definition for A2DP sink address parameter.
It was previously defined at several places.

Change-Id: I757208e99db395f3d88c17e0de5ae303c71a85ec

12 years agoUpdate comments to reflect audio channel mask type name change
Jean-Michel Trivi [Mon, 5 Mar 2012 19:44:30 +0000 (11:44 -0800)]
Update comments to reflect audio channel mask type name change

Replace references to "audio_channels_t" by "audio_channel_mask_t"

Change-Id: If779a4c24e40c0fcdab8376b479bd20040d686da

12 years agoMerge "HWComposer: update the hwc_layer::handle docs"
Mathias Agopian [Tue, 21 Feb 2012 06:51:15 +0000 (22:51 -0800)]
Merge "HWComposer: update the hwc_layer::handle docs"

12 years agoMerge "Power HAL: Add initial header file and default/legacy implementation"
Todd Poynor [Sat, 18 Feb 2012 04:23:21 +0000 (20:23 -0800)]
Merge "Power HAL: Add initial header file and default/legacy implementation"

12 years agoPower HAL: Add initial header file and default/legacy implementation
Todd Poynor [Tue, 10 Jan 2012 08:32:42 +0000 (00:32 -0800)]
Power HAL: Add initial header file and default/legacy implementation

Change-Id: I43a515a8ffe72a9c4e7d5f7470a5e73e76d5e1b1
Signed-off-by: Todd Poynor <toddpoynor@google.com>
12 years agoAdd hardware API for key handling
Kenny Root [Wed, 15 Feb 2012 18:54:24 +0000 (10:54 -0800)]
Add hardware API for key handling

Add a hardware API for key handling from "keystore"

Change-Id: I5fd192cc212dbb057ee2a7003d602382ee2cd2c0

12 years agoModifications to audio_hal for Android@Home.
Mike J. Chen [Mon, 15 Aug 2011 19:05:00 +0000 (12:05 -0700)]
Modifications to audio_hal for Android@Home.

This is a squashed merge of the following changes:

Commit f560da61a5e128ca9f82f7fe939afcf1f09188c7
Author: John Grossman <johngro@google.com>
Date:   Thu Aug 11 15:34:55 2011 -0700

    Fill out a missing entry in the audio HAL function table.

    The entry for get_initial_master_volume was missing from the non-legacy audio
    HAL and needs to be filled out.  Also fix up the order of the comments
    describing the get_initial_master_volume method.

    Change-Id: I87d5415ef92611497a6dab4c657fc00367c4d80b

commit cea82facb63fd237a4ea6fb770605fcb500850ff
Author: Jason Simmons <jsimmons@google.com>
Date:   Thu Jun 16 14:24:24 2011 -0700

    Define a replacement for getSampleDelta that returns a DMA start time and count of samples queued

    Change-Id: I2d13f57b5a8c5b97fb3aa0a90834ce91c56864ef

commit 60a9acd7eee470a8d870218e8be618bfa3be15a5
Author: Mike J. Chen <mjchen@google.com>
Date:   Tue Jun 7 09:13:23 2011 -0700

    Add Android@Home extensions to new Audio HAL interface.

    Change-Id: I3ea4676d4b7d2afd78a5a7a7003ad5c437276d05
Signed-off-by: Mike J. Chen <mjchen@google.com>
Change-Id: I09f3756d12a1ce4f9af39610ed857890742a72df
Signed-off-by: Mike J. Chen <mjchen@google.com>
Signed-off-by: John Grossman <johngro@google.com>
Conflicts:

include/hardware/audio.h
modules/audio/audio_hw.c

12 years agoAdd a HAL representing a system-wide local time counter.
Mike J. Chen [Mon, 15 Aug 2011 18:59:47 +0000 (11:59 -0700)]
Add a HAL representing a system-wide local time counter.

This is a squashed merge of the following changes:

commit 9def1ae65f6b4d6a8fdec147fdcd34f22f08174a
Author: John Grossman <johngro@google.com>
Date:   Fri Aug 12 11:47:20 2011 -0700

    Change the signature of set_local_slew.

    Changed the definition of the slew function in the local time HAL to take an
    int16 instead of an int32 and to use the full range of the int instead of
    attempting to imply any particular PPM range.

    Change-Id: Ia67f50e77f1fe674a63ec69460e830d1191ef5a0

commit afab51327453d1bfc7423f8ce7a28933d8fc49b2
Author: John Grossman <johngro@google.com>
Date:   Mon Jun 27 17:29:07 2011 -0700

    Remove "primary" from the local_time HAL.

    Interface instances are a pattern which should only be used by audio.  Remove
    its use from the local_time HAL.

    Change-Id: If4c458cf16a02d9dc63c04185111ae793fc57801

commit 1c26e59a66e75ccb31027f42183aaa32bde6e456
Author: John Grossman <johngro@google.com>
Date:   Fri Jun 17 14:19:24 2011 -0700

    Refactor the local/common clock services.

    This change is one of a set of 5 changes made to different repositories.  Look
    for this comment in all of them.

    Refactor the local/common clock services to match android best
    practice.  Notable changes include

    + The kernel no longer knows anything about common time.  Common time has been
      moved completely up into user land.  This has an impact on the accuracy of the
      timesync debugging code, and the netfilter assisted approach to network based
      timesync is going to have to be modified.
    + The timesync driver used by A@H is now just local time driver.
    + The kernel no longer needs access to the linear transform math code, and it
      has been removed.
    + A new HAL has been introduced to expose the concept of local time to the
      system.
    + A non-slewable stub implementation of the local time HAL based on
      CLOCK_MONOTONIC has been added.
    + The old library has been eliminated.  Its functionality has been
      distributed among the common time binder service, the local time hal and the
      linear transform utility code.
    + All clients of the old library have been changed to be clients of
      the binder service, the hal and the utility code.
    + The reset_tt utilities have been removed, they no longer have a purpose in the
      system.

    Change-Id: I39843b94f9b6d13f63b22145a2edcafe4ca87349

Change-Id: Ib264c992d564b99ef7c7847a788e4fa7f5e101b4
Signed-off-by: Mike J. Chen <mjchen@google.com>
Signed-off-by: John Grossman <johngro@google.com>
Conflicts:

modules/Android.mk

12 years agoMerge "Effect UUID inputs passed by pointer are const"
Glenn Kasten [Wed, 8 Feb 2012 17:37:48 +0000 (09:37 -0800)]
Merge "Effect UUID inputs passed by pointer are const"

12 years agoMerge "Use audio_in_acoustics_t consistently"
Glenn Kasten [Fri, 3 Feb 2012 16:31:11 +0000 (08:31 -0800)]
Merge "Use audio_in_acoustics_t consistently"

12 years agoEffect UUID inputs passed by pointer are const
Glenn Kasten [Mon, 30 Jan 2012 19:26:28 +0000 (11:26 -0800)]
Effect UUID inputs passed by pointer are const

Change-Id: I3ef6d83ae539aef32f2a251660b2e2f9646eace5

12 years agoUse audio_in_acoustics_t consistently
Glenn Kasten [Fri, 27 Jan 2012 20:51:17 +0000 (12:51 -0800)]
Use audio_in_acoustics_t consistently

Change-Id: Id49ad9631092db8c9ace0f45db918f708b0b32e9

12 years agoUse audio_source_t consistently
Glenn Kasten [Fri, 27 Jan 2012 00:47:25 +0000 (16:47 -0800)]
Use audio_source_t consistently

Change-Id: Ie25ddeb091646b7e24149b3b23a18ce0807e1891

12 years agoMerge "Use audio_format_t consistently"
Glenn Kasten [Fri, 20 Jan 2012 22:50:29 +0000 (14:50 -0800)]
Merge "Use audio_format_t consistently"

12 years agoAdd timestamp control to camera preview stream operations.
Eino-Ville Talvala [Tue, 26 Jul 2011 21:08:21 +0000 (14:08 -0700)]
Add timestamp control to camera preview stream operations.

At higher levels, SurfaceTextures include timestamp information in
their buffers. For accurate timestamps, they need to be set by the
driver code. This change adds the needed method into
preview_stream_ops.

Timestamp behavior is documented in SurfaceTexture.java, and
system/core/include/window.h, as well as here.

Bug-Id: 5081132
Change-Id: Id285f8e26edecf605444bc4b9e6eea9b224f9d31

12 years agoAudio policy HAL set_ringer_mode is deprecated
Glenn Kasten [Wed, 18 Jan 2012 23:15:07 +0000 (15:15 -0800)]
Audio policy HAL set_ringer_mode is deprecated

Change-Id: If0f82d5c1cb9a0faf70f5a8434f68cdc39784ee6

12 years agoMerge "audio policy: manage stream volume per device"
Eric Laurent [Wed, 18 Jan 2012 01:34:53 +0000 (17:34 -0800)]
Merge "audio policy: manage stream volume per device"

12 years agoMerge "audio effects: add auxiliary channel feature"
Eric Laurent [Tue, 17 Jan 2012 20:11:53 +0000 (12:11 -0800)]
Merge "audio effects: add auxiliary channel feature"

12 years agoMerge "set_mode and set_phone_state now take audio_mode_t"
Glenn Kasten [Tue, 17 Jan 2012 19:33:22 +0000 (11:33 -0800)]
Merge "set_mode and set_phone_state now take audio_mode_t"

12 years agoaudio policy: manage stream volume per device
Eric Laurent [Sat, 10 Dec 2011 01:10:40 +0000 (17:10 -0800)]
audio policy: manage stream volume per device

Improve volume management by keeping track of volume for each type
of device independently.

Added functions at the audio policy interface to set and get stream volume
for a particular device.

Change-Id: Ic8899e82e48193cb65b3673e9d20383efed943b5

12 years agoMerge "Use size_t for frame size"
Glenn Kasten [Tue, 17 Jan 2012 15:27:35 +0000 (07:27 -0800)]
Merge "Use size_t for frame size"

12 years agoMerge "Use audio_stream_type_t consistently"
Glenn Kasten [Tue, 17 Jan 2012 15:26:08 +0000 (07:26 -0800)]
Merge "Use audio_stream_type_t consistently"

12 years agoaudio effects: add auxiliary channel feature
Eric Laurent [Wed, 21 Dec 2011 01:40:51 +0000 (17:40 -0800)]
audio effects: add auxiliary channel feature

Added API to query and configure effects supporting auxiliary channels.
An auxiliary channel contains an additional audio signal helping in the
processing of the main channel. An example is a dual mic noise suppressor
were the main channel contains the signal from the main mic and the aux channel
containss the signal from the sub mic.

Change-Id: Ibb7a19d7f492720ebad0be45f78f996e0beba272

12 years agoUse size_t for frame size
Glenn Kasten [Fri, 13 Jan 2012 22:53:35 +0000 (14:53 -0800)]
Use size_t for frame size

Change-Id: Ib96808544ee6fd76d0c8ff42e27b9c05518e8415

12 years agoMerge "Fix typo in gralloc.h"
Glenn Kasten [Fri, 13 Jan 2012 21:48:24 +0000 (13:48 -0800)]
Merge "Fix typo in gralloc.h"

12 years agoUse audio_stream_type_t consistently
Glenn Kasten [Thu, 12 Jan 2012 22:56:21 +0000 (14:56 -0800)]
Use audio_stream_type_t consistently

Change-Id: I1e92f018a07e4b1b73ef8d4de461ef1e08bc48e7

12 years agoUse audio_format_t consistently
Glenn Kasten [Thu, 12 Jan 2012 22:55:57 +0000 (14:55 -0800)]
Use audio_format_t consistently

Was sometimes int or uint32_t

Change-Id: Ib3d82f5aefeda371c0439e43e72737a54882f519

12 years agoset_mode and set_phone_state now take audio_mode_t
Glenn Kasten [Mon, 9 Jan 2012 18:41:30 +0000 (10:41 -0800)]
set_mode and set_phone_state now take audio_mode_t

Change-Id: I12a3a5ad6c3cadc6b9de8281f78edfef53908e2d

12 years agoRename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE
Steve Block [Sun, 8 Jan 2012 10:17:53 +0000 (10:17 +0000)]
Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF)  DO NOT MERGE

See https://android-git.corp.google.com/g/#/c/157220

Bug: 5449033
Change-Id: I0cbe865d464a37365fa3be84948b07e5a0d181d0

12 years agoMerge "Add comment about actual type of set_mode"
Glenn Kasten [Fri, 6 Jan 2012 21:38:05 +0000 (13:38 -0800)]
Merge "Add comment about actual type of set_mode"

12 years agoAdd comment about actual type of set_mode
Glenn Kasten [Tue, 20 Dec 2011 01:19:34 +0000 (17:19 -0800)]
Add comment about actual type of set_mode

Change-Id: Ie50a66894831763b6e9eb6aa490441d7759cbeef

12 years agoRename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGE
Steve Block [Thu, 5 Jan 2012 23:27:52 +0000 (23:27 +0000)]
Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF)  DO NOT MERGE

See https://android-git.corp.google.com/g/157065

Bug: 5449033
Change-Id: I135fadaf10e95af1eb918889a22980c194c650ca

12 years agoRename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGE
Steve Block [Wed, 4 Jan 2012 20:07:12 +0000 (20:07 +0000)]
Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF)  DO NOT MERGE

See https://android-git.corp.google.com/g/156801

Bug: 5449033
Change-Id: Ia8b6f74b27098b3dba27f177a76264eb23f849ee

12 years agoRename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGE
Steve Block [Tue, 20 Dec 2011 16:25:12 +0000 (16:25 +0000)]
Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF)  DO NOT MERGE

See https://android-git.corp.google.com/g/156016

Bug: 5449033
Change-Id: I98e83cc9d22f0ea8fbf397ccccd9ce7773119551

12 years agoHWComposer: update the hwc_layer::handle docs
Jamie Gennis [Tue, 20 Dec 2011 22:33:52 +0000 (14:33 -0800)]
HWComposer: update the hwc_layer::handle docs

Change-Id: I3c1211146b2e5f84546724c86f344bd2e63bd55c

12 years agoaudio effects: rename configure command
Eric Laurent [Mon, 19 Dec 2011 18:13:28 +0000 (10:13 -0800)]
audio effects: rename configure command

Renamed audio effect library interface command for audio format
configuration from EFFECT_CMD_CONFIGURE to EFFECT_CMD_SET_CONFIG.
This makes the naming more consistent with other exixsting commands
and allow adding new a command to get the configuration (EFFECT_CMD_GET_CONFIG).
Same change for reverse channel configuration renamed from
EFFECT_CMD_CONFIGURE_REVERSE to EFFECT_CMD_SET_CONFIG_REVERSE.

Change-Id: I1cc462aa50e58ceec900b3da9bd3873d2d098098

12 years agoFix typo in gralloc.h
Glenn Kasten [Wed, 30 Nov 2011 16:31:17 +0000 (08:31 -0800)]
Fix typo in gralloc.h

Change-Id: I8d989b21e10e19ae4124188f02ef84eeabdb4654

12 years agoam f1d76bb7: am a9b677fc: Merge "improve h/w composer documentation" into ics-mr1
Mathias Agopian [Tue, 29 Nov 2011 00:11:26 +0000 (16:11 -0800)]
am f1d76bb7: am a9b677fc: Merge "improve h/w composer documentation" into ics-mr1

* commit 'f1d76bb7446961be2221fa8a597d60643b7803be':
  improve h/w composer documentation

12 years agoam a9b677fc: Merge "improve h/w composer documentation" into ics-mr1
Mathias Agopian [Tue, 29 Nov 2011 00:08:53 +0000 (16:08 -0800)]
am a9b677fc: Merge "improve h/w composer documentation" into ics-mr1

* commit 'a9b677fce432b29ab8f61e13796f34880dc0fe0f':
  improve h/w composer documentation

12 years agoam a9b677fc: Merge "improve h/w composer documentation" into ics-mr1
Mathias Agopian [Tue, 29 Nov 2011 00:08:48 +0000 (16:08 -0800)]
am a9b677fc: Merge "improve h/w composer documentation" into ics-mr1

* commit 'a9b677fce432b29ab8f61e13796f34880dc0fe0f':
  improve h/w composer documentation

12 years agoMerge "improve h/w composer documentation" into ics-mr1
Mathias Agopian [Tue, 29 Nov 2011 00:07:36 +0000 (16:07 -0800)]
Merge "improve h/w composer documentation" into ics-mr1

12 years agoam 66b00021: am 29ead941: Gralloc: add a usage bit for video encoding
Jamie Gennis [Tue, 22 Nov 2011 20:42:00 +0000 (12:42 -0800)]
am 66b00021: am 29ead941: Gralloc: add a usage bit for video encoding

* commit '66b00021151c7dbce38106960431226f6012d121':
  Gralloc: add a usage bit for video encoding

12 years agoam 29ead941: Gralloc: add a usage bit for video encoding
Jamie Gennis [Tue, 22 Nov 2011 20:16:34 +0000 (12:16 -0800)]
am 29ead941: Gralloc: add a usage bit for video encoding

* commit '29ead941b377cb87bcc7fe48208b96d84d649d43':
  Gralloc: add a usage bit for video encoding

12 years agoam 29ead941: Gralloc: add a usage bit for video encoding
Jamie Gennis [Tue, 22 Nov 2011 20:16:15 +0000 (12:16 -0800)]
am 29ead941: Gralloc: add a usage bit for video encoding

* commit '29ead941b377cb87bcc7fe48208b96d84d649d43':
  Gralloc: add a usage bit for video encoding

12 years agoGralloc: add a usage bit for video encoding
Jamie Gennis [Tue, 22 Nov 2011 00:50:49 +0000 (16:50 -0800)]
Gralloc: add a usage bit for video encoding

This change adds a new Gralloc usage bit to indicate that a buffer will
be passed to the HW video encoder.

Change-Id: I75c3fc514906e5b18fb60345a2d9c5a606403633

12 years agoimprove h/w composer documentation
Mathias Agopian [Tue, 22 Nov 2011 01:35:15 +0000 (17:35 -0800)]
improve h/w composer documentation

Change-Id: Ia3f47c1750f5a436037e4391d6744d63639ee099

12 years agoam 4ef5e2e5: Merge from AOSP
Jean-Baptiste Queru [Fri, 18 Nov 2011 10:37:25 +0000 (02:37 -0800)]
am 4ef5e2e5: Merge from AOSP

* commit '4ef5e2e5376043e433e01b61d219dd2444719893':
  improve sensor HAL documentation
  change sensor HAL documentation to allow setting polling rate for "non continuous" sensors

12 years agoMerge from AOSP
Jean-Baptiste Queru [Thu, 17 Nov 2011 23:59:53 +0000 (15:59 -0800)]
Merge from AOSP

Change-Id: I41161514ae072b40bf4c94a9392007de1e9db937

12 years agoam fb410365: improve hw composer documentation
Mathias Agopian [Thu, 17 Nov 2011 15:48:25 +0000 (07:48 -0800)]
am fb410365: improve hw composer documentation

* commit 'fb410365ca67d36d4c81d7826712c6a05437612f':
  improve hw composer documentation

12 years agoam fb410365: improve hw composer documentation
Mathias Agopian [Thu, 17 Nov 2011 02:15:35 +0000 (18:15 -0800)]
am fb410365: improve hw composer documentation

* commit 'fb410365ca67d36d4c81d7826712c6a05437612f':
  improve hw composer documentation

12 years agoimprove hw composer documentation
Mathias Agopian [Wed, 16 Nov 2011 05:27:52 +0000 (21:27 -0800)]
improve hw composer documentation

Change-Id: I39363e37417991b9853309154d6691240e706acf

12 years agoimprove sensor HAL documentation
Mathias Agopian [Tue, 8 Nov 2011 05:32:34 +0000 (21:32 -0800)]
improve sensor HAL documentation

Change-Id: If2c1613902de6ed0e6cae8fe4755948c0f623bda

12 years agochange sensor HAL documentation to allow setting polling rate for "non continuous...
Mathias Agopian [Wed, 2 Nov 2011 02:17:58 +0000 (19:17 -0700)]
change sensor HAL documentation to allow setting polling rate for "non continuous" sensors

the current API / Documentation would not allow to set the
rate of "non continuous" sensors.

Most sensors HAL implementation already support changing the rate
(technically they're not compliant with the doc), so it's easier
to change the doc (and also allows more control).

Change-Id: I4ad324ddc3b569ec61770b3cf927c06f8ff4af4e

12 years agoam e9eaf372: improve sensor HAL documentation
Mathias Agopian [Thu, 10 Nov 2011 01:11:15 +0000 (01:11 +0000)]
am e9eaf372: improve sensor HAL documentation

* commit 'e9eaf3721dd715901d669df6488b1ecd63b1e634':
  improve sensor HAL documentation

12 years agoam e9eaf372: improve sensor HAL documentation
Mathias Agopian [Wed, 9 Nov 2011 18:58:57 +0000 (18:58 +0000)]
am e9eaf372: improve sensor HAL documentation

* commit 'e9eaf3721dd715901d669df6488b1ecd63b1e634':
  improve sensor HAL documentation

12 years agoimprove sensor HAL documentation
Mathias Agopian [Tue, 8 Nov 2011 05:32:34 +0000 (21:32 -0800)]
improve sensor HAL documentation

Change-Id: If2c1613902de6ed0e6cae8fe4755948c0f623bda

12 years agoresolved conflicts for merge of 45065f97 to ics-aah
Martijn Coenen [Mon, 7 Nov 2011 16:47:30 +0000 (08:47 -0800)]
resolved conflicts for merge of 45065f97 to ics-aah

Change-Id: I1e76a495d1ff76a49bfa091f63ed5bfc1d4f49c9

12 years agoam 45065f97: Merge "New NFC HAL." into ics-mr1
Martijn Coenen [Mon, 7 Nov 2011 16:22:45 +0000 (16:22 +0000)]
am 45065f97: Merge "New NFC HAL." into ics-mr1

* commit '45065f97354b4411d99dd57b348f758c6dbb5479':
  New NFC HAL.

12 years agoMerge "New NFC HAL." into ics-mr1
Martijn Coenen [Mon, 7 Nov 2011 16:19:18 +0000 (08:19 -0800)]
Merge "New NFC HAL." into ics-mr1

12 years agoam 15879d89: change sensor HAL documentation to allow setting polling rate for "non...
Mathias Agopian [Sat, 5 Nov 2011 19:33:17 +0000 (19:33 +0000)]
am 15879d89: change sensor HAL documentation to allow setting polling rate for "non continuous" sensors

* commit '15879d89af055f6cd651a94125a3802b526c3d66':
  change sensor HAL documentation to allow setting polling rate for "non continuous" sensors

12 years agoam 15879d89: change sensor HAL documentation to allow setting polling rate for "non...
Mathias Agopian [Fri, 4 Nov 2011 19:15:26 +0000 (19:15 +0000)]
am 15879d89: change sensor HAL documentation to allow setting polling rate for "non continuous" sensors

* commit '15879d89af055f6cd651a94125a3802b526c3d66':
  change sensor HAL documentation to allow setting polling rate for "non continuous" sensors

12 years agoNew NFC HAL.
Martijn Coenen [Wed, 2 Nov 2011 23:09:37 +0000 (16:09 -0700)]
New NFC HAL.

First implementation of a NFC HAL. This implementation doesn't
offer a generic NFC device HAL (yet), but offers typed interfaces
for different NFC controllers. Currently only the PN544 is supported.

Change-Id: I3ac04dcd767fb12a433edbe88ec7068eb1930a57

12 years agochange sensor HAL documentation to allow setting polling rate for "non continuous...
Mathias Agopian [Wed, 2 Nov 2011 02:17:58 +0000 (19:17 -0700)]
change sensor HAL documentation to allow setting polling rate for "non continuous" sensors

the current API / Documentation would not allow to set the
rate of "non continuous" sensors.

Most sensors HAL implementation already support changing the rate
(technically they're not compliant with the doc), so it's easier
to change the doc (and also allows more control).

Change-Id: I4ad324ddc3b569ec61770b3cf927c06f8ff4af4e

12 years agokeep previous history after reset to mr1 plus aah changes (ics-aah-wip)
Ed Heyl [Fri, 28 Oct 2011 19:05:54 +0000 (19:05 +0000)]
keep previous history after reset to mr1 plus aah changes (ics-aah-wip)

12 years agoModifications to audio_hal for Android@Home Tungsten.
Mike J. Chen [Mon, 15 Aug 2011 19:05:00 +0000 (12:05 -0700)]
Modifications to audio_hal for Android@Home Tungsten.

This is a squashed merge from master-tungsten of the following changes:

Commit f560da61a5e128ca9f82f7fe939afcf1f09188c7
Author: John Grossman <johngro@google.com>
Date:   Thu Aug 11 15:34:55 2011 -0700

    Fill out a missing entry in the audio HAL function table.

    The entry for get_initial_master_volume was missing from the non-legacy audio
    HAL and needs to be filled out.  Also fix up the order of the comments
    describing the get_initial_master_volume method.

    Change-Id: I87d5415ef92611497a6dab4c657fc00367c4d80b

commit cea82facb63fd237a4ea6fb770605fcb500850ff
Author: Jason Simmons <jsimmons@google.com>
Date:   Thu Jun 16 14:24:24 2011 -0700

    Define a replacement for getSampleDelta that returns a DMA start time and count of samples queued

    Change-Id: I2d13f57b5a8c5b97fb3aa0a90834ce91c56864ef

commit 60a9acd7eee470a8d870218e8be618bfa3be15a5
Author: Mike J. Chen <mjchen@google.com>
Date:   Tue Jun 7 09:13:23 2011 -0700

    Add Tungsten extensions to new Audio HAL interface.

    Change-Id: I3ea4676d4b7d2afd78a5a7a7003ad5c437276d05
Signed-off-by: Mike J. Chen <mjchen@google.com>
Change-Id: Id9d0d2fb2fb28e2868f4eb8d8fbf86a975c47ceb
Signed-off-by: Mike J. Chen <mjchen@google.com>
Signed-off-by: John Grossman <johngro@google.com>
12 years agoAdd a HAL representing a system-wide local time counter.
Mike J. Chen [Mon, 15 Aug 2011 18:59:47 +0000 (11:59 -0700)]
Add a HAL representing a system-wide local time counter.

This is a squashed merge from master-tungsten of the following changes:

commit 9def1ae65f6b4d6a8fdec147fdcd34f22f08174a
Author: John Grossman <johngro@google.com>
Date:   Fri Aug 12 11:47:20 2011 -0700

    Change the signature of set_local_slew.

    Changed the definition of the slew function in the local time HAL to take an
    int16 instead of an int32 and to use the full range of the int instead of
    attempting to imply any particular PPM range.

    Change-Id: Ia67f50e77f1fe674a63ec69460e830d1191ef5a0

commit afab51327453d1bfc7423f8ce7a28933d8fc49b2
Author: John Grossman <johngro@google.com>
Date:   Mon Jun 27 17:29:07 2011 -0700

    Remove "primary" from the local_time HAL.

    Interface instances are a pattern which should only be used by audio.  Remove
    its use from the local_time HAL.

    Change-Id: If4c458cf16a02d9dc63c04185111ae793fc57801

commit 1c26e59a66e75ccb31027f42183aaa32bde6e456
Author: John Grossman <johngro@google.com>
Date:   Fri Jun 17 14:19:24 2011 -0700

    Refactor the local/common clock services.

    This change is one of a set of 5 changes made to different repositories.  Look
    for this comment in all of them.

    Refactor the local/common clock services in tungsten to match android best
    practice.  Notable changes include

    + The kernel no longer knows anything about common time.  Common time has been
      moved completely up into user land.  This has an impact on the accuracy of the
      timesync debugging code, and the netfilter assisted approach to network based
      timesync is going to have to be modified.
    + The timesync driver used by A@H is now just local time driver.
    + The kernel no longer needs access to the linear transform math code, and it
      has been removed.
    + A new HAL has been introduced to expose the concept of local time to the
      system.
    + A non-slewable stub implementation of the local time HAL based on
      CLOCK_MONOTONIC has been added.
    + The TungstenTime library has been eliminated.  Its functionality has been
      distributed among the common time binder service, the local time hal and the
      linear transform utility code.
    + All clients of the old TungstenTime library have been changed to be clients of
      the binder service, the hal and the utility code.
    + The reset_tt utilities have been removed, they no longer have a purpose in the
      system.
    + more progress has been made in eliminating the word "tungsten" from the code.

    Things left to do include
    + Finish getting rid of tungsten from the time service.
    + Move the time service into the framework; AudioFlinger's new timed mode
      depends on it and the service cannot continue to live in vendor tungsten.

    Change-Id: I39843b94f9b6d13f63b22145a2edcafe4ca87349

Change-Id: Ifbc8c4c28c1cf45a762dd4fb00f8dffccd7efe94
Signed-off-by: Mike J. Chen <mjchen@google.com>
Signed-off-by: John Grossman <johngro@google.com>
12 years agoundo reset to ics-mr1 until we have a better method
Ed Heyl [Wed, 26 Oct 2011 21:53:25 +0000 (21:53 +0000)]
undo reset to ics-mr1 until we have a better method

12 years agoreset to ics-mr1, but keep history
Ed Heyl [Wed, 26 Oct 2011 18:50:22 +0000 (18:50 +0000)]
reset to ics-mr1, but keep history

12 years agoam 7567eba2: (-s ours) Rename LOGV(_IF) to ALOGV(_IF) DO NOT MERGE
Steve Block [Wed, 26 Oct 2011 11:48:31 +0000 (04:48 -0700)]
am 7567eba2: (-s ours) Rename LOGV(_IF) to ALOGV(_IF)  DO NOT MERGE

* commit '7567eba2afa94abee27965d68c29b31d79b19e60':
  Rename LOGV(_IF) to ALOGV(_IF)  DO NOT MERGE

12 years agoRename LOGV(_IF) to ALOGV(_IF) DO NOT MERGE
Steve Block [Thu, 20 Oct 2011 12:58:15 +0000 (13:58 +0100)]
Rename LOGV(_IF) to ALOGV(_IF)  DO NOT MERGE

See https://android-git.corp.google.com/g/#/c/143865

Bug: 5449033
Change-Id: I8772e564a55981aad2a9cf7cb9245367fcf57fe8

12 years agoam cf209523: am 7bd7dd5d: am 3c935eda: resolved conflicts for merge of 33fddf0c to...
David 'Digit' Turner [Tue, 27 Sep 2011 19:38:16 +0000 (12:38 -0700)]
am cf209523: am 7bd7dd5d: am 3c935eda: resolved conflicts for merge of 33fddf0c to gingerbread-plus-aosp

* commit 'cf209523884350a3ad6af5840f1b0ae2dde9b98b':
  emulator: Add <hardware/qemu_pipe.h> header

12 years agoam 7bd7dd5d: am 3c935eda: resolved conflicts for merge of 33fddf0c to gingerbread...
David 'Digit' Turner [Tue, 27 Sep 2011 19:36:16 +0000 (12:36 -0700)]
am 7bd7dd5d: am 3c935eda: resolved conflicts for merge of 33fddf0c to gingerbread-plus-aosp

* commit '7bd7dd5d49e21c66c83618cb9f85ef43af29e441':
  emulator: Add <hardware/qemu_pipe.h> header

12 years agoam cc3f6a34: improve sensor HAL test
Mathias Agopian [Tue, 27 Sep 2011 02:50:23 +0000 (19:50 -0700)]
am cc3f6a34: improve sensor HAL test

* commit 'cc3f6a345b0cc356b22f9ea748505ce8a705d358':
  improve sensor HAL test

12 years agoam 3c935eda: resolved conflicts for merge of 33fddf0c to gingerbread-plus-aosp
David 'Digit' Turner [Fri, 23 Sep 2011 18:17:34 +0000 (11:17 -0700)]
am 3c935eda: resolved conflicts for merge of 33fddf0c to gingerbread-plus-aosp

* commit '3c935eda2dcd96eda70da6367d705b3b081f6524':
  emulator: Add <hardware/qemu_pipe.h> header

12 years agoresolved conflicts for merge of 33fddf0c to gingerbread-plus-aosp
David 'Digit' Turner [Fri, 23 Sep 2011 18:13:07 +0000 (20:13 +0200)]
resolved conflicts for merge of 33fddf0c to gingerbread-plus-aosp

Change-Id: I8720ca884f326b661e30b51c4cf1cfe31c1ac579

12 years agoimprove sensor HAL test
Mathias Agopian [Sun, 18 Sep 2011 22:21:33 +0000 (15:21 -0700)]
improve sensor HAL test

Change-Id: Id5e22ae2b9cb3bf71ec235a2ec6bb4319d0389da

12 years agoemulator: Add <hardware/qemu_pipe.h> header
David 'Digit' Turner [Fri, 16 Sep 2011 15:11:49 +0000 (17:11 +0200)]
emulator: Add <hardware/qemu_pipe.h> header

This header is required by our GLES emulation guest code to be able
to access the emulator services provided through the /dev/qemu_pipe
special device.

Change-Id: Ia9782256048d7340237f3e1d18d7452dd815e561

13 years agoModifications to audio_hal for Android@Home Tungsten.
Mike J. Chen [Mon, 15 Aug 2011 19:05:00 +0000 (12:05 -0700)]
Modifications to audio_hal for Android@Home Tungsten.

This is a squashed merge from master-tungsten of the following changes:

Commit f560da61a5e128ca9f82f7fe939afcf1f09188c7
Author: John Grossman <johngro@google.com>
Date:   Thu Aug 11 15:34:55 2011 -0700

    Fill out a missing entry in the audio HAL function table.

    The entry for get_initial_master_volume was missing from the non-legacy audio
    HAL and needs to be filled out.  Also fix up the order of the comments
    describing the get_initial_master_volume method.

    Change-Id: I87d5415ef92611497a6dab4c657fc00367c4d80b

commit cea82facb63fd237a4ea6fb770605fcb500850ff
Author: Jason Simmons <jsimmons@google.com>
Date:   Thu Jun 16 14:24:24 2011 -0700

    Define a replacement for getSampleDelta that returns a DMA start time and count of samples queued

    Change-Id: I2d13f57b5a8c5b97fb3aa0a90834ce91c56864ef

commit 60a9acd7eee470a8d870218e8be618bfa3be15a5
Author: Mike J. Chen <mjchen@google.com>
Date:   Tue Jun 7 09:13:23 2011 -0700

    Add Tungsten extensions to new Audio HAL interface.

    Change-Id: I3ea4676d4b7d2afd78a5a7a7003ad5c437276d05
Signed-off-by: Mike J. Chen <mjchen@google.com>
Change-Id: I09f3756d12a1ce4f9af39610ed857890742a72df
Signed-off-by: Mike J. Chen <mjchen@google.com>
Signed-off-by: John Grossman <johngro@google.com>
13 years agoAdd a HAL representing a system-wide local time counter.
Mike J. Chen [Mon, 15 Aug 2011 18:59:47 +0000 (11:59 -0700)]
Add a HAL representing a system-wide local time counter.

This is a squashed merge from master-tungsten of the following changes:

commit 9def1ae65f6b4d6a8fdec147fdcd34f22f08174a
Author: John Grossman <johngro@google.com>
Date:   Fri Aug 12 11:47:20 2011 -0700

    Change the signature of set_local_slew.

    Changed the definition of the slew function in the local time HAL to take an
    int16 instead of an int32 and to use the full range of the int instead of
    attempting to imply any particular PPM range.

    Change-Id: Ia67f50e77f1fe674a63ec69460e830d1191ef5a0

commit afab51327453d1bfc7423f8ce7a28933d8fc49b2
Author: John Grossman <johngro@google.com>
Date:   Mon Jun 27 17:29:07 2011 -0700

    Remove "primary" from the local_time HAL.

    Interface instances are a pattern which should only be used by audio.  Remove
    its use from the local_time HAL.

    Change-Id: If4c458cf16a02d9dc63c04185111ae793fc57801

commit 1c26e59a66e75ccb31027f42183aaa32bde6e456
Author: John Grossman <johngro@google.com>
Date:   Fri Jun 17 14:19:24 2011 -0700

    Refactor the local/common clock services.

    This change is one of a set of 5 changes made to different repositories.  Look
    for this comment in all of them.

    Refactor the local/common clock services in tungsten to match android best
    practice.  Notable changes include

    + The kernel no longer knows anything about common time.  Common time has been
      moved completely up into user land.  This has an impact on the accuracy of the
      timesync debugging code, and the netfilter assisted approach to network based
      timesync is going to have to be modified.
    + The timesync driver used by A@H is now just local time driver.
    + The kernel no longer needs access to the linear transform math code, and it
      has been removed.
    + A new HAL has been introduced to expose the concept of local time to the
      system.
    + A non-slewable stub implementation of the local time HAL based on
      CLOCK_MONOTONIC has been added.
    + The TungstenTime library has been eliminated.  Its functionality has been
      distributed among the common time binder service, the local time hal and the
      linear transform utility code.
    + All clients of the old TungstenTime library have been changed to be clients of
      the binder service, the hal and the utility code.
    + The reset_tt utilities have been removed, they no longer have a purpose in the
      system.
    + more progress has been made in eliminating the word "tungsten" from the code.

    Things left to do include
    + Finish getting rid of tungsten from the time service.
    + Move the time service into the framework; AudioFlinger's new timed mode
      depends on it and the service cannot continue to live in vendor tungsten.

    Change-Id: I39843b94f9b6d13f63b22145a2edcafe4ca87349

Change-Id: Ib264c992d564b99ef7c7847a788e4fa7f5e101b4
Signed-off-by: Mike J. Chen <mjchen@google.com>
Signed-off-by: John Grossman <johngro@google.com>
13 years agoaudio policy: register effect CPU on enable
Eric Laurent [Thu, 11 Aug 2011 03:15:48 +0000 (20:15 -0700)]
audio policy: register effect CPU on enable

Added a method on audio policy interface to register
audio effect CPU usage on enable and unregister on disable
instead of when the effect is created or destroyed.

Change-Id: Iee20bf70fee7302f817ec4c7d9bf7640caca2e95