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

12

/frameworks/base/core/java/com/android/internal/widget/
H A DNestedScrollingChild.java88 * parent at least partially consumed the scroll and the caller should adjust the amount it
93 * both the delta consumed and the delta unconsumed. A nested scrolling parent may treat
140 * @param dxConsumed Horizontal distance in pixels consumed by this view during this scroll step
141 * @param dyConsumed Vertical distance in pixels consumed by this view during this scroll step
142 * @param dxUnconsumed Horizontal scroll distance in pixels not consumed by this view
143 * @param dyUnconsumed Horizontal scroll distance in pixels not consumed by this view
164 * @param consumed Output. If not null, consumed[0] will contain the consumed component of dx
165 * and consumed[
173 dispatchNestedPreScroll(int dx, int dy, int[] consumed, int[] offsetInWindow) argument
193 dispatchNestedFling(float velocityX, float velocityY, boolean consumed) argument
[all...]
/frameworks/support/compat/src/main/java/androidx/core/view/
H A DNestedScrollingChild.java92 * parent at least partially consumed the scroll and the caller should adjust the amount it
97 * both the delta consumed and the delta unconsumed. A nested scrolling parent may treat
144 * @param dxConsumed Horizontal distance in pixels consumed by this view during this scroll step
145 * @param dyConsumed Vertical distance in pixels consumed by this view during this scroll step
146 * @param dxUnconsumed Horizontal scroll distance in pixels not consumed by this view
147 * @param dyUnconsumed Horizontal scroll distance in pixels not consumed by this view
168 * @param consumed Output. If not null, consumed[0] will contain the consumed component of dx
169 * and consumed[
177 dispatchNestedPreScroll(int dx, int dy, @Nullable int[] consumed, @Nullable int[] offsetInWindow) argument
198 dispatchNestedFling(float velocityX, float velocityY, boolean consumed) argument
[all...]
H A DNestedScrollingParent.java105 * <p>Both the consumed and unconsumed portions of the scroll distance are reported to the
106 * ViewParent. An implementation may choose to use the consumed portion to match or chase scroll
113 * @param dxConsumed Horizontal scroll distance in pixels already consumed by target
114 * @param dyConsumed Vertical scroll distance in pixels already consumed by target
115 * @param dxUnconsumed Horizontal scroll distance in pixels not consumed by target
116 * @param dyUnconsumed Vertical scroll distance in pixels not consumed by target
131 * report how any pixels of the scroll reported by dx, dy were consumed in the
132 * <code>consumed</code> array. Index 0 corresponds to dx and index 1 corresponds to dy.
133 * This parameter will never be null. Initial values for consumed[0] and consumed[
141 onNestedPreScroll(@onNull View target, int dx, int dy, @NonNull int[] consumed) argument
162 onNestedFling(@onNull View target, float velocityX, float velocityY, boolean consumed) argument
[all...]
H A DNestedScrollingChildHelper.java200 * @return true if the parent consumed any of the nested scroll
215 * @return true if the parent consumed any of the nested scroll
260 * @return true if the parent consumed any of the nested scroll
262 public boolean dispatchNestedPreScroll(int dx, int dy, @Nullable int[] consumed, argument
264 return dispatchNestedPreScroll(dx, dy, consumed, offsetInWindow, TYPE_TOUCH);
274 * @return true if the parent consumed any of the nested scroll
276 public boolean dispatchNestedPreScroll(int dx, int dy, @Nullable int[] consumed, argument
293 if (consumed == null) {
297 consumed = mTempNestedScrollConsumed;
299 consumed[
326 dispatchNestedFling(float velocityX, float velocityY, boolean consumed) argument
[all...]
H A DNestedScrollingChild2.java63 * parent at least partially consumed the scroll and the caller should adjust the amount it
68 * both the delta consumed and the delta unconsumed. A nested scrolling parent may treat
119 * @param dxConsumed Horizontal distance in pixels consumed by this view during this scroll step
120 * @param dyConsumed Vertical distance in pixels consumed by this view during this scroll step
121 * @param dxUnconsumed Horizontal scroll distance in pixels not consumed by this view
122 * @param dyUnconsumed Horizontal scroll distance in pixels not consumed by this view
145 * @param consumed Output. If not null, consumed[0] will contain the consumed component of dx
146 * and consumed[
155 dispatchNestedPreScroll(int dx, int dy, @Nullable int[] consumed, @Nullable int[] offsetInWindow, @NestedScrollType int type) argument
[all...]
H A DViewParentCompat.java122 * @param dxConsumed Horizontal scroll distance in pixels already consumed by target
123 * @param dyConsumed Vertical scroll distance in pixels already consumed by target
124 * @param dxUnconsumed Horizontal scroll distance in pixels not consumed by target
125 * @param dyUnconsumed Vertical scroll distance in pixels not consumed by target
143 * @param consumed Output. The horizontal and vertical scroll distance consumed by this parent
146 int[] consumed) {
147 onNestedPreScroll(parent, target, dx, dy, consumed, ViewCompat.TYPE_TOUCH);
277 * <p>Both the consumed and unconsumed portions of the scroll distance are reported to the
278 * ViewParent. An implementation may choose to use the consumed portio
145 onNestedPreScroll(ViewParent parent, View target, int dx, int dy, int[] consumed) argument
337 onNestedPreScroll(ViewParent parent, View target, int dx, int dy, int[] consumed, int type) argument
377 onNestedFling(ViewParent parent, View target, float velocityX, float velocityY, boolean consumed) argument
[all...]
H A DNestedScrollingParent2.java109 * <p>Both the consumed and unconsumed portions of the scroll distance are reported to the
110 * ViewParent. An implementation may choose to use the consumed portion to match or chase scroll
117 * @param dxConsumed Horizontal scroll distance in pixels already consumed by target
118 * @param dyConsumed Vertical scroll distance in pixels already consumed by target
119 * @param dxUnconsumed Horizontal scroll distance in pixels not consumed by target
120 * @param dyUnconsumed Vertical scroll distance in pixels not consumed by target
136 * report how any pixels of the scroll reported by dx, dy were consumed in the
137 * <code>consumed</code> array. Index 0 corresponds to dx and index 1 corresponds to dy.
138 * This parameter will never be null. Initial values for consumed[0] and consumed[
147 onNestedPreScroll(@onNull View target, int dx, int dy, @NonNull int[] consumed, @NestedScrollType int type) argument
[all...]
H A DViewCompat.java2220 * @return The supplied insets with any applied insets consumed
2245 * @return The provided insets minus the insets that were consumed
2543 * @param dxConsumed Horizontal distance in pixels consumed by this view during this scroll step
2544 * @param dyConsumed Vertical distance in pixels consumed by this view during this scroll step
2545 * @param dxUnconsumed Horizontal scroll distance in pixels not consumed by this view
2546 * @param dyUnconsumed Horizontal scroll distance in pixels not consumed by this view
2576 * @param consumed Output. If not null, consumed[0] will contain the consumed component of dx
2577 * and consumed[
2585 dispatchNestedPreScroll(@onNull View view, int dx, int dy, @Nullable int[] consumed, @Nullable int[] offsetInWindow) argument
2737 dispatchNestedPreScroll(@onNull View view, int dx, int dy, @Nullable int[] consumed, @Nullable int[] offsetInWindow, @NestedScrollType int type) argument
2767 dispatchNestedFling(@onNull View view, float velocityX, float velocityY, boolean consumed) argument
[all...]
/frameworks/support/paging/common/src/test/java/androidx/paging/
H A DExecutors.kt31 val consumed = !mTasks.isEmpty()
38 return consumed
/frameworks/support/paging/runtime/src/androidTest/java/androidx/paging/
H A DTestExecutor.kt30 val consumed = !mTasks.isEmpty()
37 return consumed
/frameworks/wilhelm/src/android/
H A Dandroid_AudioToCbRenderer.cpp65 size_t consumed = 0; local
68 consumed = mDecodeCbf(
73 offset += consumed;
74 //SL_LOGV("consumed=%u, offset=%u, full=%u", consumed, offset, full);
75 if (consumed == 0) {
76 // decoded data is not being consumed, skip this buffer
H A Dandroid_StreamPlayer.cpp142 // (either because there was a command with no data, or all the data has been consumed)
211 // 2/ keep track of how much has been consumed
219 size_t consumed = oldFront->mDataSize - oldFront->mDataSizeConsumed; local
220 //SL_LOGD("consuming rest of buffer: enqueueing=%u", consumed);
233 if (consumed > 0) {
235 memcpy(bufferLoc, pSrc, consumed);
236 // 2/ keep track of how much has been consumed
239 receivedBuffer_l(bufferId, consumed);
243 // data has been consumed, and the buffer queue state has been updated
258 // here a buffer is only dequeued when fully consumed
[all...]
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/test/
H A DNestedScrollingParent2Adapter.java49 @NonNull int[] consumed, @ViewCompat.NestedScrollType int type) {
63 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed) { argument
64 onNestedPreScroll(target, dx, dy, consumed, ViewCompat.TYPE_TOUCH);
81 boolean consumed) {
48 onNestedPreScroll(@onNull View target, int dx, int dy, @NonNull int[] consumed, @ViewCompat.NestedScrollType int type) argument
80 onNestedFling(@onNull View target, float velocityX, float velocityY, boolean consumed) argument
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
H A DBrowseFrameLayout.java136 boolean consumed = super.dispatchKeyEvent(event);
138 if (!consumed) {
142 return consumed;
/frameworks/av/media/libstagefright/id3/
H A DID3.cpp903 size_t consumed = 1; local
906 size_t mimeLen = StringSize(&data[consumed], size - consumed, 0x00);
907 if (mimeLen > size - consumed) {
911 mime->setTo((const char *)&data[consumed]);
912 consumed += mimeLen;
915 uint8_t picType = data[consumed];
923 consumed++;
924 if (consumed >= size) {
929 size_t descLen = StringSize(&data[consumed], siz
[all...]
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DTestedFrameLayout.java185 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed) { argument
186 onNestedPreScroll(target, dx, dy, consumed, ViewCompat.TYPE_TOUCH);
230 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) { argument
232 && mNestedScrollingDelegate.onNestedFling(target, velocityX, velocityY, consumed);
245 public void onNestedPreScroll(@NonNull View target, int dx, int dy, @NonNull int[] consumed, argument
248 mNestedScrollingDelegate.onNestedPreScroll(target, dx, dy, consumed, type);
/frameworks/base/core/java/android/view/
H A DViewParent.java564 * <p>Both the consumed and unconsumed portions of the scroll distance are reported to the
565 * ViewParent. An implementation may choose to use the consumed portion to match or chase scroll
572 * @param dxConsumed Horizontal scroll distance in pixels already consumed by target
573 * @param dyConsumed Vertical scroll distance in pixels already consumed by target
574 * @param dxUnconsumed Horizontal scroll distance in pixels not consumed by target
575 * @param dyUnconsumed Vertical scroll distance in pixels not consumed by target
590 * report how any pixels of the scroll reported by dx, dy were consumed in the
591 * <code>consumed</code> array. Index 0 corresponds to dx and index 1 corresponds to dy.
592 * This parameter will never be null. Initial values for consumed[0] and consumed[
600 onNestedPreScroll(View target, int dx, int dy, int[] consumed) argument
621 onNestedFling(View target, float velocityX, float velocityY, boolean consumed) argument
[all...]
/frameworks/support/swiperefreshlayout/src/main/java/androidx/swiperefreshlayout/widget/
H A DSwipeRefreshLayout.java117 // consumed by this as the nested scrolling parent is used in place of the
771 // Reset the counter of how much leftover scroll needs to be consumed.
780 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed) { argument
785 consumed[1] = dy - (int) mTotalUnconsumed;
789 consumed[1] = dy;
799 && Math.abs(dy - consumed[1]) > 0) {
805 if (dispatchNestedPreScroll(dx - consumed[0], dy - consumed[1], parentConsumed, null)) {
806 consumed[0] += parentConsumed[0];
807 consumed[
884 dispatchNestedPreScroll(int dx, int dy, int[] consumed, int[] offsetInWindow) argument
896 onNestedFling(View target, float velocityX, float velocityY, boolean consumed) argument
902 dispatchNestedFling(float velocityX, float velocityY, boolean consumed) argument
[all...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DDragDropController.java204 void reportDropResult(IWindow window, boolean consumed) { argument
207 Slog.d(TAG_WM, "Drop result=" + consumed + " reported by " + token);
210 mCallback.get().preReportDropResult(window, consumed);
236 mDragState.mDragResult = consumed;
H A DWindowManagerInternal.java182 default void preReportDropResult(IWindow window, boolean consumed) {} argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DRecentsViewTouchHandler.java205 boolean consumed = false;
269 consumed = true;
284 return consumed;
/frameworks/support/compat/src/androidTest/java/androidx/core/widget/
H A DNestedScrollViewNestedScrollingParentTest.java586 int[] consumed = new int[2];
588 mNestedScrollView.onNestedPreScroll(mChild, 1, 2, consumed);
670 public void onNestedPreScroll(@NonNull View target, int dx, int dy, @NonNull int[] consumed, argument
697 public boolean dispatchNestedPreScroll(int dx, int dy, @Nullable int[] consumed, argument
734 public boolean dispatchNestedPreScroll(int dx, int dy, int[] consumed, argument
740 public boolean dispatchNestedFling(float velocityX, float velocityY, boolean consumed) { argument
771 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed) { argument
777 boolean consumed) {
776 onNestedFling(View target, float velocityX, float velocityY, boolean consumed) argument
/frameworks/base/core/java/android/widget/
H A DListPopupWindow.java928 boolean consumed;
960 consumed = mDropDownList.onKeyDown(keyCode, event);
961 if (DEBUG) Log.v(TAG, "Key down: code=" + keyCode + " list consumed=" + consumed);
963 if (consumed) {
1014 boolean consumed = mDropDownList.onKeyUp(keyCode, event);
1015 if (consumed && KeyEvent.isConfirmKey(keyCode)) {
1020 return consumed;
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
H A DListPopupWindow.java966 boolean consumed;
998 consumed = mDropDownList.onKeyDown(keyCode, event);
999 if (DEBUG) Log.v(TAG, "Key down: code=" + keyCode + " list consumed=" + consumed);
1001 if (consumed) {
1052 boolean consumed = mDropDownList.onKeyUp(keyCode, event);
1053 if (consumed && isConfirmKey(keyCode)) {
1058 return consumed;
/frameworks/support/compat/src/main/java/androidx/core/widget/
H A DNestedScrollView.java242 public boolean dispatchNestedPreScroll(int dx, int dy, int[] consumed, int[] offsetInWindow, argument
244 return mChildHelper.dispatchNestedPreScroll(dx, dy, consumed, offsetInWindow, type);
282 public boolean dispatchNestedPreScroll(int dx, int dy, int[] consumed, int[] offsetInWindow) { argument
283 return dispatchNestedPreScroll(dx, dy, consumed, offsetInWindow, ViewCompat.TYPE_TOUCH);
287 public boolean dispatchNestedFling(float velocityX, float velocityY, boolean consumed) { argument
288 return mChildHelper.dispatchNestedFling(velocityX, velocityY, consumed);
329 public void onNestedPreScroll(@NonNull View target, int dx, int dy, @NonNull int[] consumed, argument
331 dispatchNestedPreScroll(dx, dy, consumed, null, type);
359 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed) { argument
360 onNestedPreScroll(target, dx, dy, consumed, ViewCompa
364 onNestedFling(View target, float velocityX, float velocityY, boolean consumed) argument
[all...]

Completed in 322 milliseconds

12