/frameworks/base/libs/hwui/renderstate/ |
H A D | OffscreenBufferPool.cpp | 37 uint32_t viewportHeight, bool wideColorGamut) 41 , viewportHeight(viewportHeight) 45 uint32_t height = computeIdealDimension(viewportHeight); 58 return Rect(0, viewportHeight * texY, viewportWidth * texX, 0); 62 dirtyArea.doIntersect(0, 0, viewportWidth, viewportHeight); 88 const float v1 = (viewportHeight - r->top) * texY; 90 const float v2 = (viewportHeight - r->bottom) * texY; 158 layer->viewportHeight = height; 175 layer->viewportHeight 36 OffscreenBuffer(RenderState& renderState, Caches& caches, uint32_t viewportWidth, uint32_t viewportHeight, bool wideColorGamut) argument [all...] |
H A D | Scissor.cpp | 70 void Scissor::set(int viewportHeight, const Rect& clip) { argument 73 GLint y = std::max(0, viewportHeight - (int)clip.bottom); 75 GLint height = std::max(0, (viewportHeight - (int)clip.top) - y);
|
H A D | Scissor.h | 33 void set(int viewportHeight, const Rect& clip);
|
H A D | OffscreenBufferPool.h | 38 * Has two distinct sizes - viewportWidth/viewportHeight describe content area, 46 uint32_t viewportHeight, bool wideColorGamut = false); 68 uint32_t viewportHeight; member in class:android::uirenderer::OffscreenBuffer
|
/frameworks/base/libs/hwui/ |
H A D | CanvasState.cpp | 40 void CanvasState::initializeRecordingSaveStack(int viewportWidth, int viewportHeight) { argument 41 if (mWidth != viewportWidth || mHeight != viewportHeight) { 43 mHeight = viewportHeight; 44 mFirstSnapshot.initializeViewport(viewportWidth, viewportHeight); 54 void CanvasState::initializeSaveStack(int viewportWidth, int viewportHeight, float clipLeft, argument 57 if (mWidth != viewportWidth || mHeight != viewportHeight) { 59 mHeight = viewportHeight; 60 mFirstSnapshot.initializeViewport(viewportWidth, viewportHeight);
|
H A D | BakedOpRenderer.cpp | 50 offscreenBuffer->viewportHeight)) { 77 setViewport(offscreenBuffer->viewportWidth, offscreenBuffer->viewportHeight); 112 mRenderTarget.viewportHeight - area.bottom, width, height); 132 Rect viewportRect(mRenderTarget.viewportWidth, mRenderTarget.viewportHeight); 163 mRenderTarget.viewportHeight = height; 171 if (rect.contains(Rect(mRenderTarget.viewportWidth, mRenderTarget.viewportHeight))) { 177 mRenderState.scissor().set(rect.left, mRenderTarget.viewportHeight - rect.bottom, 294 mRenderState.scissor().set(mRenderTarget.viewportHeight, clip->rect); 369 info.height = mRenderTarget.viewportHeight;
|
H A D | CanvasState.h | 83 void initializeRecordingSaveStack(int viewportWidth, int viewportHeight); 89 void initializeSaveStack(int viewportWidth, int viewportHeight, float clipLeft, float clipTop,
|
H A D | BakedOpRenderer.h | 91 uint32_t getViewportHeight() const { return mRenderTarget.viewportHeight; } 140 uint32_t viewportHeight = 0; member in struct:android::uirenderer::BakedOpRenderer::__anon1004
|
H A D | VectorDrawable.h | 521 (mProperties.mNonAnimatableProperties.viewportHeight != 522 mStagingProperties.mNonAnimatableProperties.viewportHeight) || 549 float viewportHeight = 0; member in struct:android::uirenderer::VectorDrawable::Tree::TreeProperties::NonAnimatableProperties 572 mNonAnimatableProperties.viewportHeight != height) { 575 mNonAnimatableProperties.viewportHeight = height; 610 float getViewportHeight() const { return mNonAnimatableProperties.viewportHeight; }
|
H A D | FrameBuilder.h | 63 FrameBuilder(const SkRect& clip, uint32_t viewportWidth, uint32_t viewportHeight,
|
H A D | VectorDrawable.cpp | 590 float viewportHeight = useStagingData ? mStagingProperties.getViewportHeight() local 593 float scaleY = cacheHeight / viewportHeight;
|
H A D | FrameBuilder.cpp | 35 FrameBuilder::FrameBuilder(const SkRect& clip, uint32_t viewportWidth, uint32_t viewportHeight, argument 45 auto fbo0 = mAllocator.create<LayerBuilder>(viewportWidth, viewportHeight, Rect(clip)); 48 mCanvasState.initializeSaveStack(viewportWidth, viewportHeight, clip.fLeft, clip.fTop, 87 layerDamage.doIntersect(0, 0, layer->viewportWidth, layer->viewportHeight);
|
/frameworks/base/libs/hwui/tests/unit/ |
H A D | OffscreenBufferPoolTests.cpp | 36 EXPECT_EQ(149u, layer.viewportHeight); 47 EXPECT_EQ(149u, layer.viewportHeight); 84 EXPECT_EQ(200u, layer->viewportHeight); 107 EXPECT_EQ(200u, layer->viewportHeight); 153 EXPECT_EQ(55u, layer->viewportHeight); 167 EXPECT_EQ(125u, layer2->viewportHeight); 186 EXPECT_EQ(55u, layer->viewportHeight); 205 EXPECT_EQ(125u, layer2->viewportHeight);
|
H A D | FrameBuilderTests.cpp | 1310 EXPECT_EQ(100u, offscreenBuffer->viewportHeight); 1382 EXPECT_EQ(100u, offscreenBuffer->viewportHeight); 1386 EXPECT_EQ(200u, offscreenBuffer->viewportHeight); 1415 EXPECT_EQ(100u, layer->viewportHeight); 1420 EXPECT_EQ(200u, layer->viewportHeight); 1482 EXPECT_EQ(100u, offscreenBuffer->viewportHeight);
|
/frameworks/base/libs/hwui/pipeline/skia/ |
H A D | GLFunctorDrawable.cpp | 44 static void setScissor(int viewportHeight, const SkIRect& clip) { argument 47 GLint y = viewportHeight - clip.fBottom; 48 GLint height = (viewportHeight - clip.fTop) - y;
|
/frameworks/support/graphics/drawable/static/src/main/java/androidx/vectordrawable/graphics/drawable/ |
H A D | AndroidResources.java | 25 android.R.attr.tintMode, android.R.attr.viewportWidth, android.R.attr.viewportHeight
|
H A D | VectorDrawableCompat.java | 97 * <dt><code>android:viewportHeight</code></dt> 537 float viewportHeight = mVectorState.mVPathRenderer.mViewportHeight; 539 float scaleY = viewportHeight / intrinsicHeight; 686 pathRenderer.mViewportHeight = TypedArrayUtils.getNamedFloat(a, parser, "viewportHeight", 695 "<vector> tag requires viewportHeight > 0");
|
/frameworks/base/media/java/android/media/ |
H A D | WebVttRenderer.java | 1357 final int viewportHeight = b - t; 1360 mManager.getFontScale() * LINE_HEIGHT_RATIO * viewportHeight); 1365 layoutRegion(viewportWidth, viewportHeight, regionBox); 1371 layoutCue(viewportWidth, viewportHeight, cueBox); 1380 int viewportWidth, int viewportHeight, 1390 final int top = (int) (y * (viewportHeight - regionHeight) / 100); 1399 int viewportWidth, int viewportHeight, CueLayout cueBox) { 1455 top = viewportHeight + yPosition * height; 1457 top = yPosition * (viewportHeight - height) / 100; 1379 layoutRegion( int viewportWidth, int viewportHeight, RegionLayout regionBox) argument 1398 layoutCue( int viewportWidth, int viewportHeight, CueLayout cueBox) argument
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
H A D | MagnificationController.java | 672 final float viewportHeight = mMagnificationBounds.height(); 673 return viewportHeight - viewportHeight * mCurrentMagnificationSpec.scale;
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | VectorDrawable.java | 90 * <dt><code>android:viewportHeight</code></dt> 201 * android:viewportHeight="600" 651 float viewportHeight = mVectorState.mViewportHeight; 653 float scaleY = viewportHeight / intrinsicHeight; 751 float viewportHeight = a.getFloat( 753 state.setViewportSize(viewportWidth, viewportHeight); 760 "<vector> tag requires viewportHeight > 0"); 1082 void setViewportSize(float viewportWidth, float viewportHeight) { argument 1084 mViewportHeight = viewportHeight; 1085 nSetRendererViewportSize(getNativeRenderer(), viewportWidth, viewportHeight); 2272 nSetRendererViewportSize(long rendererPtr, float viewportWidth, float viewportHeight) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_graphics_drawable_VectorDrawable.cpp | 121 jfloat viewportWidth, jfloat viewportHeight) { 123 tree->mutateStagingProperties()->setViewportSize(viewportWidth, viewportHeight); 120 setTreeViewportSize(JNIEnv*, jobject, jlong treePtr, jfloat viewportWidth, jfloat viewportHeight) argument
|
/frameworks/base/core/java/android/widget/ |
H A D | ScrollView.java | 855 final int viewportHeight = getHeight() - mPaddingBottom - mPaddingTop; 856 final int targetScrollY = Math.min(mScrollY + viewportHeight, getScrollRange()); 864 final int viewportHeight = getHeight() - mPaddingBottom - mPaddingTop; 865 final int targetScrollY = Math.max(mScrollY - viewportHeight, 0);
|
/frameworks/base/libs/hwui/renderthread/ |
H A D | OpenGLPipeline.cpp | 202 return layer->viewportWidth == (uint32_t)width && layer->viewportHeight == (uint32_t)height;
|
/frameworks/support/compat/src/main/java/androidx/core/widget/ |
H A D | NestedScrollView.java | 2039 final int viewportHeight = nsvHost.getHeight() - nsvHost.getPaddingBottom() 2041 final int targetScrollY = Math.min(nsvHost.getScrollY() + viewportHeight, 2050 final int viewportHeight = nsvHost.getHeight() - nsvHost.getPaddingBottom() 2052 final int targetScrollY = Math.max(nsvHost.getScrollY() - viewportHeight, 0);
|
/frameworks/layoutlib/bridge/src/android/graphics/drawable/ |
H A D | VectorDrawable_Delegate.java | 116 float viewportHeight) { 119 nativePathRenderer.mViewportHeight = viewportHeight; 115 nSetRendererViewportSize(long rendererPtr, float viewportWidth, float viewportHeight) argument
|