/frameworks/base/libs/hwui/ |
D | GradientCache.h | 37 positions = NULL; in GradientCacheEntry() 40 GradientCacheEntry(uint32_t* colors, float* positions, uint32_t count) { in GradientCacheEntry() 41 copy(colors, positions, count); in GradientCacheEntry() 45 copy(entry.colors, entry.positions, entry.count); in GradientCacheEntry() 50 delete[] positions; in ~GradientCacheEntry() 56 delete[] positions; 58 copy(entry.colors, entry.positions, entry.count); 77 float* positions; member 81 void copy(uint32_t* colors, float* positions, uint32_t count) { in copy() 84 this->positions = new float[count]; in copy() [all …]
|
D | TextDropShadowCache.h | 37 flags(0), italicStyle(0.0f), scaleX(0), text(NULL), positions(NULL) { in ShadowText() 42 const float* positions): in ShadowText() 43 len(len), radius(radius), positions(positions) { in ShadowText() 78 if (positions != NULL) { in copyTextLocally() 80 positionsCopy.appendArray(positions, charCount * 2); in copyTextLocally() 81 positions = positionsCopy.array(); in copyTextLocally() 93 const float* positions; member 139 int numGlyphs, float radius, const float* positions);
|
D | TextDropShadowCache.cpp | 45 if (positions) { in hash() 47 hash = JenkinsHashMix(hash, android::hash_type(positions[i])); in hash() 83 if (lhs.positions != rhs.positions) { in compare() 84 if (!lhs.positions) return -1; in compare() 85 if (!rhs.positions) return +1; in compare() 87 return memcmp(lhs.positions, rhs.positions, lhs.len << 2); in compare() 172 int numGlyphs, float radius, const float* positions) { in get() argument 173 ShadowText entry(paint, radius, len, text, positions); in get() 180 len, numGlyphs, radius, positions); in get()
|
D | GradientCache.cpp | 46 hash = JenkinsHashMix(hash, android::hash_type(positions[i])); in hash() 58 return memcmp(lhs.positions, rhs.positions, lhs.count * sizeof(float)); in compare() 132 Texture* GradientCache::get(uint32_t* colors, float* positions, int count) { in get() argument 133 GradientCacheEntry gradient(colors, positions, count); in get() 137 texture = addLinearGradient(gradient, colors, positions, count); in get() 171 uint32_t* colors, float* positions, int count) { in addLinearGradient() argument 188 generateTexture(colors, positions, count, texture); in addLinearGradient() 241 void GradientCache::generateTexture(uint32_t* colors, float* positions, in generateTexture() argument 266 float startPos = positions[0]; in generateTexture() 267 float distance = positions[1] - startPos; in generateTexture() [all …]
|
D | SkiaShader.h | 161 ANDROID_API SkiaLinearGradientShader(float* bounds, uint32_t* colors, float* positions, 185 ANDROID_API SkiaSweepGradientShader(float x, float y, uint32_t* colors, float* positions, 195 SkiaSweepGradientShader(Type type, float x, float y, uint32_t* colors, float* positions, 211 float* positions, int count, SkShader* key,SkShader::TileMode tileMode,
|
D | SkiaShader.cpp | 186 float* positions, int count, SkShader* key, SkShader::TileMode tileMode, in SkiaLinearGradientShader() argument 189 mBounds(bounds), mColors(colors), mPositions(positions), mCount(count) { in SkiaLinearGradientShader() 265 uint32_t* colors, float* positions, int count, SkShader* key, SkShader::TileMode tileMode, in SkiaCircularGradientShader() argument 267 SkiaSweepGradientShader(kCircularGradient, x, y, colors, positions, count, key, in SkiaCircularGradientShader() 304 float* positions, int count, SkShader* key, SkMatrix* matrix, bool blend): in SkiaSweepGradientShader() argument 307 mColors(colors), mPositions(positions), mCount(count) { in SkiaSweepGradientShader() 318 float* positions, int count, SkShader* key, SkShader::TileMode tileMode, in SkiaSweepGradientShader() argument 321 mColors(colors), mPositions(positions), mCount(count) { in SkiaSweepGradientShader()
|
D | DisplayListRenderer.cpp | 410 const float* positions, SkPaint* paint) { in drawPosText() argument 414 positions = refBuffer<float>(positions, count * 2); in drawPosText() 417 DrawOp* op = new (alloc()) DrawPosTextOp(text, bytesCount, count, positions, paint); in drawPosText() 423 float x, float y, const float* positions, SkPaint* paint, in drawText() argument 429 positions = refBuffer<float>(positions, count * 2); in drawText() 433 x, y, positions, paint, totalAdvance, bounds); in drawText()
|
D | FontRenderer.h | 107 uint32_t len, int numGlyphs, int x, int y, const float* positions, Rect* bounds, 134 uint32_t len, int numGlyphs, uint32_t radius, const float* positions);
|
D | FontRenderer.cpp | 594 uint32_t startIndex, uint32_t len, int numGlyphs, uint32_t radius, const float* positions) { in renderDropShadow() argument 613 mCurrentFont->measure(paint, text, startIndex, len, numGlyphs, &bounds, positions); in renderDropShadow() 645 Font::BITMAP, dataBuffer, paddedWidth, paddedHeight, NULL, positions); in renderDropShadow() 689 const float* positions, Rect* bounds, Functor* functor, bool forceFinish) { in renderPosText() argument 696 mCurrentFont->render(paint, text, startIndex, len, numGlyphs, x, y, positions); in renderPosText()
|
/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 | 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 | 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 | 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 | 52 int colors[], float positions[]) { in SweepGradient() argument 56 if (positions != null && colors.length != positions.length) { in SweepGradient() 64 mPositions = positions; in SweepGradient() 65 native_instance = nativeCreate1(cx, cy, colors, positions); in SweepGradient() 66 native_shader = nativePostCreate1(native_instance, cx, cy, colors, positions); in SweepGradient() 109 private static native int nativeCreate1(float x, float y, int colors[], float positions[]); in nativeCreate1() argument 113 int[] colors, float[] positions); in nativePostCreate1() argument
|
D | RadialGradient.java | 51 int colors[], float positions[], TileMode tile) { in RadialGradient() argument 58 if (positions != null && colors.length != positions.length) { in RadialGradient() 66 mPositions = positions; in RadialGradient() 68 native_instance = nativeCreate1(x, y, radius, colors, positions, tile.nativeInt); in RadialGradient() 69 native_shader = nativePostCreate1(native_instance, x, y, radius, colors, positions, in RadialGradient() 121 int colors[], float positions[], int tileMode); in nativeCreate1() argument 126 int colors[], float positions[], int tileMode); in nativePostCreate1() argument
|
D | LinearGradient.java | 52 public LinearGradient(float x0, float y0, float x1, float y1, int colors[], float positions[], in LinearGradient() argument 57 if (positions != null && colors.length != positions.length) { in LinearGradient() 66 mPositions = positions; in LinearGradient() 68 native_instance = nativeCreate1(x0, y0, x1, y1, colors, positions, tile.nativeInt); in LinearGradient() 69 native_shader = nativePostCreate1(native_instance, x0, y0, x1, y1, colors, positions, in LinearGradient() 120 int colors[], float positions[], int tileMode); in nativeCreate1() argument 124 int colors[], float positions[], int tileMode); in nativePostCreate1() 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()
|
/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 | 220 void VelocityTracker::addMovement(nsecs_t eventTime, BitSet32 idBits, const Position* positions) { in addMovement() argument 242 mStrategy->addMovement(eventTime, idBits, positions); in addMovement() 255 id, positions[index].x, positions[index].y, in addMovement() 313 Position positions[pointerCount]; in addMovement() local 320 positions[index].x = event->getHistoricalX(i, h); in addMovement() 321 positions[index].y = event->getHistoricalY(i, h); in addMovement() 323 addMovement(eventTime, idBits, positions); in addMovement() 329 positions[index].x = event->getX(i); in addMovement() 330 positions[index].y = event->getY(i); in addMovement() 332 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.h | 81 int numGlyphs, int x, int y, const float* positions); 113 uint32_t bitmapW, uint32_t bitmapH, Rect *bounds, const float* positions); 116 int numGlyphs, Rect *bounds, const float* positions);
|
D | Font.cpp | 287 int numGlyphs, int x, int y, const float* positions) { in render() argument 289 0, 0, NULL, positions); in render() 343 int numGlyphs, Rect *bounds, const float* positions) { in measure() argument 349 render(paint, text, start, len, numGlyphs, 0, 0, MEASURE, NULL, 0, 0, bounds, positions); in measure() 375 uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* positions) { in render() argument 408 float penX = x + positions[(glyphsCount << 1)]; in render() 409 float penY = y + positions[(glyphsCount << 1) + 1]; in render() 412 bitmap, bitmapW, bitmapH, bounds, positions); in render()
|
/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 | 614 const float* positions = value->getPos(); in renderText() local 621 x, y, positions, paint, totalAdvance, bounds); in renderText() 650 const float* positions = value->getPos(); in renderTextRun() local 657 x, y, positions, paint, totalAdvance, bounds); in renderTextRun() 717 const jfloat* positions, jint dirFlags, SkPaint* paint) { in renderPosText() argument 728 renderer->drawPosText((const char*) glyphs, bytesCount, glyphsCount, positions, paint); in renderPosText() 735 jfloat* positions = env->GetFloatArrayElements(pos, NULL); in android_view_GLES20Canvas_drawPosTextArray() local 737 renderPosText(renderer, textArray + index, count, positions, kBidi_LTR, paint); in android_view_GLES20Canvas_drawPosTextArray() 739 env->ReleaseFloatArrayElements(pos, positions, JNI_ABORT); in android_view_GLES20Canvas_drawPosTextArray() 747 jfloat* positions = env->GetFloatArrayElements(pos, NULL); in android_view_GLES20Canvas_drawPosText() local [all …]
|
/frameworks/base/core/jni/android/graphics/ |
D | TextLayoutCache.cpp | 662 hb_glyph_position_t* positions = hb_buffer_get_glyph_positions(buffer, NULL); in logGlyphs() local 668 HBFixedToFloat(positions[i].x_advance), in logGlyphs() 669 HBFixedToFloat(positions[i].x_offset), in logGlyphs() 670 HBFixedToFloat(positions[i].y_offset)); in logGlyphs() 734 hb_glyph_position_t* positions = hb_buffer_get_glyph_positions(mBuffer, NULL); in computeRunValues() local 748 float xAdvance = HBFixedToFloat(positions[i].x_advance); in computeRunValues() 752 float xo = HBFixedToFloat(positions[i].x_offset); in computeRunValues() 753 float yo = -HBFixedToFloat(positions[i].y_offset); in computeRunValues()
|