Searched defs:offset (Results 451 - 475 of 644) sorted by last modified time

<<11121314151617181920>>

/frameworks/base/core/java/android/util/
H A DJsonReader.java200 * The offset of the first character in the buffer.
1106 private JsonToken decodeNumber(char[] chars, int offset, int length) { argument
1107 int i = offset;
1147 if (i == offset + length) {
H A DLogWriter.java64 @Override public void write(char[] buf, int offset, int count) { argument
66 char c = buf[offset + i];
H A DMapCollections.java43 ArrayIterator(int offset) { argument
44 mOffset = offset;
486 public Object[] toArrayHelper(int offset) { argument
490 result[i] = colGetEntry(i, offset);
495 public <T> T[] toArrayHelper(T[] array, int offset) { argument
503 array[i] = (T)colGetEntry(i, offset);
551 protected abstract Object colGetEntry(int index, int offset); argument
H A DTimeUtils.java62 * Tries to return a time zone that would have had the specified offset
66 public static TimeZone getTimeZone(int offset, boolean dst, long when, String country) { argument
81 if (currentOffset == offset && currentDst == dst) {
87 // country that has the correct current offset and DST.
92 if (tz.getOffset(when) == offset &&
123 // See if we already have this offset,
134 Log.d(TAG, "getTimeZonesWithUniqueOffsets: add unique offset=" +
/frameworks/base/core/java/android/util/apk/
H A DApkSignatureSchemeV2Verifier.java417 // Central Directory must be considered to point to the offset of the APK Signing Block.
562 * Returns the ZIP End of Central Directory (EoCD) and its offset in the file.
580 // Look up the offset of ZIP Central Directory.
584 "ZIP Central Directory offset out of range: " + centralDirOffset
585 + ". ZIP End of Central Directory offset: " + eocdOffset);
845 private static void setUnsignedInt32LittleEndian(int value, byte[] result, int offset) { argument
846 result[offset] = (byte) (value & 0xff);
847 result[offset + 1] = (byte) ((value >>> 8) & 0xff);
848 result[offset + 2] = (byte) ((value >>> 16) & 0xff);
849 result[offset
988 feedIntoMessageDigests(MessageDigest[] mds, long offset, int size) argument
1022 feedIntoMessageDigests( MessageDigest[] mds, long offset, int size) argument
1097 feedIntoMessageDigests( MessageDigest[] mds, long offset, int size) argument
[all...]
H A DZipUtils.java49 * @return contents of the ZIP End of Central Directory record and the record's offset in the
72 // the EoCD record offset is known in advance. Try that offset first to avoid unnecessarily
92 * @return contents of the ZIP End of Central Directory record and the record's offset in the
183 * @param zipEndOfCentralDirectoryPosition offset of the ZIP End of Central Directory record
205 * Returns the offset of the start of the ZIP Central Directory in the archive.
217 * Sets the offset of the start of the ZIP Central Directory in the archive.
222 ByteBuffer zipEndOfCentralDirectory, long offset) {
227 offset);
248 private static int getUnsignedInt16(ByteBuffer buffer, int offset) { argument
221 setZipEocdCentralDirectoryOffset( ByteBuffer zipEndOfCentralDirectory, long offset) argument
252 getUnsignedInt32(ByteBuffer buffer, int offset) argument
256 setUnsignedInt32(ByteBuffer buffer, int offset, long value) argument
[all...]
/frameworks/base/core/java/android/util/jar/
H A DStrictJarFile.java361 throw new IOException("Error reading data for " + entry.getName() + " near offset "
399 private long offset; field in class:StrictJarFile.RAFStream
404 offset = initialOffset;
413 return (offset < endOffset ? 1 : 0);
422 final long length = endOffset - offset;
426 sharedRaf.seek(offset);
429 offset += count;
438 if (byteCount > endOffset - offset) {
439 byteCount = endOffset - offset;
441 offset
[all...]
/frameworks/base/core/java/android/view/
H A DAccessibilityIterators.java95 public int[] following(int offset) { argument
100 if (offset >= textLegth) {
103 int start = offset;
121 public int[] preceding(int offset) { argument
126 if (offset <= 0) {
129 int end = offset;
185 public int[] following(int offset) { argument
190 if (offset >= mText.length()) {
193 int start = offset;
211 public int[] preceding(int offset) { argument
266 following(int offset) argument
293 preceding(int offset) argument
[all...]
H A DRenderNode.java734 * @param offset The amount that the left and right positions of the display
735 * list are offset, in pixels
739 public boolean offsetLeftAndRight(int offset) { argument
740 return nOffsetLeftAndRight(mNativeRenderNode, offset);
746 * @param offset The amount that the top and bottom positions of the display
747 * list are offset, in pixels
751 public boolean offsetTopAndBottom(int offset) { argument
752 return nOffsetTopAndBottom(mNativeRenderNode, offset);
826 private static native boolean nOffsetTopAndBottom(long renderNode, int offset); argument
827 private static native boolean nOffsetLeftAndRight(long renderNode, int offset); argument
[all...]
H A DView.java379 * Padding can be used to offset the content of the view by a specific amount of
568 * offset as well as mechanisms for drawing scrollbars. See
3349 * The offset, in pixels, by which the content of this view is scrolled
3356 * The offset, in pixels, by which the content of this view is scrolled
5214 final int offset = computeVerticalScrollOffset();
5219 extent, range, offset);
5239 final int offset = computeHorizontalScrollOffset();
5244 extent, range, offset);
6016 position.offset(child.mLeft - child.getScrollX(), child.mTop -child.getScrollY());
6573 position.offset(mLef
13112 offsetTopAndBottom(int offset) argument
13163 offsetLeftAndRight(int offset) argument
[all...]
H A DViewGroup.java3772 // padding, offset the scroll indicators to match our clip bounds.
5274 dirty.offset(location[CHILD_LEFT_INDEX] - mScrollX,
5399 dirty.offset(left - mScrollX, top - mScrollY);
5452 // search and offset up to the parent
5458 rect.offset(descendant.mLeft - descendant.mScrollX,
5477 rect.offset(descendant.mScrollX - descendant.mLeft,
5485 // now that we are up to this view, need to offset one more time
5489 rect.offset(descendant.mLeft - descendant.mScrollX,
5492 rect.offset(descendant.mScrollX - descendant.mLeft,
5503 * @param offset th
5507 offsetChildrenTopAndBottom(int offset) argument
5529 getChildVisibleRect(View child, Rect r, android.graphics.Point offset) argument
5539 getChildVisibleRect( View child, Rect r, android.graphics.Point offset, boolean forceParentCheck) argument
[all...]
H A DViewParent.java133 * @param offset The input coordinates of a point, defined in the child coordinate system.
139 public boolean getChildVisibleRect(View child, Rect r, android.graphics.Point offset); argument
H A DViewRootImpl.java1089 dirty.offset(0, -mCurScrollY);
1164 public boolean getChildVisibleRect(View child, Rect r, android.graphics.Point offset) { argument
1168 // Note: don't apply scroll offset, because we want to know its
2741 dirty.offset(surfaceInsets.left, surfaceInsets.right);
2884 // If we are applying an offset, we need to clear the area
2885 // where the offset doesn't appear to avoid having garbage
2980 bounds.offset(0, attachInfo.mViewRootImpl.mScrollY);
2981 bounds.offset(-attachInfo.mWindowLeft, -attachInfo.mWindowTop);
3021 // offset, since we want to avoid that unless it is actually
4787 // or deceleration, scaled by the offset w
[all...]
/frameworks/base/core/java/android/view/inputmethod/
H A DCorrectionInfo.java33 * @param offset The offset in the edited text where the old and new text start.
37 public CorrectionInfo(int offset, CharSequence oldText, CharSequence newText) { argument
38 mOffset = offset;
50 * Return the offset position of this correction in the text. Both the {@link #getOldText()} and
51 * {@link #getNewText()} start at this offset.
/frameworks/base/core/java/android/widget/
H A DAbsListView.java381 * The offset to the top of the mMotionPosition view when the down motion event was received
386 * The desired offset to the top of the mMotionPosition view after a scroll
432 * The offset in pixels form the top of the AdapterView to the top
1640 // the focused rectangle of the selected view offset into the
4851 * such that the indicated position is displayed <code>offset</code> pixels below
4852 * the top edge of the view. If this is impossible, (e.g. the offset would scroll
4857 * @param offset Desired distance in pixels of <code>position</code> from the top
4861 public void smoothScrollToPositionFromTop(int position, int offset, int duration) { argument
4865 mPositionScroller.startWithOffset(position, offset, duration);
4870 * such that the indicated position is displayed <code>offset</cod
4879 smoothScrollToPositionFromTop(int position, int offset) argument
7162 startWithOffset(int position, int offset) argument
7163 startWithOffset(int position, int offset, int duration) argument
7320 startWithOffset(int position, int offset) argument
7325 startWithOffset(final int position, int offset, final int duration) argument
[all...]
H A DAbsSeekBar.java58 * On touch, this offset plus the scaled value from the position of the
129 // Guess thumb offset if thumb != null, but allow layout to override.
155 * used as the new thumb offset (@see #setThumbOffset(int)).
177 // Assuming the thumb drawable is symmetric, set the thumb offset
309 * Sets the thumb offset that allows the thumb to extend out of the range of
312 * @param thumbOffset The offset amount in pixels.
571 // Apply offset to whichever item is taller.
605 * @param offset Vertical offset for centering. If set to
606 * {@link Integer#MIN_VALUE}, the current offset wil
608 setThumbPos(int w, Drawable thumb, float scale, int offset) argument
[all...]
H A DAccessibilityIterators.java51 public int[] following(int offset) { argument
56 if (offset >= mText.length()) {
60 if (offset < 0) {
63 final int currentLine = mLayout.getLineForOffset(offset);
64 if (getLineEdgeIndex(currentLine, DIRECTION_START) == offset) {
79 public int[] preceding(int offset) { argument
84 if (offset <= 0) {
88 if (offset > mText.length()) {
91 final int currentLine = mLayout.getLineForOffset(offset);
92 if (getLineEdgeIndex(currentLine, DIRECTION_END) + 1 == offset) {
136 following(int offset) argument
165 preceding(int offset) argument
[all...]
H A DAutoCompleteTextView.java474 * <p>Sets the vertical offset used for the auto-complete drop-down list.</p>
476 * @param offset the vertical offset
480 public void setDropDownVerticalOffset(int offset) { argument
481 mPopup.setVerticalOffset(offset);
485 * <p>Gets the vertical offset used for the auto-complete drop-down list.</p>
487 * @return the vertical offset
496 * <p>Sets the horizontal offset used for the auto-complete drop-down list.</p>
498 * @param offset the horizontal offset
502 setDropDownHorizontalOffset(int offset) argument
[all...]
H A DEditor.java517 * Returns the X offset to make the pointy top of the error point
531 int offset;
535 offset = - (dr != null ? dr.mDrawableSizeRight : 0) / 2 + (int) (25 * scale + 0.5f);
537 mTextView.getPaddingRight() + offset;
540 offset = (dr != null ? dr.mDrawableSizeLeft : 0) / 2 - (int) (25 * scale + 0.5f);
541 errorX = mTextView.getPaddingLeft() + offset;
548 * Returns the Y offset to make the pointy top of the error point
760 private int getWordStart(int offset) { argument
763 int retOffset = getWordIteratorWithText().prevBoundary(offset);
766 retOffset = getWordIteratorWithText().getPunctuationBeginning(offset);
777 getWordEnd(int offset) argument
960 getNextCursorOffset(int offset, boolean findAfterGivenOffset) argument
967 getCharClusterRange(int offset) argument
1056 isOffsetVisible(int offset) argument
4133 startTouchUpFilter(int offset) argument
4138 addPositionToTouchUpFilter(int offset) argument
4227 updateSelection(int offset) argument
4231 isAtRtlRun(@onNull Layout layout, int offset) argument
4236 getHorizontal(@onNull Layout layout, int offset) argument
4249 positionAtCursorOffset(int offset, boolean forceUpdatePosition) argument
4288 getCursorHorizontalPosition(Layout layout, int offset) argument
4526 getCursorHorizontalPosition(Layout layout, int offset) argument
4588 updateSelection(int offset) argument
4682 updateSelection(int offset) argument
4869 positionAtCursorOffset(int offset, boolean forceUpdatePosition) argument
4886 positionAndAdjustForCrossingHandles(int offset) argument
4936 isAtRtlRun(@onNull Layout layout, int offset) argument
4942 getHorizontal(@onNull Layout layout, int offset) argument
4946 getHorizontal(@onNull Layout layout, int offset, boolean startHandle) argument
[all...]
H A DGallery.java464 * @param offset the number of pixels to offset
466 private void offsetChildrenLeftAndRight(int offset) { argument
468 getChildAt(i).offsetLeftAndRight(offset);
673 * on. The 0 for x will be offset in a couple lines down.
846 * @param offset Offset from the selected position
854 private View makeAndAddView(int position, int offset, int x, boolean fromLeft) { argument
869 setUpChild(child, offset, x, fromLeft);
879 setUpChild(child, offset, x, fromLeft);
889 * @param offset Offse
896 setUpChild(View child, int offset, int x, boolean fromLeft) argument
[all...]
H A DGridView.java488 final int offset = bottomSelectionPixel - referenceView.getBottom();
489 offsetChildrenTopAndBottom(offset);
502 final int offset = childrenTop - top;
503 if (offset < 0) {
504 offsetChildrenTopAndBottom(offset);
513 final int offset = childrenBottom - bottom;
514 if (offset > 0) {
515 offsetChildrenTopAndBottom(offset);
545 * the mMotionPosition view at the offset specified by mMotionViewTop, and
812 int offset
862 smoothScrollByOffset(int offset) argument
[all...]
H A DListPopupWindow.java426 * @return The horizontal offset of the popup from its anchor in pixels.
433 * Set the horizontal offset of this popup from its anchor view in pixels.
435 * @param offset The horizontal offset of the popup from its anchor.
437 public void setHorizontalOffset(int offset) { argument
438 mDropDownHorizontalOffset = offset;
442 * @return The vertical offset of the popup from its anchor in pixels.
452 * Set the vertical offset of this popup from its anchor view in pixels.
454 * @param offset The vertical offset o
456 setVerticalOffset(int offset) argument
[all...]
H A DListView.java581 // offset so rect is in coordinates of the this view
582 rect.offset(child.getLeft(), child.getTop());
583 rect.offset(-child.getScrollX(), -child.getScrollY());
858 final int offset = Math.min(spaceAbove, spaceBelow);
860 // Now offset the selected item to get it into view
861 sel.offsetTopAndBottom(-offset);
870 final int offset = Math.min(spaceAbove, spaceBelow);
873 sel.offsetTopAndBottom(offset);
933 * Smoothly scroll to the specified adapter position offset. The view will
935 * @param offset Th
938 smoothScrollByOffset(int offset) argument
[all...]
H A DRemoteViews.java2857 * @param offset Scroll by this adapter position offset
2859 public void setRelativeScrollPosition(int viewId, int offset) { argument
2860 setInt(viewId, "smoothScrollByOffset", offset);
H A DScrollBarDrawable.java102 public void setParameters(int range, int offset, int extent, boolean vertical) { argument
109 if (mRange != range || mOffset != offset || mExtent != extent) {
111 mOffset = offset;
202 private void drawThumb(Canvas canvas, Rect bounds, int offset, int length, boolean vertical) { argument
208 thumb.setBounds(bounds.left, bounds.top + offset,
209 bounds.right, bounds.top + offset + length);
218 thumb.setBounds(bounds.left + offset, bounds.top,
219 bounds.left + offset + length, bounds.bottom);
382 return "ScrollBarDrawable: range=" + mRange + " offset=" + mOffset +

Completed in 513 milliseconds

<<11121314151617181920>>