Searched refs:positions (Results 1 - 25 of 51) sorted by relevance

123

/frameworks/base/opengl/java/android/opengl/
H A DVisibility.java32 * @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 DSweepGradient.java44 * @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
H A DLinearGradient.java47 @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
/frameworks/base/libs/hwui/
H A DGradientCache.h38 positions = nullptr;
41 GradientCacheEntry(uint32_t* colors, float* positions, uint32_t count) { argument
42 copy(colors, positions, count);
46 copy(entry.colors.get(), entry.positions.get(), entry.count);
51 copy(entry.colors.get(), entry.positions.get(), entry.count);
70 std::unique_ptr<float[]> positions; member in struct:android::uirenderer::GradientCacheEntry
74 void copy(uint32_t* colors, float* positions, uint32_t count) { argument
77 this->positions.reset(new float[count]);
80 memcpy(this->positions.get(), positions, coun
[all...]
H A DTextDropShadowCache.h38 flags(0), italicStyle(0.0f), scaleX(0), glyphs(nullptr), positions(nullptr) {
43 const float* positions)
52 , positions(positions) {
73 if (positions != nullptr) {
75 positionsCopy.appendArray(positions, glyphCount * 2);
76 positions = positionsCopy.array();
88 const float* positions; member in struct:android::uirenderer::ShadowText
134 int numGlyphs, float radius, const float* positions);
42 ShadowText(const SkPaint* paint, float radius, uint32_t glyphCount, const glyph_t* srcGlyphs, const float* positions) argument
H A DTextDropShadowCache.cpp44 if (positions) {
46 hash = JenkinsHashMix(hash, android::hash_type(positions[i]));
82 if (lhs.positions != rhs.positions) {
83 if (!lhs.positions) return -1;
84 if (!rhs.positions) return +1;
86 return memcmp(lhs.positions, rhs.positions, lhs.glyphCount * sizeof(float) * 2);
149 float radius, const float* positions) {
150 ShadowText entry(paint, radius, numGlyphs, glyphs, positions);
148 get(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs, float radius, const float* positions) argument
[all...]
H A DGradientCache.cpp46 hash = JenkinsHashMix(hash, android::hash_type(positions[i]));
58 return memcmp(lhs.positions.get(), rhs.positions.get(), lhs.count * sizeof(float));
108 Texture* GradientCache::get(uint32_t* colors, float* positions, int count) { argument
109 GradientCacheEntry gradient(colors, positions, count);
113 texture = addLinearGradient(gradient, colors, positions, count);
147 uint32_t* colors, float* positions, int count) {
165 generateTexture(colors, positions, info.width, 2, texture);
222 void GradientCache::generateTexture(uint32_t* colors, float* positions, argument
246 float startPos = positions[
146 addLinearGradient(GradientCacheEntry& gradient, uint32_t* colors, float* positions, int count) argument
[all...]
/frameworks/base/libs/hwui/tests/unit/
H A DGradientCacheTests.cpp32 float positions[] = { 1, 2, 3 }; local
33 Texture* texture = cache.get(colors, positions, 3);
H A DFontRendererTests.cpp40 std::vector<float> positions; local
44 &glyphs, &positions, &totalAdvance, &bounds);
48 radius, positions.data());
H A DTextDropShadowCacheTests.cpp40 std::vector<float> positions; local
44 &glyphs, &positions, &totalAdvance, &bounds);
47 ShadowTexture* texture = cache.get(&paint, glyphs.data(), glyphs.size(), 10, positions.data());
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DGradient_Delegate.java45 * @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 DLinearGradient_Delegate.java61 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 DRadialGradient_Delegate.java60 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
H A DSweepGradient_Delegate.java55 /*package*/ static long 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*/);
74 * @param positions May be NULL. The relative position of
78 * If positions is NULL, then the colors are automatically
82 int colors[], float positions[]) {
83 super(colors, positions);
93 float[] positions) {
94 super(colors, positions, null /*tileMode*/);
81 SweepGradient_Delegate(float cx, float cy, int colors[], float positions[]) argument
92 SweepGradientPaint(float cx, float cy, int[] colors, float[] positions) argument
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/
H A DModel.java58 /** Maps Model ID to cursor positions, for looking up items by Model ID. */
132 int[] positions = new int[mCursorCount];
156 positions[pos] = pos;
189 binarySort(displayNames, isDirs, positions, mIds);
193 binarySort(longValues, isDirs, positions, mIds);
197 // Populate the positions.
200 mPositions.put(mIds[i], positions[i]);
211 * @param positions Cursor positions to be sorted.
214 private static void binarySort(String[] sortKey, boolean[] isDirs, int[] positions, Strin argument
286 binarySort( long[] sortKey, boolean[] isDirs, int[] positions, String[] ids) argument
[all...]
/frameworks/base/libs/hwui/tests/microbench/
H A DFontBench.cpp37 std::vector<float> positions;
41 &glyphs, &positions, &totalAdvance, &bounds);
/frameworks/support/design/base/android/support/design/widget/
H A DCircularBorderDrawable.java197 final float[] positions = new float[6];
198 positions[0] = 0f;
199 positions[1] = borderRatio;
200 positions[2] = 0.5f;
201 positions[3] = 0.5f;
202 positions[4] = 1f - borderRatio;
203 positions[5] = 1f;
208 colors, positions,
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DGradientStopsActivity.java46 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 DVelocityTracker.h79 // 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/support/v7/recyclerview/tests/src/android/support/v7/util/
H A DAsyncListUtilTest.java138 private void scrollAndExpectTiles(int position, String context, int... positions) argument
140 mDataCallback.expectTiles(positions);
207 public void expectTiles(int... positions) { argument
209 mTilesFilledLatch.expect(positions);
307 void expect(int ... positions) { argument
309 for (int position : positions) {
/frameworks/native/libs/input/
H A DVelocityTracker.cpp222 void VelocityTracker::addMovement(nsecs_t eventTime, BitSet32 idBits, const Position* positions) { argument
244 mStrategy->addMovement(eventTime, idBits, positions);
257 id, positions[index].x, positions[index].y,
315 Position positions[pointerCount]; local
322 positions[index].x = event->getHistoricalX(i, h);
323 positions[index].y = event->getHistoricalY(i, h);
325 addMovement(eventTime, idBits, positions);
331 positions[index].x = event->getX(i);
332 positions[inde
378 addMovement(nsecs_t eventTime, BitSet32 idBits, const VelocityTracker::Position* positions) argument
713 addMovement(nsecs_t eventTime, BitSet32 idBits, const VelocityTracker::Position* positions) argument
835 addMovement(nsecs_t eventTime, BitSet32 idBits, const VelocityTracker::Position* positions) argument
[all...]
/frameworks/base/libs/hwui/font/
H A DFont.h85 int numGlyphs, int x, int y, const float* positions);
117 uint32_t bitmapW, uint32_t bitmapH, Rect *bounds, const float* positions);
120 int numGlyphs, Rect *bounds, const float* positions);
H A DFont.cpp295 int numGlyphs, int x, int y, const float* positions) {
297 0, 0, nullptr, positions);
349 int numGlyphs, Rect *bounds, const float* positions) {
355 render(paint, glyphs, numGlyphs, 0, 0, MEASURE, nullptr, 0, 0, bounds, positions);
379 uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* positions) {
409 int penX = x + (int) roundf(positions[(glyphsCount << 1)]);
410 int penY = y + (int) roundf(positions[(glyphsCount << 1) + 1]);
413 bitmap, bitmapW, bitmapH, bounds, positions);
294 render(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs, int x, int y, const float* positions) argument
348 measure(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs, Rect *bounds, const float* positions) argument
377 render(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs, int x, int y, RenderMode mode, uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* positions) argument
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DLinearLayoutManagerPrepareForDropTest.java122 int[] positions = mSelectTargetChildren.selectTargetChildren(mRecyclerView.getChildCount());
123 final View fromChild = mLayoutManager.getChildAt(positions[0]);
125 final View onChild = mLayoutManager.getChildAt(positions[1]);
H A DTestResizingRelayoutWithAutoMeasure.java41 * Tests whether the layout manager can keep its children positions properly after it is re-laid
124 Map<Integer, Rect> positions = new HashMap<>();
137 positions.put(childAdapterPosition, outRect);
139 return positions;

Completed in 1407 milliseconds

123