/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 | 62 @Nullable float[] positions) { in SweepGradient() argument 63 this(cx, cy, convertColors(colors), positions, ColorSpace.get(ColorSpace.Named.SRGB)); in SweepGradient() 84 @Nullable float[] positions) { in SweepGradient() argument 85 this(cx, cy, colors.clone(), positions, detectColorSpace(colors)); in SweepGradient() 93 @Nullable float[] positions, ColorSpace colorSpace) { in SweepGradient() argument 96 if (positions != null && colors.length != positions.length) { in SweepGradient() 103 mPositions = positions != null ? positions.clone() : null; in SweepGradient() 140 long[] colors, float[] positions, long colorSpaceHandle); in nativeCreate() argument
|
D | LinearGradient.java | 69 @Nullable float[] positions, @NonNull TileMode tile) { in LinearGradient() argument 70 this(x0, y0, x1, y1, convertColors(colors), positions, tile, in LinearGradient() 92 @Nullable float[] positions, @NonNull TileMode tile) { in LinearGradient() argument 93 this(x0, y0, x1, y1, colors.clone(), positions, tile, detectColorSpace(colors)); in LinearGradient() 101 @NonNull @ColorLong long[] colors, @Nullable float[] positions, @NonNull TileMode tile, in LinearGradient() argument 105 if (positions != null && colors.length != positions.length) { in LinearGradient() 113 mPositions = positions != null ? positions.clone() : null; in LinearGradient() 162 long[] colors, float[] positions, int tileMode, long colorSpaceHandle); in nativeCreate() argument
|
D | RadialGradient.java | 158 @ColorLong long[] colors, float[] positions, int tileMode, long colorSpaceHandle); in nativeCreate() argument
|
/frameworks/native/include/input/ |
D | VelocityTracker.h | 83 void addMovement(nsecs_t eventTime, BitSet32 idBits, const Position* positions); 131 const VelocityTracker::Position* positions) = 0; 163 const VelocityTracker::Position* positions); 178 VelocityTracker::Position positions[MAX_POINTERS]; member 181 return positions[idBits.getIndexOfBit(id)]; in getPosition() 206 const VelocityTracker::Position* positions); 240 const VelocityTracker::Position* positions); 256 VelocityTracker::Position positions[MAX_POINTERS]; member 259 return positions[idBits.getIndexOfBit(id)]; in getPosition() 275 const VelocityTracker::Position* positions); [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 | 230 void VelocityTracker::addMovement(nsecs_t eventTime, BitSet32 idBits, const Position* positions) { in addMovement() argument 252 mStrategy->addMovement(eventTime, idBits, positions); in addMovement() 265 id, positions[index].x, positions[index].y, in addMovement() 323 Position positions[pointerCount]; in addMovement() local 330 positions[index].x = event->getHistoricalX(i, h); in addMovement() 331 positions[index].y = event->getHistoricalY(i, h); in addMovement() 333 addMovement(eventTime, idBits, positions); in addMovement() 339 positions[index].x = event->getX(i); in addMovement() 340 positions[index].y = event->getY(i); in addMovement() 342 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/native/libs/input/tests/ |
D | VelocityTracker_test.cpp | 87 std::vector<Position> positions; member 90 static BitSet32 getValidPointers(const std::vector<Position>& positions) { in getValidPointers() argument 92 for (size_t i = 0; i < positions.size(); i++) { in getValidPointers() 93 if (positions[i].isValid()) { in getValidPointers() 143 BitSet32 pointers = getValidPointers(entry.positions); in createMotionEventStream() 156 action = resolveAction(previousEntry.positions, entry.positions, nextEntry.positions); in createMotionEventStream() 167 EXPECT_TRUE(entry.positions[pointerId].isValid()) << in createMotionEventStream() 169 coords[pointerIndex].setAxisValue(AMOTION_EVENT_AXIS_X, entry.positions[pointerId].x); in createMotionEventStream() 170 coords[pointerIndex].setAxisValue(AMOTION_EVENT_AXIS_Y, entry.positions[pointerId].y); in createMotionEventStream()
|
/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/base/cmds/statsd/benchmark/ |
D | metric_util.h | 90 const std::vector<Position>& positions); 94 const std::vector<Position>& positions);
|
D | metric_util.cpp | 215 const std::vector<Position>& positions) { in CreateAttributionUidDimensions() argument 218 for (const auto position : positions) { in CreateAttributionUidDimensions() 228 const std::vector<Position>& positions) { in CreateAttributionUidAndTagDimensions() argument 231 for (const auto position : positions) { in CreateAttributionUidAndTagDimensions()
|
/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/base/libs/hwui/hwui/ |
D | Canvas.cpp | 97 auto glyphFunc = [&](uint16_t* text, float* positions) { in operator ()() argument 100 positions[posIndex++] = x + layout.getX(i); in operator ()() 101 positions[posIndex++] = y + layout.getY(i); in operator ()()
|
/frameworks/minikin/libs/minikin/ |
D | LayoutCore.cpp | 475 hb_glyph_position_t* positions = hb_buffer_get_glyph_positions(buffer.get(), NULL); in LayoutPiece() local 498 float xoff = HBFixedToFloat(positions[i].x_offset); in LayoutPiece() 499 float yoff = -HBFixedToFloat(positions[i].y_offset); in LayoutPiece() 504 float xAdvance = HBFixedToFloat(positions[i].x_advance); in LayoutPiece()
|
/frameworks/base/cmds/statsd/tests/ |
D | statsd_test_util.h | 184 const std::vector<Position>& positions); 188 const std::vector<Position>& positions); 191 const std::vector<Position>& positions,
|
D | statsd_test_util.cpp | 400 const std::vector<Position>& positions) { in CreateAttributionUidDimensions() argument 403 for (const auto position : positions) { in CreateAttributionUidDimensions() 413 const std::vector<Position>& positions) { in CreateAttributionUidAndTagDimensions() argument 416 for (const auto position : positions) { in CreateAttributionUidAndTagDimensions() 436 const std::vector<Position>& positions, in CreateAttributionUidAndOtherDimensions() argument 438 FieldMatcher dimensions = CreateAttributionUidDimensions(atomId, positions); in CreateAttributionUidAndOtherDimensions()
|
/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,
|