/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/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
H A D | NavigationBar.java | 44 public NavigationBar(BridgeContext context, Density density, int orientation, boolean isRtl, argument 46 this(context, density, orientation, isRtl, rtlEnabled, simulatedPlatformVersion, 50 protected NavigationBar(BridgeContext context, Density density, int orientation, boolean isRtl, argument 52 super(context, orientation, layoutPath, "navigation_bar.xml", simulatedPlatformVersion); 63 if (orientation == LinearLayout.VERTICAL || (isRtl && !rtlEnabled)) { 75 setupNavBar(context, orientation); 78 private void setupNavBar(BridgeContext context, int orientation) { argument 82 setSize(context, leftPadding, orientation, getSidePadding(sw)); 83 setSize(context, rightPadding, orientation, getSidePadding(sw)); 87 setSize(context, navButton, orientation, navButtonWidt 95 setSize(BridgeContext context, View view, int orientation, int size) argument [all...] |
/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...] |
H A D | DividerItemDecoration.java | 50 * Current orientation. Either {@link #HORIZONTAL} or {@link #VERTICAL}. 61 * @param orientation Divider orientation. Should be {@link #HORIZONTAL} or {@link #VERTICAL}. 63 public DividerItemDecoration(Context context, int orientation) { argument 67 setOrientation(orientation); 71 * Sets the orientation for this divider. This should be called if 72 * {@link RecyclerView.LayoutManager} changes orientation. 74 * @param orientation {@link #HORIZONTAL} or {@link #VERTICAL} 76 public void setOrientation(int orientation) { argument 77 if (orientation ! [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 | 43 ALOGE("%s: Can't find android.sensor.orientation in static metadata!", __FUNCTION__); 56 int orientation = entry.data.i32[0]; local 58 switch (orientation) { 72 ALOGE("%s: Invalid HAL android.sensor.orientation value: %d", 73 __FUNCTION__, orientation); 80 switch (orientation) { 98 ALOGE("%s: Invalid HAL android.sensor.orientation value: %d", 99 __FUNCTION__, orientation);
|
/frameworks/native/services/sensorservice/ |
H A D | OrientationSensor.cpp | 62 outEvent->orientation.azimuth = g.x; 63 outEvent->orientation.pitch = g.y; 64 outEvent->orientation.roll = g.z; 65 outEvent->orientation.status = SENSOR_STATUS_ACCURACY_HIGH;
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | ItemAlignment.java | 37 Axis(int orientation) { argument 38 mOrientation = orientation; 67 final public void setOrientation(int orientation) { argument 68 mOrientation = orientation;
|
/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/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 | 159 * @param orientation defines the display's orientation 163 * mapped to. displayRect is specified post-orientation, that is 164 * it uses the orientation seen by the end-user 166 public final void setProjectionInTransactionLocked(int orientation, argument 168 if (mCurrentOrientation != orientation 173 mCurrentOrientation = orientation; 186 orientation, layerStackRect, displayRect); 201 * Populates the specified viewport object with orientation, 205 viewport.orientation [all...] |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
H A D | LinearLayoutManagerWrapContentWithAspectRatioTest.java | 59 for (int orientation : new int[]{VERTICAL, HORIZONTAL}) { 64 new BaseLinearLayoutManagerTest.Config(orientation, 73 new BaseLinearLayoutManagerTest.Config(orientation, 76 HORIZONTAL == orientation, 77 VERTICAL == orientation), 83 new BaseLinearLayoutManagerTest.Config(orientation, 86 VERTICAL == orientation, 87 HORIZONTAL == orientation), 93 new BaseLinearLayoutManagerTest.Config(orientation,
|
H A D | BaseGridLayoutManagerTest.java | 63 for (int orientation : new int[]{VERTICAL, HORIZONTAL}) { 66 variations.add(new Config(spanCount, orientation, reverseLayout)); 118 public Config(int spanCount, int orientation, boolean reverseLayout) { argument 120 mOrientation = orientation; 124 Config orientation(int orientation) { argument 125 mOrientation = orientation; 168 public WrappedGridLayoutManager(Context context, int spanCount, int orientation, argument 170 super(context, spanCount, orientation, reverseLayout); 188 public void setOrientation(int orientation) { argument [all...] |
H A D | LinearLayoutManagerWrapContentTest.java | 122 for (int orientation : new int[]{VERTICAL, HORIZONTAL}) { 127 new Config(orientation, reverseLayout, stackFromBottom), 133 new Config(orientation, reverseLayout, stackFromBottom), 134 new WrapContentConfig(HORIZONTAL == orientation, 135 VERTICAL == orientation, new Rect(padding))
|
H A D | GridLayoutManagerCachedBordersTest.java | 72 for (int orientation : new int[]{VERTICAL, HORIZONTAL}) { 75 Config config = new Config(spanCounts[i], orientation, reverseLayout);
|
/frameworks/base/tools/aapt/tests/ |
H A D | ResourceTable_test.cpp | 32 landConfig.orientation = ResTable_config::ORIENTATION_LAND; 35 sw600dpLandConfig.orientation = ResTable_config::ORIENTATION_LAND;
|
/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/support/core-utils/java/android/support/v4/print/ |
H A D | PrintHelper.java | 52 * Print the image in landscape orientation (default). 57 * Print the image in portrait orientation. 102 public void setOrientation(int orientation); argument 135 public void setOrientation(int orientation) { mOrientation = orientation; } argument 186 public void setOrientation(int orientation) { argument 187 mPrintHelper.setOrientation(orientation); 334 * @param orientation The page orientation which is one of 337 public void setOrientation(int orientation) { argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_content_res_Configuration.cpp | 41 jfieldID orientation; member in struct:android::__anon866 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 D | ConfigurationBoundResourceCacheTest.java | 89 newCnf.orientation = cfg.orientation == Configuration.ORIENTATION_LANDSCAPE ? 112 newCnf.orientation = cfg.orientation == Configuration.ORIENTATION_LANDSCAPE ? 138 newCnf.orientation = cfg.orientation == Configuration.ORIENTATION_LANDSCAPE ? 180 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;
|