/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 …]
|
/frameworks/base/tools/orientationplot/ |
D | README.txt | 23 adb shell setprop debug.orientation.log true 35 filtered accelerometer data, measured tilt and orientation angle, confidence 36 intervals for the proposed orientation and accelerometer latency. 42 and the latency for orientation detection goes up. One way to observe this 43 is by holding the device vertically in one orientation then sharply turning 44 it 90 degrees to a different orientation. Compared the rapid changes in the 48 2. Ensure that there is an appropriate gap between adjacent orientation angles 49 for hysteresis. Try holding the device in one orientation and slowly turning 55 Next try holding the device in one orientation and rapidly turning it end 59 different from the original orientation of the device). However, once it [all …]
|
/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/av/camera/ |
D | CameraUtils.cpp | 55 int orientation = entry.data.i32[0]; in getRotationTransform() local 57 switch (orientation) { in getRotationTransform() 72 __FUNCTION__, orientation); in getRotationTransform() 79 switch (orientation) { in getRotationTransform() 98 __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/v4/java/android/support/v4/print/ |
D | PrintHelper.java | 101 public void setOrientation(int orientation); in setOrientation() argument 134 public void setOrientation(int orientation) { mOrientation = orientation; } in setOrientation() argument 184 public void setOrientation(int orientation) { in setOrientation() argument 185 mPrintHelper.setOrientation(orientation); in setOrientation() 290 public void setOrientation(int orientation) { in setOrientation() argument 291 mImpl.setOrientation(orientation); in setOrientation()
|
/frameworks/native/services/sensorservice/ |
D | OrientationSensor.cpp | 56 outEvent->orientation.azimuth = g.x; in process() 57 outEvent->orientation.pitch = g.y; in process() 58 outEvent->orientation.roll = g.z; in process() 59 outEvent->orientation.status = SENSOR_STATUS_ACCURACY_HIGH; in process()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | DisplayDevice.java | 154 public final void setProjectionInTransactionLocked(int orientation, in setProjectionInTransactionLocked() argument 156 if (mCurrentOrientation != orientation in setProjectionInTransactionLocked() 161 mCurrentOrientation = orientation; in setProjectionInTransactionLocked() 174 orientation, layerStackRect, displayRect); in setProjectionInTransactionLocked() 193 viewport.orientation = mCurrentOrientation; in populateViewportLocked()
|
D | LogicalDisplay.java | 275 int orientation = Surface.ROTATION_0; in configureDisplayInTransactionLocked() local 277 orientation = displayInfo.rotation; in configureDisplayInTransactionLocked() 281 orientation = (orientation + displayDeviceInfo.rotation) % 4; in configureDisplayInTransactionLocked() 288 boolean rotated = (orientation == Surface.ROTATION_90 in configureDisplayInTransactionLocked() 289 || orientation == Surface.ROTATION_270); in configureDisplayInTransactionLocked() 316 device.setProjectionInTransactionLocked(orientation, mTempLayerStackRect, mTempDisplayRect); in configureDisplayInTransactionLocked()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
D | NavigationBar.java | 29 public NavigationBar(Context context, Density density, int orientation, boolean isRtl, in NavigationBar() argument 31 super(context, orientation, "/bars/navigation_bar.xml", "navigation_bar.xml", in NavigationBar() 42 if (orientation == LinearLayout.VERTICAL || (isRtl && !rtlEnabled)) { in NavigationBar()
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
D | GridLayoutManagerTest.java | 55 for (int orientation : new int[]{VERTICAL, HORIZONTAL}) { in setUp() 58 mBaseVariations.add(new Config(spanCount, orientation, reverseLayout)); in setUp() 144 public void accessibilitySpanIndicesTest(int orientation) throws Throwable { in accessibilitySpanIndicesTest() argument 145 final RecyclerView recyclerView = setupBasic(new Config(3, orientation, false)); in accessibilitySpanIndicesTest() 164 orientation == HORIZONTAL ? itemInfo.getColumnIndex() : itemInfo.getRowIndex()); in accessibilitySpanIndicesTest() 167 orientation == HORIZONTAL ? itemInfo.getRowIndex() : itemInfo.getColumnIndex()); in accessibilitySpanIndicesTest() 170 orientation == HORIZONTAL ? itemInfo.getRowSpan() : itemInfo.getColumnSpan()); in accessibilitySpanIndicesTest() 189 public void layoutParamsTest(final int orientation) throws Throwable { in layoutParamsTest() argument 190 final RecyclerView rv = setupBasic(new Config(3, 100).orientation(orientation), in layoutParamsTest() 215 if (orientation == GridLayoutManager.VERTICAL) { in layoutParamsTest() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ConfigurationBoundResourceCacheTest.java | 82 newCnf.orientation = cfg.orientation == Configuration.ORIENTATION_LANDSCAPE ? in testVoidConfigChange() 104 newCnf.orientation = cfg.orientation == Configuration.ORIENTATION_LANDSCAPE ? in testEffectiveConfigChange() 129 newCnf.orientation = cfg.orientation == Configuration.ORIENTATION_LANDSCAPE ? in testConfigChangeMultipleResources() 169 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()
|
D | Instance.java | 94 float orientation = (float)Math.atan2(pts[1] - center[1], pts[0] - center[0]); in temporalSampler() local 96 float adjustment = -orientation; in temporalSampler() 100 float delta = ORIENTATIONS[i] - orientation; in temporalSampler()
|
/frameworks/base/core/java/android/content/res/ |
D | Configuration.java | 420 public int orientation; field in Configuration 636 orientation = o.orientation; in setTo() 716 switch (orientation) { in toString() 720 default: sb.append(" orien="); sb.append(orientation); break; in toString() 801 orientation = ORIENTATION_UNDEFINED; in setToDefaults() 890 if (delta.orientation != ORIENTATION_UNDEFINED in updateFrom() 891 && orientation != delta.orientation) { in updateFrom() 893 orientation = delta.orientation; in updateFrom() 1031 if (delta.orientation != ORIENTATION_UNDEFINED in diff() 1032 && orientation != delta.orientation) { in diff() [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | RenderAction.java | 360 ScreenOrientation orientation = hardwareConfig.getOrientation(); in getConfiguration() local 361 if (orientation != null) { in getConfiguration() 362 switch (orientation) { in getConfiguration() 364 config.orientation = Configuration.ORIENTATION_PORTRAIT; in getConfiguration() 367 config.orientation = Configuration.ORIENTATION_LANDSCAPE; in getConfiguration() 370 config.orientation = Configuration.ORIENTATION_SQUARE; in getConfiguration() 374 config.orientation = Configuration.ORIENTATION_UNDEFINED; in getConfiguration()
|
/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/av/cmds/screenrecord/ |
D | screenrecord.cpp | 136 static bool isDeviceRotated(int orientation) { in isDeviceRotated() argument 137 return orientation != DISPLAY_ORIENTATION_0 && in isDeviceRotated() 138 orientation != DISPLAY_ORIENTATION_180; in isDeviceRotated() 218 bool deviceRotated = isDeviceRotated(mainDpyInfo.orientation); in setDisplayProjection() 316 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/core/jni/ |
D | android_content_res_Configuration.cpp | 39 jfieldID orientation; member 64 out->orientation = env->GetIntField(clazz, gConfigurationClassInfo.orientation); in android_Configuration_getFromJava() 106 GET_FIELD_ID(gConfigurationClassInfo.orientation, clazz, in register_android_content_res_Configuration()
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | ItemAlignment.java | 42 Axis(int orientation) { in Axis() argument 43 mOrientation = orientation; in Axis() 162 final public void setOrientation(int orientation) { in setOrientation() argument 163 mOrientation = orientation; in setOrientation()
|
/frameworks/base/docs/html/guide/topics/sensors/ |
D | sensors_position.jd | 2 page.tags=sensorevent,orientation,proximity 46 geomagnetic field sensor and the orientation sensor. The Android platform also 52 (for example, during a phone call). The orientation sensor is software-based and derives its data 55 <p class="note"><strong>Note:</strong> The orientation sensor was deprecated in Android 2.2 (API 61 the magnetic North Pole. You can also use the orientation sensor (or similar sensor-based 62 orientation methods) to determine a device's position in your application's frame of reference. 67 <p>The geomagnetic field sensor and orientation sensor return multi-dimensional arrays of sensor 69 for each {@link android.hardware.SensorEvent}. For example, the orientation sensor provides 72 the orientation sensor provides azimuth (yaw), pitch, and roll values during a single sensor event. 178 8). The sensor framework provides alternate methods for acquiring device orientation, which are [all …]
|
/frameworks/base/docs/html/design/patterns/ |
D | multi-pane-layouts.jd | 40 <h2 id="orientation">Compound Views and Orientation Changes</h2> 42 <p>Screens should strive to have the same functionality regardless of orientation. If you use a com… 43 one orientation, try not to split it up when the user rotates the screen. There are several techniq… 44 you can use to adjust the layout after orientation change while keeping functional parity intact.</… 69 <p>Rearrange the panels on your screen to match the orientation.</p> 113 themselves when screen orientation changes.</p> 119 <p>Make sure that your screens try to provide functional parity after the screen orientation
|
/frameworks/base/core/java/android/hardware/ |
D | CameraInfo.java | 40 out.writeInt(info.orientation); in writeToParcel() 45 info.orientation = in.readInt(); in readFromParcel()
|
/frameworks/base/docs/html/guide/topics/resources/ |
D | runtime-changes.jd | 18 …<li><a href="http://android-developers.blogspot.com/2009/02/faster-screen-orientation-change.html"… 25 (such as screen orientation, keyboard availability, and language). When such a change occurs, 42 invoke configuration changes (such as changing the screen orientation) while performing various 199 android:configChanges}</a> attribute (the most commonly used values are {@code "orientation"} to 200 prevent restarts when the screen orientation changes and {@code "keyboardHidden"} to prevent 205 screen orientation change and keyboard availability change:</p> 209 android:configChanges="orientation|keyboardHidden" 226 orientation. Thus, if you want to prevent runtime restarts due to orientation change when developing 231 "orientation"} value. That is, you must decalare {@code 232 android:configChanges="orientation|screenSize"}. However, if your application targets API level [all …]
|