diff options
| author | android-build-team Robot <android-build-team-robot@google.com> | 2018-05-27 07:27:00 +0000 |
|---|---|---|
| committer | android-build-team Robot <android-build-team-robot@google.com> | 2018-05-27 07:27:00 +0000 |
| commit | 1120f61876e60d7a6655ea29e08a771fdacad2e1 (patch) | |
| tree | b79d061eeed31aeb38902c9b63f66553eef9b924 | |
| parent | 19131e0f82af2ed99c3eb34d6cb3c52e3dac9393 (diff) | |
| parent | a12e7b7847958fd57144ea643fed971543dbf353 (diff) | |
| download | android_hardware_interfaces-1120f61876e60d7a6655ea29e08a771fdacad2e1.tar.gz android_hardware_interfaces-1120f61876e60d7a6655ea29e08a771fdacad2e1.tar.bz2 android_hardware_interfaces-1120f61876e60d7a6655ea29e08a771fdacad2e1.zip | |
Snap for 4807121 from a12e7b7847958fd57144ea643fed971543dbf353 to pi-release
Change-Id: I1e83ed6567ab3b3694884f35b3dfa60f85df79f9
| -rw-r--r-- | automotive/vehicle/2.0/types.hal | 5 | ||||
| -rw-r--r-- | camera/device/3.2/default/CameraDeviceSession.cpp | 25 | ||||
| -rw-r--r-- | confirmationui/1.0/default/service.cpp | 1 | ||||
| -rw-r--r-- | current.txt | 2 | ||||
| -rw-r--r-- | keymaster/4.0/default/service.cpp | 1 | ||||
| -rw-r--r-- | media/omx/1.0/vts/functional/audio/media_audio_hidl_test_common.cpp | 45 |
6 files changed, 72 insertions, 7 deletions
diff --git a/automotive/vehicle/2.0/types.hal b/automotive/vehicle/2.0/types.hal index a031ee982..57179dfd6 100644 --- a/automotive/vehicle/2.0/types.hal +++ b/automotive/vehicle/2.0/types.hal @@ -501,7 +501,8 @@ enum VehicleProperty : int32_t { /** * Tire pressure * - * The min/max range is used to indicate the recommended tire pressure. + * min/max value indicates tire pressure sensor range. Each tire will have a separate min/max + * value denoted by its areaConfig.areaId. * * @change_mode VehiclePropertyChangeMode:CONTINUOUS * @access VehiclePropertyAccess:READ @@ -510,7 +511,7 @@ enum VehicleProperty : int32_t { TIRE_PRESSURE = ( 0x0309 | VehiclePropertyGroup:SYSTEM - | VehiclePropertyType:MIXED + | VehiclePropertyType:FLOAT | VehicleArea:WHEEL), /** diff --git a/camera/device/3.2/default/CameraDeviceSession.cpp b/camera/device/3.2/default/CameraDeviceSession.cpp index f33da1349..8d002646c 100644 --- a/camera/device/3.2/default/CameraDeviceSession.cpp +++ b/camera/device/3.2/default/CameraDeviceSession.cpp @@ -18,6 +18,7 @@ #include <android/log.h> #include <set> +#include <cutils/properties.h> #include <utils/Trace.h> #include <hardware/gralloc.h> #include <hardware/gralloc1.h> @@ -31,9 +32,9 @@ namespace V3_2 { namespace implementation { // Size of request metadata fast message queue. Change to 0 to always use hwbinder buffer. -static constexpr size_t CAMERA_REQUEST_METADATA_QUEUE_SIZE = 1 << 20 /* 1MB */; +static constexpr int32_t CAMERA_REQUEST_METADATA_QUEUE_SIZE = 1 << 20 /* 1MB */; // Size of result metadata fast message queue. Change to 0 to always use hwbinder buffer. -static constexpr size_t CAMERA_RESULT_METADATA_QUEUE_SIZE = 1 << 20 /* 1MB */; +static constexpr int32_t CAMERA_RESULT_METADATA_QUEUE_SIZE = 1 << 20 /* 1MB */; // Metadata sent by HAL will be replaced by a compact copy // if their (total size >= compact size + METADATA_SHRINK_ABS_THRESHOLD && @@ -95,14 +96,30 @@ bool CameraDeviceSession::initialize() { return true; } + int32_t reqFMQSize = property_get_int32("ro.camera.req.fmq.size", /*default*/-1); + if (reqFMQSize < 0) { + reqFMQSize = CAMERA_REQUEST_METADATA_QUEUE_SIZE; + } else { + ALOGV("%s: request FMQ size overridden to %d", __FUNCTION__, reqFMQSize); + } + mRequestMetadataQueue = std::make_unique<RequestMetadataQueue>( - CAMERA_REQUEST_METADATA_QUEUE_SIZE, false /* non blocking */); + static_cast<size_t>(reqFMQSize), + false /* non blocking */); if (!mRequestMetadataQueue->isValid()) { ALOGE("%s: invalid request fmq", __FUNCTION__); return true; } + + int32_t resFMQSize = property_get_int32("ro.camera.res.fmq.size", /*default*/-1); + if (resFMQSize < 0) { + resFMQSize = CAMERA_RESULT_METADATA_QUEUE_SIZE; + } else { + ALOGV("%s: result FMQ size overridden to %d", __FUNCTION__, resFMQSize); + } mResultMetadataQueue = std::make_shared<RequestMetadataQueue>( - CAMERA_RESULT_METADATA_QUEUE_SIZE, false /* non blocking */); + static_cast<size_t>(resFMQSize), + false /* non blocking */); if (!mResultMetadataQueue->isValid()) { ALOGE("%s: invalid result fmq", __FUNCTION__); return true; diff --git a/confirmationui/1.0/default/service.cpp b/confirmationui/1.0/default/service.cpp index 58ec66aba..39f3f62b0 100644 --- a/confirmationui/1.0/default/service.cpp +++ b/confirmationui/1.0/default/service.cpp @@ -27,6 +27,7 @@ using android::hardware::joinRpcThreadpool; using android::hardware::confirmationui::V1_0::implementation::ConfirmationUI; int main() { + ::android::hardware::configureRpcThreadpool(1, true /*willJoinThreadpool*/); auto confirmationui = new ConfirmationUI(); auto status = confirmationui->registerAsService(); if (status != android::OK) { diff --git a/current.txt b/current.txt index 15b096b3b..f45af2739 100644 --- a/current.txt +++ b/current.txt @@ -311,7 +311,7 @@ f2904a4c108ad1b93eb2fa4e43b82bd01ce1ff26156316e49d1d9fc80dfecaad android.hardwar 3b17c1fdfc389e0abe626c37054954b07201127d890c2bc05d47613ec1f4de4f android.hardware.automotive.evs@1.0::types b3caf524c46a47d67e6453a34419e1881942d059e146cda740502670e9a752c3 android.hardware.automotive.vehicle@2.0::IVehicle 7ce8728b27600e840cacf0a832f6942819fe535f9d3797ae052d5eef5065921c android.hardware.automotive.vehicle@2.0::IVehicleCallback -3562503f550f70eec7a688343a600fb92b74efb807a31452b70195dfab328b22 android.hardware.automotive.vehicle@2.0::types +06fa7218fb1500acca69b265a7e697b885933f7146cd6e8d83fe6c1fa06ce876 android.hardware.automotive.vehicle@2.0::types 32cc50cc2a7658ec613c0c2dd2accbf6a05113b749852879e818b8b7b438db19 android.hardware.bluetooth.a2dp@1.0::IBluetoothAudioHost ff4be64d7992f8bec97dff37f35450e79b3430c61f85f54322ce45bef229dc3b android.hardware.bluetooth.a2dp@1.0::IBluetoothAudioOffload 27f22d2e873e6201f9620cf4d8e2facb25bd0dd30a2b911e441b4600d560fa62 android.hardware.bluetooth.a2dp@1.0::types diff --git a/keymaster/4.0/default/service.cpp b/keymaster/4.0/default/service.cpp index cfb960a5c..fdcc6ba90 100644 --- a/keymaster/4.0/default/service.cpp +++ b/keymaster/4.0/default/service.cpp @@ -24,6 +24,7 @@ using android::hardware::keymaster::V4_0::SecurityLevel; int main() { + ::android::hardware::configureRpcThreadpool(1, true /* willJoinThreadpool */); auto keymaster = ::keymaster::V4_0::ng::CreateKeymasterDevice(SecurityLevel::SOFTWARE); auto status = keymaster->registerAsService(); if (status != android::OK) { diff --git a/media/omx/1.0/vts/functional/audio/media_audio_hidl_test_common.cpp b/media/omx/1.0/vts/functional/audio/media_audio_hidl_test_common.cpp index 9500094d6..e7ae08301 100644 --- a/media/omx/1.0/vts/functional/audio/media_audio_hidl_test_common.cpp +++ b/media/omx/1.0/vts/functional/audio/media_audio_hidl_test_common.cpp @@ -94,6 +94,51 @@ void setupPCMPort(sp<IOmxNode> omxNode, OMX_U32 portIndex, int32_t nChannels, param.eChannelMapping[0] = OMX_AUDIO_ChannelLF; param.eChannelMapping[1] = OMX_AUDIO_ChannelRF; break; + case 3: + param.eChannelMapping[0] = OMX_AUDIO_ChannelLF; + param.eChannelMapping[1] = OMX_AUDIO_ChannelRF; + param.eChannelMapping[2] = OMX_AUDIO_ChannelCF; + break; + case 4: + param.eChannelMapping[0] = OMX_AUDIO_ChannelLF; + param.eChannelMapping[1] = OMX_AUDIO_ChannelRF; + param.eChannelMapping[2] = OMX_AUDIO_ChannelLR; + param.eChannelMapping[3] = OMX_AUDIO_ChannelRR; + break; + case 5: + param.eChannelMapping[0] = OMX_AUDIO_ChannelLF; + param.eChannelMapping[1] = OMX_AUDIO_ChannelRF; + param.eChannelMapping[2] = OMX_AUDIO_ChannelCF; + param.eChannelMapping[3] = OMX_AUDIO_ChannelLR; + param.eChannelMapping[4] = OMX_AUDIO_ChannelRR; + break; + case 6: + param.eChannelMapping[0] = OMX_AUDIO_ChannelLF; + param.eChannelMapping[1] = OMX_AUDIO_ChannelRF; + param.eChannelMapping[2] = OMX_AUDIO_ChannelCF; + param.eChannelMapping[3] = OMX_AUDIO_ChannelLFE; + param.eChannelMapping[4] = OMX_AUDIO_ChannelLR; + param.eChannelMapping[5] = OMX_AUDIO_ChannelRR; + break; + case 7: + param.eChannelMapping[0] = OMX_AUDIO_ChannelLF; + param.eChannelMapping[1] = OMX_AUDIO_ChannelRF; + param.eChannelMapping[2] = OMX_AUDIO_ChannelCF; + param.eChannelMapping[3] = OMX_AUDIO_ChannelLFE; + param.eChannelMapping[4] = OMX_AUDIO_ChannelLR; + param.eChannelMapping[5] = OMX_AUDIO_ChannelRR; + param.eChannelMapping[6] = OMX_AUDIO_ChannelCS; + break; + case 8: + param.eChannelMapping[0] = OMX_AUDIO_ChannelLF; + param.eChannelMapping[1] = OMX_AUDIO_ChannelRF; + param.eChannelMapping[2] = OMX_AUDIO_ChannelCF; + param.eChannelMapping[3] = OMX_AUDIO_ChannelLFE; + param.eChannelMapping[4] = OMX_AUDIO_ChannelLR; + param.eChannelMapping[5] = OMX_AUDIO_ChannelRR; + param.eChannelMapping[6] = OMX_AUDIO_ChannelLS; + param.eChannelMapping[7] = OMX_AUDIO_ChannelRS; + break; default: EXPECT_TRUE(false); } |
