/external/rust/crates/memchr/src/tests/ |
D | mod.rs | 30 positions: statict.positions.to_vec(), in memchr_tests() 47 MemchrTestStatic { corpus: "a", needles: &[b'a'], positions: &[0] }, 48 MemchrTestStatic { corpus: "aa", needles: &[b'a'], positions: &[0, 1] }, 52 positions: &[0, 1, 2], 54 MemchrTestStatic { corpus: "", needles: &[b'a'], positions: &[] }, 55 MemchrTestStatic { corpus: "z", needles: &[b'a'], positions: &[] }, 56 MemchrTestStatic { corpus: "zz", needles: &[b'a'], positions: &[] }, 57 MemchrTestStatic { corpus: "zza", needles: &[b'a'], positions: &[2] }, 58 MemchrTestStatic { corpus: "zaza", needles: &[b'a'], positions: &[1, 3] }, 59 MemchrTestStatic { corpus: "zzza", needles: &[b'a'], positions: &[3] }, [all …]
|
/external/tensorflow/tensorflow/lite/kernels/ |
D | gather.cc | 43 const TfLiteTensor* positions; in Prepare() local 45 GetInputSafe(context, node, kInputPositions, &positions)); in Prepare() 50 switch (positions->type) { in Prepare() 57 TfLiteTypeGetName(positions->type)); in Prepare() 91 NumDimensions(input) + NumDimensions(positions) - 1; in Prepare() 97 for (int i = 0; i < positions->dims->size; ++i) { in Prepare() 98 output_shape->data[output_index++] = positions->dims->data[i]; in Prepare() 108 const TfLiteTensor* positions, TfLiteTensor* output) { in Gather() argument 112 GetTensorData<InputT>(input), GetTensorShape(positions), in Gather() 113 GetTensorData<PositionsT>(positions), in Gather() [all …]
|
/external/tensorflow/tensorflow/lite/micro/kernels/ |
D | gather.cc | 43 const TfLiteTensor* positions; in Prepare() local 45 GetInputSafe(context, node, kInputPositions, &positions)); in Prepare() 50 switch (positions->type) { in Prepare() 57 TfLiteTypeGetName(positions->type)); in Prepare() 91 NumDimensions(input) + NumDimensions(positions) - 1; in Prepare() 97 for (int i = 0; i < positions->dims->size; ++i) { in Prepare() 98 output_shape->data[output_index++] = positions->dims->data[i]; in Prepare() 108 const TfLiteTensor* positions, TfLiteTensor* output) { in Gather() argument 112 GetTensorData<InputT>(input), GetTensorShape(positions), in Gather() 113 GetTensorData<PositionsT>(positions), in Gather() [all …]
|
/external/angle/util/ |
D | geometry_utils.cpp | 32 result->positions.resize(vertexCount); in CreateSphereGeometry() 42 result->positions[vertexIdx] = direction * radius; in CreateSphereGeometry() 68 result->positions.resize(24); in GenerateCubeGeometry() 69 result->positions[0] = Vector3(-radius, -radius, -radius); in GenerateCubeGeometry() 70 result->positions[1] = Vector3(-radius, -radius, radius); in GenerateCubeGeometry() 71 result->positions[2] = Vector3(radius, -radius, radius); in GenerateCubeGeometry() 72 result->positions[3] = Vector3(radius, -radius, -radius); in GenerateCubeGeometry() 73 result->positions[4] = Vector3(-radius, radius, -radius); in GenerateCubeGeometry() 74 result->positions[5] = Vector3(-radius, radius, radius); in GenerateCubeGeometry() 75 result->positions[6] = Vector3(radius, radius, radius); in GenerateCubeGeometry() [all …]
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | hlo_buffer.cc | 46 std::vector<HloPosition> positions; in ComputePositions() local 48 positions.insert(positions.end(), value->positions().begin(), in ComputePositions() 49 value->positions().end()); in ComputePositions() 52 absl::c_sort(positions); in ComputePositions() 53 positions.erase(std::unique(positions.begin(), positions.end()), in ComputePositions() 54 positions.end()); in ComputePositions() 55 return positions; in ComputePositions()
|
/external/skia/modules/sksg/src/ |
D | SkSGGradient.cpp | 22 std::vector<SkScalar> positions; in onRevalidateShader() local 24 positions.reserve(fColorStops.size()); in onRevalidateShader() 30 positions.push_back(position); in onRevalidateShader() 34 return this->onMakeShader(colors, positions); in onRevalidateShader() 38 const std::vector<SkScalar >& positions) const { in onMakeShader() 39 SkASSERT(colors.size() == positions.size()); in onMakeShader() 42 return SkGradientShader::MakeLinear(pts, colors.data(), nullptr, positions.data(), in onMakeShader() 47 const std::vector<SkScalar >& positions) const { in onMakeShader() 48 SkASSERT(colors.size() == positions.size()); in onMakeShader() 52 colors.data(), nullptr, positions.data(), in onMakeShader() [all …]
|
/external/skqp/modules/sksg/src/ |
D | SkSGGradient.cpp | 22 std::vector<SkScalar> positions; in onApplyToPaint() local 24 positions.reserve(fColorStops.size()); in onApplyToPaint() 30 positions.push_back(position); in onApplyToPaint() 34 paint->setShader(this->onMakeShader(colors, positions)); in onApplyToPaint() 38 const std::vector<SkScalar>& positions) const { in onMakeShader() 39 SkASSERT(colors.size() == positions.size()); in onMakeShader() 42 return SkGradientShader::MakeLinear(pts, colors.data(), positions.data(), colors.size(), in onMakeShader() 47 const std::vector<SkScalar>& positions) const { in onMakeShader() 48 SkASSERT(colors.size() == positions.size()); in onMakeShader() 52 colors.data(), positions.data(), colors.size(), in onMakeShader() [all …]
|
/external/lottie/lottie/src/main/java/com/airbnb/lottie/model/content/ |
D | GradientColor.java | 8 private final float[] positions; field in GradientColor 11 public GradientColor(float[] positions, int[] colors) { in GradientColor() argument 12 this.positions = positions; in GradientColor() 17 return positions; in getPositions() 35 positions[i] = MiscUtils.lerp(gc1.positions[i], gc2.positions[i], progress); in lerp()
|
/external/skqp/src/gpu/gradients/ |
D | GrGradientShader.cpp | 40 const SkScalar* positions, int count, bool premul, const GrFPArgs& args) { in make_textured_colorizer() argument 53 gCache.getGradient(colors, positions, count, colorType, alphaType, &bitmap); in make_textured_colorizer() 70 const SkScalar* positions, int count, bool premul, const GrFPArgs& args) { in make_colorizer() argument 77 bool bottomHardStop = SkScalarNearlyEqual(positions[0], positions[1]); in make_colorizer() 79 bool topHardStop = SkScalarNearlyEqual(positions[count - 2], positions[count - 1]); in make_colorizer() 111 SkScalar dt = SkScalarAbs(positions[i] - positions[i + 1]); in make_colorizer() 125 positions[offset + 1]); in make_colorizer() 126 } else if (count == 4 && SkScalarNearlyEqual(positions[offset + 1], in make_colorizer() 127 positions[offset + 2])) { in make_colorizer() 131 positions[offset + 1]); in make_colorizer() [all …]
|
/external/harfbuzz_ng/test/shaping/data/aots/tests/ |
D | gsub_chaining3_simple.tests | 1 …ng3_simple_f1.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+0000,U+0014,U+… 2 …ng3_simple_f2.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+0000,U+0014,U+… 3 …ng3_simple_f2.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+0000,U+0014,U+… 4 …ng3_simple_f2.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+0000,U+0014,U+… 5 …ng3_simple_f2.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+0000,U+0014,U+… 6 …ng3_simple_f2.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+0000,U+0000,U+… 7 …ng3_simple_f2.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+0015,U+0016,U+… 8 …ng3_simple_f2.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+0016,U+0017,U+… 9 …ng3_simple_f2.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+0000,U+0014,U+… 10 …ng3_simple_f2.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+0000,U+0014,U+… [all …]
|
D | gsub_chaining1_simple.tests | 1 …ng1_simple_f1.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+0000,U+0014,U+… 2 …ng1_simple_f2.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+0000,U+0014,U+… 3 …ng1_simple_f2.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+0000,U+0014,U+… 4 …ng1_simple_f2.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+0000,U+0014,U+… 5 …ng1_simple_f2.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+0000,U+0014,U+… 6 …ng1_simple_f2.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+0000,U+0000,U+… 7 …ng1_simple_f2.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+0015,U+0016,U+… 8 …ng1_simple_f2.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+0016,U+0017,U+… 9 …ng1_simple_f2.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+0000,U+0014,U+… 10 …ng1_simple_f2.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+0000,U+0014,U+… [all …]
|
D | gsub_chaining2_simple.tests | 1 …ng2_simple_f1.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+0000,U+0014,U+… 2 …ng2_simple_f2.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+0000,U+0014,U+… 3 …ng2_simple_f2.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+0000,U+0014,U+… 4 …ng2_simple_f2.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+0000,U+0014,U+… 5 …ng2_simple_f2.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+0000,U+0014,U+… 6 …ng2_simple_f2.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+0000,U+0000,U+… 7 …ng2_simple_f2.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+0015,U+0016,U+… 8 …ng2_simple_f2.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+0016,U+0017,U+… 9 …ng2_simple_f2.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+0000,U+0014,U+… 10 …ng2_simple_f2.otf:--features="test" --no-clusters --no-glyph-names --no-positions:U+0000,U+0014,U+… [all …]
|
/external/skia/src/core/ |
D | SkGlyphRun.cpp | 25 SkSpan<const SkPoint> positions, in SkGlyphRun() argument 30 : fSource{SkMakeZip(glyphIDs, positions)} in SkGlyphRun() 63 for (auto [pos, glyph] : SkMakeZip(this->positions(), glyphs)) { in sourceBounds() 74 SkMakeZip(this->positions(), fScaledRotations, glyphs)) { in sourceBounds() 89 bounds.setBounds(this->positions().data(), SkCount(this->positions())); in sourceBounds() 99 for (auto [pos, scaleRotate] : SkMakeZip(this->positions(), fScaledRotations)) { in sourceBounds() 158 auto positions = run.positions(); in makeBlob() local 159 memcpy(buffer.points(), positions.data(), positions.size_bytes()); in makeBlob() 163 run.positions(), in makeBlob() 198 SkSpan<const SkPoint> positions = draw_text_positions(font, glyphIDs, {0, 0}, fPositions); in textToGlyphRunList() local [all …]
|
D | SkGlyphBuffer.cpp | 32 auto positions = source.get<1>(); in startSource() local 33 memcpy(fPositions, positions.data(), positions.size() * sizeof(SkPoint)); in startSource() 51 auto positions = source.get<1>(); in startBitmapDevice() local 56 matrix.mapPoints(fPositions, positions.data(), positions.size()); in startBitmapDevice() 84 auto positions = source.get<1>(); in startGPUDevice() local 85 device.mapPoints(fPositions, positions.data(), positions.size()); in startGPUDevice()
|
/external/skia/src/gpu/gradients/ |
D | GrGradientShader.cpp | 42 const SkScalar* positions, int count, bool premul, const GrFPArgs& args) { in make_textured_colorizer() argument 58 gCache.getGradient(colors, positions, count, colorType, alphaType, &bitmap); in make_textured_colorizer() 75 const SkScalar* positions, int count, bool premul, const GrFPArgs& args) { in make_colorizer() argument 82 bool bottomHardStop = SkScalarNearlyEqual(positions[0], positions[1]); in make_colorizer() 84 bool topHardStop = SkScalarNearlyEqual(positions[count - 2], positions[count - 1]); in make_colorizer() 116 SkScalar dt = SkScalarAbs(positions[i] - positions[i + 1]); in make_colorizer() 130 positions[offset + 1]); in make_colorizer() 131 } else if (count == 4 && SkScalarNearlyEqual(positions[offset + 1], in make_colorizer() 132 positions[offset + 2])) { in make_colorizer() 136 positions[offset + 1]); in make_colorizer() [all …]
|
/external/lottie/lottie/src/main/java/com/airbnb/lottie/parser/ |
D | GradientColorParser.java | 65 float[] positions = new float[colorPoints]; in parse() local 76 positions[colorIndex] = (float) value; in parse() 91 GradientColor gradientColor = new GradientColor(positions, colors); in parse() 112 double[] positions = new double[opacityStops]; in addOpacityStopsToGradientIfNeeded() local 117 positions[j] = array.get(i); in addOpacityStopsToGradientIfNeeded() 127 getOpacityAtPosition(gradientColor.getPositions()[i], positions, opacities), in addOpacityStopsToGradientIfNeeded() 137 private int getOpacityAtPosition(double position, double[] positions, double[] opacities) { in getOpacityAtPosition() argument 138 for (int i = 1; i < positions.length; i++) { in getOpacityAtPosition() 139 double lastPosition = positions[i - 1]; in getOpacityAtPosition() 140 double thisPosition = positions[i]; in getOpacityAtPosition() [all …]
|
/external/tensorflow/tensorflow/python/keras/utils/ |
D | layer_utils.py | 111 def print_summary(model, line_length=None, positions=None, print_fn=None): argument 165 positions = positions or [.45, .85, 1.] 166 if positions[-1] <= 1: 167 positions = [int(line_length * p) for p in positions] 172 positions = positions or [.33, .55, .67, 1.] 173 if positions[-1] <= 1: 174 positions = [int(line_length * p) for p in positions] 181 def print_row(fields, positions): argument 187 line = line[:positions[i]] 188 line += ' ' * (positions[i] - len(line)) [all …]
|
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp3/ |
D | VbriSeeker.java | 66 long[] positions = new long[entryCount]; in create() local 71 positions[index] = Math.max(position, minPosition); in create() 94 return new VbriSeeker(timesUs, positions, durationUs, /* dataEndPosition= */ position); in create() 98 private final long[] positions; field in VbriSeeker 102 private VbriSeeker(long[] timesUs, long[] positions, long durationUs, long dataEndPosition) { in VbriSeeker() argument 104 this.positions = positions; in VbriSeeker() 117 SeekPoint seekPoint = new SeekPoint(timesUs[tableIndex], positions[tableIndex]); in getSeekPoints() 121 SeekPoint nextSeekPoint = new SeekPoint(timesUs[tableIndex + 1], positions[tableIndex + 1]); in getSeekPoints() 128 return timesUs[Util.binarySearchFloor(positions, position, true, true)]; in getTimeUs()
|
D | IndexSeeker.java | 32 private final LongArray positions; field in IndexSeeker 40 positions = new LongArray(); in IndexSeeker() 42 positions.add(dataStartPosition); in IndexSeeker() 49 positions, position, /* inclusive= */ true, /* stayInBounds= */ true); in getTimeUs() 72 SeekPoint seekPoint = new SeekPoint(timesUs.get(targetIndex), positions.get(targetIndex)); in getSeekPoints() 77 new SeekPoint(timesUs.get(targetIndex + 1), positions.get(targetIndex + 1)); in getSeekPoints() 95 positions.add(position); in maybeAddSeekPoint()
|
/external/skqp/src/core/ |
D | SkGlyphRun.cpp | 23 SkSpan<const SkPoint> positions, in SkGlyphRun() argument 27 : fPositions{positions} in SkGlyphRun() 40 void SkGlyphRun::filloutGlyphsAndPositions(SkGlyphID* glyphIDs, SkPoint* positions) { in filloutGlyphsAndPositions() argument 42 memcpy(positions, fPositions.data(), fPositions.size_bytes()); in filloutGlyphsAndPositions() 185 SkPoint* positions = fPositions; in drawTextBlob() local 200 it.font(), glyphIDs, offset, positions, text, clusters); in drawTextBlob() 206 it.font(), glyphIDs, it.pos(), constY, positions, text, clusters); in drawTextBlob() 227 positions += runSize; in drawTextBlob() 278 SkSpan<const SkPoint> positions, in makeGlyphRun() argument 286 positions, in makeGlyphRun() [all …]
|
/external/jacoco/org.jacoco.report/src/org/jacoco/report/internal/html/table/ |
D | SortIndex.java | 49 private int[] positions; field in SortIndex 75 if (positions == null || positions.length < items.size()) { in init() 76 positions = new int[items.size()]; in init() 80 positions[e.idx] = pos++; in init() 93 return positions[idx]; in getPosition()
|
/external/icu/icu4c/source/test/letest/ |
D | cletest.c | 48 float *positions = NULL; in ParamTest() local 66 positions = NEW_ARRAY(float, glyphCount + 10); in ParamTest() 117 le_getGlyphPositions(engine, positions, &status); in ParamTest() 123 DELETE_ARRAY(positions); in ParamTest() 221 float positions[6 * 2 + 2]; in AccessTest() local 242 le_getGlyphPositions(engine, positions, &status); in AccessTest() 275 if (x != positions[glyph*2] || y != positions[glyph*2 + 1]) { in AccessTest() 277 glyph, x, y, positions[glyph*2], positions[glyph*2 + 1]); in AccessTest() 316 double xError = uprv_fabs(actual->positions[i * 2] - expected->positions[i * 2]); in compareResults() 317 double yError = uprv_fabs(actual->positions[i * 2 + 1] - expected->positions[i * 2 + 1]); in compareResults() [all …]
|
/external/replicaisland/src/com/replica/replicaisland/ |
D | Grid.java | 150 public void set(int quadX, int quadY, float[][] positions, float[][] uvs) { in set() argument 157 if (positions.length < 4) { in set() 167 setVertex(i, j, positions[0][0], positions[0][1], positions[0][2], uvs[0][0], uvs[0][1]); in set() 168 … setVertex(i + 1, j, positions[1][0], positions[1][1], positions[1][2], uvs[1][0], uvs[1][1]); in set() 169 … setVertex(i, j + 1, positions[2][0], positions[2][1], positions[2][2], uvs[2][0], uvs[2][1]); in set() 170 … setVertex(i + 1, j + 1, positions[3][0], positions[3][1], positions[3][2], uvs[3][0], uvs[3][1]); in set()
|
/external/deqp/modules/gles2/functional/ |
D | es2fRasterizationTests.cpp | 729 outTriangles[0].positions[0] = outData[0]; outTriangles[0].sharedEdge[0] = false; in generateTriangles() 730 outTriangles[0].positions[1] = outData[1]; outTriangles[0].sharedEdge[1] = false; in generateTriangles() 731 outTriangles[0].positions[2] = outData[2]; outTriangles[0].sharedEdge[2] = false; in generateTriangles() 733 outTriangles[1].positions[0] = outData[3]; outTriangles[1].sharedEdge[0] = false; in generateTriangles() 734 outTriangles[1].positions[1] = outData[4]; outTriangles[1].sharedEdge[1] = false; in generateTriangles() 735 outTriangles[1].positions[2] = outData[5]; outTriangles[1].sharedEdge[2] = false; in generateTriangles() 744 << "\n\t" << outTriangles[triangleNdx].positions[0] in generateTriangles() 745 << "\n\t" << outTriangles[triangleNdx].positions[1] in generateTriangles() 746 << "\n\t" << outTriangles[triangleNdx].positions[2] in generateTriangles() 797 outTriangles[0].positions[0] = outData[0]; outTriangles[0].sharedEdge[0] = false; in generateTriangles() [all …]
|
/external/skqp/tools/lua/ |
D | gradients.lua | 56 if not LuaDoubleNearlyEqual(g.positions[j], (j-1)/(g.colorCount-1)) then 64 if LuaDoubleNearlyEqual(g.positions[j], g.positions[j-1]) then 72 gradients[i].positions = {} 74 gradients[i].positions[j] = g.positions[j] 87 pos = pos .. v.positions[j]
|