/frameworks/base/graphics/java/android/graphics/ |
H A D | SweepGradient.java | 28 * @param positions May be NULL. The relative position of 32 * If positions is NULL, then the colors are automatically 36 int colors[], float positions[]) { 40 if (positions != null && colors.length != positions.length) { 44 native_instance = nativeCreate1(cx, cy, colors, positions); 45 native_shader = nativePostCreate1(native_instance, cx, cy, colors, positions); 61 private static native int nativeCreate1(float x, float y, int colors[], float positions[]); argument 65 int[] colors, float[] positions); 35 SweepGradient(float cx, float cy, int colors[], float positions[]) argument 64 nativePostCreate1(int native_shader, float cx, float cy, int[] colors, float[] positions) argument
|
H A D | LinearGradient.java | 26 @param positions May be null. The relative positions [0..1] of 31 public LinearGradient(float x0, float y0, float x1, float y1, int colors[], float positions[], argument 36 if (positions != null && colors.length != positions.length) { 39 native_instance = nativeCreate1(x0, y0, x1, y1, colors, positions, tile.nativeInt); 40 native_shader = nativePostCreate1(native_instance, x0, y0, x1, y1, colors, positions, 61 int colors[], float positions[], int tileMode); 65 int colors[], float positions[], int tileMode); 60 nativeCreate1(float x0, float y0, float x1, float y1, int colors[], float positions[], int tileMode) argument 64 nativePostCreate1(int native_shader, float x0, float y0, float x1, float y1, int colors[], float positions[], int tileMode) argument
|
H A D | RadialGradient.java | 26 @param positions May be NULL. The relative position of 32 int colors[], float positions[], TileMode tile) { 39 if (positions != null && colors.length != positions.length) { 42 native_instance = nativeCreate1(x, y, radius, colors, positions, tile.nativeInt); 43 native_shader = nativePostCreate1(native_instance, x, y, radius, colors, positions, 66 int colors[], float positions[], int tileMode); 71 int colors[], float positions[], int tileMode); 31 RadialGradient(float x, float y, float radius, int colors[], float positions[], TileMode tile) argument 65 nativeCreate1(float x, float y, float radius, int colors[], float positions[], int tileMode) argument 70 nativePostCreate1(int native_shader, float x, float y, float radius, int colors[], float positions[], int tileMode) argument
|
/frameworks/base/libs/hwui/ |
H A D | GradientCache.h | 38 positions = NULL; 41 GradientCacheEntry(uint32_t* colors, float* positions, int count) { argument 42 copy(colors, positions, count); 46 copy(entry.colors, entry.positions, entry.count); 51 delete[] positions; 57 delete[] positions; 59 copy(entry.colors, entry.positions, entry.count); 71 result = memcmp(positions, rhs.positions, count * sizeof(float)); 79 float* positions; member in struct:android::uirenderer::GradientCacheEntry 85 copy(uint32_t* colors, float* positions, int count) argument [all...] |
H A D | TextDropShadowCache.cpp | 105 int numGlyphs, uint32_t radius, const float* positions) { 106 ShadowText entry(paint, radius, len, text, positions); 113 len, numGlyphs, radius, positions); 104 get(SkPaint* paint, const char* text, uint32_t len, int numGlyphs, uint32_t radius, const float* positions) argument
|
H A D | TextDropShadowCache.h | 39 const float* positions): 40 radius(radius), len(len), positions(positions) { 70 const float* positions; member in struct:android::uirenderer::ShadowText 77 if (positions != NULL) { 79 positionsCopy.appendArray(positions, len); 80 positions = positionsCopy.array(); 94 if (cmp == 0 && rhs.positions != NULL) { 95 if (positions == NULL) return true; 96 return memcmp(positions, rh 38 ShadowText(SkPaint* paint, uint32_t radius, uint32_t len, const char* srcText, const float* positions) argument [all...] |
H A D | GradientCache.cpp | 114 Texture* GradientCache::get(uint32_t* colors, float* positions, int count) { argument 116 GradientCacheEntry gradient(colors, positions, count); 120 texture = addLinearGradient(gradient, colors, positions, count); 151 uint32_t* colors, float* positions, int count) { 168 generateTexture(colors, positions, count, texture); 176 void GradientCache::generateTexture(uint32_t* colors, float* positions, argument 195 float start = positions[0]; 196 float distance = positions[1] - start; 201 if (pos > positions[currentPos]) { 206 start = positions[currentPo 150 addLinearGradient(GradientCacheEntry& gradient, uint32_t* colors, float* positions, int count) argument [all...] |
H A D | SkiaShader.cpp | 182 float* positions, int count, SkShader* key, SkShader::TileMode tileMode, 185 mBounds(bounds), mColors(colors), mPositions(positions), mCount(count) { 261 uint32_t* colors, float* positions, int count, SkShader* key, SkShader::TileMode tileMode, 263 SkiaSweepGradientShader(kCircularGradient, x, y, colors, positions, count, key, 300 float* positions, int count, SkShader* key, SkMatrix* matrix, bool blend): 303 mColors(colors), mPositions(positions), mCount(count) { 314 float* positions, int count, SkShader* key, SkShader::TileMode tileMode, 317 mColors(colors), mPositions(positions), mCount(count) { 181 SkiaLinearGradientShader(float* bounds, uint32_t* colors, float* positions, int count, SkShader* key, SkShader::TileMode tileMode, SkMatrix* matrix, bool blend) argument 260 SkiaCircularGradientShader(float x, float y, float radius, uint32_t* colors, float* positions, int count, SkShader* key, SkShader::TileMode tileMode, SkMatrix* matrix, bool blend) argument 299 SkiaSweepGradientShader(float x, float y, uint32_t* colors, float* positions, int count, SkShader* key, SkMatrix* matrix, bool blend) argument 313 SkiaSweepGradientShader(Type type, float x, float y, uint32_t* colors, float* positions, int count, SkShader* key, SkShader::TileMode tileMode, SkMatrix* matrix, bool blend) argument
|
H A D | FontRenderer.cpp | 488 uint32_t startIndex, uint32_t len, int numGlyphs, uint32_t radius, const float* positions) { 506 mCurrentFont->measure(paint, text, startIndex, len, numGlyphs, &bounds, positions); 520 Font::BITMAP, dataBuffer, paddedWidth, paddedHeight, NULL, positions); 586 const float* positions, Rect* bounds) { 593 mCurrentFont->render(paint, text, startIndex, len, numGlyphs, x, y, positions); 487 renderDropShadow(SkPaint* paint, const char *text, uint32_t startIndex, uint32_t len, int numGlyphs, uint32_t radius, const float* positions) argument 584 renderPosText(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) argument
|
H A D | DisplayListRenderer.cpp | 617 float* positions = getFloats(positionsCount); local 629 float* positions = getFloats(positionsCount); local 1257 float* positions = getFloats(positionsCount); local 1262 positions, paint); 1271 float* positions = getFloats(positionsCount); local 1277 x, y, positions, paint, length); 1767 const float* positions, SkPaint* paint) { 1772 addFloats(positions, count * 2); 1781 float x, float y, const float* positions, SkPaint* paint, float length) { 1806 addFloats(positions, coun 1766 drawPosText(const char* text, int bytesCount, int count, const float* positions, SkPaint* paint) argument 1780 drawText(const char* text, int bytesCount, int count, float x, float y, const float* positions, SkPaint* paint, float length) argument [all...] |
H A D | OpenGLRenderer.cpp | 2500 const float* positions, FontRenderer& fontRenderer, int alpha, SkXfermode::Mode mode, 2508 paint, text, bytesCount, count, mShadowRadius, positions); 2538 const float* positions, SkPaint* paint) { 2566 drawTextShadow(paint, text, bytesCount, count, positions, fontRenderer, alpha, mode, 2599 positions, hasActiveLayer ? &bounds : NULL)) { 2612 float x, float y, const float* positions, SkPaint* paint, float length) { 2658 drawTextShadow(paint, text, bytesCount, count, positions, fontRenderer, alpha, mode, 2699 positions, hasActiveLayer ? &bounds : NULL); 2702 positions, hasActiveLayer ? &bounds : NULL); 2499 drawTextShadow(SkPaint* paint, const char* text, int bytesCount, int count, const float* positions, FontRenderer& fontRenderer, int alpha, SkXfermode::Mode mode, float x, float y) argument 2537 drawPosText(const char* text, int bytesCount, int count, const float* positions, SkPaint* paint) argument 2611 drawText(const char* text, int bytesCount, int count, float x, float y, const float* positions, SkPaint* paint, float length) argument
|
/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/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 | SweepGradient_Delegate.java | 55 /*package*/ static int nativeCreate1(float x, float y, int colors[], float positions[]) { argument 56 SweepGradient_Delegate newDelegate = new SweepGradient_Delegate(x, y, colors, positions); 62 return nativeCreate1(x, y, new int[] { color0, color1 }, null /*positions*/); 67 int[] colors, float[] positions) { 88 * @param positions May be NULL. The relative position of 92 * If positions is NULL, then the colors are automatically 96 int colors[], float positions[]) { 97 super(colors, positions); 107 float[] positions) { 108 super(colors, positions, nul 66 nativePostCreate1(int native_shader, float cx, float cy, int[] colors, float[] positions) argument 95 SweepGradient_Delegate(float cx, float cy, int colors[], float positions[]) argument 106 SweepGradientPaint(float cx, float cy, int[] colors, float[] positions) argument [all...] |
H A D | LinearGradient_Delegate.java | 59 int colors[], float positions[], int tileMode) { 61 colors, positions, Shader_Delegate.getTileMode(tileMode)); 70 x0, y0, x1, y1, new int[] { color0, color1}, null /*positions*/, 77 int colors[], float positions[], int tileMode) { 100 * @param positions May be null. The relative positions [0..1] of each 106 int colors[], float positions[], TileMode tile) { 107 super(colors, positions); 126 float positions[], TileMode tile) { 127 super(colors, positions, til 57 nativeCreate1(LinearGradient thisGradient, float x0, float y0, float x1, float y1, int colors[], float positions[], int tileMode) argument 75 nativePostCreate1(LinearGradient thisGradient, int native_shader, float x0, float y0, float x1, float y1, int colors[], float positions[], int tileMode) argument 105 LinearGradient_Delegate(float x0, float y0, float x1, float y1, int colors[], float positions[], TileMode tile) argument 125 LinearGradientPaint(float x0, float y0, float x1, float y1, int colors[], float positions[], TileMode tile) argument [all...] |
H A D | RadialGradient_Delegate.java | 58 int colors[], float positions[], int tileMode) { 60 colors, positions, Shader_Delegate.getTileMode(tileMode)); 67 return nativeCreate1(x, y, radius, new int[] { color0, color1 }, null /*positions*/, 73 int colors[], float positions[], int tileMode) { 96 * @param positions May be NULL. The relative position of each corresponding 101 private RadialGradient_Delegate(float x, float y, float radius, int colors[], float positions[], argument 103 super(colors, positions); 114 int[] colors, float[] positions, TileMode mode) { 115 super(colors, positions, mode); 57 nativeCreate1(float x, float y, float radius, int colors[], float positions[], int tileMode) argument 72 nativePostCreate1(int native_shader, float x, float y, float radius, int colors[], float positions[], int tileMode) argument 113 RadialGradientPaint(float x, float y, float radius, int[] colors, float[] positions, TileMode mode) argument
|
/frameworks/base/include/androidfw/ |
H A D | VelocityTracker.h | 79 // The idBits bitfield specifies the pointer ids of the pointers whose positions 81 // The positions array contains position information for each pointer in order by 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 in struct:android::LeastSquaresVelocityTrackerStrategy::Movement 181 return positions[idBits.getIndexOfBit(id)]; 206 const VelocityTracker::Position* positions); 240 const VelocityTracker::Position* positions); 256 VelocityTracker::Position positions[MAX_POINTER member in struct:android::LegacyVelocityTrackerStrategy::Movement [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/libs/androidfw/ |
H A D | VelocityTracker.cpp | 221 void VelocityTracker::addMovement(nsecs_t eventTime, BitSet32 idBits, const Position* positions) { argument 243 mStrategy->addMovement(eventTime, idBits, positions); 256 id, positions[index].x, positions[index].y, 314 Position positions[pointerCount]; local 321 positions[index].x = event->getHistoricalX(i, h); 322 positions[index].y = event->getHistoricalY(i, h); 324 addMovement(eventTime, idBits, positions); 330 positions[index].x = event->getX(i); 331 positions[inde 377 addMovement(nsecs_t eventTime, BitSet32 idBits, const VelocityTracker::Position* positions) argument 711 addMovement(nsecs_t eventTime, BitSet32 idBits, const VelocityTracker::Position* positions) argument 833 addMovement(nsecs_t eventTime, BitSet32 idBits, const VelocityTracker::Position* positions) argument [all...] |
/frameworks/base/libs/hwui/font/ |
H A D | Font.cpp | 198 int numGlyphs, int x, int y, const float* positions) { 200 0, 0, NULL, positions); 254 int numGlyphs, Rect *bounds, const float* positions) { 260 render(paint, text, start, len, numGlyphs, 0, 0, MEASURE, NULL, 0, 0, bounds, positions); 286 uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* positions) { 301 if (CC_LIKELY(positions == NULL)) { 322 bitmap, bitmapW, bitmapH, bounds, positions); 345 int penX = x + positions[(glyphsCount << 1)]; 346 int penY = y + positions[(glyphsCount << 1) + 1]; 361 bitmap, bitmapW, bitmapH, bounds, positions); 197 render(SkPaint* paint, const char *text, uint32_t start, uint32_t len, int numGlyphs, int x, int y, const float* positions) argument 253 measure(SkPaint* paint, const char* text, uint32_t start, uint32_t len, int numGlyphs, Rect *bounds, const float* positions) argument 284 render(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 [all...] |
/frameworks/base/core/jni/ |
H A D | android_view_GLES20Canvas.cpp | 535 const float* positions = value->getPos(); local 538 positions, paint, totalAdvance); 566 const float* positions = value->getPos(); local 569 positions, paint, totalAdvance); 629 const jfloat* positions, jint dirFlags, SkPaint* paint) { 640 renderer->drawPosText((const char*) glyphs, bytesCount, glyphsCount, positions, paint); 647 jfloat* positions = env->GetFloatArrayElements(pos, NULL); local 649 renderPosText(renderer, textArray + index, count, positions, kBidi_LTR, paint); 651 env->ReleaseFloatArrayElements(pos, positions, JNI_ABORT); 659 jfloat* positions local 628 renderPosText(OpenGLRenderer* renderer, const jchar* text, int count, const jfloat* positions, jint dirFlags, SkPaint* paint) argument [all...] |
/frameworks/base/services/input/ |
H A D | InputReader.cpp | 3914 // pointer positions at the same time as other pointers that have just gone up. 4325 // pointer positions at the same time as other pointers that have just gone up. 4536 VelocityTracker::Position positions[MAX_POINTERS]; local 4541 positions[count].x = pointer.x * mPointerXMovementScale; 4542 positions[count].y = pointer.y * mPointerYMovementScale; 4545 mCurrentFingerIdBits, positions);
|