/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, texture); in addLinearGradient() 241 void GradientCache::generateTexture(uint32_t* colors, float* positions, Texture* texture) { in generateTexture() argument 265 float startPos = positions[0]; in generateTexture() 266 float distance = positions[1] - startPos; in generateTexture() [all …]
|
D | DisplayListRenderer.cpp | 373 const float* positions, const SkPaint* paint) { in drawPosText() argument 377 positions = refBuffer<float>(positions, count * 2); in drawPosText() 380 DrawOp* op = new (alloc()) DrawPosTextOp(text, bytesCount, count, positions, paint); in drawPosText() 396 float x, float y, const float* positions, const SkPaint* paint, in drawText() argument 402 positions = refBuffer<float>(positions, count * 2); in drawText() 415 x, y, positions, outlinePaint, totalAdvance, bounds)); // bounds? in drawText() 422 x, y, positions, innerPaint, totalAdvance, bounds)); in drawText() 428 x, y, positions, paint, totalAdvance, bounds); in drawText()
|
D | Renderer.h | 213 const float* positions, const SkPaint* paint, float totalAdvance, const Rect& bounds, 218 const float* positions, const SkPaint* paint) = 0;
|
D | FontRenderer.h | 105 uint32_t startIndex, uint32_t len, int numGlyphs, int x, int y, const float* positions, 132 uint32_t len, int numGlyphs, float radius, const float* positions);
|
D | FontRenderer.cpp | 595 uint32_t startIndex, uint32_t len, int numGlyphs, float radius, const float* positions) { in renderDropShadow() argument 614 mCurrentFont->measure(paint, text, startIndex, len, numGlyphs, &bounds, positions); in renderDropShadow() 647 Font::BITMAP, dataBuffer, paddedWidth, paddedHeight, NULL, positions); in renderDropShadow() 692 const float* positions, Rect* bounds, Functor* functor, bool forceFinish) { in renderPosText() argument 699 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 | RadialGradient_Delegate.java | 58 int colors[], float positions[], int tileMode) { in nativeCreate1() argument 60 colors, positions, Shader_Delegate.getTileMode(tileMode)); in nativeCreate1() 87 private RadialGradient_Delegate(float x, float y, float radius, int colors[], float positions[], in RadialGradient_Delegate() argument 89 super(colors, positions); in RadialGradient_Delegate() 100 int[] colors, float[] positions, TileMode mode) { in RadialGradientPaint() argument 101 super(colors, positions, mode); in RadialGradientPaint()
|
D | SweepGradient_Delegate.java | 55 /*package*/ static long 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() 82 int colors[], float positions[]) { in SweepGradient_Delegate() argument 83 super(colors, positions); in SweepGradient_Delegate() 93 float[] positions) { in SweepGradientPaint() argument 94 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() 90 int colors[], float positions[], TileMode tile) { in LinearGradient_Delegate() argument 91 super(colors, positions); in LinearGradient_Delegate() 110 float positions[], TileMode tile) { in LinearGradientPaint() argument 111 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 init(nativeCreate1(cx, cy, colors, positions)); in SweepGradient() 107 private static native long nativeCreate1(float x, float y, int colors[], float positions[]); in nativeCreate1() 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 init(nativeCreate1(x0, y0, x1, y1, colors, positions, tile.nativeInt)); in LinearGradient() 116 int colors[], float positions[], int tileMode); in nativeCreate1() argument
|
D | RadialGradient.java | 121 int colors[], float positions[], int tileMode); in nativeCreate1() 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 | 85 int numGlyphs, int x, int y, const float* positions); 117 uint32_t bitmapW, uint32_t bitmapH, Rect *bounds, const float* positions); 120 int numGlyphs, Rect *bounds, const float* positions);
|
D | Font.cpp | 300 int numGlyphs, int x, int y, const float* positions) { in render() argument 302 0, 0, NULL, positions); in render() 356 int numGlyphs, Rect *bounds, const float* positions) { in measure() argument 362 render(paint, text, start, len, numGlyphs, 0, 0, MEASURE, NULL, 0, 0, bounds, positions); in measure() 388 uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* positions) { in render() argument 421 int penX = x + (int) roundf(positions[(glyphsCount << 1)]); in render() 422 int penY = y + (int) roundf(positions[(glyphsCount << 1) + 1]); in render() 425 bitmap, bitmapW, bitmapH, bounds, positions); in render()
|
/frameworks/minikin/libs/minikin/ |
D | Layout.cpp | 728 hb_glyph_position_t* positions = hb_buffer_get_glyph_positions(buffer, NULL); in doLayoutRun() local 736 …std::cout << positions[i].x_advance << " " << positions[i].y_advance << " " << positions[i].x_offs… in doLayoutRun() 737 …": " << HBFixedToFloat(positions[i].x_advance) << "; " << positions[i].x_offset << ", " << positio… in doLayoutRun() 746 float xoff = HBFixedToFloat(positions[i].x_offset); in doLayoutRun() 747 float yoff = -HBFixedToFloat(positions[i].y_offset); in doLayoutRun() 751 float xAdvance = HBFixedToFloat(positions[i].x_advance); in doLayoutRun()
|
/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/android/graphics/ |
D | SkiaCanvas.cpp | 119 virtual void drawText(const uint16_t* text, const float* positions, int count, 122 virtual void drawPosText(const uint16_t* text, const float* positions, int count, 677 void SkiaCanvas::drawText(const uint16_t* text, const float* positions, int count, in drawText() argument 687 mCanvas->drawPosText(text, count << 1, reinterpret_cast<const SkPoint*>(positions), paintCopy); in drawText() 690 void SkiaCanvas::drawPosText(const uint16_t* text, const float* positions, int count, int posCount, in drawPosText() argument 695 posPtr[indx].fX = positions[indx << 1]; in drawPosText() 696 posPtr[indx].fY = positions[(indx << 1) + 1]; in drawPosText()
|
/frameworks/base/include/private/graphics/ |
D | Canvas.h | 124 virtual void drawText(const uint16_t* text, const float* positions, int count, 127 virtual void drawPosText(const uint16_t* text, const float* positions, int count,
|