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

12

/frameworks/base/libs/hwui/renderstate/
H A DOffscreenBufferPool.cpp37 uint32_t viewportWidth, uint32_t viewportHeight)
41 , viewportHeight(viewportHeight)
44 uint32_t height = computeIdealDimension(viewportHeight);
56 return Rect(0, viewportHeight * texY, viewportWidth * texX, 0);
60 dirtyArea.doIntersect(0, 0, viewportWidth, viewportHeight);
85 const float v1 = (viewportHeight - r->top) * texY;
87 const float v2 = (viewportHeight - r->bottom) * texY;
153 layer->viewportHeight = height;
169 layer->viewportHeight
36 OffscreenBuffer(RenderState& renderState, Caches& caches, uint32_t viewportWidth, uint32_t viewportHeight) argument
[all...]
H A DScissor.cpp76 void Scissor::set(int viewportHeight, const Rect& clip) { argument
79 GLint y = std::max(0, viewportHeight - (int)clip.bottom);
81 GLint height = std::max(0, (viewportHeight - (int)clip.top) - y);
H A DScissor.h32 void set(int viewportHeight, const Rect& clip);
H A DOffscreenBufferPool.h38 * Has two distinct sizes - viewportWidth/viewportHeight describe content area,
46 uint32_t viewportWidth, uint32_t viewportHeight);
68 uint32_t viewportHeight; member in class:android::uirenderer::OffscreenBuffer
/frameworks/base/libs/hwui/
H A DCanvasState.cpp47 void CanvasState::initializeRecordingSaveStack(int viewportWidth, int viewportHeight) { argument
48 if (mWidth != viewportWidth || mHeight != viewportHeight) {
50 mHeight = viewportHeight;
51 mFirstSnapshot.initializeViewport(viewportWidth, viewportHeight);
62 int viewportWidth, int viewportHeight,
65 if (mWidth != viewportWidth || mHeight != viewportHeight) {
67 mHeight = viewportHeight;
68 mFirstSnapshot.initializeViewport(viewportWidth, viewportHeight);
61 initializeSaveStack( int viewportWidth, int viewportHeight, float clipLeft, float clipTop, float clipRight, float clipBottom, const Vector3& lightCenter) argument
H A DBakedOpRenderer.cpp49 offscreenBuffer->viewportWidth, offscreenBuffer->viewportHeight)) {
78 setViewport(offscreenBuffer->viewportWidth, offscreenBuffer->viewportHeight);
112 area.left, 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,
298 mRenderState.scissor().set(mRenderTarget.viewportHeight, clip->rect);
366 info.height = mRenderTarget.viewportHeight;
H A DLayerRenderer.h53 virtual void prepareDirty(int viewportWidth, int viewportHeight,
H A DBakedOpRenderer.h95 uint32_t getViewportHeight() const { return mRenderTarget.viewportHeight; }
141 uint32_t viewportHeight = 0; member in struct:android::uirenderer::BakedOpRenderer::__anon1050
H A DCanvasState.h83 void initializeRecordingSaveStack(int viewportWidth, int viewportHeight);
89 void initializeSaveStack(int viewportWidth, int viewportHeight,
H A DVectorDrawable.h584 float viewportHeight = 0; member in struct:android::uirenderer::VectorDrawable::Tree::TreeProperties::NonAnimatableProperties
609 || mNonAnimatableProperties.viewportHeight != height) {
612 mNonAnimatableProperties.viewportHeight = height;
647 return mNonAnimatableProperties.viewportHeight;
H A DLayerRenderer.cpp46 void LayerRenderer::prepareDirty(int viewportWidth, int viewportHeight, argument
67 OpenGLRenderer::prepareDirty(viewportWidth, viewportHeight,
H A DFrameBuilder.h64 uint32_t viewportWidth, uint32_t viewportHeight,
H A DOpenGLRenderer.h137 virtual void prepareDirty(int viewportWidth, int viewportHeight,
358 void setupFrameState(int viewportWidth, int viewportHeight,
H A DVectorDrawable.cpp555 float viewportHeight = useStagingData ? local
558 float scaleY = outCache->height() / viewportHeight;
H A DFrameBuilder.cpp35 uint32_t viewportWidth, uint32_t viewportHeight,
46 auto fbo0 = mAllocator.create<LayerBuilder>(viewportWidth, viewportHeight, Rect(clip));
49 mCanvasState.initializeSaveStack(viewportWidth, viewportHeight,
91 layerDamage.doIntersect(0, 0, layer->viewportWidth, layer->viewportHeight);
34 FrameBuilder(const SkRect& clip, uint32_t viewportWidth, uint32_t viewportHeight, const LightGeometry& lightGeometry, Caches& caches) argument
/frameworks/base/libs/hwui/tests/unit/
H A DOffscreenBufferPoolTests.cpp36 EXPECT_EQ(149u, layer.viewportHeight);
73 EXPECT_EQ(200u, layer->viewportHeight);
101 EXPECT_EQ(55u, layer->viewportHeight);
115 EXPECT_EQ(125u, layer2->viewportHeight);
H A DFrameBuilderTests.cpp1237 EXPECT_EQ(100u, offscreenBuffer->viewportHeight);
1313 EXPECT_EQ(100u, offscreenBuffer->viewportHeight);
1317 EXPECT_EQ(200u, offscreenBuffer->viewportHeight);
1342 EXPECT_EQ(100u, layer->viewportHeight);
1347 EXPECT_EQ(200u, layer->viewportHeight);
1410 EXPECT_EQ(100u, offscreenBuffer->viewportHeight);
/frameworks/support/graphics/drawable/static/src/android/support/graphics/drawable/
H A DAndroidResources.java23 android.R.attr.tintMode, android.R.attr.viewportWidth, android.R.attr.viewportHeight
/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.java625 final float viewportHeight = mMagnificationBounds.height();
626 return viewportHeight - viewportHeight * mCurrentMagnificationSpec.scale;
/frameworks/base/graphics/java/android/graphics/drawable/
H A DVectorDrawable.java85 * <dt><code>android:viewportHeight</code></dt>
188 * android:viewportHeight=&quot;600&quot;
535 float viewportHeight = mVectorState.mViewportHeight;
537 float scaleY = viewportHeight / intrinsicHeight;
629 float viewportHeight = a.getFloat(
631 state.setViewportSize(viewportWidth, viewportHeight);
638 "<vector> tag requires viewportHeight > 0");
917 void setViewportSize(float viewportWidth, float viewportHeight) { argument
919 mViewportHeight = viewportHeight;
920 nSetRendererViewportSize(getNativeRenderer(), viewportWidth, viewportHeight);
1796 nSetRendererViewportSize(long rendererPtr, float viewportWidth, float viewportHeight) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_graphics_drawable_VectorDrawable.cpp116 jfloat viewportWidth, jfloat viewportHeight) {
118 tree->mutateStagingProperties()->setViewportSize(viewportWidth, viewportHeight);
115 setTreeViewportSize(JNIEnv*, jobject, jlong treePtr, jfloat viewportWidth, jfloat viewportHeight) argument
/frameworks/base/core/java/android/widget/
H A DScrollView.java840 final int viewportHeight = getHeight() - mPaddingBottom - mPaddingTop;
841 final int targetScrollY = Math.min(mScrollY + viewportHeight, getScrollRange());
849 final int viewportHeight = getHeight() - mPaddingBottom - mPaddingTop;
850 final int targetScrollY = Math.max(mScrollY - viewportHeight, 0);
/frameworks/support/v4/java/android/support/v4/widget/
H A DNestedScrollView.java1893 final int viewportHeight = nsvHost.getHeight() - nsvHost.getPaddingBottom()
1895 final int targetScrollY = Math.min(nsvHost.getScrollY() + viewportHeight,
1904 final int viewportHeight = nsvHost.getHeight() - nsvHost.getPaddingBottom()
1906 final int targetScrollY = Math.max(nsvHost.getScrollY() - viewportHeight, 0);
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/drawable/
H A DVectorDrawable_Delegate.java100 float viewportHeight) {
103 nativePathRenderer.mViewportHeight = viewportHeight;
99 nSetRendererViewportSize(long rendererPtr, float viewportWidth, float viewportHeight) argument

Completed in 129 milliseconds

12