/packages/apps/Camera2/src/com/android/camera/util/ |
CameraUtil.java | 85 // Orientation hysteresis amount used in rounding, in degrees 416 * Calculate the default orientation of the device based on the width and 419 * @return whether the default orientation of the device is portrait 425 int orientation = currentDisplay.getRotation(); local 427 if (orientation == Surface.ROTATION_0 || orientation == Surface.ROTATION_180) { 444 result = (info.orientation + degrees) % 360; 447 result = (info.orientation - degrees + 360) % 360; 455 return info.orientation; 458 public static int roundOrientation(int orientation, int orientationHistory) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/ |
ImageLoader.java | 58 public static final int ORI_NORMAL = ExifInterface.Orientation.TOP_LEFT; 59 public static final int ORI_ROTATE_90 = ExifInterface.Orientation.RIGHT_TOP; 60 public static final int ORI_ROTATE_180 = ExifInterface.Orientation.BOTTOM_LEFT; 61 public static final int ORI_ROTATE_270 = ExifInterface.Orientation.RIGHT_BOTTOM; 62 public static final int ORI_FLIP_HOR = ExifInterface.Orientation.TOP_RIGHT; 63 public static final int ORI_FLIP_VERT = ExifInterface.Orientation.BOTTOM_RIGHT; 64 public static final int ORI_TRANSPOSE = ExifInterface.Orientation.LEFT_TOP; 65 public static final int ORI_TRANSVERSE = ExifInterface.Orientation.LEFT_BOTTOM; 96 * Returns the image's orientation flag. Defaults to ORI_NORMAL if no valid 97 * orientation was found 165 int orientation = tagval; local 188 int orientation = getMetadataOrientation(context, uri); local 475 int orientation = getMetadataOrientation(context, sourceUri); local [all...] |
/external/chromium_org/third_party/WebKit/Source/core/platform/graphics/mac/ |
SimpleFontDataMac.mm | 130 FontPlatformData substitutePlatform(substituteFont, platformData().size(), isUsingPrinterFont, syntheticBold, syntheticOblique, platformData().orientation(), platformData().widthVariant()); 235 if (platformData().orientation() == Vertical && !isTextOrientationFallback()) 240 if (platformData().orientation() == Horizontal) { 313 FontPlatformData scaledFontData([[NSFontManager sharedFontManager] convertFont:m_platformData.font() toSize:size], size, m_platformData.isPrinterFont(), false, false, m_platformData.orientation()); 374 boundingBox = CTFontGetBoundingRectsForGlyphs(m_platformData.ctFont(), platformData().orientation() == Vertical ? kCTFontVerticalOrientation : kCTFontHorizontalOrientation, &glyph, 0, 1); 385 if (platformData().orientation() == Horizontal || m_isBrokenIdeographFallback) { 433 ProviderInfo info = { characters, length, getCFStringAttributes(0, platformData().orientation()) };
|
/development/samples/devbytes/graphics/FoldingLayout/src/com/example/android/foldinglayout/ |
FoldingLayout.java | 35 * orientation of the fold can be specified. Each of these parameters can 55 public static enum Orientation { 72 private Orientation mOrientation = Orientation.HORIZONTAL; 180 public void setOrientation(Orientation orientation) { 181 if (orientation != mOrientation) { 182 mOrientation = orientation; 205 public Orientation getOrientation() { 224 * This method is called in order to update the fold's orientation, ancho [all...] |
/external/chromium_org/third_party/WebKit/Source/core/platform/ |
ScrollAnimatorNone.cpp | 401 bool ScrollAnimatorNone::scroll(ScrollbarOrientation orientation, ScrollGranularity granularity, float step, float multiplier) 404 return ScrollAnimator::scroll(orientation, granularity, step, multiplier); 419 return ScrollAnimator::scroll(orientation, granularity, step, multiplier); 424 return ScrollAnimator::scroll(orientation, granularity, step, multiplier); 427 float scrollableSize = static_cast<float>(m_scrollableArea->scrollSize(orientation)); 429 PerAxisData& data = (orientation == VerticalScrollbar) ? m_verticalData : m_horizontalData;
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
PhotoSource.java | 53 public int orientation; field in class:PhotoSource.ImageData 216 if (data.orientation != 0) { 217 log(TAG, "rotated by " + data.orientation + ": fixing"); 219 matrix.setRotate(data.orientation, 225 if (data.orientation == 90 || data.orientation == 270) {
|
/packages/apps/LegacyCamera/src/com/android/camera/panorama/ |
PanoramaActivity.java | 212 public void onOrientationChanged(int orientation) { 213 // We keep the last known orientation. So if the user first orient 215 // the correct orientation. 216 if (orientation == ORIENTATION_UNKNOWN) return; 217 mDeviceOrientation = Util.roundOrientation(orientation, mDeviceOrientation); [all...] |
/external/chromium_org/third_party/WebKit/Source/core/accessibility/ |
AccessibilityScrollView.cpp | 58 AccessibilityObject* AccessibilityScrollView::scrollBar(AccessibilityOrientation orientation) 62 switch (orientation) {
|
/external/chromium_org/third_party/WebKit/Source/core/css/ |
CSSFontFaceSource.cpp | 126 | (fontDescription.orientation() == Vertical ? 4 : 0) | (syntheticBold ? 2 : 0) | (syntheticItalic ? 1 : 0); 179 fontDescription.orientation(), fontDescription.widthVariant()), true, false);
|
/external/chromium_org/third_party/WebKit/Source/core/page/ |
Frame.h | 140 // Orientation is the interface orientation in degrees. Some examples are: 143 void sendOrientationChangeEvent(int orientation); 144 int orientation() const { return m_orientation; } function in class:WebCore::Frame
|
/external/chromium_org/third_party/WebKit/Source/core/rendering/ |
RenderDetailsMarker.cpp | 71 RenderDetailsMarker::Orientation RenderDetailsMarker::orientation() const function in class:WebCore::RenderDetailsMarker 96 switch (orientation()) {
|
/external/chromium_org/third_party/WebKit/Source/web/ |
PinchViewports.cpp | 140 void PinchViewports::setupScrollbar(WebScrollbar::Orientation orientation) 142 bool isHorizontal = orientation == WebScrollbar::Horizontal;
|
/external/chromium_org/ui/views/layout/ |
box_layout.cc | 12 BoxLayout::BoxLayout(BoxLayout::Orientation orientation, 16 : orientation_(orientation),
|
/frameworks/native/services/surfaceflinger/ |
DisplayDevice.h | 111 void setProjection(int orientation, const Rect& viewport, const Rect& frame); 204 static status_t orientationToTransfrom(int orientation,
|
/hardware/invensense/60xx/mlsdk/platform/include/linux/ |
mpu.h | 181 * @orientation: the mounting matrix of the device relative to MPU. 186 * The orientation matricies are 3x3 rotation matricies 187 * that are applied to the data to rotate from the mounting orientation to the 188 * platform orientation. The values must be one of 0, 1, or -1 and each row and 197 signed char orientation[9]; member in struct:ext_slave_platform_data 280 * @orientation: Orientation matrix of the gyroscope 287 * work on this platform. The orientation matricies are 3x3 rotation matricies 288 * that are applied to the data to rotate from the mounting orientation to the 289 * platform orientation. The values must be one of 0, 1, or -1 and each row an 294 signed char orientation[GYRO_NUM_AXES * GYRO_NUM_AXES]; member in struct:mpu_platform_data [all...] |
/hardware/ti/omap4xxx/camera/ |
SensorListener.cpp | 62 // about conversion from cartesian to spherical for orientation calculations 81 CAMHAL_LOGVB(" tilt = %d orientation = %d", tilt, orient); 184 void SensorListener::handleOrientation(uint32_t orientation, uint32_t tilt) { 190 mOrientationCb(orientation, tilt, mCbCookie); 206 CAMHAL_LOGDB("orientation = %p (%s)", sensor, sensor->getName().string()); 225 CAMHAL_LOGDB("orientation = %p (%s)", sensor, sensor->getName().string());
|
/packages/apps/Camera2/src/com/android/camera/app/ |
PlaceholderManager.java | 167 public void replacePlaceholder(Session session, Location location, int orientation, 171 session.time, location, orientation, exif, jpeg, width, height, mimeType);
|
/packages/apps/Camera2/src/com/android/camera/crop/ |
GeometryMathUtils.java | 168 private static int getRotationForOrientation(int orientation) { 169 switch (orientation) {
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
MotionEventHelper.java | 72 pointerCoords[i].orientation = transformAngle( 73 m, pointerCoords[i].orientation);
|
/packages/apps/InCallUI/src/com/android/incallui/ |
ProximitySensor.java | 85 public void orientationChanged(int orientation) { 86 mOrientation = orientation;
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
RotateDialogController.java | 81 public void setOrientation(int orientation) { 83 mRotateDialog.setOrientation(orientation);
|
Storage.java | 53 Location location, int orientation, byte[] jpeg, int width, int height) { 76 values.put(ImageColumns.ORIENTATION, orientation);
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
IndicatorControlWheelContainer.java | 169 public void setOrientation(int orientation) { 170 mIndicatorControlWheel.setOrientation(orientation);
|
/packages/wallpapers/Basic/src/com/android/wallpaper/walkaround/ |
WalkAroundWallpaper.java | 58 boolean portrait = newConfig.orientation == Configuration.ORIENTATION_PORTRAIT; 60 params.set("orientation", portrait ? "portrait" : "landscape"); 163 final boolean portrait = resources.getConfiguration().orientation == 209 params.set("orientation", portrait ? "portrait" : "landscape");
|
/cts/tests/tests/gesture/src/android/gesture/cts/ |
GestureStrokeTest.java | 112 // expect a center of LINE_MIDWAY_POINT, LINE_MIDWAY_POINT, with a 45-degree orientation 115 assertEquals(LineGestureStrokeHelper.LINE_ANGLE, box.orientation);
|