/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 | 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 | 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 | 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 | ViewParentCompat.java | 69 int[] consumed) { 71 ((NestedScrollingParent) parent).onNestedPreScroll(target, dx, dy, consumed); 76 float velocityY, boolean consumed) { 79 consumed); 156 int[] consumed) { 158 parent.onNestedPreScroll(target, dx, dy, consumed); 167 float velocityY, boolean consumed) { 169 return parent.onNestedFling(target, velocityX, velocityY, consumed); 288 * @param dxConsumed Horizontal scroll distance in pixels already consumed by target 289 * @param dyConsumed Vertical scroll distance in pixels already consumed b 68 onNestedPreScroll(ViewParent parent, View target, int dx, int dy, int[] consumed) argument 75 onNestedFling(ViewParent parent, View target, float velocityX, float velocityY, boolean consumed) argument 155 onNestedPreScroll(ViewParent parent, View target, int dx, int dy, int[] consumed) argument 166 onNestedFling(ViewParent parent, View target, float velocityX, float velocityY, boolean consumed) argument 311 onNestedPreScroll(ViewParent parent, View target, int dx, int dy, int[] consumed) argument 458 onNestedPreScroll(ViewParent parent, View target, int dx, int dy, int[] consumed, int type) argument 488 onNestedFling(ViewParent parent, View target, float velocityX, float velocityY, boolean consumed) argument [all...] |
/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...] |
H A D | ActionBarOverlayLayout.java | 561 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) { argument 562 if (!mHideOnContentScroll || !consumed) {
|
H A D | ResolverDrawerLayout.java | 651 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed) { argument 653 consumed[1] = (int) -performDrag(-dy); 667 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) { argument 668 if (!consumed && Math.abs(velocityY) > mMinFlingVelocity) {
|
/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/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/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 | 886 size_t consumed = 1; local 889 size_t mimeLen = StringSize(&data[consumed], size - consumed, 0x00); 890 if (mimeLen > size - consumed) { 894 mime->setTo((const char *)&data[consumed]); 895 consumed += mimeLen; 898 uint8_t picType = data[consumed]; 906 consumed++; 907 if (consumed >= size) { 912 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...] |
/frameworks/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/support/design/src/android/support/design/widget/ |
H A D | BottomSheetBehavior.java | 346 int dy, int[] consumed) { 355 consumed[1] = currentTop - mMinOffset; 356 ViewCompat.offsetTopAndBottom(child, -consumed[1]); 359 consumed[1] = dy; 366 consumed[1] = dy; 370 consumed[1] = currentTop - mMaxOffset; 371 ViewCompat.offsetTopAndBottom(child, -consumed[1]); 345 onNestedPreScroll(CoordinatorLayout coordinatorLayout, V child, View target, int dx, int dy, int[] consumed) argument
|
H A D | AppBarLayout.java | 845 View target, int dx, int dy, int[] consumed, int type) { 858 consumed[1] = scroll(coordinatorLayout, child, dy, min, max); 1114 int consumed = 0; 1127 // Update how much dy we have consumed 1128 consumed = curOffset - newOffset; 1152 return consumed; 844 onNestedPreScroll(CoordinatorLayout coordinatorLayout, AppBarLayout child, View target, int dx, int dy, int[] consumed, int type) argument
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | Session.java | 413 public void reportDropResult(IWindow window, boolean consumed) { argument 416 Slog.d(TAG_WM, "Drop result=" + consumed + " reported by " + token); 445 mService.mDragState.mDragResult = consumed;
|
/frameworks/native/opengl/libagl/ |
H A D | array.cpp | 887 vertex_t* & consumed = ((winding^=1) ? v1 : v0); local 888 consumed->locked = 0; 889 consumed = v2;
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | ActionBarOverlayLayout.java | 506 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) { argument 507 if (!mHideOnContentScroll || !consumed) { 520 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed) { argument
|
/frameworks/support/wear/src/android/support/wear/widget/drawer/ |
H A D | WearableDrawerLayout.java | 657 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) { argument 677 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed) { argument
|
/frameworks/base/core/java/android/widget/ |
H A D | ScrollView.java | 1016 * @return true if the key event is consumed by this method, false otherwise 1052 * @return true if the key event is consumed by this method, false otherwise 1083 * @return true if the key event is consumed by this method, false otherwise 1115 * @return True if we consumed the event, false otherwise 1729 public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed) { argument 1730 if (!consumed) {
|
/frameworks/support/core-ui/java/android/support/v4/widget/ |
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...] |
H A D | SwipeRefreshLayout.java | 111 // consumed by this as the nested scrolling parent is used in place of the 756 // Reset the counter of how much leftover scroll needs to be consumed. 765 public void onNestedPreScroll(View target, int dx, int dy, int[] consumed) { argument 770 consumed[1] = dy - (int) mTotalUnconsumed; 774 consumed[1] = dy; 784 && Math.abs(dy - consumed[1]) > 0) { 790 if (dispatchNestedPreScroll(dx - consumed[0], dy - consumed[1], parentConsumed, null)) { 791 consumed[0] += parentConsumed[0]; 792 consumed[ 869 dispatchNestedPreScroll(int dx, int dy, int[] consumed, int[] offsetInWindow) argument 881 onNestedFling(View target, float velocityX, float velocityY, boolean consumed) argument 887 dispatchNestedFling(float velocityX, float velocityY, boolean consumed) argument [all...] |