Home
last modified time | relevance | path

Searched refs:mCameraOpenCloseLock (Results 1 – 3 of 3) sorted by relevance

/development/samples/browseable/Camera2Video/src/com.example.android.camera2video/
DCamera2VideoFragment.java182 private Semaphore mCameraOpenCloseLock = new Semaphore(1); field in Camera2VideoFragment
193 mCameraOpenCloseLock.release();
201 mCameraOpenCloseLock.release();
208 mCameraOpenCloseLock.release();
428 if (!mCameraOpenCloseLock.tryAcquire(2500, TimeUnit.MILLISECONDS)) { in openCamera()
466 mCameraOpenCloseLock.acquire(); in closeCamera()
479 mCameraOpenCloseLock.release(); in closeCamera()
/development/samples/browseable/Camera2Basic/src/com.example.android.camera2basic/
DCamera2BasicFragment.java192 mCameraOpenCloseLock.release();
199 mCameraOpenCloseLock.release();
206 mCameraOpenCloseLock.release();
271 private Semaphore mCameraOpenCloseLock = new Semaphore(1); field in Camera2BasicFragment
613 if (!mCameraOpenCloseLock.tryAcquire(2500, TimeUnit.MILLISECONDS)) { in openCamera()
629 mCameraOpenCloseLock.acquire(); in closeCamera()
645 mCameraOpenCloseLock.release(); in closeCamera()
/development/samples/browseable/Camera2Raw/src/com.example.android.camera2raw/
DCamera2RawFragment.java254 private final Semaphore mCameraOpenCloseLock = new Semaphore(1); field in Camera2RawFragment
363 mCameraOpenCloseLock.release();
377 mCameraOpenCloseLock.release();
388 mCameraOpenCloseLock.release();
779 if (!mCameraOpenCloseLock.tryAcquire(2500, TimeUnit.MILLISECONDS)) { in openCamera()
856 mCameraOpenCloseLock.acquire(); in closeCamera()
884 mCameraOpenCloseLock.release(); in closeCamera()