/aosp12/packages/modules/NeuralNetworks/runtime/test/ |
H A D | TestCompliance.cpp | 49 ASSERT_FALSE(compliantWithV1_2(hidlModel)); in testAvailableSinceV1_3() 50 ASSERT_FALSE(compliantWithV1_1(hidlModel)); in testAvailableSinceV1_3() 51 ASSERT_FALSE(compliantWithV1_0(hidlModel)); in testAvailableSinceV1_3() 56 ASSERT_TRUE(compliantWithV1_2(hidlModel)); in testAvailableSinceV1_2() 57 ASSERT_FALSE(compliantWithV1_1(hidlModel)); in testAvailableSinceV1_2() 58 ASSERT_FALSE(compliantWithV1_0(hidlModel)); in testAvailableSinceV1_2() 63 ASSERT_TRUE(compliantWithV1_2(hidlModel)); in testAvailableSinceV1_1() 64 ASSERT_TRUE(compliantWithV1_1(hidlModel)); in testAvailableSinceV1_1() 70 ASSERT_TRUE(compliantWithV1_2(hidlModel)); in testAvailableSinceV1_0() 71 ASSERT_TRUE(compliantWithV1_1(hidlModel)); in testAvailableSinceV1_0() [all …]
|
H A D | TestPartitioning.cpp | 303 const HidlModel hidlModel = model->makeHidlModel(); in dump() local 304 std::cout << name << ": " << hidlModel << std::endl; in dump() 305 std::cout << "inputs: " << hidlModel.main.inputIndexes << std::endl; in dump() 306 std::cout << "outputs: " << hidlModel.main.outputIndexes << std::endl; in dump() 307 for (size_t i = 0, e = hidlModel.main.operations.size(); i < e; i++) { in dump() 308 std::cout << "operation[" << i << "]: " << hidlModel.main.operations[i] << std::endl; in dump()
|
/aosp12/frameworks/base/services/core/java/com/android/server/soundtrigger_middleware/ |
H A D | ConversionUtil.java | 199 ISoundTriggerHw.SoundModel hidlModel = new ISoundTriggerHw.SoundModel(); in aidl2hidlSoundModel() local 200 hidlModel.header.type = aidl2hidlSoundModelType(aidlModel.type); in aidl2hidlSoundModel() 201 hidlModel.header.uuid = aidl2hidlUuid(aidlModel.uuid); in aidl2hidlSoundModel() 202 hidlModel.header.vendorUuid = aidl2hidlUuid(aidlModel.vendorUuid); in aidl2hidlSoundModel() 203 hidlModel.data = parcelFileDescriptorToHidlMemory(aidlModel.data, aidlModel.dataSize); in aidl2hidlSoundModel() 204 return hidlModel; in aidl2hidlSoundModel() 210 ISoundTriggerHw.PhraseSoundModel hidlModel = new ISoundTriggerHw.PhraseSoundModel(); in aidl2hidlPhraseSoundModel() local 211 hidlModel.common = aidl2hidlSoundModel(aidlModel.common); in aidl2hidlPhraseSoundModel() 213 hidlModel.phrases.add(aidl2hidlPhrase(aidlPhrase)); in aidl2hidlPhraseSoundModel() 215 return hidlModel; in aidl2hidlPhraseSoundModel()
|
H A D | SoundTriggerModule.java | 478 ISoundTriggerHw.SoundModel hidlModel = ConversionUtil.aidl2hidlSoundModel(model); in load() local 480 mHandle = mHalService.loadSoundModel(hidlModel, this, 0); in load() 490 ISoundTriggerHw.PhraseSoundModel hidlModel = in load() local 493 mHandle = mHalService.loadPhraseSoundModel(hidlModel, this, 0); in load()
|
/aosp12/hardware/interfaces/neuralnetworks/1.0/utils/src/ |
H A D | Device.cpp | 133 const auto hidlModel = NN_TRY(convert(modelInShared)); in getSupportedOperations() local 137 const auto ret = kDevice->getSupportedOperations(hidlModel, cb); in getSupportedOperations() 152 const auto hidlModel = NN_TRY(convert(modelInShared)); in prepareModel() local 157 const auto ret = kDevice->prepareModel(hidlModel, cb); in prepareModel()
|
/aosp12/hardware/interfaces/neuralnetworks/1.1/utils/src/ |
H A D | Device.cpp | 133 const auto hidlModel = NN_TRY(convert(modelInShared)); in getSupportedOperations() local 137 const auto ret = kDevice->getSupportedOperations_1_1(hidlModel, cb); in getSupportedOperations() 152 const auto hidlModel = NN_TRY(convert(modelInShared)); in prepareModel() local 158 const auto ret = kDevice->prepareModel_1_1(hidlModel, hidlPreference, cb); in prepareModel()
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/soundtrigger_middleware/ |
H A D | SoundTriggerMiddlewareImplTest.java | 404 hidlModel.type); in loadGenericModel_2_0() 457 hidlModel.header.type); in loadGenericModel_2_1() 461 HidlMemoryUtil.hidlMemoryToByteArray(hidlModel.data)); in loadGenericModel_2_1() 523 hidlModel.common.type); in loadPhraseModel_2_0() 526 ConversionUtil.hidl2aidlUuid(hidlModel.common.vendorUuid)); in loadPhraseModel_2_0() 530 assertEquals(1, hidlModel.phrases.size()); in loadPhraseModel_2_0() 532 hidlModel.phrases.get(0); in loadPhraseModel_2_0() 595 hidlModel.common.header.type); in loadPhraseModel_2_1() 600 HidlMemoryUtil.hidlMemoryToByteArray(hidlModel.common.data)); in loadPhraseModel_2_1() 603 assertEquals(1, hidlModel.phrases.size()); in loadPhraseModel_2_1() [all …]
|
/aosp12/hardware/interfaces/neuralnetworks/1.3/utils/src/ |
H A D | Device.cpp | 177 const auto hidlModel = NN_TRY(convert(modelInShared)); in getSupportedOperations() local 181 const auto ret = kDevice->getSupportedOperations_1_3(hidlModel, cb); in getSupportedOperations() 196 const auto hidlModel = NN_TRY(convert(modelInShared)); in prepareModel() local 208 kDevice->prepareModel_1_3(hidlModel, hidlPreference, hidlPriority, hidlDeadline, in prepareModel()
|
/aosp12/hardware/interfaces/neuralnetworks/1.2/utils/src/ |
H A D | Device.cpp | 226 const auto hidlModel = NN_TRY(convert(modelInShared)); in getSupportedOperations() local 230 const auto ret = kDevice->getSupportedOperations_1_2(hidlModel, cb); in getSupportedOperations() 245 const auto hidlModel = NN_TRY(convert(modelInShared)); in prepareModel() local 254 const auto ret = kDevice->prepareModel_1_2(hidlModel, hidlPreference, hidlModelCache, in prepareModel()
|