/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/subscriber/ |
D | SubscriberReporter.cpp | 123 const auto& dim = dims[*index]; in getStatsDimensionsValueHelper() local 124 const int valueDepth = dim.mField.getDepth(); in getStatsDimensionsValueHelper() 125 const int valuePrefix = dim.mField.getPrefix(depth); in getStatsDimensionsValueHelper() 131 switch (dim.mValue.getType()) { in getStatsDimensionsValueHelper() 133 output->push_back(StatsDimensionsValue(dim.mField.getPosAtDepth(depth), in getStatsDimensionsValueHelper() 134 dim.mValue.int_value)); in getStatsDimensionsValueHelper() 137 output->push_back(StatsDimensionsValue(dim.mField.getPosAtDepth(depth), in getStatsDimensionsValueHelper() 138 dim.mValue.long_value)); in getStatsDimensionsValueHelper() 141 output->push_back(StatsDimensionsValue(dim.mField.getPosAtDepth(depth), in getStatsDimensionsValueHelper() 142 dim.mValue.float_value)); in getStatsDimensionsValueHelper() [all …]
|
D | IncidentdReporter.cpp | 100 for (const auto& dim : dimensionKey.getDimensionKeyInWhat().getValues()) { in getProtoData() local 101 int uid = getUidIfExists(dim); in getProtoData() 108 for (const auto& dim : dimensionKey.getDimensionKeyInCondition().getValues()) { in getProtoData() local 109 int uid = getUidIfExists(dim); in getProtoData()
|
/frameworks/base/cmds/statsd/src/ |
D | stats_log_util.cpp | 93 const auto& dim = dims[*index]; in writeDimensionToProtoHelper() local 94 const int valueDepth = dim.mField.getDepth(); in writeDimensionToProtoHelper() 95 const int valuePrefix = dim.mField.getPrefix(depth); in writeDimensionToProtoHelper() 96 const int fieldNum = dim.mField.getPosAtDepth(depth); in writeDimensionToProtoHelper() 106 switch (dim.mValue.getType()) { in writeDimensionToProtoHelper() 109 dim.mValue.int_value); in writeDimensionToProtoHelper() 113 (long long)dim.mValue.long_value); in writeDimensionToProtoHelper() 117 dim.mValue.float_value); in writeDimensionToProtoHelper() 122 dim.mValue.str_value); in writeDimensionToProtoHelper() 124 str_set->insert(dim.mValue.str_value); in writeDimensionToProtoHelper() [all …]
|
/frameworks/base/cmds/statsd/tests/ |
D | FieldValue_test.cpp | 136 HashableDimensionKey dim; in TEST() local 154 dim.addValue(FieldValue(field1, value1)); in TEST() 155 dim.addValue(FieldValue(field2, value2)); in TEST() 163 EXPECT_TRUE(dim.contains(dim)); in TEST() 164 EXPECT_TRUE(dim.contains(subDim1)); in TEST() 165 EXPECT_TRUE(dim.contains(subDim2)); in TEST() 169 EXPECT_FALSE(dim.contains(subDim3)); in TEST() 173 EXPECT_TRUE(dim.contains(subDim4)); in TEST() 294 HashableDimensionKey dim; in TEST() local 311 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/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/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/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/ml/nn/tools/test_generator/ |
D | test_generator.py | 859 def __init__(self, origin, target, dim, drop=[], name=None): argument 863 assert all(i >= -dim and i < dim for i in [self.origin, self.target]) 864 self.dim = dim 865 self.perm = list(range(dim)) 866 self.perm.insert(target if target >= 0 else target + dim, self.perm.pop(origin)) 868 assert all(i >= -dim and i < dim for i in self.drop) 869 self.drop = [i if i >= 0 else i + dim for i in self.drop] 870 assert target not in self.drop and target + dim not in self.drop 873 axis = self.target if self.target >= 0 else self.target + self.dim 876 self.name = "dim%d_axis%d%s"%(self.dim - len(self.drop), axis, neg) [all …]
|
D | README.md | 270 # original axis and dim are deduced from the op_list 271 example.AddVariations(*[AxisConverter(origin, t, dim).Identify(op_list) for t in targets]) 275 AxisConverter(origin, t, dim).Identify(op_list) for t in range(dim) 280 AxisConverter(origin, t, dim).Identify(op_list) for t in range(-dim, dim) 284 drop = list(range(dim)) 287 AxisConverter(origin, origin, dim, drop[0:(dim-i)]).Identify(op_list) for i in dims]) 291 AxisConverter(origin, origin, dim, drop[0:i]).Identify(op_list) for i in range(dim)]) 295 AxisConverter(origin, j, dim, range(i)).Identify(op_list) \ 296 for i in range(dim) for j in range(i, dim) 301 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()
|