summaryrefslogtreecommitdiffstats
path: root/include/system
Commit message (Collapse)AuthorAgeFilesLines
* Remove force use definition for remote audio submixJean-Michel Trivi2012-10-111-1/+0
| | | | | | | | Obsolete. Bug 7318180 Change-Id: I3421ca554a4131d606bdee698aeb7b2091a5d966
* audio policy: add forced uses for systemEric Laurent2012-10-091-0/+2
| | | | | | | | | | | The volume and routing policy of AUDIO_STREAM_ENFORCED_AUDIBLE is now controlled by AudioService by means of new forced use type AUDIO_POLICY_FORCE_FOR_SYSTEM with config AUDIO_POLICY_FORCE_SYSTEM_ENFORCED. Bug 7032634. Change-Id: Ib1834ec507f3aa726895b8fd3e8a91cc9cc601a7
* Move dequeue-buffer-and-wait out-of-lineJesse Hall2012-10-011-11/+2
| | | | | | | | | The dequeueBuffer_DEPRECATED function also waits for the buffer fence, so we can just call that. That way the wait call is compiled into our code (instead of driver code) and we can see/modify it for debugging. Bug: 7217641 Change-Id: Ie2ea85ed1543a4ff7986d0162aee773e93591309
* ANW: fix my fix for a file descriptor leakJamie Gennis2012-09-201-1/+1
| | | | Change-Id: Ief7b973fbdb76920abed19707963a0c3d306af31
* ANW: fix an fd leakJamie Gennis2012-09-201-3/+2
| | | | Change-Id: Id44cae6732c6694d2f470cbdfa5f59e7474f704f
* audio: new audio devices enum valuesEric Laurent2012-09-071-19/+41
| | | | | | | | | | | | | | | Each audio device is identified by a bit in a 32 bit field with 16 bits for output devices and 16 bits for input devices. The number of output devices is now exhausted. In order to add new devices a new convention for audio device identification is defined, allowing 31 different input and output devices: Bit 31 of the bit field is reserved and when set indicates an input device. Also added new output device for wifi display and new input devices for digital and analog docks, USB and wifi display send. Change-Id: I849bec0b6d46e082e325a3f08890d313c8dc763b
* Device and mode definitions for remote submixJean-Michel Trivi2012-09-062-10/+26
| | | | | | | | | | | | | | | | A remote submix is an audio mix of audio streams that are not going to be played directly through the platform mix, but rather will be mixed together to be handled in a different manner. This mix can be obtained by recording it through the AUDIO_IN_REMOTE_SUBMIX and presenting it remotely (as opposed to local playback == on the device itself). All changes marked "temporary" will be overriden by the changes to update the audio device definitions for the 2.0 API. Change-Id: I9c6da607fc50b7b8545d189ac5b083107369cfb5
* Add an IMPL_DEFINED pixel format.Jamie Gennis2012-08-221-0/+16
| | | | | | | This change adds a new HAL pixel format that indicates that the specific format is to be chosen by the gralloc implementation. Change-Id: I326b5ec7347a20863b42119431ef1e4d22480fec
* Added a cmd for configuring number of video buffers for camera, if supportedJames Dong2012-08-011-0/+11
| | | | | | o currently, only available in Camera2 Change-Id: Id9bf157496209af9be65d147e70aa4830158c88d
* Declare audio_devices_t as uint32_t & enum constsGlenn Kasten2012-07-031-3/+5
| | | | | | | | | | | Declare audio_devices_t as uint32_t to permit bit operations, and a separate anonymous enum for the constants. This is similar to audio_channel_mask_t. Also remove spurious "typedef" on declaration of anonymous enum for channel mask constants. Change-Id: Ib4f92e9168261d44a475b3d48fe211e5c70ed441
* ANativeWindow: update queue/dequeue/cancel w/ syncJamie Gennis2012-06-191-7/+128
| | | | | | | | | | This change deprecates the existing queueBuffer, dequeueBuffer, lockBuffer, and cancelBuffer functions, and replaces them with a queueBuffer, dequeueBuffer, and cancelBuffer function that accepts or returns a libsync fence file descriptor. It also adds the native_window_dequeue_buffer_and_wait convenience function. Change-Id: Ifaac91164d014993d7d1d96e0303e04e429f4d00
* Add HAL_PIXEL_FORMAT_BLOBEino-Ville Talvala2012-06-131-0/+15
| | | | | | | | | | | | | | | This format describes buffers that are not structured like normal image data, and can only be meaningfully understood by the endpoints. As an example, this format is used for transporting JPEG-compressed image buffers from the Camera HAL to the framework/apps. Buffers of this format must have a height of 1 and a width equal to their size in bytes. Otherwise their interpretation is up to the two endpoints. Bug: 6243944 Change-Id: Ia81015694cbf3a89e29bfbf3624c3ea2ef4f66fd
* audio policy: allow disabling A2DP for media.Eric Laurent2012-05-241-0/+1
| | | | | | | | | Added FORCE_NO_BT_A2DP forced use to allow applications to override default policy to use A2DP whenever connected. Bug 6485897. Change-Id: I0039232ea6cce4121f375961b2c153d1a0d92e49
* Merge "Camera: Document expected error codes for start face detect." into jb-devEino-Ville Talvala2012-05-101-1/+2
|\
| * Camera: Document expected error codes for start face detect.Eino-Ville Talvala2012-05-091-1/+2
| | | | | | | | | | | | | | | | Clarify when BAD_VALUE is expected from the camera start face detect command. Bug: 6459066 Change-Id: Id1b3d5047dee2c509aa6e374a5ed439a776b0b87
* | ANativeWindow: add set_post_transform_cropJamie Gennis2012-05-071-16/+38
|/ | | | | | | | | This change replaces the set_active_rect function with set_post_transform_crop. There is a temporary set_active_rect function that calls set_post_transform_crop for compatibility while commiting to multiple git repositories. Change-Id: Ia7c171186fd277d5a36f6068ace93a9ce1c82d28
* ANativeWindow: fix up some commentsJamie Gennis2012-04-301-2/+3
| | | | | | | This change clarifies in the ANativeWindow perform docs which perform calls are private to the framework and should not be made by code below the HAL level. Change-Id: Ibfeba0760d9a3f74996e6358d5ad89a408f80dfe
* graphics.h: clarify docs about stride for YV12Jamie Gennis2012-04-301-1/+2
| | | | | | | This change makes it clearer how to derive the stride of the Cr and Cb plane from the stride of the Y plane for the YV12 pixel format. Change-Id: I54a9a20f35224bd583e25c615014cc8d830a1dd0
* Merge "ANativeWindow: add set_active_rect"Mathias Agopian2012-04-241-4/+33
|\
| * ANativeWindow: add set_active_rectJamie Gennis2012-04-171-4/+33
| | | | | | | | | | | | This change adds the set_active_rect 'method' to the ANativeWindow interface. Change-Id: Iae910d259ba5c3e94594fa1ffec5fc0662546ad0
* | add query for finding out if consumer runs behind of producerJamie Gennis2012-04-241-1/+7
| | | | | | | | Change-Id: I3baae99d4da00d962d3afe6bdfc16e3eb04ede24
* | Merge "audio policy: add deep audio buffering flag."Eric Laurent2012-04-201-10/+11
|\ \
| * | audio policy: add deep audio buffering flag.Eric Laurent2012-04-191-10/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a value in audio policy flags to indicate an output stream providing deep audio PCM buffers. Such an output helps reducing the power consumption at the expense of audio latency. Stagefright will indicate a preference for such an output when playing music only (no video) and the audio duration is more than a given threshold. Change-Id: I0e6a9f5746a22d2bfea2b21dd182489a34a4b528
* | | Merge "Add new raw image sensor HAL pixel format."Eino-Ville Talvala2012-04-191-1/+21
|\ \ \ | |/ / |/| |
| * | Add new raw image sensor HAL pixel format.Eino-Ville Talvala2012-04-131-1/+21
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This format is exposed outside of the HAL to applications. RAW_SENSOR is a single-channel 16-bit format, typically representing raw Bayer-pattern images from an image sensor, with minimal processing. The exact pixel layout of the data in the buffer is sensor-dependent, and needs to be queried from the camera device. Generally, not all 16 bits are used; more common values are 10 or 12 bits. All parameters to interpret the raw data (black and white points, color space, etc) must be queried from the camera device. This format assumes - an even width - an even height - a horizontal stride multiple of 16 pixels (32 bytes). Change-Id: I67fc72d1c2c899e258fcd53b3ab91b459e9210f0
* | removed obsolete audio policy flagsEric Laurent2012-04-181-9/+0
| | | | | | | | | | | | | | Removed obsolete AUDIO_POLICY_OUTPUT_FLAG_xxx flags definition. All project mmust use AUDIO_OUTPUT_FLAG_xxx flags from system/audio.h Change-Id: Ib374dee96afcf176df35d9a621be02ce0e30caf5
* | audio: added definitions for audio HAL device API.Eric Laurent2012-04-172-17/+28
|/ | | | | | | | | | | Added definitions for output flags needed by new audio HAL device API. These flags where previously defined in audio_policy.h. Definition in audio_policy.h remains temporarily until all projects are changed to use new flags. Change-Id: I371558c78050daae73942a36f51854372ab71068
* Merge "Added flag for cropped scaling mode"Mathias Agopian2012-04-121-0/+4
|\
| * Added flag for cropped scaling modeDaniel Lam2012-04-121-0/+4
| | | | | | | | | | | | | | NATIVE_WINDOW_SCALING_MODE_CROP forces the SurfaceTexture to match the crop rect's aspect ratio to that of the window. Change-Id: Id126b106eac06fd34d2d650a1bc66ffbac26c501
* | window: add API for native_window_set_buffers_user_dimensionsMichael I. Gold2012-04-101-4/+32
|/ | | | | | | | | | | Add token and wrapper function for a new private function native_window_set_buffers_user_dimensions which overrides the native window size as the default buffer size. This is intended for use primarily by ANativeWindow_SetBuffersGeometry so that application-set buffer dimensions may co-exist with pre-rotation in e.g. the GLES driver which calls native_window_set_buffers_dimension. Change-Id: I6c0fc334c070290cc15b04daae1484d0a28cd8ad
* audio: added definitions for usb audio devicesEric Laurent2012-04-061-0/+14
| | | | Change-Id: I4a4f5919708a09f87974367961b1d09664ae6c06
* Add AUDIO_POLICY_OUTPUT_FLAG_FASTGlenn Kasten2012-03-261-1/+2
| | | | Change-Id: I513b84de9c08957e22bff1fc2f25e4f4098111ef
* Merge "audio_channel_in/out_mask_from_count"Glenn Kasten2012-03-191-2/+15
|\
| * audio_channel_in/out_mask_from_countGlenn Kasten2012-03-141-2/+15
| | | | | | | | Change-Id: I879d188cf64ea1dbfa1a0574dee77119c2b08e26
* | Fix switch indentation in audio_bytes_per_sampleJean-Michel Trivi2012-03-151-12/+12
| | | | | | | | | | | | Align "case" keyword with "switch" keyword. Change-Id: I57ef96253fb1fc925315b557ea27ccc35f63c2f8
* | Add camera ping command and release message.Wu-cheng Li2012-03-141-0/+19
|/ | | | | | | | | | | | | | | | | | | | The problem is both face unlock and camera application try to open the hardware camera at the same time. A new camera open API is added to let face unlock take the camera away from the existing client. The release message is used to notify the existing client, so it has time to release the hardware camera and clean up. If existing client tries to use the camera after it is released, the method will return error. It is still possible that the camera has been taken and the existing client has not got the notification. When any method returns error, the existing client can use ping command to check whether the camera has been released. If yes, the client can silently finish the app itself or show a toast if it wants. bug:5584464 Change-Id: I87f9f7db2f7b2b70ab2405f9b3da0d8946d6a01b
* audio policy: added flag for primary outputEric Laurent2012-03-081-4/+15
| | | | | | | | | Added a flag for output stream attributes indicating a primary audio output stream. The primary audio output stream is unique on a platform and receives all volume, routing and parameters related to telephony use case. Change-Id: Ic50b3c02cc60805031f26b819da6cf9ad65ad11c
* Add function to derive a channel mask from a channel countJean-Michel Trivi2012-03-051-1/+35
| | | | Change-Id: I22523ded9cd8e5283a285a9db21d819bbbc1b6c3
* renamed audio policy output flag.Eric Laurent2012-03-011-1/+1
| | | | | | | Renamed AUDIO_POLICY_OUTPUT_FLAG_INDIRECT to AUDIO_POLICY_OUTPUT_FLAG_NONE which is more appropriate. Change-Id: Ie898ddc2279db55a65ece96e09232163c2e78024
* add missing includeMathias Agopian2012-02-251-0/+1
| | | | Change-Id: Id93278c59cfdf72a62a4fe26178bd5c3e43b089e
* Use audio_format_t consistentlyGlenn Kasten2012-01-121-3/+3
| | | | Change-Id: I7eb489b1c1cbe9bfadd43cd7645da86b90fab652
* am 3bc5e452: am 7cd3e0a3: Document ANativeWindow\'s buffer refcountingJesse Hall2011-12-131-12/+30
|\ | | | | | | | | * commit '3bc5e452808514c48cdb5d2c3ca14c022aeecf6f': Document ANativeWindow's buffer refcounting
| * Document ANativeWindow's buffer refcountingJesse Hall2011-12-121-12/+30
| | | | | | | | Change-Id: I5454e90afd1a1b7d4a75c503f8dca712dba33790
* | Add camera focus move message.Wu-cheng Li2011-11-291-0/+9
|/ | | | | bug:5534973 Change-Id: I45213b1a4db3dbcfc0ab124689f27a88335fb26b
* Update camera documentation about face detection.Wu-cheng Li2011-10-131-2/+1
| | | | | bug:5169599 Change-Id: I5280137cee5401fadec36cae732ecb78a2d44dc3
* Allow CAMERA_CMD_SET_DISPLAY_ORIENTATION to change during preview.Wu-cheng Li2011-10-071-2/+2
| | | | | bug:5422679 Change-Id: Ia4a09328bd9e1d36af680be4d065bc08cf0dec0f
* another attempt at fixing the SDK build.Mathias Agopian2011-08-111-4/+6
| | | | Change-Id: I2b96cf7d046b694b232f0699257e4e0608fda660
* really fix the SDK build and fix THE buildMathias Agopian2011-08-111-1/+1
| | | | Change-Id: I994cccf01bcafedc9ea11648eafc20300c58878b
* attempt to fix SDK build.Mathias Agopian2011-08-111-0/+2
| | | | | | missing cdefs.h include Change-Id: Ic7dfdfe74976a459f166a7576b077965cd1fda6a
* Add a priority constant in to the graphics HAL headerMathias Agopian2011-08-091-0/+14
| | | | | | | | | this is needed if a display/gpu driver needs to create service threads that can block the main ui thread. to avoid priority inversions, these must run at HAL_PRIORITY_URGENT_DISPLAY Change-Id: I3af592e05a6d1b6f39a2b7885a7c842e54abfce2