Home
last modified time | relevance | path

Searched refs:getRotation (Results 1 – 25 of 118) sorted by relevance

12345

/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/
H A DRotationUtils.java73 public static int getRotation(Context context) { in getRotation() method in RotationUtils
74 int rot = context.getDisplay().getRotation(); in getRotation()
90 int rot = context.getDisplay().getRotation(); in getExactRotation()
/aosp14/frameworks/base/cmds/uiautomator/instrumentation/testrunner-src/com/android/uiautomator/core/
H A DInstrumentationUiAutomatorBridge.java46 public int getRotation() { in getRotation() method in InstrumentationUiAutomatorBridge
47 return getDefaultDisplay().getRotation(); in getRotation()
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DWindowTokenTests.java175 final int originalRotation = config.windowConfiguration.getRotation(); in testFinishFixedRotationTransform()
183 assertEquals(targetRotation, tokens[0].getWindowConfiguration().getRotation()); in testFinishFixedRotationTransform()
184 assertEquals(targetRotation, tokens[1].getWindowConfiguration().getRotation()); in testFinishFixedRotationTransform()
194 assertEquals(originalRotation, tokens[0].getWindowConfiguration().getRotation()); in testFinishFixedRotationTransform()
196 assertNotEquals(originalRotation, tokens[1].getWindowConfiguration().getRotation()); in testFinishFixedRotationTransform()
200 assertEquals(originalRotation, tokens[1].getWindowConfiguration().getRotation()); in testFinishFixedRotationTransform()
H A DWindowConfigurationTests.java163 winConfig2.setRotation(winConfig1.getRotation()); in testConfigurationCompareTo()
258 assertEquals(ROTATION_UNDEFINED, config.getRotation()); in testMaskedSetTo()
264 assertEquals(other.getRotation(), config.getRotation()); in testMaskedSetTo()
H A DRecentsAnimationControllerTest.java156 mDefaultDisplay.getRotation()); in testIncludedApps_expectTargetAndVisible()
182 mDefaultDisplay.getRotation()); in testLaunchAndStartRecents_expectTargetAndVisible()
202 mDefaultDisplay.getRotation()); in testWallpaperIncluded_expectTarget()
224 mDefaultDisplay.getRotation()); in testWallpaperAnimatorCanceled_expectAnimationKeepsRunning()
407 (mDefaultDisplay.getRotation() + 1) % 4); in prepareFixedRotationLaunchingAppWithRecentsAnim()
478 final int prevRotation = mDisplayContent.getRotation(); in testCheckRotationAfterCleanup()
486 assertNotEquals(displayRotation.getRotation(), prevRotation); in testCheckRotationAfterCleanup()
520 mDefaultDisplay.getRotation()); in testWallpaperHasFixedRotationApplied()
801 (displayContent.getRotation() + 1) % 4); in startRecentsInDifferentRotation()
H A DDisplayContentTests.java1105 assertEquals(ROTATION_0, dc.getRotation()); in testNoSensorRevert()
1155 assertEquals(ROTATION_180, dc.getRotation()); in testOnDescendantOrientationRequestChanged_FrozenToUserRotation()
1542 displayContent.getRotation()); in testHybridRotationAnimation()
1761 doReturn((displayContent.getRotation() + 1) % 4).when(displayContent) in testFixedRotationWithPip()
1781 doReturn((displayContent.getRotation() + 1) % 4).when(displayContent) in testFixedRotationWithPip()
1836 displayRotation.setRotation((displayRotation.getRotation() + 1) % 4); in testRecentsNotRotatingWithFixedRotation()
1845 displayRotation.setRotation((displayRotation.getRotation() + 1) % 4); in testRecentsNotRotatingWithFixedRotation()
1902 defaultDisplayRotation.getRotation()); in testSecondaryInternalDisplayRotationFollowsDefaultDisplay()
1908 secondaryDisplayRotation.getRotation()); in testSecondaryInternalDisplayRotationFollowsDefaultDisplay()
1914 defaultDisplayRotation.getRotation()); in testSecondaryInternalDisplayRotationFollowsDefaultDisplay()
[all …]
H A DSurfaceControlTests.java152 .windowConfiguration.getRotation(); in testSurfaceChangedOnRotation()
160 .windowConfiguration.getRotation(); in testSurfaceChangedOnRotation()
/aosp14/frameworks/base/core/java/android/transition/
H A DRotate.java36 transitionValues.values.put(PROPNAME_ROTATION, transitionValues.view.getRotation()); in captureStartValues()
41 transitionValues.values.put(PROPNAME_ROTATION, transitionValues.view.getRotation()); in captureEndValues()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DQuickQSPanelController.java74 int rotation = getRotation(); in updateMediaExpansion()
86 protected int getRotation() { in getRotation() method in QuickQSPanelController
87 return RotationUtils.getRotation(getContext()); in getRotation()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/
H A DDisplayUtils.java54 int rotation = d.getRotation(); in getWidth()
74 int rotation = d.getRotation(); in getHeight()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DMultiListLayout.java40 mRotation = RotationUtils.getRotation(context); in MultiListLayout()
87 int newRotation = RotationUtils.getRotation(mContext); in onConfigurationChanged()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
H A DScreenPinningRequest.java208 int rotation = getRotation(mContext); in onAttachedToWindow()
380 inflateView(getRotation(mContext)); in onConfigurationChanged()
383 private int getRotation(Context context) { in getRotation() method in ScreenPinningRequest.RequestWindowView
389 return RotationUtils.getRotation(context); in getRotation()
396 mLayout.setLayoutParams(getRequestLayoutParams(getRotation(mContext)));
/aosp14/frameworks/base/core/tests/coretests/src/android/content/res/
H A DConfigurationTest.java133 assertEquals(ROTATION_90, config.windowConfiguration.getRotation()); in testMaskedSet()
141 assertEquals(ROTATION_90, config.windowConfiguration.getRotation()); in testMaskedSet()
147 assertEquals(ROTATION_UNDEFINED, config.windowConfiguration.getRotation()); in testMaskedSet()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/udfps/
H A DUdfpsUtils.java116 udfpsOverlayParams.getRotation() in onTouchOutsideOfSensorArea()
169 int rot = udfpsOverlayParams.getRotation(); in getPortraitTouch()
/aosp14/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
H A DTiledImageView.java161 mRenderer.rotation = source != null ? source.getRotation() : 0; in setTileSource()
250 final int rotation = mRenderer.source.getRotation(); in positionFromMatrix()
356 public int getRotation() { in getRotation() method in TiledImageView.ColoredTiles
/aosp14/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DUiDevice.java632 int ret = getAutomatorBridge().getRotation(); in isNaturalOrientation()
644 return getAutomatorBridge().getRotation(); in getDisplayRotation()
773 display.getRotation(), size.x, size.y); in dumpWindowHierarchy()
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DAsyncRotationController.java108 mOriginalRotation = displayContent.getWindowConfiguration().getRotation(); in AsyncRotationController()
119 && dr.canRotateSeamlessly(mOriginalRotation, dr.getRotation())) { in AsyncRotationController()
377 final int currentRotation = mDisplayContent.getWindowConfiguration().getRotation(); in updateRotation()
511 mDisplayContent.getWindowConfiguration().getRotation(), in setupStartTransaction()
H A DStartingSurfaceController.java163 if (activity.mDisplayContent.getRotation() != taskSnapshot.getRotation()) { in createTaskSnapshotSurface()
/aosp14/frameworks/base/core/java/com/android/internal/policy/
H A DSystemBarUtils.java59 final int rotation = context.getDisplay().getRotation(); in getStatusBarHeightForRotation()
/aosp14/frameworks/base/libs/hwui/tests/unit/
H A DVectorDrawableTests.cpp377 EXPECT_EQ(0.0f, properties->getRotation()); in TEST()
379 EXPECT_EQ(1.0f, properties->getRotation()); in TEST()
/aosp14/frameworks/base/cmds/uiautomator/cmds/uiautomator/src/com/android/commands/uiautomator/
H A DDumpCommand.java108 int rotation = display.getRotation(); in run()
/aosp14/frameworks/base/packages/WallpaperCropper/src/com/android/photos/
H A DBitmapRegionTileSource.java215 public int getRotation() { in getRotation() method in BitmapRegionTileSource.BitmapSource
381 mRotation = source.getRotation(); in BitmapRegionTileSource()
431 public int getRotation() { in getRotation() method in BitmapRegionTileSource
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/
H A DAvatarPhotoController.java243 int rotation = getRotation(data); in onPhotoNotCropped()
272 private int getRotation(Uri selectedImage) { in getRotation() method in AvatarPhotoController
/aosp14/frameworks/base/core/java/android/inputmethodservice/navigationbar/
H A DNavigationBarView.java202 if (drawable.getRotation() == degrees) { in orientBackButton()
310 mCurrentRotation = getContextDisplay().getRotation(); in updateCurrentView()
/aosp14/frameworks/base/packages/SystemUI/accessibility/accessibilitymenu/src/com/android/systemui/accessibility/accessibilitymenu/
H A DAccessibilityMenuService.java104 if (mRotation != display.getRotation()) {
105 mRotation = display.getRotation();

12345