/frameworks/base/libs/hwui/ |
GradientCache.h | 38 positions = NULL; 41 GradientCacheEntry(uint32_t* colors, float* positions, int count) { 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 [all...] |
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, rhs.positions, len << 2) < 0 [all...] |
GradientCache.cpp | 114 Texture* GradientCache::get(uint32_t* colors, float* positions, int count) { 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, 195 float start = positions[0]; 196 float distance = positions[1] - start; 201 if (pos > positions[currentPos]) { 206 start = positions[currentPos] [all...] |
/external/icu4c/samples/layout/ |
rsurface.cpp | 17 const float *positions, le_int32 x, le_int32 y, le_int32 width, le_int32 height) 21 rs->drawGlyphs((const LEFontInstance *) font, glyphs, count, positions, x, y, width, height);
|
rsurface.h | 17 const float *positions, le_int32 x, le_int32 y, le_int32 width, le_int32 height);
|
RenderingSurface.h | 27 const float *positions, le_int32 x, le_int32 y, le_int32 width, le_int32 height) = 0;
|
/frameworks/base/graphics/java/android/graphics/ |
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[]); 65 int[] colors, float[] positions);
|
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[], 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);
|
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);
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
SweepGradientTest.java | 54 final float[] positions = new float[] { 0f, 1f }; local 58 checkColors(colors, positions, TOLERANCE); 63 final float[] positions = new float[] { 0f, 0.3f, 1f }; local 64 Shader shader = new SweepGradient(CENTER, CENTER, colors, positions); 68 checkColors(colors, positions, TOLERANCE); 73 final float[] positions = new float[] { 0f, 0.25f, 0.5f, 1f }; local 75 Shader shader = new SweepGradient(CENTER, CENTER, colors, positions); 79 checkColors(colors, positions, TOLERANCE); 82 private void checkColors(int[] colors, float[] positions, int tolerance) { 94 for (idx = 0; idx < positions.length; idx++) [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
Gradient_Delegate.java | 45 * @param positions May be null. The relative positions [0..1] of each 49 protected Gradient_Delegate(int colors[], float positions[]) { 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[i] = spacing * i [all...] |
/dalvik/dx/tests/069-dex-source-position/ |
run | 18 dx --debug --dex --no-optimize --positions=none --no-locals \ 20 dx --debug --dex --no-optimize --positions=important --no-locals \ 22 dx --debug --dex --no-optimize --positions=lines --no-locals \
|
/frameworks/base/opengl/java/android/opengl/ |
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.length - positionsCount [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
ImageFilterGradient.java | 52 float[] positions = new float[length + 1]; local 56 positions[i] = mPositions[i]; 60 positions[length] = position; 63 mPositions = positions; 100 * float[] positions = new float[2]; positions[0] = 0; positions[1] = 1;
|
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/ |
UVProjectionGenerator.java | 34 FloatBuffer positions = mesh.getFloatBuffer(VertexBuffer.Type.Position); local 35 float[] uvCoordinates = new float[positions.limit() / 3 * 2]; 36 for (int i = 0, j = 0; i < positions.limit(); i += 3, j += 2) { 37 uvCoordinates[j] = (positions.get(i) - min.x) / ext[0]; 38 uvCoordinates[j + 1] = (positions.get(i + 1) - min.y) / ext[1]; 117 FloatBuffer positions = mesh.getFloatBuffer(VertexBuffer.Type.Position); local 118 float[] uvCoordinates = new float[positions.limit() / 3 * 2]; 124 for (int i = 0, j = 0; i < positions.limit(); i += 3, j += 2) { 126 v.set(positions.get(i)-cx, positions.get(i + 1)-cy, 0) 176 FloatBuffer positions = mesh.getFloatBuffer(VertexBuffer.Type.Position); local [all...] |
/external/jmonkeyengine/engine/src/core/com/jme3/scene/debug/ |
Arrow.java | 53 private static final float[] positions = new float[]{ field in class:Arrow 82 float[] newPositions = new float[positions.length]; 83 for (int i = 0; i < positions.length; i += 3) { 84 Vector3f vec = tempVec.set(positions[i], 85 positions[i + 1], 86 positions[i + 2]); 125 for (int i = 0; i < positions.length; i += 3) { 126 Vector3f vec = tempVec.set(positions[i], 127 positions[i + 1], 128 positions[i + 2]) [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
GradientStopsActivity.java | 46 float[] positions = new float[] { 0.3f, 0.6f }; local 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);
|
/dalvik/dexgen/src/com/android/dexgen/dex/code/ |
DalvCode.java | 54 * {@code null-ok;} source positions list; set in 57 private PositionList positions; field in class:DalvCode 95 this.positions = null; 109 positions = PositionList.make(insns, positionInfo); 200 * Gets the source positions list. 202 * @return {@code non-null;} the source positions list 206 return positions; 210 * Gets the source positions list. 212 * @return {@code non-null;} the source positions list
|
/dalvik/dx/src/com/android/dx/dex/code/ |
DalvCode.java | 54 * {@code null-ok;} source positions list; set in 57 private PositionList positions; field in class:DalvCode 95 this.positions = null; 109 positions = PositionList.make(insns, positionInfo); 200 * Gets the source positions list. 202 * @return {@code non-null;} the source positions list 206 return positions; 210 * Gets the source positions list. 212 * @return {@code non-null;} the source positions list
|
/external/chromium/chrome/browser/history/ |
snippet.h | 18 // Each MatchPosition is the [begin, end) positions of a match within a 34 // NOTE: the positions returned are in terms of UTF8 encoding. To convert the 40 // Converts match positions as returned from ExtractMatchPositions to be in 49 // Given |matches|, the match positions within |document|, compute the snippet
|
/external/dexmaker/src/dx/java/com/android/dx/dex/code/ |
DalvCode.java | 54 * {@code null-ok;} source positions list; set in 57 private PositionList positions; field in class:DalvCode 95 this.positions = null; 109 positions = PositionList.make(insns, positionInfo); 200 * Gets the source positions list. 202 * @return {@code non-null;} the source positions list 206 return positions; 210 * Gets the source positions list. 212 * @return {@code non-null;} the source positions list
|
/external/icu4c/layout/ |
KernTable.h | 44 * Process the glyph positions.
|
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/lodcalc/util/ |
EntropyComputeUtil.java | 29 // Vertex positions for the block 30 FloatBuffer positions = terrainBlock.getFloatBuffer(Type.Position); local 50 for (int i = 0; i < positions.capacity() / 3; i++){ 51 BufferUtils.populateFromBuffer(pos, positions, i);
|
/external/webkit/Source/WebCore/dom/ |
Position.h | 67 // For creating legacy editing positions: (Anchor type will be determined from editingIgnoresContent(node)) 70 // For creating before/after positions: 72 // For creating offset positions: 79 // These are always DOM compliant values. Editing positions like [img, 0] (aka [img, before]) 82 int computeOffsetInContainerNode() const; // O(n) for before/after-anchored positions, O(1) for parent-anchored positions 83 Position parentAnchoredEquivalent() const; // Convenience method for DOM positions that also fixes up some positions for editing 85 // Inline O(1) access for Positions which callers know to be parent-anchored 107 // For nodes which editingIgnoresContent(node()) returns true, positions like [ignoredNode, 0 [all...] |
/external/replicaisland/src/com/replica/replicaisland/ |
Grid.java | 150 public void set(int quadX, int quadY, float[][] positions, float[][] uvs) { 157 if (positions.length < 4) { 158 throw new IllegalArgumentException("positions"); 167 setVertex(i, j, positions[0][0], positions[0][1], positions[0][2], uvs[0][0], uvs[0][1]); 168 setVertex(i + 1, j, positions[1][0], positions[1][1], positions[1][2], uvs[1][0], uvs[1][1]); 169 setVertex(i, j + 1, positions[2][0], positions[2][1], positions[2][2], uvs[2][0], uvs[2][1]) [all...] |