/frameworks/base/core/jni/android/opengl/ |
H A D | util.cpp | 333 FloatArrayHelper positions(env, positions_ref, positionsOffset, 0); 336 bool checkOK = positions.check() && sphere.check(); 341 positions.bind(); 349 const float* pSrc = positions.mData; 529 float[] positions, int positionsOffset, 540 FloatArrayHelper positions(env, positions_ref, positionsOffset, 0); 543 bool checkOK = ws.check() && positions.check() && indices.check(); 555 positions.bind(); 559 positions.mData, positions [all...] |
/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | ListScenario.java | 178 * Set positions as unselectable (a.k.a a separator) 180 public Params setPositionsUnselectable(int ...positions) { argument 181 for (int pos : positions) {
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | LinearGradient.java | 47 @param positions May be null. The relative positions [0..1] of 52 public LinearGradient(float x0, float y0, float x1, float y1, int colors[], float positions[], argument 57 if (positions != null && colors.length != positions.length) { 66 mPositions = positions; 68 init(nativeCreate1(x0, y0, x1, y1, colors, positions, tile.nativeInt)); 109 "colors and positions or start color and end color"); 116 int colors[], float positions[], int tileMode); 115 nativeCreate1(float x0, float y0, float x1, float y1, int colors[], float positions[], int tileMode) argument
|
H A D | RadialGradient.java | 114 "colors and positions or center color and edge color"); 121 int colors[], float positions[], int tileMode); 120 nativeCreate1(float x, float y, float radius, int colors[], float positions[], int tileMode) argument
|
H A D | SweepGradient.java | 44 * @param positions May be NULL. The relative position of 48 * If positions is NULL, then the colors are automatically 52 int colors[], float positions[]) { 56 if (positions != null && colors.length != positions.length) { 64 mPositions = positions; 65 init(nativeCreate1(cx, cy, colors, positions)); 101 "colors and positions or start color and end color"); 107 private static native long nativeCreate1(float x, float y, int colors[], float positions[]); argument 51 SweepGradient(float cx, float cy, int colors[], float positions[]) argument
|
/frameworks/base/libs/hwui/ |
H A 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, 162 * Specifies if the positions passed to ::drawText are absolute or relative
|
H A D | DisplayListCanvas.cpp | 297 // effectively calculates positions relative to src rect space 438 void DisplayListCanvas::drawPosText(const uint16_t* text, const float* positions, argument 443 positions = refBuffer<float>(positions, count * 2); 446 bytesCount, count, positions, refPaint(&paint)); 460 void DisplayListCanvas::drawText(const uint16_t* glyphs, const float* positions, argument 469 positions = refBuffer<float>(positions, count * 2); 483 x, y, positions, outlinePaint, totalAdvance, bounds)); // bounds? 490 x, y, positions, innerPain [all...] |
H A D | DisplayListCanvas.h | 231 virtual void drawText(const uint16_t* glyphs, const float* positions, int count, 234 virtual void drawPosText(const uint16_t* text, const float* positions, int count,
|
H A D | DisplayListOp.h | 1305 const float* positions, const SkPaint* paint) 1306 : DrawSomeTextOp(text, bytesCount, count, paint), mPositions(positions) { 1323 const float* positions, const SkPaint* paint, float totalAdvance, const Rect& bounds) 1325 mX(x), mY(y), mPositions(positions), mTotalAdvance(totalAdvance) { 1304 DrawPosTextOp(const char* text, int bytesCount, int count, const float* positions, const SkPaint* paint) argument 1322 DrawTextOp(const char* text, int bytesCount, int count, float x, float y, const float* positions, const SkPaint* paint, float totalAdvance, const Rect& bounds) argument
|
H A D | FontRenderer.cpp | 558 uint32_t startIndex, uint32_t len, int numGlyphs, float radius, const float* positions) { 577 mCurrentFont->measure(paint, text, startIndex, len, numGlyphs, &bounds, positions); 610 Font::BITMAP, dataBuffer, paddedWidth, paddedHeight, nullptr, positions); 655 const float* positions, Rect* bounds, TextDrawFunctor* functor, bool forceFinish) { 662 mCurrentFont->render(paint, text, startIndex, len, numGlyphs, x, y, positions); 557 renderDropShadow(const SkPaint* paint, const char *text, uint32_t startIndex, uint32_t len, int numGlyphs, float radius, const float* positions) argument 653 renderPosText(const SkPaint* paint, const Rect* clip, const char *text, uint32_t startIndex, uint32_t len, int numGlyphs, int x, int y, const float* positions, Rect* bounds, TextDrawFunctor* functor, bool forceFinish) argument
|
H A 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);
|
H A D | GradientCache.cpp | 46 hash = JenkinsHashMix(hash, android::hash_type(positions[i])); 58 return memcmp(lhs.positions.get(), rhs.positions.get(), lhs.count * sizeof(float)); 125 Texture* GradientCache::get(uint32_t* colors, float* positions, int count) { argument 126 GradientCacheEntry gradient(colors, positions, count); 130 texture = addLinearGradient(gradient, colors, positions, count); 164 uint32_t* colors, float* positions, int count) { 181 generateTexture(colors, positions, texture); 234 void GradientCache::generateTexture(uint32_t* colors, float* positions, Texture* texture) { argument 258 float startPos = positions[ 163 addLinearGradient(GradientCacheEntry& gradient, uint32_t* colors, float* positions, int count) argument [all...] |
H A D | GradientCache.h | 39 positions = nullptr; 42 GradientCacheEntry(uint32_t* colors, float* positions, uint32_t count) { argument 43 copy(colors, positions, count); 47 copy(entry.colors.get(), entry.positions.get(), entry.count); 52 copy(entry.colors.get(), entry.positions.get(), entry.count); 71 std::unique_ptr<float[]> positions; member in struct:android::uirenderer::GradientCacheEntry 75 void copy(uint32_t* colors, float* positions, uint32_t count) { argument 78 this->positions.reset(new float[count]); 81 memcpy(this->positions.get(), positions, coun [all...] |
H A D | OpenGLRenderer.cpp | 2023 int bytesCount, int count, const float* positions, 2036 paint, text, bytesCount, count, textShadow.radius, positions); 2063 const float* positions, const SkPaint* paint) { 2091 drawTextShadow(paint, text, bytesCount, count, positions, fontRenderer, 2107 positions, hasLayer() ? &bounds : nullptr, &functor)) { 2207 const float* positions, const SkPaint* paint, float totalAdvance, const Rect& bounds, 2238 drawTextShadow(paint, text, bytesCount, count, positions, fontRenderer, 2275 positions, hasActiveLayer ? &layerBounds : nullptr, &functor, forceFinish); 2278 positions, hasActiveLayer ? &layerBounds : nullptr, &functor, forceFinish); 2022 drawTextShadow(const SkPaint* paint, const char* text, int bytesCount, int count, const float* positions, FontRenderer& fontRenderer, int alpha, float x, float y) argument 2062 drawPosText(const char* text, int bytesCount, int count, const float* positions, const SkPaint* paint) argument 2206 drawText(const char* text, int bytesCount, int count, float x, float y, const float* positions, const SkPaint* paint, float totalAdvance, const Rect& bounds, DrawOpMode drawOpMode) argument
|
H A D | OpenGLRenderer.h | 217 const float* positions, const SkPaint* paint); 219 const float* positions, const SkPaint* paint, float totalAdvance, const Rect& bounds, 752 * Draws shadow layer on text (with optional positions). 758 * @param positions The x, y positions of individual glyphs (or NULL) 765 const float* positions, FontRenderer& fontRenderer, int alpha,
|
H A 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, argument 680 mCanvas->drawPosText(text, count << 1, reinterpret_cast<const SkPoint*>(positions), paintCopy); 683 void SkiaCanvas::drawPosText(const uint16_t* text, const float* positions, int count, int posCount, argument 688 posPtr[indx].fX = positions[indx << 1]; 689 posPtr[indx].fY = positions[(indx << 1) + 1];
|
H A D | TextDropShadowCache.cpp | 47 if (positions) { 49 hash = JenkinsHashMix(hash, android::hash_type(positions[i])); 85 if (lhs.positions != rhs.positions) { 86 if (!lhs.positions) return -1; 87 if (!rhs.positions) return +1; 89 return memcmp(lhs.positions, rhs.positions, lhs.len << 2); 174 int numGlyphs, float radius, const float* positions) { 175 ShadowText entry(paint, radius, len, text, positions); 173 get(const SkPaint* paint, const char* text, uint32_t len, int numGlyphs, float radius, const float* positions) argument [all...] |
H A D | TextDropShadowCache.h | 38 flags(0), italicStyle(0.0f), scaleX(0), text(nullptr), positions(nullptr) { 43 const float* positions): 44 len(len), radius(radius), positions(positions) { 79 if (positions != nullptr) { 81 positionsCopy.appendArray(positions, charCount * 2); 82 positions = positionsCopy.array(); 94 const float* positions; member in struct:android::uirenderer::ShadowText 140 int numGlyphs, float radius, const float* positions); 42 ShadowText(const SkPaint* paint, float radius, uint32_t len, const char* srcText, const float* positions) argument
|
/frameworks/base/libs/hwui/font/ |
H A D | Font.cpp | 300 int numGlyphs, int x, int y, const float* positions) { 302 0, 0, nullptr, positions); 356 int numGlyphs, Rect *bounds, const float* positions) { 362 render(paint, text, start, len, numGlyphs, 0, 0, MEASURE, nullptr, 0, 0, bounds, positions); 388 uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* positions) { 419 int penX = x + (int) roundf(positions[(glyphsCount << 1)]); 420 int penY = y + (int) roundf(positions[(glyphsCount << 1) + 1]); 423 bitmap, bitmapW, bitmapH, bounds, positions); 299 render(const SkPaint* paint, const char *text, uint32_t start, uint32_t len, int numGlyphs, int x, int y, const float* positions) argument 355 measure(const SkPaint* paint, const char* text, uint32_t start, uint32_t len, int numGlyphs, Rect *bounds, const float* positions) argument 386 render(const SkPaint* paint, const char* text, uint32_t start, uint32_t len, int numGlyphs, int x, int y, RenderMode mode, uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* positions) argument
|
H A 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);
|
/frameworks/base/opengl/java/android/opengl/ |
H A D | Visibility.java | 32 * @param positions the vertex positions (x, y, z). 33 * @param positionsOffset the index in the positions array where the data 46 * positions is null, positionsOffset < 0, indices is null, 50 float[] positions, int positionsOffset, char[] indices, 110 * @param positions positions in x, y, z triples 111 * @param positionsOffset offset into positions array 116 * @throws IllegalArgumentException if positions is null, 117 * positionsOffset < 0, positionsOffset > positions 49 visibilityTest(float[] ws, int wsOffset, float[] positions, int positionsOffset, char[] indices, int indicesOffset, int indexCount) argument 120 computeBoundingSphere(float[] positions, int positionsOffset, int positionsCount, float[] sphere, int sphereOffset) argument [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | GradientStopsActivity.java | 46 float[] positions = new float[] { 0.3f, 0.6f }; 48 colors, positions, Shader.TileMode.CLAMP); 56 positions = new float[] { 0.3f, 0.6f, 1.0f }; 58 colors, positions, Shader.TileMode.CLAMP); 66 positions = new float[] { 0.0f, 0.3f, 0.6f }; 68 colors, positions, Shader.TileMode.CLAMP);
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Gradient_Delegate.java | 45 * @param positions May be null. The relative positions [0..1] of each 49 protected Gradient_Delegate(int colors[], float positions[]) { argument 53 if (positions != null && colors.length != positions.length) { 57 if (positions == null) { 59 positions = new float[colors.length]; 60 positions[0] = 0.f; 61 positions[colors.length-1] = 1.f; 63 positions[ 84 GradientPaint(int[] colors, float[] positions, TileMode tileMode) argument [all...] |
H A D | LinearGradient_Delegate.java | 61 int colors[], float positions[], int tileMode) { 63 colors, positions, Shader_Delegate.getTileMode(tileMode)); 72 x0, y0, x1, y1, new int[] { color0, color1}, null /*positions*/, 86 * @param positions May be null. The relative positions [0..1] of each 92 int colors[], float positions[], TileMode tile) { 93 super(colors, positions); 112 float positions[], TileMode tile) { 113 super(colors, positions, tile); 59 nativeCreate1(LinearGradient thisGradient, float x0, float y0, float x1, float y1, int colors[], float positions[], int tileMode) argument 91 LinearGradient_Delegate(float x0, float y0, float x1, float y1, int colors[], float positions[], TileMode tile) argument 111 LinearGradientPaint(float x0, float y0, float x1, float y1, int colors[], float positions[], TileMode tile) argument
|
H A D | RadialGradient_Delegate.java | 60 int colors[], float positions[], int tileMode) { 62 colors, positions, Shader_Delegate.getTileMode(tileMode)); 69 return nativeCreate1(x, y, radius, new int[] { color0, color1 }, null /*positions*/, 84 * @param positions May be NULL. The relative position of each corresponding 89 private RadialGradient_Delegate(float x, float y, float radius, int colors[], float positions[], argument 91 super(colors, positions); 102 int[] colors, float[] positions, TileMode mode) { 103 super(colors, positions, mode); 59 nativeCreate1(float x, float y, float radius, int colors[], float positions[], int tileMode) argument 101 RadialGradientPaint(float x, float y, float radius, int[] colors, float[] positions, TileMode mode) argument
|