Home
last modified time | relevance | path

Searched refs:newOffset (Results 1 – 11 of 11) sorted by relevance

/frameworks/support/design/src/android/support/design/widget/
DHeaderBehavior.java191 int setHeaderTopBottomOffset(CoordinatorLayout parent, V header, int newOffset) { in setHeaderTopBottomOffset() argument
192 return setHeaderTopBottomOffset(parent, header, newOffset, in setHeaderTopBottomOffset()
196 int setHeaderTopBottomOffset(CoordinatorLayout parent, V header, int newOffset, in setHeaderTopBottomOffset() argument
204 newOffset = MathUtils.clamp(newOffset, minOffset, maxOffset); in setHeaderTopBottomOffset()
206 if (curOffset != newOffset) { in setHeaderTopBottomOffset()
207 setTopAndBottomOffset(newOffset); in setHeaderTopBottomOffset()
209 consumed = curOffset - newOffset; in setHeaderTopBottomOffset()
DAppBarLayout.java984 final int newOffset = offset < (snapBottom + snapTop) / 2 in snapToChildIfNeeded() local
988 MathUtils.clamp(newOffset, -abl.getTotalScrollRange(), 0), 0); in snapToChildIfNeeded()
1112 AppBarLayout appBarLayout, int newOffset, int minOffset, int maxOffset) { in setHeaderTopBottomOffset() argument
1119 newOffset = MathUtils.clamp(newOffset, minOffset, maxOffset); in setHeaderTopBottomOffset()
1120 if (curOffset != newOffset) { in setHeaderTopBottomOffset()
1122 ? interpolateOffset(appBarLayout, newOffset) in setHeaderTopBottomOffset()
1123 : newOffset; in setHeaderTopBottomOffset()
1128 consumed = curOffset - newOffset; in setHeaderTopBottomOffset()
1130 mOffsetDelta = newOffset - interpolatedOffset; in setHeaderTopBottomOffset()
1144 updateAppBarLayoutDrawableState(coordinatorLayout, appBarLayout, newOffset, in setHeaderTopBottomOffset()
[all …]
/frameworks/base/core/jni/android/graphics/
DUtils.cpp67 off64_t newOffset = fAsset->seek(size, SEEK_CUR); in read() local
68 if (-1 == newOffset) { in read()
72 amount = newOffset - oldOffset; in read()
/frameworks/base/libs/androidfw/
DAsset.cpp361 off64_t newOffset; in handleSeek() local
365 newOffset = offset; in handleSeek()
368 newOffset = curPosn + offset; in handleSeek()
371 newOffset = maxPosn + offset; in handleSeek()
380 if (newOffset < 0 || newOffset > maxPosn) { in handleSeek()
382 (long) newOffset, (long) maxPosn); in handleSeek()
386 return newOffset; in handleSeek()
/frameworks/base/tools/aapt/
DStringPool.cpp321 size_t newOffset; in sortByConfig() local
325 newOffset = newEntries.add(oldEnt); in sortByConfig()
326 newEntries.editItemAt(newOffset).indices.clear(); in sortByConfig()
330 newOffset = origOffsetToNewOffset.valueAt(newIndexOfOffset); in sortByConfig()
333 newEntries.editItemAt(newOffset).indices.add(i); in sortByConfig()
335 newEntryArray.add(newOffset); in sortByConfig()
/frameworks/base/core/tests/coretests/src/android/text/
DStaticLayoutTest.java387 final int newOffset = layout.getOffsetToRightOf(state.mSelectionStart); in moveCursorToRightCursorableOffset() local
388 state.mSelectionStart = state.mSelectionEnd = newOffset; in moveCursorToRightCursorableOffset()
394 final int newOffset = layout.getOffsetToLeftOf(state.mSelectionStart); in moveCursorToLeftCursorableOffset() local
395 state.mSelectionStart = state.mSelectionEnd = newOffset; in moveCursorToLeftCursorableOffset()
/frameworks/av/media/libstagefright/
DItemTable.cpp959 off64_t newOffset = *offset; in parseNullTerminatedString() local
961 while (newOffset < stopOffset) { in parseNullTerminatedString()
962 if (!source()->readAt(newOffset++, &tmp[len], 1)) { in parseNullTerminatedString()
968 *offset = newOffset; in parseNullTerminatedString()
969 *size = stopOffset - newOffset; in parseNullTerminatedString()
/frameworks/support/core-ui/java/android/support/v4/widget/
DDrawerLayout.java1180 final float newOffset; in onLayout() local
1183 newOffset = (float) (childWidth + childLeft) / childWidth; in onLayout()
1186 newOffset = (float) (width - childLeft) / childWidth; in onLayout()
1189 final boolean changeOffset = newOffset != lp.onScreen; in onLayout()
1228 setDrawerViewOffset(child, newOffset); in onLayout()
DSlidingPaneLayout.java1179 final int newOffset = (int) ((1 - slideOffset) * mParallaxBy); in parallaxOtherViews() local
1180 final int dx = oldOffset - newOffset; in parallaxOtherViews()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DStaggeredGridLayoutManager.java766 int newOffset = -(mSpanCount - 1 - lp.mSpan.mIndex) * mSizePerSpan;
768 child.offsetLeftAndRight(newOffset - prevOffset);
770 int newOffset = lp.mSpan.mIndex * mSizePerSpan;
773 child.offsetLeftAndRight(newOffset - prevOffset);
775 child.offsetTopAndBottom(newOffset - prevOffset);
/frameworks/base/media/java/android/media/
DMediaCodec.java1499 int newOffset, int newSize, long newTimeUs, @BufferFlag int newFlags) { in set() argument
1500 offset = newOffset; in set()