/external/tensorflow/tensorflow/compiler/xla/service/ |
H A D | 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 [all...] |
/external/skia/experimental/sksg/paint/ |
H A D | 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 [all...] |
/external/skqp/experimental/sksg/paint/ |
H A D | 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 [all...] |
/external/icu/icu4c/source/samples/layout/ |
H A D | rsurface.cpp | 20 const float *positions, le_int32 x, le_int32 y, le_int32 width, le_int32 height) 24 rs->drawGlyphs((const LEFontInstance *) font, glyphs, count, positions, x, y, width, height); 19 rs_drawGlyphs(rs_surface *surface, const le_font *font, const LEGlyphID *glyphs, le_int32 count, const float *positions, le_int32 x, le_int32 y, le_int32 width, le_int32 height) argument
|
H A D | RenderingSurface.h | 33 const float *positions, le_int32 x, le_int32 y, le_int32 width, le_int32 height) = 0;
|
H A D | rsurface.h | 20 const float *positions, le_int32 x, le_int32 y, le_int32 width, le_int32 height);
|
/external/jacoco/org.jacoco.report/src/org/jacoco/report/internal/html/table/ |
H A D | 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];
|
/external/jline/src/src/main/java/jline/ |
H A D | MultiCompletor.java | 47 int[] positions = new int[completors.length]; 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/tensorflow/tensorflow/python/keras/_impl/keras/utils/ |
H A D | layer_utils.py | 41 def print_summary(model, line_length=None, positions=None, print_fn=None): 49 positions: Relative or absolute positions of log elements in each line. 94 positions = positions or [.45, .85, 1.] 95 if positions[-1] <= 1: 96 positions = [int(line_length * p) for p in positions] 101 positions = positions o [all...] |
/external/tensorflow/tensorflow/contrib/lite/kernels/ |
H A D | gather.cc | 39 TfLiteTensor* positions = GetInput(context, node, kInputPositions); local 41 // Only INT32 positions are supported. 42 TF_LITE_ENSURE_EQ(context, positions->type, kTfLiteInt32); 45 // TODO(mgubin): only 0D or 1D positions are currently supported. 46 TF_LITE_ENSURE(context, NumDimensions(positions) <= 1); 67 NumDimensions(input) + NumDimensions(positions) - 1; 74 for (int i = 0; i < positions->dims->size; ++i) { 75 output_shape->data[output_index++] = positions->dims->data[i]; 85 TfLiteTensor* positions = GetInput(context, node, kInputPositions); local 91 GetTensorData<index_type>(positions), GetTensorDim [all...] |
/external/guice/core/src/com/google/inject/spi/ |
H A D | ElementSource.java | 149 * it returns -1 for all module positions. 153 Integer[] positions = new Integer[size]; 155 positions[0] = chunkSize - 1; 159 positions[cursor] = positions[cursor - 1] + chunkSize; 162 return ImmutableList.<Integer>copyOf(positions);
|
/external/skia/bench/ |
H A D | HardStopGradientBench_ScaleNumHardStops.cpp | 59 // space positions after that 60 SkAutoTArray<SkScalar> positions(fColorCount); 64 positions[k++] = val / fColorCount; 65 positions[k++] = val / fColorCount; 68 positions[i] = i / (fColorCount - 1.0f); 73 positions.get(),
|
H A D | 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,
|
/external/skqp/bench/ |
H A D | HardStopGradientBench_ScaleNumHardStops.cpp | 59 // space positions after that 60 SkAutoTArray<SkScalar> positions(fColorCount); 64 positions[k++] = val / fColorCount; 65 positions[k++] = val / fColorCount; 68 positions[i] = i / (fColorCount - 1.0f); 73 positions.get(),
|
H A D | 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,
|
/external/skia/tools/lua/ |
H A 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/skqp/tools/lua/ |
H A 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/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
H A D | MediaPlayerTest.java | 27 int[] positions = {0, 1, 2, 1024}; 29 for (int position : positions) {
|
/external/v8/src/compiler/ |
H A D | 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),
|
/external/skia/include/core/ |
H A D | SkVertices.h | 35 const SkPoint positions[], 42 const SkPoint positions[], 45 return MakeCopy(mode, vertexCount, positions, texs, colors, 0, nullptr); 63 SkPoint* positions(); 91 const SkPoint* positions() const { return fPositions; } function in class:SkVertices 41 MakeCopy(VertexMode mode, int vertexCount, const SkPoint positions[], const SkPoint texs[], const SkColor colors[]) argument
|
/external/skqp/include/core/ |
H A D | SkVertices.h | 35 const SkPoint positions[], 42 const SkPoint positions[], 45 return MakeCopy(mode, vertexCount, positions, texs, colors, 0, nullptr); 63 SkPoint* positions(); 91 const SkPoint* positions() const { return fPositions; } function in class:SkVertices 41 MakeCopy(VertexMode mode, int vertexCount, const SkPoint positions[], const SkPoint texs[], const SkColor colors[]) argument
|
/external/skqp/gm/ |
H A D | atlastext.cpp | 36 // Using a paint to get the positions for each glyph. 44 std::unique_ptr<SkPoint[]> positions(new SkPoint[cnt]); 45 positions[0] = {x, y}; 47 positions[i] = {positions[i - 1].fX + widths[i - 1], y}; 50 target->drawText(glyphs.get(), positions.get(), cnt, color, *font); 53 return positions[cnt - 1].fX + widths[cnt - 1] - positions[0].fX;
|
/external/replicaisland/src/com/replica/replicaisland/ |
H A D | Grid.java | 150 public void set(int quadX, int quadY, float[][] positions, float[][] uvs) { argument 157 if (positions.length < 4) { 158 throw new IllegalArgumentException("positions"); 167 setVertex(i, j, positions[0][0], positions[0][1], positions[0][2], uvs[0][0], uvs[0][1]); 168 setVertex(i + 1, j, positions[1][0], positions[1][1], positions[1][2], uvs[1][0], uvs[1][1]); 169 setVertex(i, j + 1, positions[ [all...] |
/external/harfbuzz_ng/test/api/ |
H A D | 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/letest/ |
H A D | letest.h | 47 float *positions; member in struct:TestResult
|