Home
last modified time | relevance | path

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

12

/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/base/core/tests/coretests/src/com/android/internal/os/
DBinderLatencyObserverTest.java99 LatencyDims dims = latencyHistograms.keySet().iterator().next(); in testSampling() local
100 assertEquals(binder.getClass(), dims.getBinderClass()); in testSampling()
101 assertEquals(1, dims.getTransactionCode()); in testSampling()
102 assertThat(latencyHistograms.get(dims)).asList().containsExactly(1, 0, 0, 0, 0).inOrder(); in testSampling()
136 LatencyDims dims = LatencyDims.create(binder.getClass(), 1); in testHistogramBucketOverflow() local
138 Arrays.fill(blo.getLatencyHistograms().get(dims), Integer.MAX_VALUE); in testHistogramBucketOverflow()
139 assertThat(blo.getLatencyHistograms().get(dims)) in testHistogramBucketOverflow()
145 assertThat(blo.getLatencyHistograms().get(dims)) in testHistogramBucketOverflow()
268 LatencyDims dims; in testSharding() local
274 dims = iterator.next(); in testSharding()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DBinderLatencyObserver.java96 for (LatencyDims dims : histogramMap.keySet()) {
107 dims.getBinderClass(), dims.getTransactionCode());
108 fillApiStatsProto(proto, dims, transactionName, histogramMap.get(dims));
119 ProtoOutputStream proto, LatencyDims dims, String transactionName, int[] histogram) { in fillApiStatsProto() argument
142 proto.write(Dims.SERVICE_CLASS_NAME, dims.getBinderClass().getName()); in fillApiStatsProto()
203 LatencyDims dims = LatencyDims.create(s.binderClass, s.transactionCode); in callEnded() local
205 if (!shouldCollect(dims)) { in callEnded()
217 int[] buckets = mLatencyHistograms.get(dims); in callEnded()
220 mLatencyHistograms.put(dims, buckets); in callEnded()
234 protected boolean shouldCollect(LatencyDims dims) { in shouldCollect() argument
[all …]
/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/native/libs/renderengine/tests/
DRenderEngineThreadedTest.cpp85 size_t dims = 20; in TEST_F() local
86 EXPECT_CALL(*mRenderEngine, getMaxViewportDims()).WillOnce(Return(dims)); in TEST_F()
88 ASSERT_EQ(dims, result); in TEST_F()
92 size_t dims = 0; in TEST_F() local
93 EXPECT_CALL(*mRenderEngine, getMaxViewportDims()).WillOnce(Return(dims)); in TEST_F()
95 ASSERT_EQ(dims, result); in TEST_F()
/frameworks/av/media/libstagefright/renderfright/tests/
DRenderEngineThreadedTest.cpp131 size_t dims = 20; in TEST_F() local
132 EXPECT_CALL(*mRenderEngine, getMaxViewportDims()).WillOnce(Return(dims)); in TEST_F()
134 ASSERT_EQ(dims, result); in TEST_F()
138 size_t dims = 0; in TEST_F() local
139 EXPECT_CALL(*mRenderEngine, getMaxViewportDims()).WillOnce(Return(dims)); in TEST_F()
141 ASSERT_EQ(dims, result); in TEST_F()
/frameworks/rs/toolkit/
DLut3d.cpp74 int4 dims = mCubeDimension - 1; in kernel() local
76 const float4 m = (float4)(1.f / 255.f) * convert<float4>(dims); in kernel()
87 rsdIntrinsic3DLUT_K(out, in, len, bp, stride_y, stride_z, dims.x, dims.y, dims.z); in kernel()
/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
Drsd_cpu.h76 const Element *e, const uint32_t *dims, size_t dimLength) = 0;
DrsCpuScript.h76 const Element *e, const uint32_t *dims,
/frameworks/base/libs/hwui/hwui/
DImageDecoder.cpp305 auto dims = mCodec->codec()->dimensions(); in getCurrentFrameInfo() local
316 info.fFrameRect = SkIRect::MakeSize(dims); in getCurrentFrameInfo()
321 dims = swapped(dims); in getCurrentFrameInfo()
323 auto matrix = SkEncodedOriginToMatrix(origin, dims.width(), dims.height()); in getCurrentFrameInfo()
/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()
DrsScript.h121 const uint32_t *dims, size_t dimLen);
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/
DStaticInitMethodAdapter.java264 public void visitMultiANewArrayInsn(String desc, int dims) { in visitMultiANewArrayInsn() argument
266 mRenamedMethodWriter.visitMultiANewArrayInsn(desc, dims); in visitMultiANewArrayInsn()
DStubCallMethodAdapter.java356 public void visitMultiANewArrayInsn(String desc, int dims) { in visitMultiANewArrayInsn() argument
358 mParentVisitor.visitMultiANewArrayInsn(desc, dims); in visitMultiANewArrayInsn()
DDelegateMethodAdapter.java456 public void visitMultiANewArrayInsn(String desc, int dims) { in visitMultiANewArrayInsn() argument
458 mOrgWriter.visitMultiANewArrayInsn(desc, dims); in visitMultiANewArrayInsn()
DAbstractClassAdapter.java291 public void visitMultiANewArrayInsn(String desc, int dims) { in visitMultiANewArrayInsn() argument
294 super.visitMultiANewArrayInsn(desc, dims); in visitMultiANewArrayInsn()
/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()
DrsdBcc.h82 const uint32_t *dims,
/frameworks/rs/support/java/src/androidx/renderscript/
DScript.java513 public void setVar(int index, FieldPacker v, Element e, int[] dims) { in setVar() argument
516 mRS.nScriptSetVarVE(getID(mRS), index, v.getData(), dElement, dims, mUseIncSupp); in setVar() local
518 mRS.nScriptSetVarVE(getID(mRS), index, v.getData(), e.getID(mRS), dims, mUseIncSupp); in setVar() local
/frameworks/base/rs/java/android/renderscript/
DScript.java458 public void setVar(int index, FieldPacker v, Element e, int[] dims) { in setVar() argument
459 mRS.nScriptSetVarVE(getID(mRS), index, v.getData(), e.getID(mRS), dims); in setVar() local

12