/frameworks/base/core/java/android/view/inputmethod/ |
H A D | InputMethodManager.java | 1569 public void updateCursor(View view, int left, int top, int right, int bottom) { argument 1578 mTmpCursorRect.set(left, top, right, bottom);
|
/frameworks/base/core/java/android/webkit/ |
H A D | WebViewProvider.java | 145 public boolean pageUp(boolean top); argument 338 public boolean setFrame(int left, int top, int right, int bottom); argument
|
/frameworks/base/core/java/android/widget/ |
H A D | ListView.java | 96 * A class that represents a fixed view in a list, for example a header at the top 203 * Make sure views are touching the top or bottom edge, as appropriate for 215 // align with the top 217 delta = child.getTop() - mListPadding.top; 250 * Add a fixed view to appear at the top of the list. If this method is 288 * Add a fixed view to appear at the top of the list. If addHeaderView is 548 * @return Whether the list needs to show the top fading edge 551 final int listTop = mScrollY + mListPadding.top; 573 int rectTopWithinChild = rect.top; 585 // leave room for top fadin 1108 setup(int position, int top) argument 1342 fillSpecific(int position, int top) argument [all...] |
H A D | RadialTimePickerView.java | 701 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 855 float top = mYCenter - outerRadius; 858 canvas.drawRect(left, top, right, bottom, mPaintDebug); 862 top = mYCenter - mCircleRadius[HOURS]; 865 canvas.drawRect(left, top, right, bottom, mPaintDebug);
|
H A D | RemoteViews.java | 742 rect.top = (int) (pos[1] * appScale + 0.5f); 1489 public ViewPaddingAction(int viewId, int left, int top, int right, int bottom) { argument 1492 this.top = top; 1500 top = parcel.readInt(); 1509 dest.writeInt(top); 1518 target.setPadding(left, top, right, bottom); 1525 int left, top, right, bottom; field in class:RemoteViews.ViewPaddingAction 2008 * @param top The id of a drawable to place above the text, or 0 2012 public void setTextViewCompoundDrawables(int viewId, int left, int top, in argument 2027 setTextViewCompoundDrawablesRelative(int viewId, int start, int top, int end, int bottom) argument 2352 setViewPadding(int viewId, int left, int top, int right, int bottom) argument [all...] |
H A D | ScrollView.java | 55 * array of top-level items that the user can scroll through. 886 * @param topFocus look for a candidate is the one at the top of the bounds 889 * @param top the top offset of the bounds in which a focusable must be 896 private View findFocusableViewInBounds(boolean topFocus, int top, int bottom) { argument 902 * A fully contained focusable is one where its top is below the bound's 903 * top, and its bottom is above the bound's bottom. A partially 916 if (top < viewBottom && viewTop < bottom) { 922 final boolean viewIsFullyContained = (top < viewTop) && 981 mTempRect.top 1043 scrollAndFocus(int direction, int top, int bottom) argument [all...] |
H A D | StackView.java | 1101 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 1320 p.invalidate(globalInvalidateRect.left, globalInvalidateRect.top, 1324 p.invalidate(globalInvalidateRect.left, globalInvalidateRect.top, 1355 int top = Math.min(mView.getTop() + verticalOffsetDelta, mView.getTop()); 1358 invalidateRectf.set(left, top, right, bottom); 1361 float yoffset = -invalidateRectf.top; 1367 (int) Math.floor(invalidateRectf.top),
|
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/ |
H A D | GlowPadView.java | 1062 // we only scale to fit vertically if we're not pinned to the top or bottom. In these 1063 // cases, we want the ring to hang off the side or top/bottom, respectively. 1117 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 1118 super.onLayout(changed, left, top, right, bottom); 1120 final int height = bottom - top;
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Paint.cpp | 51 jfieldID top; member in struct:android::JMetricsID 485 env->SetFloatField(metricsObj, gFontMetrics_fieldID.top, SkScalarToFloat(metrics.fTop)); 505 env->SetIntField(metricsObj, gFontMetricsInt_fieldID.top, SkScalarFloorToInt(metrics.fTop)); 1034 gFontMetrics_fieldID.top = req_fieldID(env->GetFieldID(gFontMetrics_class, "top", "F")); 1044 gFontMetricsInt_fieldID.top = req_fieldID(env->GetFieldID(gFontMetricsInt_class, "top", "I"));
|
H A D | SkiaCanvas.cpp | 68 virtual int saveLayer(float left, float top, float right, float bottom, 70 virtual int saveLayerAlpha(float left, float top, float right, float bottom, 82 virtual bool quickRejectRect(float left, float top, float right, float bottom) const; 84 virtual bool clipRect(float left, float top, float right, float bottom, SkRegion::Op op); 99 virtual void drawRect(float left, float top, float right, float bottom, const SkPaint& paint); 100 virtual void drawRoundRect(float left, float top, float right, float bottom, 103 virtual void drawOval(float left, float top, float right, float bottom, const SkPaint& paint); 104 virtual void drawArc(float left, float top, float right, float bottom, 111 virtual void drawBitmap(const SkBitmap& bitmap, float left, float top, const SkPaint* paint); 288 int SkiaCanvas::saveLayer(float left, float top, floa argument 296 saveLayerAlpha(float left, float top, float right, float bottom, int alpha, SkCanvas::SaveFlags flags) argument 421 quickRejectRect(float left, float top, float right, float bottom) const argument 430 clipRect(float left, float top, float right, float bottom, SkRegion::Op op) argument 514 drawRect(float left, float top, float right, float bottom, const SkPaint& paint) argument 520 drawRoundRect(float left, float top, float right, float bottom, float rx, float ry, const SkPaint& paint) argument 530 drawOval(float left, float top, float right, float bottom, const SkPaint& paint) argument 535 drawArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle, bool useCenter, const SkPaint& paint) argument 560 drawBitmap(const SkBitmap& bitmap, float left, float top, const SkPaint* paint) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_graphics_Canvas.cpp | 154 jfloat left, jfloat top, jfloat right, jfloat bottom) { 155 bool result = get_canvas(canvasHandle)->quickRejectRect(left, top, right, bottom); 242 static void drawRect(JNIEnv* env, jobject, jlong canvasHandle, jfloat left, jfloat top, argument 245 get_canvas(canvasHandle)->drawRect(left, top, right, bottom, *paint); 248 static void drawRoundRect(JNIEnv* env, jobject, jlong canvasHandle, jfloat left, jfloat top, argument 251 get_canvas(canvasHandle)->drawRoundRect(left, top, right, bottom, rx, ry, *paint); 260 static void drawOval(JNIEnv* env, jobject, jlong canvasHandle, jfloat left, jfloat top, argument 263 get_canvas(canvasHandle)->drawOval(left, top, right, bottom, *paint); 266 static void drawArc(JNIEnv* env, jobject, jlong canvasHandle, jfloat left, jfloat top, argument 270 get_canvas(canvasHandle)->drawArc(left, top, righ 153 quickRejectRect(JNIEnv* env, jobject, jlong canvasHandle, jfloat left, jfloat top, jfloat right, jfloat bottom) argument 311 drawBitmap(JNIEnv* env, jobject jcanvas, jlong canvasHandle, jlong bitmapHandle, jfloat left, jfloat top, jlong paintHandle, jint canvasDensity, jint screenDensity, jint bitmapDensity) argument 469 SkScalar top = y + textSize * kStdUnderline_Offset - 0.5f * strokeWidth; local 474 SkScalar top = y + textSize * kStdStrikeThru_Offset - 0.5f * strokeWidth; local [all...] |
H A D | android_view_GLES20Canvas.cpp | 121 jlong rendererPtr, jint left, jint top, jint right, jint bottom, 124 return renderer->prepareDirty(left, top, right, bottom, opaque); 208 jlong rendererPtr, jfloat left, jfloat top, jfloat right, jfloat bottom, 212 return renderer->saveLayer(left, top, right, bottom, paint, saveFlags); 220 return renderer->saveLayer(bounds.left, bounds.top, bounds.right, bounds.bottom, 225 jlong rendererPtr, jfloat left, jfloat top, jfloat right, jfloat bottom, 228 return renderer->saveLayerAlpha(left, top, right, bottom, alpha, saveFlags); 235 return renderer->saveLayerAlpha(bounds.left, bounds.top, bounds.right, bounds.bottom, 244 jlong rendererPtr, jfloat left, jfloat top, jfloat right, jfloat bottom) { 246 const bool result = renderer->quickRejectConservative(left, top, righ 120 android_view_GLES20Canvas_prepareDirty(JNIEnv* env, jobject clazz, jlong rendererPtr, jint left, jint top, jint right, jint bottom, jboolean opaque) argument 207 android_view_GLES20Canvas_saveLayer(JNIEnv* env, jobject clazz, jlong rendererPtr, jfloat left, jfloat top, jfloat right, jfloat bottom, jlong paintPtr, jint saveFlags) argument 224 android_view_GLES20Canvas_saveLayerAlpha(JNIEnv* env, jobject clazz, jlong rendererPtr, jfloat left, jfloat top, jfloat right, jfloat bottom, jint alpha, jint saveFlags) argument 243 android_view_GLES20Canvas_quickReject(JNIEnv* env, jobject clazz, jlong rendererPtr, jfloat left, jfloat top, jfloat right, jfloat bottom) argument 250 android_view_GLES20Canvas_clipRectF(JNIEnv* env, jobject clazz, jlong rendererPtr, jfloat left, jfloat top, jfloat right, jfloat bottom, jint op) argument 259 android_view_GLES20Canvas_clipRect(JNIEnv* env, jobject clazz, jlong rendererPtr, jint left, jint top, jint right, jint bottom, jint op) argument 349 android_view_GLES20Canvas_drawBitmap(JNIEnv* env, jobject clazz, jlong rendererPtr, jlong bitmapPtr, jfloat left, jfloat top, jlong paintPtr) argument 390 android_view_GLES20Canvas_drawBitmapData(JNIEnv* env, jobject clazz, jlong rendererPtr, jintArray colors, jint offset, jint stride, jfloat left, jfloat top, jint width, jint height, jboolean hasAlpha, jlong paintPtr) argument 437 android_view_GLES20Canvas_drawPatch(JNIEnv* env, jobject clazz, jlong rendererPtr, jlong bitmapPtr, jlong patchPtr, float left, float top, float right, float bottom, jlong paintPtr) argument 455 android_view_GLES20Canvas_drawRect(JNIEnv* env, jobject clazz, jlong rendererPtr, jfloat left, jfloat top, jfloat right, jfloat bottom, jlong paintPtr) argument 463 android_view_GLES20Canvas_drawRoundRect(JNIEnv* env, jobject clazz, jlong rendererPtr, jfloat left, jfloat top, jfloat right, jfloat bottom, jfloat rx, jfloat ry, jlong paintPtr) argument 502 android_view_GLES20Canvas_drawOval(JNIEnv* env, jobject clazz, jlong rendererPtr, jfloat left, jfloat top, jfloat right, jfloat bottom, jlong paintPtr) argument 510 android_view_GLES20Canvas_drawArc(JNIEnv* env, jobject clazz, jlong rendererPtr, jfloat left, jfloat top, jfloat right, jfloat bottom, jfloat startAngle, jfloat sweepAngle, jboolean useCenter, jlong paintPtr) argument [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | DrawableContainer.java | 104 result = (r.left | r.top | r.bottom | r.right) != 0; 292 public void setHotspotBounds(int left, int top, int right, int bottom) { argument 294 mHotspotBounds = new Rect(left, top, bottom, right); 296 mHotspotBounds.set(left, top, bottom, right); 300 mCurrDrawable.setHotspotBounds(left, top, right, bottom); 514 d.setHotspotBounds(hotspotBounds.left, hotspotBounds.top, 930 if (t.top > r.top) r.top = t.top; [all...] |
/frameworks/base/libs/hwui/ |
H A D | RenderProperties.h | 396 bool setTop(int top) { argument 397 if (RP_SET(mPrimitiveFields.mTop, top)) { 441 bool setLeftTop(int left, int top) { argument 443 bool topResult = setTop(top); 447 bool setLeftTopRightBottom(int left, int top, int right, int bottom) { argument 448 if (left != mPrimitiveFields.mLeft || top != mPrimitiveFields.mTop 451 mPrimitiveFields.mTop = top;
|
/frameworks/base/media/java/android/media/tv/ |
H A D | TvInputManager.java | 311 * @param top Top position. 317 public void onLayoutSurface(Session session, int left, int top, int right, int bottom) { argument 435 void postLayoutSurface(final int left, final int top, final int right, argument 440 mSessionCallback.onLayoutSurface(mSession, left, top, right, bottom); 699 public void onLayoutSurface(int left, int top, int right, int bottom, int seq) { 706 record.postLayoutSurface(left, top, right, bottom);
|
/frameworks/base/media/jni/ |
H A D | android_media_MediaCodec.cpp | 494 int32_t left, top, right, bottom; local 495 if (buffer->meta()->findRect("crop-rect", &left, &top, &right, &bottom)) { 504 rectClazz.get(), rectConstructID, left, top, right + 1, bottom + 1);
|
/frameworks/base/opengl/java/android/opengl/ |
H A D | GLES11Ext.java | 347 // C function void glFrustumxOES ( GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar ) 353 int top, 578 // C function void glOrthoxOES ( GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar ) 584 int top, 946 // C function void glFrustumfOES ( GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar ) 952 float top, 957 // C function void glOrthofOES ( GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar ) 963 float top, 349 glFrustumxOES( int left, int right, int bottom, int top, int zNear, int zFar ) argument 580 glOrthoxOES( int left, int right, int bottom, int top, int zNear, int zFar ) argument 948 glFrustumfOES( float left, float right, float bottom, float top, float zNear, float zFar ) argument 959 glOrthofOES( float left, float right, float bottom, float top, float zNear, float zFar ) argument
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
H A D | ScreenMagnifier.java | 173 final int top = args.argi2; 176 handleOnRectangleOnScreenRequested(left, top, right, bottom); 242 public void onRectangleOnScreenRequested(int left, int top, int right, int bottom) { argument 245 args.argi2 = top; 251 private void handleOnRectangleOnScreenRequested(int left, int top, int right, int bottom) { argument 254 if (!magnifiedFrame.intersects(left, top, right, bottom)) { 275 if (bottom - top > magnifFrameInScreenCoords.height()) { 276 scrollY = top - magnifFrameInScreenCoords.top; 277 } else if (top < magnifFrameInScreenCoord [all...] |
/frameworks/base/services/core/java/com/android/server/tv/ |
H A D | TvInputManagerService.java | 2113 public void onLayoutSurface(int left, int top, int right, int bottom) { argument 2116 Slog.d(TAG, "onLayoutSurface (left=" + left + ", top=" + top 2123 mSessionState.client.onLayoutSurface(left, top, right, bottom,
|
/frameworks/base/tools/aapt/ |
H A D | Images.cpp | 377 // Look for top tick 463 // find top and bottom extent of nine patch content on center column 480 // diagonally from the top left corner towards the center 507 png_bytepp rows, int left, int top, int right, int bottom) 509 png_bytep color = rows[top] + left*4; 511 if (left > right || top > bottom) { 515 while (top <= bottom) { 517 png_bytep p = rows[top]+i*4; 527 top++; 557 int left, right, top, botto local 506 get_color( png_bytepp rows, int left, int top, int right, int bottom) argument 589 int top; local [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Canvas_Delegate.java | 296 // get the current top graphics2D object. 325 // get the current top graphics2D object. 353 // get the current top graphics2D object. 372 float left, float top, 381 return canvasDelegate.clipRect(left, top, right, bottom, regionOp); 446 bounds.top = rect.y; 480 float left, float top, 571 final float left, final float top, final float right, final float bottom, long paint) { 582 graphics.fillRect((int)left, (int)top, 583 (int)(right-left), (int)(bottom-top)); 371 native_clipRect(long nCanvas, float left, float top, float right, float bottom, int regionOp) argument 479 native_quickReject(long nativeCanvas, float left, float top, float right, float bottom) argument 570 native_drawRect(long nativeCanvas, final float left, final float top, final float right, final float bottom, long paint) argument 596 native_drawOval(long nativeCanvas, final float left, final float top, final float right, final float bottom, long paint) argument 631 native_drawArc(long nativeCanvas, final float left, final float top, final float right, final float bottom, final float startAngle, final float sweep, final boolean useCenter, long paint) argument 663 native_drawRoundRect(long nativeCanvas, final float left, final float top, final float right, final float bottom, final float rx, final float ry, long paint) argument 720 native_drawBitmap(Canvas thisCanvas, long nativeCanvas, long bitmap, float left, float top, long nativePaintOrZero, int canvasDensity, int screenDensity, int bitmapDensity) argument 1048 clipRect(float left, float top, float right, float bottom, int regionOp) argument [all...] |
/frameworks/native/opengl/libagl/ |
H A D | egl.cpp | 55 EGLint left, EGLint top, EGLint width, EGLint height); 254 : left(0), top(0), right(w), bottom(h) { } 256 : left(l), top(t), right(r), bottom(b) { } 259 top = max(top, r.top); 265 return (left>=right || top>=bottom); 269 what, left, top, right-left, bottom-top); 273 int32_t top; member in struct:android::egl_window_surface_v2_t::Rect 294 const int32_t top = max(lhs.top, rhs.top); local 2154 eglSetSwapRectangleANDROID(EGLDisplay dpy, EGLSurface draw, EGLint left, EGLint top, EGLint width, EGLint height) argument [all...] |
/frameworks/native/services/surfaceflinger/ |
H A D | Layer.cpp | 398 float insetT = winCrop.top * yScale; 403 crop.top += insetT; 447 activeTransparentRegion.orSelf(Rect(0, 0, s.active.w, activeCrop.top)); 450 activeTransparentRegion.orSelf(Rect(0, activeCrop.top, 452 activeTransparentRegion.orSelf(Rect(activeCrop.right, activeCrop.top, 718 float top = float(win.top) / float(s.active.h); local 725 texCoords[0] = vec2(left, 1.0f - top); 728 texCoords[3] = vec2(right, 1.0f - top); 795 position[0] = tr.transform(win.left, win.top); [all...] |
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/ |
H A D | PhotoView.java | 306 centerY = Math.min(Math.max(mTranslateRect.top + heightBuffer, 401 float maxY = mTranslateRect.top * relativeDistance; 665 matrix.postTranslate(-mCropRect.left, -mCropRect.top); 751 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 752 super.onLayout(changed, left, top, right, bottom); 995 float maxTop = mAllowCrop ? mCropRect.top: 0.0f; 997 float t = mTranslateRect.top; 1005 Math.min(maxBottom - mTranslateRect.top, ty)); 1059 float maxTop = mAllowCrop ? mCropRect.top : 0.0f; 1061 float t = mTranslateRect.top; [all...] |
/frameworks/support/v4/java/android/support/v4/view/ |
H A D | ViewCompat.java | 270 public void postInvalidateOnAnimation(View view, int left, int top, int right, int bottom); argument 296 public void setPaddingRelative(View view, int start, int top, int end, int bottom); argument 389 public void postInvalidateOnAnimation(View view, int left, int top, int right, int bottom) { argument 390 view.invalidate(left, top, right, bottom); 499 public void setPaddingRelative(View view, int start, int top, int end, int bottom) { argument 500 view.setPadding(start, top, end, bottom); 1018 public void postInvalidateOnAnimation(View view, int left, int top, int right, int bottom) { argument 1019 ViewCompatJB.postInvalidateOnAnimation(view, left, top, right, bottom); 1120 public void setPaddingRelative(View view, int start, int top, int end, int bottom) { argument 1121 ViewCompatJellybeanMr1.setPaddingRelative(view, start, top, en 1450 postInvalidateOnAnimation(View view, int left, int top, int right, int bottom) argument 1902 setPaddingRelative(View view, int start, int top, int end, int bottom) argument [all...] |