/development/samples/VirtualDeviceManager/demos/src/com/example/android/vdmdemo/demos/ |
D | RotationDemoActivity.java | 44 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/ |
D | CameraPreview.java | 96 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/ |
D | CameraPreview.java | 96 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/ |
D | TouchPaint.java | 452 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/ |
D | WidgetPreviewActivity.java | 227 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/ |
D | ActivityAnimations.java | 116 int orientation = getResources().getConfiguration().orientation; 118 putExtra(PACKAGE + ".orientation", orientation).
|
D | PictureDetailsActivity.java | 201 if (getResources().getConfiguration().orientation != mOriginalOrientation) { in runExitAnimation()
|
/development/samples/devbytes/graphics/FoldingLayout/src/com/example/android/foldinglayout/ |
D | FoldingLayout.java | 180 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/ |
D | README.txt | 2 You control the left/right/up/down orientation of the launcher using the accelerometer.
|
/development/apps/Development/src/com/android/development/ |
D | ConfigurationViewer.java | 49 + "orientation=" + c.orientation + "\n" in onCreate()
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
D | ScreenOrientation.java | 60 mOrientation = (Spinner)findViewById(R.id.orientation); in onCreate()
|
D | FragmentLayout.java | 65 if (getResources().getConfiguration().orientation in onCreate()
|
D | PictureInPicture.java | 270 (configuration.orientation == Configuration.ORIENTATION_LANDSCAPE); in updateLayout()
|
/development/samples/VirtualDeviceManager/client/src/com/example/android/vdmdemo/client/ |
D | ImmersiveActivity.java | 222 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/ |
D | GridLayout3.java | 44 if ((configuration.orientation == Configuration.ORIENTATION_PORTRAIT)) { in create()
|
/development/samples/VirtualDeviceManager/ |
D | README.md | 254 - **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/ |
D | Camera2VideoFragment.java | 442 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/ |
D | MediaProjectionDemo.java | 176 if (getResources().getConfiguration().orientation in onItemSelected()
|
/development/samples/browseable/Camera2Basic/src/com.example.android.camera2basic/ |
D | Camera2BasicFragment.java | 573 int orientation = getResources().getConfiguration().orientation; in setUpCameraOutputs() local 574 if (orientation == Configuration.ORIENTATION_LANDSCAPE) { in setUpCameraOutputs()
|
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/ |
D | MainActivity.java | 162 final boolean isPortrait = getResources().getConfiguration().orientation == in toggleVisibleTitles()
|
/development/tools/winscope/protos/surfaceflinger/udc/ |
D | transactions.proto | 304 uint32 orientation = 5; field
|
/development/samples/browseable/Camera2Raw/src/com.example.android.camera2raw/ |
D | Camera2RawFragment.java | 620 public void onOrientationChanged(int orientation) { in onViewCreated()
|
/development/samples/SearchableDictionary/res/raw/ |
D | definitions.txt | 181 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 …
|