/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | DisplayContent.java | 88 * (except a future lockscreen TaskStack) moves to the top. */ 225 int top = (physHeight - height) / 2; 226 out.set(left, top, left + width, top + height); 251 // This stack is always-on-top silly... 252 Slog.w(TAG_WM, "Ignoring move of always-on-top stack=" + stack + " to bottom"); 265 // The pinned stack is always the top most stack (always-on-top) when it is visible. 270 throw new IllegalStateException("Pinned stack isn't top stack??? " + mStacks); 283 * @param contentRect The bounds to apply at the top leve [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | GcSnapshot.java | 50 * This is based on top of {@link Graphics2D} but can operate independently if none are available 264 * Creates a new {@link GcSnapshot} on top of another one, with a layer data to be restored 337 mLayerBounds.left, mLayerBounds.top, 363 * Restores the top {@link GcSnapshot}, and returns the next one. 527 public boolean clipRect(float left, float top, float right, float bottom, int regionOp) { argument 528 return clip(new Rectangle2D.Float(left, top, right - left, bottom - top), regionOp); 691 // them, starting with the top one (which is the current local layer). 745 mLayerBounds.left, mLayerBounds.top, mLayerBounds.right, mLayerBounds.bottom, 757 mLayerBounds.left, mLayerBounds.top, mLayerBound [all...] |
/frameworks/native/include/ui/ |
H A D | mat4.h | 134 static tmat44 ortho(T left, T right, T bottom, T top, T near, T far); 136 static tmat44 frustum(T left, T right, T bottom, T top, T near, T far); 232 tmat44<T> tmat44<T>::ortho(T left, T right, T bottom, T top, T near, T far) { argument 235 m[1][1] = 2 / (top - bottom); 238 m[3][1] = -(top + bottom) / (top - bottom); 244 tmat44<T> tmat44<T>::frustum(T left, T right, T bottom, T top, T near, T far) { argument 247 T B = (top + bottom) / (top - bottom); 251 m[1][1] = (2 * near) / (top [all...] |
/frameworks/rs/driver/runtime/ |
H A D | rs_matrix.c | 321 rsExtractFrustumPlanes(const rs_matrix4x4* viewProj, float4* left, float4* right, float4* top, argument 334 top->x = viewProj->m[3] - viewProj->m[1]; 335 top->y = viewProj->m[7] - viewProj->m[5]; 336 top->z = viewProj->m[11] - viewProj->m[9]; 337 top->w = viewProj->m[15] - viewProj->m[13]; 358 len = length(top->xyz); 359 *top /= len; 369 rsIsSphereInFrustum(float4* sphere, float4* left, float4* right, float4* top, float4* bottom, argument 379 distToCenter = dot(top->xyz, sphere->xyz) + top [all...] |
/frameworks/native/opengl/tests/hwc/ |
H A D | hwcColorEquiv.cpp | 357 layer->sourceCrop.top = 0; 361 layer->displayFrame.top = 0; 371 layer->sourceCrop.top = 0; 375 layer->displayFrame.top = refHeight; 377 layer->displayFrame.bottom = layer->displayFrame.top + equivHeight;
|
/frameworks/rs/ |
H A D | rsRuntime.h | 104 int32_t *left, int32_t *right, int32_t *top, int32_t *bottom); 106 int32_t *left, int32_t *right, int32_t *top, int32_t *bottom); 108 int32_t *left, int32_t *right, int32_t *top, int32_t *bottom); 215 float bottom, float top, float near, float far); 217 float bottom, float top, float near, float far);
|
/frameworks/base/libs/hwui/renderthread/ |
H A D | CanvasContext.cpp | 401 // Additional nodes will be drawn on top with no particular clipping semantics. 420 const int y = targetBounds.top; 430 if (mCanvas->clipRect(targetBounds.left, targetBounds.top, 443 if (mCanvas->clipRect(contentBounds.right, targetBounds.top, 452 // ... or at the top ... 453 if (targetBounds.top < contentBounds.top && 456 if (mCanvas->clipRect(targetBounds.left, targetBounds.top, targetBounds.right, 457 contentBounds.top, 462 targetBounds.top 481 const float top = mContentDrawBounds.top; local [all...] |
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | ActivityStarter.java | 169 // Indicates that we moved other task and are going to put something on top soon, so 1006 final ActivityRecord top = mReusedActivity.task.performClearTaskForReuseLocked( 1008 if (top != null) { 1009 if (top.frontOfTask) { 1010 // Activity aliases may mean we use different intents for the top activity, 1012 top.task.setIntent(mStartActivity); 1014 ActivityStack.logStartActivity(AM_NEW_INTENT, mStartActivity, top.task); 1015 top.deliverNewIntentLocked(mCallingUid, mStartActivity.intent, 1025 // correctly resumed the top activity. 1033 // intent!) And for paranoia, make sure we have correctly resumed the top activit [all...] |
/frameworks/support/design/src/android/support/design/widget/ |
H A D | CoordinatorLayout.java | 73 * <li>As a top-level application decor or chrome layout</li> 911 int top; 932 top = anchorRect.top; 935 top = anchorRect.bottom; 938 top = anchorRect.top + anchorRect.height() / 2; 959 top -= childHeight; 965 top -= childHeight / 2; 976 top [all...] |
/frameworks/base/libs/hwui/ |
H A D | DeferredDisplayList.cpp | 86 mOps[i].state->mBounds.left, mOps[i].state->mBounds.top, 116 renderer.drawScreenSpaceColorRect(bounds.left, bounds.top, bounds.right, bounds.bottom, 127 Region uncovered(android::Rect(bounds.left, bounds.top, bounds.right, bounds.bottom)); 130 uncovered.subtractSelf(android::Rect(r.left, r.top, r.right, r.bottom)); 212 boundsDelta = mBounds.top - opBounds.top; 250 if (newClipSideFlags & kClipSide_Top) mClipRect.top = state->mClip.top; 275 renderer.drawScreenSpaceColorRect(mBounds.left, mBounds.top, mBounds.right, mBounds.bottom,
|
/frameworks/ex/widget/java/com/android/ex/widget/ |
H A D | StaggeredGridView.java | 47 * {@link android.widget.ListAdapter ListAdapter} will be arranged from top to bottom, 508 // Repair the top and bottom column boundaries from the views we still have 515 final int top = child.getTop() - mItemMargin; 521 final int colTop = top - rec.getMarginAbove(col - lp.column); 671 final int top = getPaddingTop(); 672 final int offset = top + Math.min(mRestoreOffset, 0); 706 Log.d(TAG, "!!! No top item found for column " + i + " value " + mItemTops[i]); 878 * @param overhang the number of extra pixels to fill beyond the current top edge 879 * @return the max overhang beyond the beginning of the view of any added items at the top 956 final int top [all...] |
/frameworks/base/core/java/android/view/ |
H A D | NotificationHeaderView.java | 189 int top = (int) (getPaddingTop() + (ownHeight - childHeight) / 2.0f); 190 int bottom = top + childHeight; 206 child.layout(layoutLeft, top, layoutRight, bottom); 335 r.top = 0; 356 r.top = (int) ((view.getTop() + view.getBottom()) / 2.0f - size / 2.0f); 357 r.bottom = (int) (r.top + size);
|
H A D | SurfaceView.java | 51 * normally appear on top of it. This can be used to place overlays such as 52 * buttons on top of the Surface, though note however that it can have an 58 * properties are used to draw a sibling view on top of the SurfaceView, the 311 protected boolean setFrame(int left, int top, int right, int bottom) { argument 312 boolean result = super.setFrame(left, top, right, bottom); 369 * Control whether the surface view's surface is placed on top of another 371 * This is typically used to place overlays on top of an underlying media 386 * Control whether the surface view's surface is placed on top of its 391 * SurfaceView is in will be visible on top of its surface. 473 + " top 698 updateWindowPositionRT(long frameNumber, int left, int top, int right, int bottom) argument [all...] |
H A D | DisplayListCanvas.java | 243 public void drawRoundRect(CanvasProperty<Float> left, CanvasProperty<Float> top, argument 246 nDrawRoundRect(mNativeCanvasWrapper, left.getNativeContainer(), top.getNativeContainer(),
|
/frameworks/base/core/java/com/android/internal/transition/ |
H A D | EpicenterTranslateClipReveal.java | 152 final State startStateY = new State(startClip.top, startClip.bottom, startY); 153 final State endStateY = new State(endClip.top, endClip.bottom, endY); 184 final State startStateY = new State(startClip.top, startClip.bottom, startY); 185 final State endStateY = new State(endClip.top, endClip.bottom, endY); 301 tempState.lower = tempRect.top + (int) tempState.trans; 315 tempRect.top = value.lower - (int) value.trans;
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/ |
H A D | PrintContentView.java | 272 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 273 mStaticContent.layout(left, top, right, mStaticContent.getMeasuredHeight()); 402 public void onViewPositionChanged(View changedView, int left, int top, int dx, int dy) { argument 408 final float progress = ((float) top - getOpenedOptionsY()) 450 public int clampViewPositionVertical(View child, int top, int dy) { argument 452 return Math.max(Math.min(top, getOpenedOptionsY()), getClosedOptionsY());
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
H A D | AndroidCamera2Settings.java | 304 double oldTop = (rectangle.top + 1000) / 2000.0; 309 int top = mCropRectangle.top + toIntConstrained( 313 int bottom = mCropRectangle.top + toIntConstrained( 315 transformed[index] = new MeteringRectangle(left, top, right - left, bottom - top, 573 RectF cropRect = new RectF(/*left*/0, /*top*/0, cropWidth, cropHeight);
|
/frameworks/native/services/surfaceflinger/ |
H A D | DisplayDevice.cpp | 239 b.left, b.top, b.width(), b.height()); 534 float src_y = viewport.top; 536 float dst_y = frame.top; 594 mViewport.left, mViewport.top, mViewport.right, mViewport.bottom, 595 mFrame.left, mFrame.top, mFrame.right, mFrame.bottom, 596 mScissor.left, mScissor.top, mScissor.right, mScissor.bottom,
|
/frameworks/support/v4/java/android/support/v4/graphics/drawable/ |
H A D | DrawableCompat.java | 47 void setHotspotBounds(Drawable drawable, int left, int top, int right, int bottom); argument 84 public void setHotspotBounds(Drawable drawable, int left, int top, int right, int bottom) { argument 218 public void setHotspotBounds(Drawable drawable, int left, int top, int right, int bottom) { argument 219 DrawableCompatLollipop.setHotspotBounds(drawable, left, top, right, bottom); 369 public static void setHotspotBounds(@NonNull Drawable drawable, int left, int top, argument 371 IMPL.setHotspotBounds(drawable, left, top, right, bottom);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | RecentsView.java | 85 * This view is the the top level layout that contains TaskStacks (which are laid out according 212 // Update the top level view's visibilities 365 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 367 mTaskStackView.layout(left, top, left + getMeasuredWidth(), top + getMeasuredHeight()); 373 int topBottomInsets = mSystemInsets.top + mSystemInsets.bottom; 378 int childTop = top + mSystemInsets.top + 379 Math.max(0, (bottom - top - topBottomInsets - childHeight)) / 2; 387 mStackActionButton.layout(buttonBounds.left, buttonBounds.top, buttonBound [all...] |
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/ |
H A D | WallpaperCropActivity.java | 389 cropRect.top = Math.max(0, cropRect.top); 418 cropRect.bottom = cropRect.top + defaultWallpaperSize.y / cropScale; 423 Math.min(Math.min(rotatedInSize[1] - cropRect.bottom, cropRect.top), 425 cropRect.top -= expandHeight; 683 mCropBounds.top /= scaleDownSampleSize; 702 roundedTrueCrop.bottom = roundedTrueCrop.top + fullSize.getHeight(); 705 // Adjust the top value 706 int adjustment = roundedTrueCrop.top - 708 roundedTrueCrop.top [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | GradientDrawable.java | 182 /** draw the gradient from the top to the bottom */ 184 /** draw the gradient from the top-right to the bottom-left */ 188 /** draw the gradient from the bottom-right to the top-left */ 190 /** draw the gradient from the bottom to the top */ 192 /** draw the gradient from the bottom-left to the top-right */ 196 /** draw the gradient from the top-left to the bottom-right */ 225 * ordered top-left, top-right, bottom-right, bottom-left. This property 248 * ordered top-left, top [all...] |
/frameworks/av/include/media/stagefright/ |
H A D | MetaData.h | 242 int32_t left, int32_t top, 253 int32_t *left, int32_t *top,
|
/frameworks/av/media/libstagefright/yuv/ |
H A D | YUVCanvas.cpp | 44 for (int32_t y = rect.top; y < rect.bottom; ++y) { 65 int32_t srcStartY = srcRect.top;
|
/frameworks/base/core/java/android/inputmethodservice/ |
H A D | SoftInputWindow.java | 29 * A SoftInputWindow is a Dialog that is intended to be used for a top-level input 64 * using styles. This theme is applied on top of the current theme in 91 if (ev.isWithinBoundsNoHistory(mBounds.left, mBounds.top, 95 MotionEvent temp = ev.clampNoHistory(mBounds.left, mBounds.top,
|