/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 …]
|
D | letest.cpp | 63 float *positions = NULL; in ParamTest() local 73 positions = NEW_ARRAY(float, glyphCount + 10); in ParamTest() 138 engine->getGlyphPositions(positions, status); in ParamTest() 144 DELETE_ARRAY(positions); in ParamTest() 249 float positions[6 * 2 + 2]; in AccessTest() local 270 engine->getGlyphPositions(positions, status); in AccessTest() 317 if (x != positions[glyph*2] || y != positions[glyph*2 + 1]) { in AccessTest() 319 glyph, x, y, positions[glyph*2], positions[glyph*2 + 1]); in AccessTest() 358 double xError = uprv_fabs(actual->positions[i * 2] - expected->positions[i * 2]); in compareResults() 362 testID, i, expected->positions[i * 2], actual->positions[i * 2]); in compareResults() [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/deqp/modules/gles2/functional/ |
D | es2fRasterizationTests.cpp | 599 outTriangles[0].positions[0] = outData[0]; outTriangles[0].sharedEdge[0] = false; in generateTriangles() 600 outTriangles[0].positions[1] = outData[1]; outTriangles[0].sharedEdge[1] = false; in generateTriangles() 601 outTriangles[0].positions[2] = outData[2]; outTriangles[0].sharedEdge[2] = false; in generateTriangles() 603 outTriangles[1].positions[0] = outData[3]; outTriangles[1].sharedEdge[0] = false; in generateTriangles() 604 outTriangles[1].positions[1] = outData[4]; outTriangles[1].sharedEdge[1] = false; in generateTriangles() 605 outTriangles[1].positions[2] = outData[5]; outTriangles[1].sharedEdge[2] = false; in generateTriangles() 614 << "\n\t" << outTriangles[triangleNdx].positions[0] in generateTriangles() 615 << "\n\t" << outTriangles[triangleNdx].positions[1] in generateTriangles() 616 << "\n\t" << outTriangles[triangleNdx].positions[2] in generateTriangles() 667 outTriangles[0].positions[0] = outData[0]; outTriangles[0].sharedEdge[0] = false; in generateTriangles() [all …]
|
D | es2fBufferTestUtil.cpp | 315 static void computePositions (vector<tcu::Vec2>& positions, int gridSizeX, int gridSizeY) in computePositions() argument 317 positions.resize(gridSizeX*gridSizeY*4); in computePositions() 332 positions[baseNdx+0] = tcu::Vec2(fx0, fy0); in computePositions() 333 positions[baseNdx+1] = tcu::Vec2(fx0, fy1); in computePositions() 334 positions[baseNdx+2] = tcu::Vec2(fx1, fy0); in computePositions() 335 positions[baseNdx+3] = tcu::Vec2(fx1, fy1); in computePositions() 420 vector<tcu::Vec2> positions; in verify() local 428 computePositions(positions, maxQuadsX, maxQuadsY); in verify() 440 glVertexAttribPointer (m_posLoc, 2, GL_FLOAT, GL_FALSE, 0, &positions[0]); in verify() 576 std::vector<tcu::Vec2> positions; in verify() local [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/skia/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]
|
/external/skia/src/gpu/ops/ |
D | GrDrawVerticesOp.cpp | 15 const SkPoint* positions, int vertexCount, const uint16_t* indices, int indexCount, in Make() argument 19 SkASSERT(positions); in Make() 25 sk_sp<SkVertices> vertices = SkVertices::MakeCopy(kIgnoredMode, vertexCount, positions, in Make() 183 const SkPoint* positions = mesh.fVertices->positions(); in onPrepareDraws() local 201 Sk2f p = Sk2f::Load(positions++) + t; in onPrepareDraws() 213 mesh.fViewMatrix.mapPoints(((SkPoint*)verts), &positions[j], 1); in onPrepareDraws() 215 *((SkPoint*)verts) = positions[j]; in onPrepareDraws() 228 *(SkPoint*)((intptr_t)verts + localCoordOffset) = positions[j]; in onPrepareDraws() 339 SkRandom* random, SkTArray<SkPoint>* positions, in randomize_params() argument 344 positions->push_back(random_point(random, min, max)); in randomize_params() [all …]
|
/external/jline/src/src/main/java/jline/ |
D | MultiCompletor.java | 47 int[] positions = new int[completors.length]; in complete() local 53 positions[i] = completors[i].complete(buffer, pos, copies[i]); in complete() 58 for (int i = 0; i < positions.length; i++) { in complete() 59 maxposition = Math.max(maxposition, positions[i]); in complete() 65 if (positions[i] == maxposition) { in complete()
|
/external/deqp/framework/common/ |
D | tcuRasterizationVerifier.cpp | 143 …tcu::Vec2(triangle.positions[0].x() / triangle.positions[0].w(), triangle.positions[0].y() / trian… in pixelOnlyOnASharedEdge() 144 …tcu::Vec2(triangle.positions[1].x() / triangle.positions[1].w(), triangle.positions[1].y() / trian… in pixelOnlyOnASharedEdge() 145 …tcu::Vec2(triangle.positions[2].x() / triangle.positions[2].w(), triangle.positions[2].y() / trian… in pixelOnlyOnASharedEdge() 184 …tcu::Vec2(triangle.positions[0].x() / triangle.positions[0].w(), triangle.positions[0].y() / trian… in getTriangleAABB() 185 …tcu::Vec2(triangle.positions[1].x() / triangle.positions[1].w(), triangle.positions[1].y() / trian… in getTriangleAABB() 186 …tcu::Vec2(triangle.positions[2].x() / triangle.positions[2].w(), triangle.positions[2].y() / trian… in getTriangleAABB() 583 …ene.triangles[primitiveNdx].positions[0], scene.triangles[primitiveNdx].positions[1], scene.triang… in interpolate() 584 …ene.triangles[primitiveNdx].positions[0], scene.triangles[primitiveNdx].positions[1], scene.triang… in interpolate() 585 …ene.triangles[primitiveNdx].positions[0], scene.triangles[primitiveNdx].positions[1], scene.triang… in interpolate() 586 …ene.triangles[primitiveNdx].positions[0], scene.triangles[primitiveNdx].positions[1], scene.triang… in interpolate() [all …]
|
/external/deqp/modules/gles3/functional/ |
D | es3fRasterizationTests.cpp | 876 outTriangles[0].positions[0] = outData[0]; outTriangles[0].sharedEdge[0] = false; in generateTriangles() 877 outTriangles[0].positions[1] = outData[1]; outTriangles[0].sharedEdge[1] = false; in generateTriangles() 878 outTriangles[0].positions[2] = outData[2]; outTriangles[0].sharedEdge[2] = false; in generateTriangles() 880 outTriangles[1].positions[0] = outData[3]; outTriangles[1].sharedEdge[0] = false; in generateTriangles() 881 outTriangles[1].positions[1] = outData[4]; outTriangles[1].sharedEdge[1] = false; in generateTriangles() 882 outTriangles[1].positions[2] = outData[5]; outTriangles[1].sharedEdge[2] = false; in generateTriangles() 891 << "\n\t" << outTriangles[triangleNdx].positions[0] in generateTriangles() 892 << "\n\t" << outTriangles[triangleNdx].positions[1] in generateTriangles() 893 << "\n\t" << outTriangles[triangleNdx].positions[2] in generateTriangles() 944 outTriangles[0].positions[0] = outData[0]; outTriangles[0].sharedEdge[0] = false; in generateTriangles() [all …]
|
D | es3fPixelBufferObjectTests.cpp | 281 float positions[3*3]; in renderTriangle() local 283 positions[0] = a.x(); in renderTriangle() 284 positions[1] = a.y(); in renderTriangle() 285 positions[2] = a.z(); in renderTriangle() 287 positions[3] = b.x(); in renderTriangle() 288 positions[4] = b.y(); in renderTriangle() 289 positions[5] = b.z(); in renderTriangle() 291 positions[6] = c.x(); in renderTriangle() 292 positions[7] = c.y(); in renderTriangle() 293 positions[8] = c.z(); in renderTriangle() [all …]
|
/external/skia/bench/ |
D | HardStopGradientBench_ScaleNumHardStops.cpp | 60 SkAutoTArray<SkScalar> positions(fColorCount); in onPreDraw() local 64 positions[k++] = val / fColorCount; in onPreDraw() 65 positions[k++] = val / fColorCount; in onPreDraw() 68 positions[i] = i / (fColorCount - 1.0f); in onPreDraw() 73 positions.get(), in onPreDraw()
|
D | GLInstancedArraysBench.cpp | 183 SkPoint positions[kVerticesPerTri]; in setupInstanceVbo() local 184 positions[0].set(-1.0f, -1.0f); in setupInstanceVbo() 185 positions[1].set( 1.0f, -1.0f); in setupInstanceVbo() 186 positions[2].set( 1.0f, 1.0f); in setupInstanceVbo() 187 viewMatrices[0].mapPointsWithStride(positions, sizeof(SkPoint), kVerticesPerTri); in setupInstanceVbo() 203 GR_GL_CALL(gl, BufferData(GR_GL_ARRAY_BUFFER, sizeof(positions), positions, GR_GL_STATIC_DRAW)); in setupInstanceVbo() 224 SkPoint positions[kVerticesPerTri * kNumTri]; in setupDoubleVbo() local 227 SkPoint* position = &positions[i * kVerticesPerTri]; in setupDoubleVbo() 248 GR_GL_CALL(gl, BufferData(GR_GL_ARRAY_BUFFER, sizeof(positions), positions, GR_GL_STATIC_DRAW)); in setupDoubleVbo()
|
D | HardStopGradientBench_ScaleNumColors.cpp | 77 SkScalar positions[100]; in onPreDraw() local 78 positions[0] = 0.0f; in onPreDraw() 79 positions[1] = 0.0f; in onPreDraw() 82 positions[i] = i / (fColorCount - 1.0f); in onPreDraw() 87 positions, in onPreDraw()
|
/external/guice/core/src/com/google/inject/spi/ |
D | ElementSource.java | 153 Integer[] positions = new Integer[size]; in getModuleConfigurePositionsInStackTrace() local 155 positions[0] = chunkSize - 1; in getModuleConfigurePositionsInStackTrace() 159 positions[cursor] = positions[cursor - 1] + chunkSize; in getModuleConfigurePositionsInStackTrace() 162 return ImmutableList.<Integer>copyOf(positions); in getModuleConfigurePositionsInStackTrace()
|
/external/skia/src/gpu/text/ |
D | GrAtlasTextBlob.cpp | 72 const SkRect& positions, in appendGlyph() argument 78 if (positions.isEmpty()) { in appendGlyph() 105 subRun->joinGlyphBounds(positions); in appendGlyph() 113 position->set(positions.fLeft, positions.fTop); in appendGlyph() 120 position->set(positions.fLeft, positions.fBottom); in appendGlyph() 127 position->set(positions.fRight, positions.fBottom); in appendGlyph() 134 position->set(positions.fRight, positions.fTop); in appendGlyph() 140 position->set(positions.fLeft, positions.fTop); in appendGlyph() 145 position->set(positions.fLeft, positions.fBottom); in appendGlyph() 150 position->set(positions.fRight, positions.fBottom); in appendGlyph() [all …]
|
/external/deqp/external/vulkancts/modules/vulkan/rasterization/ |
D | vktRasterizationTests.cpp | 1447 outTriangles[0].positions[0] = outData[0]; outTriangles[0].sharedEdge[0] = false; in generateTriangles() 1448 outTriangles[0].positions[1] = outData[1]; outTriangles[0].sharedEdge[1] = false; in generateTriangles() 1449 outTriangles[0].positions[2] = outData[2]; outTriangles[0].sharedEdge[2] = false; in generateTriangles() 1451 outTriangles[1].positions[0] = outData[3]; outTriangles[1].sharedEdge[0] = false; in generateTriangles() 1452 outTriangles[1].positions[1] = outData[4]; outTriangles[1].sharedEdge[1] = false; in generateTriangles() 1453 outTriangles[1].positions[2] = outData[5]; outTriangles[1].sharedEdge[2] = false; in generateTriangles() 1462 << "\n\t" << outTriangles[triangleNdx].positions[0] in generateTriangles() 1463 << "\n\t" << outTriangles[triangleNdx].positions[1] in generateTriangles() 1464 << "\n\t" << outTriangles[triangleNdx].positions[2] in generateTriangles() 1512 outTriangles[0].positions[0] = outData[0]; outTriangles[0].sharedEdge[0] = false; in generateTriangles() [all …]
|
/external/skia/include/core/ |
D | SkVertices.h | 28 const SkPoint positions[], 35 const SkPoint positions[], in MakeCopy() argument 38 return MakeCopy(mode, vertexCount, positions, texs, colors, 0, nullptr); in MakeCopy() 56 SkPoint* positions(); 84 const SkPoint* positions() const { return fPositions; } in positions() function
|
/external/harfbuzz_ng/test/api/ |
D | test-shape.c | 93 hb_glyph_position_t *positions; in test_shape() local 117 positions = hb_buffer_get_glyph_positions (buffer, NULL); in test_shape() 130 g_assert_cmpint (output_x_advances[i], ==, positions[i].x_advance); in test_shape() 131 g_assert_cmpint (output_x_offsets [i], ==, positions[i].x_offset); in test_shape() 132 g_assert_cmpint (0, ==, positions[i].y_advance); in test_shape() 133 g_assert_cmpint (0, ==, positions[i].y_offset); in test_shape()
|
/external/libchrome/base/strings/ |
D | string_util.cc | 282 TrimPositions positions, in TrimStringT() argument 290 const size_t first_good_char = (positions & TRIM_LEADING) ? in TrimStringT() 292 const size_t last_good_char = (positions & TRIM_TRAILING) ? in TrimStringT() 302 return input_was_empty ? TRIM_NONE : positions; in TrimStringT() 330 TrimPositions positions) { in TrimStringPieceT() argument 331 size_t begin = (positions & TRIM_LEADING) ? in TrimStringPieceT() 333 size_t end = (positions & TRIM_TRAILING) ? in TrimStringPieceT() 340 TrimPositions positions) { in TrimString() argument 341 return TrimStringPieceT(input, trim_chars, positions); in TrimString() 346 TrimPositions positions) { in TrimString() argument [all …]
|
/external/v8/src/compiler/ |
D | graph-visualizer.h | 32 AsJSON(const Graph& g, SourcePositionTable* p) : graph(g), positions(p) {} in AsJSON() 34 const SourcePositionTable* positions; member 54 const SourcePositionTable* positions = nullptr, 58 positions_(positions), in schedule_()
|
/external/icu/icu4c/source/layoutex/ |
D | ParagraphLayout.cpp | 399 fStyleRunInfo[run].positions = NULL; in ParagraphLayout() 457 fStyleRunInfo[run].positions = LE_NEW_ARRAY(float, glyphCount * 2 + 2); in ParagraphLayout() 459 (fStyleRunInfo[run].positions == NULL)) { in ParagraphLayout() 470 engine->getGlyphPositions(fStyleRunInfo[run].positions, layoutStatus); in ParagraphLayout() 483 …phWidths[glyphBase + glyph] = fStyleRunInfo[run].positions[glyph * 2 + 2] - fStyleRunInfo[run].pos… in ParagraphLayout() 596 LE_DELETE_ARRAY(fStyleRunInfo[run].positions); in ~ParagraphLayout() 599 fStyleRunInfo[run].positions = NULL; in ~ParagraphLayout() 1095 fVisualRunLastX -= fStyleRunInfo[run].positions[leftGlyph * 2]; in appendRun() 1104 float *positions = LE_NEW_ARRAY(float, glyphCount * 2 + 2); in appendRun() local 1110 positions[outGlyph] = fStyleRunInfo[run].positions[inGlyph] + fVisualRunLastX; in appendRun() [all …]
|
/external/icu/icu4c/source/samples/layout/ |
D | GnomeFontInstance.cpp | 48 … const float *positions, le_int32 x, le_int32 y, le_int32 /*width*/, le_int32 /*height*/) in drawGlyphs() argument 52 gFont->rasterizeGlyphs(fCairo, glyphs, count, positions, x, y); in drawGlyphs() 184 …sterizeGlyphs(cairo_t *cairo, const LEGlyphID *glyphs, le_int32 glyphCount, const float *positions, in rasterizeGlyphs() argument 195 glyph_t[out].x = x + positions[in*2]; in rasterizeGlyphs() 196 glyph_t[out].y = y + positions[in*2 + 1]; in rasterizeGlyphs()
|
/external/vulkan-validation-layers/demos/smoke/ |
D | Meshes.cpp | 362 void get_transform(const float *positions, int position_count, in get_transform() argument 366 positions[0], in get_transform() 367 positions[1], in get_transform() 368 positions[2], in get_transform() 371 positions[0], in get_transform() 372 positions[1], in get_transform() 373 positions[2], in get_transform() 377 if (min[j] > positions[i + j]) in get_transform() 378 min[j] = positions[i + j]; in get_transform() 379 if (max[j] < positions[i + j]) in get_transform() [all …]
|