/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
H A D | ActionBar.java | 971 * Return the current vertical offset of the action bar. 973 * <p>The action bar's current hide offset is the distance that the action bar is currently 977 * @return The action bar's offset toward its fully hidden state in pixels 984 * Set the current hide offset of the action bar. 986 * <p>The action bar's current hide offset is the distance that the action bar is currently 990 * @param offset The action bar's offset toward its fully hidden state in pixels. 992 public void setHideOffset(int offset) { argument 993 if (offset != 0) { 994 throw new UnsupportedOperationException("Setting an explicit action bar hide offset " [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/internal/app/ |
H A D | WindowDecorActionBar.java | 728 public void setHideOffset(int offset) { argument 729 if (offset != 0 && !mOverlayLayout.isInOverlayMode()) { 731 "(Window.FEATURE_OVERLAY_ACTION_BAR) to set a non-zero hide offset"); 733 mOverlayLayout.setActionBarHideOffset(offset);
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/ |
H A D | ListMenuPresenter.java | 160 public void setItemIndexOffset(int offset) { argument 161 mItemIndexOffset = offset;
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
H A D | ActionBarOverlayLayout.java | 620 public void setActionBarHideOffset(int offset) { argument 623 offset = Math.max(0, Math.min(offset, topHeight)); 624 ViewCompat.setTranslationY(mActionBarTop, -offset); 626 // Match the hide offset proportionally for a split bar 627 final float fOffset = (float) offset / topHeight;
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | ActionMenuPresenter.java | 658 final int offset = (int) pts[0] - getWidth() / 2; 659 DrawableCompat.setHotspotBounds(bg, offset, 0, getWidth() + offset, getHeight());
|
H A D | ListPopupWindow.java | 439 * @return The horizontal offset of the popup from its anchor in pixels. 446 * Set the horizontal offset of this popup from its anchor view in pixels. 448 * @param offset The horizontal offset of the popup from its anchor. 450 public void setHorizontalOffset(int offset) { argument 451 mDropDownHorizontalOffset = offset; 455 * @return The vertical offset of the popup from its anchor in pixels. 465 * Set the vertical offset of this popup from its anchor view in pixels. 467 * @param offset The vertical offset o 469 setVerticalOffset(int offset) argument [all...] |
H A D | SearchView.java | 1255 int offset; 1257 offset = - dropDownPadding.left; 1259 offset = anchorPadding - (dropDownPadding.left + iconOffset); 1261 mQueryTextView.setDropDownHorizontalOffset(offset);
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
H A D | ChildHelper.java | 73 final int offset; 75 offset = mCallback.getChildCount(); 77 offset = getOffset(index); 79 mCallback.addView(child, offset); 80 mBucket.insert(offset, hidden); 94 int offset = index; 95 while (offset < limit) { 96 final int removedBefore = mBucket.countOnesBefore(offset); 97 final int diff = index - (offset - removedBefore); 99 while (mBucket.get(offset)) { // ensur 477 getChildAt(int offset) argument 485 detachViewFromParent(int offset) argument [all...] |
H A D | LinearLayoutManager.java | 120 * Used to keep the offset value when {@link #scrollToPositionWithOffset(int, int)} is 688 // If that is the case, offset it back to 0 so that we use these pre-layout children. 690 // validate this child is at least partially visible. if not, offset it to start 729 // Anchor offset depends on how that child was laid out. Here, we update it 793 * @return The final offset amount for children 804 // move offset according to scroll amount 818 * @return The final offset amount for children 846 private void updateLayoutStateToFillEnd(int itemPosition, int offset) { argument 847 mLayoutState.mAvailable = mOrientationHelper.getEndAfterPadding() - offset; 852 mLayoutState.mOffset = offset; 860 updateLayoutStateToFillStart(int itemPosition, int offset) argument 928 scrollToPositionWithOffset(int position, int offset) argument [all...] |
H A D | OpReorderer.java | 161 int offset = 0; 164 offset--; 167 offset++; 175 addOp.positionStart += offset;
|
H A D | OrientationHelper.java | 154 * @param view View to offset 155 * @param offset offset amount 157 public abstract void offsetChild(View view, int offset); argument 252 public void offsetChild(View view, int offset) { 253 view.offsetLeftAndRight(offset); 328 public void offsetChild(View view, int offset) { 329 view.offsetTopAndBottom(offset);
|
H A D | RecyclerView.java | 398 public View getChildAt(int offset) { 399 return RecyclerView.this.getChildAt(offset); 434 public void detachViewFromParent(int offset) { 435 final View view = getChildAt(offset); 449 RecyclerView.this.detachViewFromParent(offset); 1091 * <p>Compute the horizontal offset of the horizontal scrollbar's thumb within the horizontal 1104 * @return The horizontal offset of the scrollbar's thumb 1157 * <p>Compute the vertical offset of the vertical scrollbar's thumb within the vertical range. 1169 * @return The vertical offset of the scrollbar's thumb 2951 * @param dy Vertical pixel offset t 7087 flagRemovedAndOffsetPosition(int mNewPosition, int offset, boolean applyToPreLayout) argument 7093 offsetPosition(int offset, boolean applyToPreLayout) argument [all...] |
H A D | StaggeredGridLayoutManager.java | 50 * StaggeredGridLayoutManager can offset spans independently or move items between spans. You can 136 * Used to keep the offset value when {@link #scrollToPositionWithOffset(int, int)} is 697 // Use regular anchor position, offset according to pending offset and target 715 // no offset provided. Decide according to the child location 1807 * Scroll to the specified adapter position with the given offset from layout start. 1814 * @param offset The distance (in pixels) between the start edge of the item view and 1819 public void scrollToPositionWithOffset(int position, int offset) { argument 1824 mPendingScrollPositionOffset = offset; 2121 void cacheReferenceLineAndClear(boolean reverseLayout, int offset) { argument [all...] |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
H A D | LinearLayoutManagerTest.java | 125 center += childCountToAdd; // offset item 163 assertRectSetsEqual(config + " trying to over scroll with offset should be no-op", 186 assertEquals(config + " scroll with offset on a visible child should work fine " + 187 " offset:" + finalOffset + " , existing offset:" + startOffset + ", " 200 final int offset = offsetMultiplier 202 scrollToPositionWithOffset(target.mPosition, offset); 205 assertNotNull(logPrefix + " scrolling to a mPosition with offset " + offset 210 + layoutBounds + " with offset " 794 scrollToPositionWithOffset(final int position, final int offset) argument [all...] |
H A D | StaggeredGridLayoutManagerTest.java | 397 assertEquals("pending scroll position offset should still be pending", 404 assertEquals("scroll offset should be applied properly", 958 mAdapter.getItemCount() / 3) + "with positive offset"; 972 return "scroll to position with negative offset"; 1113 assertRectSetsEqual(config + " trying to over scroll with offset should be no-op", 1135 assertEquals(config + " scroll with offset on a visible child should work fine", 1146 final int offset = offsetMultiplier 1148 scrollToPositionWithOffset(target.mPosition, offset); 1151 assertNotNull(config + " scrolling to a mPosition with offset " + offset 1318 scrollToPositionWithOffset(final int position, final int offset) argument 1840 offsetOriginalIndices(int start, int offset) argument [all...] |
/frameworks/support/v8/renderscript/jni/ |
H A D | android_renderscript_RenderScript.cpp | 439 nAllocationData1D_i(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jintArray data, int sizeBytes) argument 442 LOG_API("nAllocation1DData_i, con(%p), adapter(%p), offset(%i), count(%i), len(%i), sizeBytes(%i)", con, (RsAllocation)alloc, offset, count, len, sizeBytes); 444 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes); 449 nAllocationData1D_s(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jshortArray data, int sizeBytes) argument 452 LOG_API("nAllocation1DData_s, con(%p), adapter(%p), offset(%i), count(%i), len(%i), sizeBytes(%i)", con, (RsAllocation)alloc, offset, count, len, sizeBytes); 454 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes); 459 nAllocationData1D_b(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jbyteArray data, int sizeBytes) argument 462 LOG_API("nAllocation1DData_b, con(%p), adapter(%p), offset( 469 nAllocationData1D_f(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jfloatArray data, int sizeBytes) argument 480 nAllocationElementData1D(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint compIdx, jbyteArray data, int sizeBytes) argument [all...] |
/frameworks/volley/src/com/android/volley/toolbox/ |
H A D | DiskBasedCache.java | 455 public int read(byte[] buffer, int offset, int count) throws IOException { argument 456 int result = super.read(buffer, offset, count);
|
H A D | PoolingByteArrayOutputStream.java | 83 public synchronized void write(byte[] buffer, int offset, int len) { argument 85 super.write(buffer, offset, len);
|
/frameworks/wilhelm/include/OMXAL/ |
H A D | OpenMAXAL_Android.h | 165 XAAint64 offset; member in struct:XADataLocator_AndroidFD_
|
/frameworks/wilhelm/include/SLES/ |
H A D | OpenSLES_Android.h | 329 SLAint64 offset; member in struct:SLDataLocator_AndroidFD_
|
/frameworks/wilhelm/src/android/ |
H A D | AacBqToPcmCbRenderer.cpp | 30 * Note that if the returned value + offset > size, it means that a partial frame starts at that 31 * offset, but this function will still return the size of the full frame. 33 * @param offset offset in bytes relative to data of where the frame is supposed to start 35 * @return the size in bytes of the AAC ADTS frame starting at the given offset of the given 38 static size_t getAdtsFrameSize(const uint8_t *data, off64_t offset, size_t size) { argument 41 if (!(offset + ADTS_HEADER_SIZE_UP_TO_FRAMESIZE < size)) { 47 const uint8_t *syncword = data + offset; 53 const uint8_t protectionAbsent = data[offset+1] & 0x1; 55 const uint8_t* header = data + offset 85 off64_t offset = 0; local [all...] |
H A D | AudioPlayer_to_android.cpp | 1597 int64_t offset = (int64_t)pAudioPlayer->mDataSource.mLocator.mFD.offset; local 1600 offset == SL_DATALOCATOR_ANDROIDFD_USE_FILE_SIZE ? 1601 (int64_t)PLAYER_FD_FIND_FILE_SIZE : offset, 1639 int64_t offset = (int64_t)pAudioPlayer->mDataSource.mLocator.mFD.offset; local 1642 offset == SL_DATALOCATOR_ANDROIDFD_USE_FILE_SIZE ? 1643 (int64_t)PLAYER_FD_FIND_FILE_SIZE : offset,
|
H A D | BufferQueueSource.cpp | 57 ssize_t BufferQueueSource::readAt(off64_t offset, void *data, size_t size) { argument 58 SL_LOGD("BufferQueueSource::readAt(offset=%lld, data=%p, size=%d)", offset, data, size); 96 //assert(mStreamToBqOffset <= offset); 97 CHECK_LE(mStreamToBqOffset, offset); 99 if (offset + size <= mStreamToBqOffset + oldFront->mDataSize) { 100 pSrc = ((char*)oldFront->mDataBuffer) + (offset - mStreamToBqOffset); 102 if (offset - mStreamToBqOffset + size == oldFront->mDataSize) {
|
H A D | BufferQueueSource.h | 40 virtual ssize_t readAt(off64_t offset, void *data, size_t size); 50 // a monotonically increasing offset used to translate an offset from the beginning 51 // of the stream, to an offset in each buffer from the buffer queue source
|
H A D | MediaPlayer_to_android.cpp | 436 int64_t offset = (int64_t)mp->mDataSource.mLocator.mFD.offset; local 439 offset == SL_DATALOCATOR_ANDROIDFD_USE_FILE_SIZE ? 440 (int64_t)PLAYER_FD_FIND_FILE_SIZE : offset,
|