Searched refs:newOffset (Results 1 - 10 of 10) sorted by relevance

/frameworks/base/core/jni/android/graphics/
H A DUtils.cpp67 off64_t newOffset = fAsset->seek(size, SEEK_CUR); local
68 if (-1 == newOffset) {
72 amount = newOffset - oldOffset;
/frameworks/support/design/src/android/support/design/widget/
H A DHeaderBehavior.java191 int setHeaderTopBottomOffset(CoordinatorLayout parent, V header, int newOffset) { argument
192 return setHeaderTopBottomOffset(parent, header, newOffset,
196 int setHeaderTopBottomOffset(CoordinatorLayout parent, V header, int newOffset, argument
204 newOffset = MathUtils.clamp(newOffset, minOffset, maxOffset);
206 if (curOffset != newOffset) {
207 setTopAndBottomOffset(newOffset);
209 consumed = curOffset - newOffset;
H A DAppBarLayout.java985 final int newOffset = offset < (snapBottom + snapTop) / 2
989 MathUtils.clamp(newOffset, -abl.getTotalScrollRange(), 0), 0);
1113 AppBarLayout appBarLayout, int newOffset, int minOffset, int maxOffset) {
1120 newOffset = MathUtils.clamp(newOffset, minOffset, maxOffset);
1121 if (curOffset != newOffset) {
1123 ? interpolateOffset(appBarLayout, newOffset)
1124 : newOffset;
1129 consumed = curOffset - newOffset;
1131 mOffsetDelta = newOffset
1112 setHeaderTopBottomOffset(CoordinatorLayout coordinatorLayout, AppBarLayout appBarLayout, int newOffset, int minOffset, int maxOffset) argument
[all...]
/frameworks/base/libs/androidfw/
H A DAsset.cpp361 off64_t newOffset; local
365 newOffset = offset;
368 newOffset = curPosn + offset;
371 newOffset = maxPosn + offset;
380 if (newOffset < 0 || newOffset > maxPosn) {
382 (long) newOffset, (long) maxPosn);
386 return newOffset;
/frameworks/base/tools/aapt/
H A DStringPool.cpp321 size_t newOffset;
325 newOffset = newEntries.add(oldEnt);
326 newEntries.editItemAt(newOffset).indices.clear();
330 newOffset = origOffsetToNewOffset.valueAt(newIndexOfOffset);
333 newEntries.editItemAt(newOffset).indices.add(i);
335 newEntryArray.add(newOffset);
/frameworks/base/core/tests/coretests/src/android/text/
H A DStaticLayoutTest.java329 final int newOffset = layout.getOffsetToRightOf(state.mSelectionStart);
330 state.mSelectionStart = state.mSelectionEnd = newOffset;
336 final int newOffset = layout.getOffsetToLeftOf(state.mSelectionStart);
337 state.mSelectionStart = state.mSelectionEnd = newOffset;
/frameworks/support/core-ui/java/android/support/v4/widget/
H A DDrawerLayout.java1198 final float newOffset;
1201 newOffset = (float) (childWidth + childLeft) / childWidth;
1204 newOffset = (float) (width - childLeft) / childWidth;
1207 final boolean changeOffset = newOffset != lp.onScreen;
1246 setDrawerViewOffset(child, newOffset);
H A DSlidingPaneLayout.java1205 final int newOffset = (int) ((1 - slideOffset) * mParallaxBy);
1206 final int dx = oldOffset - newOffset;
/frameworks/base/media/java/android/media/
H A DMediaCodec.java1483 * @param newOffset the start-offset of the data in the buffer.
1491 int newOffset, int newSize, long newTimeUs, @BufferFlag int newFlags) {
1492 offset = newOffset;
1490 set( int newOffset, int newSize, long newTimeUs, @BufferFlag int newFlags) argument
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A 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);

Completed in 1066 milliseconds