@Override protected void setUp() throws Exception { super.setUp(); camera = new CameraInfo(); camera.focalLength = 5.0; camera.sensorWidth = 6.0; camera.sensorHeight = 4.0; camera.sensorResolution = 10.0; }
/** Configure camera capture setting for this site. */ public void setCameraPermission(ContentSetting value) { if (mCameraInfo != null) mCameraInfo.setContentSetting(value); }
/** Returns what setting governs camera capture access. */ public ContentSetting getCameraPermission() { return mCameraInfo != null ? mCameraInfo.getContentSetting() : null; }