Home
last modified time | relevance | path

Searched refs:dims (Results 1 – 25 of 55) sorted by relevance

123

/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DFaceSquareFilter.java68 int[] dims = imageFrame.getDimensions(); in onProcess() local
74 drawBoxes(pixels, faces, dims); in onProcess()
82 public void drawBoxes(byte[] pixels, Face[] faces, int[] dims) { in drawBoxes() argument
85 int top = (tempRect.top+HEIGHT_OFFSET)*dims[1]/FACE_X_RANGE; in drawBoxes()
86 int bottom = (tempRect.bottom+HEIGHT_OFFSET)*dims[1]/FACE_X_RANGE; in drawBoxes()
87 int left = (tempRect.left+WIDTH_OFFSET)*dims[0]/FACE_X_RANGE; in drawBoxes()
88 int right = (tempRect.right+WIDTH_OFFSET)*dims[0]/FACE_X_RANGE; in drawBoxes()
92 } else if (top > dims[1]) { in drawBoxes()
93 top = dims[1]; in drawBoxes()
97 } else if (left > dims[0]) { in drawBoxes()
[all …]
DCamera2Source.java229 int[] dims = new int[] { in onProcess() local
232 FrameImage2D outputFrame = Frame.create(mOutputType, dims).asFrameImage2D(); in onProcess()
/frameworks/ml/nn/runtime/test/
DTestOperandExtraParams.cpp45 static uint32_t dims[4] = {1, 2, 3, CHANNEL_DIM_SIZE}; in createOperand() local
67 .dimensions = dims, in createOperand()
73 .dimensions = dims, in createOperand()
79 .dimensions = dims, in createOperand()
85 .dimensions = dims, in createOperand()
91 .dimensions = dims, in createOperand()
97 .dimensions = dims, in createOperand()
DGeneratedTestUtils.cpp36 auto dims = op.dimensions; in getOperandType() local
38 dims.assign(dims.size(), 0); in getOperandType()
42 static_cast<Type>(op.type), dims, in getOperandType()
45 return OperandType(static_cast<Type>(op.type), dims, op.scale, op.zeroPoint); in getOperandType()
/frameworks/ml/nn/common/include/
DCpuOperationUtils.h36 tflite::Dims<4> dims; in convertShapeToDims() local
42 dims.sizes[i] = static_cast<int>(getSizeOfDimension(shape, src)); in convertShapeToDims()
44 dims.sizes[i] = 1; in convertShapeToDims()
48 dims.strides[0] = 1; in convertShapeToDims()
50 dims.strides[i] = dims.strides[i - 1] * dims.sizes[i - 1]; in convertShapeToDims()
52 return dims; in convertShapeToDims()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DFrameBuffer1D.java89 int[] dims = backingStore.getDimensions(); in assertCanCreate() local
90 if (dims == null || dims.length == 0) { in assertCanCreate()
DFrameType.java360 private static String keyValueForType(int elemId, int dims, int hints, Class<?> clazz) { in keyValueForType() argument
361 return elemId + ":" + dims + ":" + hints + ":" + (clazz != null ? clazz.getName() : "0"); in keyValueForType()
/frameworks/base/cmds/statsd/src/
Dstats_log_util.cpp105 void writeDimensionToProtoHelper(const std::vector<FieldValue>& dims, size_t* index, int depth, in writeDimensionToProtoHelper() argument
108 size_t count = dims.size(); in writeDimensionToProtoHelper()
110 const auto& dim = dims[*index]; in writeDimensionToProtoHelper()
161 writeDimensionToProtoHelper(dims, index, valueDepth, dim.mField.getPrefix(valueDepth), in writeDimensionToProtoHelper()
172 void writeDimensionLeafToProtoHelper(const std::vector<FieldValue>& dims, in writeDimensionLeafToProtoHelper() argument
177 size_t count = dims.size(); in writeDimensionLeafToProtoHelper()
179 const auto& dim = dims[*index]; in writeDimensionLeafToProtoHelper()
222 writeDimensionLeafToProtoHelper(dims, dimensionLeafField, in writeDimensionLeafToProtoHelper()
338 void writeFieldValueTreeToStreamHelper(int tagId, const std::vector<FieldValue>& dims, in writeFieldValueTreeToStreamHelper() argument
341 size_t count = dims.size(); in writeFieldValueTreeToStreamHelper()
[all …]
DHashableDimensionKey.cpp51 const vector<FieldValue>& dims, in populateStatsDimensionsValueParcelChildren() argument
58 while (index < dims.size()) { in populateStatsDimensionsValueParcelChildren()
59 const FieldValue& dim = dims[index]; in populateStatsDimensionsValueParcelChildren()
96 dim.mField.getPrefix(childDepth + 1), dims, in populateStatsDimensionsValueParcelChildren()
/frameworks/rs/cpu_ref/
DrsCpuIntrinsic3DLUT.cpp66 int4 dims = { in kernel() local
72 const float4 m = (float4)(1.f / 255.f) * convert_float4(dims); in kernel()
85 dims.x, dims.y, dims.z); in kernel()
DrsCpuIntrinsic.h72 const uint32_t * dims,
DrsCpuIntrinsic.cpp57 const uint32_t *dims, size_t dimLength) { in setGlobalVarWithElemDims() argument
/frameworks/ml/nn/runtime/test/android_fuzzing/
DFuzzTest.cpp38 auto dims = op.dimensions; in getOperandType() local
41 static_cast<Type>(op.type), dims, in getOperandType()
44 return OperandType(static_cast<Type>(op.type), dims, op.scale, op.zeroPoint); in getOperandType()
/frameworks/ml/nn/common/operations/
DFill.cpp92 const int32_t* dims = context->getInputBuffer<int32_t>(kDimsTensor); in prepare() local
94 outputShape.dimensions[i] = dims[i]; in prepare()
DEmbeddingLookupTest.cpp76 auto multiAll = [](const std::vector<uint32_t>& dims) -> uint32_t { in EmbeddingLookupOpModel() argument
78 for (uint32_t d : dims) { in EmbeddingLookupOpModel()
DLSHProjectionTest.cpp62 auto multiAll = [](const std::vector<uint32_t>& dims) -> uint32_t { in LSHProjectionOpModel() argument
64 for (uint32_t d : dims) { in LSHProjectionOpModel()
DHashtableLookupTest.cpp90 auto multiAll = [](const std::vector<uint32_t>& dims) -> uint32_t { in HashtableLookupOpModel() argument
92 for (uint32_t d : dims) { in HashtableLookupOpModel()
DSVDFTest.cpp216 auto multiAll = [](const std::vector<uint32_t>& dims) -> uint32_t { in SVDFOpModel() argument
218 for (uint32_t d : dims) { in SVDFOpModel()
DLayerNormLSTMTest.cpp151 auto multiAll = [](const std::vector<uint32_t>& dims) -> uint32_t { in LayerNormLSTMOpModel() argument
153 for (uint32_t d : dims) { in LayerNormLSTMOpModel()
/frameworks/rs/
DrsScript.cpp83 const uint32_t *dims, size_t dimLen) { in setVar() argument
92 (void *)val, len, e, dims, dimLen); in setVar()
290 const uint32_t *dims, size_t dimLen) { in rsi_ScriptSetVarVE() argument
293 s->setVar(slot, data, len, e, dims, dimLen); in rsi_ScriptSetVarVE()
/frameworks/rs/driver/
DrsdBcc.cpp151 const uint32_t *dims, size_t dimLength) { in rsdScriptSetGlobalVarWithElemDims() argument
153 cs->setGlobalVarWithElemDims(slot, data, dataLength, elem, dims, dimLength); in rsdScriptSetGlobalVarWithElemDims()
/frameworks/rs/support/java/src/androidx/renderscript/
DScript.java508 public void setVar(int index, FieldPacker v, Element e, int[] dims) { in setVar() argument
511 mRS.nScriptSetVarVE(getID(mRS), index, v.getData(), dElement, dims, mUseIncSupp); in setVar() local
513 mRS.nScriptSetVarVE(getID(mRS), index, v.getData(), e.getID(mRS), dims, mUseIncSupp); in setVar() local
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/
DDelegateMethodAdapter.java439 public void visitMultiANewArrayInsn(String desc, int dims) { in visitMultiANewArrayInsn() argument
441 mOrgWriter.visitMultiANewArrayInsn(desc, dims); in visitMultiANewArrayInsn()
DStubCallMethodAdapter.java356 public void visitMultiANewArrayInsn(String desc, int dims) { in visitMultiANewArrayInsn() argument
358 mParentVisitor.visitMultiANewArrayInsn(desc, dims); in visitMultiANewArrayInsn()
DAbstractClassAdapter.java291 public void visitMultiANewArrayInsn(String desc, int dims) { in visitMultiANewArrayInsn() argument
294 super.visitMultiANewArrayInsn(desc, dims); in visitMultiANewArrayInsn()

123