/frameworks/native/services/inputflinger/tests/ |
H A D | InputReader_test.cpp | 144 void setDisplayViewport(int32_t displayId, int32_t width, int32_t height, int32_t orientation, argument 146 DisplayViewport v = createDisplayViewport(displayId, width, height, orientation, uniqueId); 152 void setVirtualDisplayViewport(int32_t displayId, int32_t width, int32_t height, int32_t orientation, argument 155 viewports.push_back(createDisplayViewport(displayId, width, height, orientation, uniqueId)); 206 int32_t orientation, const String8& uniqueId) { 207 bool isRotated = (orientation == DISPLAY_ORIENTATION_90 208 || orientation == DISPLAY_ORIENTATION_270); 211 v.orientation = orientation; 1599 int32_t orientation) { 1598 setDisplayInfoAndReconfigure(int32_t displayId, int32_t width, int32_t height, int32_t orientation) argument 1604 setVirtualDisplayInfoAndReconfigure(int32_t displayId, int32_t width, int32_t height, int32_t orientation, const String8& uniqueId) argument 1633 assertPointerCoords(const PointerCoords& coords, float x, float y, float pressure, float size, float touchMajor, float touchMinor, float toolMajor, float toolMinor, float orientation, float distance) argument 2987 prepareDisplay(int32_t orientation) argument 2991 prepareVirtualDisplay(int32_t orientation) argument 3802 float orientation = atan2f(-sinf(tiltXAngle), sinf(tiltYAngle)); local 4468 processOrientation( MultiTouchInputMapper* mapper, int32_t orientation) argument 5167 float orientation = float(rawOrientation) / RAW_ORIENTATION_MAX * M_PI_2; local [all...] |
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/ |
H A D | GridLayoutManager.java | 167 void calculateItemAlignments(int orientation, View view) { argument 174 .getAlignmentPosition(view, defs[i], orientation); 176 if (orientation == HORIZONTAL) { 435 * The orientation of a "row". 539 * Set to true for RTL layout in horizontal orientation 544 * Set to true for RTL layout in vertical orientation 685 * Dimensions of the view, width or height depending on orientation. 718 public void setOrientation(@RecyclerView.Orientation int orientation) { argument 719 if (orientation != HORIZONTAL && orientation ! [all...] |
/frameworks/support/exifinterface/src/androidTest/java/androidx/exifinterface/media/ |
H A D | ExifInterfaceTest.java | 253 public final int orientation; field in class:ExifInterfaceTest.ExpectedValue 296 orientation = typedArray.getInt(26, 0); 768 assertIntTag(exifInterface, ExifInterface.TAG_ORIENTATION, expectedValue.orientation);
|
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/ |
H A D | LinearLayoutCompat.java | 49 * The default orientation is horizontal. 584 * Measures the children when the orientation of this LinearLayout is set 917 * Measures the children when the orientation of this LinearLayout is set 1355 * @return the width or height of the child depending on the orientation 1414 * Position the children during a layout pass if the orientation of this 1509 * Position the children during a layout pass if the orientation of this 1650 * @param orientation Pass {@link #HORIZONTAL} or {@link #VERTICAL}. Default 1653 public void setOrientation(@OrientationMode int orientation) { argument 1654 if (mOrientation != orientation) { 1655 mOrientation = orientation; [all...] |
/frameworks/base/core/java/com/android/internal/policy/ |
H A D | DividerSnapAlgorithm.java | 98 ctx.getApplicationContext().getResources().getConfiguration().orientation
|
H A D | PipSnapAlgorithm.java | 43 // Allows snapping to the four corners and the mid-points on the long edge in each orientation 49 // Allows snapping on the long edge in each orientation and magnets towards corners 91 mOrientation = res.getConfiguration().orientation;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | TaskViewThumbnail.java | 253 // Make sure we fill the entire space regardless of the orientation. 268 if (mThumbnailData.orientation == Configuration.ORIENTATION_PORTRAIT) { 269 // If we are in the same orientation as the screenshot, just scale it to the 279 // Otherwise, scale the screenshot to fit 1:1 in the current orientation
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | AppWindowToken.java | 268 boolean showForAllUsers, int targetSdk, int orientation, int rotationAnimationHint, 276 mOrientation = orientation; 1290 * We override because this class doesn't want its children affecting its reported orientation 1296 // Allow app to specify orientation regardless of its visibility state if the current 1297 // candidate want us to use orientation behind. I.e. the visible app on-top of this one 1298 // wants us to use the orientation of the app behind it. 1302 // The {@link AppWindowToken} should only specify an orientation when it is not closing or 1304 // an Activity in another task being started in the wrong orientation during the transition. 1313 /** Returns the app's preferred orientation regardless of its currently visibility state. */ 1838 displayConfig.uiMode, displayConfig.orientation, fram 266 AppWindowToken(WindowManagerService service, IApplicationToken token, boolean voiceInteraction, DisplayContent dc, long inputDispatchingTimeoutNanos, boolean fullscreen, boolean showForAllUsers, int targetSdk, int orientation, int rotationAnimationHint, int configChanges, boolean launchTaskBehind, boolean alwaysFocusable, AppWindowContainerController controller) argument [all...] |
/frameworks/base/services/core/java/com/android/server/policy/ |
H A D | PhoneWindowManager.java | 466 Vibrator mVibrator; // Vibrator for giving feedback of orientation changes 588 // Default display does not rotate, apps that require non-default orientation will have to 589 // have the orientation emulated. 1187 // orientation, then we need to turn the sensor on. 1196 // orientation management, 1202 // a window that forces an orientation that does not use the 1205 // orientation for a little bit, which can cause orientation 1220 * screen turned on and current app has sensor based orientation, enable listeners 1222 * screen turned on and current app does not have sensor orientation, disabl 7241 rotationForOrientationLw(int orientation, int lastRotation, boolean defaultDisplay) argument 7416 rotationHasCompatibleMetricsLw(int orientation, int rotation) argument 7438 isRotationChoicePossible(int orientation) argument 7493 isValidRotationChoice(int orientation, final int preferredRotation) argument [all...] |
/frameworks/native/services/surfaceflinger/ |
H A D | SurfaceFlinger.cpp | 874 info.orientation = hw ? hw->getOrientation() : 0; 879 info.orientation = 0; 2344 hw->setProjection(state.orientation, state.viewport, state.frame); 2404 if ((state.orientation != draw[i].orientation) || 2406 disp->setProjection(state.orientation, state.viewport, state.frame); 3303 if (disp.orientation != s.orientation) { 3304 disp.orientation = s.orientation; [all...] |
H A D | BufferLayer.cpp | 227 * orientation to display orientation. For example, in the case 228 * of a camera where the buffer remains in native orientation, 287 void BufferLayer::setTransformHint(uint32_t orientation) const { 288 mConsumer->setTransformHint(orientation);
|
/frameworks/base/core/java/android/app/ |
H A D | ResourcesManager.java | 220 config.orientation = Configuration.ORIENTATION_LANDSCAPE; 224 config.orientation = Configuration.ORIENTATION_PORTRAIT;
|
H A D | SearchDialog.java | 377 return context.getResources().getConfiguration().orientation
|
/frameworks/base/core/jni/ |
H A D | android_hardware_camera2_legacy_LegacyCameraDevice.cpp | 699 jobject surface, jint facing, jint orientation) { 710 int32_t orientVal = static_cast<int32_t>(orientation); 698 LegacyCameraDevice_nativeSetSurfaceOrientation(JNIEnv* env, jobject thiz, jobject surface, jint facing, jint orientation) argument
|
H A D | android_util_AssetManager.cpp | 332 jstring locale, jint orientation, jint touchscreen, jint density, 344 configuration.orientation = static_cast<uint8_t>(orientation); 331 NativeSetConfiguration(JNIEnv* env, jclass , jlong ptr, jint mcc, jint mnc, jstring locale, jint orientation, jint touchscreen, jint density, jint keyboard, jint keyboard_hidden, jint navigation, jint screen_width, jint screen_height, jint smallest_screen_width_dp, jint screen_width_dp, jint screen_height_dp, jint screen_layout, jint ui_mode, jint color_mode, jint major_version) argument
|
H A D | android_view_SurfaceControl.cpp | 528 jobject tokenObj, jint orientation, 538 transaction->setDisplayProjection(token, orientation, layerStackRect, displayRect); 526 nativeSetDisplayProjection(JNIEnv* env, jclass clazz, jlong transactionObj, jobject tokenObj, jint orientation, jint layerStackRect_left, jint layerStackRect_top, jint layerStackRect_right, jint layerStackRect_bottom, jint displayRect_left, jint displayRect_top, jint displayRect_right, jint displayRect_bottom) argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/ |
H A D | RecentsActivity.java | 513 mLastConfig.orientation != newDeviceConfiguration.orientation,
|
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/ |
H A D | GridLayoutManager.java | 91 * @param orientation Layout orientation. Should be {@link #HORIZONTAL} or {@link 96 @RecyclerView.Orientation int orientation, boolean reverseLayout) { 97 super(context, orientation, reverseLayout); 708 * orientation 740 * views that wanted to MATCH_PARENT in the non-scroll orientation. 1139 * Note that if the orientation is {@link #VERTICAL}, the width parameter is ignored and if the 1140 * orientation is {@link #HORIZONTAL} the height parameter is ignored because child view is 95 GridLayoutManager(Context context, int spanCount, @RecyclerView.Orientation int orientation, boolean reverseLayout) argument
|
/frameworks/base/core/java/android/widget/ |
H A D | LinearLayout.java | 52 * android:orientation="horizontal" 60 * <p>Set {@link android.R.styleable#LinearLayout_orientation android:orientation} to specify 745 * Measures the children when the orientation of this LinearLayout is set 1075 * Measures the children when the orientation of this LinearLayout is set 1513 * @return the width or height of the child depending on the orientation 1572 * Position the children during a layout pass if the orientation of this 1677 * Position the children during a layout pass if the orientation of this 1817 * @param orientation Pass {@link #HORIZONTAL} or {@link #VERTICAL}. Default 1822 public void setOrientation(@OrientationMode int orientation) { argument 1823 if (mOrientation != orientation) { [all...] |
/frameworks/base/media/java/android/media/ |
H A D | MediaScanner.java | 987 int orientation = exif.getAttributeInt( 989 if (orientation != -1) { 990 // We only recognize a subset of orientation tag values. 992 switch(orientation) {
|
/frameworks/native/services/inputflinger/ |
H A D | InputReader.h | 68 // The display size or orientation changed. 768 RawAbsoluteAxisInfo orientation; member in struct:android::RawPointerAxes 791 int32_t orientation; member in struct:android::RawPointerData::Pointer 1105 int32_t mOrientation; // orientation for dpad keys 1512 // The components of the viewport are specified in the display's rotated orientation. 1515 // The surface orientation, width and height set by configureSurface(). 1517 // in the natural orientation. 1520 // The orientation may be different from the viewport orientation as it specifies 1522 // requested orientation, s 1574 InputDeviceInfo::MotionRange orientation; member in struct:android::TouchInputMapper::OrientedRanges [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | QSPanel.java | 247 * Links the footer's page indicator, which is used in landscape orientation to save space. 265 getResources().getConfiguration().orientation == ORIENTATION_LANDSCAPE
|
H A D | QuickStatusBarHeader.java | 261 newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | NavigationBarInflaterView.java | 120 landscape.orientation = Configuration.ORIENTATION_LANDSCAPE;
|
/frameworks/av/packages/MediaComponents/src/com/android/widget/ |
H A D | VideoView2Impl.java | 599 int orientation = retrieveOrientation(); 600 if (orientation == ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) {
|