/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/support/leanback/src/androidTest/java/androidx/leanback/widget/ |
H A D | PlaybackTransportRowPresenterTest.java | 114 PlaybackSeekDataProvider provider, long[] positions) { 116 int lastThumbIndex = Math.min(lastHeroIndex + (mNumbThumbs / 2), positions.length - 1); 135 void verifyAtHeroIndex(long[] positions, int heroIndex) { argument 136 verifyAtHeroIndex(positions, heroIndex, null); 139 void verifyAtHeroIndex(long[] positions, int heroIndex, Bitmap[] thumbs) { argument 140 assertEquals(positions[heroIndex], mGlue.getControlsRow().getCurrentPosition()); 144 int end = Math.min(positions.length - 1, mViewHolder.mThumbHeroIndex + mNumbThumbs / 2); 331 final long[] positions = provider.getSeekPositions(); 337 verifyAtHeroIndex(positions, 1); 339 verifyAtHeroIndex(positions, 113 verifyGetThumbCalls(int firstHeroIndex, int lastHeroIndex, PlaybackSeekDataProvider provider, long[] positions) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | GradientCache.h | 40 positions = nullptr; 43 GradientCacheEntry(uint32_t* colors, float* positions, uint32_t count) { argument 44 copy(colors, positions, count); 48 copy(entry.colors.get(), entry.positions.get(), entry.count); 53 copy(entry.colors.get(), entry.positions.get(), entry.count); 68 std::unique_ptr<float[]> positions; member in struct:android::uirenderer::GradientCacheEntry 72 void copy(uint32_t* colors, float* positions, uint32_t count) { argument 75 this->positions.reset(new float[count]); 78 memcpy(this->positions.get(), positions, coun [all...] |
H A D | TextDropShadowCache.h | 46 , positions(nullptr) {} 50 const float* positions) 59 , positions(positions) {} 74 if (positions != nullptr) { 76 positionsCopy.appendArray(positions, glyphCount * 2); 77 positions = positionsCopy.array(); 89 const float* positions; member in struct:android::uirenderer::ShadowText 134 const float* positions); 49 ShadowText(const SkPaint* paint, float radius, uint32_t glyphCount, const glyph_t* srcGlyphs, const float* positions) argument
|
H A D | TextDropShadowCache.cpp | 43 if (positions) { 45 hash = JenkinsHashMix(hash, android::hash_type(positions[i])); 81 if (lhs.positions != rhs.positions) { 82 if (!lhs.positions) return -1; 83 if (!rhs.positions) return +1; 85 return memcmp(lhs.positions, rhs.positions, lhs.glyphCount * sizeof(float) * 2); 148 float radius, const float* positions) { 149 ShadowText entry(paint, radius, numGlyphs, glyphs, positions); 147 get(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs, float radius, const float* positions) argument [all...] |
H A D | GradientCache.cpp | 47 hash = JenkinsHashMix(hash, android::hash_type(positions[i])); 59 return memcmp(lhs.positions.get(), rhs.positions.get(), lhs.count * sizeof(float)); 110 Texture* GradientCache::get(uint32_t* colors, float* positions, int count) { argument 111 GradientCacheEntry gradient(colors, positions, count); 115 texture = addLinearGradient(gradient, colors, positions, count); 148 float* positions, int count) { 165 generateTexture(colors, positions, info.width, 2, texture); 217 void GradientCache::generateTexture(uint32_t* colors, float* positions, const uint32_t width, argument 238 float startPos = positions[ 147 addLinearGradient(GradientCacheEntry& gradient, uint32_t* colors, float* positions, int count) argument [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | SweepGradient.java | 48 * @param positions May be NULL. The relative position of 52 * If positions is NULL, then the colors are automatically 56 @NonNull @ColorInt int colors[], @Nullable float positions[]) { 60 if (positions != null && colors.length != positions.length) { 68 mPositions = positions != null ? positions.clone() : null; 115 int colors[], float positions[]); 55 SweepGradient(float cx, float cy, @NonNull @ColorInt int colors[], @Nullable float positions[]) argument 114 nativeCreate1(long matrix, float x, float y, int colors[], float positions[]) argument
|
H A D | LinearGradient.java | 53 * @param positions May be null. The relative positions [0..1] of 59 @Nullable float positions[], @NonNull TileMode tile) { 63 if (positions != null && colors.length != positions.length) { 72 mPositions = positions != null ? positions.clone() : null; 130 int colors[], float positions[], int tileMode); 58 LinearGradient(float x0, float y0, float x1, float y1, @NonNull @ColorInt int colors[], @Nullable float positions[], @NonNull TileMode tile) argument 129 nativeCreate1(long matrix, float x0, float y0, float x1, float y1, int colors[], float positions[], int tileMode) argument
|
/frameworks/base/libs/hwui/tests/unit/ |
H A D | GradientCacheTests.cpp | 32 float positions[] = {1, 2, 3}; local 33 Texture* texture = cache.get(colors, positions, 3);
|
H A D | FontRendererTests.cpp | 40 std::vector<float> positions; local 43 TestUtils::layoutTextUnscaled(paint, "This is a test", &glyphs, &positions, &totalAdvance, 48 positions.data());
|
H A D | TextDropShadowCacheTests.cpp | 41 std::vector<float> positions; local 44 TestUtils::layoutTextUnscaled(paint, "This is a test", &glyphs, &positions, &totalAdvance, 48 ShadowTexture* texture = cache.get(&paint, glyphs.data(), glyphs.size(), 10, positions.data());
|
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/ |
H A D | CacheUtils.java | 49 * Asserts that the positions passed are all resident in the view's cache. 51 static void verifyCacheContainsPositions(RecyclerView view, Integer... positions) { argument 52 for (Integer position : positions) { 62 static void verifyCacheContainsPrefetchedPositions(RecyclerView view, Integer... positions) { argument 63 verifyCacheContainsPositions(view, positions); 65 for (Integer position : positions) { 68 assertEquals(positions.length, view.mRecycler.mCachedViews.size()); 72 * Asserts that none of the positions passed are resident in the view's cache. 74 static void verifyCacheDoesNotContainPositions(RecyclerView view, Integer... positions) { argument 75 for (Integer position : positions) { [all...] |
H A D | StaggeredGridLayoutManagerCacheTest.java | 79 int[] positions = new int[mConfig.mSpanCount]; 80 mLayoutManager.findFirstVisibleItemPositions(positions); 81 Arrays.sort(positions); 82 return positions[0]; 86 int[] positions = new int[mConfig.mSpanCount]; 87 mLayoutManager.findLastVisibleItemPositions(positions); 88 Arrays.sort(positions); 89 return positions[mConfig.mSpanCount - 1];
|
H A D | AsyncListUtilTest.java | 148 private void scrollAndExpectTiles(int position, String context, int... positions) argument 150 mDataCallback.expectTiles(positions); 218 public void expectTiles(int... positions) { argument 220 mTilesFilledLatch.expect(positions); 318 void expect(int ... positions) { argument 320 for (int position : positions) {
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
H A D | Gradient_Delegate.java | 46 * @param positions May be null. The relative positions [0..1] of each 50 protected Gradient_Delegate(long nativeMatrix, int colors[], float positions[]) { argument 54 if (positions == null) { 56 positions = new float[colors.length]; 57 positions[0] = 0.f; 58 positions[colors.length - 1] = 1.f; 60 positions[i] = spacing * i; 63 assert colors.length == positions.length : 68 mPositions = positions; 84 GradientPaint(int[] colors, float[] positions, TileMode tileMode) argument [all...] |
H A D | LinearGradient_Delegate.java | 64 int colors[], float positions[], int tileMode) { 66 x1, y1, colors, positions, Shader_Delegate.getTileMode(tileMode)); 75 null /*positions*/, tileMode); 89 * @param positions May be null. The relative positions [0..1] of each 95 float y1, int colors[], float positions[], TileMode tile) { 96 super(nativeMatrix, colors, positions); 115 float positions[], TileMode tile) { 116 super(colors, positions, tile); 62 nativeCreate1(LinearGradient thisGradient, long matrix, float x0, float y0, float x1, float y1, int colors[], float positions[], int tileMode) argument 94 LinearGradient_Delegate(long nativeMatrix, float x0, float y0, float x1, float y1, int colors[], float positions[], TileMode tile) argument 114 LinearGradientPaint(float x0, float y0, float x1, float y1, int colors[], float positions[], TileMode tile) argument
|
H A D | RadialGradient_Delegate.java | 63 int colors[], float positions[], int tileMode) { 65 colors, positions, Shader_Delegate.getTileMode(tileMode)); 73 null /*positions*/, tileMode); 88 * @param positions May be NULL. The relative position of each corresponding 94 int colors[], float positions[], TileMode tile) { 95 super(nativeMatrix, colors, positions); 106 int[] colors, float[] positions, TileMode mode) { 107 super(colors, positions, mode); 62 nativeCreate1(long matrix, float x, float y, float radius, int colors[], float positions[], int tileMode) argument 93 RadialGradient_Delegate(long nativeMatrix, float x, float y, float radius, int colors[], float positions[], TileMode tile) argument 105 RadialGradientPaint(float x, float y, float radius, int[] colors, float[] positions, TileMode mode) argument
|
H A D | SweepGradient_Delegate.java | 60 positions[]) { 62 positions); 69 null /*positions*/); 82 * @param positions May be NULL. The relative position of 86 * If positions is NULL, then the colors are automatically 90 int colors[], float positions[]) { 91 super(nativeMatrix, colors, positions); 101 float[] positions) { 102 super(colors, positions, null /*tileMode*/); 59 nativeCreate1(long matrix, float x, float y, int colors[], float positions[]) argument 89 SweepGradient_Delegate(long nativeMatrix, float cx, float cy, int colors[], float positions[]) argument 100 SweepGradientPaint(float cx, float cy, int[] colors, float[] positions) argument
|
/frameworks/base/libs/hwui/tests/microbench/ |
H A D | FontBench.cpp | 37 std::vector<float> positions; 40 TestUtils::layoutTextUnscaled(paint, "This is a test", &glyphs, &positions, &totalAdvance,
|
/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 290 VelocityTracker::Position positions[MAX_POINTERS]; member in struct:android::ImpulseVelocityTrackerStrategy::Movement [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/libs/input/tests/ |
H A D | VelocityTracker_test.cpp | 71 MotionEvent* createSimpleMotionEvent(const Position* positions, size_t numSamples) { argument 90 coords.setAxisValue(AMOTION_EVENT_AXIS_X, positions[0].x); 91 coords.setAxisValue(AMOTION_EVENT_AXIS_Y, positions[0].y); 93 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, positions[0].time, 1, properties, &coords); 96 coords.setAxisValue(AMOTION_EVENT_AXIS_X, positions[i].x); 97 coords.setAxisValue(AMOTION_EVENT_AXIS_Y, positions[i].y); 98 event->addSample(positions[i].time, &coords); 103 static void computeAndCheckVelocity(const Position* positions, size_t numSamples, argument 108 MotionEvent* event = createSimpleMotionEvent(positions, numSamples);
|
/frameworks/native/libs/input/ |
H A D | VelocityTracker.cpp | 228 void VelocityTracker::addMovement(nsecs_t eventTime, BitSet32 idBits, const Position* positions) { argument 250 mStrategy->addMovement(eventTime, idBits, positions); 263 id, positions[index].x, positions[index].y, 321 Position positions[pointerCount]; local 328 positions[index].x = event->getHistoricalRawX(i, h); 329 positions[index].y = event->getHistoricalRawY(i, h); 331 addMovement(eventTime, idBits, positions); 337 positions[index].x = event->getRawX(i); 338 positions[inde 381 addMovement(nsecs_t eventTime, BitSet32 idBits, const VelocityTracker::Position* positions) argument 769 addMovement(nsecs_t eventTime, BitSet32 idBits, const VelocityTracker::Position* positions) argument 887 addMovement(nsecs_t eventTime, BitSet32 idBits, const VelocityTracker::Position* positions) argument 1001 addMovement(nsecs_t eventTime, BitSet32 idBits, const VelocityTracker::Position* positions) argument [all...] |
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/ |
H A D | Grid.java | 337 * Return array of int array for all rows, each int array contains visible item positions 347 * Return array of int array for all rows, each int array contains visible item positions 457 * location so recyclerview will run a slide out animation. The positions that was greater than 458 * last visible index will be appended to end, the positions that was smaller than first visible 460 * @param positions Sorted list of positions of disappearing items. 463 public void fillDisappearingItems(int[] positions, int positionsLength, argument 467 ? Arrays.binarySearch(positions, 0, positionsLength, lastPos) : 0; 478 int disappearingIndex = positions[i]; 495 ? Arrays.binarySearch(positions, [all...] |
/frameworks/base/libs/hwui/font/ |
H A D | Font.h | 81 const float* positions); 111 const float* positions); 114 const float* positions);
|