Home
last modified time | relevance | path

Searched refs:mOrientation (Results 1 – 25 of 36) sorted by relevance

12

/packages/apps/Gallery2/src/com/android/camera/ui/
DRotateLayout.java38 private int mOrientation; field in RotateLayout
66 switch (mOrientation) { in onLayout()
83 switch (mOrientation) { in dispatchTouchEvent()
97 mMatrix.postRotate(mOrientation); in dispatchTouchEvent()
111 switch (mOrientation) { in dispatchDraw()
125 canvas.rotate(-mOrientation, 0, 0); in dispatchDraw()
135 switch(mOrientation) { in onMeasure()
152 switch (mOrientation) { in onMeasure()
170 mChild.setRotation(-mOrientation); in onMeasure()
183 if (mOrientation == orientation) return; in setOrientation()
[all …]
DFaceView.java50 private int mOrientation; field in FaceView
127 mOrientation = orientation; in setOrientation()
209 mMatrix.postRotate(mOrientation); // postRotate is clockwise in onDraw()
210 canvas.rotate(-mOrientation); // rotate is counter-clockwise (for canvas) in onDraw()
/packages/apps/Camera/src/com/android/camera/ui/
DRotateLayout.java38 private int mOrientation; field in RotateLayout
66 switch (mOrientation) { in onLayout()
83 switch (mOrientation) { in dispatchTouchEvent()
97 mMatrix.postRotate(mOrientation); in dispatchTouchEvent()
111 switch (mOrientation) { in dispatchDraw()
125 canvas.rotate(-mOrientation, 0, 0); in dispatchDraw()
135 switch(mOrientation) { in onMeasure()
152 switch (mOrientation) { in onMeasure()
170 mChild.setRotation(-mOrientation); in onMeasure()
183 if (mOrientation == orientation) return; in setOrientation()
[all …]
DFaceView.java49 private int mOrientation; field in FaceView
124 mOrientation = orientation; in setOrientation()
198 mMatrix.postRotate(mOrientation); // postRotate is clockwise in onDraw()
199 canvas.rotate(-mOrientation); // rotate is counter-clockwise (for canvas) in onDraw()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DRotateLayout.java28 private int mOrientation; field in RotateLayout
52 switch (mOrientation) { in onLayout()
67 switch(mOrientation) { in onMeasure()
83 switch (mOrientation) { in onMeasure()
101 mChild.setRotation(-mOrientation); in onMeasure()
107 if (mOrientation == orientation) return; in setOrientation()
108 mOrientation = orientation; in setOrientation()
DFaceView.java40 private int mOrientation; field in FaceView
72 mOrientation = orientation; in setOrientation()
129 mMatrix.postRotate(mOrientation); // postRotate is clockwise in onDraw()
130 canvas.rotate(-mOrientation); // rotate is counter-clockwise (for canvas) in onDraw()
DSecondLevelIndicatorControlBar.java41 int mOrientation = 0; field in SecondLevelIndicatorControlBar
65 if (mOrientation != 0) setOrientation(mOrientation); in initialize()
167 mOrientation = orientation; in setOrientation()
DZoomControlBar.java63 if (mOrientation == 90) { in getSliderPosition()
120 if ((orientation == 90) || (mOrientation == 90)) requestLayout(); in setOrientation()
139 if (mOrientation == 90) { in onLayout()
DSharePopup.java62 private int mOrientation; field in SharePopup
85 r.setOrientation(mOrientation); in getView()
164 mOrientation = orientation; in setOrientation()
/packages/apps/Phone/src/com/android/phone/
DAccelerometerListener.java42 private int mOrientation; field in AccelerometerListener
76 mOrientation = ORIENTATION_UNKNOWN; in enable()
99 if (mOrientation != orientation) { in setOrientation()
148 mOrientation = mPendingOrientation;
151 (mOrientation == ORIENTATION_HORIZONTAL ? "horizontal"
152 : (mOrientation == ORIENTATION_VERTICAL ? "vertical"
155 mListener.orientationChanged(mOrientation);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKeyboardId.java62 public final int mOrientation; field in KeyboardId
80 mOrientation = params.mOrientation; in KeyboardId()
104 id.mOrientation, in computeHashCode()
126 return other.mOrientation == mOrientation in equals()
188 final String orientation = (mOrientation == Configuration.ORIENTATION_PORTRAIT) in toString()
/packages/apps/Gallery2/src/com/android/camera/
DVideoModule.java185 private int mOrientation = OrientationEventListener.ORIENTATION_UNKNOWN; field in VideoModule
446 mOrientation).show(); in onSingleTapUp()
462 int rotation = Util.getJpegRotation(mCameraId, mOrientation); in onSingleTapUp()
513 int newOrientation = Util.roundOrientation(orientation, mOrientation); in onOrientationChanged()
515 if (mOrientation != newOrientation) { in onOrientationChanged()
516 mOrientation = newOrientation; in onOrientationChanged()
523 mEffectsRecorder.setOrientationHint(mOrientation); in onOrientationChanged()
1206 if (mOrientation != OrientationEventListener.ORIENTATION_UNKNOWN) { in initializeRecorder()
1209 rotation = (info.orientation - mOrientation + 360) % 360; in initializeRecorder()
1211 rotation = (info.orientation + mOrientation) % 360; in initializeRecorder()
[all …]
DPreviewGestures.java68 private int mOrientation; field in PreviewGestures
110 mOrientation = orientation; in setOrientation()
299 switch (mOrientation) { in getSwipeDirection()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/
DImageLoader.java76 private int mOrientation = 0; field in ImageLoader
122 mOrientation = getOrientation(mContext, uri); in loadBitmap()
208 if (mOrientation > 1) { in updateBitmaps()
209 mOriginalBitmapSmall = rotateToPortrait(mOriginalBitmapSmall, mOrientation); in updateBitmaps()
210 mOriginalBitmapLarge = rotateToPortrait(mOriginalBitmapLarge, mOrientation); in updateBitmaps()
212 mOriginalBitmapHighres = rotateToPortrait(mOriginalBitmapHighres, mOrientation); in updateBitmaps()
215 mZoomOrientation = mOrientation; in updateBitmaps()
/packages/apps/Browser/src/com/android/browser/
DNavScreen.java68 int mOrientation; field in NavScreen
77 mOrientation = activity.getResources().getConfiguration().orientation; in NavScreen()
101 if (newconfig.orientation != mOrientation) { in onConfigurationChanged()
104 mOrientation = newconfig.orientation; in onConfigurationChanged()
130 mScroller.setOrientation(mOrientation == Configuration.ORIENTATION_LANDSCAPE in init()
/packages/apps/LegacyCamera/src/com/android/camera/
DVideoCamera.java251 private int mOrientation = OrientationEventListener.ORIENTATION_UNKNOWN; field in VideoCamera
552 mOrientation = Util.roundOrientation(orientation, mOrientation); in onOrientationChanged()
555 int orientationCompensation = mOrientation in onOrientationChanged()
1249 if (mOrientation != OrientationEventListener.ORIENTATION_UNKNOWN) { in initializeRecorder()
1252 rotation = (info.orientation - mOrientation + 360) % 360; in initializeRecorder()
1254 rotation = (info.orientation + mOrientation) % 360; in initializeRecorder()
1299 if (mOrientation != OrientationEventListener.ORIENTATION_UNKNOWN) { in initializeEffectsPreview()
2370 mOrientation).show(); in onTouch()
2380 Util.setRotationParameter(mParameters, mCameraId, mOrientation); in onTouch()
2469 new RotateTextToast(this, R.string.video_snapshot_hint, mOrientation) in showTapToSnapshotToast()
/packages/apps/Camera/src/com/android/camera/
DVideoModule.java232 private int mOrientation = OrientationEventListener.ORIENTATION_UNKNOWN; field in VideoModule
557 int newOrientation = Util.roundOrientation(orientation, mOrientation); in onOrientationChanged()
559 if (mOrientation != newOrientation) { in onOrientationChanged()
560 mOrientation = newOrientation; in onOrientationChanged()
567 mEffectsRecorder.setOrientationHint(mOrientation); in onOrientationChanged()
1239 if (mOrientation != OrientationEventListener.ORIENTATION_UNKNOWN) { in initializeRecorder()
1242 rotation = (info.orientation - mOrientation + 360) % 360; in initializeRecorder()
1244 rotation = (info.orientation + mOrientation) % 360; in initializeRecorder()
1305 if (mOrientation != OrientationEventListener.ORIENTATION_UNKNOWN) { in initializeEffectsPreview()
1306 orientation = mOrientation; in initializeEffectsPreview()
[all …]
DPreviewGestures.java61 private int mOrientation; field in PreviewGestures
93 mOrientation = orientation; in setOrientation()
247 switch (mOrientation) { in isSwipe()
/packages/apps/Launcher2/src/com/android/launcher2/
DHandleView.java33 private int mOrientation = ORIENTATION_HORIZONTAL; field in HandleView
47 mOrientation = a.getInt(R.styleable.HandleView_direction, ORIENTATION_HORIZONTAL); in HandleView()
59 return (mOrientation == ORIENTATION_HORIZONTAL && direction == FOCUS_DOWN) ? in focusSearch()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/state/
DStateAdapter.java35 private int mOrientation; field in StateAdapter
54 view.setOrientation(mOrientation); in getView()
77 mOrientation = orientation; in setOrientation()
DStateView.java54 private int mOrientation = LinearLayout.VERTICAL; field in StateView
157 if (mOrientation == LinearLayout.HORIZONTAL) { in onDraw()
263 mOrientation = orientation; in setOrientation()
/packages/apps/Calendar/src/com/android/calendar/
DAllInOneActivity.java161 int mOrientation; field in AllInOneActivity
365 mOrientation = res.getConfiguration().orientation; in onCreate()
366 if (mOrientation == Configuration.ORIENTATION_LANDSCAPE) { in onCreate()
415 if (mIsTabletConfig && mOrientation == Configuration.ORIENTATION_PORTRAIT) { in onCreate()
818 if (mOrientation == Configuration.ORIENTATION_LANDSCAPE) { in setControlsOffset()
1098 int animationSize = (mOrientation == Configuration.ORIENTATION_LANDSCAPE) ? in handleEvent()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoCarousel.java57 private int mOrientation; field in PhotoCarousel
215 } else if (orientation == mOrientation) { in setScaleType()
282 mOrientation = (mWidth > mHeight ? LANDSCAPE : PORTRAIT); in onLayout()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropActivity.java252 int mOrientation; field in CropActivity.LoadBitmapTask
258 mOrientation = 0; in LoadBitmapTask()
266 mOrientation = CropLoader.getMetadataRotation(uri, mContext); in doInBackground()
272 doneLoadBitmap(result, new RectF(mOriginalBounds), mOrientation); in onPostExecute()
/packages/apps/Calendar/src/com/android/calendar/month/
DMonthByWeekAdapter.java57 protected int mOrientation = Configuration.ORIENTATION_LANDSCAPE; field in MonthByWeekAdapter
243 drawingParams.put(MonthWeekEventsView.VIEW_PARAMS_ORIENTATION, mOrientation); in getView()
282 mOrientation = mContext.getResources().getConfiguration().orientation; in refresh()

12