/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
D | NavigationBar.java | 44 public NavigationBar(BridgeContext context, Density density, int orientation, boolean isRtl, in NavigationBar() argument 46 this(context, density, orientation, isRtl, rtlEnabled, simulatedPlatformVersion, in NavigationBar() 50 protected NavigationBar(BridgeContext context, Density density, int orientation, boolean isRtl, in NavigationBar() argument 52 super(context, orientation, layoutPath, "navigation_bar.xml", simulatedPlatformVersion); in NavigationBar() 63 if (orientation == LinearLayout.VERTICAL || (isRtl && !rtlEnabled)) { in NavigationBar() 75 setupNavBar(context, orientation); in NavigationBar() 78 private void setupNavBar(BridgeContext context, int orientation) { in setupNavBar() argument 82 setSize(context, leftPadding, orientation, getSidePadding(sw)); in setupNavBar() 83 setSize(context, rightPadding, orientation, getSidePadding(sw)); in setupNavBar() 87 setSize(context, navButton, orientation, navButtonWidth); in setupNavBar() [all …]
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
D | ScrollbarHelper.java | 29 static int computeScrollOffset(RecyclerView.State state, OrientationHelper orientation, in computeScrollOffset() argument 46 final int laidOutArea = Math.abs(orientation.getDecoratedEnd(endChild) - in computeScrollOffset() 47 orientation.getDecoratedStart(startChild)); in computeScrollOffset() 52 return Math.round(itemsBefore * avgSizePerRow + (orientation.getStartAfterPadding() in computeScrollOffset() 53 - orientation.getDecoratedStart(startChild))); in computeScrollOffset() 60 static int computeScrollExtent(RecyclerView.State state, OrientationHelper orientation, in computeScrollExtent() argument 70 final int extend = orientation.getDecoratedEnd(endChild) in computeScrollExtent() 71 - orientation.getDecoratedStart(startChild); in computeScrollExtent() 72 return Math.min(orientation.getTotalSpace(), extend); in computeScrollExtent() 79 static int computeScrollRange(RecyclerView.State state, OrientationHelper orientation, in computeScrollRange() argument [all …]
|
D | DividerItemDecoration.java | 63 public DividerItemDecoration(Context context, int orientation) { in DividerItemDecoration() argument 67 setOrientation(orientation); in DividerItemDecoration() 76 public void setOrientation(int orientation) { in setOrientation() argument 77 if (orientation != HORIZONTAL && orientation != VERTICAL) { in setOrientation() 81 mOrientation = orientation; in setOrientation()
|
/frameworks/base/core/java/android/view/ |
D | OrientationEventListener.java | 120 int orientation = ORIENTATION_UNKNOWN; in onSensorChanged() local 129 orientation = 90 - (int)Math.round(angle); in onSensorChanged() 131 while (orientation >= 360) { in onSensorChanged() 132 orientation -= 360; in onSensorChanged() 134 while (orientation < 0) { in onSensorChanged() 135 orientation += 360; in onSensorChanged() 141 if (orientation != mOrientation) { in onSensorChanged() 142 mOrientation = orientation; in onSensorChanged() 143 onOrientationChanged(orientation); in onSensorChanged() 172 abstract public void onOrientationChanged(int orientation); in onOrientationChanged() argument
|
D | OrientationListener.java | 73 public void onOrientationChanged(int orientation) { in onOrientationChanged() argument 74 OrientationListener.this.onOrientationChanged(orientation); in onOrientationChanged() 108 abstract public void onOrientationChanged(int orientation); in onOrientationChanged() argument
|
/frameworks/base/tools/orientationplot/ |
D | README.txt | 25 adb shell setprop debug.orientation.log true 37 filtered accelerometer data, measured tilt and orientation angle, confidence 38 intervals for the proposed orientation and accelerometer latency. 44 and the latency for orientation detection goes up. One way to observe this 45 is by holding the device vertically in one orientation then sharply turning 46 it 90 degrees to a different orientation. Compared the rapid changes in the 50 2. Ensure that there is an appropriate gap between adjacent orientation angles 51 for hysteresis. Try holding the device in one orientation and slowly turning 57 Next try holding the device in one orientation and rapidly turning it end 61 different from the original orientation of the device). However, once it [all …]
|
/frameworks/av/camera/ |
D | CameraUtils.cpp | 56 int orientation = entry.data.i32[0]; in getRotationTransform() local 58 switch (orientation) { in getRotationTransform() 73 __FUNCTION__, orientation); in getRotationTransform() 80 switch (orientation) { in getRotationTransform() 99 __FUNCTION__, orientation); in getRotationTransform()
|
/frameworks/base/core/java/android/hardware/display/ |
D | DisplayViewport.java | 39 public int orientation; field in DisplayViewport 58 orientation = viewport.orientation; in copyFrom() 70 + ", orientation=" + orientation in toString()
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
D | BaseGridLayoutManagerTest.java | 63 for (int orientation : new int[]{VERTICAL, HORIZONTAL}) { in createBaseVariations() 66 variations.add(new Config(spanCount, orientation, reverseLayout)); in createBaseVariations() 118 public Config(int spanCount, int orientation, boolean reverseLayout) { in Config() argument 120 mOrientation = orientation; in Config() 124 Config orientation(int orientation) { in orientation() argument 125 mOrientation = orientation; in orientation() 168 public WrappedGridLayoutManager(Context context, int spanCount, int orientation, in WrappedGridLayoutManager() argument 170 super(context, spanCount, orientation, reverseLayout); in WrappedGridLayoutManager() 188 public void setOrientation(int orientation) { in setOrientation() argument 189 super.setOrientation(orientation); in setOrientation()
|
D | LinearLayoutManagerWrapContentWithAspectRatioTest.java | 59 for (int orientation : new int[]{VERTICAL, HORIZONTAL}) { in data() 64 new BaseLinearLayoutManagerTest.Config(orientation, in data() 73 new BaseLinearLayoutManagerTest.Config(orientation, in data() 76 HORIZONTAL == orientation, in data() 77 VERTICAL == orientation), in data() 83 new BaseLinearLayoutManagerTest.Config(orientation, in data() 86 VERTICAL == orientation, in data() 87 HORIZONTAL == orientation), in data() 93 new BaseLinearLayoutManagerTest.Config(orientation, in data()
|
D | LinearLayoutManagerWrapContentTest.java | 122 for (int orientation : new int[]{VERTICAL, HORIZONTAL}) { in data() 127 new Config(orientation, reverseLayout, stackFromBottom), in data() 133 new Config(orientation, reverseLayout, stackFromBottom), in data() 134 new WrapContentConfig(HORIZONTAL == orientation, in data() 135 VERTICAL == orientation, new Rect(padding)) in data()
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | ItemAlignment.java | 37 Axis(int orientation) { in Axis() argument 38 mOrientation = orientation; in Axis() 67 final public void setOrientation(int orientation) { in setOrientation() argument 68 mOrientation = orientation; in setOrientation()
|
/frameworks/support/core-utils/java/android/support/v4/print/ |
D | PrintHelper.java | 102 public void setOrientation(int orientation); in setOrientation() argument 135 public void setOrientation(int orientation) { mOrientation = orientation; } in setOrientation() argument 186 public void setOrientation(int orientation) { in setOrientation() argument 187 mPrintHelper.setOrientation(orientation); in setOrientation() 337 public void setOrientation(int orientation) { in setOrientation() argument 338 mImpl.setOrientation(orientation); in setOrientation()
|
/frameworks/native/services/sensorservice/ |
D | OrientationSensor.cpp | 62 outEvent->orientation.azimuth = g.x; in process() 63 outEvent->orientation.pitch = g.y; in process() 64 outEvent->orientation.roll = g.z; in process() 65 outEvent->orientation.status = SENSOR_STATUS_ACCURACY_HIGH; in process()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | DisplayDevice.java | 166 public final void setProjectionInTransactionLocked(int orientation, in setProjectionInTransactionLocked() argument 168 if (mCurrentOrientation != orientation in setProjectionInTransactionLocked() 173 mCurrentOrientation = orientation; in setProjectionInTransactionLocked() 186 orientation, layerStackRect, displayRect); in setProjectionInTransactionLocked() 205 viewport.orientation = mCurrentOrientation; in populateViewportLocked()
|
D | LogicalDisplay.java | 304 int orientation = Surface.ROTATION_0; in configureDisplayInTransactionLocked() local 306 orientation = displayInfo.rotation; in configureDisplayInTransactionLocked() 310 orientation = (orientation + displayDeviceInfo.rotation) % 4; in configureDisplayInTransactionLocked() 317 boolean rotated = (orientation == Surface.ROTATION_90 in configureDisplayInTransactionLocked() 318 || orientation == Surface.ROTATION_270); in configureDisplayInTransactionLocked() 352 device.setProjectionInTransactionLocked(orientation, mTempLayerStackRect, mTempDisplayRect); in configureDisplayInTransactionLocked()
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ConfigurationBoundResourceCacheTest.java | 89 newCnf.orientation = cfg.orientation == Configuration.ORIENTATION_LANDSCAPE ? in testVoidConfigChange() 112 newCnf.orientation = cfg.orientation == Configuration.ORIENTATION_LANDSCAPE ? in testEffectiveConfigChange() 138 newCnf.orientation = cfg.orientation == Configuration.ORIENTATION_LANDSCAPE ? in testConfigChangeMultipleResources() 180 newCnf.orientation = cfg.orientation == Configuration.ORIENTATION_LANDSCAPE ? in testConfigChangeMultipleThemes()
|
/frameworks/base/core/java/android/gesture/ |
D | OrientedBoundingBox.java | 31 public final float orientation; field in OrientedBoundingBox 37 orientation = angle; in OrientedBoundingBox() 61 matrix.setRotate(orientation); in toPath()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | RenderAction.java | 365 ScreenOrientation orientation = hardwareConfig.getOrientation(); in getConfiguration() local 366 if (orientation != null) { in getConfiguration() 367 switch (orientation) { in getConfiguration() 369 config.orientation = Configuration.ORIENTATION_PORTRAIT; in getConfiguration() 372 config.orientation = Configuration.ORIENTATION_LANDSCAPE; in getConfiguration() 376 config.orientation = Configuration.ORIENTATION_SQUARE; in getConfiguration() 380 config.orientation = Configuration.ORIENTATION_UNDEFINED; in getConfiguration()
|
/frameworks/base/core/java/android/content/res/ |
D | Configuration.java | 518 public int orientation; field in Configuration 765 orientation = o.orientation; in setTo() 846 switch (orientation) { in toString() 850 default: sb.append(" orien="); sb.append(orientation); break; in toString() 932 orientation = ORIENTATION_UNDEFINED; in setToDefaults() 1024 if (delta.orientation != ORIENTATION_UNDEFINED in updateFrom() 1025 && orientation != delta.orientation) { in updateFrom() 1027 orientation = delta.orientation; in updateFrom() 1166 if (delta.orientation != ORIENTATION_UNDEFINED in diff() 1167 && orientation != delta.orientation) { in diff() [all …]
|
/frameworks/opt/bitmap/src/com/android/bitmap/ |
D | DecodeTask.java | 162 final int orientation; in decode() local 172 orientation = Exif.getOrientation(in, byteSize); in decode() 181 orientation = 0; in decode() 183 final boolean isNotRotatedOr180 = orientation == 0 || orientation == 180; in decode() 186 if (orientation != 0) { in decode() 257 if (isJellyBeanOrAbove && orientation == 0) { in decode() 339 RectUtils.rotateRectForOrientation(orientation, new Rect(0, 0, srcW, srcH), in decode() 426 result.setOrientation(orientation); in decode()
|
/frameworks/base/core/jni/ |
D | android_content_res_Configuration.cpp | 41 jfieldID orientation; member 66 out->orientation = env->GetIntField(clazz, gConfigurationClassInfo.orientation); in android_Configuration_getFromJava() 90 gConfigurationClassInfo.orientation = GetFieldIDOrDie(env, clazz, "orientation", "I"); in register_android_content_res_Configuration()
|
/frameworks/av/cmds/screenrecord/ |
D | screenrecord.cpp | 139 static bool isDeviceRotated(int orientation) { in isDeviceRotated() argument 140 return orientation != DISPLAY_ORIENTATION_0 && in isDeviceRotated() 141 orientation != DISPLAY_ORIENTATION_180; in isDeviceRotated() 221 bool deviceRotated = isDeviceRotated(mainDpyInfo.orientation); in setDisplayProjection() 319 const sp<IBinder>& virtualDpy, uint8_t orientation) { in runEncoder() argument 379 } else if (orientation != mainDpyInfo.orientation) { in runEncoder() 380 ALOGD("orientation changed, now %d", mainDpyInfo.orientation); in runEncoder() 384 orientation = mainDpyInfo.orientation; in runEncoder() 552 mainDpyInfo.orientation); in recordScreen() 555 bool rotated = isDeviceRotated(mainDpyInfo.orientation); in recordScreen() [all …]
|
/frameworks/base/docs/html-intl/intl/ko/guide/topics/resources/ |
D | runtime-changes.jd | 18 …<li><a href="http://android-developers.blogspot.com/2009/02/faster-screen-orientation-change.html"… 194 …}</a> 속성에 대한 관련 문서에 목록으로 나열되어 있습니다(가장 보편적으로 사용되는 값은 화면 방향이 변경될 때 다시 시작을 방지하는 {@code "orientation"}과 204 android:configChanges="orientation|keyboardHidden" 224 "orientation"} 값 외에 {@code "screenSize"} 값도 포함시켜야 합니다. 다시 말해, {@code 225 android:configChanges="orientation|screenSize"}를 선언해야 합니다. 하지만, 애플리케이션이 API 레벨 12 이하를 238 // Checks the orientation of the screen 239 if (newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE) { 241 } else if (newConfig.orientation == Configuration.ORIENTATION_PORTRAIT){
|
/frameworks/base/docs/html-intl/intl/ru/guide/topics/resources/ |
D | runtime-changes.jd | 18 …<li><a href="http://android-developers.blogspot.com/2009/02/faster-screen-orientation-change.html"… 194 android:configChanges}</a> (наиболее часто используются значения {@code "orientation"} для 204 android:configChanges="orientation|keyboardHidden" 224 "orientation"}. То есть необходимо объявить {@code 225 android:configChanges="orientation|screenSize"}. Однако, если приложение нацелено на уровень API 238 // Checks the orientation of the screen 239 if (newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE) { 241 } else if (newConfig.orientation == Configuration.ORIENTATION_PORTRAIT){
|