Home
last modified time | relevance | path

Searched refs:mOrientation (Results 1 – 5 of 5) sorted by relevance

/development/samples/ApiDemos/src/com/example/android/apis/app/
DScreenOrientation.java32 Spinner mOrientation; field in ScreenOrientation
60 mOrientation = (Spinner)findViewById(R.id.orientation); in onCreate()
64 mOrientation.setAdapter(adapter); in onCreate()
65 mOrientation.setOnItemSelectedListener( in onCreate()
/development/samples/Compass/src/com/example/android/compass/
DCompassActivity.java54 private float[] mOrientation = new float[3]; field in CompassActivity
228 SensorManager.getOrientation(mR, mOrientation); in onSensorChanged()
234 Log.d("Compass", "yaw: " + (int)(mOrientation[0]*rad2deg) + in onSensorChanged()
235 " pitch: " + (int)(mOrientation[1]*rad2deg) + in onSensorChanged()
236 " roll: " + (int)(mOrientation[2]*rad2deg) + in onSensorChanged()
/development/samples/Home/src/com/example/android/home/
DApplicationsStackLayout.java74 private int mOrientation = VERTICAL; field in ApplicationsStackLayout
97 mOrientation = a.getInt(R.styleable.ApplicationsStackLayout_stackOrientation, VERTICAL); in ApplicationsStackLayout()
127 return mOrientation; in getOrientation()
138 if (mOrientation == VERTICAL) { in onDraw()
148 if (mOrientation == VERTICAL) { in onDraw()
187 if (mOrientation == VERTICAL) { in onLayout()
247 final boolean isVertical = mOrientation == VERTICAL; in stackApplications()
/development/samples/devbytes/graphics/FoldingLayout/src/com/example/android/foldinglayout/
DFoldingLayoutActivity.java84 private Orientation mOrientation = Orientation.HORIZONTAL; field in FoldingLayoutActivity
284 mOrientation = (mOrientation == Orientation.HORIZONTAL) ? Orientation.VERTICAL : in onOptionsItemSelected()
286 item.setTitle((mOrientation == Orientation.HORIZONTAL) ? R.string.vertical : in onOptionsItemSelected()
289 mFoldLayout.setOrientation(mOrientation); in onOptionsItemSelected()
383 if (mOrientation == Orientation.VERTICAL) { in onScroll()
DFoldingLayout.java72 private Orientation mOrientation = Orientation.HORIZONTAL; field in FoldingLayout
181 if (orientation != mOrientation) { in setOrientation()
182 mOrientation = orientation; in setOrientation()
206 return mOrientation; in getOrientation()
218 prepareFold(mOrientation, mAnchorFactor, mNumberOfFolds); in updateFold()
246 mOrientation = orientation; in prepareFold()