Home
last modified time | relevance | path

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

/cts/tests/tests/print/src/android/print/pdf/cts/
DPrintedPdfDocumentTest.java100 assertEquals(0, milsToPts(attr.getMediaSize().getHeightMils())); in oneMilPageSize()
113 private int milsToPts(int mils) { in milsToPts() method in PrintedPdfDocumentTest
123 assertEquals(milsToPts(attr.getMediaSize().getWidthMils()), doc.getPageWidth()); in getPageWidth()
133 assertEquals(milsToPts(attr.getMediaSize().getHeightMils()), doc.getPageHeight()); in getPageHeight()
143 assertEquals(new Rect(0, 0, milsToPts(attr.getMediaSize().getWidthMils()), in getContentRect()
144 milsToPts(attr.getMediaSize().getHeightMils())), doc.getPageContentRect()); in getContentRect()
155 assertEquals(new Rect(milsToPts(margins.getLeftMils()), milsToPts(margins.getTopMils()), in getContentRectBigMargins()
156 milsToPts(attr.getMediaSize().getWidthMils()) - milsToPts(margins.getRightMils()), in getContentRectBigMargins()
157 milsToPts(attr.getMediaSize().getHeightMils()) - in getContentRectBigMargins()
158 milsToPts(margins.getBottomMils())), doc.getPageContentRect()); in getContentRectBigMargins()
[all …]