Home
last modified time | relevance | path

Searched refs:margin (Results 1 – 25 of 37) 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.rscript35 // Float4 that stores the image size info: 1. width, 2. height, 3. margin
84 // padded with margin. Initialize other fields.
88 x += g_image_size_i4.s2; // margin
89 y += g_image_size_i4.s2; // margin
117 x += g_image_size_i4.s2; // margin
118 y += g_image_size_i4.s2; // margin
242 x += g_image_size_i4.s2; // margin
243 y += g_image_size_i4.s2; // margin
288 x += g_image_size_i4.s2; // margin
289 y += g_image_size_i4.s2; // margin
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DUdfpsDrawable.java69 final int margin = (int) sensorRect.height() / 8; in onSensorRectUpdated() local
71 final Rect bounds = new Rect((int) sensorRect.left + margin, in onSensorRectUpdated()
72 (int) sensorRect.top + margin, in onSensorRectUpdated()
73 (int) sensorRect.right - margin, in onSensorRectUpdated()
74 (int) sensorRect.bottom - margin); in onSensorRectUpdated()
DAuthPanelController.java151 final int margin = mUseFullScreen ? 0 : (int) mContext.getResources() in updateForContentDimensions() local
158 ValueAnimator marginAnimator = ValueAnimator.ofInt(mMargin, margin); in updateForContentDimensions()
190 mMargin = margin; in updateForContentDimensions()
/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.kt195 val margin = resources in setUpList() constant
197 val itemDecorator = MarginItemDecorator(margin, margin) in setUpList()
/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/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.java517 private int calculateMargin(int margin, int padding) { in calculateMargin() argument
518 if (padding >= margin) { in calculateMargin()
521 return margin - padding; in calculateMargin()
/frameworks/base/core/java/android/text/
DHtml.java356 String margin = null; in getTextStyles() local
360 margin = "margin-top:0; margin-bottom:0;"; in getTextStyles()
382 if (margin == null && textAlign == null) { in getTextStyles()
387 if (margin != null && textAlign != null) { in getTextStyles()
388 style.append(margin).append(" ").append(textAlign); in getTextStyles()
389 } else if (margin != null) { in getTextStyles()
390 style.append(margin); in getTextStyles()
959 private static void startBlockElement(Editable text, Attributes attributes, int margin) { in startBlockElement() argument
961 if (margin > 0) { in startBlockElement()
962 appendNewlines(text, margin); in startBlockElement()
[all …]
DLayout.java376 LeadingMarginSpan margin = (LeadingMarginSpan) spans[n]; in getJustifyWidth() local
378 right -= margin.getLeadingMargin(useFirstLineMargin); in getJustifyWidth()
380 left += margin.getLeadingMargin(useFirstLineMargin); in getJustifyWidth()
502 LeadingMarginSpan margin = (LeadingMarginSpan) spans[n]; in drawText() local
504 margin.drawLeadingMargin(canvas, paint, right, dir, ltop, in drawText()
507 right -= margin.getLeadingMargin(useFirstLineMargin); in drawText()
509 margin.drawLeadingMargin(canvas, paint, left, dir, ltop, in drawText()
512 left += margin.getLeadingMargin(useFirstLineMargin); in drawText()
1389 float margin = getParagraphLeadingMargin(line); in getLineMax() local
1391 return margin + (signedExtent >= 0 ? signedExtent : -signedExtent); in getLineMax()
[all …]
/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()
/frameworks/base/core/java/com/android/internal/widget/
DFloatingToolbar.java694 final int margin = 2 * mMarginVertical; in refreshCoordinatesAndOverflowDirection() local
695 final int toolbarHeightWithVerticalMargin = mLineHeight + margin; in refreshCoordinatesAndOverflowDirection()
716 calculateOverflowHeight(MIN_OVERFLOW_SIZE) + margin; in refreshCoordinatesAndOverflowDirection()
725 updateOverflowHeight(availableHeightAboveContent - margin); in refreshCoordinatesAndOverflowDirection()
733 updateOverflowHeight(availableHeightThroughContentDown - margin); in refreshCoordinatesAndOverflowDirection()
739 updateOverflowHeight(availableHeightBelowContent - margin); in refreshCoordinatesAndOverflowDirection()
747 updateOverflowHeight(availableHeightThroughContentUp - margin); in refreshCoordinatesAndOverflowDirection()
754 updateOverflowHeight(mViewPortOnScreen.height() - margin); in refreshCoordinatesAndOverflowDirection()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/
DAccessibilityFloatingMenuViewTest.java123 final int margin = in setUpMatrices() local
137 mMaxWindowX = screenWidth - margin - menuWidth; in setUpMatrices()
138 mMenuWindowHeight = menuHeight + margin * 2; in setUpMatrices()
/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