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

/frameworks/base/libs/hwui/
H A DCanvasState.cpp47 void CanvasState::initializeRecordingSaveStack(int viewportWidth, int viewportHeight) { argument
48 if (mWidth != viewportWidth || mHeight != viewportHeight) {
49 mWidth = viewportWidth;
51 mFirstSnapshot.initializeViewport(viewportWidth, viewportHeight);
62 int viewportWidth, int viewportHeight,
65 if (mWidth != viewportWidth || mHeight != viewportHeight) {
66 mWidth = viewportWidth;
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 DLayerRenderer.h53 virtual void prepareDirty(int viewportWidth, int viewportHeight,
H A DBakedOpRenderer.cpp49 offscreenBuffer->viewportWidth, offscreenBuffer->viewportHeight)) {
78 setViewport(offscreenBuffer->viewportWidth, offscreenBuffer->viewportHeight);
132 Rect viewportRect(mRenderTarget.viewportWidth, mRenderTarget.viewportHeight);
162 mRenderTarget.viewportWidth = width;
171 if (rect.contains(Rect(mRenderTarget.viewportWidth, mRenderTarget.viewportHeight))) {
365 info.width = mRenderTarget.viewportWidth;
H A DBakedOpRenderer.h94 uint32_t getViewportWidth() const { return mRenderTarget.viewportWidth; }
140 uint32_t viewportWidth = 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.h583 float viewportWidth = 0; member in struct:android::uirenderer::VectorDrawable::Tree::TreeProperties::NonAnimatableProperties
608 if (mNonAnimatableProperties.viewportWidth != width
611 mNonAnimatableProperties.viewportWidth = width;
644 return mNonAnimatableProperties.viewportWidth;
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.cpp553 float viewportWidth = useStagingData ? local
557 float scaleX = outCache->width() / viewportWidth;
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
H A DOpenGLRenderer.cpp118 void OpenGLRenderer::setupFrameState(int viewportWidth, int viewportHeight, argument
121 mState.initializeSaveStack(viewportWidth, viewportHeight,
143 void OpenGLRenderer::prepareDirty(int viewportWidth, int viewportHeight, argument
146 setupFrameState(viewportWidth, viewportHeight, left, top, right, bottom, opaque);
H A DRenderNode.cpp294 return layer->viewportWidth == (uint32_t) width && layer->viewportHeight == (uint32_t)height;
/frameworks/base/libs/hwui/renderstate/
H A DOffscreenBufferPool.cpp37 uint32_t viewportWidth, uint32_t viewportHeight)
40 , viewportWidth(viewportWidth)
43 uint32_t width = computeIdealDimension(viewportWidth);
56 return Rect(0, viewportHeight * texY, viewportWidth * texX, 0);
60 dirtyArea.doIntersect(0, 0, viewportWidth, viewportHeight);
152 layer->viewportWidth = width;
168 layer->viewportWidth = width;
36 OffscreenBuffer(RenderState& renderState, Caches& caches, uint32_t viewportWidth, uint32_t viewportHeight) argument
H A DOffscreenBufferPool.h38 * Has two distinct sizes - viewportWidth/viewportHeight describe content area,
46 uint32_t viewportWidth, uint32_t viewportHeight);
67 uint32_t viewportWidth; member in class:android::uirenderer::OffscreenBuffer
/frameworks/base/libs/hwui/tests/unit/
H A DOffscreenBufferPoolTests.cpp35 EXPECT_EQ(49u, layer.viewportWidth);
72 EXPECT_EQ(100u, layer->viewportWidth);
100 EXPECT_EQ(60u, layer->viewportWidth);
114 EXPECT_EQ(120u, layer2->viewportWidth);
H A DFrameBuilderTests.cpp1236 EXPECT_EQ(100u, offscreenBuffer->viewportWidth);
1312 EXPECT_EQ(100u, offscreenBuffer->viewportWidth);
1316 EXPECT_EQ(200u, offscreenBuffer->viewportWidth);
1341 EXPECT_EQ(100u, layer->viewportWidth);
1346 EXPECT_EQ(200u, layer->viewportWidth);
1409 EXPECT_EQ(100u, offscreenBuffer->viewportWidth);
/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
H A DVectorDrawableCompat.java381 float viewportWidth = mVectorState.mVPathRenderer.mViewportWidth;
383 float scaleX = viewportWidth / intrinsicWidth;
526 pathRenderer.mViewportWidth = TypedArrayUtils.getNamedFloat(a, parser, "viewportWidth",
536 "<vector> tag requires viewportWidth > 0");
/frameworks/base/media/java/android/media/
H A DWebVttRenderer.java1356 final int viewportWidth = r - l;
1365 layoutRegion(viewportWidth, viewportHeight, regionBox);
1371 layoutCue(viewportWidth, viewportHeight, cueBox);
1380 int viewportWidth, int viewportHeight,
1389 final int left = (int) (x * (viewportWidth - regionWidth) / 100);
1399 int viewportWidth, int viewportHeight, CueLayout cueBox) {
1405 int size = 100 * cueBox.getMeasuredWidth() / viewportWidth;
1431 final int paddingLeft = 100 * getPaddingLeft() / viewportWidth;
1432 final int paddingRight = 100 * getPaddingRight() / viewportWidth;
1444 final int left = xPosition * viewportWidth / 10
1379 layoutRegion( int viewportWidth, int viewportHeight, RegionLayout regionBox) argument
1398 layoutCue( int viewportWidth, int viewportHeight, CueLayout cueBox) argument
[all...]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DMagnificationController.java620 final float viewportWidth = mMagnificationBounds.width();
621 return viewportWidth - viewportWidth * mCurrentMagnificationSpec.scale;
/frameworks/base/graphics/java/android/graphics/drawable/
H A DVectorDrawable.java82 * <dt><code>android:viewportWidth</code></dt>
189 * android:viewportWidth=&quot;600&quot; &gt;
534 float viewportWidth = mVectorState.mViewportWidth;
536 float scaleX = viewportWidth / intrinsicWidth;
627 float viewportWidth = a.getFloat(
631 state.setViewportSize(viewportWidth, viewportHeight);
635 "<vector> tag requires viewportWidth > 0");
917 void setViewportSize(float viewportWidth, float viewportHeight) { argument
918 mViewportWidth = viewportWidth;
920 nSetRendererViewportSize(getNativeRenderer(), viewportWidth, viewportHeigh
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 DHorizontalScrollView.java792 final int viewportWidth = getWidth() - mPaddingLeft - mPaddingRight;
793 final int targetScrollX = Math.min(mScrollX + viewportWidth, getScrollRange());
804 final int viewportWidth = getWidth() - mPaddingLeft - mPaddingRight;
805 final int targetScrollX = Math.max(0, mScrollX - viewportWidth);
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/drawable/
H A DVectorDrawable_Delegate.java99 static void nSetRendererViewportSize(long rendererPtr, float viewportWidth, argument
102 nativePathRenderer.mViewportWidth = viewportWidth;

Completed in 391 milliseconds