/system/bt/service/common/bluetooth/util/ |
D | atomic_string.cpp | 26 std::mutex* mutex = const_cast<std::mutex*>(&lock_); in Get() local 27 std::lock_guard<std::mutex> lock(*mutex); in Get() 32 std::lock_guard<std::mutex> lock(lock_); in Set()
|
/system/core/include/utils/ |
D | Condition.h | 60 status_t wait(Mutex& mutex); 62 status_t waitRelative(Mutex& mutex, nsecs_t reltime); 105 inline status_t Condition::wait(Mutex& mutex) { in wait() argument 106 return -pthread_cond_wait(&mCond, &mutex.mMutex); in wait() 108 inline status_t Condition::waitRelative(Mutex& mutex, nsecs_t reltime) { in waitRelative() argument 113 return -pthread_cond_timedwait_relative_np(&mCond, &mutex.mMutex, &ts); in waitRelative() 131 return -pthread_cond_timedwait(&mCond, &mutex.mMutex, &ts); in waitRelative()
|
D | Mutex.h | 85 inline Autolock(Mutex& mutex) : mLock(mutex) { mLock.lock(); } in Autolock() argument 86 inline Autolock(Mutex* mutex) : mLock(*mutex) { mLock.lock(); } in Autolock() argument
|
/system/bt/service/ |
D | adapter.cpp | 35 using std::mutex; 91 lock_guard<mutex> lock(observers_lock_); in AddObserver() 96 lock_guard<mutex> lock(observers_lock_); in RemoveObserver() 191 lock_guard<mutex> lock(local_le_features_lock_); in IsMultiAdvertisementSupported() 196 lock_guard<mutex> lock(connected_devices_lock_); in IsDeviceConnected() 201 lock_guard<mutex> lock(local_le_features_lock_); in GetTotalNumberOfTrackableAdvertisements() 206 lock_guard<mutex> lock(local_le_features_lock_); in IsOffloadedFilteringSupported() 211 lock_guard<mutex> lock(local_le_features_lock_); in IsOffloadedScanBatchingSupported() 278 lock_guard<mutex> lock(local_le_features_lock_); in AdapterPropertiesCallback() 317 lock_guard<mutex> lock(connected_devices_lock_); in AclStateChangedCallback() [all …]
|
D | gatt_server_old.cpp | 122 std::mutex lock; 153 std::lock_guard<std::mutex> lock(g_internal->lock); in ServiceAddedCallback() 164 std::lock_guard<std::mutex> lock(g_internal->lock); in RequestReadCallback() 214 std::lock_guard<std::mutex> lock(g_internal->lock); in RequestWriteCallback() 273 std::lock_guard<std::mutex> lock(g_internal->lock); in RequestExecWriteCallback() 304 std::lock_guard<std::mutex> lock(g_internal->lock); in CharacteristicAddedCallback() 369 std::lock_guard<std::mutex> lock(g_internal->lock); in ListenCallback() 378 std::lock_guard<std::mutex> lock(g_internal->lock); in ServiceStoppedCallback() 385 std::lock_guard<std::mutex> lock(g_internal->lock); in ScanResultCallback() 549 std::unique_lock<std::mutex> lock(internal_->lock); in Initialize() [all …]
|
D | gatt_server.cpp | 24 using std::mutex; 64 lock_guard<mutex> lock(mutex_); in SetDelegate() 81 lock_guard<mutex> lock(mutex_); in BeginServiceDeclaration() 113 lock_guard<mutex> lock(mutex_); in AddCharacteristic() 141 lock_guard<mutex> lock(mutex_); in AddDescriptor() 168 lock_guard<mutex> lock(mutex_); in EndServiceDeclaration() 307 lock_guard<mutex> lock(mutex_); in SendResponse() 378 lock_guard<mutex> lock(mutex_); in SendNotification() 453 lock_guard<mutex> lock(mutex_); in ConnectionCallback() 502 lock_guard<mutex> lock(mutex_); in ServiceAddedCallback() [all …]
|
D | low_energy_client.h | 196 std::mutex adv_fields_lock_; 217 std::mutex scan_fields_lock_; 227 std::mutex delegate_mutex_; 231 std::mutex connection_fields_lock_; 267 std::mutex pending_calls_lock_;
|
D | low_energy_client.cpp | 28 using std::mutex; 362 lock_guard<mutex> lock(connection_fields_lock_); in Disconnect() 389 lock_guard<mutex> lock(connection_fields_lock_); in SetMtu() 408 lock_guard<mutex> lock(delegate_mutex_); in SetDelegate() 456 lock_guard<mutex> lock(adv_fields_lock_); in StartAdvertising() 518 lock_guard<mutex> lock(adv_fields_lock_); in StopAdvertising() 572 lock_guard<mutex> lock(delegate_mutex_); in ScanResultCallback() 595 lock_guard<mutex> lock(connection_fields_lock_); in ConnectCallback() 615 lock_guard<mutex> lock(connection_fields_lock_); in DisconnectCallback() 634 lock_guard<mutex> lock(connection_fields_lock_); in MtuChangedCallback() [all …]
|
D | gatt_client.cpp | 22 using std::mutex; 65 lock_guard<mutex> lock(pending_calls_lock_); in RegisterInstance()
|
/system/bt/service/ipc/binder/ |
D | bluetooth_gatt_server_binder_server.cpp | 59 std::lock_guard<std::mutex> lock(*maps_lock()); in BeginServiceDeclaration() 85 std::lock_guard<std::mutex> lock(*maps_lock()); in AddCharacteristic() 110 std::lock_guard<std::mutex> lock(*maps_lock()); in AddDescriptor() 132 std::lock_guard<std::mutex> lock(*maps_lock()); in EndServiceDeclaration() 152 std::lock_guard<std::mutex> lock(*maps_lock()); in EndServiceDeclaration() 176 std::lock_guard<std::mutex> lock(*maps_lock()); in SendResponse() 196 std::lock_guard<std::mutex> lock(*maps_lock()); in SendNotification() 214 std::lock_guard<std::mutex> lock(*maps_lock()); in SendNotification() 240 std::lock_guard<std::mutex> lock(*maps_lock()); in OnCharacteristicReadRequest() 258 std::lock_guard<std::mutex> lock(*maps_lock()); in OnDescriptorReadRequest() [all …]
|
D | bluetooth_low_energy_binder_server.cpp | 63 std::lock_guard<std::mutex> lock(*maps_lock()); in Connect() 78 std::lock_guard<std::mutex> lock(*maps_lock()); in Disconnect() 95 std::lock_guard<std::mutex> lock(*maps_lock()); in SetMtu() 111 std::lock_guard<std::mutex> lock(*maps_lock()); in StartScan() 124 std::lock_guard<std::mutex> lock(*maps_lock()); in StopScan() 141 std::lock_guard<std::mutex> lock(*maps_lock()); in StartMultiAdvertising() 160 std::lock_guard<std::mutex> lock(*maps_lock()); in StartMultiAdvertising() 182 std::lock_guard<std::mutex> lock(*maps_lock()); in StopMultiAdvertising() 207 std::lock_guard<std::mutex> lock(*maps_lock()); in StopMultiAdvertising() 255 std::lock_guard<std::mutex> lock(*maps_lock()); in OnScanResult()
|
D | remote_callback_map.h | 109 std::mutex map_lock_; 123 using std::mutex; 135 lock_guard<mutex> lock(map_lock_); in Register() 159 lock_guard<mutex> lock(map_lock_); in Unregister() 172 lock_guard<mutex> lock(map_lock_); in Get() 183 lock_guard<mutex> lock(map_lock_); in Remove() 196 lock_guard<mutex> lock(map_lock_); in Clear() 246 lock_guard<mutex> lock(owner_->map_lock_); in binderDied()
|
D | remote_callback_list.h | 92 std::mutex map_lock_; 108 std::lock_guard<std::mutex> lock(map_lock_); in ~RemoteCallbackList() 115 std::lock_guard<std::mutex> lock(map_lock_); in Register() 139 std::lock_guard<std::mutex> lock(map_lock_); in Unregister() 153 std::lock_guard<std::mutex> lock(map_lock_); in ForEach() 198 std::lock_guard<std::mutex> lock(owner_->map_lock_); in binderDied()
|
D | interface_with_instances_base.cpp | 77 std::lock_guard<std::mutex> lock(maps_lock_); in UnregisterInstanceBase() 85 std::lock_guard<std::mutex> lock(maps_lock_); in UnregisterAllBase() 129 std::lock_guard<std::mutex> lock(maps_lock_); in OnRegisterInstance() 149 std::lock_guard<std::mutex> lock(maps_lock_); in OnRemoteCallbackRemoved()
|
D | interface_with_instances_base.h | 62 std::mutex* maps_lock() { return &maps_lock_; } in maps_lock() 99 std::mutex maps_lock_; // Needed for |id_to_instance_|.
|
/system/core/libmemunreachable/ |
D | Semaphore.h | 31 std::unique_lock<std::mutex> lk(m_); in Wait() 42 std::lock_guard<std::mutex> lk(m_); in Post() 51 std::mutex m_;
|
/system/core/adb/sysdeps/ |
D | mutex.h | 64 class mutex { 66 mutex() { in mutex() function 69 ~mutex() { in ~mutex()
|
/system/core/adb/ |
D | usb_linux.cpp | 75 std::mutex mutex; member 84 static auto& g_usb_handles_mutex = *new std::mutex(); 88 std::lock_guard<std::mutex> lock(g_usb_handles_mutex); in is_known_device() 100 std::lock_guard<std::mutex> lock(g_usb_handles_mutex); in kick_disconnected_devices() 297 std::unique_lock<std::mutex> lock(h->mutex); in usb_bulk_write() 336 std::unique_lock<std::mutex> lock(h->mutex); in usb_bulk_read() 458 std::lock_guard<std::mutex> lock(h->mutex); in usb_kick() 491 std::lock_guard<std::mutex> lock(g_usb_handles_mutex); in usb_close() 513 std::lock_guard<std::mutex> lock(g_usb_handles_mutex); in register_device() 568 std::lock_guard<std::mutex> lock(g_usb_handles_mutex); in register_device()
|
D | usb_osx.cpp | 62 static auto& g_usb_handles_mutex = *new std::mutex(); 66 std::lock_guard<std::mutex> lock_guard(g_usb_handles_mutex); in IsKnownDevice() 80 std::lock_guard<std::mutex> lock_guard(g_usb_handles_mutex); in KickDisconnectedDevices() 92 std::lock_guard<std::mutex> lock(g_usb_handles_mutex); in AddDevice() 395 std::mutex& operate_device_lock = *new std::mutex(); 403 std::lock_guard<std::mutex> lock_guard(operate_device_lock); in RunLoopThread() 522 std::lock_guard<std::mutex> lock(g_usb_handles_mutex); in usb_close() 549 std::lock_guard<std::mutex> lock_guard(g_usb_handles_mutex); in usb_kick()
|
/system/bt/service/example/heart_rate/ |
D | heart_rate_server.cpp | 98 std::lock_guard<std::mutex> lock(mutex_); in ~HeartRateServer() 112 std::lock_guard<std::mutex> lock(mutex_); in Run() 147 std::lock_guard<std::mutex> lock(mutex_); in SendHeartRateMeasurement() 216 std::lock_guard<std::mutex> lock(mutex_); in OnServerRegistered() 308 std::lock_guard<std::mutex> lock(mutex_); in OnServiceAdded() 343 std::lock_guard<std::mutex> lock(mutex_); in OnCharacteristicReadRequest() 364 std::lock_guard<std::mutex> lock(mutex_); in OnDescriptorReadRequest() 395 std::lock_guard<std::mutex> lock(mutex_); in OnCharacteristicWriteRequest() 436 std::lock_guard<std::mutex> lock(mutex_); in OnDescriptorWriteRequest() 494 std::lock_guard<std::mutex> lock(mutex_); in OnNotificationSent()
|
/system/core/base/ |
D | logging.cpp | 91 using std::mutex; 120 class mutex { 122 mutex() { 125 ~mutex() { 163 static auto& logging_lock = *new mutex(); 296 lock_guard<mutex> lock(logging_lock); in SetLogger() 382 lock_guard<mutex> lock(logging_lock); in ~LogMessage()
|
/system/core/libnativeloader/ |
D | native_loader.cpp | 254 static std::mutex g_namespaces_mutex; 260 std::lock_guard<std::mutex> guard(g_namespaces_mutex); in InitializeNativeLoader() 267 std::lock_guard<std::mutex> guard(g_namespaces_mutex); in ResetNativeLoader() 280 std::lock_guard<std::mutex> guard(g_namespaces_mutex); in CreateClassLoaderNamespace() 307 std::lock_guard<std::mutex> guard(g_namespaces_mutex); in OpenNativeLibrary() 336 std::lock_guard<std::mutex> guard(g_namespaces_mutex); in FindNamespaceByClassLoader()
|
/system/bt/osi/src/ |
D | metrics.cpp | 50 std::mutex log_lock; 60 std::lock_guard<std::mutex> lock(log_lock); in metrics_pair_event() 87 std::lock_guard<std::mutex> lock(log_lock); in metrics_wake_event() 112 std::lock_guard<std::mutex> lock(log_lock); in metrics_scan_event() 151 std::lock_guard<std::mutex> lock(log_lock); in metrics_a2dp_session()
|
/system/netd/tests/ |
D | dns_responder.h | 120 std::mutex mappings_mutex_; 124 mutable std::mutex queries_mutex_; 133 std::mutex update_mutex_;
|
/system/core/libmemunreachable/tests/ |
D | ThreadCapture_test.cpp | 60 std::lock_guard<std::mutex> lk(m_); in StartThreads() 70 std::unique_lock<std::mutex> lk(m_); in StartThreads() 77 std::unique_lock<std::mutex> lk(m_); in StartThreads() 84 std::lock_guard<std::mutex> lk(m_); in StopThreads() 117 std::mutex m_;
|