Home
last modified time | relevance | path

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

12

/cts/hostsidetests/adpf/app/hintsession/src/cpp/external/
Dandroid_native_app_glue.c40 pthread_mutex_lock(&android_app->mutex); in free_saved_state()
46 pthread_mutex_unlock(&android_app->mutex); in free_saved_state()
92 pthread_mutex_lock(&android_app->mutex); in android_app_pre_exec_cmd()
103 pthread_mutex_unlock(&android_app->mutex); in android_app_pre_exec_cmd()
108 pthread_mutex_lock(&android_app->mutex); in android_app_pre_exec_cmd()
111 pthread_mutex_unlock(&android_app->mutex); in android_app_pre_exec_cmd()
124 pthread_mutex_lock(&android_app->mutex); in android_app_pre_exec_cmd()
127 pthread_mutex_unlock(&android_app->mutex); in android_app_pre_exec_cmd()
148 pthread_mutex_lock(&android_app->mutex); in android_app_post_exec_cmd()
151 pthread_mutex_unlock(&android_app->mutex); in android_app_post_exec_cmd()
[all …]
Dandroid_native_app_glue.h166 pthread_mutex_t mutex; member
/cts/tests/tests/media/audio/jni/
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;
/cts/hostsidetests/securitybulletin/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/hostsidetests/securitybulletin/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/securitybulletin/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/tests/tests/libthermalndk/jni/
DNativeThermalTest.cpp45 std::mutex mMutex;
58 std::lock_guard<std::mutex> guard(ctx->mMutex); in onStatusChange()
79 std::unique_lock<std::mutex> lock(ctx.mMutex); in testGetCurrentThermalStatus()
107 std::unique_lock<std::mutex> lock(ctx.mMutex); in testRegisterThermalStatusListener()
169 std::unique_lock<std::mutex> lock(ctx.mMutex); in testThermalStatusRegisterNullListener()
214 std::unique_lock<std::mutex> lock(ctx.mMutex); in testThermalStatusListenerDoubleRegistration()
284 std::unique_lock<std::mutex> lock(ctx.mMutex); in testGetThermalHeadroom()
315 std::unique_lock<std::mutex> lock(ctx.mMutex); in testGetThermalHeadroomThresholds()
/cts/tests/tests/virtualdevice/camera/src/android/virtualdevice/cts/camera/util/jni/
Dandroid_virtualdevice_cts_camera_util_NativeCameraManager.cc107 std::lock_guard<std::mutex> lock(mLock); in ~AvailabilityCallbackProxy()
120 std::lock_guard<std::mutex> lock(mLock); in invokeCallback()
144 mutable std::mutex mLock;
155 std::lock_guard<std::mutex> lock(mLock); in ~CameraManager()
205 std::lock_guard<std::mutex> lock(mLock); in registerAvailabilityCallback()
212 std::mutex mLock;
/cts/hostsidetests/jvmti/base/jni/
Dtracking.cpp41 static std::mutex gLock;
54 std::unique_lock<std::mutex> mu(gLock); in RecordAllocationEvent()
121 std::unique_lock<std::mutex> mu(gLock); in Java_android_jvmti_cts_JvmtiTrackingTest_getAndResetAllocationTrackingString()
129 std::unique_lock<std::mutex> mu(gLock); in Java_android_jvmti_cts_JvmtiTrackingTest_getAndResetAllocationTrackingString()
/cts/apps/CtsVerifier/jni/megaaudio/common/
DOboeStream.cpp49 std::lock_guard<std::mutex> lock(mStreamLock); in teardownStream()
72 std::lock_guard<std::mutex> lock(mStreamLock); in startStream()
93 std::lock_guard<std::mutex> lock(mStreamLock); in stopStream()
DOboeStream.h59 std::mutex mStreamLock;
/cts/tests/surfacecontrol/jni/
Dandroid_view_surfacecontrol_cts_ChoreographerNativeTest.cpp71 std::lock_guard<std::mutex> _l(gLock); in refreshRateCallback()
78 std::lock_guard<std::mutex> _l(gLock); in refreshRateCallbackWithDisplayManager()
100 std::lock_guard<std::mutex> _l(gLock); in verifyRefreshRateCallback()
117 std::lock_guard<std::mutex> _l(gLock); in resetRefreshRateCallback()
122 std::lock_guard<std::mutex> _l{gLock}; in android_view_surfacecontrol_cts_ChoreographerNativeTest_getChoreographer()
128 std::lock_guard<std::mutex> _l{gLock}; in android_view_surfacecontrol_cts_ChoreographerNativeTest_prepareChoreographerTests()
154 std::lock_guard<std::mutex> _l{gLock}; in android_view_surfacecontrol_cts_ChoreographerNativeTest_testPostVsyncCallbackWithoutDelayEventuallyRunsCallback()
177 std::lock_guard<std::mutex> _l{gLock}; in android_view_surfacecontrol_cts_ChoreographerNativeTest_testFrameCallbackDataVsyncIdValid()
199 std::lock_guard<std::mutex> _l{gLock}; in android_view_surfacecontrol_cts_ChoreographerNativeTest_testFrameCallbackDataDeadlineInFuture()
239 std::lock_guard<std::mutex> _l{gLock}; in android_view_surfacecontrol_cts_ChoreographerNativeTest_testFrameCallbackDataExpectedPresentTimeInFuture()
[all …]
DChoreographerTestUtils.h56 static std::mutex gLock;
104 std::lock_guard<std::mutex> _l(gLock); in vsyncCallback()
135 std::lock_guard<std::mutex> _l{gLock}; in verifyCallback()
/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/media/jni/
DNativeCodecTestBase.cpp107 std::unique_lock<std::mutex> lock{mMutex}; in pushToInputList()
113 std::unique_lock<std::mutex> lock{mMutex}; in pushToOutputList()
120 std::unique_lock<std::mutex> lock{mMutex}; in getInput()
135 std::unique_lock<std::mutex> lock{mMutex}; in getOutput()
150 std::unique_lock<std::mutex> lock{mMutex}; in getWork()
170 std::unique_lock<std::mutex> lock{mMutex}; in isInputQueueEmpty()
175 std::unique_lock<std::mutex> lock{mMutex}; in clearQueues()
181 std::unique_lock<std::mutex> lock{mMutex}; in setOutputFormat()
194 std::unique_lock<std::mutex> lock{mMutex}; in waitOnFormatChange()
206 std::unique_lock<std::mutex> lock{mMutex}; in getOutputFormat()
[all …]
/cts/hostsidetests/gwp_asan/common/jni/
Dgwp_asan_cts_library.cpp36 static std::mutex gwp_asan_ranges_mutex; in get_gwp_asan_ranges()
39 std::lock_guard<std::mutex> l(gwp_asan_ranges_mutex); in get_gwp_asan_ranges()
/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/tests/camera/libctscamera2jni/
Dnative-camera-jni.cpp71 std::lock_guard<std::mutex> lock(thiz->mMutex); in onAvailable()
83 std::lock_guard<std::mutex> lock(thiz->mMutex); in onUnavailable()
96 std::lock_guard<std::mutex> lock(thiz->mMutex); in onCameraAccessPrioritiesChanged()
108 std::lock_guard<std::mutex> lock(thiz->mMutex); in onPhysicalCameraAvailable()
120 std::lock_guard<std::mutex> lock(thiz->mMutex); in onPhysicalCameraUnavailable()
127 std::lock_guard<std::mutex> lock(mMutex); in resetCount()
137 std::lock_guard<std::mutex> lock(mMutex); in getAvailableCount()
142 std::lock_guard<std::mutex> lock(mMutex); in getUnavailableCount()
147 std::lock_guard<std::mutex> lock(mMutex); in getCameraAccessPrioritiesChangedCount()
152 std::lock_guard<std::mutex> lock(mMutex); in getPhysicalCameraAvailableCount()
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0213/
Dpoc.cpp44 std::mutex &queueLock, std::condition_variable &queueCondition,
241 std::mutex mQueueLock;
253 std::mutex &queueLock, std::condition_variable &queueCondition, in workDone()
287 typedef std::unique_lock<std::mutex> ULock; in workDone()
299 std::mutex &queueLock, std::condition_variable &queueCondition, in decodeNFrames()
303 typedef std::unique_lock<std::mutex> ULock; in decodeNFrames()
402 void waitOnInputConsumption(std::mutex &queueLock, std::condition_variable &queueCondition, in waitOnInputConsumption()
405 typedef std::unique_lock<std::mutex> ULock; in waitOnInputConsumption()
/cts/hostsidetests/adpf/app/hintsession/src/cpp/
DJNIManager.h70 std::mutex mutex_;
/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/misc/jni/
DAImageReaderCts.cpp321 std::lock_guard<std::mutex> lock(mMutex); in getAcquiredImageCount()
326 std::lock_guard<std::mutex> lock(mMutex); in HandleImageAvailable()
456 std::mutex mMutex;
/cts/tests/tests/security/jni/
Dandroid_security_cts_cve_2019_2213_Test.c697 pthread_mutex_t mutex; member
708 if (pthread_mutex_init(&ret->mutex, NULL) || in alloc_sync()
728 pthread_cond_wait(&sync->cond, &sync->mutex); in sync_pth_wait()
732 pthread_mutex_lock(&sync->mutex); in sync_wait()
737 pthread_mutex_unlock(&sync->mutex); in sync_wait()
741 pthread_mutex_lock(&sync->mutex); in sync_signal()
746 pthread_mutex_unlock(&sync->mutex); in sync_signal()
750 pthread_mutex_lock(&sync->mutex); in sync_done()
755 pthread_mutex_unlock(&sync->mutex); in sync_done()
759 pthread_mutex_lock(&sync->mutex); in sync_wait_done()
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8428/
Dpoc.c106 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable

12