Home
last modified time | relevance | path

Searched refs:height (Results 1 – 25 of 50) sorted by relevance

12

/pdf/pdf-viewer/src/test/java/androidx/pdf/util/
DMockDrawable.java39 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/
DPdfPageObjectView.kt48 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/
DFakeBitmapSource.kt32 Bitmap.createBitmap(tileRegion.width(), tileRegion.height(), Bitmap.Config.ARGB_8888) in getBitmap()
36 scaledPageSizePx.height, in getBitmap()
DPageLayoutManagerTest.kt53 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>()
DBitmapFetcherTest.kt99 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/
DPdfViewRenderingTest.kt55 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/
DDimensions.java50 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/
DSandboxedPdfDocument.kt102 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/
DPdfPageWrapperPreV.kt36 override val height = page.height constant in androidx.pdf.service.PdfPageWrapperPreV
57 height in renderTile()
DPdfPageWrapperPostV.kt38 override val height = page.height constant in androidx.pdf.service.PdfPageWrapperPostV
59 height in renderTile()
/pdf/pdf-viewer/src/main/java/androidx/pdf/widget/
DZoomView.java540 || 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/
DPdfPagePreVAdapter.kt46 override val height = page.height constant in androidx.pdf.adapter.PdfPagePreVAdapter
67 height in renderTile()
DPdfPageAdapter.kt46 override val height = page.height constant in androidx.pdf.adapter.PdfPageAdapter
67 height in renderTile()
DPdfPage.kt40 public val height: Int constant
/pdf/pdf-viewer-fragment/src/main/java/androidx/pdf/viewer/fragment/insets/
DTranslateInsetsAnimationCallback.kt77 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/
DSandboxedPdfDocumentTest.kt56 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>()
DSandboxedPdfLoaderTest.kt131 assertThat(document1.getPageInfo(2).height).isEqualTo(doc1Page3Info.height) in <lambda>()
/pdf/integration-tests/testapp/src/main/kotlin/androidx/pdf/testapp/util/
DPdfPageAdapter.kt65 pdfRendererPage?.height ?: 0 in getHeight()
67 checkAndExecute { pdfRendererPreVPage?.height ?: 0 } in getHeight()
/pdf/pdf-viewer/src/main/kotlin/androidx/pdf/view/search/
DPdfSearchView.kt80 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/
DPdfDocumentRemoteImpl.kt63 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/
DPageLayoutManager.kt190 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()
DToolBoxView.kt148 val height = maxOf(0, MeasureSpec.getSize(heightMeasureSpec) - paddingTop - paddingBottom) in onMeasure() constant
152 MeasureSpec.makeMeasureSpec(height, MeasureSpec.getMode(heightMeasureSpec)), in onMeasure()
DPdfView.kt303 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/
DFakePdfDocument.kt122 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/
DFastScrollViewIntegrationTest.kt123 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>()

12