Home
last modified time | relevance | path

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

/development/samples/VirtualDeviceManager/demos/src/com/example/android/vdmdemo/demos/
DRotationDemoActivity.java44 int orientation = ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED; in onChangeOrientation() local
46 orientation = ActivityInfo.SCREEN_ORIENTATION_PORTRAIT; in onChangeOrientation()
48 orientation = ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE; in onChangeOrientation()
50 setRequestedOrientation(orientation); in onChangeOrientation()
/development/samples/browseable/RuntimePermissionsBasic/src/com.example.android.basicpermissions/camera/
DCameraPreview.java96 int orientation = calculatePreviewOrientation(mCameraInfo, mDisplayOrientation); in surfaceChanged() local
97 mCamera.setDisplayOrientation(orientation); in surfaceChanged()
134 result = (info.orientation + degrees) % 360; in calculatePreviewOrientation()
137 result = (info.orientation - degrees + 360) % 360; in calculatePreviewOrientation()
/development/samples/browseable/RuntimePermissions/src/com.example.android.system.runtimepermissions/camera/
DCameraPreview.java96 int orientation = calculatePreviewOrientation(mCameraInfo, mDisplayOrientation); in surfaceChanged() local
97 mCamera.setDisplayOrientation(orientation); in surfaceChanged()
134 result = (info.orientation + degrees) % 360; in calculatePreviewOrientation()
137 result = (info.orientation - degrees + 360) % 360; in calculatePreviewOrientation()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DTouchPaint.java452 float major, float minor, float orientation, in paint() argument
464 drawOval(mCanvas, x, y, major, minor, orientation, mPaint); in paint()
470 drawOval(mCanvas, x, y, major, minor, orientation, mPaint); in paint()
476 drawSplat(mCanvas, x, y, orientation, distance, tilt, mPaint); in paint()
492 float orientation, Paint paint) { in drawOval() argument
494 canvas.rotate((float) (orientation * 180 / Math.PI), x, y); in drawOval()
513 private void drawSplat(Canvas canvas, float x, float y, float orientation, in drawSplat() argument
518 float nx = (float) (Math.sin(orientation) * Math.sin(tilt)); in drawSplat()
519 float ny = (float) (- Math.cos(orientation) * Math.sin(tilt)); in drawSplat()
545 vx = temp * Math.cos(orientation) - vy * Math.sin(orientation); in drawSplat()
[all …]
/development/apps/WidgetPreview/src/com/android/widgetpreview/
DWidgetPreviewActivity.java227 int orientationCode = getResources().getConfiguration().orientation; in buildFile()
228 String orientation; in buildFile() local
229 if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) { in buildFile()
230 orientation = "landscape"; in buildFile()
232 orientation = "portrait"; in buildFile()
234 orientation = "square"; in buildFile()
236 orientation = "undefined"; in buildFile()
238 return new File(path, name + "_ori_" + orientation + ".png"); in buildFile()
/development/samples/devbytes/animation/ActivityAnimations/src/com/example/android/activityanim/
DActivityAnimations.java116 int orientation = getResources().getConfiguration().orientation;
118 putExtra(PACKAGE + ".orientation", orientation).
DPictureDetailsActivity.java201 if (getResources().getConfiguration().orientation != mOriginalOrientation) { in runExitAnimation()
/development/samples/devbytes/graphics/FoldingLayout/src/com/example/android/foldinglayout/
DFoldingLayout.java180 public void setOrientation(Orientation orientation) { in setOrientation() argument
181 if (orientation != mOrientation) { in setOrientation()
182 mOrientation = orientation; in setOrientation()
231 private void prepareFold(Orientation orientation, float anchorFactor, int numberOfFolds) { in prepareFold() argument
246 mOrientation = orientation; in prepareFold()
247 mIsHorizontal = (orientation == Orientation.HORIZONTAL); in prepareFold()
/development/samples/USB/MissileLauncher/
DREADME.txt2 You control the left/right/up/down orientation of the launcher using the accelerometer.
/development/apps/Development/src/com/android/development/
DConfigurationViewer.java49 + "orientation=" + c.orientation + "\n" in onCreate()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DScreenOrientation.java60 mOrientation = (Spinner)findViewById(R.id.orientation); in onCreate()
DFragmentLayout.java65 if (getResources().getConfiguration().orientation in onCreate()
DPictureInPicture.java270 (configuration.orientation == Configuration.ORIENTATION_LANDSCAPE); in updateLayout()
/development/samples/VirtualDeviceManager/client/src/com/example/android/vdmdemo/client/
DImmersiveActivity.java222 if (config.orientation == Configuration.ORIENTATION_LANDSCAPE) { in onConfigurationChanged()
226 } else if (config.orientation == Configuration.ORIENTATION_PORTRAIT) { in onConfigurationChanged()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DGridLayout3.java44 if ((configuration.orientation == Configuration.ORIENTATION_PORTRAIT)) { in create()
/development/samples/VirtualDeviceManager/
DREADME.md254 - **Display rotation**: Whether orientation change requests from streamed apps
255 should trigger orientation change of the relevant display. The client will
257 simulates a fixed orientation display that cannot physically rotate. Then
259 request orientation change. Run the commands below to enable this
337 portrait and landscape orientation. This simulates the physical rotation of
370 orientation change requests on demand. Showcases the display rotation on the
410 - Added support for fixed orientation displays (disable display rotation).
/development/samples/browseable/Camera2Video/src/com.example.android.camera2video/
DCamera2VideoFragment.java442 int orientation = getResources().getConfiguration().orientation; in openCamera() local
443 if (orientation == Configuration.ORIENTATION_LANDSCAPE) { in openCamera()
/development/samples/ApiDemos/src/com/example/android/apis/media/projection/
DMediaProjectionDemo.java176 if (getResources().getConfiguration().orientation in onItemSelected()
/development/samples/browseable/Camera2Basic/src/com.example.android.camera2basic/
DCamera2BasicFragment.java573 int orientation = getResources().getConfiguration().orientation; in setUpCameraOutputs() local
574 if (orientation == Configuration.ORIENTATION_LANDSCAPE) { in setUpCameraOutputs()
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/
DMainActivity.java162 final boolean isPortrait = getResources().getConfiguration().orientation == in toggleVisibleTitles()
/development/tools/winscope/protos/surfaceflinger/udc/
Dtransactions.proto304 uint32 orientation = 5; field
/development/samples/browseable/Camera2Raw/src/com.example.android.camera2raw/
DCamera2RawFragment.java620 public void onOrientationChanged(int orientation) { in onViewCreated()
/development/samples/SearchableDictionary/res/raw/
Ddefinitions.txt181 conservatism - n. a political or theological orientation advocating the preservation of the best in…
457 ideology - n. an orientation that characterizes the thinking of a group or nation
558 liberalism - n. a political orientation that favors social progress by reform and by changing laws …