/frameworks/layoutlib/bridge/src/android/graphics/ |
D | Gradient_Delegate.java | 52 protected Gradient_Delegate(long nativeMatrix, long[] colors, float[] positions) { in Gradient_Delegate() argument 56 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() [all …]
|
D | SweepGradient_Delegate.java | 60 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()
|
D | RadialGradient_Delegate.java | 63 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()
|
D | LinearGradient_Delegate.java | 63 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()
|
/frameworks/base/graphics/java/android/graphics/ |
D | SweepGradient.java | 63 @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
|
D | LinearGradient.java | 70 @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
|
D | BaseRecordingCanvas.java | 421 @NonNull float[] positions, in drawGlyphs() argument 427 Objects.requireNonNull(positions, "positions must not be null."); in drawGlyphs() 436 if (positionOffset < 0 || positionOffset + glyphCount * 2 > positions.length) { in drawGlyphs() 441 nDrawGlyphs(mNativeCanvasWrapper, glyphIds, positions, glyphIdOffset, positionOffset, in drawGlyphs() 719 private static native void nDrawGlyphs(long nativeCanvas, int[] glyphIds, float[] positions, in nDrawGlyphs() argument
|
D | BaseCanvas.java | 482 @NonNull float[] positions, in drawGlyphs() argument 488 Objects.requireNonNull(positions, "positions must not be null."); in drawGlyphs() 497 if (positionOffset < 0 || positionOffset + glyphCount * 2 > positions.length) { in drawGlyphs() 502 nDrawGlyphs(mNativeCanvasWrapper, glyphIds, positions, glyphIdOffset, positionOffset, in drawGlyphs() 804 private static native void nDrawGlyphs(long nativeCanvas, int[] glyphIds, float[] positions, in nDrawGlyphs() argument
|
D | RadialGradient.java | 221 float[] positions, int tileMode, long colorSpaceHandle); in nativeCreate() argument
|
/frameworks/native/include/input/ |
D | VelocityTracker.h | 99 void addMovement(nsecs_t eventTime, BitSet32 idBits, const std::vector<Position>& positions); 152 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; [all …]
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | GradientStopsActivity.java | 46 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()
|
/frameworks/native/libs/input/ |
D | VelocityTracker.cpp | 197 const std::vector<VelocityTracker::Position>& positions) { in addMovement() argument 198 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() 301 positions[index].y = event->getHistoricalY(i, h); in addMovement() 303 addMovement(eventTime, idBits, positions); in addMovement() [all …]
|
/frameworks/base/opengl/java/android/opengl/ |
D | Visibility.java | 50 float[] positions, int positionsOffset, char[] indices, in visibilityTest() argument 120 public static native void computeBoundingSphere(float[] positions, in computeBoundingSphere() argument
|
/frameworks/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/ |
D | nbody.rscript | 9 rs_allocation positions; // float4 23 rsSetElementAt_float4(positions, ctr_pos, 0); 57 int dimx = rsAllocationGetDimX(positions); 59 float4 mass = rsGetElementAt_float4(positions, i);
|
/frameworks/native/libs/input/tests/ |
D | VelocityTracker_test.cpp | 88 std::vector<Position> positions; member 91 static BitSet32 getValidPointers(const std::vector<Position>& positions) { in getValidPointers() argument 93 for (size_t i = 0; i < positions.size(); i++) { in getValidPointers() 94 if (positions[i].isValid()) { in getValidPointers() 144 BitSet32 pointers = getValidPointers(entry.positions); in createMotionEventStream() 157 action = resolveAction(previousEntry.positions, entry.positions, nextEntry.positions); in createMotionEventStream() 168 EXPECT_TRUE(entry.positions[pointerId].isValid()) << in createMotionEventStream() 170 coords[pointerIndex].setAxisValue(AMOTION_EVENT_AXIS_X, entry.positions[pointerId].x); in createMotionEventStream() 171 coords[pointerIndex].setAxisValue(AMOTION_EVENT_AXIS_Y, entry.positions[pointerId].y); in createMotionEventStream()
|
/frameworks/base/libs/hwui/hwui/ |
D | Canvas.cpp | 96 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()
|
D | Canvas.h | 58 typedef std::function<void(uint16_t* text, float* positions)> ReadGlyphFunc; 243 void drawGlyphs(const minikin::Font& font, const int* glyphIds, const float* positions,
|
/frameworks/base/core/jni/android/opengl/ |
D | util.cpp | 314 FloatArrayHelper positions(env, positions_ref, positionsOffset, 0); in util_computeBoundingSphere() local 317 bool checkOK = positions.check() && sphere.check(); in util_computeBoundingSphere() 322 positions.bind(); in util_computeBoundingSphere() 330 const float* pSrc = positions.mData; in util_computeBoundingSphere() 521 FloatArrayHelper positions(env, positions_ref, positionsOffset, 0); in util_visibilityTest() local 524 bool checkOK = ws.check() && positions.check() && indices.check(); in util_visibilityTest() 536 positions.bind(); in util_visibilityTest() 540 positions.mData, positions.mLength, in util_visibilityTest()
|
/frameworks/native/libs/vr/libdvr/include/dvr/ |
D | dvr_tracking_types.h | 57 float (*positions)[2]; member
|
/frameworks/minikin/libs/minikin/ |
D | LayoutCore.cpp | 474 hb_glyph_position_t* positions = hb_buffer_get_glyph_positions(buffer.get(), NULL); in LayoutPiece() local 497 float xoff = HBFixedToFloat(positions[i].x_offset); in LayoutPiece() 498 float yoff = -HBFixedToFloat(positions[i].y_offset); in LayoutPiece() 503 float xAdvance = HBFixedToFloat(positions[i].x_advance); in LayoutPiece()
|
/frameworks/base/data/keyboards/ |
D | Vendor_046d_Product_c299.kl | 31 # Gear shift positions
|
D | Vendor_046d_Product_c294.kl | 31 # Gear shift positions
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | ListScenario.java | 181 public Params setPositionsUnselectable(int ...positions) { in setPositionsUnselectable() argument 182 for (int pos : positions) { in setPositionsUnselectable()
|
/frameworks/base/packages/BackupEncryption/proto/ |
D | backup_chunks_metadata.proto | 45 // The chunk ordering does not contain any start positions, and instead each encrypted chunk in 93 // Ordered start positions of chunks. i.e., the file is the chunk starting at this position,
|
/frameworks/base/packages/SystemUI/docs/ |
D | physics-animation-testing.md | 4 …cted - animations might just look a bit off until the UI elements settle to their proper positions.
|