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

/frameworks/data-binding/extensions/library/src/main/java/android/databinding/
H A DObservableArrayList.java111 protected void removeRange(int fromIndex, int toIndex) { argument
112 super.removeRange(fromIndex, toIndex);
113 notifyRemove(fromIndex, toIndex - fromIndex);
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
H A DViewBoundsCheck.java198 * Returns the first view starting from fromIndex to toIndex in views whose bounds lie within
204 * @param toIndex The view position index to end the search at.
214 View findOneViewWithinBoundFlags(int fromIndex, int toIndex, argument
219 final int next = toIndex > fromIndex ? 1 : -1;
221 for (int i = fromIndex; i != toIndex; i += next) {
H A DLinearLayoutManager.java1922 View findOneVisibleChild(int fromIndex, int toIndex, boolean completelyVisible, argument
1939 .findOneViewWithinBoundFlags(fromIndex, toIndex, preferredBoundsFlag,
1941 .findOneViewWithinBoundFlags(fromIndex, toIndex, preferredBoundsFlag,
1945 View findOnePartiallyOrCompletelyInvisibleChild(int fromIndex, int toIndex) { argument
1947 final int next = toIndex > fromIndex ? 1 : (toIndex < fromIndex ? -1 : 0);
1966 .findOneViewWithinBoundFlags(fromIndex, toIndex, preferredBoundsFlag,
1968 .findOneViewWithinBoundFlags(fromIndex, toIndex, preferredBoundsFlag,
H A DStaggeredGridLayoutManager.java2742 * @param toIndex The child position index to end the search at.
2754 int findOnePartiallyOrCompletelyVisibleChild(int fromIndex, int toIndex, argument
2760 final int next = toIndex > fromIndex ? 1 : -1;
2761 for (int i = fromIndex; i != toIndex; i += next) {
2788 int findOneVisibleChild(int fromIndex, int toIndex, boolean completelyVisible) { argument
2789 return findOnePartiallyOrCompletelyVisibleChild(fromIndex, toIndex, completelyVisible,
2793 int findOnePartiallyVisibleChild(int fromIndex, int toIndex, argument
2795 return findOnePartiallyOrCompletelyVisibleChild(fromIndex, toIndex, false, false,
H A DRecyclerView.java8542 * @param toIndex The View's target index
8544 public void moveView(int fromIndex, int toIndex) { argument
8551 attachView(view, toIndex);
/frameworks/base/location/tests/locationtests/src/android/location/
H A DSatelliteInfo.java139 * Set the bit in the range [fromIndex, toIndex), index start from the lowest bit.
144 private int setRange(int targetValue, int value, int fromIndex, int toIndex) { argument
145 int rangeLen = toIndex - fromIndex;
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DPageIndicator.java116 int toIndex = to >> 1;
124 int firstIndex = Math.min(fromIndex, toIndex);
125 int secondIndex = Math.max(fromIndex, toIndex);
/frameworks/base/graphics/java/android/graphics/drawable/
H A DAnimatedStateListDrawable.java159 private boolean selectTransition(int toIndex) { argument
163 if (toIndex == mTransitionToIndex) {
166 } else if (toIndex == mTransitionFromIndex && currentTransition.canReverse()) {
170 mTransitionFromIndex = toIndex;
190 final int toId = state.getKeyframeIdAt(toIndex);
230 mTransitionToIndex = toIndex;
/frameworks/support/compat/src/main/java/androidx/core/view/accessibility/
H A DAccessibilityRecordCompat.java404 * @param toIndex The index of selection end or last item index.
409 public void setToIndex(int toIndex) { argument
410 mRecord.setToIndex(toIndex);
/frameworks/support/media/src/androidTest/java/androidx/media/
H A DMockMediaLibraryService2.java214 int toIndex = Math.min(page * pageSize, totalItemCount);
219 paginatedResult = items.subList(fromIndex, toIndex);
H A DMediaBrowser2Test.java202 int toIndex = Math.min(page * pageSize, MockMediaLibraryService2.CHILDREN_COUNT);
205 for (int originalIndex = fromIndex; originalIndex < toIndex; originalIndex++) {
296 int toIndex = Math.min(
300 for (int originalIndex = fromIndex; originalIndex < toIndex; originalIndex++) {
/frameworks/support/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/
H A DMediaBrowserServiceSupport.java296 int toIndex = 0;
317 toIndex = page == -1 ? genres.size() : Math.min(fromIndex + pageSize, genres.size());
319 for (int i = fromIndex; i < toIndex; i++) {
338 toIndex = page == -1 ? tracks.size() : Math.min(fromIndex + pageSize, tracks.size());
340 for (int i = fromIndex; i < toIndex; i++) {
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/
H A DMediaBrowserServiceSupport.java296 int toIndex = 0;
317 toIndex = page == -1 ? genres.size() : Math.min(fromIndex + pageSize, genres.size());
319 for (int i = fromIndex; i < toIndex; i++) {
338 toIndex = page == -1 ? tracks.size() : Math.min(fromIndex + pageSize, tracks.size());
340 for (int i = fromIndex; i < toIndex; i++) {
/frameworks/base/core/java/android/widget/
H A DStackView.java231 void transformViewForTransition(int fromIndex, int toIndex, final View view, boolean animate) { argument
240 if (fromIndex == -1 && toIndex == getNumActiveViews() -1) {
241 transformViewAtIndex(toIndex, view, false);
244 } else if (fromIndex == 0 && toIndex == 1) {
266 } else if (fromIndex == 1 && toIndex == 0) {
286 } else if (toIndex == 0) {
290 } else if ((fromIndex == 0 || fromIndex == 1) && toIndex > 1) {
300 } else if (toIndex == -1) {
313 if (toIndex != -1) {
314 transformViewAtIndex(toIndex, vie
[all...]
H A DAdapterViewAnimator.java263 * @param toIndex The relative index within the window that the view is going to, -1 if it is
267 void transformViewForTransition(int fromIndex, int toIndex, View view, boolean animate) { argument
271 } else if (toIndex == -1) {
/frameworks/base/media/java/android/service/media/
H A DMediaBrowserService.java724 int toIndex = fromIndex + pageSize;
728 if (toIndex > list.size()) {
729 toIndex = list.size();
731 return list.subList(fromIndex, toIndex);
/frameworks/base/core/java/android/view/accessibility/
H A DAccessibilityRecord.java429 * @param toIndex The index of selection end or last item index.
431 public void setToIndex(int toIndex) { argument
433 mToIndex = toIndex;
/frameworks/support/media/src/main/java/androidx/media/
H A DMediaBrowserServiceCompat.java1525 int toIndex = fromIndex + pageSize;
1529 if (toIndex > list.size()) {
1530 toIndex = list.size();
1532 return list.subList(fromIndex, toIndex);
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
H A DPageContentRepository.java598 final int toIndex = lastVisiblePageIndex + halfPreloadCount;
601 Log.i(LOG_TAG, "fromIndex=" + fromIndex + " toIndex=" + toIndex);
609 int thisRangeEnd = Math.min(range.getSize(), toIndex - previousRangeSizes + 1);
/frameworks/support/media/src/main/java/android/support/v4/media/
H A DMediaBrowserCompat.java807 int toIndex = fromIndex + pageSize;
811 if (toIndex > list.size()) {
812 toIndex = list.size();
814 return list.subList(fromIndex, toIndex);
/frameworks/base/core/java/com/android/internal/widget/
H A DLinearLayoutManager.java1858 View findOneVisibleChild(int fromIndex, int toIndex, boolean completelyVisible, argument
1863 final int next = toIndex > fromIndex ? 1 : -1;
1865 for (int i = fromIndex; i != toIndex; i += next) {
H A DRecyclerView.java7972 * @param toIndex The View's target index
7974 public void moveView(int fromIndex, int toIndex) { argument
7981 attachView(view, toIndex);
/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/opt/setupwizard/tools/docs/
H A Ddoclava.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/ccil/ org/ccil/cowan/ org/ccil/cowan/tagsoup/ ...
/frameworks/base/core/java/android/view/
H A DView.java12286 int fromIndex, int toIndex) {
12295 event.setToIndex(toIndex);
12285 sendViewTextTraversedAtGranularityEvent(int action, int granularity, int fromIndex, int toIndex) argument
[all...]

Completed in 238 milliseconds