Home
last modified time | relevance | path

Searched refs:aspectRatio (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
DIllustration.java52 private float aspectRatio = 0.0f; field in Illustration
76 aspectRatio = a.getFloat(R.styleable.SuwIllustration_suwAspectRatio, 0.0f); in init()
122 public void setAspectRatio(float aspectRatio) { in setAspectRatio() argument
123 this.aspectRatio = aspectRatio; in setAspectRatio()
136 if (aspectRatio != 0.0f) { in onMeasure()
138 int illustrationHeight = (int) (parentWidth / aspectRatio); in onMeasure()
158 if (aspectRatio != 0f) { in onLayout()
DIllustrationVideoView.java306 float aspectRatio = 0.0f; in onPrepared() local
308 aspectRatio = (float) mp.getVideoHeight() / mp.getVideoWidth(); in onPrepared()
312 if (Float.compare(mAspectRatio, aspectRatio) != 0) { in onPrepared()
313 mAspectRatio = aspectRatio; in onPrepared()
/frameworks/base/core/java/android/app/
DPictureInPictureArgs.java56 public Builder setAspectRatio(Rational aspectRatio) { in setAspectRatio() argument
57 mAspectRatio = aspectRatio; in setAspectRatio()
149 public PictureInPictureArgs(float aspectRatio, List<RemoteAction> actions) { in PictureInPictureArgs() argument
150 setAspectRatio(aspectRatio); in PictureInPictureArgs()
167 private PictureInPictureArgs(Rational aspectRatio, List<RemoteAction> actions, in PictureInPictureArgs() argument
169 mAspectRatio = aspectRatio; in PictureInPictureArgs()
179 public void setAspectRatio(float aspectRatio) { in setAspectRatio() argument
181 mAspectRatio = new Rational((int) (aspectRatio * 1000000000), 1000000000); in setAspectRatio()
DPictureInPictureParams.java58 public Builder setAspectRatio(Rational aspectRatio) { in setAspectRatio() argument
59 mAspectRatio = aspectRatio; in setAspectRatio()
158 PictureInPictureParams(Rational aspectRatio, List<RemoteAction> actions, in PictureInPictureParams() argument
160 mAspectRatio = aspectRatio; in PictureInPictureParams()
/frameworks/opt/gamesdk/samples/bouncyball/app/src/main/cpp/
DCircle.cpp148 std::array<GLfloat, 16> getMvpMatrix(GLfloat aspectRatio, GLfloat x, GLfloat y) { in getMvpMatrix() argument
150 mvpMatrix[0] = 1.0f / aspectRatio; in getMvpMatrix()
163 void Circle::draw(float aspectRatio, const std::vector<Circle> &circles, int workload) { in draw() argument
185 auto mvpMatrix = getMvpMatrix(aspectRatio, circle.x, circle.y); in draw()
DCircle.h42 static void draw(float aspectRatio, const std::vector<Circle> &circles, int workload);
DRenderer.cpp241 const float aspectRatio = static_cast<float>(threadState->width) / threadState->height; in draw() local
246 Circle::draw(aspectRatio, circles, mWorkload); in draw()
/frameworks/opt/gamesdk/samples/tuningfork/tftestapp/app/src/main/cpp/
DScene.cpp162 …GLfloat, 16>& mvpMatrix, std::array<GLfloat, 9>& normalMatrix, GLfloat aspectRatio, Vector3 pos, Q… in getMatrices() argument
191 mvpMatrix[0] *= 1.0f / aspectRatio; in getMatrices()
192 mvpMatrix[4] *= 1.0f / aspectRatio; in getMatrices()
193 mvpMatrix[8] *= 1.0f / aspectRatio; in getMatrices()
258 void Sphere::draw(float aspectRatio, const std::vector<Sphere> &spheres, int n_to_draw, int workloa… in draw() argument
298 getMatrices(mvpMatrix, normalMatrix, aspectRatio, sphere.pos, sphere.rot); in draw()
328 void Scene::draw(float aspectRatio, int workload) { in draw() argument
330 Sphere::draw(aspectRatio, spheres, nSpheres, workload); in draw()
DScene.h74 …static void draw(float aspectRatio, const std::vector<Sphere> &spheres, int nSpheres, int workload…
94 void draw(float aspectRatio, int workload);
DRenderer.cpp255 const float aspectRatio = static_cast<float>(state->width) / state->height; in draw() local
257 state->scene.draw(aspectRatio, mTesselation); in draw()
/frameworks/base/core/java/com/android/internal/policy/
DPipSnapAlgorithm.java342 public Size getSizeForAspectRatio(float aspectRatio, float minEdgeSize, int displayWidth, in getSizeForAspectRatio() argument
349 if (aspectRatio <= mMinAspectRatioForMinSize || aspectRatio > mMaxAspectRatioForMinSize) { in getSizeForAspectRatio()
351 if (aspectRatio <= 1) { in getSizeForAspectRatio()
354 height = Math.round(width / aspectRatio); in getSizeForAspectRatio()
358 width = Math.round(height * aspectRatio); in getSizeForAspectRatio()
366 (aspectRatio * aspectRatio + 1))); in getSizeForAspectRatio()
367 width = Math.round(height * aspectRatio); in getSizeForAspectRatio()
/frameworks/base/services/core/java/com/android/server/wm/
DPinnedStackController.java235 public boolean isValidPictureInPictureAspectRatio(float aspectRatio) { in isValidPictureInPictureAspectRatio() argument
236 return Float.compare(mMinAspectRatio, aspectRatio) <= 0 && in isValidPictureInPictureAspectRatio()
237 Float.compare(aspectRatio, mMaxAspectRatio) <= 0; in isValidPictureInPictureAspectRatio()
244 Rect transformBoundsToAspectRatio(Rect stackBounds, float aspectRatio, in transformBoundsToAspectRatio() argument
251 final Size size = mSnapAlgorithm.getSizeForAspectRatio(aspectRatio, minEdgeSize, in transformBoundsToAspectRatio()
406 void setAspectRatio(float aspectRatio) { in setAspectRatio() argument
407 if (Float.compare(mAspectRatio, aspectRatio) != 0) { in setAspectRatio()
408 mAspectRatio = aspectRatio; in setAspectRatio()
DTaskStack.java1669 Rect getPictureInPictureBounds(float aspectRatio, Rect stackBounds) { in getPictureInPictureBounds() argument
1690 if (pinnedStackController.isValidPictureInPictureAspectRatio(aspectRatio)) { in getPictureInPictureBounds()
1691 return pinnedStackController.transformBoundsToAspectRatio(stackBounds, aspectRatio, in getPictureInPictureBounds()
1765 void setPictureInPictureAspectRatio(float aspectRatio) { in setPictureInPictureAspectRatio() argument
1777 if (Float.compare(aspectRatio, pinnedStackController.getAspectRatio()) == 0) { in setPictureInPictureAspectRatio()
1782 getPictureInPictureBounds(aspectRatio, mTmpToBounds); in setPictureInPictureAspectRatio()
1788 pinnedStackController.isValidPictureInPictureAspectRatio(aspectRatio) in setPictureInPictureAspectRatio()
1789 ? aspectRatio : -1f); in setPictureInPictureAspectRatio()
DRootActivityContainer.java996 void moveActivityToPinnedStack(ActivityRecord r, Rect sourceHintBounds, float aspectRatio, in moveActivityToPinnedStack() argument
1015 final Rect destBounds = stack.getDefaultPictureInPictureBounds(aspectRatio); in moveActivityToPinnedStack()
DActivityStack.java5635 Rect getDefaultPictureInPictureBounds(float aspectRatio) { in getDefaultPictureInPictureBounds() argument
5637 return getTaskStack().getPictureInPictureBounds(aspectRatio, null /* currentStackBounds */); in getDefaultPictureInPictureBounds()
5674 void setPictureInPictureAspectRatio(float aspectRatio) { in setPictureInPictureAspectRatio() argument
5676 getTaskStack().setPictureInPictureAspectRatio(aspectRatio); in setPictureInPictureAspectRatio()
DActivityRecord.java2803 final float aspectRatio = (0.5f + Math.max(appWidth, appHeight)) in inSizeCompatMode() local
2805 if (aspectRatio >= info.maxAspectRatio) { in inSizeCompatMode()
DActivityTaskManagerService.java4132 final float aspectRatio = r.pictureInPictureArgs.getAspectRatio(); in enterPictureInPictureMode()
4138 r, sourceBounds, aspectRatio, "enterPictureInPictureMode"); in enterPictureInPictureMode()
4140 stack.setPictureInPictureAspectRatio(aspectRatio); in enterPictureInPictureMode()
DDisplayContent.java1582 final float aspectRatio = Math.max(w, h) / (float) Math.min(w, h); in isNonDecorDisplayCloseToSquare() local
1583 return aspectRatio <= mCloseToSquareMaxAspectRatio; in isNonDecorDisplayCloseToSquare()
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/view/
DIllustrationVideoViewTest.java134 final float aspectRatio = (float) view.getMeasuredHeight() / view.getMeasuredWidth(); in prepareVideo_shouldSetAspectRatio() local
135 assertThat(aspectRatio).isWithin(0.001f).of(1280f / 720f); in prepareVideo_shouldSetAspectRatio()
148 final float aspectRatio = (float) view.getHeight() / view.getWidth(); in prepareVideo_zeroHeight_shouldSetAspectRatioToZero() local
149 assertThat(aspectRatio).isEqualTo(0.0f); in prepareVideo_zeroHeight_shouldSetAspectRatioToZero()
/frameworks/base/core/java/android/gesture/
DGestureUtils.java108 float aspectRatio = gestureWidth / gestureHeight; in spatialSampling()
109 if (aspectRatio > 1) { in spatialSampling()
110 aspectRatio = 1 / aspectRatio; in spatialSampling()
112 if (aspectRatio < SCALING_THRESHOLD) { in spatialSampling()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/
DSetupWizardLayout.java268 public void setIllustrationAspectRatio(float aspectRatio) { in setIllustrationAspectRatio() argument
272 illustration.setAspectRatio(aspectRatio); in setIllustrationAspectRatio()
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipTouchHandler.java277 float aspectRatio = (float) normalBounds.width() / normalBounds.height(); in onMovementBoundsChanged() local
280 Size expandedSize = mSnapAlgorithm.getSizeForAspectRatio(aspectRatio, in onMovementBoundsChanged()
/frameworks/av/services/camera/libcameraservice/api2/
DDepthCompositeStream.cpp737 float aspectRatio = static_cast<float> (width) / static_cast<float> (height); in getMatchingDepthSize() local
750 if ((fabs(aspectRatio - currentRatio) <= arTol) && (currentSize > oldSize)) { in getMatchingDepthSize()
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
DWallpaperCropActivity.java210 float aspectRatio = width / (float) height; in wallpaperTravelToScreenWidthRatio() local
231 return x * aspectRatio + y; in wallpaperTravelToScreenWidthRatio()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityTestsBase.java888 Rect getDefaultPictureInPictureBounds(float aspectRatio) { in build()

12