Home
last modified time | relevance | path

Searched refs:positions (Results 1 – 25 of 81) sorted by relevance

1234

/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/
DModel.java132 int[] positions = new int[mCursorCount]; in updateModelData() local
156 positions[pos] = pos; in updateModelData()
189 binarySort(displayNames, isDirs, positions, mIds); in updateModelData()
193 binarySort(longValues, isDirs, positions, mIds); in updateModelData()
200 mPositions.put(mIds[i], positions[i]); in updateModelData()
214 …private static void binarySort(String[] sortKey, boolean[] isDirs, int[] positions, String[] ids) { in binarySort() argument
215 final int count = positions.length; in binarySort()
217 final int pivotPosition = positions[start]; in binarySort()
251 positions[left + 2] = positions[left + 1]; in binarySort()
256 positions[left + 1] = positions[left]; in binarySort()
[all …]
/frameworks/base/libs/hwui/
DGradientCache.h38 positions = nullptr; in GradientCacheEntry()
41 GradientCacheEntry(uint32_t* colors, float* positions, uint32_t count) { in GradientCacheEntry()
42 copy(colors, positions, count); in GradientCacheEntry()
46 copy(entry.colors.get(), entry.positions.get(), entry.count); in GradientCacheEntry()
51 copy(entry.colors.get(), entry.positions.get(), entry.count);
70 std::unique_ptr<float[]> positions; member
74 void copy(uint32_t* colors, float* positions, uint32_t count) { in copy()
77 this->positions.reset(new float[count]); in copy()
80 memcpy(this->positions.get(), positions, count * sizeof(float)); in copy()
118 Texture* get(uint32_t* colors, float* positions, int count);
[all …]
DTextDropShadowCache.h38 flags(0), italicStyle(0.0f), scaleX(0), glyphs(nullptr), positions(nullptr) { in ShadowText()
43 const float* positions) in ShadowText()
52 , positions(positions) { in ShadowText()
73 if (positions != nullptr) { in copyTextLocally()
75 positionsCopy.appendArray(positions, glyphCount * 2); in copyTextLocally()
76 positions = positionsCopy.array(); in copyTextLocally()
88 const float* positions; member
134 int numGlyphs, float radius, const float* positions);
DTextDropShadowCache.cpp44 if (positions) { in hash()
46 hash = JenkinsHashMix(hash, android::hash_type(positions[i])); in hash()
82 if (lhs.positions != rhs.positions) { in compare()
83 if (!lhs.positions) return -1; in compare()
84 if (!rhs.positions) return +1; in compare()
86 return memcmp(lhs.positions, rhs.positions, lhs.glyphCount * sizeof(float) * 2); in compare()
149 float radius, const float* positions) { in get() argument
150 ShadowText entry(paint, radius, numGlyphs, glyphs, positions); in get()
157 radius, positions); in get()
DGradientCache.cpp46 hash = JenkinsHashMix(hash, android::hash_type(positions[i])); in hash()
58 return memcmp(lhs.positions.get(), rhs.positions.get(), lhs.count * sizeof(float)); in compare()
108 Texture* GradientCache::get(uint32_t* colors, float* positions, int count) { in get() argument
109 GradientCacheEntry gradient(colors, positions, count); in get()
113 texture = addLinearGradient(gradient, colors, positions, count); in get()
147 uint32_t* colors, float* positions, int count) { in addLinearGradient() argument
165 generateTexture(colors, positions, info.width, 2, texture); in addLinearGradient()
222 void GradientCache::generateTexture(uint32_t* colors, float* positions, in generateTexture() argument
246 float startPos = positions[0]; in generateTexture()
247 float distance = positions[1] - startPos; in generateTexture()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DGradient_Delegate.java49 protected Gradient_Delegate(int colors[], float positions[]) { in Gradient_Delegate() argument
53 if (positions != null && colors.length != positions.length) { in Gradient_Delegate()
57 if (positions == null) { in Gradient_Delegate()
59 positions = new float[colors.length]; in Gradient_Delegate()
60 positions[0] = 0.f; in Gradient_Delegate()
61 positions[colors.length-1] = 1.f; in Gradient_Delegate()
63 positions[i] = spacing * i; in Gradient_Delegate()
68 mPositions = positions; in Gradient_Delegate()
84 protected GradientPaint(int[] colors, float[] positions, TileMode tileMode) { in GradientPaint() argument
86 mPositions = positions; in GradientPaint()
DSweepGradient_Delegate.java55 /*package*/ static long nativeCreate1(float x, float y, int colors[], float positions[]) { in nativeCreate1() argument
56 SweepGradient_Delegate newDelegate = new SweepGradient_Delegate(x, y, colors, positions); in nativeCreate1()
82 int colors[], float positions[]) { in SweepGradient_Delegate() argument
83 super(colors, positions); in SweepGradient_Delegate()
93 float[] positions) { in SweepGradientPaint() argument
94 super(colors, positions, null /*tileMode*/); in SweepGradientPaint()
DRadialGradient_Delegate.java60 int colors[], float positions[], int tileMode) { in nativeCreate1() argument
62 colors, positions, Shader_Delegate.getTileMode(tileMode)); in nativeCreate1()
89 private RadialGradient_Delegate(float x, float y, float radius, int colors[], float positions[], in RadialGradient_Delegate() argument
91 super(colors, positions); in RadialGradient_Delegate()
102 int[] colors, float[] positions, TileMode mode) { in RadialGradientPaint() argument
103 super(colors, positions, mode); in RadialGradientPaint()
DLinearGradient_Delegate.java61 int colors[], float positions[], int tileMode) { in nativeCreate1() argument
63 colors, positions, Shader_Delegate.getTileMode(tileMode)); in nativeCreate1()
92 int colors[], float positions[], TileMode tile) { in LinearGradient_Delegate() argument
93 super(colors, positions); in LinearGradient_Delegate()
112 float positions[], TileMode tile) { in LinearGradientPaint() argument
113 super(colors, positions, tile); in LinearGradientPaint()
/frameworks/base/graphics/java/android/graphics/
DSweepGradient.java52 int colors[], float positions[]) { in SweepGradient() argument
56 if (positions != null && colors.length != positions.length) { in SweepGradient()
64 mPositions = positions; in SweepGradient()
65 init(nativeCreate1(cx, cy, colors, positions)); in SweepGradient()
107 private static native long nativeCreate1(float x, float y, int colors[], float positions[]); in nativeCreate1() argument
DLinearGradient.java52 public LinearGradient(float x0, float y0, float x1, float y1, int colors[], float positions[], in LinearGradient() argument
57 if (positions != null && colors.length != positions.length) { in LinearGradient()
66 mPositions = positions; in LinearGradient()
68 init(nativeCreate1(x0, y0, x1, y1, colors, positions, tile.nativeInt)); in LinearGradient()
116 int colors[], float positions[], int tileMode); in nativeCreate1() argument
/frameworks/native/include/input/
DVelocityTracker.h83 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
181 return positions[idBits.getIndexOfBit(id)]; in getPosition()
206 const VelocityTracker::Position* positions);
240 const VelocityTracker::Position* positions);
256 VelocityTracker::Position positions[MAX_POINTERS]; member
259 return positions[idBits.getIndexOfBit(id)]; in getPosition()
/frameworks/support/design/base/android/support/design/widget/
DCircularBorderDrawable.java197 final float[] positions = new float[6]; in createGradientShader() local
198 positions[0] = 0f; in createGradientShader()
199 positions[1] = borderRatio; in createGradientShader()
200 positions[2] = 0.5f; in createGradientShader()
201 positions[3] = 0.5f; in createGradientShader()
202 positions[4] = 1f - borderRatio; in createGradientShader()
203 positions[5] = 1f; in createGradientShader()
208 colors, positions, in createGradientShader()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DGradientStopsActivity.java46 float[] positions = new float[] { 0.3f, 0.6f }; in onDraw() local
48 colors, positions, Shader.TileMode.CLAMP); in onDraw()
56 positions = new float[] { 0.3f, 0.6f, 1.0f }; in onDraw()
58 colors, positions, Shader.TileMode.CLAMP); in onDraw()
66 positions = new float[] { 0.0f, 0.3f, 0.6f }; in onDraw()
68 colors, positions, Shader.TileMode.CLAMP); in onDraw()
/frameworks/native/libs/input/
DVelocityTracker.cpp222 void VelocityTracker::addMovement(nsecs_t eventTime, BitSet32 idBits, const Position* positions) { in addMovement() argument
244 mStrategy->addMovement(eventTime, idBits, positions); in addMovement()
257 id, positions[index].x, positions[index].y, in addMovement()
315 Position positions[pointerCount]; in addMovement() local
322 positions[index].x = event->getHistoricalX(i, h); in addMovement()
323 positions[index].y = event->getHistoricalY(i, h); in addMovement()
325 addMovement(eventTime, idBits, positions); in addMovement()
331 positions[index].x = event->getX(i); in addMovement()
332 positions[index].y = event->getY(i); in addMovement()
334 addMovement(eventTime, idBits, positions); in addMovement()
[all …]
/frameworks/base/libs/hwui/tests/unit/
DTextDropShadowCacheTests.cpp40 std::vector<float> positions; in RENDERTHREAD_TEST() local
44 &glyphs, &positions, &totalAdvance, &bounds); in RENDERTHREAD_TEST()
47 ShadowTexture* texture = cache.get(&paint, glyphs.data(), glyphs.size(), 10, positions.data()); in RENDERTHREAD_TEST()
DFontRendererTests.cpp40 std::vector<float> positions; in RENDERTHREAD_TEST() local
44 &glyphs, &positions, &totalAdvance, &bounds); in RENDERTHREAD_TEST()
48 radius, positions.data()); in RENDERTHREAD_TEST()
DGradientCacheTests.cpp32 float positions[] = { 1, 2, 3 }; in RENDERTHREAD_TEST() local
33 Texture* texture = cache.get(colors, positions, 3); in RENDERTHREAD_TEST()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/
DAsyncListUtilTest.java138 private void scrollAndExpectTiles(int position, String context, int... positions) in scrollAndExpectTiles() argument
140 mDataCallback.expectTiles(positions); in scrollAndExpectTiles()
207 public void expectTiles(int... positions) { in expectTiles() argument
209 mTilesFilledLatch.expect(positions); in expectTiles()
307 void expect(int ... positions) { in expect() argument
309 for (int position : positions) { in expect()
/frameworks/base/opengl/java/android/opengl/
DVisibility.java50 float[] positions, int positionsOffset, char[] indices, in visibilityTest() argument
120 public static native void computeBoundingSphere(float[] positions, in computeBoundingSphere() argument
/frameworks/base/libs/hwui/tests/microbench/
DFontBench.cpp37 std::vector<float> positions; in BM_FontRenderer_precache_cachehits() local
41 &glyphs, &positions, &totalAdvance, &bounds); in BM_FontRenderer_precache_cachehits()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DLinearLayoutManagerPrepareForDropTest.java122 int[] positions = mSelectTargetChildren.selectTargetChildren(mRecyclerView.getChildCount()); in prepareForDropTest() local
123 final View fromChild = mLayoutManager.getChildAt(positions[0]); in prepareForDropTest()
125 final View onChild = mLayoutManager.getChildAt(positions[1]); in prepareForDropTest()
DTestResizingRelayoutWithAutoMeasure.java124 Map<Integer, Rect> positions = new HashMap<>(); in capturePositions() local
137 positions.put(childAdapterPosition, outRect); in capturePositions()
139 return positions; in capturePositions()
/frameworks/base/libs/hwui/font/
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);
DFont.cpp295 int numGlyphs, int x, int y, const float* positions) { in render() argument
297 0, 0, nullptr, positions); in render()
349 int numGlyphs, Rect *bounds, const float* positions) { in measure() argument
355 render(paint, glyphs, numGlyphs, 0, 0, MEASURE, nullptr, 0, 0, bounds, positions); in measure()
379 uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* positions) { in render() argument
409 int penX = x + (int) roundf(positions[(glyphsCount << 1)]); in render()
410 int penY = y + (int) roundf(positions[(glyphsCount << 1) + 1]); in render()
413 bitmap, bitmapW, bitmapH, bounds, positions); in render()

1234