Home
last modified time | relevance | path

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

/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/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/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()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DGridLayout3.java44 if ((configuration.orientation == Configuration.ORIENTATION_PORTRAIT)) { in create()
/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/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/ApiDemos/src/com/example/android/apis/media/projection/
DMediaProjectionDemo.java177 if (getResources().getConfiguration().orientation in onItemSelected()
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/
DMainActivity.java162 final boolean isPortrait = getResources().getConfiguration().orientation == in toggleVisibleTitles()
/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 …
/development/tools/repo_diff/service/repodiff/persistence/filesystem/testdata/
Dcommit.csv494 …R_ASgeGf8dkm2I-LAfake_-pRe7HvfTh-7H5fXuvLrzQ@fakeemail.com,Lock screen orientation of CapturedActi…
579 …rm/cts,fake_kbEkXpsfS6KMXV-8N_Y9-g@fakeemail.com,Modify non fullscreen orientation tests to permit…
1280 …fS6KMXV-8N_Y9-g@fakeemail.com,Additional CTS tests to exercise non-fullscreen activity orientation.
2026 …ake_A1FlkHyDTtKjTjC86wH0Nw@fakeemail.com,"change DragDropTest's screen orientation to ""portrait"""
2040 …fS6KMXV-8N_Y9-g@fakeemail.com,Additional CTS tests to exercise non-fullscreen activity orientation.
2454 …e407a3f36d,platform/cts,fake_KwarIwS3SU2ySdeTlVQQ8w@fakeemail.com,Lock orientation for CapturedAct…
3341 …fake_5Jd0GwVRSsKXtPWk30gcjA@fakeemail.com,Add test to ensure requested orientation is respected on…
4076 …VRSsKXtPWk30gcjA@fakeemail.com,Test that PiP has right bounds when launching in forced orientation.
4182 …c88da8b7,platform/cts,fake_XS0O1HOETRCiH40ZBPoyOQ@fakeemail.com,Handle orientation changes in GetR…
4214 …cts,fake_vGkRrayISaC6H5ijCsLTww@fakeemail.com,Add CTS for consequent fixed orientation app launches
[all …]