@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;
 }
Пример #2
0
 /** Configure camera capture setting for this site. */
 public void setCameraPermission(ContentSetting value) {
   if (mCameraInfo != null) mCameraInfo.setContentSetting(value);
 }
Пример #3
0
 /** Returns what setting governs camera capture access. */
 public ContentSetting getCameraPermission() {
   return mCameraInfo != null ? mCameraInfo.getContentSetting() : null;
 }