Home
last modified time | relevance | path

Searched refs:camera (Results 1 – 25 of 193) sorted by relevance

12345678

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowCameraTest.java23 private Camera camera; field in ShadowCameraTest
28 camera = Camera.open(); in setUp()
29 shadowCamera = Shadows.shadowOf(camera); in setUp()
39 assertThat(camera).isNotNull(); in testOpen()
45 camera = Camera.open(12); in testOpenWithId()
46 assertThat(camera).isNotNull(); in testOpenWithId()
53 camera.unlock(); in testUnlock()
59 camera.unlock(); in testReconnect()
61 camera.reconnect(); in testReconnect()
67 Camera.Parameters parameters = camera.getParameters(); in testGetParameters()
[all …]
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DCameraTest.java28 private Camera camera; field in CameraTest
33 camera = Camera.open(); in setUp()
34 shadowCamera = Robolectric.shadowOf(camera); in setUp()
44 assertThat(camera, notNullValue()); in testOpen()
50 camera.unlock(); in testUnlock()
56 camera.unlock(); in testReconnect()
58 camera.reconnect(); in testReconnect()
64 Camera.Parameters parameters = camera.getParameters(); in testGetParameters()
72 Camera.Parameters parameters = camera.getParameters(); in testSetParameters()
75 camera.setParameters(parameters); in testSetParameters()
[all …]
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/
DCameraFacade.java78 Camera camera = openCamera(0); in CameraFacade() local
80 mParameters = camera.getParameters(); in CameraFacade()
82 camera.release(); in CameraFacade()
94 Camera camera = openCamera(cameraId); in cameraCapturePicture() local
95 camera.setParameters(mParameters); in cameraCapturePicture()
98 Method method = camera.getClass().getMethod("setDisplayOrientation", int.class); in cameraCapturePicture()
99 method.invoke(camera, 90); in cameraCapturePicture()
105 FutureActivityTask<SurfaceHolder> previewTask = setPreviewDisplay(camera); in cameraCapturePicture()
106 camera.startPreview(); in cameraCapturePicture()
108 autoFocus(autoFocusResult, camera); in cameraCapturePicture()
[all …]
/external/tensorflow/tensorflow/examples/android/src/org/tensorflow/demo/
DLegacyCameraConnectionFragment.java40 private Camera camera; field in LegacyCameraConnectionFragment
80 camera = Camera.open(index);
83 Camera.Parameters parameters = camera.getParameters();
99 camera.setDisplayOrientation(90);
100 camera.setParameters(parameters);
101 camera.setPreviewTexture(texture);
103 camera.release();
106 camera.setPreviewCallbackWithBuffer(imageListener);
107 Camera.Size s = camera.getParameters().getPreviewSize();
108 camera.addCallbackBuffer(new byte[ImageUtils.getYUVByteSize(s.height, s.width)]);
[all …]
/external/zxing/qr_scanner/src/com/google/zxing/client/android/camera/
DCameraManager.java17 package com.google.zxing.client.android.camera;
51 private Camera camera; field in CameraManager
81 Camera theCamera = camera; in openDriver()
87 camera = theCamera; in openDriver()
110 if (camera != null) { in closeDriver()
111 camera.release(); in closeDriver()
112 camera = null; in closeDriver()
124 Camera theCamera = camera; in startPreview()
135 if (camera != null && previewing) { in stopPreview()
136 camera.stopPreview(); in stopPreview()
[all …]
DCameraConfigurationManager.java17 package com.google.zxing.client.android.camera;
51 void initFromCameraParameters(Camera camera) { in initFromCameraParameters() argument
52 Camera.Parameters parameters = camera.getParameters(); in initFromCameraParameters()
71 void setDesiredCameraParameters(Camera camera) { in setDesiredCameraParameters() argument
72 Camera.Parameters parameters = camera.getParameters(); in setDesiredCameraParameters()
90 camera.setParameters(parameters); in setDesiredCameraParameters()
101 void setTorch(Camera camera, boolean newSetting) { in setTorch() argument
102 Camera.Parameters parameters = camera.getParameters(); in setTorch()
104 camera.setParameters(parameters); in setTorch()
/external/webrtc/talk/app/webrtc/java/android/org/webrtc/
DVideoCapturerAndroid.java72 private android.hardware.Camera camera; // Only non-null while capturing. field in VideoCapturerAndroid
113 public void onError(int error, android.hardware.Camera camera) {
259 if (camera == null) { in switchCamera()
377 if (camera != null) { in release()
420 if (camera != null) { in startCaptureOnCameraThread()
434 camera = android.hardware.Camera.open(id); in startCaptureOnCameraThread()
456 camera.setPreviewTexture(surfaceHelper.getSurfaceTexture()); in startCaptureOnCameraThread()
464 camera.setErrorCallback(cameraErrorCallback); in startCaptureOnCameraThread()
488 if (camera == null) { in startPreviewOnCameraThread()
498 final android.hardware.Camera.Parameters parameters = camera.getParameters(); in startPreviewOnCameraThread()
[all …]
DCameraEnumerator.java63 android.hardware.Camera camera = null; in enumerateFormats() local
66 camera = android.hardware.Camera.open(cameraId); in enumerateFormats()
67 parameters = camera.getParameters(); in enumerateFormats()
72 if (camera != null) { in enumerateFormats()
73 camera.release(); in enumerateFormats()
/external/autotest/client/common_lib/cros/manual/
Dvideo_helper.py73 def check_v4l2_interface(dut, vidpid, camera): argument
82 logging.info('---check v4l2 interface for %s', camera)
83 if get_video_by_name(dut, camera):
85 return False, '{} have no v4l2 interface.'.format(camera)
88 def check_video_stream(dut, is_muted, vidpid, camera): argument
100 process_camera = get_video_streams(dut, camera)
103 return False, '{} fails to stop video streaming.'.format(camera)
106 return False, '{} fails to start video streaming.'.format(camera)
/external/autotest/client/cros/camera/
Dcamera_utils.py36 cameras = [os.path.basename(camera) for camera in
40 camera = cameras[0]
41 return camera, int(camera[5:])
/external/tensorflow/tensorflow/contrib/pi_examples/
DREADME.md44 reads frames from a camera attached to the Pi. You'll need to install and set up your
45 camera module first. The example uses Video4Linux, so you'll need to install that first.
47 at this blog post: http://www.richardmudhar.com/blog/2015/02/raspberry-pi-camera-and-motion-out-of-…
54 Once that's working, run the following commands to build and run the camera example:
57 make -f tensorflow/contrib/pi_examples/camera/Makefile
58 tensorflow/contrib/pi_examples/camera/gen/bin/camera
61 You should see it looping over camera frames as they come in, and printing the top labels
72 tensorflow/contrib/pi_examples/camera/gen/bin/camera | xargs -n 1 flite -t
/external/autotest/client/site_tests/camera_V4L2/
Dcontrol.external_camera7 PURPOSE = 'Exercises v4l2 camera devices to verify required operations.'
17 ATTRIBUTES = "suite:usb-camera"
32 This is used for third-party lab to verify camera module. The camera module is
33 an external camera device to run all test cases without reading config file.
36 job.run_test('camera_V4L2', test_list='external-camera', tag='external_camera')
/external/replicaisland/src/com/replica/replicaisland/
DGhostComponent.java62 final CameraSystem camera = sSystemRegistry.cameraSystem; in update() local
86 if (camera != null) { in update()
87 camera.setTarget(parentObject); in update()
161 final CameraSystem camera = sSystemRegistry.cameraSystem; in releaseControl() local
162 if (camera != null) { in releaseControl()
163 camera.setTarget(null); in releaseControl()
179 if (camera.pointVisible(player.getPosition(), player.width)) { in releaseControl()
DSleeperComponent.java66 CameraSystem camera = sSystemRegistry.cameraSystem; in update() local
69 …if (camera.shaking() && camera.pointVisible(parentObject.getPosition(), parentObject.width / 2.0f)… in update()
87 camera.shake(mSlamDuration, mSlamMagnitude); in update()
92 if (!camera.shaking()) { in update()
DTheSourceComponent.java63 CameraSystem camera = sSystemRegistry.cameraSystem; in update() local
68 camera.shake(SHAKE_TIME, CAMERA_HIT_SHAKE_MAGNITUDE); in update()
92 if (camera != null && manager != null && camera.getTarget() == manager.getPlayer()) { in update()
93 camera.setTarget(parentObject); in update()
DGameThread.java68 CameraSystem camera = mGameRoot.sSystemRegistry.cameraSystem; in run() local
71 if (camera != null) { in run()
72 x = camera.getFocusPositionX(); in run()
73 y = camera.getFocusPositionY(); in run()
DCameraBiasComponent.java32 CameraSystem camera = sSystemRegistry.cameraSystem; in update() local
33 if (camera != null) { in update()
34 camera.addCameraBias(parentObject.getPosition()); in update()
DPlayerComponent.java362 CameraSystem camera = sSystemRegistry.cameraSystem; in stateMove() local
363 if (camera != null) { in stateMove()
364 camera.setTarget(ghost); in stateMove()
397 CameraSystem camera = sSystemRegistry.cameraSystem; in stateStomp() local
398 if (camera != null) { in stateStomp()
399 camera.shake(STOMP_DELAY_TIME, STOMP_SHAKE_MAGNITUDE); in stateStomp()
521 CameraSystem camera = sSystemRegistry.cameraSystem; in statePostGhostDelay() local
522 if (camera != null) { in statePostGhostDelay()
523 camera.setTarget(parentObject); in statePostGhostDelay()
DRenderComponent.java59 CameraSystem camera = sSystemRegistry.cameraSystem; in update() local
61 mScreenLocation.x = (mPositionWorkspace.x - camera.getFocusPositionX() in update()
63 mScreenLocation.y = (mPositionWorkspace.y - camera.getFocusPositionY() in update()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowCamera.java51 Camera camera = newInstanceOf(Camera.class); in open() local
52 Shadows.shadowOf(camera).id = 0; in open()
53 return camera; in open()
59 Camera camera = newInstanceOf(Camera.class); in open() local
60 Shadows.shadowOf(camera).id = cameraId; in open()
61 return camera; in open()
174 public void invokeAutoFocusCallback(boolean success, Camera camera) { in invokeAutoFocusCallback() argument
181 autoFocusCallback.onAutoFocus(success, camera); in invokeAutoFocusCallback()
439 public void __constructor__(Camera camera, int width, int height) { in __constructor__() argument
/external/eigen/demos/opengl/
DREADME5 left button + ctrl quake rotate (rotate around camera position)
6 middle button + ctrl walk (progress along camera's z direction)
7 left button: pan (translate in the XY camera's plane)
9 R : move the camera to initial position
/external/opencv/
DREADME.rdoc14 http://www.tomgibara.com/android/camera-source
51 …he old 'OpenCVSample' test or modify the VideoEmulator to support a real camera. This is somethin…
53camera implementation in Java. The C++ version is the default as it is slightly faster and takes …
55camera. The reason is because when the client is running on the Android emulator, both of these m…
61 * Start the WebcamBroadcaster - this is a socket server that grabs images from your camera and serv…
63 …mes up, you will have to configure for your machine address and port for the socket camera to work.
72 * Start the WebcamBroadcaster - this is a socket server that grabs images from your camera and serv…
74 …mes up, you will have to configure for your machine address and port for the socket camera to work.
/external/autotest/server/site_tests/enterprise_CFM_PTZStress/
Dcontrol.PTZPro221 2. During meeting PTZ the camera according to the control file.
24 2. Verify PTZ signals are sent to the camera.
30 'camera': cfm_usb_devices.PTZ_PRO_2_CAMERA,
33 'usb_trace_path': '/tmp/camera.mon.out'
/external/tensorflow/tensorflow/docs_src/mobile/tflite/
Ddemo_android.md3 The TensorFlow Lite demo is a camera app that continuously classifies whatever
4 it sees from your device's back camera, using a quantized MobileNet model.
38 You'll have to grant permissions for the app to use the device's camera. Point
39 the camera at various objects and enjoy seeing how the model classifies things!
/external/tensorflow/tensorflow/contrib/pi_examples/camera/
DMakefile28 EXECUTABLE_NAME := $(BINDIR)/camera
60 EXECUTABLE_SRCS := tensorflow/contrib/pi_examples/camera/camera.cc

12345678