Home
last modified time | relevance | path

Searched refs:orientation (Results 1 – 25 of 262) sorted by relevance

1234567891011

/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DScrollbarHelper.java29 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/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DNavigationBar.java63 public NavigationBar(BridgeContext context, Density density, int orientation, boolean isRtl, in NavigationBar() argument
65 super(context, orientation, getShortestWidth(context)>= 600 ? LAYOUT_600DP_XML : LAYOUT_XML, in NavigationBar()
77 if (orientation == LinearLayout.VERTICAL || (isRtl && !rtlEnabled)) { in NavigationBar()
89 setupNavBar(context, orientation); in NavigationBar()
92 private void setupNavBar(BridgeContext context, int orientation) { in setupNavBar() argument
96 setSize(context, leftPadding, orientation, getSidePadding(sw)); in setupNavBar()
97 setSize(context, rightPadding, orientation, getSidePadding(sw)); in setupNavBar()
101 setSize(context, navButton, orientation, navButtonWidth); in setupNavBar()
104 setSize(context, getChildAt(2), orientation, 128); in setupNavBar()
105 setSize(context, getChildAt(4), orientation, 128); in setupNavBar()
[all …]
/frameworks/base/core/java/android/view/
DOrientationEventListener.java120 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
DOrientationListener.java73 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/
DREADME.txt25 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/
DCameraUtils.cpp55 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/packages/SystemUI/src/com/android/systemui/recents/
DRecentsAppWidgetHostView.java53 mPreviousOrientation = mContext.getResources().getConfiguration().orientation; in updateLastInflationOrientation()
62 int orientation = mContext.getResources().getConfiguration().orientation; in isReinflateRequired() local
63 if (mPreviousOrientation != orientation) { in isReinflateRequired()
/frameworks/base/core/java/android/hardware/display/
DDisplayViewport.java39 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/
DPrintHelper.java101 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/support/v17/leanback/src/android/support/v17/leanback/widget/
DItemAlignment.java37 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/native/services/sensorservice/
DOrientationSensor.cpp56 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/
DDisplayDevice.java161 public final void setProjectionInTransactionLocked(int orientation, in setProjectionInTransactionLocked() argument
163 if (mCurrentOrientation != orientation in setProjectionInTransactionLocked()
168 mCurrentOrientation = orientation; in setProjectionInTransactionLocked()
181 orientation, layerStackRect, displayRect); in setProjectionInTransactionLocked()
200 viewport.orientation = mCurrentOrientation; in populateViewportLocked()
DLogicalDisplay.java297 int orientation = Surface.ROTATION_0; in configureDisplayInTransactionLocked() local
299 orientation = displayInfo.rotation; in configureDisplayInTransactionLocked()
303 orientation = (orientation + displayDeviceInfo.rotation) % 4; in configureDisplayInTransactionLocked()
310 boolean rotated = (orientation == Surface.ROTATION_90 in configureDisplayInTransactionLocked()
311 || orientation == Surface.ROTATION_270); in configureDisplayInTransactionLocked()
345 device.setProjectionInTransactionLocked(orientation, mTempLayerStackRect, mTempDisplayRect); in configureDisplayInTransactionLocked()
/frameworks/base/core/tests/coretests/src/android/content/res/
DConfigurationBoundResourceCacheTest.java82 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/content/res/
DConfiguration.java449 public int orientation; field in Configuration
665 orientation = o.orientation; in setTo()
745 switch (orientation) { in toString()
749 default: sb.append(" orien="); sb.append(orientation); break; in toString()
830 orientation = ORIENTATION_UNDEFINED; in setToDefaults()
919 if (delta.orientation != ORIENTATION_UNDEFINED in updateFrom()
920 && orientation != delta.orientation) { in updateFrom()
922 orientation = delta.orientation; in updateFrom()
1060 if (delta.orientation != ORIENTATION_UNDEFINED in diff()
1061 && orientation != delta.orientation) { in diff()
[all …]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DGridLayoutManagerTest.java59 for (int orientation : new int[]{VERTICAL, HORIZONTAL}) { in setUp()
62 mBaseVariations.add(new Config(spanCount, orientation, reverseLayout)); in setUp()
342 for (int orientation : new int[]{VERTICAL, HORIZONTAL}) { in cachedBordersTestConfigs()
345 Config config = new Config(spanCounts[i], orientation, reverseLayout); in cachedBordersTestConfigs()
368 public void accessibilitySpanIndicesTest(int orientation) throws Throwable { in accessibilitySpanIndicesTest() argument
369 final RecyclerView recyclerView = setupBasic(new Config(3, orientation, false)); in accessibilitySpanIndicesTest()
388 orientation == HORIZONTAL ? itemInfo.getColumnIndex() : itemInfo.getRowIndex()); in accessibilitySpanIndicesTest()
391 orientation == HORIZONTAL ? itemInfo.getRowIndex() : itemInfo.getColumnIndex()); in accessibilitySpanIndicesTest()
394 orientation == HORIZONTAL ? itemInfo.getRowSpan() : itemInfo.getColumnSpan()); in accessibilitySpanIndicesTest()
413 public void layoutParamsTest(final int orientation) throws Throwable { in layoutParamsTest() argument
[all …]
/frameworks/base/core/java/android/gesture/
DOrientedBoundingBox.java31 public final float orientation; field in OrientedBoundingBox
37 orientation = angle; in OrientedBoundingBox()
61 matrix.setRotate(orientation); in toPath()
DInstance.java94 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/jni/
Dandroid_content_res_Configuration.cpp41 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/opt/bitmap/src/com/android/bitmap/
DDecodeTask.java162 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/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderAction.java367 ScreenOrientation orientation = hardwareConfig.getOrientation(); in getConfiguration() local
368 if (orientation != null) { in getConfiguration()
369 switch (orientation) { in getConfiguration()
371 config.orientation = Configuration.ORIENTATION_PORTRAIT; in getConfiguration()
374 config.orientation = Configuration.ORIENTATION_LANDSCAPE; in getConfiguration()
378 config.orientation = Configuration.ORIENTATION_SQUARE; in getConfiguration()
382 config.orientation = Configuration.ORIENTATION_UNDEFINED; in getConfiguration()
/frameworks/av/cmds/screenrecord/
Dscreenrecord.cpp139 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
382 } else if (orientation != mainDpyInfo.orientation) { in runEncoder()
383 ALOGD("orientation changed, now %d", mainDpyInfo.orientation); in runEncoder()
387 orientation = mainDpyInfo.orientation; in runEncoder()
555 mainDpyInfo.orientation); in recordScreen()
558 bool rotated = isDeviceRotated(mainDpyInfo.orientation); in recordScreen()
[all …]
/frameworks/base/docs/html/guide/topics/sensors/
Dsensors_position.jd2 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/core/java/android/hardware/
DCameraInfo.java40 out.writeInt(info.orientation); in writeToParcel()
45 info.orientation = in.readInt(); in readFromParcel()
/frameworks/base/docs/html/guide/topics/resources/
Druntime-changes.jd18 …<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 …]

1234567891011