/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/graphics/java/android/graphics/ |
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 native_instance = nativeCreate1(cx, cy, colors, positions); 66 native_shader = nativePostCreate1(native_instance, cx, cy, colors, positions); 103 "colors and positions or start color and end color"); 109 private static native int nativeCreate1(float x, float y, int colors[], float positions[]); argument 51 SweepGradient(float cx, float cy, int colors[], float positions[]) argument 112 nativePostCreate1(int native_shader, float cx, float cy, int[] colors, float[] positions) argument [all...] |
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 native_instance = nativeCreate1(x0, y0, x1, y1, colors, positions, tile.nativeInt); 69 native_shader = nativePostCreate1(native_instance, x0, y0, x1, y1, colors, positions, 113 "colors and positions or start color and end color"); 120 int colors[], float positions[], in 119 nativeCreate1(float x0, float y0, float x1, float y1, int colors[], float positions[], int tileMode) argument 123 nativePostCreate1(int native_shader, float x0, float y0, float x1, float y1, int colors[], float positions[], int tileMode) argument [all...] |
H A D | RadialGradient.java | 45 @param positions May be NULL. The relative position of 51 int colors[], float positions[], TileMode tile) { 58 if (positions != null && colors.length != positions.length) { 66 mPositions = positions; 68 native_instance = nativeCreate1(x, y, radius, colors, positions, tile.nativeInt); 69 native_shader = nativePostCreate1(native_instance, x, y, radius, colors, positions, 114 "colors and positions or center color and edge color"); 121 int colors[], float positions[], int tileMode); 126 int colors[], float positions[], in 50 RadialGradient(float x, float y, float radius, int colors[], float positions[], TileMode tile) argument 120 nativeCreate1(float x, float y, float radius, int colors[], float positions[], int tileMode) argument 125 nativePostCreate1(int native_shader, float x, float y, float radius, int colors[], float positions[], int tileMode) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | GradientCache.h | 37 positions = NULL; 40 GradientCacheEntry(uint32_t* colors, float* positions, uint32_t count) { argument 41 copy(colors, positions, count); 45 copy(entry.colors, entry.positions, entry.count); 50 delete[] positions; 56 delete[] positions; 58 copy(entry.colors, entry.positions, entry.count); 77 float* positions; member in struct:android::uirenderer::GradientCacheEntry 81 void copy(uint32_t* colors, float* positions, uint32_t count) { argument 84 this->positions [all...] |
H A D | TextDropShadowCache.h | 37 flags(0), italicStyle(0.0f), scaleX(0), text(NULL), positions(NULL) { 42 const float* positions): 43 len(len), radius(radius), positions(positions) { 78 if (positions != NULL) { 80 positionsCopy.appendArray(positions, charCount * 2); 81 positions = positionsCopy.array(); 93 const float* positions; member in struct:android::uirenderer::ShadowText 139 int numGlyphs, float radius, const float* positions); 41 ShadowText(SkPaint* paint, float radius, uint32_t len, const char* srcText, const float* positions) argument
|
H A D | TextDropShadowCache.cpp | 45 if (positions) { 47 hash = JenkinsHashMix(hash, android::hash_type(positions[i])); 83 if (lhs.positions != rhs.positions) { 84 if (!lhs.positions) return -1; 85 if (!rhs.positions) return +1; 87 return memcmp(lhs.positions, rhs.positions, lhs.len << 2); 172 int numGlyphs, float radius, const float* positions) { 173 ShadowText entry(paint, radius, len, text, positions); 171 get(SkPaint* paint, const char* text, uint32_t len, int numGlyphs, float radius, const float* positions) argument [all...] |
H A D | GradientCache.cpp | 46 hash = JenkinsHashMix(hash, android::hash_type(positions[i])); 58 return memcmp(lhs.positions, rhs.positions, lhs.count * sizeof(float)); 132 Texture* GradientCache::get(uint32_t* colors, float* positions, int count) { argument 133 GradientCacheEntry gradient(colors, positions, count); 137 texture = addLinearGradient(gradient, colors, positions, count); 171 uint32_t* colors, float* positions, int count) { 188 generateTexture(colors, positions, count, texture); 241 void GradientCache::generateTexture(uint32_t* colors, float* positions, argument 266 float startPos = positions[ 170 addLinearGradient(GradientCacheEntry& gradient, uint32_t* colors, float* positions, int count) argument [all...] |
H A 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,
|
H A D | DisplayListRenderer.cpp | 410 const float* positions, SkPaint* paint) { 414 positions = refBuffer<float>(positions, count * 2); 417 DrawOp* op = new (alloc()) DrawPosTextOp(text, bytesCount, count, positions, paint); 423 float x, float y, const float* positions, SkPaint* paint, 429 positions = refBuffer<float>(positions, count * 2); 433 x, y, positions, paint, totalAdvance, bounds); 409 drawPosText(const char* text, int bytesCount, int count, const float* positions, SkPaint* paint) argument 422 drawText(const char* text, int bytesCount, int count, float x, float y, const float* positions, SkPaint* paint, float totalAdvance, const Rect& bounds, DrawOpMode drawOpMode) argument
|
H A D | SkiaShader.cpp | 186 float* positions, int count, SkShader* key, SkShader::TileMode tileMode, 189 mBounds(bounds), mColors(colors), mPositions(positions), mCount(count) { 265 uint32_t* colors, float* positions, int count, SkShader* key, SkShader::TileMode tileMode, 267 SkiaSweepGradientShader(kCircularGradient, x, y, colors, positions, count, key, 304 float* positions, int count, SkShader* key, SkMatrix* matrix, bool blend): 307 mColors(colors), mPositions(positions), mCount(count) { 318 float* positions, int count, SkShader* key, SkShader::TileMode tileMode, 321 mColors(colors), mPositions(positions), mCount(count) { 185 SkiaLinearGradientShader(float* bounds, uint32_t* colors, float* positions, int count, SkShader* key, SkShader::TileMode tileMode, SkMatrix* matrix, bool blend) argument 264 SkiaCircularGradientShader(float x, float y, float radius, uint32_t* colors, float* positions, int count, SkShader* key, SkShader::TileMode tileMode, SkMatrix* matrix, bool blend) argument 303 SkiaSweepGradientShader(float x, float y, uint32_t* colors, float* positions, int count, SkShader* key, SkMatrix* matrix, bool blend) argument 317 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.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);
|
H A D | FontRenderer.cpp | 594 uint32_t startIndex, uint32_t len, int numGlyphs, uint32_t radius, const float* positions) { 613 mCurrentFont->measure(paint, text, startIndex, len, numGlyphs, &bounds, positions); 645 Font::BITMAP, dataBuffer, paddedWidth, paddedHeight, NULL, positions); 689 const float* positions, Rect* bounds, Functor* functor, bool forceFinish) { 696 mCurrentFont->render(paint, text, startIndex, len, numGlyphs, x, y, positions); 593 renderDropShadow(SkPaint* paint, const char *text, uint32_t startIndex, uint32_t len, int numGlyphs, uint32_t radius, const float* positions) argument 687 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, Functor* functor, bool forceFinish) argument
|
/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 | 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
|
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...] |
/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/native/include/input/ |
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/native/libs/input/ |
H A D | VelocityTracker.cpp | 220 void VelocityTracker::addMovement(nsecs_t eventTime, BitSet32 idBits, const Position* positions) { argument 242 mStrategy->addMovement(eventTime, idBits, positions); 255 id, positions[index].x, positions[index].y, 313 Position positions[pointerCount]; local 320 positions[index].x = event->getHistoricalX(i, h); 321 positions[index].y = event->getHistoricalY(i, h); 323 addMovement(eventTime, idBits, positions); 329 positions[index].x = event->getX(i); 330 positions[inde 376 addMovement(nsecs_t eventTime, BitSet32 idBits, const VelocityTracker::Position* positions) argument 710 addMovement(nsecs_t eventTime, BitSet32 idBits, const VelocityTracker::Position* positions) argument 832 addMovement(nsecs_t eventTime, BitSet32 idBits, const VelocityTracker::Position* positions) argument [all...] |
/frameworks/base/libs/hwui/font/ |
H A D | Font.h | 80 int numGlyphs, int x, int y, const float* positions); 112 uint32_t bitmapW, uint32_t bitmapH, Rect *bounds, const float* positions); 115 int numGlyphs, Rect *bounds, const float* positions);
|
H A D | Font.cpp | 286 int numGlyphs, int x, int y, const float* positions) { 288 0, 0, NULL, positions); 342 int numGlyphs, Rect *bounds, const float* positions) { 348 render(paint, text, start, len, numGlyphs, 0, 0, MEASURE, NULL, 0, 0, bounds, positions); 374 uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* positions) { 407 float penX = x + positions[(glyphsCount << 1)]; 408 float penY = y + positions[(glyphsCount << 1) + 1]; 411 bitmap, bitmapW, bitmapH, bounds, positions); 285 render(SkPaint* paint, const char *text, uint32_t start, uint32_t len, int numGlyphs, int x, int y, const float* positions) argument 341 measure(SkPaint* paint, const char* text, uint32_t start, uint32_t len, int numGlyphs, Rect *bounds, const float* positions) argument 372 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
|
/frameworks/base/core/jni/android/opengl/ |
H A D | util.cpp | 238 FloatArrayHelper positions(env, positions_ref, positionsOffset, 0); 241 bool checkOK = positions.check() && sphere.check(); 246 positions.bind(); 254 const float* pSrc = positions.mData; 434 float[] positions, int positionsOffset, 445 FloatArrayHelper positions(env, positions_ref, positionsOffset, 0); 448 bool checkOK = ws.check() && positions.check() && indices.check(); 460 positions.bind(); 464 positions.mData, positions [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | TextLayoutCache.cpp | 661 hb_glyph_position_t* positions = hb_buffer_get_glyph_positions(buffer, NULL); local 667 HBFixedToFloat(positions[i].x_advance), 668 HBFixedToFloat(positions[i].x_offset), 669 HBFixedToFloat(positions[i].y_offset)); 733 hb_glyph_position_t* positions = hb_buffer_get_glyph_positions(mBuffer, NULL); local 747 float xAdvance = HBFixedToFloat(positions[i].x_advance); 751 float xo = HBFixedToFloat(positions[i].x_offset); 752 float yo = -HBFixedToFloat(positions[i].y_offset);
|
/frameworks/base/core/jni/ |
H A D | android_view_GLES20Canvas.cpp | 614 const float* positions = value->getPos(); local 621 x, y, positions, paint, totalAdvance, bounds); 650 const float* positions = value->getPos(); local 657 x, y, positions, paint, totalAdvance, bounds); 717 const jfloat* positions, jint dirFlags, SkPaint* paint) { 728 renderer->drawPosText((const char*) glyphs, bytesCount, glyphsCount, positions, paint); 735 jfloat* positions = env->GetFloatArrayElements(pos, NULL); local 737 renderPosText(renderer, textArray + index, count, positions, kBidi_LTR, paint); 739 env->ReleaseFloatArrayElements(pos, positions, JNI_ABORT); 747 jfloat* positions local 716 renderPosText(OpenGLRenderer* renderer, const jchar* text, int count, const jfloat* positions, jint dirFlags, SkPaint* paint) argument [all...] |