/hardware/qcom/camera/msm8998/QCamera2/stack/common/ |
D | cam_semaphore.h | 49 pthread_mutex_t mutex; member 55 pthread_mutex_init(&(s->mutex), NULL); in cam_sem_init() 62 pthread_mutex_lock(&(s->mutex)); in cam_sem_post() 65 pthread_mutex_unlock(&(s->mutex)); in cam_sem_post() 71 pthread_mutex_lock(&(s->mutex)); in cam_sem_wait() 73 rc = pthread_cond_wait(&(s->cond), &(s->mutex)); in cam_sem_wait() 75 pthread_mutex_unlock(&(s->mutex)); in cam_sem_wait() 82 pthread_mutex_lock(&(s->mutex)); in cam_sem_timedwait() 84 rc = pthread_cond_timedwait(&(s->cond), &(s->mutex), abs_timeout); in cam_sem_timedwait() 89 pthread_mutex_unlock(&(s->mutex)); in cam_sem_timedwait() [all …]
|
/hardware/google/gchips/gralloc4/src/hidl_common/ |
D | RegisteredHandlePool.cpp | 23 std::lock_guard<std::mutex> lock(mutex); in add() 31 std::lock_guard<std::mutex> lock(mutex); in remove() 39 std::lock_guard<std::mutex> lock(mutex); in get() 45 std::lock_guard<std::mutex> lock(mutex); in isRegistered() 51 std::lock_guard<std::mutex> lock(mutex); in for_each()
|
/hardware/interfaces/bluetooth/1.0/default/test/ |
D | h4_protocol_unittest.cc | 69 ACTION_P2(Notify, mutex, condition) { in ACTION_P2() argument 71 std::unique_lock<std::mutex> lock(*mutex); in ACTION_P2() 130 std::mutex mutex; in WriteAndExpectInboundAclData() local 134 .WillOnce(Notify(&mutex, &done)); in WriteAndExpectInboundAclData() 140 std::unique_lock<std::mutex> lock(mutex); in WriteAndExpectInboundAclData() 155 std::mutex mutex; in WriteAndExpectInboundScoData() local 159 .WillOnce(Notify(&mutex, &done)); in WriteAndExpectInboundScoData() 165 std::unique_lock<std::mutex> lock(mutex); in WriteAndExpectInboundScoData() 179 std::mutex mutex; in WriteAndExpectInboundEvent() local 183 .WillOnce(Notify(&mutex, &done)); in WriteAndExpectInboundEvent() [all …]
|
D | mct_protocol_unittest.cc | 62 ACTION_P2(Notify, mutex, condition) { in ACTION_P2() argument 64 std::unique_lock<std::mutex> lock(*mutex); in ACTION_P2() 132 std::mutex mutex; in WriteAndExpectInboundAclData() local 136 .WillOnce(Notify(&mutex, &done)); in WriteAndExpectInboundAclData() 142 std::unique_lock<std::mutex> lock(mutex); in WriteAndExpectInboundAclData() 157 std::mutex mutex; in WriteAndExpectInboundEvent() local 161 .WillOnce(Notify(&mutex, &done)); in WriteAndExpectInboundEvent() 167 std::unique_lock<std::mutex> lock(mutex); in WriteAndExpectInboundEvent()
|
/hardware/google/camera/common/apex_update_listener/ |
D | apex_update_listener_test.cc | 47 std::mutex mutex; in TEST() local 72 .WillOnce([&mutex, &wait_cv]() { in TEST() 73 std::lock_guard<std::mutex> lock(mutex); in TEST() 82 std::unique_lock<std::mutex> lock(mutex); in TEST() 90 std::mutex mutex; in TEST() local 103 .WillOnce([&mutex, &wait_cv]() { in TEST() 104 std::lock_guard<std::mutex> lock(mutex); in TEST() 112 std::unique_lock<std::mutex> lock(mutex); in TEST()
|
/hardware/interfaces/graphics/composer/2.4/utils/vts/ |
D | GraphicsComposerCallback.cpp | 22 std::lock_guard<std::mutex> lock(mMutex); in setVsyncAllowed() 27 std::lock_guard<std::mutex> lock(mMutex); in getDisplays() 32 std::lock_guard<std::mutex> lock(mMutex); in getInvalidHotplugCount() 37 std::lock_guard<std::mutex> lock(mMutex); in getInvalidRefreshCount() 42 std::lock_guard<std::mutex> lock(mMutex); in getInvalidVsyncCount() 47 std::lock_guard<std::mutex> lock(mMutex); in getInvalidVsync_2_4Count() 52 std::lock_guard<std::mutex> lock(mMutex); in getInvalidVsyncPeriodChangeCount() 57 std::lock_guard<std::mutex> lock(mMutex); in getInvalidSeamlessPossibleCount() 63 std::lock_guard<std::mutex> lock(mMutex); in takeLastVsyncPeriodChangeTimeline() 72 std::lock_guard<std::mutex> lock(mMutex); in onHotplug() [all …]
|
/hardware/google/gfxstream/guest/mesa/src/util/ |
D | u_thread.h | 129 mtx_t mutex; member 147 mtx_t mutex; member 156 (void) mtx_init(&sema->mutex, mtx_plain); in util_semaphore_init() 164 mtx_destroy(&sema->mutex); in util_semaphore_destroy() 172 mtx_lock(&sema->mutex); in util_semaphore_signal() 175 mtx_unlock(&sema->mutex); in util_semaphore_signal() 182 mtx_lock(&sema->mutex); in util_semaphore_wait() 184 cnd_wait(&sema->cond, &sema->mutex); in util_semaphore_wait() 187 mtx_unlock(&sema->mutex); in util_semaphore_wait()
|
/hardware/qcom/sm8150/display/libhistogram/ |
D | ringbuffer.cpp | 61 std::unique_lock<decltype(mutex)> lk(mutex); in insert() 73 std::unique_lock<decltype(mutex)> lk(mutex); in resize() 83 std::unique_lock<decltype(mutex)> lk(mutex); in collect_cumulative() 90 std::unique_lock<decltype(mutex)> lk(mutex); in collect_ringbuffer_all() 96 std::unique_lock<decltype(mutex)> lk(mutex); in collect_after() 101 std::unique_lock<decltype(mutex)> lk(mutex); in collect_max() 107 std::unique_lock<decltype(mutex)> lk(mutex); in collect_max_after() 112 uint32_t max_frames, std::unique_lock<std::mutex> const&) const { in collect_max() 133 nsecs_t timestamp, uint32_t max_frames, std::unique_lock<std::mutex> const& lk) const { in collect_max_after()
|
/hardware/qcom/sm7250/display/libhistogram/ |
D | ringbuffer.cpp | 68 std::unique_lock<decltype(mutex)> lk(mutex); in insert() 84 std::unique_lock<decltype(mutex)> lk(mutex); in resize() 94 std::unique_lock<decltype(mutex)> lk(mutex); in collect_cumulative() 101 std::unique_lock<decltype(mutex)> lk(mutex); in collect_ringbuffer_all() 106 std::unique_lock<decltype(mutex)> lk(mutex); in collect_after() 111 std::unique_lock<decltype(mutex)> lk(mutex); in collect_max() 117 std::unique_lock<decltype(mutex)> lk(mutex); in collect_max_after() 122 uint32_t max_frames, std::unique_lock<std::mutex> const &) const { in collect_max() 144 nsecs_t timestamp, uint32_t max_frames, std::unique_lock<std::mutex> const &lk) const { in collect_max_after()
|
/hardware/ti/am57x/libhwcomposer/ |
D | display.cpp | 41 std::unique_lock<std::mutex> lock(this->mutex); in setup_composition_pipes() 61 std::unique_lock<std::mutex> lock(display->mutex); in page_flip_handler() 106 std::unique_lock<std::mutex> lock(display->mutex); in vblank_handler() 120 std::unique_lock<std::mutex> lock(this->mutex); in set_vsync_state() 156 std::unique_lock<std::mutex> lock(this->mutex); in update_display() 193 std::unique_lock<std::mutex> lock(this->mutex); in blank() 220 std::unique_lock<std::mutex> lock(this->mutex); in get_display_configs() 239 std::unique_lock<std::mutex> lock(this->mutex); in get_display_attributes()
|
/hardware/interfaces/graphics/composer/2.1/utils/vts/ |
D | GraphicsComposerCallback.cpp | 27 std::lock_guard<std::mutex> lock(mMutex); in setVsyncAllowed() 32 std::lock_guard<std::mutex> lock(mMutex); in getDisplays() 37 std::lock_guard<std::mutex> lock(mMutex); in getInvalidHotplugCount() 42 std::lock_guard<std::mutex> lock(mMutex); in getInvalidRefreshCount() 47 std::lock_guard<std::mutex> lock(mMutex); in getInvalidVsyncCount() 52 std::lock_guard<std::mutex> lock(mMutex); in onHotplug() 73 std::lock_guard<std::mutex> lock(mMutex); in onRefresh() 84 std::lock_guard<std::mutex> lock(mMutex); in onVsync()
|
/hardware/qcom/sm8150/display/sdm/libs/hwc2/ |
D | hwc_callbacks.cpp | 38 std::lock_guard<std::mutex> hotplug_lock(hotplug_mutex_); in Hotplug() 47 std::lock_guard<std::mutex> refresh_lock(refresh_mutex_); in Refresh() 57 std::lock_guard<std::mutex> vsync_lock(vsync_mutex_); in Vsync() 67 std::lock_guard<std::mutex> vsync_2_4_lock(vsync_2_4_mutex_); in Vsync_2_4() 78 std::lock_guard<std::mutex> in VsyncPeriodTimingChanged() 92 std::lock_guard<std::mutex> hotplug_lock(hotplug_mutex_); in Register() 97 std::lock_guard<std::mutex> refresh_lock(refresh_mutex_); in Register() 102 std::lock_guard<std::mutex> vsync_lock(vsync_mutex_); in Register() 107 std::lock_guard<std::mutex> vsync_2_4_lock(vsync_2_4_mutex_); in Register() 112 std::lock_guard<std::mutex> in Register()
|
/hardware/qcom/display/msm8909w_3100/sdm/include/utils/ |
D | sync_task.h | 58 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in SyncTask() 76 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in PerformTask() 81 std::unique_lock<std::mutex> worker_lock(worker_mutex_); in PerformTask() 103 std::unique_lock<std::mutex> worker_lock(worker_mutex_); in OnThreadCallback() 108 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in OnThreadCallback() 124 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in OnThreadCallback() 133 std::mutex caller_mutex_; 134 std::mutex worker_mutex_;
|
/hardware/qcom/sm8150/display/sdm/include/utils/ |
D | sync_task.h | 58 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in SyncTask() 76 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in PerformTask() 81 std::unique_lock<std::mutex> worker_lock(worker_mutex_); in PerformTask() 103 std::unique_lock<std::mutex> worker_lock(worker_mutex_); in OnThreadCallback() 108 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in OnThreadCallback() 124 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in OnThreadCallback() 133 std::mutex caller_mutex_; 134 std::mutex worker_mutex_;
|
/hardware/qcom/display/msm8909/sdm/include/utils/ |
D | sync_task.h | 58 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in SyncTask() 76 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in PerformTask() 81 std::unique_lock<std::mutex> worker_lock(worker_mutex_); in PerformTask() 103 std::unique_lock<std::mutex> worker_lock(worker_mutex_); in OnThreadCallback() 108 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in OnThreadCallback() 124 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in OnThreadCallback() 133 std::mutex caller_mutex_; 134 std::mutex worker_mutex_;
|
/hardware/qcom/display/msm8998/sdm/include/utils/ |
D | sync_task.h | 58 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in SyncTask() 76 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in PerformTask() 81 std::unique_lock<std::mutex> worker_lock(worker_mutex_); in PerformTask() 103 std::unique_lock<std::mutex> worker_lock(worker_mutex_); in OnThreadCallback() 108 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in OnThreadCallback() 124 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in OnThreadCallback() 133 std::mutex caller_mutex_; 134 std::mutex worker_mutex_;
|
/hardware/qcom/sm7250/display/sdm/include/utils/ |
D | sync_task.h | 58 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in SyncTask() 76 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in PerformTask() 81 std::unique_lock<std::mutex> worker_lock(worker_mutex_); in PerformTask() 103 std::unique_lock<std::mutex> worker_lock(worker_mutex_); in OnThreadCallback() 108 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in OnThreadCallback() 124 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in OnThreadCallback() 133 std::mutex caller_mutex_; 134 std::mutex worker_mutex_;
|
/hardware/interfaces/automotive/vehicle/aidl/impl/vhal/test/ |
D | MockVehicleHardware.cpp | 41 std::unique_lock<std::mutex> lk(mLock); in ~MockVehicleHardware() 47 std::scoped_lock<std::mutex> lockGuard(mLock); in getAllPropertyConfigs() 53 std::scoped_lock<std::mutex> lockGuard(mLock); in setValues() 72 std::scoped_lock<std::mutex> lockGuard(mLock); in getValues() 94 std::scoped_lock<std::mutex> lockGuard(mLock); in subscribe() 107 std::scoped_lock<std::mutex> lockGuard(mLock); in getSubscribeOptions() 112 std::scoped_lock<std::mutex> lockGuard(mLock); in clearSubscribeOptions() 120 std::scoped_lock<std::mutex> lockGuard(mLock); in subscribePropIdAreaId() 129 std::scoped_lock<std::mutex> lockGuard(mLock); in subscribePropIdAreaId() 159 std::scoped_lock<std::mutex> lockGuard(mLock); in unsubscribe() [all …]
|
/hardware/qcom/camera/msm8998/QCamera2/HAL3/ |
D | QCamera3HdrPlusListenerThread.cpp | 47 std::unique_lock<std::mutex> l(mCallbackLock); in onOpened() 58 std::unique_lock<std::mutex> l(mCallbackLock); in onOpenFailed() 70 std::unique_lock<std::mutex> l(mCallbackLock); in onFatalError() 82 std::unique_lock<std::mutex> l(mCallbackLock); in onCaptureResult() 96 std::unique_lock<std::mutex> l(mCallbackLock); in onFailedCaptureResult() 110 std::unique_lock<std::mutex> l(mCallbackLock); in onShutter() 121 std::unique_lock<std::mutex> l(mCallbackLock); in onNextCaptureReady() 133 std::unique_lock<std::mutex> l(mCallbackLock); in onPostview() 151 std::unique_lock<std::mutex> l(mCallbackLock); in requestExit() 160 std::unique_lock<std::mutex> lock(mCallbackLock); in handleFatalError() [all …]
|
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/vdec/src/ |
D | message_queue.c | 74 pthread_mutex_lock(&ptr_q->mutex); in queue_get_cmd() 87 pthread_mutex_unlock(&ptr_q->mutex); in queue_get_cmd() 106 pthread_mutex_lock(&ptr_q->mutex); in queue_post_cmdq() 111 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_cmdq() 121 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_cmdq() 142 pthread_mutex_lock(&ptr_q->mutex); in queue_post_dataq() 147 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_dataq() 157 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_dataq()
|
/hardware/qcom/sm8150/media/mm-video-v4l2/vidc/vdec/src/ |
D | message_queue.c | 74 pthread_mutex_lock(&ptr_q->mutex); in queue_get_cmd() 87 pthread_mutex_unlock(&ptr_q->mutex); in queue_get_cmd() 106 pthread_mutex_lock(&ptr_q->mutex); in queue_post_cmdq() 111 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_cmdq() 121 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_cmdq() 142 pthread_mutex_lock(&ptr_q->mutex); in queue_post_dataq() 147 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_dataq() 157 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_dataq()
|
/hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/src/ |
D | message_queue.c | 74 pthread_mutex_lock(&ptr_q->mutex); in queue_get_cmd() 87 pthread_mutex_unlock(&ptr_q->mutex); in queue_get_cmd() 106 pthread_mutex_lock(&ptr_q->mutex); in queue_post_cmdq() 111 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_cmdq() 121 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_cmdq() 142 pthread_mutex_lock(&ptr_q->mutex); in queue_post_dataq() 147 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_dataq() 157 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_dataq()
|
/hardware/qcom/sm7250/media/mm-video-v4l2/vidc/vdec/src/ |
D | message_queue.c | 74 pthread_mutex_lock(&ptr_q->mutex); in queue_get_cmd() 87 pthread_mutex_unlock(&ptr_q->mutex); in queue_get_cmd() 106 pthread_mutex_lock(&ptr_q->mutex); in queue_post_cmdq() 111 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_cmdq() 121 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_cmdq() 142 pthread_mutex_lock(&ptr_q->mutex); in queue_post_dataq() 147 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_dataq() 157 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_dataq()
|
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/src/ |
D | message_queue.c | 74 pthread_mutex_lock(&ptr_q->mutex); in queue_get_cmd() 87 pthread_mutex_unlock(&ptr_q->mutex); in queue_get_cmd() 106 pthread_mutex_lock(&ptr_q->mutex); in queue_post_cmdq() 111 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_cmdq() 121 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_cmdq() 142 pthread_mutex_lock(&ptr_q->mutex); in queue_post_dataq() 147 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_dataq() 157 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_dataq()
|
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/vdec/src/ |
D | message_queue.c | 80 pthread_mutex_lock(&ptr_q->mutex); in queue_get_cmd() 96 pthread_mutex_unlock(&ptr_q->mutex); in queue_get_cmd() 115 pthread_mutex_lock(&ptr_q->mutex); in queue_post_cmdq() 121 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_cmdq() 133 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_cmdq() 154 pthread_mutex_lock(&ptr_q->mutex); in queue_post_dataq() 160 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_dataq() 172 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_dataq()
|