Home
last modified time | relevance | path

Searched refs:margin (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
Dimage_and_kernel.rsh6 // width-by-height is the dimension of a padded image with a margin.
10 // (width-2*margin)-by-(height-2*margin).
11 int margin;
17 image_size->margin = m;
DImageBuffersForRenderScript.java32 public ImageBuffersForRenderScript(Bitmap inImage, int margin, in ImageBuffersForRenderScript() argument
41 paddedMargin = margin; in ImageBuffersForRenderScript()
42 imageWidthPadded = inputImage.getWidth() + 2 * margin; in ImageBuffersForRenderScript()
43 imageHeightPadded = inputImage.getHeight() + 2 * margin; in ImageBuffersForRenderScript()
Dlayered_filter_fast_f32.rscript95 // padded with margin. Initialize other fields.
99 x += g_image_size.margin;
100 y += g_image_size.margin;
135 x += g_image_size.margin;
136 y += g_image_size.margin;
207 x += g_image_size.margin;
208 y += g_image_size.margin;
231 x += g_image_size.margin;
232 y += g_image_size.margin;
257 y += g_image_size.margin;
[all …]
Dlayered_filter_fast_d1new.rscript36 // Float4 that stores the image size info: 1. width, 2. height, 3. margin
85 // padded with margin. Initialize other fields.
89 x += g_image_size_i4.s2; // margin
90 y += g_image_size_i4.s2; // margin
118 x += g_image_size_i4.s2; // margin
119 y += g_image_size_i4.s2; // margin
243 x += g_image_size_i4.s2; // margin
244 y += g_image_size_i4.s2; // margin
289 x += g_image_size_i4.s2; // margin
290 y += g_image_size_i4.s2; // margin
[all …]
/frameworks/base/test-runner/src/android/test/
DViewAsserts.java161 static public void assertRightAligned(View first, View second, int margin) { in assertRightAligned() argument
169 assertEquals("views are not right aligned", Math.abs(firstRight - secondRight), margin); in assertRightAligned()
198 static public void assertLeftAligned(View first, View second, int margin) { in assertLeftAligned() argument
206 assertEquals("views are not left aligned", Math.abs(firstLeft - secondLeft), margin); in assertLeftAligned()
235 static public void assertBottomAligned(View first, View second, int margin) { in assertBottomAligned() argument
243 assertEquals("views are not bottom aligned", Math.abs(firstBottom - secondBottom), margin); in assertBottomAligned()
272 static public void assertTopAligned(View first, View second, int margin) { in assertTopAligned() argument
280 assertEquals("views are not top aligned", Math.abs(firstTop - secondTop), margin); in assertTopAligned()
/frameworks/base/docs/html/sdk/support_api_diff/25.0.0/
Dstylesheet-jdiff.css5 table.diffspectable {border:1px;padding:0px;margin:0px;}
27 margin-top:.25em;
28 margin-bottom:0;
40 margin:1em 0 0 0;}
43 margin:0 0 0em 0;
/frameworks/base/docs/html/sdk/support_api_diff/25.1.0/
Dstylesheet-jdiff.css5 table.diffspectable {border:1px;padding:0px;margin:0px;}
27 margin-top:.25em;
28 margin-bottom:0;
40 margin:1em 0 0 0;}
43 margin:0 0 0em 0;
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
DStructureAdapter.kt60 val margin = itemView.context.resources in setUpRecyclerView() constant
62 val itemDecorator = MarginItemDecorator(margin, margin) in setUpRecyclerView()
DControlsEditingActivity.kt189 val margin = resources in setUpList() constant
191 val itemDecorator = MarginItemDecorator(margin, margin) in setUpList()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DAuthPanelController.java112 final int margin = mUseFullScreen ? 0 : (int) mContext.getResources() in updateForContentDimensions() local
119 ValueAnimator marginAnimator = ValueAnimator.ofInt(mMargin, margin); in updateForContentDimensions()
151 mMargin = margin; in updateForContentDimensions()
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/f32/
DImageBuffersForRenderScriptF32.java41 public ImageBuffersForRenderScriptF32(Bitmap image, int margin, in ImageBuffersForRenderScriptF32() argument
43 super(image, margin, renderScript); in ImageBuffersForRenderScriptF32()
DRefocusFilterF32.java52 int margin = KernelDataForRenderScript.getMaxKernelRadius() + 1; in initializeScriptAndBuffers() local
53 buffers = new ImageBuffersForRenderScriptF32(inputImage, margin, in initializeScriptAndBuffers()
/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/
DReplacementDrawableSpan.java24 public void setExtraMargin(float margin) { in setExtraMargin() argument
25 mExtraMargin = margin; in setExtraMargin()
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/d1new/
DImageBuffersForRenderScriptd1new.java48 public ImageBuffersForRenderScriptd1new(Bitmap image, int margin, in ImageBuffersForRenderScriptd1new() argument
50 super(image, margin, renderScript); in ImageBuffersForRenderScriptd1new()
DRefocusFilterd1new.java53 int margin = KernelDataForRenderScript.getMaxKernelRadius() + 1; in initializeScriptAndBuffers() local
54 buffers = new ImageBuffersForRenderScriptd1new(inputImage, margin, in initializeScriptAndBuffers()
/frameworks/base/core/java/android/text/
DHtml.java353 String margin = null; in getTextStyles() local
357 margin = "margin-top:0; margin-bottom:0;"; in getTextStyles()
379 if (margin == null && textAlign == null) { in getTextStyles()
384 if (margin != null && textAlign != null) { in getTextStyles()
385 style.append(margin).append(" ").append(textAlign); in getTextStyles()
386 } else if (margin != null) { in getTextStyles()
387 style.append(margin); in getTextStyles()
956 private static void startBlockElement(Editable text, Attributes attributes, int margin) { in startBlockElement() argument
958 if (margin > 0) { in startBlockElement()
959 appendNewlines(text, margin); in startBlockElement()
[all …]
DLayout.java375 LeadingMarginSpan margin = (LeadingMarginSpan) spans[n]; in getJustifyWidth() local
377 right -= margin.getLeadingMargin(useFirstLineMargin); in getJustifyWidth()
379 left += margin.getLeadingMargin(useFirstLineMargin); in getJustifyWidth()
501 LeadingMarginSpan margin = (LeadingMarginSpan) spans[n]; in drawText() local
503 margin.drawLeadingMargin(canvas, paint, right, dir, ltop, in drawText()
506 right -= margin.getLeadingMargin(useFirstLineMargin); in drawText()
508 margin.drawLeadingMargin(canvas, paint, left, dir, ltop, in drawText()
511 left += margin.getLeadingMargin(useFirstLineMargin); in drawText()
1388 float margin = getParagraphLeadingMargin(line); in getLineMax() local
1390 return margin + (signedExtent >= 0 ? signedExtent : -signedExtent); in getLineMax()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DUserAvatarView.java111 public void setBadgeMargin(float margin) { in setBadgeMargin() argument
112 mDrawable.setBadgeMargin(margin); in setBadgeMargin()
DKeyguardStatusBarView.java514 private int calculateMargin(int margin, int padding) { in calculateMargin() argument
515 if (padding >= margin) { in calculateMargin()
518 return margin - padding; in calculateMargin()
/frameworks/base/core/java/android/widget/
DLinearLayout.java891 final int margin = lp.leftMargin + lp.rightMargin; in measureVertical() local
892 final int measuredWidth = child.getMeasuredWidth() + margin; in measureVertical()
903 matchWidthLocally ? margin : measuredWidth); in measureVertical()
906 matchWidthLocally ? margin : measuredWidth); in measureVertical()
1002 final int margin = lp.leftMargin + lp.rightMargin; in measureVertical() local
1003 final int measuredWidth = child.getMeasuredWidth() + margin; in measureVertical()
1010 matchWidthLocally ? margin : measuredWidth); in measureVertical()
1239 final int margin = lp.topMargin + lp.bottomMargin; in measureHorizontal() local
1240 final int childHeight = child.getMeasuredHeight() + margin; in measureHorizontal()
1267 matchHeightLocally ? margin : childHeight); in measureHorizontal()
[all …]
DToolbar.java433 public void setTitleMarginStart(int margin) { in setTitleMarginStart() argument
434 mTitleMarginStart = margin; in setTitleMarginStart()
456 public void setTitleMarginTop(int margin) { in setTitleMarginTop() argument
457 mTitleMarginTop = margin; in setTitleMarginTop()
479 public void setTitleMarginEnd(int margin) { in setTitleMarginEnd() argument
480 mTitleMarginEnd = margin; in setTitleMarginEnd()
502 public void setTitleMarginBottom(int margin) { in setTitleMarginBottom() argument
503 mTitleMarginBottom = margin; in setTitleMarginBottom()
DMagnifier.java1291 final int margin = in doDraw() local
1295 final Rect srcRect = new Rect(margin, 0, w - margin, h); in doDraw()
1302 Bitmap.createBitmap(mBitmap, 0, 0, margin, h), in doDraw()
1305 Bitmap.createBitmap(mBitmap, w - margin, 0, margin, h), in doDraw()
/frameworks/base/core/java/com/android/internal/widget/
DFloatingToolbar.java686 final int margin = 2 * mMarginVertical; in refreshCoordinatesAndOverflowDirection() local
687 final int toolbarHeightWithVerticalMargin = mLineHeight + margin; in refreshCoordinatesAndOverflowDirection()
708 calculateOverflowHeight(MIN_OVERFLOW_SIZE) + margin; in refreshCoordinatesAndOverflowDirection()
717 updateOverflowHeight(availableHeightAboveContent - margin); in refreshCoordinatesAndOverflowDirection()
725 updateOverflowHeight(availableHeightThroughContentDown - margin); in refreshCoordinatesAndOverflowDirection()
731 updateOverflowHeight(availableHeightBelowContent - margin); in refreshCoordinatesAndOverflowDirection()
739 updateOverflowHeight(availableHeightThroughContentUp - margin); in refreshCoordinatesAndOverflowDirection()
746 updateOverflowHeight(mViewPortOnScreen.height() - margin); in refreshCoordinatesAndOverflowDirection()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQuickQSPanel.java81 int margin = getResources().getDimensionPixelSize(R.dimen.qs_header_tile_margin_bottom); in applyBottomMargin() local
83 layoutParams.bottomMargin = margin; in applyBottomMargin()
/frameworks/ex/widget/java/com/android/ex/widget/
DStaggeredGridView.java164 public final void setMarginAbove(int col, int margin) { in setMarginAbove() argument
165 if (mMargins == null && margin == 0) { in setMarginAbove()
169 mMargins[col * 2] = margin; in setMarginAbove()
172 public final void setMarginBelow(int col, int margin) { in setMarginBelow() argument
173 if (mMargins == null && margin == 0) { in setMarginBelow()
177 mMargins[col * 2 + 1] = margin; in setMarginBelow()

12