Home
last modified time | relevance | path

Searched refs:mStartPosition (Results 1 – 10 of 10) sorted by relevance

/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/
DPlayerAdapter.java28 private long mStartPosition = 0; field in PlayerAdapter
50 mStartPosition = position; in seekTo()
63 long position = mStartPosition + (System.currentTimeMillis() - mStartTime) * speed; in getCurrentPosition()
78 mStartPosition = 0; in onPlaybackComplete()
93 mStartPosition = getCurrentPosition(); in play()
104 mStartPosition = getCurrentPosition(); in pause()
DPlaybackControlGlue.java47 private long mStartPosition = 0; field in PlaybackControlGlue
206 long position = mStartPosition + (System.currentTimeMillis() - mStartTime) * speed; in getCurrentPosition()
226 mStartPosition = 0; in onPlaybackComplete()
237 mStartPosition = getCurrentPosition(); in play()
248 mStartPosition = getCurrentPosition(); in pause()
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
DTileList.java64 final int index = mTiles.indexOfKey(newTile.mStartPosition); in addOrReplace()
66 mTiles.put(newTile.mStartPosition, newTile); in addOrReplace()
88 public int mStartPosition; field in TileList.Tile
98 return mStartPosition <= pos && pos < mStartPosition + mItemCount; in containsPosition()
102 return mItems[pos - mStartPosition]; in getByPosition()
DAsyncListUtil.java235 log("recycling an older generation tile @%d", tile.mStartPosition);
242 Log.e(TAG, "duplicate tile @" + duplicate.mStartPosition);
247 generation, tile.mStartPosition, mTileList.size());
249 int endPosition = tile.mStartPosition + tile.mItemCount;
253 if (tile.mStartPosition <= position && position < endPosition) {
273 log("recycling tile @%d, total tiles: %d", tile.mStartPosition, mTileList.size());
373 tile.mStartPosition = position;
374 tile.mItemCount = Math.min(mTileSize, mItemCount - tile.mStartPosition);
375 mDataCallback.fillData(tile.mItems, tile.mStartPosition, tile.mItemCount);
383 log("recycling tile @%d", tile.mStartPosition);
[all …]
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
DTileListTest.java79 assertThat(mTileList.getAtIndex(0).mStartPosition, is(0)); in getAtIndex()
80 assertThat(mTileList.getAtIndex(1).mStartPosition, is(3)); in getAtIndex()
81 assertThat(mTileList.getAtIndex(2).mStartPosition, is(6)); in getAtIndex()
130 assertThat(mTileList.removeAtPos(0).mStartPosition, is(0)); in remove()
133 assertThat(mTileList.removeAtPos(6).mStartPosition, is(6)); in remove()
136 assertThat(mTileList.removeAtPos(9).mStartPosition, is(9)); in remove()
142 window.mStartPosition = startPosition; in createTile()
/frameworks/support/leanback/src/main/java/androidx/leanback/media/
DPlaybackBannerControlGlue.java217 private long mStartPosition = 0; field in PlaybackBannerControlGlue
520 mStartPosition = getCurrentPosition(); in onPlayCompleted()
638 long position = mStartPosition + (System.currentTimeMillis() - mStartTime) * speed; in getCurrentPosition()
643 mStartPosition = 0; in getCurrentPosition()
649 mStartPosition = 0; in getCurrentPosition()
666 mStartPosition = 0; in play()
668 mStartPosition = getCurrentPosition(); in play()
674 mPlayerAdapter.seekTo(mStartPosition); in play()
684 mStartPosition = getCurrentPosition(); in pause()
697 mStartPosition = getCurrentPosition(); in fakePause()
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/app/
DPlaybackTestFragment.java160 private long mStartPosition = 0; field in PlaybackTestFragment.PlaybackControlHelper
307 long position = mStartPosition + (System.currentTimeMillis() - mStartTime) * speed; in getCurrentPosition()
327 mStartPosition = 0; in onPlaybackComplete()
338 mStartPosition = getCurrentPosition(); in play()
349 mStartPosition = getCurrentPosition(); in pause()
DPlaybackTestSupportFragment.java157 private long mStartPosition = 0; field in PlaybackTestSupportFragment.PlaybackControlHelper
304 long position = mStartPosition + (System.currentTimeMillis() - mStartTime) * speed; in getCurrentPosition()
324 mStartPosition = 0; in onPlaybackComplete()
335 mStartPosition = getCurrentPosition(); in play()
346 mStartPosition = getCurrentPosition(); in pause()
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipTouchHandler.java579 private final Point mStartPosition = new Point();
590 mStartPosition.set(bounds.left, bounds.top);
625 float lastX = mStartPosition.x + mDelta.x;
626 float lastY = mStartPosition.y + mDelta.y;
744 mStartPosition);
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/
DDividerView.java119 private int mStartPosition; field in DividerView
512 mStartPosition = getCurrentPosition(); in onTouch()
529 mStartPosition, 0 /* velocity */, false /* hardDismiss */); in onTouch()
530 resizeStackDelayed(calculatePosition(x, y), mStartPosition, snapTarget); in onTouch() local
965 return mStartPosition + touchX - mStartX; in calculateXPosition()
969 return mStartPosition + touchY - mStartY; in calculateYPosition()
1149 return Math.max(mSnapAlgorithm.getFirstSplitTarget().position, mStartPosition); in restrictDismissingTaskPosition()
1152 return Math.min(mSnapAlgorithm.getLastSplitTarget().position, mStartPosition); in restrictDismissingTaskPosition()