/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/base/core/java/com/android/internal/widget/ |
H A D | ScrollbarHelper.java | 30 static int computeScrollOffset(RecyclerView.State state, OrientationHelper orientation, argument 47 final int laidOutArea = Math.abs(orientation.getDecoratedEnd(endChild) 48 - orientation.getDecoratedStart(startChild)); 53 return Math.round(itemsBefore * avgSizePerRow + (orientation.getStartAfterPadding() 54 - orientation.getDecoratedStart(startChild))); 61 static int computeScrollExtent(RecyclerView.State state, OrientationHelper orientation, argument 71 final int extend = orientation.getDecoratedEnd(endChild) 72 - orientation.getDecoratedStart(startChild); 73 return Math.min(orientation.getTotalSpace(), extend); 80 static int computeScrollRange(RecyclerView.State state, OrientationHelper orientation, 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 | 51 * Current orientation. Either {@link #HORIZONTAL} or {@link #VERTICAL}. 62 * @param orientation Divider orientation. Should be {@link #HORIZONTAL} or {@link #VERTICAL}. 64 public DividerItemDecoration(Context context, int orientation) { argument 72 setOrientation(orientation); 76 * Sets the orientation for this divider. This should be called if 77 * {@link RecyclerView.LayoutManager} changes orientation. 79 * @param orientation {@link #HORIZONTAL} or {@link #VERTICAL} 81 public void setOrientation(int orientation) { argument 82 if (orientation ! [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | ItemAlignment.java | 33 Axis(int orientation) { argument 34 mOrientation = orientation; 63 final public void setOrientation(int orientation) { argument 64 mOrientation = orientation;
|
/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/base/core/java/android/hardware/display/ |
H A D | DisplayViewport.java | 40 public int orientation; field in class:DisplayViewport 62 orientation = viewport.orientation; 89 orientation == other.orientation && 103 result += prime * result + orientation; 118 + ", orientation=" + orientation
|
/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/base/packages/SystemUI/src/com/android/systemui/recents/model/ |
H A D | ThumbnailData.java | 30 public int orientation; field in class:ThumbnailData 39 out.orientation = snapshot.getOrientation();
|
/frameworks/base/proto/src/ |
H A D | task_snapshot.proto | 25 int32 orientation = 1;
|
/frameworks/native/include/ui/ |
H A D | DisplayInfo.h | 34 uint8_t orientation{0};
|
/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/native/include/input/ |
H A D | DisplayViewport.h | 31 int32_t orientation; member in struct:android::DisplayViewport 45 displayId(ADISPLAY_ID_NONE), orientation(DISPLAY_ORIENTATION_0), 53 && orientation == other.orientation 77 orientation = DISPLAY_ORIENTATION_0;
|
/frameworks/base/core/java/android/hardware/ |
H A D | CameraInfo.java | 40 out.writeInt(info.orientation); 45 info.orientation = in.readInt();
|
/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 | 60 for (int orientation : new int[]{VERTICAL, HORIZONTAL}) { 65 new BaseLinearLayoutManagerTest.Config(orientation, 74 new BaseLinearLayoutManagerTest.Config(orientation, 77 HORIZONTAL == orientation, 78 VERTICAL == orientation), 84 new BaseLinearLayoutManagerTest.Config(orientation, 87 VERTICAL == orientation, 88 HORIZONTAL == orientation), 94 new BaseLinearLayoutManagerTest.Config(orientation,
|
H A D | BaseGridLayoutManagerTest.java | 64 for (int orientation : new int[]{VERTICAL, HORIZONTAL}) { 67 variations.add(new Config(spanCount, orientation, reverseLayout)); 119 public Config(int spanCount, int orientation, boolean reverseLayout) { argument 121 mOrientation = orientation; 125 Config orientation(int orientation) { argument 126 mOrientation = orientation; 169 public WrappedGridLayoutManager(Context context, int spanCount, int orientation, argument 171 super(context, spanCount, orientation, reverseLayout); 189 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))
|
/frameworks/base/core/proto/android/content/ |
H A D | configuration.proto | 40 uint32 orientation = 11;
|
/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);
|