Home
last modified time | relevance | path

Searched refs:mActivity (Results 1 – 2 of 2) sorted by relevance

/pdk/apps/TestingCamera2/src/com/android/testingcamera2/
DCameraOps2.java37 private final Activity mActivity; field in CameraOps2
46 mActivity = activity; in CameraOps2()
112 if (mActivity.checkSelfPermission(Manifest.permission.CAMERA) in openCamera()
119 mActivity.requestPermissions(new String[] {Manifest.permission.CAMERA}, in openCamera()
/pdk/apps/TestingCamera/src/com/android/testingcamera/
DTestingCamera.java341 private TestingCamera mActivity; field in TestingCamera.OrientationEventHandler
345 mActivity = activity; in OrientationEventHandler()
350 if (mActivity != null) { in onOrientationChanged()
351 int rotation = mActivity.getWindowManager().getDefaultDisplay().getRotation(); in onOrientationChanged()
354 mActivity.runOnUiThread(new Runnable() { in onOrientationChanged()
357 mActivity.setCameraDisplayOrientation(); in onOrientationChanged()
358 mActivity.resizePreview(); in onOrientationChanged()