Home
last modified time | relevance | path

Searched refs:getOrientation (Results 1 – 25 of 110) sorted by relevance

12345

/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
DExif.java34 public static int getOrientation(final InputStream inputStream, final long byteSize) { in getOrientation() method in Exif
208 public static int getOrientation(final byte[] jpeg) { in getOrientation() method in Exif
209 return getOrientation(new ByteArrayInputStream(jpeg), jpeg.length); in getOrientation()
/frameworks/opt/bitmap/src/com/android/bitmap/util/
DExif.java39 public static int getOrientation(final InputStream inputStream, final long byteSize) { in getOrientation() method in Exif
213 public static int getOrientation(final byte[] jpeg) { in getOrientation() method in Exif
214 return getOrientation(new ByteArrayInputStream(jpeg), jpeg.length); in getOrientation()
/frameworks/native/libs/ui/tests/
DTransform_test.cpp28 EXPECT_EQ(t.getOrientation(), rotation); in TEST()
30 EXPECT_EQ(inverse.getOrientation(), expectedInverse); in TEST()
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
DProjectionSpace.h39 ui::Rotation rotation = destination.getOrientation() - mOrientation; in getTransform()
102 ui::Rotation getOrientation() const { return mOrientation; } in getOrientation() function
127 toCString(space.getOrientation())); in to_string()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayAreaGroupTest.java96 assertThat(mDisplayAreaGroup.getOrientation()).isEqualTo(SCREEN_ORIENTATION_PORTRAIT); in testGetRequestedOrientationForDisplay()
103 assertThat(mDisplayAreaGroup.getOrientation()).isEqualTo(SCREEN_ORIENTATION_LANDSCAPE); in testGetRequestedOrientationForDisplay()
110 assertThat(mDisplayAreaGroup.getOrientation()).isEqualTo(SCREEN_ORIENTATION_PORTRAIT); in testGetRequestedOrientationForDisplay()
DDisplayRotationCompatPolicyTests.java248 assertEquals(mDisplayRotationCompatPolicy.getOrientation(), in testTreatmentNotEnabled_noForceRotationOrRefresh()
362 assertEquals(mDisplayRotationCompatPolicy.getOrientation(), in testCameraReconnected_forceRotationAndRefresh()
376 assertEquals(mDisplayRotationCompatPolicy.getOrientation(), in testReconnectedToDifferentCamera_forceRotationAndRefresh()
387 assertEquals(mDisplayRotationCompatPolicy.getOrientation(), in testCameraDisconnected_revertRotationAndRefresh()
393 assertEquals(mDisplayRotationCompatPolicy.getOrientation(), in testCameraDisconnected_revertRotationAndRefresh()
404 assertEquals(mDisplayRotationCompatPolicy.getOrientation(), in testGetOrientation_cameraConnectionClosed_returnUnspecified()
409 assertEquals(mDisplayRotationCompatPolicy.getOrientation(), in testGetOrientation_cameraConnectionClosed_returnUnspecified()
462 assertEquals(mDisplayRotationCompatPolicy.getOrientation(), in testGetOrientationForActivityAndNaturalOrientations()
627 assertEquals(mDisplayRotationCompatPolicy.getOrientation(), in assertNoForceRotationOrRefresh()
DTaskFragmentTest.java721 assertEquals(SCREEN_ORIENTATION_UNSET, task.getOrientation()); in testIgnoreRequestedOrientationForActivityEmbeddingSplit()
726 assertEquals(SCREEN_ORIENTATION_UNSET, task.getOrientation()); in testIgnoreRequestedOrientationForActivityEmbeddingSplit()
734 assertEquals(SCREEN_ORIENTATION_UNSET, task.getOrientation()); in testIgnoreRequestedOrientationForActivityEmbeddingSplit()
770 assertEquals(SCREEN_ORIENTATION_UNSPECIFIED, tf0.getOrientation(SCREEN_ORIENTATION_UNSET)); in testIsVisibleWithAdjacent_reportOrientationUnspecified()
771 assertEquals(SCREEN_ORIENTATION_UNSPECIFIED, tf1.getOrientation(SCREEN_ORIENTATION_UNSET)); in testIsVisibleWithAdjacent_reportOrientationUnspecified()
772 assertEquals(SCREEN_ORIENTATION_UNSPECIFIED, task.getOrientation(SCREEN_ORIENTATION_UNSET)); in testIsVisibleWithAdjacent_reportOrientationUnspecified()
776 assertEquals(SCREEN_ORIENTATION_UNSPECIFIED, tf0.getOrientation(SCREEN_ORIENTATION_UNSET)); in testIsVisibleWithAdjacent_reportOrientationUnspecified()
777 assertEquals(SCREEN_ORIENTATION_UNSPECIFIED, tf1.getOrientation(SCREEN_ORIENTATION_UNSET)); in testIsVisibleWithAdjacent_reportOrientationUnspecified()
778 assertEquals(SCREEN_ORIENTATION_UNSPECIFIED, task.getOrientation(SCREEN_ORIENTATION_UNSET)); in testIsVisibleWithAdjacent_reportOrientationUnspecified()
790 assertEquals(SCREEN_ORIENTATION_BEHIND, tf.getOrientation(SCREEN_ORIENTATION_UNSET)); in testGetOrientation_reportOverrideOrientation()
[all …]
DWindowContainerTests.java571 assertEquals(SCREEN_ORIENTATION_UNSET, root.getOrientation()); in testGetOrientation_childSpecified()
575 assertEquals(SCREEN_ORIENTATION_UNSET, root.getOrientation()); in testGetOrientation_childSpecified()
578 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, root.getOrientation()); in testGetOrientation_childSpecified()
592 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, invisibleChild1VisibleAndSet.getOrientation()); in testGetOrientation_InvisibleParentUnsetVisibleChildren()
595 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, invisible.getOrientation()); in testGetOrientation_InvisibleParentUnsetVisibleChildren()
597 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, root.getOrientation()); in testGetOrientation_InvisibleParentUnsetVisibleChildren()
602 assertEquals(SCREEN_ORIENTATION_UNSET, visibleUnset.getOrientation()); in testGetOrientation_InvisibleParentUnsetVisibleChildren()
603 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, root.getOrientation()); in testGetOrientation_InvisibleParentUnsetVisibleChildren()
622 visibleUnsetChild1VisibleSetBehind.getOrientation()); in testGetOrientation_setBehind()
623 assertEquals(SCREEN_ORIENTATION_BEHIND, visibleUnset.getOrientation()); in testGetOrientation_setBehind()
[all …]
DTaskTests.java693 assertEquals(SCREEN_ORIENTATION_PORTRAIT, task.getRootActivity().getOrientation()); in testFullscreenBoundsForcedOrientation()
766 assertEquals(SCREEN_ORIENTATION_PORTRAIT, task.getOrientation()); in testReportsOrientationRequestInLetterboxForOrientation()
798 assertEquals(SCREEN_ORIENTATION_PORTRAIT, task.getRootActivity().getOrientation()); in testIgnoresForcedOrientationWhenParentHandles()
1523 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, parentContainer.getOrientation()); in testNotSpecifyOrientationByFloatingTask()
1524 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, taskDisplayArea.getOrientation()); in testNotSpecifyOrientationByFloatingTask()
1529 assertEquals(SCREEN_ORIENTATION_UNSET, parentContainer.getOrientation()); in testNotSpecifyOrientationByFloatingTask()
1530 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, taskDisplayArea.getOrientation()); in testNotSpecifyOrientationByFloatingTask()
1553 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, firstTaskDisplayArea.getOrientation()); in testNotSpecifyOrientation_taskDisplayAreaNotFocused()
1554 assertEquals(SCREEN_ORIENTATION_UNSET, secondTaskDisplayArea.getOrientation()); in testNotSpecifyOrientation_taskDisplayAreaNotFocused()
1559 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, firstTaskDisplayArea.getOrientation()); in testNotSpecifyOrientation_taskDisplayAreaNotFocused()
[all …]
/frameworks/native/libs/input/tests/
DInputEvent_test.cpp530 ASSERT_EQ(toScaledOrientation(218), event->getOrientation(0)); in assertEqualsEventWithHistory()
531 ASSERT_EQ(toScaledOrientation(228), event->getOrientation(1)); in assertEqualsEventWithHistory()
748 const float unscaledOrientation = event.getOrientation(0); in TEST_F()
767 ASSERT_EQ(unscaledOrientation, event.getOrientation(0)); in TEST_F()
858 ASSERT_NEAR(tanf(angle), tanf(event.getOrientation(i)), 0.1); in TEST_F()
1124 ASSERT_EQ(event.getOrientation(/*pointerIndex=*/0), 0.f); in TEST_F()
1126 ASSERT_EQ(event.getOrientation(/*pointerIndex=*/0), 0.f); in TEST_F()
1128 ASSERT_EQ(event.getOrientation(/*pointerIndex=*/0), 0.f); in TEST_F()
1130 ASSERT_EQ(event.getOrientation(/*pointerIndex=*/0), 0.f); in TEST_F()
1146 ASSERT_NEAR(fabs(nonDirectionalEvent.getOrientation(/*pointerIndex=*/0)), M_PI_2, EPSILON); in TEST_F()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DNotificationOptimizedLinearLayout.java135 final boolean isHorizontal = getOrientation() == HORIZONTAL; in isOptimizationPossible()
160 if (getOrientation() == VERTICAL) { in requiresNegativeMarginHandlingForHorizontalLinearLayout()
181 if (getOrientation() == HORIZONTAL) { in requiresMatchParentRemeasureForVerticalLinearLayout()
205 if (getOrientation() == VERTICAL) { in requiresBaselineAlignmentForHorizontalLinearLayout()
252 final boolean isVertical = getOrientation() == VERTICAL; in getSingleWeightedChild()
314 if (getOrientation() == LinearLayout.HORIZONTAL) { in onMeasureOptimized()
349 if (getOrientation() == LinearLayout.HORIZONTAL) { in onLayoutOptimized()
DButtonBarLayout.java56 if (!mAllowStacking && getOrientation() == LinearLayout.VERTICAL) { in setAllowStacking()
165 return getOrientation() == LinearLayout.VERTICAL; in isStacked()
DRemeasuringLinearLayout.java60 boolean isVertical = getOrientation() == LinearLayout.VERTICAL; in onMeasure()
/frameworks/native/services/surfaceflinger/tests/unittests/
DDisplayDevice_SetProjectionTest.cpp93 EXPECT_EQ(mPhysicalOrientation, compositionState.displaySpace.getOrientation()); in expectDefaultState()
117 EXPECT_EQ(ui::ROTATION_0, compositionState.displaySpace.getOrientation()); in expectStateForHardwareTransform0()
129 EXPECT_EQ(ui::ROTATION_90, compositionState.displaySpace.getOrientation()); in expectStateForHardwareTransform90()
145 EXPECT_EQ(ui::ROTATION_180, compositionState.displaySpace.getOrientation()); in expectStateForHardwareTransform180()
156 EXPECT_EQ(ui::ROTATION_270, compositionState.displaySpace.getOrientation()); in expectStateForHardwareTransform270()
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayAreaGroup.java59 int getOrientation(int candidate) { in getOrientation() method in DisplayAreaGroup
60 int orientation = super.getOrientation(candidate); in getOrientation()
DDisplayRotationReversionController.java143 return topActivity != null && topActivity.getOrientation() in isTopFullscreenActivityNoSensor()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/wallpaper/
DWallpaperCropperTest.java24 import static android.app.WallpaperManager.getOrientation;
115 mDisplaySizes.put(getOrientation(size), size); in setUpWithDisplays()
117 mDisplaySizes.put(getOrientation(rotated), rotated); in setUpWithDisplays()
125 mUnfolded = getOrientation(largestDisplay); in setUpWithDisplays()
126 mFolded = getOrientation(smallestDisplay); in setUpWithDisplays()
474 int unfoldedOne = getOrientation(largestDisplay); in testGetCrop_hasUnfoldedSuggestedCrop()
530 int foldedOne = getOrientation(smallestDisplay); in testGetCrop_hasFoldedSuggestedCrop()
574 int unfoldedOne = getOrientation(largestDisplay); in testGetCrop_hasRotatedUnfoldedSuggestedCrop()
612 int foldedOne = getOrientation(smallestDisplay); in testGetCrop_hasRotatedFoldedSuggestedCrop()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DButtonBarLayout.java54 if (!mAllowStacking && getOrientation() == LinearLayout.VERTICAL) { in setAllowStacking()
163 return getOrientation() == LinearLayout.VERTICAL; in isStacked()
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperDisplayHelper.java93 int orientation = WallpaperManager.getOrientation(point); in WallpaperDisplayHelper()
104 int orientation = WallpaperManager.getOrientation(displaySize); in WallpaperDisplayHelper()
136 return WallpaperManager.getOrientation(displaySize); in getDefaultDisplayCurrentOrientation()
/frameworks/base/services/core/java/com/android/server/biometrics/log/
DBiometricFrameworkStatsLogger.java71 orientationType(operationContext.getOrientation()), in acquired()
97 orientationType(operationContext.getOrientation()), in authenticate()
148 orientationType(operationContext.getOrientation()), in error()
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DProjectionSpaceTest.cpp116 const auto sourceStrip = getSideStrip(source.getContent(), source.getOrientation()); in testTransform()
117 const auto destStrip = getSideStrip(dest.getContent(), dest.getOrientation()); in testTransform()
/frameworks/base/services/autofill/java/com/android/server/autofill/ui/
DBottomSheetButtonBarLayout.java57 return getOrientation() == LinearLayout.VERTICAL; in isStacked()
/frameworks/base/core/java/android/widget/
DRadioButton.java96 if (radioGroup.getOrientation() == LinearLayout.HORIZONTAL) { in onInitializeAccessibilityNodeInfo()
/frameworks/opt/bitmap/src/com/android/bitmap/
DReusableBitmap.java65 public int getOrientation() { in getOrientation() method in ReusableBitmap
/frameworks/native/services/inputflinger/reader/mapper/accumulator/
DMultiTouchMotionAccumulator.h44 inline int32_t getOrientation() const { return mAbsMtOrientation; } in getOrientation() function

12345