/frameworks/base/core/java/android/view/ |
H A D | ViewParent.java | 133 * @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 D | ViewRootImpl.java | 923 dirty.offset(0, -mCurScrollY); 971 public boolean getChildVisibleRect(View child, Rect r, android.graphics.Point offset) { argument 975 // Note: don't apply scroll offset, because we want to know its 2492 dirty.offset(surfaceInsets.left, surfaceInsets.right); 2618 // If we are applying an offset, we need to clear the area 2619 // where the offset doesn't appear to avoid having garbage 2714 bounds.offset(-attachInfo.mWindowLeft, -attachInfo.mWindowTop); 2752 // offset, since we want to avoid that unless it is actually 4417 // or deceleration, scaled by the offset we have here. 5164 mDragPoint.offset( [all...] |
/frameworks/base/core/java/android/view/inputmethod/ |
H A D | CorrectionInfo.java | 33 * @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 D | AbsListView.java | 376 * The offset to the top of the mMotionPosition view when the down motion event was received 381 * The desired offset to the top of the mMotionPosition view after a scroll 427 * The offset in pixels form the top of the AdapterView to the top 1630 // the focused rectangle of the selected view offset into the 4651 * such that the indicated position is displayed <code>offset</code> pixels below 4652 * the top edge of the view. If this is impossible, (e.g. the offset would scroll 4657 * @param offset Desired distance in pixels of <code>position</code> from the top 4661 public void smoothScrollToPositionFromTop(int position, int offset, int duration) { argument 4665 mPositionScroller.startWithOffset(position, offset, duration); 4670 * such that the indicated position is displayed <code>offset</cod 4679 smoothScrollToPositionFromTop(int position, int offset) argument 6883 startWithOffset(int position, int offset) argument 6884 startWithOffset(int position, int offset, int duration) argument 7041 startWithOffset(int position, int offset) argument 7046 startWithOffset(final int position, int offset, final int duration) argument [all...] |
H A D | AbsSeekBar.java | 52 * On touch, this offset plus the scaled value from the position of the 107 // Guess thumb offset if thumb != null, but allow layout to override. 129 * used as the new thumb offset (@see #setThumbOffset(int)). 151 // Assuming the thumb drawable is symmetric, set the thumb offset 283 * Sets the thumb offset that allows the thumb to extend out of the range of 286 * @param thumbOffset The offset amount in pixels. 414 // Apply offset to whichever item is taller. 446 * @param offset Vertical offset for centering. If set to 447 * {@link Integer#MIN_VALUE}, the current offset wil 449 setThumbPos(int w, Drawable thumb, float scale, int offset) argument [all...] |
H A D | AccessibilityIterators.java | 51 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 D | AutoCompleteTextView.java | 364 * <p>Sets the vertical offset used for the auto-complete drop-down list.</p> 366 * @param offset the vertical offset 370 public void setDropDownVerticalOffset(int offset) { argument 371 mPopup.setVerticalOffset(offset); 375 * <p>Gets the vertical offset used for the auto-complete drop-down list.</p> 377 * @return the vertical offset 386 * <p>Sets the horizontal offset used for the auto-complete drop-down list.</p> 388 * @param offset the horizontal offset 392 setDropDownHorizontalOffset(int offset) argument [all...] |
H A D | Editor.java | 383 * Returns the X offset to make the pointy top of the error point 397 int offset; 401 offset = - (dr != null ? dr.mDrawableSizeRight : 0) / 2 + (int) (25 * scale + 0.5f); 403 mTextView.getPaddingRight() + offset; 406 offset = (dr != null ? dr.mDrawableSizeLeft : 0) / 2 - (int) (25 * scale + 0.5f); 407 errorX = mTextView.getPaddingLeft() + offset; 414 * Returns the Y offset to make the pointy top of the error point 651 * Adjusts selection to the word under last touch offset. 733 private long getCharRange(int offset) { argument 735 if (offset 832 isOffsetVisible(int offset) argument 1518 getPrimaryHorizontal(Layout layout, Layout hintLayout, int offset, boolean clamped) argument 3231 startTouchUpFilter(int offset) argument 3236 addPositionToTouchUpFilter(int offset) argument 3344 updateSelection(int offset) argument 3348 positionAtCursorOffset(int offset, boolean parentScrolled) argument 3628 updateSelection(int offset) argument 3676 updateSelection(int offset) argument 3724 updateSelection(int offset) argument [all...] |
H A D | Gallery.java | 457 * @param offset the number of pixels to offset 459 private void offsetChildrenLeftAndRight(int offset) { argument 461 getChildAt(i).offsetLeftAndRight(offset); 666 * on. The 0 for x will be offset in a couple lines down. 839 * @param offset Offset from the selected position 847 private View makeAndAddView(int position, int offset, int x, boolean fromLeft) { argument 862 setUpChild(child, offset, x, fromLeft); 872 setUpChild(child, offset, x, fromLeft); 882 * @param offset Offse 889 setUpChild(View child, int offset, int x, boolean fromLeft) argument [all...] |
H A D | GridView.java | 483 final int offset = bottomSelectionPixel - referenceView.getBottom(); 484 offsetChildrenTopAndBottom(offset); 497 final int offset = childrenTop - top; 498 if (offset < 0) { 499 offsetChildrenTopAndBottom(offset); 508 final int offset = childrenBottom - bottom; 509 if (offset > 0) { 510 offsetChildrenTopAndBottom(offset); 540 * the mMotionPosition view at the offset specified by mMotionViewTop, and 807 int offset 857 smoothScrollByOffset(int offset) argument [all...] |
H A D | ListPopupWindow.java | 423 * @return The horizontal offset of the popup from its anchor in pixels. 430 * Set the horizontal offset of this popup from its anchor view in pixels. 432 * @param offset The horizontal offset of the popup from its anchor. 434 public void setHorizontalOffset(int offset) { argument 435 mDropDownHorizontalOffset = offset; 439 * @return The vertical offset of the popup from its anchor in pixels. 449 * Set the vertical offset of this popup from its anchor view in pixels. 451 * @param offset The vertical offset o 453 setVerticalOffset(int offset) argument [all...] |
H A D | ListView.java | 575 // offset so rect is in coordinates of the this view 576 rect.offset(child.getLeft(), child.getTop()); 577 rect.offset(-child.getScrollX(), -child.getScrollY()); 852 final int offset = Math.min(spaceAbove, spaceBelow); 854 // Now offset the selected item to get it into view 855 sel.offsetTopAndBottom(-offset); 864 final int offset = Math.min(spaceAbove, spaceBelow); 867 sel.offsetTopAndBottom(offset); 927 * Smoothly scroll to the specified adapter position offset. The view will 929 * @param offset Th 932 smoothScrollByOffset(int offset) argument [all...] |
H A D | RemoteViews.java | 2337 * @param offset Scroll by this adapter position offset 2339 public void setRelativeScrollPosition(int viewId, int offset) { argument 2340 setInt(viewId, "smoothScrollByOffset", offset);
|
H A D | ScrollBarDrawable.java | 88 public void setParameters(int range, int offset, int extent, boolean vertical) { argument 93 if (mRange != range || mOffset != offset || mExtent != extent) { 98 mOffset = offset; 128 int offset = Math.round((float) (size - length) * mOffset / (range - extent)); 136 if (offset + length > size) { 137 offset = size - length; 140 drawThumb(canvas, r, offset, length, vertical); 165 protected void drawThumb(Canvas canvas, Rect bounds, int offset, int length, boolean vertical) { argument 170 thumbRect.set(bounds.left, bounds.top + offset, 171 bounds.right, bounds.top + offset [all...] |
H A D | SpellChecker.java | 324 SuggestionsInfo suggestionsInfo, int offset, int length) { 343 editable, suggestionsInfo, spellCheckSpan, offset, length); 353 if (offset != USE_SPAN_RANGE && length != USE_SPAN_RANGE) { 354 start = spellCheckSpanStart + offset; 410 final int offset = ssi.getOffsetAt(j); 413 suggestionsInfo, offset, length); 454 SpellCheckSpan spellCheckSpan, int offset, int length) { 462 if (offset != USE_SPAN_RANGE && length != USE_SPAN_RANGE) { 463 start = spellCheckSpanStart + offset; 744 private <T> void removeSpansAt(Editable editable, int offset, argument 323 onGetSuggestionsInternal( SuggestionsInfo suggestionsInfo, int offset, int length) argument 453 createMisspelledSuggestionSpan(Editable editable, SuggestionsInfo suggestionsInfo, SpellCheckSpan spellCheckSpan, int offset, int length) argument [all...] |
H A D | TextView.java | 1972 * from showing, and the vertical offset for gravity, if any. 1981 * from showing, and the vertical offset for gravity, if any. 2964 * @return the horizontal offset of the shadow layer 2975 * @return the vertical offset of the shadow layer 5299 final int offset = getHorizontalOffsetForDrawables(); 5300 final int leftOffset = isLayoutRtl ? 0 : offset; 5301 final int rightOffset = isLayoutRtl ? offset : 0 ; 5501 r.offset(paddingLeft, paddingTop); 5538 bounds.offset(getCompoundPaddingLeft(), voffset); 6961 * Move the point, specified by the offset, int 6964 bringPointIntoView(int offset) argument 9290 getTextRunCursor(int contextStart, int contextEnd, int dir, int offset, int cursorOpt, Paint p) argument [all...] |
H A D | YearPickerView.java | 165 public void postSetSelectionFromTop(final int position, final int offset) { argument 170 setSelectionFromTop(position, offset);
|
/frameworks/base/core/java/com/android/internal/app/ |
H A D | ProcessStats.java | 203 // Where the "type"/"state" part of the data appears in an offset integer. 206 // Where the "which array" part of the data appears in an offset integer. 209 // Where the "index into array" part of the data appears in an offset integer. 418 private static void printScreenLabel(PrintWriter pw, int offset) { argument 419 switch (offset) { 435 public static void printScreenLabelCsv(PrintWriter pw, int offset) { argument 436 switch (offset) { 451 private static void printMemLabel(PrintWriter pw, int offset, char sep) { argument 452 switch (offset) { 480 public static void printMemLabelCsv(PrintWriter pw, int offset) { argument [all...] |
H A D | WindowDecorActionBar.java | 718 public void setHideOffset(int offset) { argument 719 if (offset != 0 && !mOverlayLayout.isInOverlayMode()) { 721 "(Window.FEATURE_OVERLAY_ACTION_BAR) to set a non-zero hide offset"); 723 mOverlayLayout.setActionBarHideOffset(offset);
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | FastPrintWriter.java | 32 public void write(char[] buf, int offset, int count) throws IOException { argument 546 * offset} to the target. 553 * @param offset 558 * if {@code offset < 0} or {@code count < 0}, or if {@code 559 * offset + count} is greater than the length of {@code buf}. 562 public void write(char[] buf, int offset, int count) { argument 565 appendLocked(buf, offset, count); 609 * offset} to the target. 613 * @param offset 618 * if {@code offset < 622 write(String str, int offset, int count) argument [all...] |
H A D | HexDump.java | 28 public static String dumpHexString(byte[] array, int offset, int length) argument 36 result.append(toHexString(offset)); 38 for (int i = offset ; i < offset + length ; i++) 104 public static String toHexString(byte[] array, int offset, int length) argument 109 for (int i = offset ; i < offset + length; i++)
|
H A D | IndentingPrintWriter.java | 76 public void write(char[] buf, int offset, int count) { argument 78 final int bufferEnd = offset + count; 79 int lineStart = offset; 80 int lineEnd = offset;
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
H A D | ListMenuPresenter.java | 156 public void setItemIndexOffset(int offset) { argument 157 mItemIndexOffset = offset;
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | ActionBarOverlayLayout.java | 611 public void setActionBarHideOffset(int offset) { argument 614 offset = Math.max(0, Math.min(offset, topHeight)); 615 mActionBarTop.setTranslationY(-offset); 617 // Match the hide offset proportionally for a split bar 618 final float fOffset = (float) offset / topHeight;
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Bitmap.cpp | 318 jint offset, jint stride, jint width, jint height, 343 GraphicsJNI::SetPixels(env, jColors, offset, stride, 681 SkIPoint offset; local 685 src->extractAlpha(dst, paint, &allocator, &offset); 695 array[0] = offset.fX; 696 array[1] = offset.fY; 726 jintArray pixelArray, jint offset, jint stride, 742 SkColor* d = (SkColor*)dst + offset; 772 jintArray pixelArray, jint offset, jint stride, 775 GraphicsJNI::SetPixels(env, pixelArray, offset, strid 317 Bitmap_creator(JNIEnv* env, jobject, jintArray jColors, jint offset, jint stride, jint width, jint height, jint configHandle, jboolean isMutable) argument 725 Bitmap_getPixels(JNIEnv* env, jobject, jlong bitmapHandle, jintArray pixelArray, jint offset, jint stride, jint x, jint y, jint width, jint height) argument 771 Bitmap_setPixels(JNIEnv* env, jobject, jlong bitmapHandle, jintArray pixelArray, jint offset, jint stride, jint x, jint y, jint width, jint height) argument [all...] |