/frameworks/opt/photoviewer/src/com/android/ex/photo/util/ |
D | Exif.java | 34 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/ |
D | Exif.java | 39 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/ |
D | Transform_test.cpp | 28 EXPECT_EQ(t.getOrientation(), rotation); in TEST() 30 EXPECT_EQ(inverse.getOrientation(), expectedInverse); in TEST()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/ |
D | ProjectionSpace.h | 39 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/ |
D | DisplayAreaGroupTest.java | 96 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()
|
D | DisplayRotationCompatPolicyTests.java | 248 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()
|
D | TaskFragmentTest.java | 721 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 …]
|
D | WindowContainerTests.java | 571 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 …]
|
D | TaskTests.java | 693 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/ |
D | InputEvent_test.cpp | 530 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/ |
D | NotificationOptimizedLinearLayout.java | 135 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()
|
D | ButtonBarLayout.java | 56 if (!mAllowStacking && getOrientation() == LinearLayout.VERTICAL) { in setAllowStacking() 165 return getOrientation() == LinearLayout.VERTICAL; in isStacked()
|
D | RemeasuringLinearLayout.java | 60 boolean isVertical = getOrientation() == LinearLayout.VERTICAL; in onMeasure()
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | DisplayDevice_SetProjectionTest.cpp | 93 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/ |
D | DisplayAreaGroup.java | 59 int getOrientation(int candidate) { in getOrientation() method in DisplayAreaGroup 60 int orientation = super.getOrientation(candidate); in getOrientation()
|
D | DisplayRotationReversionController.java | 143 return topActivity != null && topActivity.getOrientation() in isTopFullscreenActivityNoSensor()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/wallpaper/ |
D | WallpaperCropperTest.java | 24 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/ |
D | ButtonBarLayout.java | 54 if (!mAllowStacking && getOrientation() == LinearLayout.VERTICAL) { in setAllowStacking() 163 return getOrientation() == LinearLayout.VERTICAL; in isStacked()
|
/frameworks/base/services/core/java/com/android/server/wallpaper/ |
D | WallpaperDisplayHelper.java | 93 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/ |
D | BiometricFrameworkStatsLogger.java | 71 orientationType(operationContext.getOrientation()), in acquired() 97 orientationType(operationContext.getOrientation()), in authenticate() 148 orientationType(operationContext.getOrientation()), in error()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
D | ProjectionSpaceTest.cpp | 116 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/ |
D | BottomSheetButtonBarLayout.java | 57 return getOrientation() == LinearLayout.VERTICAL; in isStacked()
|
/frameworks/base/core/java/android/widget/ |
D | RadioButton.java | 96 if (radioGroup.getOrientation() == LinearLayout.HORIZONTAL) { in onInitializeAccessibilityNodeInfo()
|
/frameworks/opt/bitmap/src/com/android/bitmap/ |
D | ReusableBitmap.java | 65 public int getOrientation() { in getOrientation() method in ReusableBitmap
|
/frameworks/native/services/inputflinger/reader/mapper/accumulator/ |
D | MultiTouchMotionAccumulator.h | 44 inline int32_t getOrientation() const { return mAbsMtOrientation; } in getOrientation() function
|