Searched refs:orientation (Results 1 - 25 of 75) sorted by relevance

123

/frameworks/base/core/java/android/view/
H A DOrientationEventListener.java29 * the orientation of the device has changed.
44 * Returned from onOrientationChanged when the device orientation cannot be determined
67 * SENSOR_DELAY_NORMAL} for simple screen orientation change detection.
85 * {@link #onOrientationChanged} when the device orientation changes.
121 int orientation = ORIENTATION_UNKNOWN;
130 orientation = 90 - (int)Math.round(angle);
132 while (orientation >= 360) {
133 orientation -= 360;
135 while (orientation < 0) {
136 orientation
173 onOrientationChanged(int orientation) argument
[all...]
H A DOrientationListener.java24 * 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
H A DWindowOrientationListener.java30 * the orientation of the device has changed.
33 * "App/Activity/Screen Orientation" to ensure that all orientation
64 * SENSOR_DELAY_NORMAL} for simple screen orientation change detection.
82 * {@link #onOrientationChanged} when the device orientation changes.
126 * orientation. This is a very ill-defined problem so there are a lot of tweakable parameters,
133 * below. The azimuth angle is referred to as the "orientation" below (and the azimuth axis is
136 * - Low-pass filter the tilt and orientation angles to avoid "twitchy" behavior.
138 * - When the orientation angle reaches a certain threshold, transition to the corresponding
139 * orientation. These thresholds have some hysteresis built-in to avoid oscillation.
145 * - Use the tilt angle to judge the accuracy of orientation dat
305 calculateNewRotation(float orientation, float tiltAngle) argument
[all...]
H A DSurface.java137 * Disable the orientation animation
350 * set the orientation of the given display.
352 * @param orientation
356 public static native void setOrientation(int display, int orientation, int flags); argument
359 * set the orientation of the given display.
361 * @param orientation
363 public static void setOrientation(int display, int orientation) { argument
364 setOrientation(display, orientation, 0);
/frameworks/base/include/ui/
H A DDisplayInfo.h32 uint8_t orientation; member in struct:android::DisplayInfo
/frameworks/base/media/libstagefright/colorconversion/
H A DSoftwareRenderer.cpp61 uint32_t orientation; local
63 case 0: orientation = ISurface::BufferHeap::ROT_0; break;
64 case 90: orientation = ISurface::BufferHeap::ROT_90; break;
65 case 180: orientation = ISurface::BufferHeap::ROT_180; break;
66 case 270: orientation = ISurface::BufferHeap::ROT_270; break;
67 default: orientation = ISurface::BufferHeap::ROT_0; break;
74 orientation, 0,
/frameworks/base/core/java/android/gesture/
H A DOrientedBoundingBox.java31 public final float orientation; field in class:OrientedBoundingBox
37 orientation = angle;
61 matrix.setRotate(orientation);
H A DInstance.java94 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/core/java/android/content/res/
H A DConfiguration.java176 * Overall orientation of the screen. May be one of
180 public int orientation; field in class:Configuration
240 orientation = o.orientation;
269 sb.append(orientation);
296 orientation = ORIENTATION_UNDEFINED;
370 if (delta.orientation != ORIENTATION_UNDEFINED
371 && orientation != delta.orientation) {
373 orientation
[all...]
/frameworks/base/tools/localize/
H A DConfiguration.cpp15 n = orientation.compare(that.orientation);
H A DConfiguration.h12 string orientation; member in struct:Configuration
/frameworks/base/core/jni/
H A Dandroid_content_res_Configuration.cpp41 jfieldID orientation; member in struct:android::__anon30
63 out->orientation = env->GetIntField(clazz, gConfigurationClassInfo.orientation);
109 GET_FIELD_ID(gConfigurationClassInfo.orientation, gConfigurationClassInfo.clazz,
110 "orientation", "I");
/frameworks/base/core/java/android/util/
H A DDisplayMetrics.java134 * Update the display metrics based on the compatibility info and orientation
139 public void updateMetrics(CompatibilityInfo compatibilityInfo, int orientation, argument
184 switch (orientation) {
/frameworks/base/libs/camera/
H A DICameraService.cpp54 cameraInfo->orientation = reply.readInt32();
89 reply->writeInt32(cameraInfo.orientation);
/frameworks/base/graphics/java/android/graphics/drawable/
H A DClipDrawable.java60 * @param orientation Bitwise-or of {@link #HORIZONTAL} and/or {@link #VERTICAL}
62 public ClipDrawable(Drawable drawable, int gravity, int orientation) { argument
67 mClipState.mOrientation = orientation;
83 int orientation = a.getInt(
105 mClipState.mOrientation = orientation;
/frameworks/base/libs/surfaceflinger_client/
H A DISurface.cpp133 uint32_t w, uint32_t h, int32_t format, int32_t orientation)
140 data.writeInt32(orientation);
204 int orientation = data.readInt32(); local
205 sp<OverlayRef> o = createOverlay(w, h, f, orientation);
132 createOverlay( uint32_t w, uint32_t h, int32_t format, int32_t orientation) argument
H A DISurfaceComposer.cpp109 virtual int setOrientation(DisplayID dpy, int orientation, uint32_t flags) argument
114 data.writeInt32(orientation);
200 int orientation = data.readInt32(); local
202 reply->writeInt32( setOrientation(dpy, orientation, flags) );
/frameworks/base/native/android/
H A Dconfiguration.cpp63 return config->orientation;
134 void AConfiguration_setOrientation(AConfiguration* config, int32_t orientation) { argument
135 config->orientation = orientation;
/frameworks/base/core/java/android/webkit/
H A DBrowserFrame.java85 // orientation change message
132 int orientation =
134 switch (orientation) {
136 orientation = 90;
139 orientation = 180;
142 orientation = -90;
145 orientation = 0;
159 orientation, 0));
1013 private native void nativeOrientationChanged(int orientation); argument
/frameworks/base/include/utils/
H A DResourceTypes.h850 uint8_t orientation; member in struct:android::ResTable_config::__anon187::__anon188
1053 if (orientation != o.orientation) diffs |= CONFIG_ORIENTATION;
1108 if (orientation != o.orientation) {
1109 if (!orientation) return false;
1110 if (!o.orientation) return true;
1246 if ((orientation != o.orientation) && requested->orientation) {
[all...]
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DPasswordUnlockScreen.java77 mCreationOrientation = configuration.orientation;
217 if (config.orientation != mCreationOrientation
227 if (newConfig.orientation != mCreationOrientation
/frameworks/base/services/surfaceflinger/
H A DLayerBuffer.h77 int32_t orientation);
153 uint32_t w, uint32_t h, int32_t format, int32_t orientation);
205 uint32_t w, uint32_t h, int32_t format, int32_t orientation);
H A DSurfaceFlinger.h135 static status_t orientationToTransfrom(int orientation, int w, int h,
144 status_t setOrientation(int orientation);
201 virtual int setOrientation(DisplayID dpy, int orientation, uint32_t flags);
280 orientation = ISurfaceComposer::eOrientationDefault;
284 uint8_t orientation; member in struct:android::SurfaceFlinger::State
H A DLayerBuffer.cpp189 int32_t orientation)
196 sp<OverlaySource> source = new OverlaySource(*this, &result, w, h, f, orientation);
255 uint32_t w, uint32_t h, int32_t format, int32_t orientation) {
259 result = owner->createOverlay(w, h, format, orientation);
588 uint32_t w, uint32_t h, int32_t format, int32_t orientation)
590 mOverlay(0), mOverlayHandle(0), mOverlayDevice(0), mOrientation(orientation)
677 // we need to combine the layer orientation and the
678 // user-requested orientation.
188 createOverlay(uint32_t w, uint32_t h, int32_t f, int32_t orientation) argument
254 createOverlay( uint32_t w, uint32_t h, int32_t format, int32_t orientation) argument
586 OverlaySource(LayerBuffer& layer, sp<OverlayRef>* overlayRef, uint32_t w, uint32_t h, int32_t format, int32_t orientation) argument
/frameworks/base/libs/ui/
H A DInputReader.cpp121 int32_t rotateKeyCode(int32_t keyCode, int32_t orientation) { argument
122 if (orientation != InputReaderPolicyInterface::ROTATION_0) {
125 return keyCodeRotationMap[i][orientation];
940 // Rotate key codes according to orientation if needed.
943 int32_t orientation; local
944 if (! getPolicy()->getDisplayInfo(mAssociatedDisplayId, NULL, NULL, & orientation)) {
948 keyCode = rotateKeyCode(keyCode, orientation);
1180 pointerCoords.orientation = 0;
1183 // Rotate motion based on display orientation if needed.
1185 int32_t orientation; local
1412 int32_t orientation; local
2465 float orientation; local
[all...]

Completed in 443 milliseconds

123