/frameworks/base/libs/hwui/ |
D | GradientCache.h | 39 positions = nullptr; in GradientCacheEntry() 42 GradientCacheEntry(uint32_t* colors, float* positions, uint32_t count) { in GradientCacheEntry() 43 copy(colors, positions, count); in GradientCacheEntry() 47 copy(entry.colors.get(), entry.positions.get(), entry.count); in GradientCacheEntry() 52 copy(entry.colors.get(), entry.positions.get(), entry.count); 71 std::unique_ptr<float[]> positions; member 75 void copy(uint32_t* colors, float* positions, uint32_t count) { in copy() 78 this->positions.reset(new float[count]); in copy() 81 memcpy(this->positions.get(), positions, count * sizeof(float)); in copy() 119 Texture* get(uint32_t* colors, float* positions, int count); [all …]
|
D | TextDropShadowCache.h | 38 flags(0), italicStyle(0.0f), scaleX(0), text(nullptr), positions(nullptr) { in ShadowText() 43 const float* positions): in ShadowText() 44 len(len), radius(radius), positions(positions) { in ShadowText() 79 if (positions != nullptr) { in copyTextLocally() 81 positionsCopy.appendArray(positions, charCount * 2); in copyTextLocally() 82 positions = positionsCopy.array(); in copyTextLocally() 94 const float* positions; member 140 int numGlyphs, float radius, const float* positions);
|
D | TextDropShadowCache.cpp | 47 if (positions) { in hash() 49 hash = JenkinsHashMix(hash, android::hash_type(positions[i])); in hash() 85 if (lhs.positions != rhs.positions) { in compare() 86 if (!lhs.positions) return -1; in compare() 87 if (!rhs.positions) return +1; in compare() 89 return memcmp(lhs.positions, rhs.positions, lhs.len << 2); in compare() 174 int numGlyphs, float radius, const float* positions) { in get() argument 175 ShadowText entry(paint, radius, len, text, positions); in get() 182 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.get(), rhs.positions.get(), lhs.count * sizeof(float)); in compare() 125 Texture* GradientCache::get(uint32_t* colors, float* positions, int count) { in get() argument 126 GradientCacheEntry gradient(colors, positions, count); in get() 130 texture = addLinearGradient(gradient, colors, positions, count); in get() 164 uint32_t* colors, float* positions, int count) { in addLinearGradient() argument 181 generateTexture(colors, positions, texture); in addLinearGradient() 234 void GradientCache::generateTexture(uint32_t* colors, float* positions, Texture* texture) { in generateTexture() argument 258 float startPos = positions[0]; in generateTexture() 259 float distance = positions[1] - startPos; in generateTexture() [all …]
|
D | DisplayListCanvas.cpp | 438 void DisplayListCanvas::drawPosText(const uint16_t* text, const float* positions, in drawPosText() argument 443 positions = refBuffer<float>(positions, count * 2); in drawPosText() 446 bytesCount, count, positions, refPaint(&paint)); in drawPosText() 460 void DisplayListCanvas::drawText(const uint16_t* glyphs, const float* positions, in drawText() argument 469 positions = refBuffer<float>(positions, count * 2); in drawText() 483 x, y, positions, outlinePaint, totalAdvance, bounds)); // bounds? in drawText() 490 x, y, positions, innerPaint, totalAdvance, bounds)); in drawText() 494 x, y, positions, refPaint(&paint), totalAdvance, bounds); in drawText()
|
D | SkiaCanvas.cpp | 120 virtual void drawText(const uint16_t* text, const float* positions, int count, 124 virtual void drawPosText(const uint16_t* text, const float* positions, int count, 669 void SkiaCanvas::drawText(const uint16_t* text, const float* positions, int count, in drawText() argument 680 mCanvas->drawPosText(text, count << 1, reinterpret_cast<const SkPoint*>(positions), paintCopy); in drawText() 683 void SkiaCanvas::drawPosText(const uint16_t* text, const float* positions, int count, int posCount, in drawPosText() argument 688 posPtr[indx].fX = positions[indx << 1]; in drawPosText() 689 posPtr[indx].fY = positions[(indx << 1) + 1]; in drawPosText()
|
D | Canvas.h | 150 virtual void drawText(const uint16_t* glyphs, const float* positions, int count, 155 virtual void drawPosText(const uint16_t* text, const float* positions, int count,
|
D | FontRenderer.h | 92 uint32_t startIndex, uint32_t len, int numGlyphs, int x, int y, const float* positions, 111 uint32_t len, int numGlyphs, float radius, const float* positions);
|
/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 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 | RadialGradient_Delegate.java | 60 int colors[], float positions[], int tileMode) { in nativeCreate1() argument 62 colors, positions, Shader_Delegate.getTileMode(tileMode)); in nativeCreate1() 89 private RadialGradient_Delegate(float x, float y, float radius, int colors[], float positions[], in RadialGradient_Delegate() argument 91 super(colors, positions); in RadialGradient_Delegate() 102 int[] colors, float[] positions, TileMode mode) { in RadialGradientPaint() argument 103 super(colors, positions, mode); in RadialGradientPaint()
|
D | LinearGradient_Delegate.java | 61 int colors[], float positions[], int tileMode) { in nativeCreate1() argument 63 colors, positions, Shader_Delegate.getTileMode(tileMode)); in nativeCreate1() 92 int colors[], float positions[], TileMode tile) { in LinearGradient_Delegate() argument 93 super(colors, positions); in LinearGradient_Delegate() 112 float positions[], TileMode tile) { in LinearGradientPaint() argument 113 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/support/design/base/android/support/design/widget/ |
D | CircularBorderDrawable.java | 160 final float[] positions = new float[6]; in createGradientShader() local 161 positions[0] = 0f; in createGradientShader() 162 positions[1] = borderRatio; in createGradientShader() 163 positions[2] = 0.5f; in createGradientShader() 164 positions[3] = 0.5f; in createGradientShader() 165 positions[4] = 1f - borderRatio; in createGradientShader() 166 positions[5] = 1f; in createGradientShader() 171 colors, positions, in createGradientShader()
|
/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/support/v7/recyclerview/tests/src/android/support/v7/util/ |
D | AsyncListUtilTest.java | 132 private void scrollAndExpectTiles(int position, String context, int... positions) in scrollAndExpectTiles() argument 134 mDataCallback.expectTiles(positions); in scrollAndExpectTiles() 171 public void expectTiles(int... positions) { in expectTiles() argument 173 mTilesFilledLatch.expect(positions); in expectTiles() 268 void expect(int ... positions) { in expect() argument 270 for (int position : positions) { in expect()
|
/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 | 86 int numGlyphs, int x, int y, const float* positions); 118 uint32_t bitmapW, uint32_t bitmapH, Rect *bounds, const float* positions); 121 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, nullptr, positions); in render() 356 int numGlyphs, Rect *bounds, const float* positions) { in measure() argument 362 render(paint, text, start, len, numGlyphs, 0, 0, MEASURE, nullptr, 0, 0, bounds, positions); in measure() 388 uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* positions) { in render() argument 419 int penX = x + (int) roundf(positions[(glyphsCount << 1)]); in render() 420 int penY = y + (int) roundf(positions[(glyphsCount << 1) + 1]); in render() 423 bitmap, bitmapW, bitmapH, bounds, positions); in render()
|
/frameworks/minikin/libs/minikin/ |
D | Layout.cpp | 779 hb_glyph_position_t* positions = hb_buffer_get_glyph_positions(buffer, NULL); in doLayoutRun() local 787 …std::cout << positions[i].x_advance << " " << positions[i].y_advance << " " << positions[i].x_offs… in doLayoutRun() 788 …": " << HBFixedToFloat(positions[i].x_advance) << "; " << positions[i].x_offset << ", " << positio… in doLayoutRun() 797 float xoff = HBFixedToFloat(positions[i].x_offset); in doLayoutRun() 798 float yoff = -HBFixedToFloat(positions[i].y_offset); in doLayoutRun() 802 float xAdvance = HBFixedToFloat(positions[i].x_advance); in doLayoutRun()
|
/frameworks/base/core/jni/android/opengl/ |
D | util.cpp | 333 FloatArrayHelper positions(env, positions_ref, positionsOffset, 0); in util_computeBoundingSphere() local 336 bool checkOK = positions.check() && sphere.check(); in util_computeBoundingSphere() 341 positions.bind(); in util_computeBoundingSphere() 349 const float* pSrc = positions.mData; in util_computeBoundingSphere() 540 FloatArrayHelper positions(env, positions_ref, positionsOffset, 0); in util_visibilityTest() local 543 bool checkOK = ws.check() && positions.check() && indices.check(); in util_visibilityTest() 555 positions.bind(); in util_visibilityTest() 559 positions.mData, positions.mLength, in util_visibilityTest()
|