Searched defs:positions (Results 1 - 25 of 36) sorted by last modified time

12

/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DGrid.java336 * Return array of int array for all rows, each int array contains visible item positions
346 * Return array of int array for all rows, each int array contains visible item positions
456 * location so recyclerview will run a slide out animation. The positions that was greater than
457 * last visible index will be appended to end, the positions that was smaller than first visible
459 * @param positions Sorted list of positions of disappearing items.
462 public void fillDisappearingItems(int[] positions, int positionsLength, argument
466 ? Arrays.binarySearch(positions, 0, positionsLength, lastPos) : 0;
477 int disappearingIndex = positions[i];
494 ? Arrays.binarySearch(positions,
[all...]
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/
H A DPlaybackTransportRowPresenterTest.java94 PlaybackSeekDataProvider provider, long[] positions) {
96 int lastThumbIndex = Math.min(lastHeroIndex + (mNumbThumbs / 2), positions.length - 1);
115 void verifyAtHeroIndex(long[] positions, int heroIndex) { argument
116 verifyAtHeroIndex(positions, heroIndex, null);
119 void verifyAtHeroIndex(long[] positions, int heroIndex, Bitmap[] thumbs) { argument
120 assertEquals(positions[heroIndex], mGlue.getControlsRow().getCurrentPosition());
124 int end = Math.min(positions.length - 1, mViewHolder.mThumbHeroIndex + mNumbThumbs / 2);
210 final long[] positions = provider.getSeekPositions();
216 verifyAtHeroIndex(positions, 1);
218 verifyAtHeroIndex(positions,
93 verifyGetThumbCalls(int firstHeroIndex, int lastHeroIndex, PlaybackSeekDataProvider provider, long[] positions) argument
[all...]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/
H A DAsyncListUtilTest.java148 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/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DBaseRecyclerViewInstrumentationTest.java991 public void changePositionsAndNotify(final int... positions) throws Throwable { argument
995 for (int i = 0; i < positions.length; i += 1) {
996 TestAdapter.super.notifyItemRangeChanged(positions[i], 1);
H A DCacheUtils.java49 * 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 DRecyclerViewAnimationsTest.java1568 RecyclerView.Recycler recycler, RecyclerView.State state, int... positions) {
1571 for (int position : positions) {
1674 Map<Integer, CollectPositionResult> positions
1677 for (Map.Entry<Integer, CollectPositionResult> entry : positions.entrySet()) {
1683 constraint.validate(state, positions.get(constraint.mPreLayoutPos),
1698 Map<Integer, CollectPositionResult> positions
1701 for (Map.Entry<Integer, CollectPositionResult> entry : positions.entrySet()) {
1707 constraint.validate(state, positions.get(constraint.mPostLayoutPos),
1567 collectPositions(RecyclerView recyclerView, RecyclerView.Recycler recycler, RecyclerView.State state, int... positions) argument
/frameworks/support/core-ui/tests/java/android/support/v4/view/
H A DBaseViewPagerTest.java781 * @param positions List of "position" values passed to all
789 int pageWidth, List<Integer> positions, List<Float> positionOffsets,
791 int callbackCount = positions.size();
795 endPageIndex, (int) positions.get(callbackCount - 1));
811 int pagePositionCurr = positions.get(i);
818 int pagePositionNext = positions.get(i + 1);
881 * @param positions List of "position" values passed to all
889 int pageWidth, List<Integer> positions, List<Float> positionOffsets,
891 int callbackCount = positions.size();
895 endPageIndex, (int) positions
788 verifyScrollCallbacksToHigherPage(int startPageIndex, int endPageIndex, int pageWidth, List<Integer> positions, List<Float> positionOffsets, List<Integer> positionOffsetPixels) argument
888 verifyScrollCallbacksToLowerPage(int startPageIndex, int endPageIndex, int pageWidth, List<Integer> positions, List<Float> positionOffsets, List<Integer> positionOffsetPixels) argument
[all...]
/frameworks/support/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
H A DPlaybackSeekAsyncDataProvider.java93 public void setSeekPositions(long[] positions) { argument
94 mSeekPositions = positions;
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
H A DPlaybackSeekAsyncDataProvider.java93 public void setSeekPositions(long[] positions) { argument
94 mSeekPositions = positions;
/frameworks/opt/setupwizard/tools/docs/
H A Ddoclava.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/ccil/ org/ccil/cowan/ org/ccil/cowan/tagsoup/ ...
/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/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/native/services/inputflinger/
H A DInputReader.cpp4641 // pointer positions at the same time as other pointers that have just gone up.
5151 // pointer positions at the same time as other pointers that have just gone up.
5363 VelocityTracker::Position positions[MAX_POINTERS]; local
5369 positions[count].x = pointer.x * mPointerXMovementScale;
5370 positions[count].y = pointer.y * mPointerYMovementScale;
5373 mCurrentCookedState.fingerIdBits, positions);
/frameworks/minikin/libs/minikin/
H A DLayout.cpp952 hb_glyph_position_t* positions = hb_buffer_get_glyph_positions(buffer, NULL); local
970 positions[i].x_advance, positions[i].y_advance,
971 positions[i].x_offset, positions[i].y_offset);
973 info[i].codepoint, HBFixedToFloat(positions[i].x_advance),
974 positions[i].x_offset, positions[i].y_offset);
983 float xoff = HBFixedToFloat(positions[i].x_offset);
984 float yoff = -HBFixedToFloat(positions[
[all...]
/frameworks/data-binding/prebuilds/1.0-rc0/
H A Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/databinding/Bindable.class Bindable. ...
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DGradient_Delegate.java46 * @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 DLinearGradient_Delegate.java61 int colors[], float positions[], int tileMode) {
63 x1, y1, colors, positions, Shader_Delegate.getTileMode(tileMode));
72 null /*positions*/, tileMode);
86 * @param positions May be null. The relative positions [0..1] of each
92 float y1, int colors[], float positions[], TileMode tile) {
93 super(nativeMatrix, colors, positions);
112 float positions[], TileMode tile) {
113 super(colors, positions, tile);
59 nativeCreate1(LinearGradient thisGradient, long matrix, float x0, float y0, float x1, float y1, int colors[], float positions[], int tileMode) argument
91 LinearGradient_Delegate(long nativeMatrix, 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));
70 null /*positions*/, tileMode);
85 * @param positions May be NULL. The relative position of each corresponding
91 int colors[], float positions[], TileMode tile) {
92 super(nativeMatrix, colors, positions);
103 int[] colors, float[] positions, TileMode mode) {
104 super(colors, positions, mode);
59 nativeCreate1(long matrix, float x, float y, float radius, int colors[], float positions[], int tileMode) argument
90 RadialGradient_Delegate(long nativeMatrix, float x, float y, float radius, int colors[], float positions[], TileMode tile) argument
102 RadialGradientPaint(float x, float y, float radius, int[] colors, float[] positions, TileMode mode) argument
H A DSweepGradient_Delegate.java56 positions[]) {
58 positions);
65 null /*positions*/);
78 * @param positions May be NULL. The relative position of
82 * If positions is NULL, then the colors are automatically
86 int colors[], float positions[]) {
87 super(nativeMatrix, colors, positions);
97 float[] positions) {
98 super(colors, positions, null /*tileMode*/);
55 nativeCreate1(long matrix, float x, float y, int colors[], float positions[]) argument
85 SweepGradient_Delegate(long nativeMatrix, float cx, float cy, int colors[], float positions[]) argument
96 SweepGradientPaint(float cx, float cy, int[] colors, float[] positions) argument
/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/libs/hwui/
H A DFontRenderer.cpp561 int numGlyphs, float radius, const float* positions) {
580 mCurrentFont->measure(paint, glyphs, numGlyphs, &bounds, positions);
608 Font::BITMAP, dataBuffer, paddedWidth, paddedHeight, nullptr, positions);
652 int numGlyphs, int x, int y, const float* positions,
660 mCurrentFont->render(paint, glyphs, numGlyphs, x, y, positions);
560 renderDropShadow(const SkPaint* paint, const glyph_t *glyphs, int numGlyphs, float radius, const float* positions) argument
651 renderPosText(const SkPaint* paint, const Rect* clip, const glyph_t* glyphs, int numGlyphs, int x, int y, const float* positions, Rect* bounds, TextDrawFunctor* functor, bool forceFinish) argument
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));
109 Texture* GradientCache::get(uint32_t* colors, float* positions, int count) { argument
110 GradientCacheEntry gradient(colors, positions, count);
114 texture = addLinearGradient(gradient, colors, positions, count);
148 uint32_t* colors, float* positions, int count) {
166 generateTexture(colors, positions, info.width, 2, texture);
217 void GradientCache::generateTexture(uint32_t* colors, float* positions, argument
238 float startPos = positions[
147 addLinearGradient(GradientCacheEntry& gradient, uint32_t* colors, float* positions, int count) argument
[all...]
H A DGradientCache.h40 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);
72 std::unique_ptr<float[]> positions; member in struct:android::uirenderer::GradientCacheEntry
76 void copy(uint32_t* colors, float* positions, uint32_t count) { argument
79 this->positions.reset(new float[count]);
82 memcpy(this->positions.get(), positions, coun
[all...]
H A DRecordedOp.h385 TextOp(BASE_PARAMS, const glyph_t* glyphs, const float* positions, int glyphCount, argument
389 , positions(positions)
394 const float* positions; member in struct:android::uirenderer::TextOp
H A DRecordingCanvas.cpp543 void RecordingCanvas::drawGlyphs(const uint16_t* glyphs, const float* positions, int glyphCount, argument
546 if (!glyphs || !positions || glyphCount <= 0 || paint.nothingToDraw()) return;
548 positions = refBuffer<float>(positions, glyphCount * 2);
555 refPaint(&paint), glyphs, positions, glyphCount, x, y)); local

Completed in 4706 milliseconds

12