/packages/apps/Camera/src/com/android/camera/ui/ |
H A D | Rotatable.java | 21 public void setOrientation(int orientation, boolean animation); argument
|
H A D | RotateTextToast.java | 35 public RotateTextToast(Activity activity, int textResourceId, int orientation) { argument 42 mToast.setOrientation(orientation, false);
|
H A D | RotateLayout.java | 45 // happened when the view is rotated as the device's orientation 181 public void setOrientation(int orientation, boolean animation) { argument 182 orientation = orientation % 360; 183 if (mOrientation == orientation) return; 184 mOrientation = orientation;
|
H A D | FaceView.java | 46 // The orientation compensation for the face indicator to make it look 117 public void setDisplayOrientation(int orientation) { argument 118 mDisplayOrientation = orientation; 119 if (LOGV) Log.v(TAG, "mDisplayOrientation=" + orientation); 123 public void setOrientation(int orientation, boolean animation) { argument 124 mOrientation = orientation;
|
/packages/apps/LegacyCamera/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 | SharePopup.java | 103 public SharePopup(Activity activity, Uri uri, Bitmap bitmap, int orientation, argument 156 setOrientation(orientation); 162 public void setOrientation(int orientation) { argument 164 mOrientation = orientation; 174 if (orientation == 90 || orientation == 270) { 199 if (mThumbnailRotateLayout != null) mThumbnailRotateLayout.setOrientation(orientation); 205 r.setOrientation(orientation); 208 mGotoGalleryRotate.setOrientation(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 | AbstractIndicatorButton.java | 108 public void setOrientation(int orientation) { argument 109 super.setOrientation(orientation); 111 mPopup.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/Gallery2/src/com/android/gallery3d/app/ |
H A D | OrientationManager.java | 38 // If the framework orientation is locked. 42 // don't allow the orientation to be unlocked if the value is true. 64 // We can choose to lock the framework orientation or not. If we lock the 65 // framework orientation, we calculate a a compensation value according to 66 // current device orientation and send it to listeners. If we don't lock 67 // the framework orientation, we always set the compensation value to 0. 70 // Lock the framework orientation to the current device orientation 77 // Unlock the framework orientation, so it can change when the device 82 Log.d(TAG, "unlock orientation"); 116 onOrientationChanged(int orientation) argument 135 roundOrientation(int orientation, int orientationHistory) argument [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | LauncherAppWidgetHostView.java | 52 // Store the orientation in which the widget was inflated 53 mPreviousOrientation = mContext.getResources().getConfiguration().orientation; 58 int orientation = mContext.getResources().getConfiguration().orientation; 59 if (mPreviousOrientation != orientation) {
|
H A D | InfoDropTarget.java | 57 int orientation = getResources().getConfiguration().orientation; 58 if (orientation == Configuration.ORIENTATION_LANDSCAPE) {
|
/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/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/LegacyCamera/src/com/android/camera/ |
H A D | Thumbnail.java | 59 public Thumbnail(Uri uri, Bitmap bitmap, int orientation) { argument 61 mBitmap = rotateImage(bitmap, orientation); 81 private static Bitmap rotateImage(Bitmap bitmap, int orientation) { argument 82 if (orientation != 0) { 85 m.setRotate(orientation, bitmap.getWidth() * 0.5f, 176 return createThumbnail(lastMedia.uri, bitmap, lastMedia.orientation); 182 public Media(long id, int orientation, long dateTaken, Uri uri) { argument 184 this.orientation = orientation; 190 public final int orientation; field in class:Thumbnail.Media 247 createThumbnail(byte[] jpeg, int orientation, int inSampleSize, Uri uri) argument 299 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 "
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | ResourceUtils.java | 39 final int orientation = res.getConfiguration().orientation; 40 final String key = overrideResId + "-" + orientation;
|
/packages/apps/Camera/src/com/android/camera/ |
H A D | CameraModule.java | 71 public void onOrientationChanged(int orientation); argument
|
H A D | Exif.java | 95 // Get the tag and check if it is orientation. 99 int orientation = pack(jpeg, offset + 8, 2, littleEndian); 100 switch (orientation) { 110 Log.i(TAG, "Unsupported orientation");
|
H A D | Storage.java | 80 long date, Location location, int orientation, byte[] jpeg, 85 return addImage(resolver, title, date, location, orientation, 91 long date, Location location, int orientation, int jpegLength, 100 values.put(ImageColumns.ORIENTATION, orientation); 162 String title, Location location, int orientation, byte[] jpeg, 191 values.put(ImageColumns.ORIENTATION, orientation); 79 addImage(ContentResolver resolver, String title, long date, Location location, int orientation, byte[] jpeg, int width, int height) argument 90 addImage(ContentResolver resolver, String title, long date, Location location, int orientation, int jpegLength, String path, int width, int height) argument 161 updateImage(ContentResolver resolver, Uri uri, String title, Location location, int orientation, byte[] jpeg, int width, int height) argument
|