summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* audio: define type for unique audio Ids.Eric Laurent2014-07-281-0/+5
| | | | | | | | Define a type for unique audio Ids allocated by AudioFLinger for use as session Ids or I/O handles. Bug: 12378680. Change-Id: Ic9019fff97a1227b60e48c88c57d25dbbdcd7d1e
* audio: add audio device address helper functionEric Laurent2014-07-281-0/+18
| | | | | | | | | Add helper function to derive set_parameter command string from device type and address. 14815883 Change-Id: Icf47218f1809f567ef93bdd99d6308475886b298
* audio: move struct audio_config definition to audio.hEric Laurent2014-07-281-0/+32
| | | | | | | | | | | struct audio_config definition moved from hardware/audio.h to system/audio.h for use inside the framework and not only at the HAL. Added frame_count field to struct audio_config. Bug: 14815883. Change-Id: Ib0e99a60234b8e5302eb882b89e5a021a94ec2cb
* Define new audio attribute flag: beaconJean-Michel Trivi2014-07-271-0/+1
| | | | | | | | | | | | Flag AUDIO_FLAG_BEACON characterizes streams where the system ensures that the playback of the sound will be compatible with its use as a broadcast for surrounding people and/or devices. Ensures audibility with no or minimal post-processing applied. Bug 15415971 Change-Id: I1df9dc50e3fcc973a0709a55df5b3bd95f81eb58
* graphics: update raw10 to allow padding between rowsZhijun He2014-07-251-11/+16
| | | | Change-Id: Ied1f42bb977212d9e5f3b2b2b3caa9c8c2caac5d
* Remove <cutils/tztime.h>.Elliott Hughes2014-07-241-24/+0
| | | | | | | (cherry picked from commit f2e4b411e6e1a90209a4c815c37a36f0af1af120) Bug: 15765976 Change-Id: I758acdb18d75ea601a06d02b53f1df9f1ad17a26
* Put back some deleted code.Sreeram Ramachandran2014-07-231-0/+3
| | | | | | | | | http://ag/507249 removed a bunch of supposedly dead (unused) code. It turns out at least ifc_disable() is being used in some protected partner branches. Put back that as well as ifc_enable() to keep it symmetric. Bug: 15413389 Change-Id: Ibec83a66e5d9079876ccf36d250b95b7c0294c03
* Cleanup: Delete dead code.Sreeram Ramachandran2014-07-221-14/+0
| | | | | Bug: 15413389 Change-Id: I315468832ef18ffc84174e54774ab63b86d284dc
* Do not typedef char16_t if it is a keyword.Hans Boehm2014-07-181-1/+4
| | | | | | | | Don't define char16_t on platforms where char16_t is a keyword, as C11 and C++11 define it to be. (cherry picked from commit dfdbe61d28dbf3e45b6108d739170482ca19a03c) Change-Id: I6717bc2133c1363ecd85861f3869e1eabd2ce96a
* Add force usage and config type for HDMI-CEC system audio mode.Jungshik Jang2014-07-162-0/+5
| | | | | | | | | | | | | | | | | | | | | | New Usage Type: AUDIO_POLICY_FORCE_FOR_HDMI_SYSTEM_AUDIO New Config Type: AUDIO_POLICY_FORCE_HDMI_SYSTEM_AUDIO_ENFORCED When HDMI-CEC system audio mode is enabled, AudioService will call setForceUse(AUDIO_POLICY_FORCE_FOR_HDMI_SYSTEM_AUDIO, AUDIO_POLICY_FORCE_HDMI_SYSTEM_AUDIO_ENFORCED); in order to notify enabled system audio mode, so that audio policy manager chooses proper output. When it turns into off, AudioService will call setForceUse(AUDIO_POLICY_FORCE_FOR_HDMI_SYSTEM_AUDIO, AUDIO_POLICY_FORCE_NONE); Along with it, add new audio output devic type, AUDIO_DEVICE_OUT_AUX_LINE, in order to distinguish line out for headphone and aux output of av device. Bug: 16305986 Bug: 16002150 Change-Id: Idecdf626737f6635ea3cda638c343260b1661c77
* Allow sticky transform to be set in ANativeWindow.Ruben Brunk2014-07-141-1/+38
| | | | | | | | Bug: 15116722 - Adds methods to set the sticky transform field. Change-Id: Idaa4311dfd027b2d2b8ea5e2c6cba2da5779d753
* Merge "Representation of channel masks for position assignment and index ↵Glenn Kasten2014-07-111-25/+231
|\ | | | | | | assignment"
| * Representation of channel masks for position assignment and index assignmentGlenn Kasten2014-07-121-25/+231
| | | | | | | | | | Bug: 16245854 Change-Id: I76c7c39c7d4f8d5035016653aa91fa7c1e749bbd
* | am e6b0c566: am 981dcd79: Merge "Add comment to discourage use of ↵Hans Boehm2014-07-121-2/+33
|\ \ | |/ |/| | | | | | | | | cutils/atomic.h." * commit 'e6b0c566762dbea1c45198d15ecc5e8a59378d73': Add comment to discourage use of cutils/atomic.h.
| * Add comment to discourage use of cutils/atomic.h.Hans Boehm2014-07-111-2/+33
| | | | | | | | Change-Id: Ib05c745158fdf5a11fd4697c3665a6370ffc04f5
* | audio: add definitions for aac sub formatsaarti jadhav-gaikwad2014-07-111-3/+32
| | | | | | | | | | | | add definitions for aac sub formats Change-Id: I610caa510dfc7347f7c98e19359545423edd76b3
* | Merge "Fix size of "values" fields of audio_gain_config."Jungshik Jang2014-07-101-4/+4
|\ \
| * | Fix size of "values" fields of audio_gain_config.Jungshik Jang2014-07-111-4/+4
| | | | | | | | | | | | | | | | | | | | | It should be sizeof(audio_channel_mask_t) * 8 not sizeof(audio_channel_mask_t) alone. Change-Id: I3523dd4d44a0900ba1845b3675a22451f1fc2f3c
* | | Remove forced usage types for HDMI-CEC system audio mode.Jungshik Jang2014-07-111-3/+0
|/ / | | | | | | Change-Id: Ice8aab76281aa62a42665d7c86df1041c7f64ab9
* | Merge "audio: add definition for new audio loopback input device"Terry Heo2014-07-021-0/+2
|\ \
| * | audio: add definition for new audio loopback input deviceTerry Heo2014-07-081-0/+2
| | | | | | | | | | | | | | | Bug: 15437484 Change-Id: I62da0596d405c3bb5e00b461f7d4fd11627ed391
* | | Revert "Revert "sound trigger: several data structure updates""Eric Laurent2014-07-081-3/+51
|/ / | | | | | | | | | | This reverts commit 6ef7c14b0292a87dd3a04d243d5c7de36a0eb3da. Change-Id: I285b8388e7fd6f697b76fd18697edea7368991bb
* | Revert "sound trigger: several data structure updates"Eric Laurent2014-07-071-51/+3
| | | | | | | | | | | | This reverts commit 135dd2ee3dc56cf79b14a6de57fcdc805face6bc. Change-Id: Iad97090c77ad36567eb3c6550ebe3812768e88ad
* | sound trigger: several data structure updatesEric Laurent2014-07-061-3/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added sound model implementor UUID. Added capture preamble duration in recognition event. Replaced number of users by list of user IDs in key phrase descriptor. Report confidence level for each user with user ID in recognition event. Added more configuration data to start_recognition() grouped in a recognition configuration structure. - List of keyphrases to listen to - Recognition mode - List of users with min confidence level Added definitions for sound model load callback event. Bug: 12378680. Change-Id: Ia8c12ab20448b702d13db964bdd90ac4117a58d7
* | sound trigger: add sound model and key phrase IDs.Eric Laurent2014-07-061-0/+2
| | | | | | | | | | Bug: 12378680. Change-Id: I93b1916151108ccf6eb625b0078e6ed574720b76
* | am ed559bdb: am 3dbd7e10: am 1aad06dd: Merge "implement LOG_EVENT_STRING"Nick Kralevich2014-07-022-1/+2
|\ \ | | | | | | | | | | | | * commit 'ed559bdb38e4f8edb183420f69490d4eba39f94b': implement LOG_EVENT_STRING
| * \ am 3dbd7e10: am 1aad06dd: Merge "implement LOG_EVENT_STRING"Nick Kralevich2014-07-022-1/+2
| |\ \ | | |/ | | | | | | | | | * commit '3dbd7e10688e29022db7dd0778ec8078c2a7a545': implement LOG_EVENT_STRING
| | * implement LOG_EVENT_STRINGNick Kralevich2014-07-012-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | Implement LOG_EVENT_STRING, so that native code can create new event log entries. This is needed to support logging SELinux denials to the event log. Change-Id: I6a269a832bc2f5e5da6c9dbd169ed2f901b49166
* | | Define force usage and category for System Audio.Jungshik Jang2014-07-011-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | System Audio Control in HDMI-CEC delegates audio output to Audio Receiver and audio output port is one of ARC, SPDIF and analog output (line). Change-Id: Ieb325f754f039e09aae68b700349861ca4e08cbc
* | | am 3e906630: am 33dce382: am 63a61e56: Merge "Rename __unused to __UNUSED ↵Ian Rogers2014-06-291-6/+6
|\ \ \ | |/ / | | | | | | | | | | | | | | | for glibc support." * commit '3e906630099e0508a72300e14512a62110c864c3': Rename __unused to __UNUSED for glibc support.
| * | am 33dce382: am 63a61e56: Merge "Rename __unused to __UNUSED for glibc support."Ian Rogers2014-06-291-6/+6
| |\ \ | | |/ | | | | | | | | | * commit '33dce382fd39b633731c925a1487a74332e86871': Rename __unused to __UNUSED for glibc support.
| | * Rename __unused to __UNUSED for glibc support.Ian Rogers2014-06-271-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | Glibc declares unused fields as __unused and so a #define for __unused causes issues when we built against glibc on the host. Rename __unused to __UNUSED as a workaround. This fixed checkbuild for 64-bit host builds. Bug: 13751317 Change-Id: Ic2cd52518c16661497cc819cb3fd7f1fa5c6f0fb
* | | graphics: add android raw10 formatZhijun He2014-06-251-0/+45
| | | | | | | | | | | | Change-Id: Ib1b74b1664159190e417f2e68a5a13493d04adfc
* | | am 8e1f3f58: am 2c2fdae7: am 633be1f3: Merge "Remove android_atomic_swap ↵Elliott Hughes2014-06-232-34/+0
|\ \ \ | |/ / | | | | | | | | | | | | | | | from mips & mips64." * commit '8e1f3f58e41e97cb6cf131d8bcd75e3ad2e733ad': Remove android_atomic_swap from mips & mips64.
| * | am 2c2fdae7: am 633be1f3: Merge "Remove android_atomic_swap from mips & mips64."Elliott Hughes2014-06-232-34/+0
| |\ \ | | |/ | | | | | | | | | * commit '2c2fdae75490130b3df2c4989716381deaac0969': Remove android_atomic_swap from mips & mips64.
| | * Remove android_atomic_swap from mips & mips64.Elliott Hughes2014-06-232-34/+0
| | | | | | | | | | | | | | | | | | | | | | | | Looks like this got left behind in mips by mistake, and 84c3e9923108122045d689f1d2412359ad5208eb carried this over to mips64. Clean up before it wastes any more time... Change-Id: I6aeaa6e68be81f94065589337e2f7d3483e6e43c
* | | am bad62c53: am ba467827: am 29705171: Merge "[MIPS64] add atomic-mips64"Elliott Hughes2014-06-232-0/+253
|\ \ \ | |/ / | | | | | | | | | * commit 'bad62c532c8fabbada924c617d983fbfc94623e3': [MIPS64] add atomic-mips64
| * | am ba467827: am 29705171: Merge "[MIPS64] add atomic-mips64"Elliott Hughes2014-06-232-0/+253
| |\ \ | | |/ | | | | | | | | | * commit 'ba46782770743ad8331047fc839c4e98060d167c': [MIPS64] add atomic-mips64
| | * Merge "[MIPS64] add atomic-mips64"Elliott Hughes2014-06-232-0/+253
| | |\
| | | * [MIPS64] add atomic-mips64Duane Sand2014-06-032-0/+253
| | | | | | | | | | | | | | | | | | | | | | | | Supplied by Broadcom. Change-Id: Ica8f4f6e713623e372a68e1dc11086ceb52516da
| * | | am 1fe97b3d: am 5bd578e1: Merge "cutils: Add property_get_bool, _get_int32, ↵Riley Andrews2014-06-201-0/+59
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | _get_int64" * commit '1fe97b3d0f6dbc6376a0ebe1f66725e9f73b4442': cutils: Add property_get_bool, _get_int32, _get_int64
| | * | cutils: Add property_get_bool, _get_int32, _get_int64Igor Murashkin2014-06-201-0/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Read out system properties with same syntax as SystemProperties.java * Also adds unit test suite to validate correctness of properties * Also fixes buffer overrun in property_get (cherry picked from commit d4507e9246e4855c5431cac5c3d1a9155caebc87) Change-Id: Ifd42911f93e17da09e6ff1298e8875e02f3b6608
* | | | Merge "Support parsing netlink route messages."Lorenzo Colitti2014-06-191-0/+3
|\ \ \ \
| * | | | Support parsing netlink route messages.Lorenzo Colitti2014-06-211-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 9180552 Change-Id: I4a36d869ac692647fb226d0912285bdf2ffcb1fa
* | | | | Merge "Improvements to netlink event parsing."Lorenzo Colitti2014-06-191-2/+4
|\ \ \ \ \ | |/ / / /
| * | | | Improvements to netlink event parsing.Lorenzo Colitti2014-06-211-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Accept that parseNetlinkMessage can only parse one netlink message, because its way of returning output is to modify its member variables (mAction, mParams, etc.). Currently, it loops through all the messages it finds, updating its member variables as it goes along, and always returns true at the end of the buffer. This has the following problems: 1. Since the function always returns true even when no messages were parsed, the caller has no way to know if parsing succeeded, and we get lots of "No subsystem found in netlink event" logs if the buffer did not contain any valid messages we were interested in. 2. If there are multiple messages in the buffer, all but the last message will be silently ignored. 3. If there are multiple messages and previous messages have more parameters than the last one, the resulting event will have a mixture of parameters from multiple messages. Instead of doing all this, change the contract to "parse the first valid message of interest in the buffer and return true, or return false if there were no such messages", and update the code and the comments accordingly. 2. Modify the caller (NetlinkListener) so it doesn't log an error when parseBinaryNetlinkMessage returns false, because this can now simply mean that we weren't interested in that particular message. parseBinaryNetlinkMessage already logs more informative errors. 3. Provide utility functions to check received message lengths and to convert message types to message names. 4. Simplify logging duplicate attributes. 5. Use the appropriate IFLA_xxx macros instead of rolling our own code to parse link state messages. 6. Move all the parsing code out to per-message-type parsing functions to order to simplify parseBinaryNetlinkMessage. Bug: 9180552 Change-Id: I6bbc2f7a104f618674dde2369c1fd5e93ea49430
* | | | | audio: added new audio formats.Eric Laurent2014-06-191-0/+5
|/ / / / | | | | | | | | | | | | | | | | | | | | Bug: 9428304. Change-Id: Ife1f6968a8d079b477b5afb5e5cf544e8fe3298f
* | | | am 9b86360f: am c3e23666: am 7fa1cd19: Merge "log: Fix warning with ↵Mark Salyzyn2014-06-131-0/+8
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | __USE_MINGW_ANSI_STDIO" * commit '9b86360fb41b46abfc0e475cfdea4370a93179d5': log: Fix warning with __USE_MINGW_ANSI_STDIO
| * | | am c3e23666: am 7fa1cd19: Merge "log: Fix warning with __USE_MINGW_ANSI_STDIO"Mark Salyzyn2014-06-131-0/+8
| |\ \ \ | | |/ / | | | | | | | | | | | | * commit 'c3e2366602c428cf39ce9068a834771f535d58b2': log: Fix warning with __USE_MINGW_ANSI_STDIO
| | * | log: Fix warning with __USE_MINGW_ANSI_STDIODan Willemsen2014-06-121-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I haven't seen this warning in any AOSP code, but some of our code is using this header differently than the rest of the build system, and hits this warning-turned-error: error: "__USE_MINGW_ANSI_STDIO" is not defined [-Werror=undef] Change-Id: I3c5a91f107af8bf6078e06f2ce326c5466349b79