/frameworks/base/libs/hwui/hwui/ |
H A D | MinikinSkia.cpp | 57 void MinikinFontSkia::GetBounds(minikin::MinikinRect* bounds, uint32_t glyph_id, argument 64 bounds->mLeft = skBounds.fLeft; 65 bounds->mTop = skBounds.fTop; 66 bounds->mRight = skBounds.fRight; 67 bounds->mBottom = skBounds.fBottom;
|
H A D | Canvas.cpp | 84 const SkPaint& paint, float x, float y, minikin::MinikinRect& bounds, 93 , bounds(bounds) 125 bounds.mLeft, bounds.mTop, bounds.mRight, bounds.mBottom, totalAdvance); 132 bounds.mLeft, bounds.mTop, bounds 83 DrawTextFunctor(const minikin::Layout& layout, Canvas* canvas, uint16_t* glyphs, float* pos, const SkPaint& paint, float x, float y, minikin::MinikinRect& bounds, float totalAdvance) argument 147 minikin::MinikinRect& bounds; member in class:android::DrawTextFunctor 165 minikin::MinikinRect bounds; local [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/ |
H A D | WindowFrameTests.java | 77 TaskWithBounds(Rect bounds) { argument 79 mBounds = bounds; 117 Task task = new TaskWithBounds(null); // fullscreen task doesn't use bounds for computeFrame 174 Task task = new TaskWithBounds(null); // fullscreen task doesn't use bounds for computeFrame 187 // It can select various widths and heights within the bounds. 201 // parent bounds. 269 // task bounds not the parent frame. 288 // However if we set temp inset bounds, the insets will be computed 290 // the task bounds.
|
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/ |
H A D | AssistVisualizer.java | 36 final Rect bounds; field in class:AssistVisualizer.TextEntry 50 bounds = new Rect(left, top, left+node.getWidth(), top+node.getHeight()); 118 Log.d(TAG, "View " + te.className + " " + te.bounds.toShortString() 186 canvas.drawRect(te.bounds.left - mTmpLocation[0], te.bounds.top - mTmpLocation[1], 187 te.bounds.right - mTmpLocation[0], te.bounds.bottom - mTmpLocation[1], 195 canvas.drawRect(0, 0, te.bounds.right - te.bounds.left, te.bounds [all...] |
/frameworks/native/libs/ui/ |
H A D | GraphicBufferMapper.cpp | 83 const Rect& bounds, void** vaddr) 85 return lockAsync(handle, usage, bounds, vaddr, -1); 89 const Rect& bounds, android_ycbcr *ycbcr) 91 return lockAsyncYCbCr(handle, usage, bounds, ycbcr, -1); 106 uint32_t usage, const Rect& bounds, void** vaddr, int fenceFd) 108 return lockAsync(handle, usage, usage, bounds, vaddr, fenceFd); 112 uint64_t producerUsage, uint64_t consumerUsage, const Rect& bounds, 120 asGralloc2Rect(bounds), fenceFd, vaddr); 152 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr, int fenceFd) 158 asGralloc2Rect(bounds), fenceF 82 lock(buffer_handle_t handle, uint32_t usage, const Rect& bounds, void** vaddr) argument 88 lockYCbCr(buffer_handle_t handle, uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr) argument 105 lockAsync(buffer_handle_t handle, uint32_t usage, const Rect& bounds, void** vaddr, int fenceFd) argument 111 lockAsync(buffer_handle_t handle, uint64_t producerUsage, uint64_t consumerUsage, const Rect& bounds, void** vaddr, int fenceFd) argument 151 lockAsyncYCbCr(buffer_handle_t handle, uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr, int fenceFd) argument [all...] |
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
H A D | TileDrawable.java | 76 protected void onBoundsChange(Rect bounds) { argument 77 super.onBoundsChange(bounds); 83 if (bounds.isEmpty()) { 86 final int l = bounds.left + (bounds.width() / 2) - (mInnerWidth / 2); 87 final int t = bounds.top + (bounds.height() / 2) - (mInnerHeight / 2);
|
/frameworks/support/graphics/drawable/static/src/android/support/graphics/drawable/ |
H A D | VectorDrawableCommon.java | 60 protected void onBoundsChange(Rect bounds) { argument 62 mDelegateDrawable.setBounds(bounds); 65 super.onBoundsChange(bounds);
|
/frameworks/support/transition/src/android/support/transition/ |
H A D | Explode.java | 86 Rect bounds = (Rect) endValues.values.get(PROPNAME_SCREEN_BOUNDS); 89 calculateOut(sceneRoot, bounds, mTempLoc); 93 return TranslationAnimationCreator.createAnimation(view, endValues, bounds.left, bounds.top, 103 Rect bounds = (Rect) startValues.values.get(PROPNAME_SCREEN_BOUNDS); 104 int viewPosX = bounds.left; 105 int viewPosY = bounds.top; 114 endX += interruptedPosition[0] - bounds.left; 115 endY += interruptedPosition[1] - bounds.top; 116 bounds 126 calculateOut(View sceneRoot, Rect bounds, int[] outVector) argument [all...] |
/frameworks/support/wear/tests/src/android/support/wear/widget/util/ |
H A D | ArcSwipe.java | 71 public ArcSwipe(Gesture gesture, RectF bounds) { argument 72 Preconditions.checkArgument(bounds.height() == bounds.width()); 74 mBounds = bounds;
|
/frameworks/base/core/java/android/widget/ |
H A D | ScrollBarDrawable.java | 154 protected void onBoundsChange(Rect bounds) { argument 155 super.onBoundsChange(bounds); 186 private void drawTrack(Canvas canvas, Rect bounds, boolean vertical) { argument 196 track.setBounds(bounds); 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 [all...] |
/frameworks/base/core/java/com/android/internal/view/menu/ |
H A D | MenuPopup.java | 65 * Specifies the anchor-relative bounds of the popup's transition 68 * @param bounds anchor-relative bounds 70 public void setEpicenterBounds(Rect bounds) { argument 71 mEpicenterBounds = bounds; 75 * @return anchor-relative bounds of the popup's transition epicenter
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | NinePatch.java | 23 * bounds of the graphic. For a thorough explanation of a NinePatch image, 252 * @param bounds The location and size of the NinePatch. 255 * report, else a {@link Region} holding the parts of the specified bounds 258 public final Region getTransparentRegion(Rect bounds) { argument 259 long r = nativeGetTransparentRegion(mBitmap, mNativeChunk, bounds);
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | RippleComponent.java | 62 public RippleComponent(RippleDrawable owner, Rect bounds, boolean forceSoftware) { argument 64 mBounds = bounds; 88 private static float getTargetRadius(Rect bounds) { argument 89 final float halfWidth = bounds.width() / 2.0f; 90 final float halfHeight = bounds.height() / 2.0f; 178 * Populates {@code bounds} with the maximum drawing bounds of the ripple 179 * relative to its center. The resulting bounds should be translated into 182 * @param bounds the rect to populate with drawing bounds 184 getBounds(Rect bounds) argument [all...] |
H A D | ScaleDrawable.java | 221 protected void onBoundsChange(Rect bounds) { argument 227 int w = bounds.width(); 233 int h = bounds.height(); 240 Gravity.apply(mState.mGravity, w, h, bounds, r, layoutDirection);
|
/frameworks/base/libs/hwui/ |
H A D | BakedOpRenderer.cpp | 248 Rect bounds = tr.getBounds(); local 250 // If rectToRect, can simply map bounds before storing verts 251 transform.mapRect(bounds); 252 bounds.doIntersect(clip->rect); 253 if (bounds.isEmpty()) { 258 rectangleVertices.push_back(Vertex{bounds.left, bounds.top}); 259 rectangleVertices.push_back(Vertex{bounds.right, bounds.top}); 260 rectangleVertices.push_back(Vertex{bounds [all...] |
H A D | CanvasState.cpp | 216 Rect bounds; local 218 if (!outline->getAsRoundRect(&bounds, &radius)) return; // only RR supported 223 clipRect(bounds.left, bounds.top, bounds.right, bounds.bottom, SkClipOp::kIntersect); 226 setClippingRoundRect(allocator, bounds, radius, false); 235 * Calculates whether content drawn within the passed bounds would be outside of, or intersect with
|
H A D | VertexBuffer.h | 104 * Brute force bounds computation, used only if the producer of this 105 * vertex buffer can't determine bounds more simply/efficiently 142 void setBounds(Rect bounds) { mBounds = bounds; } argument
|
/frameworks/base/libs/hwui/pipeline/skia/ |
H A D | RenderNodeDrawable.cpp | 171 const SkRect bounds = SkRect::MakeWH(properties.getWidth(), properties.getHeight()); local 172 bool quickRejected = properties.getClipToBounds() && canvas->quickReject(bounds); 191 canvas->drawRect(bounds, layerPaint); 198 canvas->drawRect(bounds, transparentPaint); 207 canvas->saveLayer(bounds, &paint); 240 clipFlags &= ~CLIP_TO_BOUNDS; // bounds clipping done by layer 251 SkRect bounds = SkRect::MakeLTRB(layerBounds.left, layerBounds.top, local 253 canvas->saveLayerAlpha(&bounds, (int) (properties.getAlpha() * 255));
|
/frameworks/base/libs/hwui/tests/common/ |
H A D | TestUtils.cpp | 88 Rect bounds; local 105 // compute bounds 109 bounds.unionWith(glyphBounds); 116 *outBounds = bounds;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | FakeShadowDrawable.java | 109 protected void onBoundsChange(Rect bounds) { argument 110 super.onBoundsChange(bounds); 269 private void buildComponents(Rect bounds) { argument 274 mCardBounds.set(bounds.left + mMaxShadowSize, bounds.top + verticalOffset, 275 bounds.right - mMaxShadowSize, bounds.bottom - verticalOffset);
|
H A D | RecentsTransitionHelper.java | 269 Rect bounds) { 274 bounds)); 268 composeDockAnimationSpec(TaskView taskView, Rect bounds) argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | LockscreenWallpaper.java | 250 protected void onBoundsChange(Rect bounds) { argument 270 bounds.left, 271 bounds.top + Math.round(dy), 272 bounds.left + Math.round(dwidth * scale), 273 bounds.top + Math.round(dheight * scale + dy));
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | DimLayer.java | 82 /** Gets the bounds of the dim layer user. */ 227 /** @param bounds The new bounds to set */ 228 void setBounds(Rect bounds) { argument 229 mBounds.set(bounds); 230 if (isDimming() && !mLastBounds.equals(bounds)) {
|
H A D | TaskWindowContainerController.java | 52 StackWindowController stackController, int userId, Rect bounds, 56 this(taskId, listener, stackController, userId, bounds, overrideConfig, resizeMode, 62 StackWindowController stackController, int userId, Rect bounds, 72 + " stack=" + stackController + " bounds=" + bounds); 80 final Task task = createTask(taskId, stack, userId, bounds, overrideConfig, resizeMode, 88 Task createTask(int taskId, TaskStack stack, int userId, Rect bounds, argument 91 return new Task(taskId, stack, userId, mService, bounds, overrideConfig, resizeMode, 151 public void resize(Rect bounds, Configuration overrideConfig, boolean relayout, argument 158 if (mContainer.resizeLocked(bounds, overrideConfi 51 TaskWindowContainerController(int taskId, TaskWindowContainerListener listener, StackWindowController stackController, int userId, Rect bounds, Configuration overrideConfig, int resizeMode, boolean supportsPictureInPicture, boolean homeTask, boolean toTop, boolean showForAllUsers, TaskDescription taskDescription) argument 61 TaskWindowContainerController(int taskId, TaskWindowContainerListener listener, StackWindowController stackController, int userId, Rect bounds, Configuration overrideConfig, int resizeMode, boolean supportsPictureInPicture, boolean homeTask, boolean toTop, boolean showForAllUsers, TaskDescription taskDescription, WindowManagerService service) argument 164 getBounds(Rect bounds) argument 223 requestResize(Rect bounds, int resizeMode) argument [all...] |
/frameworks/native/libs/nativewindow/ |
H A D | AHardwareBuffer.cpp | 124 Rect bounds; local 126 bounds.set(Rect(gBuffer->getWidth(), gBuffer->getHeight())); 128 bounds.set(Rect(rect->left, rect->top, rect->right, rect->bottom)); 130 return gBuffer->lockAsync(usage, usage, bounds, outVirtualAddress, fence);
|