/system/netd/server/ |
D | ClatdController.h | 42 explicit ClatdController(NetworkController* controller) EXCLUDES(mutex) in ClatdController() 44 virtual ~ClatdController() EXCLUDES(mutex){}; in ~ClatdController() 47 void init(void) EXCLUDES(mutex); 50 std::string* v6Addr) EXCLUDES(mutex); 51 int stopClatd(const std::string& interface) EXCLUDES(mutex); 53 void dump(netdutils::DumpWriter& dw) EXCLUDES(mutex); 77 std::mutex mutex; variable 79 const NetworkController* mNetCtrl GUARDED_BY(mutex); 80 std::map<std::string, ClatdTracker> mClatdTrackers GUARDED_BY(mutex); 81 ClatdTracker* getClatdTracker(const std::string& interface) REQUIRES(mutex); [all …]
|
/system/chre/util/tests/ |
D | conditional_lock_guard_test.cc | 44 MockMutex mutex; in TEST() local 45 ASSERT_EQ(mutex.getLockCount(), 0); in TEST() 48 ConditionalLockGuard<MockMutex> lock(mutex, true); in TEST() 49 EXPECT_EQ(mutex.getLockCount(), 1); in TEST() 52 EXPECT_EQ(mutex.getLockCount(), 0); in TEST() 56 MockMutex mutex; in TEST() local 57 ASSERT_EQ(mutex.getLockCount(), 0); in TEST() 60 ConditionalLockGuard<MockMutex> lock(mutex, false); in TEST() 61 EXPECT_EQ(mutex.getLockCount(), 0); in TEST() 64 EXPECT_EQ(mutex.getLockCount(), 0); in TEST()
|
D | lock_guard_test.cc | 44 MockMutex mutex; in TEST() local 45 EXPECT_EQ(mutex.getLockCount(), 0); in TEST() 48 LockGuard<MockMutex> lock(mutex); in TEST() 49 EXPECT_EQ(mutex.getLockCount(), 1); in TEST() 52 EXPECT_EQ(mutex.getLockCount(), 0); in TEST()
|
/system/chre/chpp/platform/linux/include/chpp/platform/ |
D | platform_mutex.h | 30 static inline void chppMutexInit(struct ChppMutex *mutex) { in chppMutexInit() argument 31 pthread_mutex_init(&mutex->lock, NULL); in chppMutexInit() 34 static inline void chppMutexDeinit(struct ChppMutex *mutex) { in chppMutexDeinit() argument 35 pthread_mutex_destroy(&mutex->lock); in chppMutexDeinit() 38 static inline void chppMutexLock(struct ChppMutex *mutex) { in chppMutexLock() argument 39 pthread_mutex_lock(&mutex->lock); in chppMutexLock() 42 static inline void chppMutexUnlock(struct ChppMutex *mutex) { in chppMutexUnlock() argument 43 pthread_mutex_unlock(&mutex->lock); in chppMutexUnlock()
|
D | platform_condition_variable.h | 45 struct ChppMutex *mutex) { in chppConditionVariableWait() argument 46 return pthread_cond_wait(&cv->cond, &mutex->lock) == 0; in chppConditionVariableWait() 50 struct ChppConditionVariable *cv, struct ChppMutex *mutex, in chppConditionVariableTimedWait() argument 59 return pthread_cond_timedwait(&cv->cond, &mutex->lock, &now) == 0; in chppConditionVariableTimedWait()
|
/system/chre/chpp/platform/linux/ |
D | notifier.c | 35 chppMutexInit(¬ifier->mutex); in chppPlatformNotifierInit() 41 chppMutexDeinit(¬ifier->mutex); in chppPlatformNotifierDeinit() 45 chppMutexLock(¬ifier->mutex); in chppPlatformNotifierGetSignal() 50 chppMutexUnlock(¬ifier->mutex); in chppPlatformNotifierGetSignal() 55 chppMutexLock(¬ifier->mutex); in chppPlatformNotifierWait() 58 pthread_cond_wait(¬ifier->cond, ¬ifier->mutex.lock); in chppPlatformNotifierWait() 63 chppMutexUnlock(¬ifier->mutex); in chppPlatformNotifierWait() 77 chppMutexLock(¬ifier->mutex); in chppPlatformNotifierTimedWait() 86 pthread_cond_timedwait(¬ifier->cond, ¬ifier->mutex.lock, &absTime); in chppPlatformNotifierTimedWait() 92 chppMutexUnlock(¬ifier->mutex); in chppPlatformNotifierTimedWait() [all …]
|
D | link.c | 49 chppMutexLock(¶ms->mutex); in linkSendThread() 71 chppMutexUnlock(¶ms->mutex); in linkSendThread() 80 chppMutexInit(¶ms->mutex); in chppPlatformLinkInit() 94 chppMutexDeinit(¶ms->mutex); in chppPlatformLinkDeinit() 100 chppMutexLock(¶ms->mutex); in chppPlatformLinkSend() 108 chppMutexUnlock(¶ms->mutex); in chppPlatformLinkSend()
|
/system/bt/osi/src/ |
D | fixed_queue.cc | 35 std::mutex* mutex; member 49 ret->mutex = new std::mutex; in fixed_queue_new() 81 delete queue->mutex; in fixed_queue_free() 99 std::lock_guard<std::mutex> lock(*queue->mutex); in fixed_queue_is_empty() 106 std::lock_guard<std::mutex> lock(*queue->mutex); in fixed_queue_length() 123 std::lock_guard<std::mutex> lock(*queue->mutex); in fixed_queue_enqueue() 137 std::lock_guard<std::mutex> lock(*queue->mutex); in fixed_queue_dequeue() 154 std::lock_guard<std::mutex> lock(*queue->mutex); in fixed_queue_try_enqueue() 169 std::lock_guard<std::mutex> lock(*queue->mutex); in fixed_queue_try_dequeue() 182 std::lock_guard<std::mutex> lock(*queue->mutex); in fixed_queue_try_peek_first() [all …]
|
D | reactor.cc | 45 std::mutex* list_mutex; 56 std::mutex* mutex; // protects the lifetime of this object and all variables. member 88 ret->list_mutex = new std::mutex; in reactor_new() 151 object->mutex = new std::mutex; in reactor_register() 162 delete object->mutex; in reactor_register() 188 std::lock_guard<std::mutex> lock(*object->mutex); in reactor_change_registration() 211 std::unique_lock<std::mutex> lock(*reactor->list_mutex); in reactor_unregister() 223 obj->mutex->lock(); in reactor_unregister() 224 obj->mutex->unlock(); in reactor_unregister() 225 delete obj->mutex; in reactor_unregister() [all …]
|
/system/bt/service/common/bluetooth/util/ |
D | atomic_string.cc | 24 std::mutex* mutex = const_cast<std::mutex*>(&lock_); in Get() local 25 std::lock_guard<std::mutex> lock(*mutex); in Get() 30 std::lock_guard<std::mutex> lock(lock_); in Set()
|
/system/bt/gd/os/android/ |
D | parameter_provider.cc | 26 std::mutex parameter_mutex; 35 std::lock_guard<std::mutex> lock(parameter_mutex); in ConfigFilePath() 44 std::lock_guard<std::mutex> lock(parameter_mutex); in OverrideConfigFilePath() 50 std::lock_guard<std::mutex> lock(parameter_mutex); in SnoopLogFilePath() 59 std::lock_guard<std::mutex> lock(parameter_mutex); in OverrideSnoopLogFilePath() 66 std::lock_guard<std::mutex> lock(parameter_mutex); in SnoozLogFilePath() 75 std::lock_guard<std::mutex> lock(parameter_mutex); in OverrideSnoozLogFilePath()
|
/system/bt/stack/a2dp/ |
D | a2dp_vendor_ldac_decoder.cc | 96 pthread_mutex_t mutex; member 128 pthread_mutex_init(&(a2dp_ldac_decoder_cb.mutex), NULL); in A2DP_VendorLoadDecoderLdac() 166 pthread_mutex_destroy(&(a2dp_ldac_decoder_cb.mutex)); in A2DP_VendorUnloadDecoderLdac() 183 pthread_mutex_lock(&(a2dp_ldac_decoder_cb.mutex)); in a2dp_vendor_ldac_decoder_init() 192 pthread_mutex_unlock(&(a2dp_ldac_decoder_cb.mutex)); in a2dp_vendor_ldac_decoder_init() 197 pthread_mutex_lock(&(a2dp_ldac_decoder_cb.mutex)); in a2dp_vendor_ldac_decoder_cleanup() 201 pthread_mutex_unlock(&(a2dp_ldac_decoder_cb.mutex)); in a2dp_vendor_ldac_decoder_cleanup() 209 pthread_mutex_lock(&(a2dp_ldac_decoder_cb.mutex)); in a2dp_vendor_ldac_decoder_decode_packet() 215 pthread_mutex_unlock(&(a2dp_ldac_decoder_cb.mutex)); in a2dp_vendor_ldac_decoder_decode_packet() 233 pthread_mutex_unlock(&(a2dp_ldac_decoder_cb.mutex)); in a2dp_vendor_ldac_decoder_decode_packet() [all …]
|
/system/bt/gd/os/linux/ |
D | parameter_provider.cc | 31 std::mutex parameter_mutex; 40 std::lock_guard<std::mutex> lock(parameter_mutex); in ConfigFilePath() 49 std::lock_guard<std::mutex> lock(parameter_mutex); in OverrideConfigFilePath() 55 std::lock_guard<std::mutex> lock(parameter_mutex); in SnoopLogFilePath() 65 std::lock_guard<std::mutex> lock(parameter_mutex); in OverrideSnoopLogFilePath() 71 std::lock_guard<std::mutex> lock(parameter_mutex); in SnoozLogFilePath()
|
D | system_properties.cc | 27 std::mutex properties_mutex; 32 std::lock_guard<std::mutex> lock(properties_mutex); in GetSystemProperty() 41 std::lock_guard<std::mutex> lock(properties_mutex); in SetSystemProperty() 47 std::lock_guard<std::mutex> lock(properties_mutex); in ClearSystemPropertiesForHost()
|
/system/chre/chpp/include/chpp/ |
D | mutex.h | 42 static void chppMutexInit(struct ChppMutex *mutex); 49 static void chppMutexDeinit(struct ChppMutex *mutex); 56 static void chppMutexLock(struct ChppMutex *mutex); 63 static void chppMutexUnlock(struct ChppMutex *mutex);
|
/system/bt/gd/os/host/ |
D | parameter_provider.cc | 31 std::mutex parameter_mutex; 40 std::lock_guard<std::mutex> lock(parameter_mutex); in ConfigFilePath() 54 std::lock_guard<std::mutex> lock(parameter_mutex); in OverrideConfigFilePath() 60 std::lock_guard<std::mutex> lock(parameter_mutex); in SnoopLogFilePath() 74 std::lock_guard<std::mutex> lock(parameter_mutex); in OverrideSnoopLogFilePath() 81 std::lock_guard<std::mutex> lock(parameter_mutex); in SnoozLogFilePath() 95 std::lock_guard<std::mutex> lock(parameter_mutex); in OverrideSnoozLogFilePath()
|
D | system_properties.cc | 27 std::mutex properties_mutex; 32 std::lock_guard<std::mutex> lock(properties_mutex); in GetSystemProperty() 41 std::lock_guard<std::mutex> lock(properties_mutex); in SetSystemProperty() 47 std::lock_guard<std::mutex> lock(properties_mutex); in ClearSystemPropertiesForHost()
|
/system/bt/gd/common/ |
D | blocking_queue.h | 31 std::unique_lock<std::mutex> lock(mutex_); in push() 39 std::unique_lock<std::mutex> lock(mutex_); in take() 50 std::unique_lock<std::mutex> lock(mutex_); in wait_to_take() 60 std::unique_lock<std::mutex> lock(mutex_); in empty() 65 std::unique_lock<std::mutex> lock(mutex_); in clear() 72 mutable std::mutex mutex_;
|
/system/bt/service/ |
D | a2dp_sink.cc | 44 std::lock_guard<std::mutex> lock(delegate_mutex_); in SetDelegate() 49 std::lock_guard<std::mutex> lock(mutex_); in Enable() 54 std::lock_guard<std::mutex> lock(mutex_); in Disable() 59 std::lock_guard<std::mutex> lock(mutex_); in Connect() 78 std::lock_guard<std::mutex> lock(mutex_); in Disconnect() 97 std::lock_guard<std::mutex> lock(mutex_); in SetAudioFocusState() 104 std::lock_guard<std::mutex> lock(mutex_); in SetAudioTrackGain() 114 std::lock_guard<std::mutex> lock(delegate_mutex_); in ConnectionStateCallback() 124 std::lock_guard<std::mutex> lock(delegate_mutex_); in AudioStateCallback() 135 std::lock_guard<std::mutex> lock(delegate_mutex_); in AudioConfigCallback()
|
/system/security/keystore2/src/km_compat/ |
D | km_compat_service.cpp | 26 static std::mutex mutex; in addKeyMintDeviceService() local 27 std::lock_guard<std::mutex> lock(mutex); in addKeyMintDeviceService()
|
/system/chre/platform/linux/include/chre/target_platform/ |
D | condition_variable_impl.h | 32 inline void ConditionVariable::wait(Mutex &mutex) { in wait() argument 33 mConditionVariable.wait(mutex); in wait() 36 inline bool ConditionVariable::wait_for(Mutex &mutex, Nanoseconds timeout) { in wait_for() argument 38 mutex, std::chrono::nanoseconds(timeout.toRawNanoseconds())); in wait_for()
|
/system/libhidl/base/ |
D | SynchronizedQueue.h | 48 std::unique_lock<std::mutex> lock() { in lock() 49 return std::unique_lock<std::mutex>(mMutex); in lock() 61 std::mutex mMutex; 73 std::unique_lock<std::mutex> lock(mMutex); in wait_pop() 89 std::unique_lock<std::mutex> lock(mMutex); in push() 104 std::unique_lock<std::mutex> lock(mMutex); in size()
|
/system/chre/platform/slpi/include/chre/target_platform/ |
D | condition_variable_impl.h | 39 inline void ConditionVariable::wait(Mutex &mutex) { in wait() argument 40 qurt_cond_wait(&mConditionVariable, &mutex.mMutex); in wait() 45 inline bool ConditionVariable::wait_for(Mutex &mutex, Nanoseconds timeout) { in wait_for() argument 65 wait(mutex); in wait_for()
|
/system/core/libutils/include/utils/ |
D | Condition.h | 69 status_t wait(Mutex& mutex); 71 status_t waitRelative(Mutex& mutex, nsecs_t reltime); 117 inline status_t Condition::wait(Mutex& mutex) { in wait() argument 118 return -pthread_cond_wait(&mCond, &mutex.mMutex); in wait() 120 inline status_t Condition::waitRelative(Mutex& mutex, nsecs_t reltime) { in waitRelative() argument 150 return -pthread_cond_timedwait(&mCond, &mutex.mMutex, &ts); in waitRelative()
|
/system/bt/common/ |
D | leaky_bonded_queue.h | 86 std::mutex lock_; 104 std::lock_guard<std::mutex> lock(lock_); in Enqueue() 114 std::lock_guard<std::mutex> lock(lock_); in EnqueueWithPop() 128 std::lock_guard<std::mutex> lock(lock_); in Dequeue() 136 std::lock_guard<std::mutex> lock(lock_); in Clear() 145 std::lock_guard<std::mutex> lock(lock_); in Length() 156 std::lock_guard<std::mutex> lock(lock_); in Empty()
|