/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 32 int colors[], float positions[], TileMode tile) { 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); 31 LinearGradient(float x0, float y0, float x1, float y1, int colors[], float positions[], TileMode tile) argument 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 | 35 positions = NULL; 39 GradientCacheEntry(uint32_t* colors, float* positions, int count, argument 41 copy(colors, positions, count, tileMode); 45 copy(entry.colors, entry.positions, entry.count, entry.tileMode); 50 delete[] positions; 56 delete[] positions; 58 copy(entry.colors, entry.positions, entry.count, entry.tileMode); 71 result = memcmp(positions, rhs.positions, count * sizeof(float)); 80 float* positions; member in struct:android::uirenderer::GradientCacheEntry 86 copy(uint32_t* colors, float* positions, int count, SkShader::TileMode tileMode) argument [all...] |
H A D | GradientCache.cpp | 100 Texture* GradientCache::get(uint32_t* colors, float* positions, argument 103 GradientCacheEntry gradient(colors, positions, count, tileMode); 107 texture = addLinearGradient(gradient, colors, positions, count, tileMode); 118 uint32_t* colors, float* positions, int count, SkShader::TileMode tileMode) { 131 reinterpret_cast<const SkColor*>(colors), positions, count, tileMode); 117 addLinearGradient(GradientCacheEntry& gradient, uint32_t* colors, float* positions, int count, SkShader::TileMode tileMode) argument
|
H A D | SkiaShader.cpp | 183 float* positions, int count, SkShader* key, SkShader::TileMode tileMode, 186 mBounds(bounds), mColors(colors), mPositions(positions), mCount(count) { 258 uint32_t* colors, float* positions, int count, SkShader* key, SkShader::TileMode tileMode, 260 SkiaSweepGradientShader(kCircularGradient, x, y, colors, positions, count, key, 295 float* positions, int count, SkShader* key, SkMatrix* matrix, bool blend): 298 mColors(colors), mPositions(positions), mCount(count) { 307 float* positions, int count, SkShader* key, SkShader::TileMode tileMode, 310 mColors(colors), mPositions(positions), mCount(count) { 182 SkiaLinearGradientShader(float* bounds, uint32_t* colors, float* positions, int count, SkShader* key, SkShader::TileMode tileMode, SkMatrix* matrix, bool blend) argument 257 SkiaCircularGradientShader(float x, float y, float radius, uint32_t* colors, float* positions, int count, SkShader* key, SkShader::TileMode tileMode, SkMatrix* matrix, bool blend) argument 294 SkiaSweepGradientShader(float x, float y, uint32_t* colors, float* positions, int count, SkShader* key, SkMatrix* matrix, bool blend) argument 306 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 | SkiaShader.h | 174 ANDROID_API SkiaLinearGradientShader(float* bounds, uint32_t* colors, float* positions, 198 ANDROID_API SkiaSweepGradientShader(float x, float y, uint32_t* colors, float* positions, 209 SkiaSweepGradientShader(Type type, float x, float y, uint32_t* colors, float* positions, 224 float* positions, int count, SkShader* key,SkShader::TileMode tileMode,
|
/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 | 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/libs/ui/ |
H A D | Input.cpp | 763 void VelocityTracker::addMovement(nsecs_t eventTime, BitSet32 idBits, const Position* positions) { argument 777 movement.positions[i] = positions[i]; 795 id, positions[index].x, positions[index].y, 848 Position positions[pointerCount]; local 854 positions[i].x = event->getHistoricalX(i, h); 855 positions[i].y = event->getHistoricalY(i, h); 857 addMovement(eventTime, idBits, positions); 862 positions[ [all...] |
/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/include/ui/ |
H A D | Input.h | 669 // The idBits bitfield specifies the pointer ids of the pointers whose positions 671 // The positions array contains position information for each pointer in order by 673 void addMovement(nsecs_t eventTime, BitSet32 idBits, const Position* positions); 702 Position positions[MAX_POINTERS]; member in struct:android::VelocityTracker::Movement 705 return positions[idBits.getIndexOfBit(id)];
|
/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/services/input/ |
H A D | InputReader.cpp | 3607 // pointer positions at the same time as other pointers that have just gone up. 4017 // pointer positions at the same time as other pointers that have just gone up. 4227 VelocityTracker::Position positions[MAX_POINTERS]; local 4232 positions[count].x = pointer.x * mPointerXMovementScale; 4233 positions[count].y = pointer.y * mPointerYMovementScale; 4236 mCurrentFingerIdBits, positions);
|