/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 | 54 ASSERT_EQ(ANeuralNetworksModel_create(&mModel), ANEURALNETWORKS_NO_ERROR); in SetUp() 57 ANeuralNetworksModel_free(mModel); in TearDown() 64 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, &operandType), ANEURALNETWORKS_NO_ERROR); in addScalarOperand() 69 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, &operandType), ANEURALNETWORKS_NO_ERROR); in addOperand() 89 return ANeuralNetworksModel_addOperation(mModel, type, inputs.size(), inputs.data(), in addOperation() 94 return ANeuralNetworksModel_identifyInputsAndOutputs(mModel, inputs.size(), inputs.data(), in identifyInputsAndOutputs() 97 int modelFinish() { return ANeuralNetworksModel_finish(mModel); } in modelFinish() 113 ANeuralNetworksModel* mModel = nullptr; member in __anon1fd66c800111::ValidationTestModel 158 EXPECT_EQ(ANeuralNetworksModel_getExtensionOperandType(mModel, kTestExtensionName, in getExtensionOperandType() 176 ASSERT_EQ(ANeuralNetworksModel_addOperand(mModel, &tensorType), ANEURALNETWORKS_NO_ERROR); in SetUp() [all …]
|
D | TestNeuralNetworksWrapper.h | 101 ANeuralNetworksModel_create(&mModel); in Model() 103 ~Model() { ANeuralNetworksModel_free(mModel); } in ~Model() 117 ANeuralNetworksModel_free(mModel); 118 mModel = other.mModel; 123 other.mModel = nullptr; 134 auto result = static_cast<Result>(ANeuralNetworksModel_finish(mModel)); in finish() 146 if (ANeuralNetworksModel_addOperand(mModel, &(type->operandType)) != in addOperand() 152 mModel, mNextOperandId, &type->channelQuant.value().params) != in addOperand() 178 if (ANeuralNetworksModel_setOperandValue(mModel, index, buffer, length) != in setOperandValue() 192 if (ANeuralNetworksModel_setOperandValueFromMemory(mModel, index, memory->get(), offset, in setOperandValueFromMemory() [all …]
|
D | TestOperandExtraParams.cpp | 34 ASSERT_EQ(ANeuralNetworksModel_create(&mModel), ANEURALNETWORKS_NO_ERROR); in SetUp() 38 ANeuralNetworksModel_free(mModel); in TearDown() 119 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, &operandType), ANEURALNETWORKS_NO_ERROR); in testAddingWithSymmPerChannelQuantParams() 121 EXPECT_EQ(ANeuralNetworksModel_setOperandSymmPerChannelQuantParams(mModel, operandIndex, in testAddingWithSymmPerChannelQuantParams() 126 ANeuralNetworksModel* mModel = nullptr; member in __anon7e3e16c60111::OperandExtraParamsTest 241 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, &operandType), ANEURALNETWORKS_BAD_DATA); in TEST_F() 249 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, &operandType), ANEURALNETWORKS_BAD_DATA); in TEST_F()
|
D | TestIntrospectionControl.cpp | 167 ANeuralNetworksModel* modelHandle = mModel.getHandle(); in isSupportedOpListExpected() 176 ANeuralNetworksModel* modelHandle = mModel.getHandle(); in prepareForExecution() 198 WrapperModel mModel; member in __anon736024e70111::IntrospectionControlTest 228 createSimpleAddModel(&mModel); in TEST_F() 826 createSimpleAddModel(&mModel); in TEST_P() 1157 createAddMaxModel(&mModel, false); in TEST_F() 1173 createAddMaxModel(&mModel, true); in TEST_F() 1218 createAddMulModel(&mModel, false); in TEST_F() 1229 ANeuralNetworksModel* modelHandle = mModel.getHandle(); in TEST_F() 1247 createAddMulModel(&mModel, true); in TEST_F() [all …]
|
D | TestCompilationCaching.cpp | 357 CreateBroadcastAddModel(&mModel); in SetUp() 378 ASSERT_EQ(ANeuralNetworksCompilation_createForDevices(mModel.getHandle(), &device, 1, in compileModel() 403 test_wrapper::Model mModel; member in __anondf3c1f010111::CompilationCachingTest
|
/frameworks/ml/nn/runtime/test/fibonacci_extension/ |
D | FibonacciExtensionTest.cpp | 99 mModel.getHandle(), devices.data(), devices.size(), supported), in checkSupportedOperations() 112 ASSERT_EQ(ANeuralNetworksCompilation_createForDevices(mModel.getHandle(), mDevices.data(), in prepareForExecution() 126 ExtensionModel mModel; member in android::nn::__anon7b3c0b790111::FibonacciExtensionTest 178 ExtensionOperandType inputType(static_cast<Type>(mModel.getExtensionOperandType( in TEST_F() 182 static_cast<Type>(mModel.getExtensionOperandType(EXAMPLE_FIBONACCI_EXTENSION_NAME, in TEST_F() 189 createModel(&mModel, inputType, outputType, /*addNopOperations=*/false); in TEST_F() 220 createModel(&mModel, inputType, outputType, /*addNopOperations=*/true); in TEST_F() 249 createModel(&mModel, inputType, outputType, /*addNopOperations=*/false); in TEST_F() 251 ASSERT_EQ(ANeuralNetworksCompilation_createForDevices(mModel.getHandle(), mDevices.data(), in TEST_F() 260 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 | 44 : mModel(model), in CompilationBuilder() 66 int n = mModel->partitionTheWork(mDevices, mPreference, mPriority, deadline, &mPlan); in finish() 83 if (mModel->hasOEMOperation()) { in finish() 87 if (mModel->hasExtensionOperation()) { in finish() 98 mPlan.becomeSingleStep(DeviceManager::getCpuDevice(), mModel); in finish() 222 if (index >= mModel->inputCount()) { in forEachStepRoleOfInput() 241 if (index >= mModel->outputCount()) { in forEachStepRoleOfOutput()
|
D | ExecutionBuilder.h | 99 const ModelBuilder* getModel() const { return mModel; } in getModel() 143 const ModelBuilder* mModel; variable 258 return setInputOrOutputFromMemory(mModel->getInputOperand(inputIndex), memory, offset, in setInputFromMemory() 262 return setInputOrOutputFromMemory(mModel->getOutputOperand(outputIndex), memory, offset, in setOutputFromMemory() 302 const ModelBuilder* mModel; variable
|
D | ExecutionBuilder.cpp | 92 mModel(compilation->mModel), in ExecutionBuilder() 95 mInputs(mModel->inputCount()), in ExecutionBuilder() 96 mOutputs(mModel->outputCount()) { in ExecutionBuilder() 141 if (!checkDimensionInfo(mModel->getInputOperand(index), type, in setInput() 157 mModel->getInputOperand(index), type, const_cast<void*>(buffer), l); in setInput() 176 if (!checkDimensionInfo(mModel->getInputOperand(index), type, in setInputFromMemory() 202 mModel->getInputOperand(index), type, poolIndex, offset, length); in setInputFromMemory() 218 if (!checkDimensionInfo(mModel->getOutputOperand(index), type, in setOutput() 234 ModelArgumentInfo::createFromPointer(mModel->getOutputOperand(index), type, buffer, l); in setOutput() 253 if (!checkDimensionInfo(mModel->getOutputOperand(index), type, in setOutputFromMemory() [all …]
|
D | CompilationBuilder.h | 64 const ModelBuilder* getModel() const { return mModel; } in getModel() 74 const ModelBuilder* mModel;
|
/frameworks/ml/nn/runtime/include/ |
D | NeuralNetworksWrapper.h | 204 ANeuralNetworksModel_create(&mModel); in Model() 206 ~Model() { ANeuralNetworksModel_free(mModel); } in ~Model() 220 ANeuralNetworksModel_free(mModel); 221 mModel = other.mModel; 224 other.mModel = nullptr; 233 auto result = static_cast<Result>(ANeuralNetworksModel_finish(mModel)); in finish() 244 if (ANeuralNetworksModel_addOperand(mModel, &(type->operandType)) != in addOperand() 250 mModel, mNextOperandId, &type->channelQuant.value().params) != in addOperand() 259 if (ANeuralNetworksModel_setOperandValue(mModel, index, buffer, length) != in setOperandValue() 267 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/base/packages/WallpaperCropper/src/com/android/photos/views/ |
D | TiledImageRenderer.java | 75 private TileSource mModel; field in TiledImageRenderer 192 if (mModel != model) { in setModel() 193 mModel = model; in setModel() 220 if (mModel == null) { in notifyModelInvalidated() 226 mImageWidth = mModel.getImageWidth(); in notifyModelInvalidated() 227 mImageHeight = mModel.getImageHeight(); in notifyModelInvalidated() 228 mPreview = mModel.getPreview(); in notifyModelInvalidated() 229 mTileSize = mModel.getTileSize(); in notifyModelInvalidated() 690 mDecodedTile = mModel.getTile(mTileLevel, mX, mY, reuse); in decode()
|
/frameworks/ml/nn/driver/sample/ |
D | SampleDriver.cpp | 367 return setRunTimePoolInfosFromHidlMemories(&mPoolInfos, mModel.pools); in initialize() 543 const ErrorStatus status = executeBase(convertToV1_3(request), MeasureTiming::NO, mModel, in execute() 551 const ErrorStatus status = executeBase(convertToV1_3(request), measure, mModel, *mDriver, this, in execute_1_2() 560 return executeBase(request, measure, mModel, *mDriver, this, mPoolInfos, deadline, in execute_1_3() 630 convertToV1_3(request), measure, mModel, *mDriver, this, mPoolInfos, {}, {}); in executeSynchronously() 639 request, measure, mModel, *mDriver, this, mPoolInfos, deadline, loopTimeoutDuration); in executeSynchronously_1_3() 656 if (!validateRequest(request, mModel, /*allowUnspecifiedOutput=*/false)) { in executeFenced() 712 int n = executor.run(mModel, request, mPoolInfos, requestPoolInfos); in executeFenced() 760 : mModel(model), mDriver(driver), mModelPoolInfos(poolInfos) {} in BurstExecutorWithCache() 799 if (!validateRequest(fullRequest, mModel)) { in execute() [all …]
|
D | SampleDriver.h | 132 : mModel(model), in SamplePreparedModel() 172 const hal::Model* getModel() const { return &mModel; } in getModel() 175 hal::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/base/graphics/java/android/graphics/ |
D | ColorSpace.java | 211 @NonNull private final Model mModel; field in ColorSpace 890 mModel = model; in ColorSpace() 951 return mModel; in getModel() 965 return mModel.getComponentCount(); in getComponentCount() 1098 float[] xyz = new float[mModel.getComponentCount()]; in fromXyz() 1147 return mName + " (id=" + mId + ", model=" + mModel + ")"; in toString() 1160 return mModel == that.mModel; in equals() 1167 result = 31 * result + mModel.hashCode(); in hashCode()
|