/frameworks/base/libs/hwui/tests/unit/ |
GradientCacheTests.cpp | 32 float positions[] = {1, 2, 3}; local 33 Texture* texture = cache.get(colors, positions, 3);
|
FontRendererTests.cpp | 40 std::vector<float> positions; local 43 TestUtils::layoutTextUnscaled(paint, "This is a test", &glyphs, &positions, &totalAdvance, 48 positions.data());
|
TextDropShadowCacheTests.cpp | 41 std::vector<float> positions; local 44 TestUtils::layoutTextUnscaled(paint, "This is a test", &glyphs, &positions, &totalAdvance, 48 ShadowTexture* texture = cache.get(&paint, glyphs.data(), glyphs.size(), 10, positions.data());
|
/external/skia/experimental/sksg/paint/ |
SkSGGradient.cpp | 22 std::vector<SkScalar> positions; local 24 positions.reserve(fColorStops.size()); 30 positions.push_back(position); 33 // TODO: detect even stop distributions, pass null for positions. 34 paint->setShader(this->onMakeShader(colors, positions)); 38 const std::vector<SkScalar>& positions) const { 39 SkASSERT(colors.size() == positions.size()); 42 return SkGradientShader::MakeLinear(pts, colors.data(), positions.data(), colors.size(), 47 const std::vector<SkScalar>& positions) const { 48 SkASSERT(colors.size() == positions.size()) [all...] |
/external/skqp/experimental/sksg/paint/ |
SkSGGradient.cpp | 22 std::vector<SkScalar> positions; local 24 positions.reserve(fColorStops.size()); 30 positions.push_back(position); 33 // TODO: detect even stop distributions, pass null for positions. 34 paint->setShader(this->onMakeShader(colors, positions)); 38 const std::vector<SkScalar>& positions) const { 39 SkASSERT(colors.size() == positions.size()); 42 return SkGradientShader::MakeLinear(pts, colors.data(), positions.data(), colors.size(), 47 const std::vector<SkScalar>& positions) const { 48 SkASSERT(colors.size() == positions.size()) [all...] |
/external/tensorflow/tensorflow/compiler/xla/service/ |
hlo_buffer.cc | 49 std::vector<HloPosition> positions; local 51 positions.insert(positions.end(), value->positions().begin(), 52 value->positions().end()); 54 // Remove duplicates and sort positions. 55 std::sort(positions.begin(), positions.end()); 56 positions.erase(std::unique(positions.begin(), positions.end()) [all...] |
/external/jline/src/src/main/java/jline/ |
MultiCompletor.java | 47 int[] positions = new int[completors.length]; local 53 positions[i] = completors[i].complete(buffer, pos, copies[i]); 58 for (int i = 0; i < positions.length; i++) { 59 maxposition = Math.max(maxposition, positions[i]); 65 if (positions[i] == maxposition) {
|
/external/icu/icu4c/source/test/letest/ |
letest.h | 47 float *positions; member in struct:TestResult
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
MediaPlayerTest.java | 27 int[] positions = {0, 1, 2, 1024}; local 29 for (int position : positions) {
|
/external/skia/bench/ |
HardStopGradientBench_ScaleNumColors.cpp | 51 * different colors. The positions are evenly spaced, 77 SkScalar positions[100]; variable 78 positions[0] = 0.0f; 79 positions[1] = 0.0f; 82 positions[i] = i / (fColorCount - 1.0f); 87 positions,
|
HardStopGradientBench_SpecialHardStops.cpp | 86 SkScalar* positions = fKind == Kind::k001 ? pos_001 : variable 94 positions,
|
/external/skqp/bench/ |
HardStopGradientBench_ScaleNumColors.cpp | 51 * different colors. The positions are evenly spaced, 77 SkScalar positions[100]; variable 78 positions[0] = 0.0f; 79 positions[1] = 0.0f; 82 positions[i] = i / (fColorCount - 1.0f); 87 positions,
|
HardStopGradientBench_SpecialHardStops.cpp | 86 SkScalar* positions = fKind == Kind::k001 ? pos_001 : variable 94 positions,
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
GradientStopsActivity.java | 46 float[] positions = new float[] { 0.3f, 0.6f }; local 48 colors, positions, Shader.TileMode.CLAMP); 56 positions = new float[] { 0.3f, 0.6f, 1.0f }; 58 colors, positions, Shader.TileMode.CLAMP); 66 positions = new float[] { 0.0f, 0.3f, 0.6f }; 68 colors, positions, Shader.TileMode.CLAMP);
|
/external/harfbuzz_ng/src/ |
sample.py | 69 positions = hb.buffer_get_glyph_positions (buf) variable 71 for info,pos in zip(infos, positions):
|
test.cc | 110 hb_glyph_position_t *positions = hb_buffer_get_glyph_positions (buffer, nullptr); local 115 hb_glyph_position_t *pos = &positions[i];
|
/external/pdfium/core/fpdfapi/render/ |
cpdf_textrenderer.cpp | 92 std::vector<float> positions; local 94 positions.resize(nChars - 1); 99 positions[i - 1] = cur_pos; 109 DrawNormalText(pDevice, codes, positions, pFont, font_size, &matrix,
|
/external/v8/src/compiler/ |
graph-visualizer.h | 32 AsJSON(const Graph& g, SourcePositionTable* p) : graph(g), positions(p) {} 34 const SourcePositionTable* positions; member in struct:v8::internal::compiler::AsJSON 54 const SourcePositionTable* positions = nullptr, 58 positions_(positions),
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/ |
AndroidDoubleClickStrategyTest.java | 63 Point positions = strategy.getWord(before, cursor); local 64 assertNotNull(positions); 65 assertTrue(positions.y >= positions.x); 66 String after = before.substring(0, positions.x) + '[' + 67 before.substring(positions.x, positions.y) + ']' + 68 before.substring(positions.y);
|
/dalvik/dexgen/src/com/android/dexgen/dex/code/ |
DalvCode.java | 54 * {@code null-ok;} source positions list; set in 57 private PositionList positions; field in class:DalvCode 95 this.positions = null; 109 positions = PositionList.make(insns, positionInfo); 200 * Gets the source positions list. 202 * @return {@code non-null;} the source positions list 206 return positions; 210 * Gets the source positions list. 212 * @return {@code non-null;} the source positions list
|
/dalvik/dx/src/com/android/dx/dex/code/ |
DalvCode.java | 53 * {@code null-ok;} source positions list; set in 56 private PositionList positions; field in class:DalvCode 94 this.positions = null; 108 positions = PositionList.make(insns, positionInfo); 199 * Gets the source positions list. 201 * @return {@code non-null;} the source positions list 205 return positions; 209 * Gets the source positions list. 211 * @return {@code non-null;} the source positions list
|
/external/guice/core/src/com/google/inject/spi/ |
ElementSource.java | 149 * it returns -1 for all module positions. 153 Integer[] positions = new Integer[size]; local 155 positions[0] = chunkSize - 1; 159 positions[cursor] = positions[cursor - 1] + chunkSize; 162 return ImmutableList.<Integer>copyOf(positions);
|
/external/harfbuzz_ng/test/api/ |
test-shape.c | 38 /* TODO Test positions too. And test non-native direction. Test commit 2e18c6dbdfb */ 93 hb_glyph_position_t *positions; local 117 positions = hb_buffer_get_glyph_positions (buffer, NULL); 130 g_assert_cmpint (output_x_advances[i], ==, positions[i].x_advance); 131 g_assert_cmpint (output_x_offsets [i], ==, positions[i].x_offset); 132 g_assert_cmpint (0, ==, positions[i].y_advance); 133 g_assert_cmpint (0, ==, positions[i].y_offset);
|
/external/icu/icu4c/source/test/perf/leperf/ |
leperf.cpp | 45 float *positions = NULL; local 51 positions = LE_NEW_ARRAY(float, glyphCount + 10); 58 delete positions;
|
/external/jacoco/org.jacoco.report/src/org/jacoco/report/internal/html/table/ |
SortIndex.java | 49 private int[] positions; field in class:SortIndex 75 if (positions == null || positions.length < items.size()) { 76 positions = new int[items.size()]; 80 positions[e.idx] = pos++; 93 return positions[idx];
|