Home
last modified time | relevance | path

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

12345678

/aosp12/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DWindowTokenTests.java160 final int originalRotation = config.windowConfiguration.getRotation(); in testFinishFixedRotationTransform()
168 assertEquals(targetRotation, tokens[0].getWindowConfiguration().getRotation()); in testFinishFixedRotationTransform()
169 assertEquals(targetRotation, tokens[1].getWindowConfiguration().getRotation()); in testFinishFixedRotationTransform()
179 assertEquals(originalRotation, tokens[0].getWindowConfiguration().getRotation()); in testFinishFixedRotationTransform()
181 assertNotEquals(originalRotation, tokens[1].getWindowConfiguration().getRotation()); in testFinishFixedRotationTransform()
185 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.java158 mDefaultDisplay.getRotation()); in testIncludedApps_expectTargetAndVisible()
180 mDefaultDisplay.getRotation()); in testWallpaperIncluded_expectTarget()
202 mDefaultDisplay.getRotation()); in testWallpaperAnimatorCanceled_expectAnimationKeepsRunning()
387 (mDefaultDisplay.getRotation() + 1) % 4); in prepareFixedRotationLaunchingAppWithRecentsAnim()
452 final int prevRotation = mDisplayContent.getRotation(); in testCheckRotationAfterCleanup()
456 assertNotEquals(mDisplayContent.getRotation(), prevRotation); in testCheckRotationAfterCleanup()
490 mDefaultDisplay.getRotation()); in testWallpaperHasFixedRotationApplied()
767 (displayContent.getRotation() + 1) % 4); in startRecentsInDifferentRotation()
H A DDisplayContentTests.java996 assertTrue("The display should be rotated.", dc.getRotation() % 2 == 1); in testOnDescendantOrientationRequestChanged()
1017 assertEquals(ROTATION_180, dc.getRotation()); in testOnDescendantOrientationRequestChanged_FrozenToUserRotation()
1039 assertTrue("The display should be rotated.", dc.getRotation() % 2 == 1); in testFixedToUserRotationChanged()
1287 displayContent.getRotation()); in testHybridRotationAnimation()
1500 doReturn((displayContent.getRotation() + 1) % 4).when(displayContent) in testFixedRotationWithPip()
1520 doReturn((displayContent.getRotation() + 1) % 4).when(displayContent) in testFixedRotationWithPip()
1569 displayRotation.setRotation((displayRotation.getRotation() + 1) % 4); in testRecentsNotRotatingWithFixedRotation()
1578 displayRotation.setRotation((displayRotation.getRotation() + 1) % 4); in testRecentsNotRotatingWithFixedRotation()
1586 displayRotation.setRotation((displayRotation.getRotation() + 1) % 4); in testRecentsNotRotatingWithFixedRotation()
1602 (mDisplayContent.getRotation() + 1) % 4); in testClearIntermediateFixedRotationAdjustments()
[all …]
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/
H A DRotationUtils.java51 public static int getRotation(Context context) { in getRotation() method in RotationUtils
52 int rot = context.getDisplay().getRotation(); in getRotation()
68 int rot = context.getDisplay().getRotation(); in getExactRotation()
/aosp12/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()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
H A DFilterRotateRepresentation.java77 this(r.getRotation()); in FilterRotateRepresentation()
85 public Rotation getRotation() { in getRotation() method in FilterRotateRepresentation
141 setRotation(((FilterRotateRepresentation) a).getRotation()); in useParametersFrom()
/aosp12/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()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DMediaItem.java84 return getRotation(); in getFullImageRotation()
87 public int getRotation() { in getRotation() method in MediaItem
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/
H A DDisplayUtils.java52 int rotation = d.getRotation(); in getWidth()
72 int rotation = d.getRotation(); in getHeight()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
H A DScreenPinningRequest.java192 int rotation = getRotation(mContext); in onAttachedToWindow()
349 inflateView(getRotation(mContext)); in onConfigurationChanged()
352 private int getRotation(Context context) { in getRotation() method in ScreenPinningRequest.RequestWindowView
358 return RotationUtils.getRotation(context); in getRotation()
365 mLayout.setLayoutParams(getRequestLayoutParams(getRotation(mContext)));
/aosp12/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
H A DPhotoTouchListener.java85 mInitialTargetA = (float) target.getRotation(); in resetTouch()
150 mInitialTargetA = (float) target.getRotation(); in onTouch()
185 float rotation = target.getRotation(); in onTouch()
/aosp12/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()
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/phone/
H A DPhoneStartingWindowTypeAlgorithm.java116 .windowConfiguration.getRotation(); in isSnapshotCompatible()
117 final int snapshotRotation = snapshot.getRotation(); in isSnapshotCompatible()
/aosp12/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()
/aosp12/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint/
H A DFingerprintEnrollFindSensor.java108 final int rotation = getApplicationContext().getDisplay().getRotation(); in onCreate()
343 final int currentRotation = getDisplay().getRotation(); in listenOrientationEvent()
354 mPreviousRotation = getDisplay().getRotation(); in listenOrientationEvent()
/aosp12/frameworks/base/services/core/java/com/android/server/wm/
H A DStartingSurfaceController.java139 if (topFullscreenActivity.getWindowConfiguration().getRotation() in createTaskSnapshotSurface()
140 != taskSnapshot.getRotation() in createTaskSnapshotSurface()
/aosp12/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
H A DConfigurationCompat.java26 return c.windowConfiguration.getRotation(); in getWindowConfigurationRotation()
/aosp12/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
/aosp12/packages/apps/Gallery2/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
/aosp12/packages/apps/Camera2/src/com/android/camera/app/
H A DOrientationManagerImpl.java256 .getRotation(); in getDisplayRotation()
278 int orientation = currentDisplay.getRotation(); in isDefaultToPortrait()
/aosp12/packages/apps/WallpaperPicker/src/com/android/photos/
H A DBitmapRegionTileSource.java210 public int getRotation() { in getRotation() method in BitmapRegionTileSource.BitmapSource
304 mRotation = source.getRotation(); in BitmapRegionTileSource()
354 public int getRotation() { in getRotation() method in BitmapRegionTileSource
/aosp12/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()
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
H A DNavBarPosition.java51 public float getRotation() { in getRotation() method in NavBarPosition
/aosp12/frameworks/base/core/tests/mockingcoretests/src/android/view/
H A DDisplayTest.java150 assertThat(display.getRotation()).isEqualTo(ROTATION_0); in testGetRotation_defaultDisplayAdjustments_rotationNotAdjusted()
167 assertThat(display.getRotation()).isEqualTo(ROTATION_0); in testGetRotation_displayAdjustmentsWithoutOverride_rotationNotAdjusted()
180 assertThat(display.getRotation()).isEqualTo(ROTATION_0); in testGetRotation_resourcesWithoutOverride_rotationNotAdjusted()
193 assertThat(display.getRotation()).isEqualTo(ROTATION_90); in testGetRotation_resourcesWithOverrideDisplayAdjustments_rotationAdjusted()

12345678