Home
last modified time | relevance | path

Searched refs:sem (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DCameraStressTest.java72 final Semaphore sem = new Semaphore(0); in setUp() local
79 sem.release(); in setUp()
85 if (!sem.tryAcquire(WAIT_TIMEOUT, TimeUnit.MILLISECONDS)) { in setUp()
117 final Semaphore sem = new Semaphore(0); in runOnLooper() local
124 sem.release(); in runOnLooper()
128 if (!sem.tryAcquire(WAIT_TIMEOUT, TimeUnit.MILLISECONDS)) { in runOnLooper()
DMediaRecorderStressTest.java72 final Semaphore sem = new Semaphore(0); in setUp() local
79 sem.release(); in setUp()
85 if (! sem.tryAcquire(WAIT_TIMEOUT, TimeUnit.MILLISECONDS)) { in setUp()
119 final Semaphore sem = new Semaphore(0); in runOnLooper() local
126 sem.release(); in runOnLooper()
130 if (! sem.tryAcquire(WAIT_TIMEOUT, TimeUnit.MILLISECONDS)) { in runOnLooper()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/camera/
DCameraFunctionalTest.java72 final Semaphore sem = new Semaphore(0); in setUp() local
79 sem.release(); in setUp()
85 if (!sem.tryAcquire(WAIT_TIMEOUT, TimeUnit.MILLISECONDS)) { in setUp()
111 final Semaphore sem = new Semaphore(0); in runOnLooper() local
118 sem.release(); in runOnLooper()
122 if (!sem.tryAcquire(WAIT_TIMEOUT, TimeUnit.MILLISECONDS)) { in runOnLooper()
DCameraPairwiseTest.java74 final Semaphore sem = new Semaphore(0); in setUp() local
81 sem.release(); in setUp()
87 if (!sem.tryAcquire(WAIT_TIMEOUT, TimeUnit.MILLISECONDS)) { in setUp()
113 final Semaphore sem = new Semaphore(0); in runOnLooper() local
120 sem.release(); in runOnLooper()
124 if (!sem.tryAcquire(WAIT_TIMEOUT, TimeUnit.MILLISECONDS)) { in runOnLooper()