Home
last modified time | relevance | path

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

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowCameraTest.java24 private ShadowCamera shadowCamera; field in ShadowCameraTest
29 shadowCamera = Shadows.shadowOf(camera); in setUp()
52 assertThat(shadowCamera.isLocked()).isTrue(); in testUnlock()
54 assertThat(shadowCamera.isLocked()).isFalse(); in testUnlock()
60 assertThat(shadowCamera.isLocked()).isFalse(); in testReconnect()
62 assertThat(shadowCamera.isLocked()).isTrue(); in testReconnect()
86 assertThat(shadowCamera.getPreviewDisplay()).isSameAs(previewSurfaceHolder); in testSetPreviewDisplay()
91 assertThat(shadowCamera.isPreviewing()).isFalse(); in testStartPreview()
93 assertThat(shadowCamera.isPreviewing()).isTrue(); in testStartPreview()
99 assertThat(shadowCamera.isPreviewing()).isTrue(); in testStopPreview()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowCamera.java52 ShadowCamera shadowCamera = Shadow.extract(camera); in open() local
53 shadowCamera.id = 0; in open()
61 ShadowCamera shadowCamera = Shadow.extract(camera); in open() local
62 shadowCamera.id = cameraId; in open()