/frameworks/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/main/java/androidx/recyclerview/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 | 52 * Current orientation. Either {@link #HORIZONTAL} or {@link #VERTICAL}. 63 * @param orientation Divider orientation. Should be {@link #HORIZONTAL} or {@link #VERTICAL}. 65 public DividerItemDecoration(Context context, int orientation) { argument 73 setOrientation(orientation); 77 * Sets the orientation for this divider. This should be called if 78 * {@link RecyclerView.LayoutManager} changes orientation. 80 * @param orientation {@link #HORIZONTAL} or {@link #VERTICAL} 82 public void setOrientation(int orientation) { argument 83 if (orientation ! [all...] |
/frameworks/support/leanback/src/main/java/androidx/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; 92 && orientation == other.orientation 106 result += prime * result + orientation; 121 + ", 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/statusbar/policy/ |
H A D | RemoteInputQuickSettingsDisabler.java | 45 mLastOrientation = mContext.getResources().getConfiguration().orientation; 66 if (newConfig.orientation != mLastOrientation) { 67 misLandscape = newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE; 68 mLastOrientation = newConfig.orientation;
|
/frameworks/native/include/ui/ |
H A D | DisplayInfo.h | 34 uint8_t orientation{0};
|
/frameworks/native/libs/ui/include/ui/ |
H A D | DisplayInfo.h | 34 uint8_t orientation{0};
|
/frameworks/native/libs/ui/include_vndk/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/proto/src/ |
H A D | task_snapshot.proto | 25 int32 orientation = 1;
|
/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/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/ |
H A D | ThumbnailData.java | 32 public int orientation; field in class:ThumbnailData 43 orientation = ORIENTATION_UNDEFINED; 56 orientation = snapshot.getOrientation();
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
H A D | RemoteInputQuickSettingsDisablerTest.java | 74 c.orientation = Configuration.ORIENTATION_PORTRAIT; 76 c.orientation = Configuration.ORIENTATION_LANDSCAPE; 85 c.orientation = Configuration.ORIENTATION_LANDSCAPE; 87 c.orientation = Configuration.ORIENTATION_PORTRAIT;
|
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/ |
H A D | LinearLayoutManagerWrapContentWithAspectRatioTest.java | 61 for (int orientation : new int[]{VERTICAL, HORIZONTAL}) { 66 new BaseLinearLayoutManagerTest.Config(orientation, 75 new BaseLinearLayoutManagerTest.Config(orientation, 78 HORIZONTAL == orientation, 79 VERTICAL == orientation), 85 new BaseLinearLayoutManagerTest.Config(orientation, 88 VERTICAL == orientation, 89 HORIZONTAL == orientation), 95 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...] |
/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/layoutlib/remote/common/src/com/android/layout/remote/api/ |
H A D | RemoteHardwareConfig.java | 53 float ydpi, ScreenSize screenSize, ScreenOrientation orientation, 61 mOrientation = orientation; 52 RemoteHardwareConfig(int screenWidth, int screenHeight, Density density, float xdpi, float ydpi, ScreenSize screenSize, ScreenOrientation orientation, ScreenRound screenRoundness, boolean hasSoftwareButtons) argument
|