Searched refs:mLocks (Results 1 – 2 of 2) sorted by relevance
60 private CountDownLatch[] mLocks = new CountDownLatch[NUM_LOCKS]; field in CtsSelfManagedConnectionService76 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()
45 private final Lock[] mLocks = new Lock[mMaxSurfaces]; field in CodecDynamicTestActivity60 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 …]