/packages/modules/Bluetooth/system/osi/src/ |
D | fixed_queue.cc | 36 std::mutex* mutex; member 50 ret->mutex = new std::mutex; in fixed_queue_new() 82 delete queue->mutex; in fixed_queue_free() 100 std::lock_guard<std::mutex> lock(*queue->mutex); in fixed_queue_is_empty() 107 std::lock_guard<std::mutex> lock(*queue->mutex); in fixed_queue_length() 124 std::lock_guard<std::mutex> lock(*queue->mutex); in fixed_queue_enqueue() 138 std::lock_guard<std::mutex> lock(*queue->mutex); in fixed_queue_dequeue() 155 std::lock_guard<std::mutex> lock(*queue->mutex); in fixed_queue_try_enqueue() 170 std::lock_guard<std::mutex> lock(*queue->mutex); in fixed_queue_try_dequeue() 183 std::lock_guard<std::mutex> lock(*queue->mutex); in fixed_queue_try_peek_first() [all …]
|
D | reactor.cc | 46 std::mutex* list_mutex; 57 std::mutex* mutex; // protects the lifetime of this object and all variables. member 89 ret->list_mutex = new std::mutex; in reactor_new() 152 object->mutex = new std::mutex; in reactor_register() 163 delete object->mutex; in reactor_register() 189 std::lock_guard<std::mutex> lock(*object->mutex); in reactor_change_registration() 212 std::unique_lock<std::mutex> lock(*reactor->list_mutex); in reactor_unregister() 224 obj->mutex->lock(); in reactor_unregister() 225 obj->mutex->unlock(); in reactor_unregister() 226 delete obj->mutex; in reactor_unregister() [all …]
|
/packages/modules/Bluetooth/system/gd/os/android/ |
D | parameter_provider.cc | 29 std::mutex parameter_mutex; 41 std::lock_guard<std::mutex> lock(parameter_mutex); in ConfigFilePath() 50 std::lock_guard<std::mutex> lock(parameter_mutex); in OverrideConfigFilePath() 56 std::lock_guard<std::mutex> lock(parameter_mutex); in SnoopLogFilePath() 65 std::lock_guard<std::mutex> lock(parameter_mutex); in OverrideSnoopLogFilePath() 72 std::lock_guard<std::mutex> lock(parameter_mutex); in SnoozLogFilePath() 81 std::lock_guard<std::mutex> lock(parameter_mutex); in OverrideSnoozLogFilePath() 86 std::lock_guard<std::mutex> lock(parameter_mutex); in GetBtKeystoreInterface() 91 std::lock_guard<std::mutex> lock(parameter_mutex); in SetBtKeystoreInterface() 96 std::lock_guard<std::mutex> lock(parameter_mutex); in IsCommonCriteriaMode() [all …]
|
/packages/modules/Bluetooth/system/stack/a2dp/ |
D | a2dp_vendor_ldac_decoder.cc | 97 pthread_mutex_t mutex; member 129 pthread_mutex_init(&(a2dp_ldac_decoder_cb.mutex), NULL); in A2DP_VendorLoadDecoderLdac() 167 pthread_mutex_destroy(&(a2dp_ldac_decoder_cb.mutex)); in A2DP_VendorUnloadDecoderLdac() 184 pthread_mutex_lock(&(a2dp_ldac_decoder_cb.mutex)); in a2dp_vendor_ldac_decoder_init() 193 pthread_mutex_unlock(&(a2dp_ldac_decoder_cb.mutex)); in a2dp_vendor_ldac_decoder_init() 198 pthread_mutex_lock(&(a2dp_ldac_decoder_cb.mutex)); in a2dp_vendor_ldac_decoder_cleanup() 202 pthread_mutex_unlock(&(a2dp_ldac_decoder_cb.mutex)); in a2dp_vendor_ldac_decoder_cleanup() 210 pthread_mutex_lock(&(a2dp_ldac_decoder_cb.mutex)); in a2dp_vendor_ldac_decoder_decode_packet() 216 pthread_mutex_unlock(&(a2dp_ldac_decoder_cb.mutex)); in a2dp_vendor_ldac_decoder_decode_packet() 232 pthread_mutex_unlock(&(a2dp_ldac_decoder_cb.mutex)); in a2dp_vendor_ldac_decoder_decode_packet() [all …]
|
/packages/modules/StatsD/statsd/src/guardrail/ |
D | StatsdStats.cpp | 145 lock_guard<std::mutex> lock(mLock); in noteConfigReceived() 183 lock_guard<std::mutex> lock(mLock); in noteConfigRemoved() 195 lock_guard<std::mutex> lock(mLock); in noteConfigReset() 201 lock_guard<std::mutex> lock(mLock); in noteLogLost() 213 lock_guard<std::mutex> lock(mLock); in noteBroadcastSent() 230 lock_guard<std::mutex> lock(mLock); in noteActiveStatusChanged() 249 lock_guard<std::mutex> lock(mLock); in noteActivationBroadcastGuardrailHit() 262 lock_guard<std::mutex> lock(mLock); in noteEventQueueOverflow() 278 lock_guard<std::mutex> lock(mLock); in noteDataDropped() 298 lock_guard<std::mutex> lock(mLock); in noteMetricsReportSent() [all …]
|
/packages/modules/adb/daemon/ |
D | property_monitor_test.cpp | 38 std::unordered_map<std::string, std::vector<std::string>> changes GUARDED_BY(mutex); 39 std::mutex mutex; member 67 std::lock_guard<std::mutex> lock(output->mutex); in RegisterCallback() 92 std::lock_guard<std::mutex> lock(output.mutex); in TEST() 115 std::lock_guard<std::mutex> lock(output.mutex); in TEST() 126 std::lock_guard<std::mutex> lock(output.mutex); in TEST() 157 std::lock_guard<std::mutex> lock(output.mutex); in TEST() 174 std::lock_guard<std::mutex> lock(output.mutex); in TEST()
|
/packages/modules/adb/client/pairing/tests/ |
D | pairing_connection_test.cpp | 190 std::mutex server_mutex; in TEST_F() 192 std::unique_lock<std::mutex> server_lock(server_mutex); in TEST_F() 209 std::lock_guard<std::mutex> lock(server_mutex); in TEST_F() 216 std::mutex client_mutex; in TEST_F() 218 std::unique_lock<std::mutex> client_lock(client_mutex); in TEST_F() 235 std::lock_guard<std::mutex> lock(client_mutex); in TEST_F() 257 std::mutex server_mutex; in TEST_F() 259 std::unique_lock<std::mutex> server_lock(server_mutex); in TEST_F() 269 std::lock_guard<std::mutex> lock(server_mutex); in TEST_F() 277 std::mutex client_mutex; in TEST_F() [all …]
|
/packages/modules/Bluetooth/system/gd/hal/ |
D | hci_hal_host_rootcanal.cc | 103 std::lock_guard<std::mutex> lock(api_mutex_); in registerIncomingPacketCallback() 106 std::lock_guard<std::mutex> incoming_packet_callback_lock(incoming_packet_callback_mutex_); in registerIncomingPacketCallback() 114 std::lock_guard<std::mutex> lock(api_mutex_); in unregisterIncomingPacketCallback() 117 std::lock_guard<std::mutex> incoming_packet_callback_lock(incoming_packet_callback_mutex_); in unregisterIncomingPacketCallback() 124 std::lock_guard<std::mutex> lock(api_mutex_); in sendHciCommand() 133 std::lock_guard<std::mutex> lock(api_mutex_); in sendAclData() 142 std::lock_guard<std::mutex> lock(api_mutex_); in sendScoData() 151 std::lock_guard<std::mutex> lock(api_mutex_); in sendIsoData() 166 std::lock_guard<std::mutex> lock(api_mutex_); in Start() 177 std::lock_guard<std::mutex> lock(api_mutex_); in Stop() [all …]
|
D | hci_hal_host.cc | 208 std::lock_guard<std::mutex> lock(api_mutex_); in registerIncomingPacketCallback() 211 std::lock_guard<std::mutex> incoming_packet_callback_lock(incoming_packet_callback_mutex_); in registerIncomingPacketCallback() 219 std::lock_guard<std::mutex> lock(api_mutex_); in unregisterIncomingPacketCallback() 222 std::lock_guard<std::mutex> incoming_packet_callback_lock(incoming_packet_callback_mutex_); in unregisterIncomingPacketCallback() 229 std::lock_guard<std::mutex> lock(api_mutex_); in sendHciCommand() 238 std::lock_guard<std::mutex> lock(api_mutex_); in sendAclData() 247 std::lock_guard<std::mutex> lock(api_mutex_); in sendScoData() 256 std::lock_guard<std::mutex> lock(api_mutex_); in sendIsoData() 271 std::lock_guard<std::mutex> lock(api_mutex_); in Start() 282 std::lock_guard<std::mutex> lock(api_mutex_); in Stop() [all …]
|
/packages/modules/StatsD/statsd/src/metrics/ |
D | MetricProducer.h | 184 std::lock_guard<std::mutex> lock(mMutex); in onConfigUpdated() 197 std::lock_guard<std::mutex> lock(mMutex); in notifyAppUpgrade() 215 std::lock_guard<std::mutex> lock(mMutex); in onStatsdInitCompleted() 220 std::lock_guard<std::mutex> lock(mMutex); in onMatchedLogEvent() 225 std::lock_guard<std::mutex> lock(mMutex); in onConditionChanged() 230 std::lock_guard<std::mutex> lock(mMutex); in onSlicedConditionMayChange() 235 std::lock_guard<std::mutex> lock(mMutex); in isConditionSliced() 251 std::lock_guard<std::mutex> lock(mMutex); in onDumpReport() 273 std::lock_guard<std::mutex> lock(mMutex); in clearPastBuckets() 278 std::lock_guard<std::mutex> lock(mMutex); in prepareFirstBucket() [all …]
|
/packages/services/BuiltInPrintService/jni/lib/ |
D | wprint_msgq.c | 43 pthread_mutex_t mutex; member 66 pthread_mutex_init(&msgq->mutex, &msgq->mutexattr); in msgQCreate() 82 pthread_mutex_lock(&(msgq->mutex)); in msgQDelete() 88 pthread_mutex_unlock(&(msgq->mutex)); in msgQDelete() 89 pthread_mutex_destroy(&(msgq->mutex)); in msgQDelete() 103 pthread_mutex_lock(&(msgq->mutex)); in msgQSend() 116 pthread_mutex_unlock(&(msgq->mutex)); in msgQSend() 135 pthread_mutex_lock(&(msgq->mutex)); in msgQReceive() 142 pthread_mutex_unlock(&(msgq->mutex)); in msgQReceive() 153 pthread_mutex_lock(&(msgq->mutex)); in msgQNumMsgs() [all …]
|
/packages/modules/StatsD/statsd/src/config/ |
D | ConfigManager.cpp | 64 lock_guard<mutex> lock(mMutex); in AddListener() 71 lock_guard <mutex> lock(mMutex); in UpdateConfig() 119 lock_guard<mutex> lock(mMutex); in SetConfigReceiver() 124 lock_guard<mutex> lock(mMutex); in RemoveConfigReceiver() 130 lock_guard<mutex> lock(mMutex); in RemoveConfigReceiver() 139 lock_guard<mutex> lock(mMutex); in SetActiveConfigsChangedReceiver() 144 lock_guard<mutex> lock(mMutex); in RemoveActiveConfigsChangedReceiver() 150 lock_guard<mutex> lock(mMutex); in RemoveActiveConfigsChangedReceiver() 160 lock_guard <mutex> lock(mMutex); in RemoveConfig() 192 lock_guard <mutex> lock(mMutex); in RemoveConfigs() [all …]
|
/packages/modules/Bluetooth/system/service/ |
D | adapter.cc | 44 using std::mutex; 226 lock_guard<mutex> lock(observers_lock_); in AddObserver() 231 lock_guard<mutex> lock(observers_lock_); in RemoveObserver() 396 lock_guard<mutex> lock(local_le_features_lock_); in IsMultiAdvertisementSupported() 401 lock_guard<mutex> lock(connected_devices_lock_); in IsDeviceConnected() 406 lock_guard<mutex> lock(local_le_features_lock_); in GetTotalNumberOfTrackableAdvertisements() 411 lock_guard<mutex> lock(local_le_features_lock_); in IsOffloadedFilteringSupported() 416 lock_guard<mutex> lock(local_le_features_lock_); in IsOffloadedScanBatchingSupported() 539 lock_guard<mutex> lock(observers_lock_); in AdapterPropertiesCallback() 568 lock_guard<mutex> lock(local_le_features_lock_); in AdapterPropertiesCallback() [all …]
|
D | a2dp_sink.cc | 45 std::lock_guard<std::mutex> lock(delegate_mutex_); in SetDelegate() 50 std::lock_guard<std::mutex> lock(mutex_); in Enable() 55 std::lock_guard<std::mutex> lock(mutex_); in Disable() 60 std::lock_guard<std::mutex> lock(mutex_); in Connect() 79 std::lock_guard<std::mutex> lock(mutex_); in Disconnect() 98 std::lock_guard<std::mutex> lock(mutex_); in SetAudioFocusState() 105 std::lock_guard<std::mutex> lock(mutex_); in SetAudioTrackGain() 115 std::lock_guard<std::mutex> lock(delegate_mutex_); in ConnectionStateCallback() 125 std::lock_guard<std::mutex> lock(delegate_mutex_); in AudioStateCallback() 136 std::lock_guard<std::mutex> lock(delegate_mutex_); in AudioConfigCallback()
|
D | avrcp_control.cc | 48 std::lock_guard<std::mutex> lock(delegate_mutex_); in SetDelegate() 53 std::lock_guard<std::mutex> lock(mutex_); in Enable() 58 std::lock_guard<std::mutex> lock(mutex_); in Disable() 73 std::lock_guard<std::mutex> lock(mutex_); in SendPassThroughCommand() 96 std::lock_guard<std::mutex> lock(mutex_); in SetAbsVolumeResponse() 120 std::lock_guard<std::mutex> lock(mutex_); in RegisterForAbsVolumeCallbackResponse() 139 std::lock_guard<std::mutex> lock(delegate_mutex_); in ConnectionStateCallback() 147 std::lock_guard<std::mutex> lock(delegate_mutex_); in CtrlSetabsvolCmdCallback() 155 std::lock_guard<std::mutex> lock(delegate_mutex_); in CtrlRegisternotificationAbsVolCallback() 211 std::lock_guard<std::mutex> lock(delegate_mutex_); in CtrlTrackChangedCallback()
|
/packages/services/Car/cpp/evs/support_library/ |
D | ResourceManager.cpp | 28 mutex ResourceManager::sLockSingleton; 29 mutex ResourceManager::sLockEvs; 33 lock_guard<mutex> lock(sLockEvs); in getEvsEnumerator() 41 lock_guard<mutex> lock(sLockSingleton); in getInstance() 53 lock_guard<mutex> lock(mLockStreamHandler); in obtainStreamHandler() 97 lock_guard<mutex> lock(mLockStreamHandler); in releaseStreamHandler() 120 lock_guard<mutex> lock(mLockDisplay); in openDisplay() 136 lock_guard<mutex> lock(mLockDisplay); in closeDisplay() 155 lock_guard<mutex> lock(mLockDisplay); in isDisplayOpened()
|
/packages/modules/Bluetooth/tools/rootcanal/test/ |
D | posix_socket_unittest.cc | 78 std::mutex m; in connectPair() 86 std::unique_lock<std::mutex> guard(m); in connectPair() 96 std::unique_lock<std::mutex> lk(m); in connectPair() 191 std::mutex m; in TEST_F() 200 std::unique_lock<std::mutex> guard(m); in TEST_F() 211 std::unique_lock<std::mutex> lk(m); in TEST_F() 241 std::mutex m; in TEST_F() 248 std::unique_lock<std::mutex> guard(m); in TEST_F() 260 std::unique_lock<std::mutex> lk(m); in TEST_F() 270 std::mutex m; in TEST_F() [all …]
|
/packages/modules/StatsD/statsd/tests/utils/ |
D | MultiConditionTrigger_test.cpp | 39 mutex lock; in TEST() 65 unique_lock<mutex> unique_lk(lock); in TEST() 80 mutex lock; in TEST() 92 unique_lock<mutex> unique_lk(lock); in TEST() 102 mutex lock; in TEST() 124 unique_lock<mutex> unique_lk(lock); in TEST() 133 mutex lock; in TEST() 151 unique_lock<mutex> unique_lk(lock); in TEST() 162 unique_lock<mutex> unique_lk(lock); in TEST()
|
/packages/modules/adb/pairing_connection/tests/ |
D | pairing_connection_test.cpp | 146 std::mutex mutex_; 154 std::unique_lock<std::mutex> lock(p->mutex_); in ResultCallback() 340 std::unique_lock<std::mutex> server_lock(server_waiter.mutex_); in TEST_F() 347 std::unique_lock<std::mutex> client_lock(client_waiter.mutex_); in TEST_F() 379 std::unique_lock<std::mutex> server_lock(server_waiter.mutex_); in TEST_F() 386 std::unique_lock<std::mutex> client_lock(client_waiter.mutex_); in TEST_F() 407 std::unique_lock<std::mutex> server_lock(server_waiter.mutex_); in TEST_F() 415 std::mutex global_clients_mutex; in TEST_F() 416 std::unique_lock<std::mutex> global_clients_lock(global_clients_mutex); in TEST_F() 422 std::unique_lock<std::mutex> client_lock(client_waiter.mutex_); in TEST_F() [all …]
|
/packages/services/BuiltInPrintService/jni/ipphelper/ |
D | ippstatus_monitor.c | 68 pthread_mutex_t mutex; member 97 pthread_mutex_unlock(&monitor->mutex); in _init() 98 pthread_mutex_destroy(&monitor->mutex); in _init() 114 pthread_mutex_init(&monitor->mutex, &monitor->mutexattr); in _init() 130 pthread_mutex_lock(&monitor->mutex); in _destroy() 135 pthread_mutex_unlock(&monitor->mutex); in _destroy() 136 pthread_mutex_destroy(&monitor->mutex); in _destroy() 264 pthread_mutex_lock(&monitor->mutex); in _start() 266 pthread_mutex_unlock(&monitor->mutex); in _start() 275 pthread_mutex_lock(&monitor->mutex); in _start() [all …]
|
/packages/modules/Bluetooth/system/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()
|
/packages/services/Car/cpp/telemetry/cartelemetryd/src/ |
D | TelemetryServer.cpp | 58 const std::scoped_lock<std::mutex> lock(mMutex); in setListener() 65 const std::scoped_lock<std::mutex> lock(mMutex); in clearListener() 74 const std::scoped_lock<std::mutex> lock(mMutex); in addCarDataIds() 79 const std::scoped_lock<std::mutex> lock(mMutex); in removeCarDataIds() 86 const std::scoped_lock<std::mutex> lock(mMutex); in getListener() 91 const std::scoped_lock<std::mutex> lock(mMutex); in dump() 98 const std::scoped_lock<std::mutex> lock(mMutex); in writeCarData() 122 const std::scoped_lock<std::mutex> lock(mMutex); in pushCarDataToListeners() 144 const std::scoped_lock<std::mutex> lock(mMutex); in pushCarDataToListeners()
|
/packages/modules/Bluetooth/system/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()
|
/packages/modules/StatsD/statsd/src/external/ |
D | StatsPullerManager.cpp | 57 std::lock_guard<std::mutex> _l(mLock); in Pull() 63 std::lock_guard<std::mutex> _l(mLock); in Pull() 139 std::lock_guard<std::mutex> _l(mLock); in SetStatsCompanionService() 153 std::lock_guard<std::mutex> _l(mLock); in RegisterReceiver() 188 std::lock_guard<std::mutex> _l(mLock); in UnRegisterReceiver() 206 std::lock_guard<std::mutex> _l(mLock); in RegisterPullUidProvider() 212 std::lock_guard<std::mutex> _l(mLock); in UnregisterPullUidProvider() 220 std::lock_guard<std::mutex> _l(mLock); in OnAlarmFired() 287 std::lock_guard<std::mutex> _l(mLock); in ForceClearPullerCache() 296 std::lock_guard<std::mutex> _l(mLock); in ClearPullerCacheIfNecessary() [all …]
|
/packages/modules/Bluetooth/system/service/ipc/binder/ |
D | bluetooth_a2dp_sink_binder_server.cc | 51 std::lock_guard<std::mutex> lock(*maps_lock()); in Enable() 70 std::lock_guard<std::mutex> lock(*maps_lock()); in Disable() 85 std::lock_guard<std::mutex> lock(*maps_lock()); in Connect() 105 std::lock_guard<std::mutex> lock(*maps_lock()); in Disconnect() 125 std::lock_guard<std::mutex> lock(*maps_lock()); in SetAudioFocusState() 140 std::lock_guard<std::mutex> lock(*maps_lock()); in SetAudioTrackGain() 155 std::lock_guard<std::mutex> lock(*maps_lock()); in OnConnectionState() 167 std::lock_guard<std::mutex> lock(*maps_lock()); in OnAudioState() 180 std::lock_guard<std::mutex> lock(*maps_lock()); in OnAudioConfig()
|