/frameworks/base/media/mca/filterpacks/native/base/ |
D | vec_types.h | 23 template < class T, int dim> 26 T data[dim]; 28 VecBase<T,dim>& operator = (const VecBase<T, dim> &x) { 29 memcpy(data, x.data, sizeof(T)*dim); 42 for (int i = 0; i < dim; ++i) in Length() 48 template < class T, int dim> 49 class Vec : public VecBase<T,dim> { 52 Vec<T,dim>& operator = (const Vec<T, dim> &x) { 53 memcpy(this->data, x.data, sizeof(T)*dim); 58 template <class T, int dim> [all …]
|
/frameworks/av/media/libeffects/testlibs/ |
D | AudioCoefInterpolator.cpp | 35 size_t dim = nInDims - 1; in AudioCoefInterpolator() local 37 while (dim-- > 0) { in AudioCoefInterpolator() 38 mInDimOffsets[dim] = mInDimOffsets[dim + 1] * mInDims[dim + 1]; in AudioCoefInterpolator() 45 size_t dim = mNumInDims; in getCoef() local 46 while (dim-- > 0) { in getCoef() 47 if (CC_UNLIKELY(intCoord[dim] < 0)) { in getCoef() 48 fracCoord[dim] = 0; in getCoef() 49 } else if (CC_UNLIKELY(intCoord[dim] >= (int)mInDims[dim] - 1)) { in getCoef() 50 fracCoord[dim] = 0; in getCoef() 51 index += mInDimOffsets[dim] * (mInDims[dim] - 1); in getCoef() [all …]
|
/frameworks/native/opengl/tests/textures/ |
D | textures.cpp | 63 GLint dim = w<h ? w : h; in main() local 100 glDrawTexiOES(0, 0, 0, dim/2, dim/2); in main() 103 glDrawTexiOES(dim/2, 0, 0, dim/2, dim/2); in main() 106 glDrawTexiOES(0, dim/2, 0, dim/2, dim/2); in main() 109 glDrawTexiOES(dim/2, dim/2, 0, dim/2, dim/2); in main()
|
/frameworks/base/cmds/statsd/src/ |
D | stats_log_util.cpp | 110 const auto& dim = dims[*index]; in writeDimensionToProtoHelper() local 111 const int valueDepth = dim.mField.getDepth(); in writeDimensionToProtoHelper() 112 const int valuePrefix = dim.mField.getPrefix(depth); in writeDimensionToProtoHelper() 113 const int fieldNum = dim.mField.getPosAtDepth(depth); in writeDimensionToProtoHelper() 123 switch (dim.mValue.getType()) { in writeDimensionToProtoHelper() 126 dim.mValue.int_value); in writeDimensionToProtoHelper() 130 (long long)dim.mValue.long_value); in writeDimensionToProtoHelper() 134 dim.mValue.float_value); in writeDimensionToProtoHelper() 139 dim.mValue.str_value); in writeDimensionToProtoHelper() 141 str_set->insert(dim.mValue.str_value); in writeDimensionToProtoHelper() [all …]
|
D | HashableDimensionKey.cpp | 59 const FieldValue& dim = dims[index]; in populateStatsDimensionsValueParcelChildren() local 60 int fieldDepth = dim.mField.getDepth(); in populateStatsDimensionsValueParcelChildren() 61 int fieldPrefix = dim.mField.getPrefix(childDepth); in populateStatsDimensionsValueParcelChildren() 64 child.field = dim.mField.getPosAtDepth(childDepth); in populateStatsDimensionsValueParcelChildren() 67 switch (dim.mValue.getType()) { in populateStatsDimensionsValueParcelChildren() 70 child.intValue = dim.mValue.int_value; in populateStatsDimensionsValueParcelChildren() 74 child.longValue = dim.mValue.long_value; in populateStatsDimensionsValueParcelChildren() 78 child.floatValue = dim.mValue.float_value; in populateStatsDimensionsValueParcelChildren() 82 child.stringValue = dim.mValue.str_value; in populateStatsDimensionsValueParcelChildren() 96 dim.mField.getPrefix(childDepth + 1), dims, in populateStatsDimensionsValueParcelChildren()
|
/frameworks/base/cmds/statsd/tests/ |
D | metadata_util_test.cpp | 28 HashableDimensionKey dim; in TEST() local 44 dim.addValue(FieldValue(field1, value1)); in TEST() 45 dim.addValue(FieldValue(field2, value2)); in TEST() 46 dim.addValue(FieldValue(field3, value3)); in TEST() 47 dim.addValue(FieldValue(field4, value4)); in TEST() 52 MetricDimensionKey dimKey(dim, dim2); in TEST()
|
D | FieldValue_test.cpp | 158 HashableDimensionKey dim; in TEST() local 176 dim.addValue(FieldValue(field1, value1)); in TEST() 177 dim.addValue(FieldValue(field2, value2)); in TEST() 185 EXPECT_TRUE(dim.contains(dim)); in TEST() 186 EXPECT_TRUE(dim.contains(subDim1)); in TEST() 187 EXPECT_TRUE(dim.contains(subDim2)); in TEST() 191 EXPECT_FALSE(dim.contains(subDim3)); in TEST() 195 EXPECT_TRUE(dim.contains(subDim4)); in TEST() 372 HashableDimensionKey dim; in TEST() local 387 dim.addValue(FieldValue(field1, value1)); in TEST() [all …]
|
/frameworks/native/opengl/tests/filter/ |
D | filter.cpp | 68 GLint dim = w<h ? w : h; in main() local 144 const GLfloat fdim = dim; in main() 165 glScissor(0,dim,dim,h-dim); in main() 168 for (int y=0 ; y<dim ; y++) { in main() 175 glDrawTexiOES(0, y, 1, dim, dim); in main()
|
/frameworks/rs/cpu_ref/ |
D | rsCpuIntrinsicBlur.cpp | 121 validY = rsMin(validY, (int)(info->dim.y- 1)); in OneVU4() 139 validY = rsMin(validY, (int)(info->dim.y - 1)); in OneVU1() 261 validX = rsMin(validX, (int)(info->dim.x - 1)); in OneHU4() 276 validX = rsMin(validX, (int)(info->dim.x - 1)); in OneHU1() 308 if (gArchUseSIMD && info->dim.x >= 4) { in kernelU4() 310 info->dim.x, info->dim.y, in kernelU4() 316 if (info->dim.x > 2048) { in kernelU4() 317 if ((info->dim.x > cp->mScratchSize[info->lid]) || !cp->mScratch[info->lid]) { in kernelU4() 319 cp->mScratch[info->lid] = realloc(cp->mScratch[info->lid], (info->dim.x + 1) * 16); in kernelU4() 320 cp->mScratchSize[info->lid] = info->dim.x; in kernelU4() [all …]
|
D | rsCpuIntrinsicConvolve5x5.cpp | 90 uint32_t x3 = rsMin((int32_t)x+1, (int32_t)(info->dim.x-1)); in OneU4() 91 uint32_t x4 = rsMin((int32_t)x+2, (int32_t)(info->dim.x-1)); in OneU4() 133 uint32_t x3 = rsMin((int32_t)x+1, (int32_t)(info->dim.x-1)); in OneU2() 134 uint32_t x4 = rsMin((int32_t)x+2, (int32_t)(info->dim.x-1)); in OneU2() 176 uint32_t x3 = rsMin((int32_t)x+1, (int32_t)(info->dim.x-1)); in OneU1() 177 uint32_t x4 = rsMin((int32_t)x+2, (int32_t)(info->dim.x-1)); in OneU1() 219 uint32_t x3 = rsMin((int32_t)x+1, (int32_t)(info->dim.x-1)); in OneF4() 220 uint32_t x4 = rsMin((int32_t)x+2, (int32_t)(info->dim.x-1)); in OneF4() 261 uint32_t x3 = rsMin((int32_t)x+1, (int32_t)(info->dim.x-1)); in OneF2() 262 uint32_t x4 = rsMin((int32_t)x+2, (int32_t)(info->dim.x-1)); in OneF2() [all …]
|
D | rsCpuScript.cpp | 562 mtls->dimPtr = &mtls->redp.dim; in reduceMtlsSetup() 581 mtls->redp.dim.x = inType->getDimX(); in reduceMtlsSetup() 582 mtls->redp.dim.y = inType->getDimY(); in reduceMtlsSetup() 583 mtls->redp.dim.z = inType->getDimZ(); in reduceMtlsSetup() 594 if (!setUpMtlsDimensions(mtls, mtls->redp.dim, sc)) { in reduceMtlsSetup() 639 mtls->dimPtr = &mtls->fep.dim; in forEachMtlsSetup() 665 mtls->fep.dim.x = inType->getDimX(); in forEachMtlsSetup() 666 mtls->fep.dim.y = inType->getDimY(); in forEachMtlsSetup() 667 mtls->fep.dim.z = inType->getDimZ(); in forEachMtlsSetup() 680 mtls->fep.dim.x = outType->getDimX(); in forEachMtlsSetup() [all …]
|
D | rsCpuIntrinsicConvolve3x3.cpp | 89 uint32_t x2 = rsMin((int32_t)x+1, (int32_t)info->dim.x-1); in ConvolveOneU4() 111 uint32_t x2 = rsMin((int32_t)x+1, (int32_t)info->dim.x-1); in ConvolveOneU2() 132 uint32_t x2 = rsMin((int32_t)x+1, (int32_t)info->dim.x-1); in ConvolveOneU1() 151 uint32_t x2 = rsMin((int32_t)x+1, (int32_t)info->dim.x-1); in ConvolveOneF4() 162 uint32_t x2 = rsMin((int32_t)x+1, (int32_t)info->dim.x-1); in ConvolveOneF2() 173 uint32_t x2 = rsMin((int32_t)x+1, (int32_t)info->dim.x-1); in ConvolveOneF1() 191 uint32_t y1 = rsMin((int32_t)info->current.y + 1, (int32_t)(info->dim.y-1)); in kernelU4() 238 uint32_t y1 = rsMin((int32_t)info->current.y + 1, (int32_t)(info->dim.y-1)); in kernelU2() 283 uint32_t y1 = rsMin((int32_t)info->current.y + 1, (int32_t)(info->dim.y-1)); in kernelU1() 328 uint32_t y1 = rsMin((int32_t)info->current.y + 1, (int32_t)(info->dim.y-1)); in kernelF4() [all …]
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | ToGrayValuesFilter.java | 85 int[] dim = inputImage.getDimensions(); in onProcess() local 91 int modular = dim[0] % 4; in onProcess() 92 int[] outDim = new int[] {dim[0] - modular, dim[1]}; in onProcess() 98 mShader.setSourceQuad(Quad.fromRect(0f, 0f, ((float)outDim[0])/dim[0], 1f)); in onProcess() 106 outputFrame = outPort.fetchAvailableFrame(dim).asFrameBuffer2D(); in onProcess()
|
D | Frame.java | 162 int[] dim = mBackingStore.getDimensions(); in getDimensions() local 163 return dim != null ? Arrays.copyOf(dim, dim.length) : null; in getDimensions()
|
/frameworks/rs/tests/java_api/ComputePerf/src/com/example/android/rs/computeperf/ |
D | LaunchTest.java | 31 final int dim = mScript.get_dim(); in LaunchTest() local 33 mAllocationX = Allocation.createSized(rs, Element.U8(rs), dim); in LaunchTest() 35 tb.setX(dim); in LaunchTest() 36 tb.setY(dim); in LaunchTest()
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
D | UT_math_agree.java | 126 private float[] randvec_float(int dim) { in randvec_float() argument 127 float[] fv = new float[dim]; in randvec_float() 128 for (int i = 0; i < dim; ++i) in randvec_float() 133 private byte[] randvec_char(int dim) { in randvec_char() argument 134 byte[] cv = new byte[dim]; in randvec_char() 139 private short[] randvec_uchar(int dim) { in randvec_uchar() argument 140 short[] ucv = new short[dim]; in randvec_uchar() 141 for (int i = 0; i < dim; ++i) in randvec_uchar() 146 private short[] randvec_short(int dim) { in randvec_short() argument 147 short[] sv = new short[dim]; in randvec_short() [all …]
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | UT_math_agree.java | 124 private float[] randvec_float(int dim) { in randvec_float() argument 125 float[] fv = new float[dim]; in randvec_float() 126 for (int i = 0; i < dim; ++i) in randvec_float() 131 private byte[] randvec_char(int dim) { in randvec_char() argument 132 byte[] cv = new byte[dim]; in randvec_char() 137 private short[] randvec_uchar(int dim) { in randvec_uchar() argument 138 short[] ucv = new short[dim]; in randvec_uchar() 139 for (int i = 0; i < dim; ++i) in randvec_uchar() 144 private short[] randvec_short(int dim) { in randvec_short() argument 145 short[] sv = new short[dim]; in randvec_short() [all …]
|
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
D | UT_math_agree.java | 99 private float[] randvec_float(int dim) { in randvec_float() argument 100 float[] fv = new float[dim]; in randvec_float() 101 for (int i = 0; i < dim; ++i) in randvec_float() 105 private byte[] randvec_char(int dim) { in randvec_char() argument 106 byte[] cv = new byte[dim]; in randvec_char() 110 private short[] randvec_uchar(int dim) { in randvec_uchar() argument 111 short[] ucv = new short[dim]; in randvec_uchar() 112 for (int i = 0; i < dim; ++i) in randvec_uchar() 116 private short[] randvec_short(int dim) { in randvec_short() argument 117 short[] sv = new short[dim]; in randvec_short() [all …]
|
/frameworks/ml/nn/tools/test_generator/ |
D | test_generator.py | 898 def __init__(self, origin, target, dim, drop=[], name=None): argument 902 assert all(i >= -dim and i < dim for i in [self.origin, self.target]) 903 self.dim = dim 904 self.perm = list(range(dim)) 905 self.perm.insert(target if target >= 0 else target + dim, self.perm.pop(origin)) 907 assert all(i >= -dim and i < dim for i in self.drop) 908 self.drop = [i if i >= 0 else i + dim for i in self.drop] 909 assert target not in self.drop and target + dim not in self.drop 912 axis = self.target if self.target >= 0 else self.target + self.dim 915 self.name = "dim%d_axis%d%s"%(self.dim - len(self.drop), axis, neg) [all …]
|
D | README.md | 275 # original axis and dim are deduced from the op_list 276 example.AddVariations(*[AxisConverter(origin, t, dim).Identify(op_list) for t in targets]) 280 AxisConverter(origin, t, dim).Identify(op_list) for t in range(dim) 285 AxisConverter(origin, t, dim).Identify(op_list) for t in range(-dim, dim) 289 drop = list(range(dim)) 292 AxisConverter(origin, origin, dim, drop[0:(dim-i)]).Identify(op_list) for i in dims]) 296 AxisConverter(origin, origin, dim, drop[0:i]).Identify(op_list) for i in range(dim)]) 300 AxisConverter(origin, j, dim, range(i)).Identify(op_list) \ 301 for i in range(dim) for j in range(i, dim) 306 AxisConverter(origin, k, dim, range(i)).Identify(op_list) \ [all …]
|
/frameworks/native/opengl/tests/hwc/ |
D | hwcCommit.cpp | 167 void setSourceDim(HwcTestDim dim); 729 HwcTestDim dim(w, startDim.height()); in dfMinWidth() local 730 Rectangle rect(format, dim); in dfMinWidth() 753 HwcTestDim dim(startDim.width(), h); in dfMinHeight() local 754 Rectangle rect(format, dim); in dfMinHeight() 777 HwcTestDim dim(w, startDim.height()); in dfMaxWidth() local 778 Rectangle rect(format, dim); in dfMaxWidth() 800 HwcTestDim dim(startDim.width(), h); in dfMaxHeight() local 801 Rectangle rect(format, dim); in dfMaxHeight() 835 HwcTestDim dim(w, h); in dfMinDim() local [all …]
|
/frameworks/ml/nn/common/include/ |
D | OperationsUtils.h | 264 for (int dim = 0; dim < num_dimensions; dim++) { in ReverseMaskBits() local 278 inline int32_t ClampedIndex(int32_t index, int dim, bool pos_stride) { in ClampedIndex() argument 280 ? (index >= dim ? dim in ClampedIndex() 281 : PositiveRemainder(std::min(std::max(index, -dim), dim), dim)) in ClampedIndex() 282 : (index < -dim in ClampedIndex() 284 : PositiveRemainder(std::min(std::max(index, -dim), dim - 1), dim)); in ClampedIndex()
|
/frameworks/ml/nn/runtime/test/fuzzing/operation_signatures/ |
D | Reduce.cpp | 34 int32_t dim = getUniform<int32_t>(-rank, rank - 1); in reduceOpConstructor() local 35 op->inputs[1]->value<int32_t>(i) = dim; in reduceOpConstructor() 36 reduce[dim < 0 ? dim + rank : dim] = true; in reduceOpConstructor()
|
/frameworks/rs/driver/runtime/ |
D | rs_core.c | 209 return ((struct RsExpandKernelDriverInfo *)ctxt)->dim.x; in rsGetDimX() 213 return ((struct RsExpandKernelDriverInfo *)ctxt)->dim.y; in rsGetDimY() 217 return ((struct RsExpandKernelDriverInfo *)ctxt)->dim.z; in rsGetDimZ() 221 return ((struct RsExpandKernelDriverInfo *)ctxt)->dim.array[0]; in rsGetDimArray0() 225 return ((struct RsExpandKernelDriverInfo *)ctxt)->dim.array[1]; in rsGetDimArray1() 229 return ((struct RsExpandKernelDriverInfo *)ctxt)->dim.array[2]; in rsGetDimArray2() 233 return ((struct RsExpandKernelDriverInfo *)ctxt)->dim.array[3]; in rsGetDimArray3() 237 return ((struct RsExpandKernelDriverInfo *)ctxt)->dim.face != 0; in rsGetDimHasFaces() 241 return ((struct RsExpandKernelDriverInfo *)ctxt)->dim.lod; in rsGetDimLod()
|
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/ |
D | CropView.java | 306 for (int dim = 0; dim <= 1; dim++) { in onTouchEvent() 307 if (coef[dim] > 0) adjustment[dim] = (float) Math.ceil(adjustment[dim]); in onTouchEvent()
|