Home
last modified time | relevance | path

Searched refs:positions (Results 1 – 25 of 88) sorted by relevance

1234

/aosp12/frameworks/layoutlib/bridge/src/android/graphics/
H A DGradient_Delegate.java56 if (positions == null) { in Gradient_Delegate()
58 positions = new float[colors.length]; in Gradient_Delegate()
59 positions[0] = 0.f; in Gradient_Delegate()
60 positions[colors.length - 1] = 1.f; in Gradient_Delegate()
62 positions[i] = spacing * i; in Gradient_Delegate()
65 assert colors.length == positions.length : in Gradient_Delegate()
67 positions[0] = Math.min(Math.max(0, positions[0]), 1); in Gradient_Delegate()
68 for (int i = 1; i < positions.length; i++) { in Gradient_Delegate()
69 positions[i] = Math.min(Math.max(positions[i-1], positions[i]), 1); in Gradient_Delegate()
74 mPositions = positions; in Gradient_Delegate()
[all …]
H A DRadialGradient_Delegate.java63 long[] colors, float[] positions, int tileMode, long colorSpaceHandle) { in nativeCreate() argument
65 colors, positions, Shader_Delegate.getTileMode(tileMode)); in nativeCreate()
87 long[] colors, float[] positions, TileMode tile) { in RadialGradient_Delegate() argument
88 super(nativeMatrix, colors, positions); in RadialGradient_Delegate()
99 int[] colors, float[] positions, TileMode mode) { in RadialGradientPaint() argument
100 super(colors, positions, mode); in RadialGradientPaint()
H A DSweepGradient_Delegate.java60 float[] positions, long colorSpaceHandle) { in nativeCreate() argument
62 positions); in nativeCreate()
84 long[] colors, float[] positions) { in SweepGradient_Delegate() argument
85 super(nativeMatrix, colors, positions); in SweepGradient_Delegate()
95 float[] positions) { in SweepGradientPaint() argument
96 super(colors, positions, null /*tileMode*/); in SweepGradientPaint()
H A DLinearGradient_Delegate.java63 float x0, float y0, float x1, float y1, long[] colors, float[] positions, in nativeCreate() argument
66 x1, y1, colors, positions, Shader_Delegate.getTileMode(tileMode)); in nativeCreate()
87 float y1, long[] colors, float[] positions, TileMode tile) { in LinearGradient_Delegate() argument
88 super(nativeMatrix, colors, positions); in LinearGradient_Delegate()
107 float[] positions, TileMode tile) { in LinearGradientPaint() argument
108 super(colors, positions, tile); in LinearGradientPaint()
/aosp12/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/
H A DSortingCursorWrapper.java198 int[] positions, in binarySort() argument
201 final int count = positions.length; in binarySort()
252 positions[left + 2] = positions[left + 1]; in binarySort()
256 positions[left + 1] = positions[left]; in binarySort()
261 System.arraycopy(positions, left, positions, left + 1, n); in binarySort()
266 positions[left] = pivotPosition; in binarySort()
279 int[] positions, in binarySort() argument
282 final int count = positions.length; in binarySort()
336 positions[left + 2] = positions[left + 1]; in binarySort()
341 positions[left + 1] = positions[left]; in binarySort()
[all …]
/aosp12/frameworks/base/graphics/java/android/graphics/
H A DSweepGradient.java63 @Nullable float[] positions) { in SweepGradient() argument
64 this(cx, cy, convertColors(colors), positions, ColorSpace.get(ColorSpace.Named.SRGB)); in SweepGradient()
85 @Nullable float[] positions) { in SweepGradient() argument
86 this(cx, cy, colors.clone(), positions, detectColorSpace(colors)); in SweepGradient()
94 @Nullable float[] positions, ColorSpace colorSpace) { in SweepGradient() argument
97 if (positions != null && colors.length != positions.length) { in SweepGradient()
104 mPositions = positions != null ? positions.clone() : null; in SweepGradient()
142 long[] colors, float[] positions, long colorSpaceHandle); in nativeCreate() argument
H A DLinearGradient.java70 @Nullable float[] positions, @NonNull TileMode tile) { in LinearGradient() argument
71 this(x0, y0, x1, y1, convertColors(colors), positions, tile, in LinearGradient()
93 @Nullable float[] positions, @NonNull TileMode tile) { in LinearGradient() argument
94 this(x0, y0, x1, y1, colors.clone(), positions, tile, detectColorSpace(colors)); in LinearGradient()
102 @NonNull @ColorLong long[] colors, @Nullable float[] positions, @NonNull TileMode tile, in LinearGradient() argument
106 if (positions != null && colors.length != positions.length) { in LinearGradient()
114 mPositions = positions != null ? positions.clone() : null; in LinearGradient()
164 long[] colors, float[] positions, int tileMode, long colorSpaceHandle); in nativeCreate() argument
/aosp12/frameworks/native/include/input/
H A DVelocityTracker.h152 const std::vector<VelocityTracker::Position>& positions) = 0;
184 const std::vector<VelocityTracker::Position>& positions) override;
199 VelocityTracker::Position positions[MAX_POINTERS]; member
202 return positions[idBits.getIndexOfBit(id)]; in getPosition()
227 const std::vector<VelocityTracker::Position>& positions) override;
261 const std::vector<VelocityTracker::Position>& positions) override;
277 VelocityTracker::Position positions[MAX_POINTERS]; member
280 return positions[idBits.getIndexOfBit(id)]; in getPosition()
296 const std::vector<VelocityTracker::Position>& positions) override;
311 VelocityTracker::Position positions[MAX_POINTERS]; member
[all …]
/aosp12/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DGradientStopsActivity.java46 float[] positions = new float[] { 0.3f, 0.6f }; in onDraw() local
48 colors, positions, Shader.TileMode.CLAMP); in onDraw()
56 positions = new float[] { 0.3f, 0.6f, 1.0f }; in onDraw()
58 colors, positions, Shader.TileMode.CLAMP); in onDraw()
66 positions = new float[] { 0.0f, 0.3f, 0.6f }; in onDraw()
68 colors, positions, Shader.TileMode.CLAMP); in onDraw()
/aosp12/hardware/qcom/display/msm8909w_3100/gpu_tonemapper/
H A Dfullscreen_vertex_shader.inl27 " vec2 positions[3]; \n"
28 " positions[0] = vec2(-1.0f, 3.0f); \n"
29 " positions[1] = vec2(-1.0f, -1.0f); \n"
30 " positions[2] = vec2(3.0f, -1.0f); \n"
35 " gl_Position = vec4(positions[gl_VertexID], -1.0f, 1.0f); \n"
/aosp12/hardware/qcom/display/msm8998/gpu_tonemapper/
H A Dfullscreen_vertex_shader.inl27 " vec2 positions[3]; \n"
28 " positions[0] = vec2(-1.0f, 3.0f); \n"
29 " positions[1] = vec2(-1.0f, -1.0f); \n"
30 " positions[2] = vec2(3.0f, -1.0f); \n"
35 " gl_Position = vec4(positions[gl_VertexID], -1.0f, 1.0f); \n"
/aosp12/hardware/qcom/display/msm8909/gpu_tonemapper/
H A Dfullscreen_vertex_shader.inl27 " vec2 positions[3]; \n"
28 " positions[0] = vec2(-1.0f, 3.0f); \n"
29 " positions[1] = vec2(-1.0f, -1.0f); \n"
30 " positions[2] = vec2(3.0f, -1.0f); \n"
35 " gl_Position = vec4(positions[gl_VertexID], -1.0f, 1.0f); \n"
/aosp12/hardware/qcom/sdm845/display/gpu_tonemapper/
H A Dfullscreen_vertex_shader.inl27 " vec2 positions[3]; \n"
28 " positions[0] = vec2(-1.0f, 3.0f); \n"
29 " positions[1] = vec2(-1.0f, -1.0f); \n"
30 " positions[2] = vec2(3.0f, -1.0f); \n"
35 " gl_Position = vec4(positions[gl_VertexID], -1.0f, 1.0f); \n"
/aosp12/hardware/qcom/sm7250/display/gpu_tonemapper/
H A Dfullscreen_vertex_shader.inl27 " vec2 positions[3]; \n"
28 " positions[0] = vec2(-1.0f, 3.0f); \n"
29 " positions[1] = vec2(-1.0f, -1.0f); \n"
30 " positions[2] = vec2(3.0f, -1.0f); \n"
35 " gl_Position = vec4(positions[gl_VertexID], -1.0f, 1.0f); \n"
/aosp12/hardware/qcom/sm8150/display/gpu_tonemapper/
H A Dfullscreen_vertex_shader.inl27 " vec2 positions[3]; \n"
28 " positions[0] = vec2(-1.0f, 3.0f); \n"
29 " positions[1] = vec2(-1.0f, -1.0f); \n"
30 " positions[2] = vec2(3.0f, -1.0f); \n"
35 " gl_Position = vec4(positions[gl_VertexID], -1.0f, 1.0f); \n"
/aosp12/frameworks/native/libs/input/
H A DVelocityTracker.cpp198 LOG_ALWAYS_FATAL_IF(idBits.count() != positions.size(), in addMovement()
200 idBits.count(), positions.size()); in addMovement()
222 mStrategy->addMovement(eventTime, idBits, positions); in addMovement()
235 id, positions[index].x, positions[index].y, in addMovement()
292 std::vector<Position> positions; in addMovement() local
293 positions.resize(pointerCount); in addMovement()
300 positions[index].x = event->getHistoricalX(i, h); in addMovement()
303 addMovement(eventTime, idBits, positions); in addMovement()
366 movement.positions[i] = positions[i]; in addMovement()
894 movement.positions[i] = positions[i]; in addMovement()
[all …]
/aosp12/packages/apps/Contacts/tests/src/com/android/contacts/group/
H A DGroupUtilTest.java40 int positions[] = new int[]{0, 1, 3, 5, 8, 9}; in testNeedTrimming() local
42 assertFalse(GroupUtil.needTrimming(count, positions, counts)); in testNeedTrimming()
44 positions = new int[]{0, 1, 7, 9, 16, 17, 19, 20}; in testNeedTrimming()
46 assertTrue(GroupUtil.needTrimming(count, positions, counts)); in testNeedTrimming()
/aosp12/art/test/dexdump/
H A Dall.txt117 positions :
147 positions :
195 positions :
243 positions :
267 positions :
294 positions :
315 positions :
343 positions :
370 positions :
403 positions :
[all …]
H A Dconst-method-handle.txt65 positions :
94 positions :
144 positions :
183 positions :
215 positions :
240 positions :
257 positions :
274 positions :
H A Dinvoke-custom.txt66 positions :
111 positions :
143 positions :
178 positions :
214 positions :
250 positions :
285 positions :
321 positions :
358 positions :
393 positions :
[all …]
/aosp12/frameworks/native/libs/input/tests/
H A DVelocityTracker_test.cpp89 std::vector<Position> positions; member
92 static BitSet32 getValidPointers(const std::vector<Position>& positions) { in getValidPointers() argument
94 for (size_t i = 0; i < positions.size(); i++) { in getValidPointers()
95 if (positions[i].isValid()) { in getValidPointers()
145 BitSet32 pointers = getValidPointers(entry.positions); in createMotionEventStream()
158 action = resolveAction(previousEntry.positions, entry.positions, nextEntry.positions); in createMotionEventStream()
169 EXPECT_TRUE(entry.positions[pointerId].isValid()) << in createMotionEventStream()
171 coords[pointerIndex].setAxisValue(AMOTION_EVENT_AXIS_X, entry.positions[pointerId].x); in createMotionEventStream()
172 coords[pointerIndex].setAxisValue(AMOTION_EVENT_AXIS_Y, entry.positions[pointerId].y); in createMotionEventStream()
/aosp12/frameworks/base/opengl/java/android/opengl/
H A DVisibility.java50 float[] positions, int positionsOffset, char[] indices, in visibilityTest() argument
120 public static native void computeBoundingSphere(float[] positions, in computeBoundingSphere() argument
/aosp12/frameworks/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/
H A Dnbody.rscript9 rs_allocation positions; // float4
23 rsSetElementAt_float4(positions, ctr_pos, 0);
57 int dimx = rsAllocationGetDimX(positions);
59 float4 mass = rsGetElementAt_float4(positions, i);
/aosp12/frameworks/base/libs/hwui/hwui/
H A DCanvas.cpp96 auto glyphFunc = [&](uint16_t* text, float* positions) { in operator ()() argument
99 positions[posIndex++] = x + layout.getX(i); in operator ()()
100 positions[posIndex++] = y + layout.getY(i); in operator ()()
141 void Canvas::drawGlyphs(const minikin::Font& font, const int* glyphIds, const float* positions, in drawGlyphs() argument
150 memcpy(outPositions, positions, sizeof(float) * 2 * glyphCount); in drawGlyphs()
/aosp12/packages/modules/StatsD/statsd/benchmark/
H A Dmetric_util.h90 const std::vector<Position>& positions);
94 const std::vector<Position>& positions);

1234