| /pdf/pdf-viewer/src/test/java/androidx/pdf/util/ |
| D | MockDrawable.java | 39 int height = getBounds().height(); in draw() local 40 float radius = (float) Math.min(width, height) / 2; in draw() 43 canvas.drawCircle((float) width / 2, (float) height / 2, radius, mRedPaint); in draw()
|
| /pdf/integration-tests/testapp/src/main/kotlin/androidx/pdf/testapp/ui/view/ |
| D | PdfPageObjectView.kt | 48 val srcRect = Rect(0, 0, bitmap.width, bitmap.height) in <lambda>() 49 val dstRect = Rect(0, paddingTop, width, height - paddingBottom) in <lambda>() 86 mBitmap!!.height / (height - paddingTop - paddingBottom).toFloat() in <lambda>() 99 mBitmap!!.height / (height - paddingTop - paddingBottom).toFloat() in <lambda>()
|
| /pdf/pdf-viewer/src/test/kotlin/androidx/pdf/view/ |
| D | FakeBitmapSource.kt | 32 Bitmap.createBitmap(tileRegion.width(), tileRegion.height(), Bitmap.Config.ARGB_8888) in getBitmap() 36 scaledPageSizePx.height, in getBitmap()
|
| D | PageLayoutManagerTest.kt | 53 height = 200, in <lambda>() 84 paginationManager.onViewportChanged(scrollY = 0, height = 1000, zoom = 1.0f) in <lambda>() 85 paginationManager.onViewportChanged(scrollY = 1000, height = 1000, zoom = 1.0f) in <lambda>() 110 paginationManager.onViewportChanged(scrollY = 0, height = 1000, zoom = 1.0f) in <lambda>() 111 paginationManager.onViewportChanged(scrollY = 0, height = 1000, zoom = 1.0f) in <lambda>() 136 paginationManager.onViewportChanged(scrollY = 0, height = 1200, zoom = 1.0f) in <lambda>()
|
| D | BitmapFetcherTest.kt | 99 assertThat(pageBitmaps.bitmap.height).isEqualTo((pageSize.y * 1.5f).roundToInt()) in <lambda>() 118 assertThat(pageBitmaps.bitmap.height).isEqualTo((pageSize.y * 1.5f).roundToInt()) in <lambda>() 136 assertThat(row0Col2.bitmap?.height).isEqualTo(tileSizePx.y) in <lambda>() 146 assertThat(row3Col3.bitmap?.height).isEqualTo(row3Col3Size.y) in <lambda>()
|
| /pdf/pdf-viewer/src/androidTest/kotlin/androidx/pdf/view/ |
| D | PdfViewRenderingTest.kt | 55 assertThat((requestedBitmaps[i] as? FullBitmap)?.scaledPageSizePx?.height) in <lambda>() 82 assertThat((requestedBitmaps[i] as? FullBitmap)?.scaledPageSizePx?.height) in <lambda>() 111 assertThat((requestedBitmaps[i] as? FullBitmap)?.scaledPageSizePx?.height) in <lambda>() 121 private fun setupPdfView(width: Int, height: Int, fakePdfDocument: FakePdfDocument?) { in setupPdfView() 129 ViewGroup.LayoutParams(width, height) in setupPdfView()
|
| /pdf/pdf-viewer/src/main/java/androidx/pdf/models/ |
| D | Dimensions.java | 50 public Dimensions(int width, int height) { in Dimensions() argument 52 this.mHeight = height; in Dimensions() 57 this.mHeight = rect.height(); in Dimensions()
|
| /pdf/pdf-document-service/src/main/kotlin/androidx/pdf/ |
| D | SandboxedPdfDocument.kt | 102 if (dimensions == null || dimensions.height <= 0 || dimensions.width <= 0) { in <lambda>() 105 PdfDocument.PageInfo(pageNumber, dimensions.height, dimensions.width) in <lambda>() 209 scaledPageSizePx.height in <lambda>() 210 ) ?: getDefaultBitmap(scaledPageSizePx.width, scaledPageSizePx.height) in <lambda>() 217 tileRegion.height(), in <lambda>() 219 scaledPageSizePx.height, in <lambda>() 222 ) ?: getDefaultBitmap(tileRegion.width(), tileRegion.height()) in <lambda>() 227 private fun getDefaultBitmap(width: Int, height: Int): Bitmap { in <lambda>() 228 val output = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888) in <lambda>()
|
| /pdf/pdf-viewer/src/main/kotlin/androidx/pdf/service/ |
| D | PdfPageWrapperPreV.kt | 36 override val height = page.height constant in androidx.pdf.service.PdfPageWrapperPreV 57 height in renderTile()
|
| D | PdfPageWrapperPostV.kt | 38 override val height = page.height constant in androidx.pdf.service.PdfPageWrapperPostV 59 height in renderTile()
|
| /pdf/pdf-viewer/src/main/java/androidx/pdf/widget/ |
| D | ZoomView.java | 540 || mContentRawBounds.height() != mContentView.getHeight())) { in onLayout() 542 int prevHeight = mContentRawBounds.height(); in onLayout() 549 float lookAtY = toContentY(mViewport.height() / 2f); in onLayout() 554 lookAtY *= mContentRawBounds.height() / ((float) prevHeight); in onLayout() 558 (int) (lookAtY * getZoom() - mViewport.height() / 2f)); in onLayout() 563 / (mContentRawBounds.width() + mContentRawBounds.height()); in onLayout() 593 int oldHeight = mViewport.height(); in onLayout() 605 int newHeight = mViewport.height(); in onLayout() 748 float heightZoom = (float) mViewport.height() / mContentView.getHeight(); in getUnconstrainedZoomToFit() 790 return mViewport.height(); in getViewportHeight() [all …]
|
| /pdf/pdf-document-service/src/main/kotlin/androidx/pdf/adapter/ |
| D | PdfPagePreVAdapter.kt | 46 override val height = page.height constant in androidx.pdf.adapter.PdfPagePreVAdapter 67 height in renderTile()
|
| D | PdfPageAdapter.kt | 46 override val height = page.height constant in androidx.pdf.adapter.PdfPageAdapter 67 height in renderTile()
|
| D | PdfPage.kt | 40 public val height: Int constant
|
| /pdf/pdf-viewer-fragment/src/main/java/androidx/pdf/viewer/fragment/insets/ |
| D | TranslateInsetsAnimationCallback.kt | 77 absoluteContainerBottom = pdfContainer.height + containerLocation[1] in <lambda>() 90 val screenHeight = windowManager.currentWindowMetrics.bounds.height() in <lambda>()
|
| /pdf/pdf-document-service/src/androidTest/kotlin/androidx/pdf/ |
| D | SandboxedPdfDocumentTest.kt | 56 assertThat(pageInfo.height == expectedHeight).isTrue() in <lambda>() 71 assertThat(pageInfo.height == expectedHeight).isTrue() in <lambda>() 101 assertThat(pageInfo.height == expectedHeight).isTrue() in <lambda>() 299 assertThat(bitmap.height == scaledPageSizePx.height).isTrue() in <lambda>() 316 assertThat(bitmap.height == tileRegion.height()).isTrue() in <lambda>() 352 for (y in 0 until height) { in <lambda>()
|
| D | SandboxedPdfLoaderTest.kt | 131 assertThat(document1.getPageInfo(2).height).isEqualTo(doc1Page3Info.height) in <lambda>()
|
| /pdf/integration-tests/testapp/src/main/kotlin/androidx/pdf/testapp/util/ |
| D | PdfPageAdapter.kt | 65 pdfRendererPage?.height ?: 0 in getHeight() 67 checkAndExecute { pdfRendererPreVPage?.height ?: 0 } in getHeight()
|
| /pdf/pdf-viewer/src/main/kotlin/androidx/pdf/view/search/ |
| D | PdfSearchView.kt | 80 val height = maxOf(0, MeasureSpec.getSize(heightMeasureSpec) - paddingTop - paddingBottom) in <lambda>() constant 84 MeasureSpec.makeMeasureSpec(height, MeasureSpec.getMode(heightMeasureSpec)), in <lambda>()
|
| /pdf/pdf-document-service/src/main/kotlin/androidx/pdf/service/ |
| D | PdfDocumentRemoteImpl.kt | 63 return withPage(pageNum) { page -> Dimensions(page.width, page.height) } in <lambda>() 66 override fun getPageBitmap(pageNum: Int, width: Int, height: Int): Bitmap { in <lambda>() 67 val output = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888) in <lambda>()
|
| /pdf/pdf-viewer/src/main/kotlin/androidx/pdf/view/ |
| D | PageLayoutManager.kt | 190 fun onViewportChanged(scrollY: Int, height: Int, zoom: Float) { in onViewportChanged() 192 val contentBottom = ceil((height + scrollY) / zoom).toInt() in onViewportChanged() 238 val size = Point(pageMetadata.width, pageMetadata.height) in loadPageDimensions() 241 _dimensions.emit(pageNum to Point(pageMetadata.width, pageMetadata.height)) in loadPageDimensions()
|
| D | ToolBoxView.kt | 148 val height = maxOf(0, MeasureSpec.getSize(heightMeasureSpec) - paddingTop - paddingBottom) in onMeasure() constant 152 MeasureSpec.makeMeasureSpec(height, MeasureSpec.getMode(heightMeasureSpec)), in onMeasure()
|
| D | PdfView.kt | 303 viewHeight = height, in <lambda>() 425 val y = round((pageRect.top + pageRect.height() / 2f) * zoom - (viewportHeight / 2f)) in <lambda>() 501 viewHeight = height, in <lambda>() 751 return if (contentHeightPx < height) { in <lambda>() 753 -(height - contentHeightPx).roundToInt() / 2 in <lambda>() 763 return if (contentHeightPx < height) { in <lambda>() 765 -(height - contentHeightPx).roundToInt() / 2 in <lambda>() 767 (contentHeightPx - height).roundToInt() in <lambda>() 806 .apply { onViewportChanged(scrollY, height, zoom) } in <lambda>() 957 val maxBitmapDimensionPx = max(context.display.width, context.display.height) in <lambda>() [all …]
|
| /pdf/pdf-viewer-fragment/src/androidTest/kotlin/androidx/pdf/viewer/document/ |
| D | FakePdfDocument.kt | 122 if (tileRegion != null) Size(tileRegion.width(), tileRegion.height()) in getBitmap() 124 val bitmap = Bitmap.createBitmap(size.width, size.height, Bitmap.Config.ARGB_8888) in getBitmap()
|
| /pdf/pdf-viewer/src/androidTest/java/androidx/pdf/widget/ |
| D | FastScrollViewIntegrationTest.kt | 123 downEvent(dragHandle.x + dragHandle.width / 2, dragHandle.y + dragHandle.height / 2) in <lambda>() 125 fastScrollView.onTouchEvent(moveEvent(dragHandle.x + dragHandle.height / 2, 0f)) in <lambda>()
|