Home
last modified time | relevance | path

Searched refs:margins (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/core/java/com/android/internal/widget/
DImageFloatingTextView.java98 int[] margins = null; in makeSingleLayout() local
100 margins = new int[mIndentLines + 1]; in makeSingleLayout()
102 margins[i] = mImageEndMargin; in makeSingleLayout()
106 builder.setIndents(margins, null); in makeSingleLayout()
108 builder.setIndents(null, margins); in makeSingleLayout()
/frameworks/base/core/java/android/widget/
DFastScroller.java628 final Rect margins = mTempMargins; in measurePreview() local
629 margins.left = mPreviewImage.getPaddingLeft(); in measurePreview()
630 margins.top = mPreviewImage.getPaddingTop(); in measurePreview()
631 margins.right = mPreviewImage.getPaddingRight(); in measurePreview()
632 margins.bottom = mPreviewImage.getPaddingBottom(); in measurePreview()
635 measureFloating(v, margins, out); in measurePreview()
637 measureViewToSide(v, mThumbImage, margins, out); in measurePreview()
652 private void measureViewToSide(View view, View adjacent, Rect margins, Rect out) { in measureViewToSide() argument
656 if (margins == null) { in measureViewToSide()
661 marginLeft = margins.left; in measureViewToSide()
[all …]
DGridLayout.java719 int[] margins = leading ? axis.getLeadingMargins() : axis.getTrailingMargins(); in getMargin() local
723 return margins[index]; in getMargin()
1688 int[] margins = leading ? leadingMargins : trailingMargins;
1696 margins[index] = max(margins[index], getMargin1(c, horizontal, leading));
/frameworks/base/core/java/android/print/
DPrinterCapabilitiesInfo.java407 private void writeMargins(Margins margins, Parcel parcel) { in writeMargins() argument
408 if (margins == null) { in writeMargins()
412 margins.writeToParcel(parcel); in writeMargins()
532 public @NonNull Builder setMinMargins(@NonNull Margins margins) { in setMinMargins() argument
533 if (margins == null) { in setMinMargins()
536 mPrototype.mMinMargins = margins; in setMinMargins()
DPrintAttributes.java182 public void setMinMargins(Margins margins) { in setMinMargins() argument
183 mMinMargins = margins; in setMinMargins()
1424 public @NonNull Builder setMinMargins(@NonNull Margins margins) { in setMinMargins() argument
1425 mAttributes.setMinMargins(margins); in setMinMargins()
/frameworks/base/core/java/com/android/internal/print/
DDumpUtils.java190 @NonNull PrintAttributes.Margins margins) { in writeMargins() argument
192 proto.write("top_mils", MarginsProto.TOP_MILS, margins.getTopMils()); in writeMargins()
193 proto.write("left_mils", MarginsProto.LEFT_MILS, margins.getLeftMils()); in writeMargins()
194 proto.write("right_mils", MarginsProto.RIGHT_MILS, margins.getRightMils()); in writeMargins()
195 proto.write("bottom_mils", MarginsProto.BOTTOM_MILS, margins.getBottomMils()); in writeMargins()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPrintPreviewController.java300 Margins margins = (Margins) args.arg4; in handleMessage() local
305 mediaSize, margins); in handleMessage()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DPrintSpoolerService.java1038 Margins margins = attributes.getMinMargins(); in doWriteStateLocked() local
1039 if (margins != null) { in doWriteStateLocked()
1042 margins.getLeftMils())); in doWriteStateLocked()
1044 margins.getTopMils())); in doWriteStateLocked()
1046 margins.getRightMils())); in doWriteStateLocked()
1048 margins.getBottomMils())); in doWriteStateLocked()
1311 Margins margins = new Margins(leftMils, topMils, rightMils, bottomMils); in parsePrintJobLocked() local
1312 builder.setMinMargins(margins); in parsePrintJobLocked()
/frameworks/base/core/proto/android/service/
Dprint.proto88 // Minimum margins of the printer