/frameworks/base/libs/hwui/ |
D | GradientCache.h | 38 positions = NULL; in GradientCacheEntry() 41 GradientCacheEntry(uint32_t* colors, float* positions, int count) { in GradientCacheEntry() 42 copy(colors, positions, count); in GradientCacheEntry() 46 copy(entry.colors, entry.positions, entry.count); in GradientCacheEntry() 51 delete[] positions; in ~GradientCacheEntry() 57 delete[] positions; 59 copy(entry.colors, entry.positions, entry.count); 71 result = memcmp(positions, rhs.positions, count * sizeof(float)); in LTE_INT() 79 float* positions; member 85 void copy(uint32_t* colors, float* positions, int count) { in copy() [all …]
|
D | TextDropShadowCache.h | 39 const float* positions): in ShadowText() 40 radius(radius), len(len), positions(positions) { in ShadowText() 70 const float* positions; member 77 if (positions != NULL) { in copyTextLocally() 79 positionsCopy.appendArray(positions, len); in copyTextLocally() 80 positions = positionsCopy.array(); in copyTextLocally() 94 if (cmp == 0 && rhs.positions != NULL) { in LTE_INT() 95 if (positions == NULL) return true; in LTE_INT() 96 return memcmp(positions, rhs.positions, len << 2) < 0; in LTE_INT() 133 int numGlyphs, uint32_t radius, const float* positions);
|
D | GradientCache.cpp | 114 Texture* GradientCache::get(uint32_t* colors, float* positions, int count) { in get() argument 116 GradientCacheEntry gradient(colors, positions, count); in get() 120 texture = addLinearGradient(gradient, colors, positions, count); in get() 151 uint32_t* colors, float* positions, int count) { in addLinearGradient() argument 168 generateTexture(colors, positions, count, texture); in addLinearGradient() 176 void GradientCache::generateTexture(uint32_t* colors, float* positions, in generateTexture() argument 195 float start = positions[0]; in generateTexture() 196 float distance = positions[1] - start; in generateTexture() 201 if (pos > positions[currentPos]) { in generateTexture() 206 start = positions[currentPos]; in generateTexture() [all …]
|
D | SkiaShader.cpp | 182 float* positions, int count, SkShader* key, SkShader::TileMode tileMode, in SkiaLinearGradientShader() argument 185 mBounds(bounds), mColors(colors), mPositions(positions), mCount(count) { in SkiaLinearGradientShader() 261 uint32_t* colors, float* positions, int count, SkShader* key, SkShader::TileMode tileMode, in SkiaCircularGradientShader() argument 263 SkiaSweepGradientShader(kCircularGradient, x, y, colors, positions, count, key, in SkiaCircularGradientShader() 300 float* positions, int count, SkShader* key, SkMatrix* matrix, bool blend): in SkiaSweepGradientShader() argument 303 mColors(colors), mPositions(positions), mCount(count) { in SkiaSweepGradientShader() 314 float* positions, int count, SkShader* key, SkShader::TileMode tileMode, in SkiaSweepGradientShader() argument 317 mColors(colors), mPositions(positions), mCount(count) { in SkiaSweepGradientShader()
|
D | SkiaShader.h | 162 ANDROID_API SkiaLinearGradientShader(float* bounds, uint32_t* colors, float* positions, 186 ANDROID_API SkiaSweepGradientShader(float x, float y, uint32_t* colors, float* positions, 196 SkiaSweepGradientShader(Type type, float x, float y, uint32_t* colors, float* positions, 212 float* positions, int count, SkShader* key,SkShader::TileMode tileMode,
|
D | TextDropShadowCache.cpp | 105 int numGlyphs, uint32_t radius, const float* positions) { in get() argument 106 ShadowText entry(paint, radius, len, text, positions); in get() 113 len, numGlyphs, radius, positions); in get()
|
D | FontRenderer.h | 59 uint32_t len, int numGlyphs, int x, int y, const float* positions, Rect* bounds); 83 uint32_t len, int numGlyphs, uint32_t radius, const float* positions);
|
D | FontRenderer.cpp | 488 uint32_t startIndex, uint32_t len, int numGlyphs, uint32_t radius, const float* positions) { in renderDropShadow() argument 506 mCurrentFont->measure(paint, text, startIndex, len, numGlyphs, &bounds, positions); in renderDropShadow() 520 Font::BITMAP, dataBuffer, paddedWidth, paddedHeight, NULL, positions); in renderDropShadow() 586 const float* positions, Rect* bounds) { in renderPosText() argument 593 mCurrentFont->render(paint, text, startIndex, len, numGlyphs, x, y, positions); in renderPosText()
|
D | OpenGLRenderer.h | 201 const float* positions, SkPaint* paint); 203 const float* positions, SkPaint* paint, float length = -1.0f); 620 const float* positions, FontRenderer& fontRenderer, int alpha, SkXfermode::Mode mode,
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | Gradient_Delegate.java | 49 protected Gradient_Delegate(int colors[], float positions[]) { in Gradient_Delegate() argument 53 if (positions != null && colors.length != positions.length) { in Gradient_Delegate() 57 if (positions == null) { in Gradient_Delegate() 59 positions = new float[colors.length]; in Gradient_Delegate() 60 positions[0] = 0.f; in Gradient_Delegate() 61 positions[colors.length-1] = 1.f; in Gradient_Delegate() 63 positions[i] = spacing * i; in Gradient_Delegate() 68 mPositions = positions; in Gradient_Delegate() 84 protected GradientPaint(int[] colors, float[] positions, TileMode tileMode) { in GradientPaint() argument 86 mPositions = positions; in GradientPaint()
|
D | RadialGradient_Delegate.java | 58 int colors[], float positions[], int tileMode) { in nativeCreate1() argument 60 colors, positions, Shader_Delegate.getTileMode(tileMode)); in nativeCreate1() 73 int colors[], float positions[], int tileMode) { in nativePostCreate1() argument 101 private RadialGradient_Delegate(float x, float y, float radius, int colors[], float positions[], in RadialGradient_Delegate() argument 103 super(colors, positions); in RadialGradient_Delegate() 114 int[] colors, float[] positions, TileMode mode) { in RadialGradientPaint() argument 115 super(colors, positions, mode); in RadialGradientPaint()
|
D | SweepGradient_Delegate.java | 55 /*package*/ static int nativeCreate1(float x, float y, int colors[], float positions[]) { in nativeCreate1() argument 56 SweepGradient_Delegate newDelegate = new SweepGradient_Delegate(x, y, colors, positions); in nativeCreate1() 67 int[] colors, float[] positions) { in nativePostCreate1() argument 96 int colors[], float positions[]) { in SweepGradient_Delegate() argument 97 super(colors, positions); in SweepGradient_Delegate() 107 float[] positions) { in SweepGradientPaint() argument 108 super(colors, positions, null /*tileMode*/); in SweepGradientPaint()
|
D | LinearGradient_Delegate.java | 59 int colors[], float positions[], int tileMode) { in nativeCreate1() argument 61 colors, positions, Shader_Delegate.getTileMode(tileMode)); in nativeCreate1() 77 int colors[], float positions[], int tileMode) { in nativePostCreate1() argument 106 int colors[], float positions[], TileMode tile) { in LinearGradient_Delegate() argument 107 super(colors, positions); in LinearGradient_Delegate() 126 float positions[], TileMode tile) { in LinearGradientPaint() argument 127 super(colors, positions, tile); in LinearGradientPaint()
|
/frameworks/base/graphics/java/android/graphics/ |
D | SweepGradient.java | 36 int colors[], float positions[]) { in SweepGradient() argument 40 if (positions != null && colors.length != positions.length) { in SweepGradient() 44 native_instance = nativeCreate1(cx, cy, colors, positions); in SweepGradient() 45 native_shader = nativePostCreate1(native_instance, cx, cy, colors, positions); in SweepGradient() 61 private static native int nativeCreate1(float x, float y, int colors[], float positions[]); in nativeCreate1() argument 65 int[] colors, float[] positions); in nativePostCreate1() argument
|
D | RadialGradient.java | 32 int colors[], float positions[], TileMode tile) { in RadialGradient() argument 39 if (positions != null && colors.length != positions.length) { in RadialGradient() 42 native_instance = nativeCreate1(x, y, radius, colors, positions, tile.nativeInt); in RadialGradient() 43 native_shader = nativePostCreate1(native_instance, x, y, radius, colors, positions, in RadialGradient() 66 int colors[], float positions[], int tileMode); in nativeCreate1() argument 71 int colors[], float positions[], int tileMode); in nativePostCreate1() argument
|
D | LinearGradient.java | 31 public LinearGradient(float x0, float y0, float x1, float y1, int colors[], float positions[], in LinearGradient() argument 36 if (positions != null && colors.length != positions.length) { in LinearGradient() 39 native_instance = nativeCreate1(x0, y0, x1, y1, colors, positions, tile.nativeInt); in LinearGradient() 40 native_shader = nativePostCreate1(native_instance, x0, y0, x1, y1, colors, positions, in LinearGradient() 61 int colors[], float positions[], int tileMode); in nativeCreate1() argument 65 int colors[], float positions[], int tileMode); in nativePostCreate1() argument
|
/frameworks/base/include/androidfw/ |
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()
|
/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/base/libs/androidfw/ |
D | VelocityTracker.cpp | 221 void VelocityTracker::addMovement(nsecs_t eventTime, BitSet32 idBits, const Position* positions) { in addMovement() argument 243 mStrategy->addMovement(eventTime, idBits, positions); in addMovement() 256 id, positions[index].x, positions[index].y, in addMovement() 314 Position positions[pointerCount]; in addMovement() local 321 positions[index].x = event->getHistoricalX(i, h); in addMovement() 322 positions[index].y = event->getHistoricalY(i, h); in addMovement() 324 addMovement(eventTime, idBits, positions); in addMovement() 330 positions[index].x = event->getX(i); in addMovement() 331 positions[index].y = event->getY(i); in addMovement() 333 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/base/libs/hwui/font/ |
D | Font.cpp | 198 int numGlyphs, int x, int y, const float* positions) { in render() argument 200 0, 0, NULL, positions); in render() 254 int numGlyphs, Rect *bounds, const float* positions) { in measure() argument 260 render(paint, text, start, len, numGlyphs, 0, 0, MEASURE, NULL, 0, 0, bounds, positions); in measure() 286 uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* positions) { in render() argument 301 if (CC_LIKELY(positions == NULL)) { in render() 322 bitmap, bitmapW, bitmapH, bounds, positions); in render() 345 int penX = x + positions[(glyphsCount << 1)]; in render() 346 int penY = y + positions[(glyphsCount << 1) + 1]; in render() 361 bitmap, bitmapW, bitmapH, bounds, positions); in render()
|
D | Font.h | 59 int numGlyphs, int x, int y, const float* positions); 86 uint32_t bitmapW, uint32_t bitmapH, Rect *bounds, const float* positions); 89 int numGlyphs, Rect *bounds, const float* positions);
|
/frameworks/base/core/jni/android/opengl/ |
D | util.cpp | 238 FloatArrayHelper positions(env, positions_ref, positionsOffset, 0); in util_computeBoundingSphere() local 241 bool checkOK = positions.check() && sphere.check(); in util_computeBoundingSphere() 246 positions.bind(); in util_computeBoundingSphere() 254 const float* pSrc = positions.mData; in util_computeBoundingSphere() 445 FloatArrayHelper positions(env, positions_ref, positionsOffset, 0); in util_visibilityTest() local 448 bool checkOK = ws.check() && positions.check() && indices.check(); in util_visibilityTest() 460 positions.bind(); in util_visibilityTest() 464 positions.mData, positions.mLength, in util_visibilityTest()
|
/frameworks/base/core/jni/ |
D | android_view_GLES20Canvas.cpp | 535 const float* positions = value->getPos(); in renderText() local 538 positions, paint, totalAdvance); in renderText() 566 const float* positions = value->getPos(); in renderTextRun() local 569 positions, paint, totalAdvance); in renderTextRun() 629 const jfloat* positions, jint dirFlags, SkPaint* paint) { in renderPosText() argument 640 renderer->drawPosText((const char*) glyphs, bytesCount, glyphsCount, positions, paint); in renderPosText() 647 jfloat* positions = env->GetFloatArrayElements(pos, NULL); in android_view_GLES20Canvas_drawPosTextArray() local 649 renderPosText(renderer, textArray + index, count, positions, kBidi_LTR, paint); in android_view_GLES20Canvas_drawPosTextArray() 651 env->ReleaseFloatArrayElements(pos, positions, JNI_ABORT); in android_view_GLES20Canvas_drawPosTextArray() 659 jfloat* positions = env->GetFloatArrayElements(pos, NULL); in android_view_GLES20Canvas_drawPosText() local [all …]
|
/frameworks/base/data/keyboards/ |
D | Vendor_046d_Product_c299.kl | 31 # Gear shift positions
|