Home
last modified time | relevance | path

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

/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/
DPdfManipulationService.java277 Rect cropBox = new Rect(); in applyPrintAttributes() local
318 if (mEditor.getPageCropBox(i, cropBox)) { in applyPrintAttributes()
319 cropBox.left = (int) (cropBox.left * scale + 0.5f); in applyPrintAttributes()
320 cropBox.top = (int) (cropBox.top * scale + 0.5f); in applyPrintAttributes()
321 cropBox.right = (int) (cropBox.right * scale + 0.5f); in applyPrintAttributes()
322 cropBox.bottom = (int) (cropBox.bottom * scale + 0.5f); in applyPrintAttributes()
323 cropBox.intersect(mediaBox); in applyPrintAttributes()
324 mEditor.setPageCropBox(i, cropBox); in applyPrintAttributes()
/frameworks/base/graphics/java/android/graphics/pdf/
DPdfEditor.java231 public void setPageCropBox(int pageIndex, @NonNull Rect cropBox) { in setPageCropBox() argument
233 throwIfCropBoxNull(cropBox); in setPageCropBox()
237 nativeSetPageCropBox(mNativeDocument, pageIndex, cropBox); in setPageCropBox()
353 private void throwIfCropBoxNull(Rect cropBox) { in throwIfCropBoxNull() argument
354 if (cropBox == null) { in throwIfCropBoxNull()