Searched refs:viewportHeight (Results 1 - 25 of 27) sorted by relevance

12

/frameworks/base/libs/hwui/renderstate/
H A DOffscreenBufferPool.cpp37 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 DScissor.cpp70 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 DScissor.h33 void set(int viewportHeight, const Rect& clip);
H A DOffscreenBufferPool.h38 * 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 DCanvasState.cpp40 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 DBakedOpRenderer.cpp50 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 DCanvasState.h83 void initializeRecordingSaveStack(int viewportWidth, int viewportHeight);
89 void initializeSaveStack(int viewportWidth, int viewportHeight, float clipLeft, float clipTop,
H A DBakedOpRenderer.h91 uint32_t getViewportHeight() const { return mRenderTarget.viewportHeight; }
140 uint32_t viewportHeight = 0; member in struct:android::uirenderer::BakedOpRenderer::__anon1004
H A DVectorDrawable.h521 (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 DFrameBuilder.h63 FrameBuilder(const SkRect& clip, uint32_t viewportWidth, uint32_t viewportHeight,
H A DVectorDrawable.cpp590 float viewportHeight = useStagingData ? mStagingProperties.getViewportHeight() local
593 float scaleY = cacheHeight / viewportHeight;
H A DFrameBuilder.cpp35 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 DOffscreenBufferPoolTests.cpp36 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 DFrameBuilderTests.cpp1310 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 DGLFunctorDrawable.cpp44 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 DAndroidResources.java25 android.R.attr.tintMode, android.R.attr.viewportWidth, android.R.attr.viewportHeight
H A DVectorDrawableCompat.java97 * <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 DWebVttRenderer.java1357 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 DMagnificationController.java672 final float viewportHeight = mMagnificationBounds.height();
673 return viewportHeight - viewportHeight * mCurrentMagnificationSpec.scale;
/frameworks/base/graphics/java/android/graphics/drawable/
H A DVectorDrawable.java90 * <dt><code>android:viewportHeight</code></dt>
201 * android:viewportHeight=&quot;600&quot;
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 Dandroid_graphics_drawable_VectorDrawable.cpp121 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 DScrollView.java855 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 DOpenGLPipeline.cpp202 return layer->viewportWidth == (uint32_t)width && layer->viewportHeight == (uint32_t)height;
/frameworks/support/compat/src/main/java/androidx/core/widget/
H A DNestedScrollView.java2039 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 DVectorDrawable_Delegate.java116 float viewportHeight) {
119 nativePathRenderer.mViewportHeight = viewportHeight;
115 nSetRendererViewportSize(long rendererPtr, float viewportWidth, float viewportHeight) argument

Completed in 730 milliseconds

12