Home
last modified time | relevance | path

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

123456789

/frameworks/base/tools/orientationplot/
DREADME.txt23 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/
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/services/java/com/android/server/display/
DDisplayViewport.java37 public int orientation; field in DisplayViewport
56 orientation = viewport.orientation; in copyFrom()
68 + ", orientation=" + orientation in toString()
DDisplayDevice.java139 public final void setProjectionInTransactionLocked(int orientation, in setProjectionInTransactionLocked() argument
141 if (mCurrentOrientation != orientation in setProjectionInTransactionLocked()
146 mCurrentOrientation = orientation; in setProjectionInTransactionLocked()
159 orientation, layerStackRect, displayRect); in setProjectionInTransactionLocked()
178 viewport.orientation = mCurrentOrientation; in populateViewportLocked()
DLogicalDisplay.java247 int orientation = Surface.ROTATION_0; in configureDisplayInTransactionLocked() local
250 orientation = displayInfo.rotation; in configureDisplayInTransactionLocked()
254 orientation = (orientation + displayDeviceInfo.rotation) % 4; in configureDisplayInTransactionLocked()
261 boolean rotated = (orientation == Surface.ROTATION_90 in configureDisplayInTransactionLocked()
262 || orientation == Surface.ROTATION_270); in configureDisplayInTransactionLocked()
289 device.setProjectionInTransactionLocked(orientation, mTempLayerStackRect, mTempDisplayRect); in configureDisplayInTransactionLocked()
/frameworks/native/services/sensorservice/
DOrientationSensor.cpp53 outEvent->orientation.azimuth = g.x; in process()
54 outEvent->orientation.pitch = g.y; in process()
55 outEvent->orientation.roll = g.z; in process()
56 outEvent->orientation.status = SENSOR_STATUS_ACCURACY_HIGH; in process()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DNavigationBar.java29 …public NavigationBar(Context context, Density density, int orientation) throws XmlPullParserExcept… in NavigationBar() argument
30 super(context, density, orientation, "/bars/navigation_bar.xml", "navigation_bar.xml"); in NavigationBar()
40 if (orientation == LinearLayout.VERTICAL) { in NavigationBar()
/frameworks/base/core/java/android/content/res/
DConfiguration.java404 public int orientation; field in Configuration
570 orientation = o.orientation; in setTo()
650 switch (orientation) { in toString()
654 default: sb.append(" orien="); sb.append(orientation); break; in toString()
734 orientation = ORIENTATION_UNDEFINED; in setToDefaults()
817 if (delta.orientation != ORIENTATION_UNDEFINED in updateFrom()
818 && orientation != delta.orientation) { in updateFrom()
820 orientation = delta.orientation; in updateFrom()
951 if (delta.orientation != ORIENTATION_UNDEFINED in diff()
952 && orientation != delta.orientation) { in diff()
[all …]
/frameworks/base/docs/html/guide/topics/sensors/
Dsensors_position.jd45 geomagnetic field sensor and the orientation sensor. The Android platform also
51 (for example, during a phone call). The orientation sensor is software-based and derives its data
54 <p class="note"><strong>Note:</strong> The orientation sensor was deprecated in Android 2.2 (API
60 the magnetic North Pole. You can also use the orientation sensor (or similar sensor-based
61 orientation methods) to determine a device's position in your application's frame of reference.
66 <p>The geomagnetic field sensor and orientation sensor return multi-dimensional arrays of sensor
68 for each {@link android.hardware.SensorEvent}. For example, the orientation sensor provides
71 the orientation sensor provides azimuth (yaw), pitch, and roll values during a single sensor event.
123 8). The sensor framework provides alternate methods for acquiring device orientation, which are
131 <p>The orientation sensor lets you monitor the position of a device relative to the earth's frame of
[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.cpp39 jfieldID orientation; member
64 out->orientation = env->GetIntField(clazz, gConfigurationClassInfo.orientation); in android_Configuration_getFromJava()
115 GET_FIELD_ID(gConfigurationClassInfo.orientation, clazz, in register_android_content_res_Configuration()
/frameworks/base/docs/html/design/patterns/
Dmulti-pane-layouts.jd27 <h2 id="orientation">Compound Views and Orientation Changes</h2>
29 <p>Screens should strive to have the same functionality regardless of orientation. If you use a com…
30 one orientation, try not to split it up when the user rotates the screen. There are several techniq…
31 you can use to adjust the layout after orientation change while keeping functional parity intact.</…
56 <p>Rearrange the panels on your screen to match the orientation.</p>
109 themselves when screen orientation changes.</p>
115 <p>Make sure that your screens try to provide functional parity after the screen orientation
/frameworks/base/docs/html/guide/topics/resources/
Druntime-changes.jd19 …<li><a href="http://android-developers.blogspot.com/2009/02/faster-screen-orientation-change.html"…
26 (such as screen orientation, keyboard availability, and language). When such a change occurs,
43 invoke configuration changes (such as changing the screen orientation) while performing various
96 web. If the user changes the orientation of the device and the activity restarts, your application
162 android:configChanges}</a> attribute (the most commonly used values are {@code "orientation"} to
163 prevent restarts when the screen orientation changes and {@code "keyboardHidden"} to prevent
168 screen orientation change and keyboard availability change:</p>
172 android:configChanges="orientation|keyboardHidden"
189 orientation. Thus, if you want to prevent runtime restarts due to orientation change when developing
194 "orientation"} value. That is, you must decalare {@code
[all …]
/frameworks/base/graphics/java/android/graphics/drawable/
DClipDrawable.java62 public ClipDrawable(Drawable drawable, int gravity, int orientation) { in ClipDrawable() argument
67 mClipState.mOrientation = orientation; in ClipDrawable()
83 int orientation = a.getInt( in inflate() local
105 mClipState.mOrientation = orientation; in inflate()
/frameworks/base/native/android/
Dconfiguration.cpp63 return config->orientation; in AConfiguration_getOrientation()
151 void AConfiguration_setOrientation(AConfiguration* config, int32_t orientation) { in AConfiguration_setOrientation() argument
152 config->orientation = orientation; in AConfiguration_setOrientation()
/frameworks/ex/photoviewer/src/com/android/ex/photo/util/
DImageUtils.java155 final int orientation = Exif.getOrientation(bitmapBytes); in decodeStream() local
159 if (originalBitmap != null && orientation != 0) { in decodeStream()
161 matrix.postRotate(orientation); in decodeStream()
DExif.java99 int orientation = pack(jpeg, offset + 8, 2, littleEndian); in getOrientation() local
100 switch (orientation) { in getOrientation()
/frameworks/base/docs/html/tools/testing/
Dwhat_to_test.jd19 <h4>Change in orientation</h4>
21 For devices that support multiple orientations, Android detects a change in orientation when
26 When Android detects a change in orientation, its default behavior is to destroy and then
32 orientation.
42 A situation that is more general than a change in orientation is a change in the device's
/frameworks/native/libs/gui/
DLayerState.cpp69 output.writeInt32(orientation); in write()
80 orientation = input.readInt32(); in read()
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
DExif.java99 int orientation = pack(jpeg, offset + 8, 2, littleEndian); in getOrientation() local
100 switch (orientation) { in getOrientation()
/frameworks/av/camera/
DICameraService.cpp54 cameraInfo->orientation = reply.readInt32(); in getCameraInfo()
89 reply->writeInt32(cameraInfo.orientation); in onTransact()
/frameworks/base/core/java/android/webkit/
DPluginFullScreenHolder.java47 PluginFullScreenHolder(WebViewClassic webView, int orientation, int npp) { in PluginFullScreenHolder() argument
50 mOrientation = orientation; in PluginFullScreenHolder()
/frameworks/base/services/input/
DPointerController.cpp310 void PointerController::setDisplayViewport(int32_t width, int32_t height, int32_t orientation) { in setDisplayViewport() argument
314 if (orientation == DISPLAY_ORIENTATION_90 in setDisplayViewport()
315 || orientation == DISPLAY_ORIENTATION_270) { in setDisplayViewport()
337 if (mLocked.displayOrientation != orientation) { in setDisplayViewport()
364 switch (orientation) { in setDisplayViewport()
385 mLocked.displayOrientation = orientation; in setDisplayViewport()

123456789