Loading neuralnetworks/1.2/vts/functional/AndroidTest.xml 0 → 100644 +36 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2020 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <configuration description="Runs VtsHalNeuralnetworksV1_2TargetTest."> <option name="test-suite-tag" value="apct" /> <option name="test-suite-tag" value="apct-native" /> <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer"> </target_preparer> <target_preparer class="com.android.tradefed.targetprep.PushFilePreparer"> <option name="cleanup" value="true" /> <option name="push" value="VtsHalNeuralnetworksV1_2TargetTest->/data/local/tmp/VtsHalNeuralnetworksV1_2TargetTest" /> </target_preparer> <test class="com.android.tradefed.testtype.GTest" > <!-- b/155674368, b/153876253, temporarily disable the test. Must be deleted after corresponding driver issues are fixed. --> <option name="native-test-flag" value="--gtest_filter=-*squeeze*_all*_inputs*:*strided_slice*_all*_inputs*:*transpose*_all*_inputs*:*l2_normalization_axis_corner_case*:*sample_float_fast*:*sample_float_slow*:*sample_minimal*:*sample_quant*" /> <option name="native-test-device-path" value="/data/local/tmp" /> <option name="module-name" value="VtsHalNeuralnetworksV1_2TargetTest" /> </test> </configuration> sensors/common/vts/2_X/VtsHalSensorsV2_XTargetTest.h +7 −5 Original line number Diff line number Diff line Loading @@ -367,11 +367,13 @@ TEST_P(SensorsHidlTest, SensorListValid) { << s.sensorHandle << std::dec << " type=" << static_cast<int>(s.type) << " name=" << s.name); // Test non-empty type string // Test type string non-empty only for private sensor types. if (s.type >= SensorTypeVersion::DEVICE_PRIVATE_BASE) { EXPECT_FALSE(s.typeAsString.empty()); // Test defined type matches defined string type } else if (!s.typeAsString.empty()) { // Test type string matches framework string if specified for non-private types. EXPECT_NO_FATAL_FAILURE(assertTypeMatchStringType(s.type, s.typeAsString)); } // Test if all sensor has name and vendor EXPECT_FALSE(s.name.empty()); Loading tv/tuner/1.0/default/Frontend.cpp +60 −0 Original line number Diff line number Diff line Loading @@ -139,6 +139,30 @@ Return<void> Frontend::getStatus(const hidl_vec<FrontendStatusType>& statusTypes status.snr(221); break; } case FrontendStatusType::BER: { status.ber(1); break; } case FrontendStatusType::PER: { status.per(2); break; } case FrontendStatusType::PRE_BER: { status.preBer(3); break; } case FrontendStatusType::SIGNAL_QUALITY: { status.signalQuality(4); break; } case FrontendStatusType::SIGNAL_STRENGTH: { status.signalStrength(5); break; } case FrontendStatusType::SYMBOL_RATE: { status.symbolRate(6); break; } case FrontendStatusType::FEC: { status.innerFec(FrontendInnerFec::FEC_2_9); // value = 1 << 7 break; Loading @@ -149,15 +173,51 @@ Return<void> Frontend::getStatus(const hidl_vec<FrontendStatusType>& statusTypes status.modulation(modulationStatus); break; } case FrontendStatusType::SPECTRAL: { status.inversion(FrontendDvbcSpectralInversion::NORMAL); break; } case FrontendStatusType::LNB_VOLTAGE: { status.lnbVoltage(LnbVoltage::VOLTAGE_5V); break; } case FrontendStatusType::PLP_ID: { status.plpId(101); // type uint8_t break; } case FrontendStatusType::EWBS: { status.isEWBS(false); break; } case FrontendStatusType::AGC: { status.agc(7); break; } case FrontendStatusType::LNA: { status.isLnaOn(false); break; } case FrontendStatusType::LAYER_ERROR: { vector<bool> v = {false, true, true}; status.isLayerError(v); break; } case FrontendStatusType::MER: { status.mer(8); break; } case FrontendStatusType::FREQ_OFFSET: { status.freqOffset(9); break; } case FrontendStatusType::HIERARCHY: { status.hierarchy(FrontendDvbtHierarchy::HIERARCHY_1_NATIVE); break; } case FrontendStatusType::RF_LOCK: { status.isRfLocked(false); break; } case FrontendStatusType::ATSC3_PLP_INFO: { vector<FrontendStatusAtsc3PlpInfo> v; FrontendStatusAtsc3PlpInfo info1{ Loading Loading
neuralnetworks/1.2/vts/functional/AndroidTest.xml 0 → 100644 +36 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2020 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <configuration description="Runs VtsHalNeuralnetworksV1_2TargetTest."> <option name="test-suite-tag" value="apct" /> <option name="test-suite-tag" value="apct-native" /> <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer"> </target_preparer> <target_preparer class="com.android.tradefed.targetprep.PushFilePreparer"> <option name="cleanup" value="true" /> <option name="push" value="VtsHalNeuralnetworksV1_2TargetTest->/data/local/tmp/VtsHalNeuralnetworksV1_2TargetTest" /> </target_preparer> <test class="com.android.tradefed.testtype.GTest" > <!-- b/155674368, b/153876253, temporarily disable the test. Must be deleted after corresponding driver issues are fixed. --> <option name="native-test-flag" value="--gtest_filter=-*squeeze*_all*_inputs*:*strided_slice*_all*_inputs*:*transpose*_all*_inputs*:*l2_normalization_axis_corner_case*:*sample_float_fast*:*sample_float_slow*:*sample_minimal*:*sample_quant*" /> <option name="native-test-device-path" value="/data/local/tmp" /> <option name="module-name" value="VtsHalNeuralnetworksV1_2TargetTest" /> </test> </configuration>
sensors/common/vts/2_X/VtsHalSensorsV2_XTargetTest.h +7 −5 Original line number Diff line number Diff line Loading @@ -367,11 +367,13 @@ TEST_P(SensorsHidlTest, SensorListValid) { << s.sensorHandle << std::dec << " type=" << static_cast<int>(s.type) << " name=" << s.name); // Test non-empty type string // Test type string non-empty only for private sensor types. if (s.type >= SensorTypeVersion::DEVICE_PRIVATE_BASE) { EXPECT_FALSE(s.typeAsString.empty()); // Test defined type matches defined string type } else if (!s.typeAsString.empty()) { // Test type string matches framework string if specified for non-private types. EXPECT_NO_FATAL_FAILURE(assertTypeMatchStringType(s.type, s.typeAsString)); } // Test if all sensor has name and vendor EXPECT_FALSE(s.name.empty()); Loading
tv/tuner/1.0/default/Frontend.cpp +60 −0 Original line number Diff line number Diff line Loading @@ -139,6 +139,30 @@ Return<void> Frontend::getStatus(const hidl_vec<FrontendStatusType>& statusTypes status.snr(221); break; } case FrontendStatusType::BER: { status.ber(1); break; } case FrontendStatusType::PER: { status.per(2); break; } case FrontendStatusType::PRE_BER: { status.preBer(3); break; } case FrontendStatusType::SIGNAL_QUALITY: { status.signalQuality(4); break; } case FrontendStatusType::SIGNAL_STRENGTH: { status.signalStrength(5); break; } case FrontendStatusType::SYMBOL_RATE: { status.symbolRate(6); break; } case FrontendStatusType::FEC: { status.innerFec(FrontendInnerFec::FEC_2_9); // value = 1 << 7 break; Loading @@ -149,15 +173,51 @@ Return<void> Frontend::getStatus(const hidl_vec<FrontendStatusType>& statusTypes status.modulation(modulationStatus); break; } case FrontendStatusType::SPECTRAL: { status.inversion(FrontendDvbcSpectralInversion::NORMAL); break; } case FrontendStatusType::LNB_VOLTAGE: { status.lnbVoltage(LnbVoltage::VOLTAGE_5V); break; } case FrontendStatusType::PLP_ID: { status.plpId(101); // type uint8_t break; } case FrontendStatusType::EWBS: { status.isEWBS(false); break; } case FrontendStatusType::AGC: { status.agc(7); break; } case FrontendStatusType::LNA: { status.isLnaOn(false); break; } case FrontendStatusType::LAYER_ERROR: { vector<bool> v = {false, true, true}; status.isLayerError(v); break; } case FrontendStatusType::MER: { status.mer(8); break; } case FrontendStatusType::FREQ_OFFSET: { status.freqOffset(9); break; } case FrontendStatusType::HIERARCHY: { status.hierarchy(FrontendDvbtHierarchy::HIERARCHY_1_NATIVE); break; } case FrontendStatusType::RF_LOCK: { status.isRfLocked(false); break; } case FrontendStatusType::ATSC3_PLP_INFO: { vector<FrontendStatusAtsc3PlpInfo> v; FrontendStatusAtsc3PlpInfo info1{ Loading