/frameworks/base/core/java/com/android/internal/widget/ |
H A D | NestedScrollingChild.java | 88 * 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/wilhelm/src/android/ |
H A D | android_AudioToCbRenderer.cpp | 65 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 D | android_StreamPlayer.cpp | 141 // (either because there was a command with no data, or all the data has been consumed) 210 // 2/ keep track of how much has been consumed 218 size_t consumed = oldFront->mDataSize - oldFront->mDataSizeConsumed; local 219 //SL_LOGD("consuming rest of buffer: enqueueing=%u", consumed); 232 if (consumed > 0) { 234 memcpy(bufferLoc, pSrc, consumed); 235 // 2/ keep track of how much has been consumed 238 receivedBuffer_l(bufferId, consumed); 242 // data has been consumed, and the buffer queue state has been updated 257 // here a buffer is only dequeued when fully consumed [all...] |
/frameworks/support/compat/java/android/support/v4/view/ |
H A D | NestedScrollingChild.java | 91 * parent at least partially consumed the scroll and the caller should adjust the amount it 96 * both the delta consumed and the delta unconsumed. A nested scrolling parent may treat 143 * @param dxConsumed Horizontal distance in pixels consumed by this view during this scroll step 144 * @param dyConsumed Vertical distance in pixels consumed by this view during this scroll step 145 * @param dxUnconsumed Horizontal scroll distance in pixels not consumed by this view 146 * @param dyUnconsumed Horizontal scroll distance in pixels not consumed by this view 167 * @param consumed Output. If not null, consumed[0] will contain the consumed component of dx 168 * and consumed[ 176 dispatchNestedPreScroll(int dx, int dy, @Nullable int[] consumed, @Nullable int[] offsetInWindow) argument 197 dispatchNestedFling(float velocityX, float velocityY, boolean consumed) argument [all...] |
H A D | NestedScrollingParent.java | 104 * <p>Both the consumed and unconsumed portions of the scroll distance are reported to the 105 * ViewParent. An implementation may choose to use the consumed portion to match or chase scroll 112 * @param dxConsumed Horizontal scroll distance in pixels already consumed by target 113 * @param dyConsumed Vertical scroll distance in pixels already consumed by target 114 * @param dxUnconsumed Horizontal scroll distance in pixels not consumed by target 115 * @param dyUnconsumed Vertical scroll distance in pixels not consumed by target 130 * report how any pixels of the scroll reported by dx, dy were consumed in the 131 * <code>consumed</code> array. Index 0 corresponds to dx and index 1 corresponds to dy. 132 * This parameter will never be null. Initial values for consumed[0] and consumed[ 140 onNestedPreScroll(@onNull View target, int dx, int dy, @NonNull int[] consumed) argument 161 onNestedFling(@onNull View target, float velocityX, float velocityY, boolean consumed) argument [all...] |
H A D | ViewParentCompat.java | 70 int[] consumed) { 72 ((NestedScrollingParent) parent).onNestedPreScroll(target, dx, dy, consumed); 77 float velocityY, boolean consumed) { 80 consumed); 157 int[] consumed) { 159 parent.onNestedPreScroll(target, dx, dy, consumed); 168 float velocityY, boolean consumed) { 170 return parent.onNestedFling(target, velocityX, velocityY, consumed); 289 * @param dxConsumed Horizontal scroll distance in pixels already consumed by target 290 * @param dyConsumed Vertical scroll distance in pixels already consumed b 69 onNestedPreScroll(ViewParent parent, View target, int dx, int dy, int[] consumed) argument 76 onNestedFling(ViewParent parent, View target, float velocityX, float velocityY, boolean consumed) argument 156 onNestedPreScroll(ViewParent parent, View target, int dx, int dy, int[] consumed) argument 167 onNestedFling(ViewParent parent, View target, float velocityX, float velocityY, boolean consumed) argument 312 onNestedPreScroll(ViewParent parent, View target, int dx, int dy, int[] consumed) argument 459 onNestedPreScroll(ViewParent parent, View target, int dx, int dy, int[] consumed, int type) argument 489 onNestedFling(ViewParent parent, View target, float velocityX, float velocityY, boolean consumed) argument [all...] |
H A D | NestedScrollingChild2.java | 62 * parent at least partially consumed the scroll and the caller should adjust the amount it 67 * both the delta consumed and the delta unconsumed. A nested scrolling parent may treat 118 * @param dxConsumed Horizontal distance in pixels consumed by this view during this scroll step 119 * @param dyConsumed Vertical distance in pixels consumed by this view during this scroll step 120 * @param dxUnconsumed Horizontal scroll distance in pixels not consumed by this view 121 * @param dyUnconsumed Horizontal scroll distance in pixels not consumed by this view 144 * @param consumed Output. If not null, consumed[0] will contain the consumed component of dx 145 * and consumed[ 154 dispatchNestedPreScroll(int dx, int dy, @Nullable int[] consumed, @Nullable int[] offsetInWindow, @NestedScrollType int type) argument [all...] |
H A D | NestedScrollingParent2.java | 109 * <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, @Nullable int[] consumed, @NestedScrollType int type) argument [all...] |
H A D | ViewCompat.java | 845 int[] consumed, int[] offsetInWindow) { 847 return ((NestedScrollingChild) view).dispatchNestedPreScroll(dx, dy, consumed, 854 boolean consumed) { 857 consumed); 1294 int[] consumed, int[] offsetInWindow) { 1295 return view.dispatchNestedPreScroll(dx, dy, consumed, offsetInWindow); 1300 boolean consumed) { 1301 return view.dispatchNestedFling(velocityX, velocityY, consumed); 2875 * @return The supplied insets with any applied insets consumed 2891 * @return The provided insets minus the insets that were consumed 844 dispatchNestedPreScroll(View view, int dx, int dy, int[] consumed, int[] offsetInWindow) argument 853 dispatchNestedFling(View view, float velocityX, float velocityY, boolean consumed) argument 1293 dispatchNestedPreScroll(View view, int dx, int dy, int[] consumed, int[] offsetInWindow) argument 1299 dispatchNestedFling(View view, float velocityX, float velocityY, boolean consumed) argument 3125 dispatchNestedPreScroll(@onNull View view, int dx, int dy, @Nullable int[] consumed, @Nullable int[] offsetInWindow) argument 3270 dispatchNestedPreScroll(@onNull View view, int dx, int dy, @Nullable int[] consumed, @Nullable int[] offsetInWindow, @NestedScrollType int type) argument 3299 dispatchNestedFling(@onNull View view, float velocityX, float velocityY, boolean consumed) argument [all...] |
/frameworks/support/core-ui/java/android/support/v4/view/ |
H A D | NestedScrollingChildHelper.java | 199 * @return true if the parent consumed any of the nested scroll 214 * @return true if the parent consumed any of the nested scroll 259 * @return true if the parent consumed any of the nested scroll 261 public boolean dispatchNestedPreScroll(int dx, int dy, @Nullable int[] consumed, argument 263 return dispatchNestedPreScroll(dx, dy, consumed, offsetInWindow, TYPE_TOUCH); 273 * @return true if the parent consumed any of the nested scroll 275 public boolean dispatchNestedPreScroll(int dx, int dy, @Nullable int[] consumed, argument 292 if (consumed == null) { 296 consumed = mTempNestedScrollConsumed; 298 consumed[ 325 dispatchNestedFling(float velocityX, float velocityY, boolean consumed) argument [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | BrowseFrameLayout.java | 136 boolean consumed = super.dispatchKeyEvent(event); 138 if (!consumed) { 142 return consumed;
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/test/ |
H A D | NestedScrollingParent2Adapter.java | 49 @Nullable 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, @Nullable int[] consumed, @ViewCompat.NestedScrollType int type) argument 80 onNestedFling(@onNull View target, float velocityX, float velocityY, boolean consumed) argument
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
H A D | TestedFrameLayout.java | 144 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed) { argument 145 onNestedPreScroll(target, dx, dy, consumed, ViewCompat.TYPE_TOUCH); 189 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) { argument 191 && mNestedScrollingDelegate.onNestedFling(target, velocityX, velocityY, consumed); 204 public void onNestedPreScroll(@NonNull View target, int dx, int dy, @Nullable int[] consumed, argument 207 mNestedScrollingDelegate.onNestedPreScroll(target, dx, dy, consumed, type);
|
/frameworks/av/media/libstagefright/id3/ |
H A D | ID3.cpp | 881 size_t consumed = 1; local 884 size_t mimeLen = StringSize(&data[consumed], size - consumed, 0x00); 885 if (mimeLen > size - consumed) { 889 mime->setTo((const char *)&data[consumed]); 890 consumed += mimeLen; 893 uint8_t picType = data[consumed]; 901 consumed++; 902 if (consumed >= size) { 907 size_t descLen = StringSize(&data[consumed], siz [all...] |
/frameworks/base/core/java/android/view/ |
H A D | ViewParent.java | 564 * <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...] |
H A D | IWindowSession.aidl | 165 * consumed is 'true' when the drop was accepted by a valid recipient, 168 void reportDropResult(IWindow window, boolean consumed);
|
/frameworks/support/core-ui/java/android/support/v4/widget/ |
H A D | SwipeRefreshLayout.java | 111 // consumed by this as the nested scrolling parent is used in place of the 757 // Reset the counter of how much leftover scroll needs to be consumed. 766 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed) { argument 771 consumed[1] = dy - (int) mTotalUnconsumed; 775 consumed[1] = dy; 785 && Math.abs(dy - consumed[1]) > 0) { 791 if (dispatchNestedPreScroll(dx - consumed[0], dy - consumed[1], parentConsumed, null)) { 792 consumed[0] += parentConsumed[0]; 793 consumed[ 870 dispatchNestedPreScroll(int dx, int dy, int[] consumed, int[] offsetInWindow) argument 882 onNestedFling(View target, float velocityX, float velocityY, boolean consumed) argument 888 dispatchNestedFling(float velocityX, float velocityY, boolean consumed) argument [all...] |
H A D | NestedScrollView.java | 269 public boolean dispatchNestedPreScroll(int dx, int dy, int[] consumed, int[] offsetInWindow) { argument 270 return mChildHelper.dispatchNestedPreScroll(dx, dy, consumed, offsetInWindow); 274 public boolean dispatchNestedPreScroll(int dx, int dy, int[] consumed, int[] offsetInWindow, argument 276 return mChildHelper.dispatchNestedPreScroll(dx, dy, consumed, offsetInWindow, type); 280 public boolean dispatchNestedFling(float velocityX, float velocityY, boolean consumed) { argument 281 return mChildHelper.dispatchNestedFling(velocityX, velocityY, consumed); 319 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed) { argument 320 dispatchNestedPreScroll(dx, dy, consumed, null); 324 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) { argument 325 if (!consumed) { [all...] |
/frameworks/support/design/src/android/support/design/widget/ |
H A D | HeaderBehavior.java | 199 int consumed = 0; 208 // Update how much dy we have consumed 209 consumed = curOffset - newOffset; 213 return consumed;
|
H A D | BottomSheetBehavior.java | 344 int dy, int[] consumed) { 353 consumed[1] = currentTop - mMinOffset; 354 ViewCompat.offsetTopAndBottom(child, -consumed[1]); 357 consumed[1] = dy; 364 consumed[1] = dy; 368 consumed[1] = currentTop - mMaxOffset; 369 ViewCompat.offsetTopAndBottom(child, -consumed[1]); 343 onNestedPreScroll(CoordinatorLayout coordinatorLayout, V child, View target, int dx, int dy, int[] consumed) argument
|
H A D | AppBarLayout.java | 846 View target, int dx, int dy, int[] consumed, int type) { 859 consumed[1] = scroll(coordinatorLayout, child, dy, min, max); 1115 int consumed = 0; 1128 // Update how much dy we have consumed 1129 consumed = curOffset - newOffset; 1153 return consumed; 845 onNestedPreScroll(CoordinatorLayout coordinatorLayout, AppBarLayout child, View target, int dx, int dy, int[] consumed, int type) argument
|
/frameworks/base/core/java/android/widget/ |
H A D | ListPopupWindow.java | 926 boolean consumed; 958 consumed = mDropDownList.onKeyDown(keyCode, event); 959 if (DEBUG) Log.v(TAG, "Key down: code=" + keyCode + " list consumed=" + consumed); 961 if (consumed) { 1012 boolean consumed = mDropDownList.onKeyUp(keyCode, event); 1013 if (consumed && KeyEvent.isConfirmKey(keyCode)) { 1018 return consumed;
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | ListPopupWindow.java | 965 boolean consumed; 997 consumed = mDropDownList.onKeyDown(keyCode, event); 998 if (DEBUG) Log.v(TAG, "Key down: code=" + keyCode + " list consumed=" + consumed); 1000 if (consumed) { 1051 boolean consumed = mDropDownList.onKeyUp(keyCode, event); 1052 if (consumed && isConfirmKey(keyCode)) { 1057 return consumed;
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
H A D | BridgeWindowSession.java | 154 public void reportDropResult(IWindow window, boolean consumed) throws RemoteException { argument
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | Session.java | 390 public void reportDropResult(IWindow window, boolean consumed) { argument 393 Slog.d(TAG_WM, "Drop result=" + consumed + " reported by " + token); 422 mService.mDragState.mDragResult = consumed;
|