/packages/modules/StatsD/statsd/src/ |
D | stats_log_util.cpp | 111 const auto& dim = dims[*index]; in writeDimensionToProtoHelper() local 112 const int valueDepth = dim.mField.getDepth(); in writeDimensionToProtoHelper() 113 const int valuePrefix = dim.mField.getPrefix(depth); in writeDimensionToProtoHelper() 114 const int fieldNum = dim.mField.getPosAtDepth(depth); in writeDimensionToProtoHelper() 126 switch (dim.mValue.getType()) { in writeDimensionToProtoHelper() 129 dim.mValue.int_value); in writeDimensionToProtoHelper() 133 (long long)dim.mValue.long_value); in writeDimensionToProtoHelper() 137 dim.mValue.float_value); in writeDimensionToProtoHelper() 142 dim.mValue.str_value); in writeDimensionToProtoHelper() 144 str_set->insert(dim.mValue.str_value); in writeDimensionToProtoHelper() [all …]
|
D | HashableDimensionKey.cpp | 50 const FieldValue& dim = dims[index]; in populateStatsDimensionsValueParcelChildren() local 51 int fieldDepth = dim.mField.getDepth(); in populateStatsDimensionsValueParcelChildren() 52 int fieldPrefix = dim.mField.getPrefix(childDepth); in populateStatsDimensionsValueParcelChildren() 55 child.field = dim.mField.getPosAtDepth(childDepth); in populateStatsDimensionsValueParcelChildren() 58 switch (dim.mValue.getType()) { in populateStatsDimensionsValueParcelChildren() 61 child.intValue = dim.mValue.int_value; in populateStatsDimensionsValueParcelChildren() 65 child.longValue = dim.mValue.long_value; in populateStatsDimensionsValueParcelChildren() 69 child.floatValue = dim.mValue.float_value; in populateStatsDimensionsValueParcelChildren() 73 child.stringValue = dim.mValue.str_value; in populateStatsDimensionsValueParcelChildren() 87 dim.mField.getPrefix(childDepth + 1), dims, in populateStatsDimensionsValueParcelChildren()
|
/packages/modules/StatsD/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 | 402 HashableDimensionKey dim; in TEST() local 420 dim.addValue(FieldValue(field1, value1)); in TEST() 421 dim.addValue(FieldValue(field2, value2)); in TEST() 429 EXPECT_TRUE(dim.contains(dim)); in TEST() 430 EXPECT_TRUE(dim.contains(subDim1)); in TEST() 431 EXPECT_TRUE(dim.contains(subDim2)); in TEST() 435 EXPECT_FALSE(dim.contains(subDim3)); in TEST() 439 EXPECT_TRUE(dim.contains(subDim4)); in TEST() 735 HashableDimensionKey dim; in TEST() local 750 dim.addValue(FieldValue(field1, value1)); in TEST() [all …]
|
/packages/modules/NeuralNetworks/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 …]
|
/packages/modules/NeuralNetworks/common/include/ |
D | OperationsExecutionUtils.h | 190 for (int dim = 0; dim < num_dimensions; dim++) { in ReverseMaskBits() local 204 inline int32_t ClampedIndex(int32_t index, int dim, bool pos_stride) { in ClampedIndex() argument 206 ? (index >= dim ? dim in ClampedIndex() 207 : PositiveRemainder(std::min(std::max(index, -dim), dim), dim)) in ClampedIndex() 208 : (index < -dim in ClampedIndex() 210 : PositiveRemainder(std::min(std::max(index, -dim), dim - 1), dim)); in ClampedIndex()
|
D | CpuOperationUtils.h | 191 const auto& dim = shape.dimensions; in initialize() local 192 mShape.dimensions = {dim[0], dim[2], dim[3], dim[1]}; in initialize()
|
D | LegacyUtils.h | 191 bool tensorHasUnspecifiedDimensions(int type, const uint32_t* dim, uint32_t dimCount);
|
/packages/apps/Camera2/src/com/android/camera/data/ |
D | PhotoItem.java | 240 Point dim = CameraUtil.resizeToFill( in generateThumbnail() local 249 int temp = dim.x; in generateThumbnail() 250 dim.x = dim.y; in generateThumbnail() 251 dim.y = temp; in generateThumbnail() 259 (int) (dim.x * 0.7f), (int) (dim.y * 0.7), in generateThumbnail()
|
/packages/modules/NeuralNetworks/common/cpu_operations/ |
D | StridedSlice.cpp | 130 int32_t dim = static_cast<int32_t>(getSizeOfDimension(inputShape, idx)); in prepare() local 136 int32_t begin = beginMask & (1 << idx) ? positiveStride ? 0 : dim - 1 in prepare() 137 : ClampedIndex(beginData[idx], dim, positiveStride); in prepare() 138 int32_t end = endMask & (1 << idx) ? positiveStride ? dim : -1 in prepare() 139 : ClampedIndex(endData[idx], dim, positiveStride); in prepare()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | AlbumSetSlotRenderer.java | 145 int dim = uncoveredHeight / 2; in renderOverlay() local 146 mCameraOverlay.draw(canvas, (width - dim) / 2, in renderOverlay() 147 (uncoveredHeight - dim) / 2, dim, dim); in renderOverlay()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/controller/ |
D | StyleChooser.java | 44 int dim = res.getDimensionPixelSize(R.dimen.draw_style_icon_dim); in setUp() local 45 LayoutParams lp = new LayoutParams(dim, dim); in setUp()
|
/packages/modules/NeuralNetworks/runtime/test/fuzzing/operation_signatures/ |
D | Reduce.cpp | 34 int32_t dim = getRandomAxis(rank); in reduceOpConstructor() local 35 op->inputs[1]->value<int32_t>(i) = dim; in reduceOpConstructor() 36 reduce[toPositiveAxis(dim, rank)] = true; in reduceOpConstructor()
|
D | Reshape.cpp | 459 int32_t dim = getUniform<int32_t>(0, rank - 1); in squeezeConstructor() local 460 op->inputs[1]->value<int32_t>(i) = dim; in squeezeConstructor() 461 squeeze[dim] = true; in squeezeConstructor()
|
/packages/modules/NeuralNetworks/runtime/test/ |
D | TestUnspecifiedDimensions.cpp | 250 OperandType getType(uint32_t index, const std::vector<uint32_t>& dim) { in getType() argument 254 for (auto d : dim) { in getType() 266 uint32_t getSize(uint32_t index, const std::vector<uint32_t>& dim, in getSize() argument 269 for (auto d : dim) { in getSize() 282 const std::vector<uint32_t>& dim, void* buffer, in setInOut() argument 286 size_t size = (buffer == nullptr) ? 0 : getSize(index, dim, bufferSize) * sizeof(T); in setInOut() 287 auto type = getType(index, dim); in setInOut()
|
/packages/modules/StatsD/statsd/src/subscriber/ |
D | IncidentdReporter.cpp | 95 for (const auto& dim : dimensionKey.getDimensionKeyInWhat().getValues()) { in getProtoData() local 96 int uid = getUidIfExists(dim); in getProtoData()
|
/packages/modules/NeuralNetworks/runtime/ |
D | FlatbufferModelBuilderUtils.h | 134 [](const uint32_t& dim) { return dim == 0; }); in subgraphOutputOperandHasDynamicShape()
|
/packages/modules/StatsD/tests/src/android/cts/statsd/validation/ |
D | ValidationTests.java | 306 for (DimensionsValue dim : dims) { in getStatsdWakelockData() 307 if (dim.hasValueInt()) { in getStatsdWakelockData() 308 uid = dim.getValueInt(); in getStatsdWakelockData() 309 } else if (dim.hasValueStrHash()) { in getStatsdWakelockData() 311 tag = dim.getValueStrHash(); in getStatsdWakelockData()
|
/packages/modules/NeuralNetworks/runtime/test/fuzzing/ |
D | RandomGraphGenerator.cpp | 106 for (auto& dim : out->dimensions) dim.setRange(1, kInvalidValue); in RandomOperation() local
|
/packages/modules/StatsD/statsd/tests/anomaly/ |
D | AnomalyTracker_test.cpp | 47 HashableDimensionKey dim; in getMockMetricDimensionKey() local 48 dim.addValue(FieldValue(Field(1, pos, 0), Value(value))); in getMockMetricDimensionKey() 49 return MetricDimensionKey(dim, DEFAULT_DIMENSION_KEY); in getMockMetricDimensionKey()
|
/packages/apps/Camera2/src/com/android/camera/widget/ |
D | FilmstripView.java | 765 Point dim = CameraUtil.resizeToFill( in measureViewItem() local 772 item.measure(MeasureSpec.makeMeasureSpec(dim.x, MeasureSpec.EXACTLY), in measureViewItem() 773 MeasureSpec.makeMeasureSpec(dim.y, MeasureSpec.EXACTLY)); in measureViewItem() 1502 Point dim = CameraUtil in updateInsertion() local 1509 final int offsetX = dim.x + mViewGapInPixel; in updateInsertion() 1741 Point dim = CameraUtil.resizeToFill( in update() local 1747 mCenterX = curr.getLeftPosition() + dim.x / 2; in update()
|
/packages/modules/StatsD/statsd/tests/condition/ |
D | SimpleConditionTracker_test.cpp | 108 HashableDimensionKey dim; in getWakeLockQueryKey() local 109 dim.addValue(FieldValue(field, value)); in getWakeLockQueryKey() 110 outputKeyMap[StringToId(conditionName)] = dim; in getWakeLockQueryKey()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | Utils.kt | 254 fun dimClockView(dim: Boolean, clockView: View) { in dimClockView() 258 if (dim) 0x40FFFFFF else -0x3f000001, in dimClockView()
|
/packages/modules/NeuralNetworks/shim_and_sl/ |
D | ShimDevice.cpp | 214 [](int32_t dim) { return dim == 0; }); in tensorHasUnspecifiedDimensions() argument
|