Home
last modified time | relevance | path

Searched refs:mutex (Results 1 – 20 of 20) sorted by relevance

/cts/tests/tests/media/libaudiojni/
DGate.h63 std::unique_lock<std::mutex> l(mLock); in wait()
76 std::lock_guard<std::mutex> l(mLock); in closeGate()
84 std::lock_guard<std::mutex> l(mLock); in openGate()
97 std::lock_guard<std::mutex> l(mLock); in terminate()
106 std::lock_guard<std::mutex> l(mLock); in isOpen()
112 std::lock_guard<std::mutex> l(mLock); in waiters()
122 std::mutex mLock;
Daudio-track-native.cpp281 std::lock_guard<std::mutex> rl(mWriteLock); in write()
363 std::mutex mWriteLock; // write lock - for blocking mode, prevents multiple
Daudio-record-native.cpp299 std::lock_guard<std::mutex> rl(mReadLock); in read()
424 std::mutex mReadLock; // read lock - for blocking mode, prevents multiple
/cts/hostsidetests/security/securityPatch/CVE-2016-8430/
Dpoc.c97 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable
167 pthread_mutex_lock(&mutex); in race_thread()
168 pthread_cond_wait(&cond, &mutex); in race_thread()
169 pthread_mutex_unlock(&mutex); in race_thread()
178 pthread_mutex_lock(&mutex); in race_thread_2()
179 pthread_cond_wait(&cond, &mutex); in race_thread_2()
180 pthread_mutex_unlock(&mutex); in race_thread_2()
/cts/tests/tests/view/jni/
Dandroid_view_cts_ChoreographerNativeTest.cpp44 static std::mutex gLock;
51 std::lock_guard<std::mutex> _l(gLock); in frameCallback()
77 std::lock_guard<std::mutex> _l{gLock}; in android_view_cts_ChoreographerNativeTest_getChoreographer()
83 std::lock_guard<std::mutex> _l{gLock}; in android_view_cts_ChoreographerNativeTest_prepareChoreographerTests()
99 std::lock_guard<std::mutex> _l{gLock}; in android_view_cts_ChoreographerNativeTest_testPostCallbackWithoutDelayEventuallyRunsCallback()
115 std::lock_guard<std::mutex> _l{gLock}; in android_view_cts_ChoreographerNativeTest_testPostCallbackWithoutDelayEventuallyRunsCallback()
133 std::lock_guard<std::mutex> _l{gLock}; in android_view_cts_ChoreographerNativeTest_testPostCallbackWithDelayEventuallyRunsCallback()
139 std::lock_guard<std::mutex> _l{gLock}; in android_view_cts_ChoreographerNativeTest_testPostCallbackWithDelayEventuallyRunsCallback()
/cts/hostsidetests/security/securityPatch/CVE-2016-8424/
Dpoc.c63 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable
114 pthread_mutex_lock(&mutex); in race_thread()
115 pthread_cond_wait(&cond, &mutex); in race_thread()
116 pthread_mutex_unlock(&mutex); in race_thread()
/cts/hostsidetests/security/securityPatch/CVE-2016-8434/
Dpoc.c84 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable
118 pthread_mutex_lock(&mutex); in race_thread()
119 pthread_cond_wait(&cond, &mutex); in race_thread()
120 pthread_mutex_unlock(&mutex); in race_thread()
/cts/hostsidetests/security/securityPatch/CVE-2016-8429/
Dpoc.c90 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable
149 pthread_mutex_lock(&mutex); in race_thread()
150 pthread_cond_wait(&cond, &mutex); in race_thread()
151 pthread_mutex_unlock(&mutex); in race_thread()
/cts/hostsidetests/jvmti/base/jni/
Dtracking.cpp40 static std::mutex gLock;
56 std::unique_lock<std::mutex> mu(gLock); in ObjectAllocated()
85 std::unique_lock<std::mutex> mu(gLock); in Java_android_jvmti_cts_JvmtiTrackingTest_getAndResetAllocationTrackingString()
/cts/hostsidetests/jvmti/attaching/app/jni/
Dcts_agent.cpp31 static std::mutex gVectorMutex;
99 std::lock_guard<std::mutex> guard(gVectorMutex); in ClassPrepareCallback()
105 std::lock_guard<std::mutex> guard(gVectorMutex); in Java_android_jvmti_JvmtiActivity_didSeeLoadOf()
/cts/tests/camera/libctscamera2jni/
Dnative-camera-jni.cpp58 std::lock_guard<std::mutex> lock(thiz->mMutex); in onAvailable()
70 std::lock_guard<std::mutex> lock(thiz->mMutex); in onUnavailable()
77 std::lock_guard<std::mutex> lock(mMutex); in resetCount()
84 std::lock_guard<std::mutex> lock(mMutex); in getAvailableCount()
89 std::lock_guard<std::mutex> lock(mMutex); in getUnavailableCount()
94 std::lock_guard<std::mutex> lock(mMutex); in isAvailable()
102 std::mutex mMutex;
116 std::lock_guard<std::mutex> lock(thiz->mMutex); in onDisconnected()
127 std::lock_guard<std::mutex> lock(thiz->mMutex); in onError()
134 std::mutex mMutex;
[all …]
/cts/tests/tests/graphics/jni/
DImageReaderTestHelpers.cpp75 std::lock_guard<std::mutex> lock(mMutex); in getBufferFromCurrentImage()
114 std::lock_guard<std::mutex> lock(mMutex); in handleImageAvailable()
DImageReaderTestHelpers.h50 std::mutex mMutex;
/cts/apps/CtsVerifier/jni/audio_loopback/
Dsles.h66 pthread_mutex_t mutex;// = PTHREAD_MUTEX_INITIALIZER; member
Dsles.cpp85 pthread_mutex_lock(&(pSles->mutex)); in recorderCallback()
144 pthread_mutex_unlock(&(pSles->mutex)); in recorderCallback()
157 pthread_mutex_lock(&(pSles->mutex)); in playerCallback()
210 pthread_mutex_unlock(&(pSles->mutex)); in playerCallback()
/cts/tests/tests/mediastress/jni/
Dnative-media-jni.cpp95 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable
140 ok = pthread_mutex_lock(&mutex); in AndroidBufferQueueCallback()
192 ok = pthread_mutex_unlock(&mutex); in AndroidBufferQueueCallback()
/cts/tests/tests/media/libimagereaderjni/
DAImageReaderCts.cpp325 std::lock_guard<std::mutex> lock(mMutex); in getAcquiredImageCount()
330 std::lock_guard<std::mutex> lock(mMutex); in HandleImageAvailable()
450 std::mutex mMutex;
/cts/hostsidetests/security/securityPatch/CVE-2016-8428/
Dpoc.c106 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable
/cts/tests/libcore/javautilcollections/libs/
Dguava-20.0.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...
/cts/tests/tests/media/libmediandkjni/
Dnative-media-jni.cpp136 std::mutex mMutex;