/frameworks/base/core/java/android/hardware/display/ |
H A D | DisplayViewport.java | 39 public int orientation; field in class:DisplayViewport 58 orientation = viewport.orientation; 70 + ", orientation=" + orientation
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
H A D | ScrollbarHelper.java | 29 static int computeScrollOffset(RecyclerView.State state, OrientationHelper orientation, argument 46 final int laidOutArea = Math.abs(orientation.getDecoratedEnd(endChild) - 47 orientation.getDecoratedStart(startChild)); 52 return Math.round(itemsBefore * avgSizePerRow + (orientation.getStartAfterPadding() 53 - orientation.getDecoratedStart(startChild))); 60 static int computeScrollExtent(RecyclerView.State state, OrientationHelper orientation, argument 70 final int extend = orientation.getDecoratedEnd(endChild) 71 - orientation.getDecoratedStart(startChild); 72 return Math.min(orientation.getTotalSpace(), extend); 79 static int computeScrollRange(RecyclerView.State state, OrientationHelper orientation, argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | OrientationEventListener.java | 28 * the orientation of the device has changed. 43 * Returned from onOrientationChanged when the device orientation cannot be determined 66 * SENSOR_DELAY_NORMAL} for simple screen orientation change detection. 84 * {@link #onOrientationChanged} when the device orientation changes. 120 int orientation = ORIENTATION_UNKNOWN; 129 orientation = 90 - (int)Math.round(angle); 131 while (orientation >= 360) { 132 orientation -= 360; 134 while (orientation < 0) { 135 orientation 172 onOrientationChanged(int orientation) argument [all...] |
H A D | OrientationListener.java | 24 * the orientation of the device has changed. 33 * Returned from onOrientationChanged when the device orientation cannot be determined 56 * SENSOR_DELAY_NORMAL} for simple screen orientation change detection. 73 public void onOrientationChanged(int orientation) { argument 74 OrientationListener.this.onOrientationChanged(orientation); 80 * {@link #onOrientationChanged} when the device orientation changes. 104 * @param orientation The new orientation of the device. 108 abstract public void onOrientationChanged(int orientation); argument
|
/frameworks/av/camera/ |
H A D | CameraUtils.cpp | 42 ALOGE("%s: Can't find android.sensor.orientation in static metadata!", __FUNCTION__); 55 int orientation = entry.data.i32[0]; local 57 switch (orientation) { 71 ALOGE("%s: Invalid HAL android.sensor.orientation value: %d", 72 __FUNCTION__, orientation); 79 switch (orientation) { 97 ALOGE("%s: Invalid HAL android.sensor.orientation value: %d", 98 __FUNCTION__, orientation);
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
H A D | NavigationBar.java | 29 public NavigationBar(Context context, Density density, int orientation, boolean isRtl, argument 31 super(context, orientation, "/bars/navigation_bar.xml", "navigation_bar.xml", 42 if (orientation == LinearLayout.VERTICAL || (isRtl && !rtlEnabled)) {
|
/frameworks/base/core/java/android/hardware/ |
H A D | CameraInfo.java | 40 out.writeInt(info.orientation); 45 info.orientation = in.readInt();
|
/frameworks/native/include/ui/ |
H A D | DisplayInfo.h | 35 uint8_t orientation; member in struct:android::DisplayInfo
|
/frameworks/native/services/sensorservice/ |
H A D | OrientationSensor.cpp | 56 outEvent->orientation.azimuth = g.x; 57 outEvent->orientation.pitch = g.y; 58 outEvent->orientation.roll = g.z; 59 outEvent->orientation.status = SENSOR_STATUS_ACCURACY_HIGH;
|
/frameworks/base/core/java/android/gesture/ |
H A D | OrientedBoundingBox.java | 31 public final float orientation; field in class:OrientedBoundingBox 37 orientation = angle; 61 matrix.setRotate(orientation);
|
H A D | Instance.java | 94 float orientation = (float)Math.atan2(pts[1] - center[1], pts[0] - center[0]); 96 float adjustment = -orientation; 100 float delta = ORIENTATIONS[i] - orientation;
|
/frameworks/base/services/core/java/com/android/server/display/ |
H A D | DisplayDevice.java | 147 * @param orientation defines the display's orientation 151 * mapped to. displayRect is specified post-orientation, that is 152 * it uses the orientation seen by the end-user 154 public final void setProjectionInTransactionLocked(int orientation, argument 156 if (mCurrentOrientation != orientation 161 mCurrentOrientation = orientation; 174 orientation, layerStackRect, displayRect); 189 * Populates the specified viewport object with orientation, 193 viewport.orientation [all...] |
H A D | LogicalDisplay.java | 272 // Set the orientation. 273 // The orientation specifies how the physical coordinate system of the display 275 int orientation = Surface.ROTATION_0; 277 orientation = displayInfo.rotation; 281 orientation = (orientation + displayDeviceInfo.rotation) % 4; 288 boolean rotated = (orientation == Surface.ROTATION_90 289 || orientation == Surface.ROTATION_270); 316 device.setProjectionInTransactionLocked(orientation, mTempLayerStackRect, mTempDisplayRect);
|
/frameworks/support/v4/java/android/support/v4/print/ |
H A D | PrintHelper.java | 51 * Print the image in landscape orientation (default). 56 * Print the image in portrait orientation. 101 public void setOrientation(int orientation); argument 134 public void setOrientation(int orientation) { mOrientation = orientation; } argument 184 public void setOrientation(int orientation) { argument 185 mPrintHelper.setOrientation(orientation); 287 * @param orientation The page orientation which is one of 290 public void setOrientation(int orientation) { argument [all...] |
/frameworks/native/opengl/tests/lib/ |
H A D | WindowSurface.cpp | 47 if (mainDpyInfo.orientation != DISPLAY_ORIENTATION_0 && 48 mainDpyInfo.orientation != DISPLAY_ORIENTATION_180) {
|
/frameworks/opt/bitmap/src/com/android/bitmap/util/ |
H A D | RectUtils.java | 27 * given by the orientation. Transform the upright partial rectangle such that it would apply 31 * @param orientation The exif orientation (0, 90, 180, 270) of the original image. The 32 * transformed full and partial rectangles will be in this orientation's 37 public static void rotateRectForOrientation(final int orientation, final Rect fullRect, argument 40 // Exif orientation specifies how the camera is rotated relative to the actual subject. 42 matrix.setRotate(-orientation);
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | RenderAction.java | 360 ScreenOrientation orientation = hardwareConfig.getOrientation(); 361 if (orientation != null) { 362 switch (orientation) { 364 config.orientation = Configuration.ORIENTATION_PORTRAIT; 367 config.orientation = Configuration.ORIENTATION_LANDSCAPE; 370 config.orientation = Configuration.ORIENTATION_SQUARE; 374 config.orientation = Configuration.ORIENTATION_UNDEFINED;
|
/frameworks/base/core/jni/ |
H A D | android_content_res_Configuration.cpp | 39 jfieldID orientation; member in struct:android::__anon795 64 out->orientation = env->GetIntField(clazz, gConfigurationClassInfo.orientation); 106 GET_FIELD_ID(gConfigurationClassInfo.orientation, clazz, 107 "orientation", "I");
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | ItemAlignment.java | 42 Axis(int orientation) { argument 43 mOrientation = orientation; 162 final public void setOrientation(int orientation) { argument 163 mOrientation = orientation;
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
H A D | ConfigurationBoundResourceCacheTest.java | 82 newCnf.orientation = cfg.orientation == Configuration.ORIENTATION_LANDSCAPE ? 104 newCnf.orientation = cfg.orientation == Configuration.ORIENTATION_LANDSCAPE ? 129 newCnf.orientation = cfg.orientation == Configuration.ORIENTATION_LANDSCAPE ? 169 newCnf.orientation = cfg.orientation == Configuration.ORIENTATION_LANDSCAPE ?
|
/frameworks/opt/bitmap/src/com/android/bitmap/ |
H A D | ReusableBitmap.java | 69 public void setOrientation(final int orientation) { argument 70 mOrientation = orientation;
|
H A D | DecodeTask.java | 161 Trace.beginSection("get orientation"); 162 final int orientation; 167 Trace.beginSection("create orientation fd and stream"); 172 orientation = Exif.getOrientation(in, byteSize); 181 orientation = 0; 183 final boolean isNotRotatedOr180 = orientation == 0 || orientation == 180; 186 if (orientation != 0) { 188 // to orientation 223 // We want to calculate the sample size "as if" the orientation ha [all...] |
/frameworks/base/core/java/android/content/res/ |
H A D | Configuration.java | 40 * 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...] |
/frameworks/av/cmds/screenrecord/ |
H A D | screenrecord.cpp | 136 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/native/libs/gui/ |
H A D | LayerState.cpp | 85 output.writeInt32(orientation); 98 orientation = input.readInt32();
|