Searched refs:orientation (Results 1 - 25 of 139) sorted by relevance

123456

/frameworks/base/core/java/android/hardware/display/
H A DDisplayViewport.java39 public int orientation; field in class:DisplayViewport
58 orientation = viewport.orientation;
70 + ", orientation=" + orientation
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
H A DRecentsAppWidgetHostView.java36 // Store the orientation in which the widget was inflated
50 * Updates the last orientation that this widget was inflated.
53 mPreviousOrientation = mContext.getResources().getConfiguration().orientation;
57 * @return whether the search widget was updated while Recents was in a different orientation
61 // Re-inflate is required if the orientation has changed since last inflated.
62 int orientation = mContext.getResources().getConfiguration().orientation;
63 if (mPreviousOrientation != orientation) {
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DScrollbarHelper.java29 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 DOrientationEventListener.java28 * 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 DOrientationListener.java24 * 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 DCameraUtils.cpp42 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 DNavigationBar.java63 public NavigationBar(BridgeContext context, Density density, int orientation, boolean isRtl, argument
65 super(context, orientation, getShortestWidth(context)>= 600 ? LAYOUT_600DP_XML : LAYOUT_XML,
77 if (orientation == LinearLayout.VERTICAL || (isRtl && !rtlEnabled)) {
89 setupNavBar(context, orientation);
92 private void setupNavBar(BridgeContext context, int orientation) { argument
96 setSize(context, leftPadding, orientation, getSidePadding(sw));
97 setSize(context, rightPadding, orientation, getSidePadding(sw));
101 setSize(context, navButton, orientation, navButtonWidth);
104 setSize(context, getChildAt(2), orientation, 128);
105 setSize(context, getChildAt(4), orientation, 12
109 setSize(BridgeContext context, View view, int orientation, int size) argument
[all...]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DItemAlignment.java37 Axis(int orientation) { argument
38 mOrientation = orientation;
67 final public void setOrientation(int orientation) { argument
68 mOrientation = orientation;
H A DItemAlignmentFacetHelper.java35 int orientation) {
45 if (orientation == HORIZONTAL) {
34 getAlignmentPosition(View itemView, ItemAlignmentFacet.ItemAlignmentDef facet, int orientation) argument
/frameworks/base/core/java/android/hardware/
H A DCameraInfo.java40 out.writeInt(info.orientation);
45 info.orientation = in.readInt();
/frameworks/native/include/ui/
H A DDisplayInfo.h35 uint8_t orientation; member in struct:android::DisplayInfo
/frameworks/native/services/sensorservice/
H A DOrientationSensor.cpp56 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 DOrientedBoundingBox.java31 public final float orientation; field in class:OrientedBoundingBox
37 orientation = angle;
61 matrix.setRotate(orientation);
H A DInstance.java94 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 DDisplayDevice.java154 * @param orientation defines the display's orientation
158 * mapped to. displayRect is specified post-orientation, that is
159 * it uses the orientation seen by the end-user
161 public final void setProjectionInTransactionLocked(int orientation, argument
163 if (mCurrentOrientation != orientation
168 mCurrentOrientation = orientation;
181 orientation, layerStackRect, displayRect);
196 * Populates the specified viewport object with orientation,
200 viewport.orientation
[all...]
H A DLogicalDisplay.java294 // Set the orientation.
295 // The orientation specifies how the physical coordinate system of the display
297 int orientation = Surface.ROTATION_0;
299 orientation = displayInfo.rotation;
303 orientation = (orientation + displayDeviceInfo.rotation) % 4;
310 boolean rotated = (orientation == Surface.ROTATION_90
311 || orientation == Surface.ROTATION_270);
345 device.setProjectionInTransactionLocked(orientation, mTempLayerStackRect, mTempDisplayRect);
/frameworks/support/v4/java/android/support/v4/print/
H A DPrintHelper.java51 * 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/base/tools/aapt/tests/
H A DResourceTable_test.cpp32 landConfig.orientation = ResTable_config::ORIENTATION_LAND;
35 sw600dpLandConfig.orientation = ResTable_config::ORIENTATION_LAND;
/frameworks/native/opengl/tests/lib/
H A DWindowSurface.cpp47 if (mainDpyInfo.orientation != DISPLAY_ORIENTATION_0 &&
48 mainDpyInfo.orientation != DISPLAY_ORIENTATION_180) {
/frameworks/opt/bitmap/src/com/android/bitmap/util/
H A DRectUtils.java27 * 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/core/jni/
H A Dandroid_content_res_Configuration.cpp41 jfieldID orientation; member in struct:android::__anon828
66 out->orientation = env->GetIntField(clazz, gConfigurationClassInfo.orientation);
90 gConfigurationClassInfo.orientation = GetFieldIDOrDie(env, clazz, "orientation", "I");
/frameworks/base/core/tests/coretests/src/android/content/res/
H A DConfigurationBoundResourceCacheTest.java82 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 DReusableBitmap.java69 public void setOrientation(final int orientation) { argument
70 mOrientation = orientation;
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DRenderAction.java367 ScreenOrientation orientation = hardwareConfig.getOrientation();
368 if (orientation != null) {
369 switch (orientation) {
371 config.orientation = Configuration.ORIENTATION_PORTRAIT;
374 config.orientation = Configuration.ORIENTATION_LANDSCAPE;
378 config.orientation = Configuration.ORIENTATION_SQUARE;
382 config.orientation = Configuration.ORIENTATION_UNDEFINED;
/frameworks/base/core/java/android/content/res/
H A DConfiguration.java40 * as device configurations (such as input modes, screen size and screen orientation).
432 /** Constant for {@link #orientation}: a value indicating that no value has been set. */
434 /** Constant for {@link #orientation}, value corresponding to the
438 /** Constant for {@link #orientation}, value corresponding to the
446 * Overall orientation of the screen. May be one of
449 public int orientation; field in class:Configuration
665 orientation = o.orientation;
745 switch (orientation) {
749 default: sb.append(" orien="); sb.append(orientation); brea
[all...]

Completed in 1089 milliseconds

123456