diff options
| author | android-build-team Robot <android-build-team-robot@google.com> | 2017-09-12 18:09:08 +0000 |
|---|---|---|
| committer | android-build-team Robot <android-build-team-robot@google.com> | 2017-09-12 18:09:08 +0000 |
| commit | 8fc081b1ff4bf46322224625b674b02031ee13e7 (patch) | |
| tree | 649500b26e8afbafd81df95d39cfe52e8e67529e | |
| parent | 685542531c4dd602016dde3635d941989f0df44c (diff) | |
| parent | 8850f4cc29bede15d0bf04acdeb28140e77763e9 (diff) | |
| download | android_hardware_interfaces-8fc081b1ff4bf46322224625b674b02031ee13e7.tar.gz android_hardware_interfaces-8fc081b1ff4bf46322224625b674b02031ee13e7.tar.bz2 android_hardware_interfaces-8fc081b1ff4bf46322224625b674b02031ee13e7.zip | |
release-request-dabd8cf7-7af2-48e9-a296-ccc6a71cc25d-for-git_oc-m2-release-4328410 snap-temp-L55300000101694322
Change-Id: I6b431678fbc0425072a3e81457919dc88c8c7d86
34 files changed, 172 insertions, 90 deletions
diff --git a/CleanSpec.mk b/CleanSpec.mk index 5b31d1ea5..dd4cee026 100644 --- a/CleanSpec.mk +++ b/CleanSpec.mk @@ -61,3 +61,5 @@ $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/lib/hw/android.hardware.auto $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/lib64/hw/android.hardware.automotive*) $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/etc/init/android.hardware.automotive*) $(call add-clean-step, find $(PRODUCT_OUT)/system $(PRODUCT_OUT)/vendor -type f -name "android\.hardware\.configstore\@1\.1*" -print0 | xargs -0 rm -f) +$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/lib/android.hardware.tests*) +$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/lib/vndk/android.hardware.tests*) diff --git a/audio/2.0/vts/functional/ValidateAudioConfiguration.cpp b/audio/2.0/vts/functional/ValidateAudioConfiguration.cpp index 5fc1b3d3e..ee490239b 100644 --- a/audio/2.0/vts/functional/ValidateAudioConfiguration.cpp +++ b/audio/2.0/vts/functional/ValidateAudioConfiguration.cpp @@ -24,13 +24,9 @@ TEST(CheckConfig, audioPolicyConfigurationValidation) { const char* possibleConfigLocations[] = {"/odm/etc", "/vendor/etc", "/system/etc"}; const char* configSchemaPath = "/data/local/tmp/audio_policy_configuration.xsd"; - bool found = false; for (std::string folder : possibleConfigLocations) { const auto configPath = folder + '/' + configName; if (access(configPath.c_str(), R_OK) == 0) { - ASSERT_FALSE(found) << "Multiple " << configName << " found in " - << ::testing::PrintToString(possibleConfigLocations); - found = true; ASSERT_VALID_XML(configPath.c_str(), configSchemaPath); } } diff --git a/bluetooth/1.0/vts/functional/VtsHalBluetoothV1_0TargetTest.cpp b/bluetooth/1.0/vts/functional/VtsHalBluetoothV1_0TargetTest.cpp index fb53366c2..6c9aa1879 100644 --- a/bluetooth/1.0/vts/functional/VtsHalBluetoothV1_0TargetTest.cpp +++ b/bluetooth/1.0/vts/functional/VtsHalBluetoothV1_0TargetTest.cpp @@ -464,8 +464,9 @@ void BluetoothHidlTest::sendAndCheckACL(int num_packets, size_t size, // Return the number of completed packets reported by the controller. int BluetoothHidlTest::wait_for_completed_packets_event(uint16_t handle) { - EXPECT_TRUE(bluetooth_cb->WaitForCallback(kCallbackNameHciEventReceived) - .no_timeout); + if (!bluetooth_cb->WaitForCallback(kCallbackNameHciEventReceived).no_timeout) { + ALOGW("%s: WaitForCallback timed out.", __func__); + } int packets_processed = 0; while (event_queue.size() > 0) { hidl_vec<uint8_t> event = event_queue.front(); @@ -604,20 +605,24 @@ TEST_F(BluetoothHidlTest, LoopbackModeSinglePackets) { // This should work, but breaks on some current platforms. Figure out how to // grandfather older devices but test new ones. - int sco_packets_sent = 0; if (0 && sco_connection_handles.size() > 0) { sendAndCheckSCO(1, max_sco_data_packet_length, sco_connection_handles[0]); - sco_packets_sent = 1; - EXPECT_EQ(sco_packets_sent, - wait_for_completed_packets_event(sco_connection_handles[0])); + int sco_packets_sent = 1; + int completed_packets = wait_for_completed_packets_event(sco_connection_handles[0]); + if (sco_packets_sent != completed_packets) { + ALOGW("%s: packets_sent (%d) != completed_packets (%d)", __func__, sco_packets_sent, + completed_packets); + } } - int acl_packets_sent = 0; if (acl_connection_handles.size() > 0) { sendAndCheckACL(1, max_acl_data_packet_length, acl_connection_handles[0]); - acl_packets_sent = 1; - EXPECT_EQ(acl_packets_sent, - wait_for_completed_packets_event(acl_connection_handles[0])); + int acl_packets_sent = 1; + int completed_packets = wait_for_completed_packets_event(acl_connection_handles[0]); + if (acl_packets_sent != completed_packets) { + ALOGW("%s: packets_sent (%d) != completed_packets (%d)", __func__, acl_packets_sent, + completed_packets); + } } } @@ -633,22 +638,26 @@ TEST_F(BluetoothHidlTest, LoopbackModeBandwidth) { // This should work, but breaks on some current platforms. Figure out how to // grandfather older devices but test new ones. - int sco_packets_sent = 0; if (0 && sco_connection_handles.size() > 0) { sendAndCheckSCO(NUM_SCO_PACKETS_BANDWIDTH, max_sco_data_packet_length, sco_connection_handles[0]); - sco_packets_sent = NUM_SCO_PACKETS_BANDWIDTH; - EXPECT_EQ(sco_packets_sent, - wait_for_completed_packets_event(sco_connection_handles[0])); + int sco_packets_sent = NUM_SCO_PACKETS_BANDWIDTH; + int completed_packets = wait_for_completed_packets_event(sco_connection_handles[0]); + if (sco_packets_sent != completed_packets) { + ALOGW("%s: packets_sent (%d) != completed_packets (%d)", __func__, sco_packets_sent, + completed_packets); + } } - int acl_packets_sent = 0; if (acl_connection_handles.size() > 0) { sendAndCheckACL(NUM_ACL_PACKETS_BANDWIDTH, max_acl_data_packet_length, acl_connection_handles[0]); - acl_packets_sent = NUM_ACL_PACKETS_BANDWIDTH; - EXPECT_EQ(acl_packets_sent, - wait_for_completed_packets_event(acl_connection_handles[0])); + int acl_packets_sent = NUM_ACL_PACKETS_BANDWIDTH; + int completed_packets = wait_for_completed_packets_event(acl_connection_handles[0]); + if (acl_packets_sent != completed_packets) { + ALOGW("%s: packets_sent (%d) != completed_packets (%d)", __func__, acl_packets_sent, + completed_packets); + } } } diff --git a/graphics/composer/2.1/default/IComposerCommandBuffer.h b/graphics/composer/2.1/default/IComposerCommandBuffer.h index 9ee5f4f88..058709c5e 100644 --- a/graphics/composer/2.1/default/IComposerCommandBuffer.h +++ b/graphics/composer/2.1/default/IComposerCommandBuffer.h @@ -92,6 +92,23 @@ public: bool writeQueue(bool* outQueueChanged, uint32_t* outCommandLength, hidl_vec<hidl_handle>* outCommandHandles) { + // After data are written to the queue, it may not be read by the + // remote reader when + // + // - the writer does not send them (because of other errors) + // - the hwbinder transaction fails + // - the reader does not read them (because of other errors) + // + // Discard the stale data here. + size_t staleDataSize = mQueue ? mQueue->availableToRead() : 0; + if (staleDataSize > 0) { + ALOGW("discarding stale data from message queue"); + CommandQueueType::MemTransaction tx; + if (mQueue->beginRead(staleDataSize, &tx)) { + mQueue->commitRead(staleDataSize); + } + } + // write data to queue, optionally resizing it if (mQueue && (mDataMaxSize <= mQueue->getQuantumCount())) { if (!mQueue->write(mData.get(), mDataWritten)) { diff --git a/media/omx/1.0/vts/functional/video/VtsHalMediaOmxV1_0TargetVideoDecTest.cpp b/media/omx/1.0/vts/functional/video/VtsHalMediaOmxV1_0TargetVideoDecTest.cpp index 1663ae7e2..1d4fd67e5 100644 --- a/media/omx/1.0/vts/functional/video/VtsHalMediaOmxV1_0TargetVideoDecTest.cpp +++ b/media/omx/1.0/vts/functional/video/VtsHalMediaOmxV1_0TargetVideoDecTest.cpp @@ -498,6 +498,21 @@ void portReconfiguration(sp<IOmxNode> omxNode, sp<CodecObserver> observer, ASSERT_EQ(msg.data.eventData.data1, kPortIndexOutput); if (msg.data.eventData.data2 == OMX_IndexParamPortDefinition || msg.data.eventData.data2 == 0) { + // Components can send various kinds of port settings changed events + // all at once. Before committing to a full port reconfiguration, + // defer any events waiting in the queue to be addressed to a later + // point. + android::List<Message> msgQueueDefer; + while (1) { + status = observer->dequeueMessage(&msg, DEFAULT_TIMEOUT, + iBuffer, oBuffer); + if (status != + android::hardware::media::omx::V1_0::Status::TIMED_OUT) { + msgQueueDefer.push_back(msg); + continue; + } else + break; + } status = omxNode->sendCommand( toRawCommandType(OMX_CommandPortDisable), kPortIndexOutput); ASSERT_EQ(status, android::hardware::media::omx::V1_0::Status::OK); @@ -577,6 +592,16 @@ void portReconfiguration(sp<IOmxNode> omxNode, sp<CodecObserver> observer, ASSERT_EQ(msg.data.eventData.data1, OMX_CommandPortEnable); ASSERT_EQ(msg.data.eventData.data2, kPortIndexOutput); + // Push back deferred messages to the list + android::List<Message>::iterator it = msgQueueDefer.begin(); + while (it != msgQueueDefer.end()) { + status = omxNode->dispatchMessage(*it); + ASSERT_EQ( + status, + ::android::hardware::media::omx::V1_0::Status::OK); + it++; + } + // dispatch output buffers for (size_t i = 0; i < oBuffer->size(); i++) { dispatchOutputBuffer(omxNode, oBuffer, i, oPortMode); diff --git a/neuralnetworks/1.0/types.hal b/neuralnetworks/1.0/types.hal index 61af70b09..844c44c14 100644 --- a/neuralnetworks/1.0/types.hal +++ b/neuralnetworks/1.0/types.hal @@ -44,48 +44,59 @@ enum OperandType : uint32_t { enum OperationType : uint32_t { OEM_OPERATION = 0, ADD = 1, - AVERAGE_POOL = 2, - CAST = 3, - CONCATENATION = 4, - CONV = 5, - DEPTHWISE_CONV = 6, - DEPTH_TO_SPACE = 7, - DEQUANTIZE = 8, - EMBEDDING_LOOKUP = 9, - FAKE_QUANT = 10, - FLOOR = 11, - FULLY_CONNECTED = 12, - GATHER = 13, - HASHTABLE_LOOKUP = 14, - L2_NORMALIZATION = 15, - L2_POOL = 16, - LOCAL_RESPONSE_NORMALIZATION = 17, - LOGISTIC = 18, - LSH_PROJECTION = 19, - LSTM = 20, - MAX_POOL = 21, - MUL = 22, - RELU = 23, - RELU1 = 24, - RELU6 = 25, - RESHAPE = 26, - RESIZE_BILINEAR = 27, - RNN = 28, - SOFTMAX = 29, - SPACE_TO_DEPTH = 30, - SPLIT = 31, - SVDF = 32, - TANH = 33, + AVERAGE_POOL_2D = 2, + CONCATENATION = 3, + CONV_2D = 4, + DEPTHWISE_CONV_2D = 5, + DEPTH_TO_SPACE = 6, + DEQUANTIZE = 7, + EMBEDDING_LOOKUP = 8, + FAKE_QUANT = 9, + FLOOR = 10, + FULLY_CONNECTED = 11, + HASHTABLE_LOOKUP = 12, + L2_NORMALIZATION = 13, + L2_POOL_2D = 14, + LOCAL_RESPONSE_NORMALIZATION = 15, + LOGISTIC = 16, + LSH_PROJECTION = 17, + LSTM = 18, + MAX_POOL_2D = 19, + MUL = 20, + RELU = 21, + RELU1 = 22, + RELU6 = 23, + RESHAPE = 24, + RESIZE_BILINEAR = 25, + RNN = 26, + SOFTMAX = 27, + SPACE_TO_DEPTH = 28, + SVDF = 29, + TANH = 30, }; -// Two special values that can be used instead of a regular poolIndex. -enum LocationValues : uint32_t { - // The location will be specified at runtime. It's either a temporary - // variable, an input, or an output. - LOCATION_AT_RUN_TIME = 0xFFFFFFFF, - // The operand's value is stored in the - // TODO: Only for old - LOCATION_SAME_BLOCK = 0xFFFFFFFE +// Fused activation functions +enum FusedActivationFunc : int32_t { + NONE = 0, + RELU = 1, + RELU1 = 2, + RELU6 = 3, +}; + +// How an operand is used. +enum OperandLifeTime : uint32_t { + // The operand is internal to the model. It's created by an operation + // and consumed by other operations. + TEMPORARY_VARIABLE, + // The operand is an input of the model. An operand can't be both + // input and output of a model. + MODEL_INPUT, + // The operand is an output of the model. + MODEL_OUTPUT, + // The operand is a constant found in Model.operandValues. + CONSTANT_COPY, + // The operand is a constant that was specified via a Memory object. + CONSTANT_REFERENCE }; // Status of a device. @@ -145,7 +156,20 @@ struct Operand { float scale; int32_t zeroPoint; + // How the operand is used. + OperandLifeTime lifetime; + // Where to find the data for this operand. + // If the lifetime is TEMPORARY_VARIABLE, MODEL_INPUT, or MODEL_OUTPUT: + // - All the fields will be 0. + // If the lifetime is CONSTANT_COPY: + // - location.poolIndex is 0. + // - location.offset is the offset in bytes into Model.operandValues. + // - location.length is set. + // If the lifetime is CONSTANT_REFERENCE: + // - location.poolIndex is set. + // - location.offset is the offset in bytes into the specified pool. + // - location.length is set. DataLocation location; }; @@ -161,12 +185,6 @@ struct Operation { vec<uint32_t> outputs; }; -struct InputOutputInfo { - DataLocation location; - // If dimensions.size() > 0, we have updated dimensions. - vec<uint32_t> dimensions; -}; - struct Model { vec<Operand> operands; vec<Operation> operations; @@ -176,9 +194,19 @@ struct Model { vec<memory> pools; }; +struct RequestArgument { + // The location within one of the memory pools + DataLocation location; + // If dimensions.size() > 0, dimension information was provided along with the + // argument. This can be the case for models that accept inputs of varying size. + // This can't change the rank, just the value of the dimensions that were + // unspecified in the model. + vec<uint32_t> dimensions; +}; + struct Request { - vec<InputOutputInfo> inputs; - vec<InputOutputInfo> outputs; + vec<RequestArgument> inputs; + vec<RequestArgument> outputs; vec<memory> pools; }; diff --git a/neuralnetworks/1.0/vts/functional/VtsHalNeuralnetworksV1_0TargetTest.cpp b/neuralnetworks/1.0/vts/functional/VtsHalNeuralnetworksV1_0TargetTest.cpp index 6655ad3b5..90ccd0609 100644 --- a/neuralnetworks/1.0/vts/functional/VtsHalNeuralnetworksV1_0TargetTest.cpp +++ b/neuralnetworks/1.0/vts/functional/VtsHalNeuralnetworksV1_0TargetTest.cpp @@ -103,7 +103,8 @@ Model createTestModel() { .numberOfConsumers = 1, .scale = 0.0f, .zeroPoint = 0, - .location = {.poolIndex = static_cast<uint32_t>(LocationValues::LOCATION_AT_RUN_TIME), + .lifetime = OperandLifeTime::MODEL_INPUT, + .location = {.poolIndex = 0, .offset = 0, .length = 0}, }, @@ -113,7 +114,8 @@ Model createTestModel() { .numberOfConsumers = 1, .scale = 0.0f, .zeroPoint = 0, - .location = {.poolIndex = static_cast<uint32_t>(LocationValues::LOCATION_SAME_BLOCK), + .lifetime = OperandLifeTime::CONSTANT_COPY, + .location = {.poolIndex = 0, .offset = 0, .length = size}, }, @@ -123,7 +125,8 @@ Model createTestModel() { .numberOfConsumers = 1, .scale = 0.0f, .zeroPoint = 0, - .location = {.poolIndex = static_cast<uint32_t>(LocationValues::LOCATION_SAME_BLOCK), + .lifetime = OperandLifeTime::CONSTANT_COPY, + .location = {.poolIndex = 0, .offset = size, .length = sizeof(int32_t)}, }, @@ -133,7 +136,8 @@ Model createTestModel() { .numberOfConsumers = 0, .scale = 0.0f, .zeroPoint = 0, - .location = {.poolIndex = static_cast<uint32_t>(LocationValues::LOCATION_AT_RUN_TIME), + .lifetime = OperandLifeTime::MODEL_OUTPUT, + .location = {.poolIndex = 0, .offset = 0, .length = 0}, }, @@ -150,7 +154,7 @@ Model createTestModel() { std::vector<uint8_t> operandValues( reinterpret_cast<const uint8_t*>(operand2Data.data()), reinterpret_cast<const uint8_t*>(operand2Data.data()) + size); - int32_t activation[1] = {0}; + int32_t activation[1] = {static_cast<int32_t>(FusedActivationFunc::NONE)}; operandValues.insert(operandValues.end(), reinterpret_cast<const uint8_t*>(&activation[0]), reinterpret_cast<const uint8_t*>(&activation[1])); @@ -213,10 +217,10 @@ TEST_F(NeuralnetworksHidlTest, SimpleExecuteGraphTest) { // prepare inputs uint32_t inputSize = static_cast<uint32_t>(inputData.size() * sizeof(float)); uint32_t outputSize = static_cast<uint32_t>(outputData.size() * sizeof(float)); - std::vector<InputOutputInfo> inputs = {{ + std::vector<RequestArgument> inputs = {{ .location = {.poolIndex = INPUT, .offset = 0, .length = inputSize}, .dimensions = {}, }}; - std::vector<InputOutputInfo> outputs = {{ + std::vector<RequestArgument> outputs = {{ .location = {.poolIndex = OUTPUT, .offset = 0, .length = outputSize}, .dimensions = {}, }}; std::vector<hidl_memory> pools = {allocateSharedMemory(inputSize), diff --git a/neuralnetworks/1.0/vts/functional/VtsHalNeuralnetworksV1_0TargetTest.h b/neuralnetworks/1.0/vts/functional/VtsHalNeuralnetworksV1_0TargetTest.h index fdd3b0b38..9c56e6a11 100644 --- a/neuralnetworks/1.0/vts/functional/VtsHalNeuralnetworksV1_0TargetTest.h +++ b/neuralnetworks/1.0/vts/functional/VtsHalNeuralnetworksV1_0TargetTest.h @@ -31,6 +31,7 @@ using ::android::hardware::neuralnetworks::V1_0::IDevice; using ::android::hardware::neuralnetworks::V1_0::IPreparedModel; using ::android::hardware::neuralnetworks::V1_0::Capabilities; using ::android::hardware::neuralnetworks::V1_0::DeviceStatus; +using ::android::hardware::neuralnetworks::V1_0::FusedActivationFunc; using ::android::hardware::neuralnetworks::V1_0::Model; using ::android::hardware::neuralnetworks::V1_0::OperationType; using ::android::hardware::neuralnetworks::V1_0::PerformanceInfo; diff --git a/radio/1.0/vts/functional/radio_hidl_hal_misc.cpp b/radio/1.0/vts/functional/radio_hidl_hal_misc.cpp index d93b176d2..795af86a0 100644 --- a/radio/1.0/vts/functional/radio_hidl_hal_misc.cpp +++ b/radio/1.0/vts/functional/radio_hidl_hal_misc.cpp @@ -70,7 +70,7 @@ TEST_F(RadioHidlTest, getOperator) { TEST_F(RadioHidlTest, setRadioPower) { int serial = GetRandomSerialNumber(); - radio->setRadioPower(serial, 0); + radio->setRadioPower(serial, 1); EXPECT_EQ(std::cv_status::no_timeout, wait()); EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp->rspInfo.type); EXPECT_EQ(serial, radioRsp->rspInfo.serial); diff --git a/tests/bar/1.0/.hidl_for_test b/tests/bar/1.0/.hidl_for_test new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/bar/1.0/.hidl_for_test diff --git a/tests/bar/1.0/Android.bp b/tests/bar/1.0/Android.bp index 2dbfb0f98..44ae7a528 100644 --- a/tests/bar/1.0/Android.bp +++ b/tests/bar/1.0/Android.bp @@ -67,7 +67,7 @@ genrule { ], } -cc_library { +cc_test_library { name: "android.hardware.tests.bar@1.0", defaults: ["hidl-module-defaults"], generated_sources: ["android.hardware.tests.bar@1.0_genc++"], diff --git a/tests/baz/1.0/.hidl_for_test b/tests/baz/1.0/.hidl_for_test new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/baz/1.0/.hidl_for_test diff --git a/tests/baz/1.0/Android.bp b/tests/baz/1.0/Android.bp index cec303995..7fa8b272b 100644 --- a/tests/baz/1.0/Android.bp +++ b/tests/baz/1.0/Android.bp @@ -60,7 +60,7 @@ genrule { ], } -cc_library { +cc_test_library { name: "android.hardware.tests.baz@1.0", defaults: ["hidl-module-defaults"], generated_sources: ["android.hardware.tests.baz@1.0_genc++"], diff --git a/tests/expression/1.0/.hidl_for_test b/tests/expression/1.0/.hidl_for_test new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/expression/1.0/.hidl_for_test diff --git a/tests/expression/1.0/Android.bp b/tests/expression/1.0/Android.bp index 093b6607f..0ea0acf6a 100644 --- a/tests/expression/1.0/Android.bp +++ b/tests/expression/1.0/Android.bp @@ -42,7 +42,7 @@ genrule { ], } -cc_library { +cc_test_library { name: "android.hardware.tests.expression@1.0", defaults: ["hidl-module-defaults"], generated_sources: ["android.hardware.tests.expression@1.0_genc++"], diff --git a/tests/extension/light/2.0/.hidl_for_test b/tests/extension/light/2.0/.hidl_for_test new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/extension/light/2.0/.hidl_for_test diff --git a/tests/extension/light/2.0/Android.bp b/tests/extension/light/2.0/Android.bp index 52117b41e..e8a50174f 100644 --- a/tests/extension/light/2.0/Android.bp +++ b/tests/extension/light/2.0/Android.bp @@ -39,7 +39,7 @@ genrule { ], } -cc_library { +cc_test_library { name: "android.hardware.tests.extension.light@2.0", defaults: ["hidl-module-defaults"], generated_sources: ["android.hardware.tests.extension.light@2.0_genc++"], diff --git a/tests/foo/1.0/.hidl_for_test b/tests/foo/1.0/.hidl_for_test new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/foo/1.0/.hidl_for_test diff --git a/tests/foo/1.0/Android.bp b/tests/foo/1.0/Android.bp index d0038ab72..b5de12e54 100644 --- a/tests/foo/1.0/Android.bp +++ b/tests/foo/1.0/Android.bp @@ -67,7 +67,7 @@ genrule { ], } -cc_library { +cc_test_library { name: "android.hardware.tests.foo@1.0", defaults: ["hidl-module-defaults"], generated_sources: ["android.hardware.tests.foo@1.0_genc++"], diff --git a/tests/hash/1.0/.hidl_for_test b/tests/hash/1.0/.hidl_for_test new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/hash/1.0/.hidl_for_test diff --git a/tests/hash/1.0/Android.bp b/tests/hash/1.0/Android.bp index 336963e3f..d4d1d1a9e 100644 --- a/tests/hash/1.0/Android.bp +++ b/tests/hash/1.0/Android.bp @@ -35,7 +35,7 @@ genrule { ], } -cc_library { +cc_test_library { name: "android.hardware.tests.hash@1.0", defaults: ["hidl-module-defaults"], generated_sources: ["android.hardware.tests.hash@1.0_genc++"], diff --git a/tests/inheritance/1.0/.hidl_for_test b/tests/inheritance/1.0/.hidl_for_test new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/inheritance/1.0/.hidl_for_test diff --git a/tests/inheritance/1.0/Android.bp b/tests/inheritance/1.0/Android.bp index a8c0e6ce3..93a8ad518 100644 --- a/tests/inheritance/1.0/Android.bp +++ b/tests/inheritance/1.0/Android.bp @@ -56,7 +56,7 @@ genrule { ], } -cc_library { +cc_test_library { name: "android.hardware.tests.inheritance@1.0", defaults: ["hidl-module-defaults"], generated_sources: ["android.hardware.tests.inheritance@1.0_genc++"], diff --git a/tests/libhwbinder/1.0/.hidl_for_test b/tests/libhwbinder/1.0/.hidl_for_test new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/libhwbinder/1.0/.hidl_for_test diff --git a/tests/libhwbinder/1.0/Android.bp b/tests/libhwbinder/1.0/Android.bp index 61326286a..4f3beb0b3 100644 --- a/tests/libhwbinder/1.0/Android.bp +++ b/tests/libhwbinder/1.0/Android.bp @@ -42,7 +42,7 @@ genrule { ], } -cc_library { +cc_test_library { name: "android.hardware.tests.libhwbinder@1.0", defaults: ["hidl-module-defaults"], generated_sources: ["android.hardware.tests.libhwbinder@1.0_genc++"], diff --git a/tests/libhwbinder/aidl/.hidl_for_test b/tests/libhwbinder/aidl/.hidl_for_test new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/libhwbinder/aidl/.hidl_for_test diff --git a/tests/memory/1.0/.hidl_for_test b/tests/memory/1.0/.hidl_for_test new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/memory/1.0/.hidl_for_test diff --git a/tests/memory/1.0/Android.bp b/tests/memory/1.0/Android.bp index c5cc4a0c6..d39ba284b 100644 --- a/tests/memory/1.0/Android.bp +++ b/tests/memory/1.0/Android.bp @@ -35,7 +35,7 @@ genrule { ], } -cc_library { +cc_test_library { name: "android.hardware.tests.memory@1.0", defaults: ["hidl-module-defaults"], generated_sources: ["android.hardware.tests.memory@1.0_genc++"], diff --git a/tests/msgq/1.0/.hidl_for_test b/tests/msgq/1.0/.hidl_for_test new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/msgq/1.0/.hidl_for_test diff --git a/tests/msgq/1.0/Android.bp b/tests/msgq/1.0/Android.bp index 017e0d4a9..7758ee86a 100644 --- a/tests/msgq/1.0/Android.bp +++ b/tests/msgq/1.0/Android.bp @@ -42,7 +42,7 @@ genrule { ], } -cc_library { +cc_test_library { name: "android.hardware.tests.msgq@1.0", defaults: ["hidl-module-defaults"], generated_sources: ["android.hardware.tests.msgq@1.0_genc++"], diff --git a/tests/multithread/1.0/.hidl_for_test b/tests/multithread/1.0/.hidl_for_test new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/multithread/1.0/.hidl_for_test diff --git a/tests/multithread/1.0/Android.bp b/tests/multithread/1.0/Android.bp index 68c19aa19..76ad2c1ec 100644 --- a/tests/multithread/1.0/Android.bp +++ b/tests/multithread/1.0/Android.bp @@ -35,7 +35,7 @@ genrule { ], } -cc_library { +cc_test_library { name: "android.hardware.tests.multithread@1.0", defaults: ["hidl-module-defaults"], generated_sources: ["android.hardware.tests.multithread@1.0_genc++"], diff --git a/tests/pointer/1.0/.hidl_for_test b/tests/pointer/1.0/.hidl_for_test new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/pointer/1.0/.hidl_for_test diff --git a/tests/pointer/1.0/Android.bp b/tests/pointer/1.0/Android.bp index 55598cacf..178f165e3 100644 --- a/tests/pointer/1.0/Android.bp +++ b/tests/pointer/1.0/Android.bp @@ -42,7 +42,7 @@ genrule { ], } -cc_library { +cc_test_library { name: "android.hardware.tests.pointer@1.0", defaults: ["hidl-module-defaults"], generated_sources: ["android.hardware.tests.pointer@1.0_genc++"], |
