Searched defs:orientation (Results 26 - 50 of 72) sorted by relevance

123

/frameworks/base/native/android/
H A Dconfiguration.cpp63 return config->orientation;
151 void AConfiguration_setOrientation(AConfiguration* config, int32_t orientation) { argument
152 config->orientation = orientation;
/frameworks/native/services/surfaceflinger/
H A DSurfaceFlinger.h172 uint8_t orientation; member in struct:android::SurfaceFlinger::DisplayDeviceState
H A DDisplayDevice.cpp132 // initialize the display orientation transform.
380 int orientation, int w, int h, Transform* tr)
383 switch (orientation) {
424 void DisplayDevice::setProjection(int orientation, argument
433 DisplayDevice::orientationToTransfrom(orientation, w, h, &R);
448 // viewport is always specified in the logical orientation
474 // The viewport and frame are both in the logical orientation.
476 // physical translation and finally rotate to the physical orientation.
488 mOrientation = orientation;
379 orientationToTransfrom( int orientation, int w, int h, Transform* tr) argument
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DWindowAlignment.java291 final public void setOrientation(int orientation) { argument
292 mOrientation = orientation;
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DGridLayoutManagerTest.java55 for (int orientation : new int[]{VERTICAL, HORIZONTAL}) {
58 mBaseVariations.add(new Config(spanCount, orientation, reverseLayout));
144 public void accessibilitySpanIndicesTest(int orientation) throws Throwable { argument
145 final RecyclerView recyclerView = setupBasic(new Config(3, orientation, false));
164 orientation == HORIZONTAL ? itemInfo.getColumnIndex() : itemInfo.getRowIndex());
167 orientation == HORIZONTAL ? itemInfo.getRowIndex() : itemInfo.getColumnIndex());
170 orientation == HORIZONTAL ? itemInfo.getRowSpan() : itemInfo.getColumnSpan());
189 public void layoutParamsTest(final int orientation) throws Throwable { argument
190 final RecyclerView rv = setupBasic(new Config(3, 100).orientation(orientation),
598 WrappedGridLayoutManager(Context context, int spanCount, int orientation, boolean reverseLayout) argument
640 Config(int spanCount, int orientation, boolean reverseLayout) argument
646 orientation(int orientation) argument
[all...]
H A DLinearLayoutManagerTest.java68 for (int orientation : new int[]{VERTICAL, HORIZONTAL}) {
71 mBaseVariations.add(new Config(orientation, reverseLayout, stackFromBottom));
626 return "Changing orientation";
774 assertEquals(logPrefix + " on saved state, orientation should be preserved",
910 public WrappedLinearLayoutManager(Context context, int orientation, boolean reverseLayout) { argument
911 super(context, orientation, reverseLayout);
923 public void setOrientation(int orientation) { argument
924 super.setOrientation(orientation);
1109 Config(int orientation, boolean reverseLayout, boolean stackFromEnd) { argument
1110 mOrientation = orientation;
1129 orientation(int orientation) argument
[all...]
H A DRecyclerViewLayoutTest.java1575 for (int orientation : new int[]{OrientationHelper.HORIZONTAL,
1577 adapterChangeDuringScrollTest("notifyDataSetChanged", orientation,
1584 adapterChangeDuringScrollTest("notifyItemChanged", orientation, new Runnable() {
1591 adapterChangeDuringScrollTest("notifyItemInserted", orientation, new Runnable() {
1597 adapterChangeDuringScrollTest("notifyItemRemoved", orientation, new Runnable() {
1606 public void adapterChangeDuringScrollTest(String msg, final int orientation, argument
1624 return orientation == OrientationHelper.VERTICAL;
1629 return orientation == OrientationHelper.HORIZONTAL;
H A DStaggeredGridLayoutManagerTest.java66 for (int orientation : new int[]{VERTICAL, HORIZONTAL}) {
71 mBaseVariations.add(new Config(orientation, reverseLayout, spanCount,
907 assertEquals("on saved state, orientation should be preserved",
1079 assertEquals(config + " on saved state, orientation should be preserved",
1621 public WrappedLayoutManager(int spanCount, int orientation) { argument
1622 super(spanCount, orientation);
1834 GridTestAdapter(int count, int orientation) { argument
1836 mOrientation = orientation;
1916 Config(int orientation, boolean reverseLayout, int spanCount, int gapStrategy) { argument
1917 mOrientation = orientation;
1927 orientation(int orientation) argument
[all...]
/frameworks/av/cmds/screenrecord/
H A Dscreenrecord.cpp136 static bool isDeviceRotated(int orientation) { argument
137 return orientation != DISPLAY_ORIENTATION_0 &&
138 orientation != DISPLAY_ORIENTATION_180;
209 * and device orientation.
218 bool deviceRotated = isDeviceRotated(mainDpyInfo.orientation);
237 // "pre-rotate" it by flipping width/height, so that the orientation
316 const sp<IBinder>& virtualDpy, uint8_t orientation) {
370 ATRACE_NAME("orientation");
371 // Check orientation, update if it has changed.
379 } else if (orientation !
314 runEncoder(const sp<MediaCodec>& encoder, const sp<MediaMuxer>& muxer, FILE* rawFp, const sp<IBinder>& mainDpy, const sp<IBinder>& virtualDpy, uint8_t orientation) argument
[all...]
/frameworks/av/services/camera/libcameraservice/api1/
H A DCameraClient.cpp617 int orientation; local
624 orientation = getOrientation(arg1, mCameraFacing == CAMERA_FACING_FRONT);
625 if (orientation == -1) return BAD_VALUE;
627 if (mOrientation != orientation) {
628 mOrientation = orientation;
/frameworks/base/core/jni/
H A Dandroid_hardware_camera2_legacy_LegacyCameraDevice.cpp638 jobject surface, jint facing, jint orientation) {
649 int32_t orientVal = static_cast<int32_t>(orientation);
637 LegacyCameraDevice_nativeSetSurfaceOrientation(JNIEnv* env, jobject thiz, jobject surface, jint facing, jint orientation) argument
H A Dandroid_hardware_Camera.cpp47 jfieldID orientation; member in struct:fields_t
506 env->SetIntField(info_obj, fields.orientation, cameraInfo.orientation);
878 jniThrowRuntimeException(env, "set display orientation failed");
1062 { "android/hardware/Camera$CameraInfo", "orientation", "I", &fields.orientation },
H A Dandroid_view_MotionEvent.cpp56 jfieldID orientation; member in struct:android::__anon865
212 env->GetFloatField(pointerCoordsObj, gPointerCoordsClassInfo.orientation));
274 env->SetFloatField(outPointerCoordsObj, gPointerCoordsClassInfo.orientation,
910 GET_FIELD_ID(gPointerCoordsClassInfo.orientation, clazz,
911 "orientation", "F");
H A Dandroid_view_SurfaceControl.cpp360 jobject tokenObj, jint orientation,
367 SurfaceComposerClient::setDisplayProjection(token, orientation, layerStackRect, displayRect);
359 nativeSetDisplayProjection(JNIEnv* env, jclass clazz, 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/native/libs/input/
H A DInput.cpp133 // No need to scale orientation since it is meaningless to do so.
400 // can transform orientation vectors.
414 float orientation = c.getAxisValue(AMOTION_EVENT_AXIS_ORIENTATION); local
416 transformAngle(matrix, orientation, originX, originY));
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DGridLayoutManager.java75 * @param orientation Layout orientation. Should be {@link #HORIZONTAL} or {@link
79 public GridLayoutManager(Context context, int spanCount, int orientation, argument
81 super(context, orientation, reverseLayout);
757 * Note that if the orientation is {@link #VERTICAL}, the width parameter is ignored and if the
758 * orientation is {@link #HORIZONTAL} the height parameter is ignored because child view is
/frameworks/base/core/java/android/gesture/
H A DGestureOverlayView.java203 public void setOrientation(int orientation) { argument
204 mOrientation = orientation;
649 float angle = Math.abs(box.orientation);
/frameworks/base/core/java/android/view/
H A DSurfaceControl.java74 IBinder displayToken, int orientation,
556 int orientation, Rect layerStackRect, Rect displayRect) {
566 nativeSetDisplayProjection(displayToken, orientation,
693 * screenshots in its native portrait orientation by default, so this is
695 * orientation.
73 nativeSetDisplayProjection( IBinder displayToken, int orientation, int l, int t, int r, int b, int L, int T, int R, int B) argument
555 setDisplayProjection(IBinder displayToken, int orientation, Rect layerStackRect, Rect displayRect) argument
/frameworks/base/core/java/android/widget/
H A DLinearLayout.java46 * The default orientation is horizontal.
645 * Measures the children when the orientation of this LinearLayout is set
976 * Measures the children when the orientation of this LinearLayout is set
1414 * @return the width or height of the child depending on the orientation
1473 * Position the children during a layout pass if the orientation of this
1567 * Position the children during a layout pass if the orientation of this
1708 * @param orientation Pass {@link #HORIZONTAL} or {@link #VERTICAL}. Default
1713 public void setOrientation(@OrientationMode int orientation) { argument
1714 if (mOrientation != orientation) {
1715 mOrientation = orientation;
[all...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DAppTransition.java573 int appWidth, int appHeight, int orientation, int transit, Rect containingFrame,
588 if (orientation == Configuration.ORIENTATION_PORTRAIT) {
652 if (orientation == Configuration.ORIENTATION_PORTRAIT) {
811 int appWidth, int appHeight, int orientation, Rect containingFrame, Rect contentInsets,
874 getThumbnailTransitionState(enter), appWidth, appHeight, orientation,
572 createAspectScaledThumbnailEnterExitAnimationLocked(int thumbTransitState, int appWidth, int appHeight, int orientation, int transit, Rect containingFrame, Rect contentInsets, boolean isFullScreen) argument
810 loadAnimation(WindowManager.LayoutParams lp, int transit, boolean enter, int appWidth, int appHeight, int orientation, Rect containingFrame, Rect contentInsets, boolean isFullScreen, boolean isVoiceInteraction) argument
/frameworks/native/libs/gui/
H A DSurfaceComposerClient.cpp156 status_t setOrientation(int orientation);
166 uint32_t orientation,
418 uint32_t orientation,
423 s.orientation = orientation;
626 uint32_t orientation,
629 Composer::getInstance().setDisplayProjection(token, orientation,
417 setDisplayProjection(const sp<IBinder>& token, uint32_t orientation, const Rect& layerStackRect, const Rect& displayRect) argument
625 setDisplayProjection(const sp<IBinder>& token, uint32_t orientation, const Rect& layerStackRect, const Rect& displayRect) argument
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DLinearLayoutCompat.java48 * The default orientation is horizontal.
579 * Measures the children when the orientation of this LinearLayout is set
912 * Measures the children when the orientation of this LinearLayout is set
1351 * @return the width or height of the child depending on the orientation
1410 * Position the children during a layout pass if the orientation of this
1505 * Position the children during a layout pass if the orientation of this
1646 * @param orientation Pass {@link #HORIZONTAL} or {@link #VERTICAL}. Default
1649 public void setOrientation(@OrientationMode int orientation) { argument
1650 if (mOrientation != orientation) {
1651 mOrientation = orientation;
[all...]
/frameworks/av/services/camera/libcameraservice/
H A DCameraService.cpp241 cameraInfo->orientation = info.orientation;
254 int32_t orientation = static_cast<int32_t>(info.orientation); local
255 if ((ret = shimInfo.update(ANDROID_SENSOR_ORIENTATION, &orientation, 1)) != OK) {
1667 result.appendFormat(" Orientation: %d\n", info.orientation);
/frameworks/base/core/java/android/content/res/
H A DAssetManager.java686 int orientation, int touchscreen, int density, int keyboard,
685 setConfiguration(int mcc, int mnc, String locale, int orientation, int touchscreen, int density, int keyboard, int keyboardHidden, int navigation, int screenWidth, int screenHeight, int smallestScreenWidthDp, int screenWidthDp, int screenHeightDp, int screenLayout, int uiMode, int majorVersion) argument
H A DConfiguration.java40 * as device configurations (such as input modes, screen size and screen orientation).
403 /** Constant for {@link #orientation}: a value indicating that no value has been set. */
405 /** Constant for {@link #orientation}, value corresponding to the
409 /** Constant for {@link #orientation}, value corresponding to the
417 * Overall orientation of the screen. May be one of
420 public int orientation; field in class:Configuration
636 orientation = o.orientation;
716 switch (orientation) {
720 default: sb.append(" orien="); sb.append(orientation); brea
[all...]

Completed in 806 milliseconds

123