/frameworks/ml/nn/runtime/test/ |
D | TestWrapper.cpp | 29 mIn = mModel.addOperand(&type); in SetUp() 30 mOut = mModel.addOperand(&type); in SetUp() 31 mModel.addOperation(ANEURALNETWORKS_TANH, {mIn}, {mOut}); in SetUp() 34 Model mModel; member in WrapperTestModelFinish 39 ASSERT_TRUE(mModel.isValid()); in TEST_F() 40 mModel.identifyInputsAndOutputs({mIn}, {mOut}); in TEST_F() 41 ASSERT_TRUE(mModel.isValid()); in TEST_F() 42 ASSERT_EQ(mModel.finish(), Result::NO_ERROR); in TEST_F() 43 ASSERT_TRUE(mModel.isValid()); in TEST_F() 47 ASSERT_TRUE(mModel.isValid()); in TEST_F() [all …]
|
D | TestValidation.cpp | 44 ASSERT_EQ(ANeuralNetworksModel_create(&mModel), ANEURALNETWORKS_NO_ERROR); in SetUp() 47 ANeuralNetworksModel_free(mModel); in TearDown() 54 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, &operandType), ANEURALNETWORKS_NO_ERROR); in addScalarOperand() 59 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, &operandType), ANEURALNETWORKS_NO_ERROR); in addOperand() 80 ASSERT_EQ(ANeuralNetworksModel_addOperation(mModel, ANEURALNETWORKS_ADD, 3, inList, 1, in createModel() 83 ASSERT_EQ(ANeuralNetworksModel_identifyInputsAndOutputs(mModel, 3, inList, 1, outList), in createModel() 85 ASSERT_EQ(ANeuralNetworksModel_finish(mModel), ANEURALNETWORKS_NO_ERROR); in createModel() 91 ANeuralNetworksModel* mModel = nullptr; member in __anon1fd66c800111::ValidationTestModel 136 EXPECT_EQ(ANeuralNetworksModel_getExtensionOperandType(mModel, kTestExtensionName, in getExtensionOperandType() 154 ASSERT_EQ(ANeuralNetworksModel_addOperand(mModel, &tensorType), ANEURALNETWORKS_NO_ERROR); in SetUp() [all …]
|
D | TestOperandExtraParams.cpp | 33 ASSERT_EQ(ANeuralNetworksModel_create(&mModel), ANEURALNETWORKS_NO_ERROR); in SetUp() 37 ANeuralNetworksModel_free(mModel); in TearDown() 111 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, &operandType), ANEURALNETWORKS_NO_ERROR); in testAddingWithSymmPerChannelQuantParams() 113 EXPECT_EQ(ANeuralNetworksModel_setOperandSymmPerChannelQuantParams(mModel, operandIndex, in testAddingWithSymmPerChannelQuantParams() 118 ANeuralNetworksModel* mModel = nullptr; member in __anon7e3e16c60111::OperandExtraParamsTest 231 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, &operandType), ANEURALNETWORKS_BAD_DATA); in TEST_F() 239 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, &operandType), ANEURALNETWORKS_BAD_DATA); in TEST_F()
|
D | TestIntrospectionControl.cpp | 152 ANeuralNetworksModel* modelHandle = mModel.getHandle(); in isSupportedOpListExpected() 161 ANeuralNetworksModel* modelHandle = mModel.getHandle(); in prepareForExecution() 183 WrapperModel mModel; member in __anon736024e70111::IntrospectionControlTest 213 createSimpleAddModel(&mModel); in TEST_F() 549 createSimpleAddModel(&mModel); in TEST_P() 764 createAddMulModel(&mModel, false); in TEST_F() 775 ANeuralNetworksModel* modelHandle = mModel.getHandle(); in TEST_F() 794 createAddMulModel(&mModel, true); in TEST_F() 816 createAddMulModel(&mModel, false); in TEST_F()
|
D | TestCompilationCaching.cpp | 251 CreateBroadcastAddModel(&mModel); in SetUp() 285 ASSERT_EQ(ANeuralNetworksCompilation_createForDevices(mModel.getHandle(), devices.data(), in compileModel() 310 test_wrapper::Model mModel; member in __anondf3c1f010111::CompilationCachingTest
|
D | TestExecution.cpp | 378 mModel(makeModel()) { in ExecutionTestTemplate() 382 mCompilation = TestIntrospectionCompilation(&mModel, kName); in ExecutionTestTemplate() 384 mCompilation = TestCompilation<DriverClass>(&mModel, kName, kForceErrorStatus); in ExecutionTestTemplate() 415 WrapperModel mModel; member in android::__anon50a6e8490111::ExecutionTestTemplate
|
/frameworks/ml/nn/runtime/test/fibonacci_extension/ |
D | FibonacciExtensionTest.cpp | 98 mModel.getHandle(), mDevices.data(), mDevices.size(), supported), in checkSupportedOperations() 107 ASSERT_EQ(ANeuralNetworksCompilation_createForDevices(mModel.getHandle(), mDevices.data(), in prepareForExecution() 118 ExtensionModel mModel; member in android::nn::__anon7b3c0b790111::FibonacciExtensionTest 171 static_cast<Type>(mModel.getExtensionOperandType(TEST_VENDOR_FIBONACCI_EXTENSION_NAME, in TEST_F() 175 static_cast<Type>(mModel.getExtensionOperandType(TEST_VENDOR_FIBONACCI_EXTENSION_NAME, in TEST_F() 182 createModel(&mModel, inputType, outputType, /*addNopOperations=*/false); in TEST_F() 213 createModel(&mModel, inputType, outputType, /*addNopOperations=*/true); in TEST_F() 242 createModel(&mModel, inputType, outputType, /*addNopOperations=*/false); in TEST_F() 244 ASSERT_EQ(ANeuralNetworksCompilation_createForDevices(mModel.getHandle(), mDevices.data(), in TEST_F() 253 createModel(&mModel, inputType, outputType, /*addNopOperations=*/false); in TEST_F() [all …]
|
/frameworks/base/core/java/android/hardware/usb/ |
D | AccessoryFilter.java | 43 public final String mModel; field in AccessoryFilter 49 mModel = model; in AccessoryFilter() 55 mModel = accessory.getModel(); in AccessoryFilter() 86 if (mModel != null) { in write() 87 serializer.attribute(null, "model", mModel); in write() 97 if (mModel != null && !acc.getModel().equals(mModel)) return false; in matches() 112 if (mModel != null && !Objects.equals(accessory.mModel, mModel)) return false; in contains() 119 if (mManufacturer == null || mModel == null || mVersion == null) { in equals() 125 mModel.equals(filter.mModel) && in equals() 131 mModel.equals(accessory.getModel()) && in equals() [all …]
|
D | UsbAccessory.java | 56 private final @NonNull String mModel; field in UsbAccessory 83 mModel = Preconditions.checkNotNull(model); in UsbAccessory() 130 return mModel; in getModel() 191 compare(mModel, accessory.getModel()) && in equals() 202 return mManufacturer.hashCode() ^ mModel.hashCode() ^ in hashCode() 211 ", mModel=" + mModel + in toString() 244 parcel.writeString(mModel); in writeToParcel()
|
/frameworks/base/libs/usb/src/com/android/future/usb/ |
D | UsbAccessory.java | 25 private final String mModel; field in UsbAccessory 33 mModel = accessory.getModel(); in UsbAccessory() 55 return mModel; in getModel() 108 compare(mModel, accessory.getModel()) && in equals() 120 (mModel == null ? 0 : mModel.hashCode()) ^ in hashCode() 130 ", mModel=" + mModel + in toString()
|
/frameworks/av/media/mtp/ |
D | MtpDeviceInfo.cpp | 38 mModel(NULL), in MtpDeviceInfo() 54 if (mModel) in ~MtpDeviceInfo() 55 free(mModel); in ~MtpDeviceInfo() 90 mModel = strdup((const char *)string); in read() 91 if (!mModel) return false; in read() 106 mVendorExtensionDesc, mFunctionalMode, mManufacturer, mModel, mVersion, mSerial); in print()
|
D | MtpDeviceInfo.h | 39 char* mModel; variable
|
/frameworks/base/tools/processors/view_inspector/test/java/android/processor/view/inspector/ |
D | InspectionCompanionGeneratorTest.java | 48 private InspectableClassModel mModel; field in InspectionCompanionGeneratorTest 53 mModel = new InspectableClassModel(TEST_CLASS_NAME); in setup() 59 mModel = new InspectableClassModel( in testNestedClass() 90 mModel.putProperty(property); in testNoAttributeId() 118 mModel.putProperty(property); in testIntEnum() 142 mModel.putProperty(new Property( in testFieldProperty() 152 mModel.putProperty(property); in addProperty() 159 mGenerator.generateFile(mModel).toString()); in assertGeneratedFileEquals()
|
/frameworks/ml/nn/runtime/ |
D | CompilationBuilder.cpp | 35 : mModel(model), in CompilationBuilder() 55 int n = mModel->partitionTheWork(mDevices, mPreference, &mPlan); in finish() 72 if (mModel->hasOEMOperation()) { in finish() 76 if (mModel->hasExtensionOperation()) { in finish() 87 mPlan.becomeSingleStep(DeviceManager::getCpuDevice(), mModel); in finish() 88 return mPlan.finish(mModel, mPreference); in finish()
|
D | ExecutionBuilder.h | 109 const ModelBuilder* getModel() const { return mModel; } in getModel() 129 const ModelBuilder* mModel; variable 208 return setInputOrOutputFromTemporaryMemory(mModel->getInputOperand(inputIndex), in setInputFromTemporaryMemory() 213 return setInputOrOutputFromTemporaryMemory(mModel->getOutputOperand(outputIndex), in setOutputFromTemporaryMemory() 253 const ModelBuilder* mModel; variable
|
D | ExecutionBuilder.cpp | 164 mModel(compilation->mModel), in ExecutionBuilder() 167 mInputs(mModel->inputCount()), in ExecutionBuilder() 168 mOutputs(mModel->outputCount()) { in ExecutionBuilder() 184 if (!checkDimensionInfo(mModel->getInputOperand(index), type, in setInput() 193 return mInputs[index].setFromPointer(mModel->getInputOperand(index), type, in setInput() 212 if (!checkDimensionInfo(mModel->getInputOperand(index), type, in setInputFromMemory() 226 return mInputs[index].setFromMemory(mModel->getInputOperand(index), type, poolIndex, offset, in setInputFromMemory() 242 if (!checkDimensionInfo(mModel->getOutputOperand(index), type, in setOutput() 251 return mOutputs[index].setFromPointer(mModel->getOutputOperand(index), type, buffer, l); in setOutput() 269 if (!checkDimensionInfo(mModel->getOutputOperand(index), type, in setOutputFromMemory() [all …]
|
D | CompilationBuilder.h | 60 const ModelBuilder* mModel;
|
D | ExecutionPlan.h | 272 : mDevice(device), mModel(model), mCacheDir(cacheDir), mToken(token) {} in SimpleBody() 279 const ModelBuilder* mModel; member
|
/frameworks/ml/nn/runtime/include/ |
D | NeuralNetworksWrapper.h | 190 ANeuralNetworksModel_create(&mModel); in Model() 192 ~Model() { ANeuralNetworksModel_free(mModel); } in ~Model() 206 ANeuralNetworksModel_free(mModel); 207 mModel = other.mModel; 210 other.mModel = nullptr; 219 auto result = static_cast<Result>(ANeuralNetworksModel_finish(mModel)); in finish() 230 if (ANeuralNetworksModel_addOperand(mModel, &(type->operandType)) != in addOperand() 236 mModel, mNextOperandId, &type->channelQuant.value().params) != in addOperand() 245 if (ANeuralNetworksModel_setOperandValue(mModel, index, buffer, length) != in setOperandValue() 253 if (ANeuralNetworksModel_setOperandValueFromMemory(mModel, index, memory->get(), offset, in setOperandValueFromMemory() [all …]
|
D | NeuralNetworksWrapperExtensions.h | 97 if (ANeuralNetworksModel_getExtensionOperandType(mModel, extensionName, typeWithinExtension, in getExtensionOperandType() 107 if (ANeuralNetworksModel_getExtensionOperationType(mModel, extensionName, in getExtensionOperationType() 116 if (ANeuralNetworksModel_addOperand(mModel, &(type->operandType)) != in addOperand() 123 mModel, mNextOperandId, &channelQuant.params) != ANEURALNETWORKS_NO_ERROR) { in addOperand() 129 mModel, mNextOperandId, extension.data.data(), extension.data.size()) != in addOperand()
|
/frameworks/base/media/java/android/mtp/ |
D | MtpDeviceInfo.java | 29 private String mModel; field in MtpDeviceInfo 54 return mModel; in getModel()
|
/frameworks/ml/nn/driver/sample/ |
D | SampleDriver.cpp | 211 return setRunTimePoolInfosFromHidlMemories(&mPoolInfos, mModel.pools); in initialize() 296 return executeBase(request, MeasureTiming::NO, mModel, *mDriver, mPoolInfos, callback); in execute() 301 return executeBase(request, measure, mModel, *mDriver, mPoolInfos, callback); in execute_1_2() 314 if (!validateRequest(request, mModel)) { in executeSynchronously() 331 int n = executor.run(mModel, request, mPoolInfos, requestPoolInfos); in executeSynchronously() 357 : mModel(model), mDriver(driver), mModelPoolInfos(poolInfos) {} in BurstExecutorWithCache() 393 if (!validateRequest(fullRequest, mModel)) { in execute() 406 int n = executor.run(mModel, request, mModelPoolInfos, requestPoolInfos); in execute() 424 const Model mModel; member in android::nn::sample_driver::BurstExecutorWithCache 446 std::make_shared<BurstExecutorWithCache>(mModel, mDriver, mPoolInfos); in configureExecutionBurst()
|
D | SampleDriver.h | 84 : mModel(model), mDriver(driver) {} in SamplePreparedModel() 100 Model mModel;
|
/frameworks/base/rs/java/android/renderscript/ |
D | ProgramVertexFixedFunction.java | 207 Matrix4f mModel; field in ProgramVertexFixedFunction.Constants 230 mModel = new Matrix4f(); in Constants() 267 mModel.load(m); in setModelview()
|
/frameworks/ml/nn/common/include/ |
D | CpuExecutor.h | 167 const Model* mModel = nullptr; variable
|