Home
last modified time | relevance | path

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

/cts/tests/tests/telecom/src/android/telecom/cts/
DCtsSelfManagedConnectionService.java60 private CountDownLatch[] mLocks = new CountDownLatch[NUM_LOCKS]; field in CtsSelfManagedConnectionService
76 Arrays.setAll(mLocks, i -> new CountDownLatch(1)); in CtsSelfManagedConnectionService()
104 mLocks[CREATE_INCOMING_CONNECTION_FAILED_LOCK].countDown(); in onCreateIncomingConnectionFailed()
110 mLocks[CREATE_OUTGOING_CONNECTION_FAILED_LOCK].countDown(); in onCreateOutgoingConnectionFailed()
129 mLocks[HANDOVER_FAILED_LOCK].countDown(); in onHandoverFailed()
135 mLocks[FOCUS_GAINED_LOCK].countDown(); in onConnectionServiceFocusGained()
140 mLocks[FOCUS_LOST_LOCK].countDown(); in onConnectionServiceFocusLost()
182 mLocks[CONNECTION_CREATED_LOCK].countDown(); in createSelfManagedConnection()
200 mLocks[lock] = TestUtils.waitForLock(mLocks[lock]); in waitForUpdate()
201 return mLocks[lock] != null; in waitForUpdate()
/cts/tests/tests/media/codec/src/android/media/codec/cts/
DCodecDynamicTestActivity.java45 private final Lock[] mLocks = new Lock[mMaxSurfaces]; field in CodecDynamicTestActivity
60 mLocks[index].lock(); in addSurfaceView()
64 mLocks[index].unlock(); in addSurfaceView()
82 mLocks[i] = new ReentrantLock(); in onCreate()
83 mConditions[i] = mLocks[i].newCondition(); in onCreate()
91 mLocks[index].lock(); in surfaceCreated()
93 mLocks[index].unlock(); in surfaceCreated()
106 mLocks[index].lock(); in surfaceDestroyed()
108 mLocks[index].unlock(); in surfaceDestroyed()
114 mLocks[index].lock(); in waitTillSurfaceIsCreated()
[all …]