resolve merge conflicts of 7c451a93 to oc-dev-plus-aosp

am: 1ae7379baa

Change-Id: Id715cb96a71fc9e48e14ff2e6f9e4883402aa6f6
This commit is contained in:
Mark Salyzyn 2017-04-12 16:28:32 +00:00 committed by android-build-merger
commit 8774152335
34 changed files with 177 additions and 134 deletions

View file

@ -22,7 +22,8 @@
#ifndef ANDROID_AUDIO_ALSAOPS_H
#define ANDROID_AUDIO_ALSAOPS_H
#include <cutils/log.h>
#include <log/log.h>
#include <system/audio.h>
#include <tinyalsa/asoundlib.h>

View file

@ -17,8 +17,8 @@
#ifndef ANDROID_INCLUDE_HARDWARE_FINGERPRINT_H
#define ANDROID_INCLUDE_HARDWARE_FINGERPRINT_H
#include <hardware/hw_auth_token.h>
#include <hardware/hardware.h>
#include <hardware/hw_auth_token.h>
#define FINGERPRINT_MODULE_API_VERSION_1_0 HARDWARE_MODULE_API_VERSION(1, 0)
#define FINGERPRINT_MODULE_API_VERSION_2_0 HARDWARE_MODULE_API_VERSION(2, 0)

View file

@ -21,13 +21,16 @@
#include <malloc.h>
#include <pthread.h>
#include <stdint.h>
#include <sys/time.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <log/log.h>
#include <hardware/audio.h>
#include <hardware/hardware.h>
#include <system/audio.h>
#include <hardware/audio.h>
struct stub_audio_device {
struct audio_hw_device device;

View file

@ -26,9 +26,10 @@
#include <sys/limits.h>
#include <cutils/compiler.h>
#include <cutils/log.h>
#include <cutils/properties.h>
#include <cutils/str_parms.h>
#include <log/log.h>
#include <utils/String8.h>
#include <hardware/audio.h>
#include <hardware/hardware.h>
@ -39,8 +40,6 @@
#include <media/nbaio/MonoPipe.h>
#include <media/nbaio/MonoPipeReader.h>
#include <utils/String8.h>
#define LOG_STREAMS_TO_FILES 0
#if LOG_STREAMS_TO_FILES
#include <fcntl.h>

View file

@ -13,25 +13,30 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
//#define LOG_NDEBUG 0
#define LOG_TAG "Camera"
#include <errno.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <cstdlib>
#include <stdio.h>
#include <log/log.h>
#include <utils/Mutex.h>
#define ATRACE_TAG (ATRACE_TAG_CAMERA | ATRACE_TAG_HAL)
#include <utils/Trace.h>
#include <hardware/camera3.h>
#include <sync/sync.h>
#include <system/camera_metadata.h>
#include <system/graphics.h>
#include <utils/Mutex.h>
#include "CameraHAL.h"
#include "Metadata.h"
#include "Stream.h"
//#define LOG_NDEBUG 0
#define LOG_TAG "Camera"
#include <cutils/log.h>
#define ATRACE_TAG (ATRACE_TAG_CAMERA | ATRACE_TAG_HAL)
#include <utils/Trace.h>
#include "Camera.h"
#define CAMERA_SYNC_TIMEOUT 5000 // in msecs

View file

@ -13,20 +13,20 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
//#define LOG_NDEBUG 0
#define LOG_TAG "DefaultCameraHAL"
#include <cstdlib>
#include <log/log.h>
#define ATRACE_TAG (ATRACE_TAG_CAMERA | ATRACE_TAG_HAL)
#include <cutils/trace.h>
#include <hardware/camera_common.h>
#include <hardware/hardware.h>
#include "ExampleCamera.h"
#include "VendorTags.h"
//#define LOG_NDEBUG 0
#define LOG_TAG "DefaultCameraHAL"
#include <cutils/log.h>
#define ATRACE_TAG (ATRACE_TAG_CAMERA | ATRACE_TAG_HAL)
#include <cutils/trace.h>
#include "CameraHAL.h"
/*

View file

@ -13,17 +13,18 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <system/camera_metadata.h>
#include "Camera.h"
//#define LOG_NDEBUG 0
#define LOG_TAG "ExampleCamera"
#include <cutils/log.h>
#include <stdint.h>
#include <log/log.h>
#define ATRACE_TAG (ATRACE_TAG_CAMERA | ATRACE_TAG_HAL)
#include <utils/Trace.h>
#include <system/camera_metadata.h>
#include "Camera.h"
#include "ExampleCamera.h"
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))

View file

@ -13,12 +13,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
//#define LOG_NDEBUG 0
#define LOG_TAG "Metadata"
#include <system/camera_metadata.h>
//#define LOG_NDEBUG 0
#define LOG_TAG "Metadata"
#include <cutils/log.h>
#include <log/log.h>
#define ATRACE_TAG (ATRACE_TAG_CAMERA | ATRACE_TAG_HAL)
#include <utils/Trace.h>

View file

@ -13,20 +13,21 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <stdio.h>
#include <hardware/camera3.h>
#include <hardware/gralloc.h>
#include <system/graphics.h>
#include <utils/Mutex.h>
//#define LOG_NDEBUG 0
#define LOG_TAG "Stream"
#include <cutils/log.h>
#include <stdio.h>
#include <log/log.h>
#include <utils/Mutex.h>
#define ATRACE_TAG (ATRACE_TAG_CAMERA | ATRACE_TAG_HAL)
#include <utils/Trace.h>
#include <hardware/camera3.h>
#include <hardware/gralloc.h>
#include <system/graphics.h>
#include "Stream.h"
namespace default_camera_hal {

View file

@ -13,17 +13,19 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <system/camera_metadata.h>
#include "Metadata.h"
//#define LOG_NDEBUG 0
#define LOG_TAG "VendorTags"
#include <cutils/log.h>
#include <stdint.h>
#include <log/log.h>
#define ATRACE_TAG (ATRACE_TAG_CAMERA | ATRACE_TAG_HAL)
#include <utils/Trace.h>
#include <system/camera_metadata.h>
#include "Metadata.h"
#include "VendorTags.h"
namespace default_camera_hal {

View file

@ -17,10 +17,14 @@
#include <errno.h>
#include <malloc.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <log/log.h>
#include <hardware/hardware.h>
#include <hardware/consumerir.h>
#include <hardware/hardware.h>
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))

View file

@ -17,10 +17,13 @@
#include <errno.h>
#include <malloc.h>
#include <stdint.h>
#include <string.h>
#include <cutils/log.h>
#include <hardware/hardware.h>
#include <log/log.h>
#include <hardware/fingerprint.h>
#include <hardware/hardware.h>
static int fingerprint_close(hw_device_t *dev)
{

View file

@ -14,24 +14,20 @@
* limitations under the License.
*/
#include <dlfcn.h>
#include <errno.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <dlfcn.h>
#include <cutils/ashmem.h>
#include <cutils/log.h>
#include <hardware/hardware.h>
#include <hardware/gralloc.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <string.h>
#include <stdlib.h>
#include <cutils/log.h>
#include <cutils/atomic.h>
#include <log/log.h>
#include <hardware/gralloc.h>
#include <hardware/hardware.h>
#ifdef __ANDROID__
#include <linux/fb.h>

View file

@ -14,25 +14,24 @@
* limitations under the License.
*/
#include <limits.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <pthread.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <cutils/ashmem.h>
#include <cutils/log.h>
#include <cutils/atomic.h>
#include <log/log.h>
#include <hardware/hardware.h>
#include <hardware/gralloc.h>
#include <hardware/hardware.h>
#include "gralloc_priv.h"
#include "gr.h"

View file

@ -14,18 +14,17 @@
* limitations under the License.
*/
#include <limits.h>
#include <errno.h>
#include <limits.h>
#include <pthread.h>
#include <unistd.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <cutils/log.h>
#include <cutils/atomic.h>
#include <log/log.h>
#include <hardware/hardware.h>
#include <hardware/gralloc.h>

View file

@ -14,15 +14,14 @@
* limitations under the License.
*/
#include <hardware/hardware.h>
#include <errno.h>
#include <fcntl.h>
#include <malloc.h>
#include <cutils/log.h>
#include <cutils/atomic.h>
#include <log/log.h>
#include <hardware/hardware.h>
#include <hardware/hwcomposer.h>
#include <EGL/egl.h>

View file

@ -23,7 +23,7 @@
#include <string.h>
#include <sys/time.h>
#include <cutils/log.h>
#include <log/log.h>
#include <hardware/hardware.h>
#include <hardware/local_time_hal.h>

View file

@ -17,11 +17,11 @@
#include <malloc.h>
#include <string.h>
#include <cutils/log.h>
#include <log/log.h>
#include <hardware/hardware.h>
#include <hardware/nfc.h>
/*
* We want to silence the "unused argument" that gcc and clang give.
* Other compilers generating this warning will need to provide their

View file

@ -16,16 +16,18 @@
#define LOG_TAG "radio_hal_tool"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <log/log.h>
#include <cutils/log.h>
#include <hardware/hardware.h>
#include <hardware/radio.h>
#include <system/radio.h>
#include <system/radio_metadata.h>
// Global state variables.
const struct radio_tuner *hal_tuner = NULL;

View file

@ -17,22 +17,26 @@
#define LOG_TAG "radio_hw_stub"
#define LOG_NDEBUG 0
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <fcntl.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/prctl.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <time.h>
#include <unistd.h>
#include <cutils/log.h>
#include <cutils/list.h>
#include <system/radio.h>
#include <system/radio_metadata.h>
#include <log/log.h>
#include <hardware/hardware.h>
#include <hardware/radio.h>
#include <system/radio.h>
#include <system/radio_metadata.h>
static const radio_hal_properties_t hw_properties = {
.class_id = RADIO_CLASS_AM_FM,

View file

@ -14,11 +14,13 @@
* limitations under the License.
*/
#include <hardware/sensors.h>
#include <algorithm>
#include <pthread.h>
#include <cutils/log.h>
#include <algorithm>
#include <log/log.h>
#include <hardware/sensors.h>
#include "SensorEventQueue.h"
SensorEventQueue::SensorEventQueue(int capacity) {

View file

@ -51,21 +51,20 @@
#define ERROR_BAD_COMMAND "Bad command"
#include <arpa/inet.h>
#include <errno.h>
#include <pthread.h>
#include <netinet/in.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <errno.h>
#include <pthread.h>
#include <sys/prctl.h>
#include <cutils/log.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include <log/log.h>
#include <hardware/hardware.h>
#include <system/sound_trigger.h>

View file

@ -18,8 +18,8 @@
#include <fcntl.h>
#include <malloc.h>
#include <cutils/log.h>
#include <cutils/native_handle.h>
#include <log/log.h>
#include <hardware/tv_input.h>

View file

@ -16,21 +16,28 @@
//#define LOG_NDEBUG 0
#define LOG_TAG "Camera"
#include <cutils/log.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <cstdlib>
#include <stdio.h>
#include <hardware/camera3.h>
#include <system/camera_metadata.h>
#include <system/graphics.h>
#include <log/log.h>
#include <utils/Mutex.h>
#include "CameraHAL.h"
#include "Metadata.h"
#include "Stream.h"
#define ATRACE_TAG (ATRACE_TAG_CAMERA | ATRACE_TAG_HAL)
#include <utils/Trace.h>
#include <hardware/camera3.h>
#include <system/camera_metadata.h>
#include <system/graphics.h>
#include "CameraHAL.h"
#include "Metadata.h"
#include "Stream.h"
#include "Camera.h"
namespace usb_camera_hal {

View file

@ -16,13 +16,17 @@
//#define LOG_NDEBUG 0
#define LOG_TAG "UsbCameraHAL"
#include <cutils/log.h>
#include <cstdlib>
#include <log/log.h>
#include <utils/Mutex.h>
#include <hardware/camera_common.h>
#include <hardware/hardware.h>
#include "UsbCamera.h"
#include "CameraHAL.h"
#include "UsbCamera.h"
/*
* This file serves as the entry point to the HAL. It contains the module

View file

@ -16,7 +16,8 @@
//#define LOG_NDEBUG 0
#define LOG_TAG "HotplugThread"
#include <cutils/log.h>
#include <log/log.h>
#include "HotplugThread.h"

View file

@ -16,13 +16,14 @@
//#define LOG_NDEBUG 0
#define LOG_TAG "Metadata"
#include <cutils/log.h>
#include <system/camera_metadata.h>
#include <log/log.h>
#define ATRACE_TAG (ATRACE_TAG_CAMERA | ATRACE_TAG_HAL)
#include <utils/Trace.h>
#include <system/camera_metadata.h>
#include "Metadata.h"
namespace usb_camera_hal {

View file

@ -16,17 +16,19 @@
//#define LOG_NDEBUG 0
#define LOG_TAG "Stream"
#include <cutils/log.h>
#include <stdio.h>
#include <hardware/camera3.h>
#include <hardware/gralloc.h>
#include <system/graphics.h>
#include <log/log.h>
#include <utils/Mutex.h>
#define ATRACE_TAG (ATRACE_TAG_CAMERA | ATRACE_TAG_HAL)
#include <utils/Trace.h>
#include <hardware/camera3.h>
#include <hardware/gralloc.h>
#include <system/graphics.h>
#include "Stream.h"
namespace usb_camera_hal {

View file

@ -16,13 +16,16 @@
//#define LOG_NDEBUG 0
#define LOG_TAG "UsbCameraDevice"
#include <cutils/log.h>
#include <system/camera_metadata.h>
#include <stdint.h>
#include <log/log.h>
#define ATRACE_TAG (ATRACE_TAG_CAMERA | ATRACE_TAG_HAL)
#include <utils/Trace.h>
#include <system/camera_metadata.h>
#include "Camera.h"
#include "UsbCamera.h"

View file

@ -31,7 +31,7 @@
#include <sys/time.h>
#include <time.h>
#include <cutils/log.h>
#include <log/log.h>
#include <system/radio.h>
#include <hardware/hardware.h>
#include <hardware/vehicle.h>

View file

@ -14,19 +14,19 @@
* limitations under the License.
*/
#include <hardware/vibrator.h>
#include <hardware/hardware.h>
#include <hardware/vibrator.h>
#include <cutils/log.h>
#include <errno.h>
#include <fcntl.h>
#include <malloc.h>
#include <stdio.h>
#include <math.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <math.h>
#include <log/log.h>
#define TIMEOUT_STR_LEN 20

View file

@ -16,8 +16,13 @@
#define LOG_NDEBUG 0
#define LOG_TAG "CameraMetadataTestFunctional"
#include "cutils/log.h"
#include <stdint.h>
#include <string>
#include "cutils/properties.h"
#include "log/log.h"
#include "utils/Errors.h"
#include "gtest/gtest.h"
@ -31,8 +36,6 @@
#include <gui/CpuConsumer.h>
#include <gui/Surface.h>
#include <string>
#include "CameraStreamFixture.h"
#include "TestExtensions.h"

View file

@ -17,14 +17,15 @@
#include <inttypes.h>
#include <string.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <sys/cdefs.h>
#include <sys/types.h>
#include <cutils/log.h>
#include <log/log.h>
#include <utils/Timers.h>
#include <hardware/sensors.h>
#include <utils/Timers.h>
char const* getSensorName(int type) {
switch(type) {

View file

@ -17,13 +17,15 @@
#define LOG_TAG "vehicle-hal-tool"
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <log/log.h>
#include <hardware/hardware.h>
#include <hardware/vehicle.h>
#include <cutils/log.h>
void usage() {
printf("Usage: "
"./vehicle-hal-tool [-l] [-m -p -t [-v]]\n"