/packages/apps/Camera/src/com/android/camera/ui/ |
H A D | Rotatable.java | 20 public void setOrientation(int orientation); argument
|
H A D | RotateLayout.java | 34 // happened when the view is rotated as the device's orientation 105 public void setOrientation(int orientation) { argument 106 orientation = orientation % 360; 107 if (mOrientation == orientation) return; 108 mOrientation = orientation;
|
H A D | RotateTextToast.java | 35 public RotateTextToast(Activity activity, int textResourceId, int orientation) { argument 42 mToast.setOrientation(orientation);
|
H A D | FaceView.java | 37 // The orientation compensation for the face indicator to make it look 66 public void setDisplayOrientation(int orientation) { argument 67 mDisplayOrientation = orientation; 68 if (LOGV) Log.v(TAG, "mDisplayOrientation=" + orientation); 71 public void setOrientation(int orientation) { argument 72 mOrientation = orientation;
|
H A D | ZoomControlBar.java | 118 public void setOrientation(int orientation) { argument 120 if ((orientation == 90) || (mOrientation == 90)) requestLayout(); 121 super.setOrientation(orientation);
|
H A D | SharePopup.java | 105 public SharePopup(Activity activity, Uri uri, Bitmap bitmap, int orientation, argument 158 setOrientation(orientation); 193 public void setOrientation(int orientation) { argument 194 mOrientation = orientation; 204 if (orientation == 90 || orientation == 270) { 229 if (mThumbnailRotateLayout != null) mThumbnailRotateLayout.setOrientation(orientation); 235 r.setOrientation(orientation); 238 mGotoGalleryRotate.setOrientation(orientation);
|
H A D | AbstractIndicatorButton.java | 108 public void setOrientation(int orientation) { argument 109 super.setOrientation(orientation); 111 mPopup.setOrientation(orientation);
|
H A D | IndicatorControlBarContainer.java | 78 public void setOrientation(int orientation) { argument 79 mIndicatorControlBar.setOrientation(orientation); 80 mSecondLevelIndicatorControlBar.setOrientation(orientation);
|
H A D | ZoomControl.java | 210 public void setOrientation(int orientation) { argument 211 mOrientation = orientation; 216 ((RotateImageView) view).setOrientation(orientation);
|
/packages/apps/Phone/src/com/android/phone/ |
H A D | AccelerometerListener.java | 30 * orientation of the phone. The client of this class is notified when 31 * the orientation changes between horizontal and vertical. 41 // mOrientation is the orientation value most recently reported to the client. 44 // mPendingOrientation is the latest orientation computed based on the sensor value. 51 // Device orientation 63 public void orientationChanged(int orientation); argument 87 private void setOrientation(int orientation) { argument 89 if (mPendingOrientation == orientation) { 90 // Pending orientation has not changed, so do nothing. 96 // if the orientation ha [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
H A D | MovieView.java | 57 int orientation = intent.getIntExtra( 60 if (orientation != getRequestedOrientation()) { 61 setRequestedOrientation(orientation);
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
H A D | SuggestTestsBase.java | 41 protected KeyboardId createKeyboardId(Locale locale, int orientation) { argument 44 if (orientation == Configuration.ORIENTATION_LANDSCAPE) { 46 } else if (orientation == Configuration.ORIENTATION_PORTRAIT) { 50 + "orientation=" + orientation); 54 com.android.inputmethod.latin.R.xml.kbd_qwerty, locale, orientation, width,
|
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
H A D | Environment.java | 118 if (mConfig.orientation != newConfig.orientation) { 167 if (Configuration.ORIENTATION_LANDSCAPE == mConfig.orientation) { 186 if (Configuration.ORIENTATION_PORTRAIT == mConfig.orientation) { 188 } else if (Configuration.ORIENTATION_LANDSCAPE == mConfig.orientation) {
|
/packages/apps/Camera/src/com/android/camera/ |
H A D | Thumbnail.java | 55 public Thumbnail(Uri uri, Bitmap bitmap, int orientation) { argument 57 mBitmap = rotateImage(bitmap, orientation); 77 private static Bitmap rotateImage(Bitmap bitmap, int orientation) { argument 78 if (orientation != 0) { 81 m.setRotate(orientation, bitmap.getWidth() * 0.5f, 168 return createThumbnail(lastMedia.uri, bitmap, lastMedia.orientation); 174 public Media(long id, int orientation, long dateTaken, Uri uri) { argument 176 this.orientation = orientation; 182 public final int orientation; field in class:Thumbnail.Media 239 createThumbnail(byte[] jpeg, int orientation, int inSampleSize, Uri uri) argument 291 createThumbnail(Uri uri, Bitmap bitmap, int orientation) argument [all...] |
H A D | Exif.java | 94 // Get the tag and check if it is orientation. 98 int orientation = pack(jpeg, offset + 8, 2, littleEndian); 99 switch (orientation) { 109 Log.i(TAG, "Unsupported orientation");
|
H A D | Util.java | 345 result = (info.orientation + degrees) % 360; 348 result = (info.orientation - degrees + 360) % 360; 356 return info.orientation; 359 public static int roundOrientation(int orientation, int orientationHistory) { argument 364 int dist = Math.abs(orientation - orientationHistory); 369 return ((orientation + 45) / 90 * 90) % 360; 384 // layout the viewfinder in the portrait orientation and thus get the 618 public static void setRotationParameter(Parameters parameters, int cameraId, int orientation) { argument 622 if (orientation != OrientationEventListener.ORIENTATION_UNKNOWN) { 625 rotation = (info.orientation [all...] |
/packages/apps/Gallery/src/com/android/camera/gallery/ |
H A D | Image.java | 110 int orientation = ExifInterface.ORIENTATION_NORMAL; 113 orientation = ExifInterface.ORIENTATION_NORMAL; 116 orientation = ExifInterface.ORIENTATION_ROTATE_90; 119 orientation = ExifInterface.ORIENTATION_ROTATE_180; 122 orientation = ExifInterface.ORIENTATION_ROTATE_270; 127 Integer.toString(orientation)); 130 Log.e(TAG, "unable to save exif data with new orientation "
|
H A D | ImageList.java | 128 int orientation = cursor.getInt(INDEX_ORIENTATION); 136 orientation);
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | InfoDropTarget.java | 62 int orientation = getResources().getConfiguration().orientation; 63 if (orientation == Configuration.ORIENTATION_LANDSCAPE) {
|
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/ |
H A D | BitmapUtils.java | 128 int orientation = 0; 133 orientation = cursor.getInt(INDEX_ORIENTATION); 136 // Ignore error for no orientation column; just use the default orientation value 0. 142 return orientation; 197 * Gets decoded bitmap that keeps orientation as well. 202 // Rotate the decoded bitmap according to its orientation if it's necessary. 204 int orientation = getOrientation(uri); 205 if (orientation != 0) { 207 m.setRotate(orientation); [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
H A D | MovieActivity.java | 73 int orientation = intent.getIntExtra( 76 if (orientation != getRequestedOrientation()) { 77 setRequestedOrientation(orientation);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
H A D | KeyboardId.java | 65 public KeyboardId(String xmlName, int xmlId, Locale locale, int orientation, int width, argument 71 this.mOrientation = orientation; 96 orientation,
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | Exif.java | 111 // Get the tag and check if it is orientation. 115 int orientation = pack(jpeg, offset + 8, 2, littleEndian); 116 switch (orientation) { 126 Log.i(TAG, "Unsupported orientation");
|
/packages/apps/Mms/src/com/android/mms/layout/ |
H A D | LayoutManager.java | 46 configuration.orientation == Configuration.ORIENTATION_PORTRAIT
|
/packages/apps/Camera/src/com/android/camera/panorama/ |
H A D | PanoramaActivity.java | 209 public void onOrientationChanged(int orientation) { argument 210 // We keep the last known orientation. So if the user first orient 212 // the correct orientation. 213 if (orientation == ORIENTATION_UNKNOWN) return; 214 mDeviceOrientation = Util.roundOrientation(orientation, mDeviceOrientation); 815 // natural orientation of a camera. We need to set an orientation for the image 817 // The orientation is calculated from compensating the 818 // device orientation at capture and the camera orientation respectiv 909 savePanorama(byte[] jpegData, int width, int height, int orientation) argument 932 getExifOrientation(int orientation) argument [all...] |