/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/ |
CheckableContactFlipDrawable.java | 160 final Rect bounds = getBounds(); local 161 if (!isVisible() || bounds.isEmpty()) { 165 canvas.drawCircle(bounds.centerX(), bounds.centerY(), bounds.width() / 2, mPaint); 171 sMatrix.postTranslate(bounds.centerX() - CHECKMARK.getWidth() / 2, 172 bounds.centerY() - CHECKMARK.getHeight() / 2);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
PhoneStatusBarView.java | 320 Rect bounds = new Rect(); local 321 boundsFromDirection(mDisplayCutout, Gravity.TOP, bounds); 323 bounds.left = bounds.left + mCutoutSideNudge; 324 bounds.right = bounds.right - mCutoutSideNudge; 325 lp.width = bounds.width(); 326 lp.height = bounds.height(); 369 Rect bounds = new Rect(); local 370 boundsFromDirection(cutout, Gravity.TOP, bounds); [all...] |
/external/skia/src/effects/ |
SkDashPathEffect.cpp | 73 SkRect bounds = *cullRect; local 74 outset_for_stroke(&bounds, rec); 85 inv.mapRect(&bounds); 97 if (maxX <= bounds.fLeft || minX >= bounds.fRight) { 102 // right of the bounds (keeping our new line "in phase" with the dash, 105 if (minX < bounds.fLeft) { 106 minX = bounds.fLeft - SkScalarMod(bounds.fLeft - minX, intervalLength); 108 if (maxX > bounds.fRight) [all...] |
SkXfermodeImageFilter.cpp | 53 const SkIRect& bounds, 139 SkIRect bounds; local 140 if (!this->applyCropRect(ctx, srcBounds, &bounds)) { 144 offset->fX = bounds.left(); 145 offset->fY = bounds.top(); 152 bounds, ctx.outputProperties()); 156 sk_sp<SkSpecialSurface> surf(source->makeSurface(ctx.outputProperties(), bounds.size())); 165 canvas->translate(SkIntToScalar(-bounds.left()), SkIntToScalar(-bounds.top())); 277 const SkIRect& bounds, [all...] |
/external/skqp/src/effects/ |
SkDashPathEffect.cpp | 73 SkRect bounds = *cullRect; local 74 outset_for_stroke(&bounds, rec); 85 inv.mapRect(&bounds); 97 if (maxX <= bounds.fLeft || minX >= bounds.fRight) { 102 // right of the bounds (keeping our new line "in phase" with the dash, 105 if (minX < bounds.fLeft) { 106 minX = bounds.fLeft - SkScalarMod(bounds.fLeft - minX, intervalLength); 108 if (maxX > bounds.fRight) [all...] |
/frameworks/native/services/surfaceflinger/ |
Transform.cpp | 199 Rect Transform::transform(const Rect& bounds, bool roundOutwards) const 202 vec2 lt( bounds.left, bounds.top ); 203 vec2 rt( bounds.right, bounds.top ); 204 vec2 lb( bounds.left, bounds.bottom ); 205 vec2 rb( bounds.right, bounds.bottom ); 227 FloatRect Transform::transform(const FloatRect& bounds) cons [all...] |
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
StyledCornersBitmapDrawable.java | 41 * {@link #CORNER_STYLE_FLAP} corners have a colored flap drawn within the bounds. 217 protected void onBoundsChange(Rect bounds) { 218 super.onBoundsChange(bounds); 229 final Rect bounds = getBounds(); local 230 if (bounds.isEmpty()) { 249 float left = bounds.left + mBorderWidth / 2; 250 float top = bounds.top + mBorderWidth / 2; 251 float right = bounds.right - mBorderWidth / 2; 252 float bottom = bounds.bottom - mBorderWidth / 2; 302 final Rect bounds = getBounds() local 394 Rect bounds = getBounds(); local [all...] |
/external/drm_hwcomposer/ |
glworker.cpp | 300 float bounds[4]; member in struct:android::RenderingCommand 308 std::copy_n(region.frame.bounds, 4, cmd.bounds); 314 float display_size[2] = {display_rect.bounds[2] - display_rect.bounds[0], 315 display_rect.bounds[3] - display_rect.bounds[1]}; 324 float crop_size[2] = {crop_rect.bounds[2] - crop_rect.bounds[0], 325 crop_rect.bounds[3] - crop_rect.bounds[1]} [all...] |
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ |
BoundSet.java | 7 import com.github.javaparser.symbolsolver.resolution.typeinference.bounds.*; 23 private List<Bound> bounds = new LinkedList<>(); field in class:BoundSet 34 return new HashSet<>(bounds).equals(new HashSet<>(boundSet.bounds)); 39 return bounds.hashCode(); 45 "bounds=" + bounds + 55 return bounds.isEmpty(); 63 if (this.bounds.contains(bound)) { 67 boundSet.bounds.addAll(this.bounds) [all...] |
/external/ltp/testcases/kernel/device-drivers/v4l/user_space/ |
test_VIDIOC_CROP.c | 179 ".bounds = { .left = %i, .top = %i, .width = %i, .height = %i }, " 183 cropcap.bounds.left, cropcap.bounds.top, cropcap.bounds.width, 184 cropcap.bounds.height, cropcap.defrect.left, cropcap.defrect.top, 190 crop.c = cropcap.bounds; 222 /* top + +------ cropcap.bounds -------+ ^ */ 237 CU_ASSERT(cropcap.bounds.left <= crop_new.c.left); 238 CU_ASSERT(cropcap.bounds.top <= crop_new.c.top); 241 cropcap.bounds.left + cropcap.bounds.width) [all...] |
/external/skqp/gm/ |
strokes.cpp | 333 static void make0(SkPath* path, const SkRect& bounds, SkString* title) { 334 path->addRect(bounds, SkPath::kCW_Direction); 335 path->addRect(inset(bounds), SkPath::kCW_Direction); 339 static void make1(SkPath* path, const SkRect& bounds, SkString* title) { 340 path->addRect(bounds, SkPath::kCW_Direction); 341 path->addRect(inset(bounds), SkPath::kCCW_Direction); 345 static void make2(SkPath* path, const SkRect& bounds, SkString* title) { 346 path->addOval(bounds, SkPath::kCW_Direction); 347 path->addOval(inset(bounds), SkPath::kCW_Direction); 351 static void make3(SkPath* path, const SkRect& bounds, SkString* title) 401 SkRect bounds = SkRect::MakeWH(SkIntToScalar(50), SkIntToScalar(50)); variable [all...] |
highcontrastfilter.cpp | 43 SkRect bounds = SkRect::MakeLTRB(0.0f, 0.0f, 1.0f, 1.0f); local 46 canvas->saveLayer(&bounds, &xferPaint); 49 bounds = SkRect::MakeLTRB(0.1f, 0.2f, 0.9f, 0.4f); 51 canvas->drawRect(bounds, paint); 57 bounds = SkRect::MakeLTRB(0.1f, 0.8f, 0.9f, 1.0f); 59 canvas->drawRect(bounds, paint); 65 bounds = SkRect::MakeLTRB(0.1f, 0.4f, 0.9f, 0.6f); 72 canvas->drawRect(bounds, paint); 74 bounds = SkRect::MakeLTRB(0.1f, 0.6f, 0.9f, 0.8f); 79 canvas->drawRect(bounds, paint) [all...] |
convexpolyclip.cpp | 168 SkRect bounds; variable 169 clip->getBounds(&bounds); 170 bounds.outset(2, 2); 171 bounds.offset(x, y); 172 canvas->saveLayer(&bounds, nullptr); 191 SkRect bounds; variable 192 clip->getBounds(&bounds); 193 bounds.outset(2, 2); 194 bounds.offset(x, y); 195 canvas->saveLayer(&bounds, nullptr) [all...] |
/external/webrtc/webrtc/examples/objc/AppRTCDemo/ios/ |
ARDMainView.m | 68 CGRect bounds = self.bounds; 69 _clearButton.frame = CGRectMake(CGRectGetMaxX(bounds) - kRoomTextButtonSize, 70 CGRectGetMinY(bounds), 74 CGRectGetMinX(bounds) + kRoomTextFieldMargin, 75 CGRectGetMinY(bounds), 76 CGRectGetMinX(_clearButton.frame) - CGRectGetMinX(bounds) - 200 CGRect bounds = self.bounds; 201 CGFloat roomTextWidth = bounds.size.width - 2 * kRoomTextFieldMargin [all...] |
/external/skia/tests/ |
RecordDrawTest.cpp | 142 SkAutoTMalloc<SkRect> bounds(record.count()); 143 SkRecordFillBounds(SkRect::MakeWH(SkIntToScalar(W), SkIntToScalar(H)), record, bounds); 146 REPORTER_ASSERT(r, sloppy_rect_eq(SkRect::MakeWH(400, 480), bounds[i])); 165 SkAutoTMalloc<SkRect> bounds(record.count()); 166 SkRecordFillBounds(SkRect::MakeWH(SkIntToScalar(W), SkIntToScalar(H)), record, bounds); 169 // builds its bounds by overestimating font metrics in a platform-independent way. 171 REPORTER_ASSERT(r, sloppy_rect_eq(bounds[0], SkRect::MakeLTRB(0, 0, 140, 60))); 172 REPORTER_ASSERT(r, sloppy_rect_eq(bounds[1], SkRect::MakeLTRB(0, 20, 180, 100))); 203 // bounds for the saveLayer, clip, and restore to be greater than the bounds of the picture [all...] |
PathOpsCubicReduceOrderTest.cpp | 44 static void find_tight_bounds(const SkDCubic& cubic, SkDRect& bounds) { 47 find_tight_bounds(cubicPair.first(), bounds); 49 bounds.add(cubicPair.first()[0]); 50 bounds.add(cubicPair.first()[3]); 53 find_tight_bounds(cubicPair.second(), bounds); 55 bounds.add(cubicPair.second()[0]); 56 bounds.add(cubicPair.second()[3]); 246 SkDRect bounds = {DBL_MAX, DBL_MAX, -DBL_MAX, -DBL_MAX}; 247 find_tight_bounds(cubic, bounds); 248 if ( (!AlmostEqualUlps(reducer.fLine[0].fX, bounds.fLeft [all...] |
/external/skqp/tests/ |
RecordDrawTest.cpp | 142 SkAutoTMalloc<SkRect> bounds(record.count()); 143 SkRecordFillBounds(SkRect::MakeWH(SkIntToScalar(W), SkIntToScalar(H)), record, bounds); 146 REPORTER_ASSERT(r, sloppy_rect_eq(SkRect::MakeWH(400, 480), bounds[i])); 165 SkAutoTMalloc<SkRect> bounds(record.count()); 166 SkRecordFillBounds(SkRect::MakeWH(SkIntToScalar(W), SkIntToScalar(H)), record, bounds); 169 // builds its bounds by overestimating font metrics in a platform-independent way. 171 REPORTER_ASSERT(r, sloppy_rect_eq(bounds[0], SkRect::MakeLTRB(0, 0, 140, 60))); 172 REPORTER_ASSERT(r, sloppy_rect_eq(bounds[1], SkRect::MakeLTRB(0, 20, 180, 100))); 203 // bounds for the saveLayer, clip, and restore to be greater than the bounds of the picture [all...] |
/frameworks/opt/setupwizard/library/gingerbread/test/instrumentation/src/com/android/setupwizardlib/util/ |
LinkAccessibilityHelperTest.java | 125 Rect bounds = new Rect(); local 126 info.getBoundsInParent(bounds); 127 assertEquals("LinkSpan bounds should be (10.5dp, 0dp, 18.5dp, 20.5dp)", 128 new Rect(dp2Px(10.5f), dp2Px(0f), dp2Px(18.5f), dp2Px(20.5f)), bounds); 142 Rect bounds = new Rect(); local 143 info.getBoundsInParent(bounds); 144 assertEquals("LinkSpan bounds should be (0, 0, 1, 1)", 145 new Rect(0, 0, 1, 1), bounds); 161 Rect bounds = new Rect(); local 162 info.getBoundsInParent(bounds); 182 Rect bounds = new Rect(); local 205 Rect bounds = new Rect(); local 233 Rect bounds = new Rect(); local [all...] |
/external/skia/gm/ |
highcontrastfilter.cpp | 43 SkRect bounds = SkRect::MakeLTRB(0.0f, 0.0f, 1.0f, 1.0f); local 46 canvas->saveLayer(&bounds, &xferPaint); 49 bounds = SkRect::MakeLTRB(0.1f, 0.2f, 0.9f, 0.4f); 51 canvas->drawRect(bounds, paint); 57 bounds = SkRect::MakeLTRB(0.1f, 0.8f, 0.9f, 1.0f); 59 canvas->drawRect(bounds, paint); 65 bounds = SkRect::MakeLTRB(0.1f, 0.4f, 0.9f, 0.6f); 72 canvas->drawRect(bounds, paint); 74 bounds = SkRect::MakeLTRB(0.1f, 0.6f, 0.9f, 0.8f); 79 canvas->drawRect(bounds, paint) [all...] |
convexpolyclip.cpp | 168 SkRect bounds; variable 169 clip->getBounds(&bounds); 170 bounds.outset(2, 2); 171 bounds.offset(x, y); 172 canvas->saveLayer(&bounds, nullptr); 191 SkRect bounds; variable 192 clip->getBounds(&bounds); 193 bounds.outset(2, 2); 194 bounds.offset(x, y); 195 canvas->saveLayer(&bounds, nullptr) [all...] |
/frameworks/native/libs/ui/ |
GraphicBufferMapper.cpp | 113 const Rect& bounds, void** vaddr) 115 return lockAsync(handle, usage, bounds, vaddr, -1); 119 const Rect& bounds, android_ycbcr *ycbcr) 121 return lockAsyncYCbCr(handle, usage, bounds, ycbcr, -1); 136 uint32_t usage, const Rect& bounds, void** vaddr, int fenceFd) 138 return lockAsync(handle, usage, usage, bounds, vaddr, fenceFd); 142 uint64_t producerUsage, uint64_t consumerUsage, const Rect& bounds, 150 asGralloc2Rect(bounds), fenceFd, vaddr); 159 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr, int fenceFd) 165 asGralloc2Rect(bounds), fenceFd, &layout) [all...] |
/external/skia/src/core/ |
SkLineClipper.cpp | 79 SkRect bounds; local 81 bounds.set(src[0], src[1]); 82 if (containsNoEmptyCheck(clip, bounds)) { 90 if (nestedLT(bounds.fRight, clip.fLeft, bounds.width()) || 91 nestedLT(clip.fRight, bounds.fLeft, bounds.width()) || 92 nestedLT(bounds.fBottom, clip.fTop, bounds.height()) || 93 nestedLT(clip.fBottom, bounds.fTop, bounds.height())) [all...] |
/external/skqp/src/core/ |
SkLineClipper.cpp | 79 SkRect bounds; local 81 bounds.set(src[0], src[1]); 82 if (containsNoEmptyCheck(clip, bounds)) { 90 if (nestedLT(bounds.fRight, clip.fLeft, bounds.width()) || 91 nestedLT(clip.fRight, bounds.fLeft, bounds.width()) || 92 nestedLT(bounds.fBottom, clip.fTop, bounds.height()) || 93 nestedLT(clip.fBottom, bounds.fTop, bounds.height())) [all...] |
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/ |
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.bottom - te.bounds.top [all...] |
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/widget/ |
ExploreByTouchHelperActivity.java | 145 * the custom view bounds and its descriptions is drawn at its center. 169 * Sets the parent of an CustomItem. This adjusts the bounds so that they are relative to 192 RectF bounds = item.mBoundsInRoot; local 193 item.mBoundsInRoot.set(parent.mBounds.left + bounds.left * parent.mBounds.width(), 194 parent.mBounds.top + bounds.top * parent.mBounds.height(), 195 parent.mBounds.left + bounds.right * parent.mBounds.width(), 196 parent.mBounds.top + bounds.bottom * parent.mBounds.height()); 206 final Rect bounds = mTempBounds; local 217 scaleRectF(item.mBoundsInRoot, bounds, width, height); 218 canvas.drawRect(bounds, paint) 344 final Rect bounds = mTempRect; local [all...] |