/system/core/include/cutils/ |
D | threads.h | 45 pthread_mutex_t lock; member 58 CRITICAL_SECTION lock; member 87 static __inline__ void mutex_lock(mutex_t* lock) in mutex_lock() 91 static __inline__ void mutex_unlock(mutex_t* lock) in mutex_unlock() 95 static __inline__ int mutex_init(mutex_t* lock) in mutex_init() 99 static __inline__ void mutex_destroy(mutex_t* lock) in mutex_destroy() 108 CRITICAL_SECTION lock[1]; member 113 static __inline__ void mutex_lock(mutex_t* lock) in mutex_lock() 125 static __inline__ void mutex_unlock(mutex_t* lock) in mutex_unlock() 129 static __inline__ int mutex_init(mutex_t* lock) in mutex_init() [all …]
|
/system/netd/server/ |
D | NetworkController.cpp | 145 android::RWLock::AutoRLock lock(mRWLock); in getDefaultNetwork() local 150 android::RWLock::AutoWLock lock(mRWLock); in setDefaultNetwork() local 187 android::RWLock::AutoRLock lock(mRWLock); in getNetworkForDns() local 226 android::RWLock::AutoRLock lock(mRWLock); in getNetworkForUser() local 248 android::RWLock::AutoRLock lock(mRWLock); in getNetworkForConnect() local 299 android::RWLock::AutoRLock lock(mRWLock); in getNetworkForInterface() local 309 android::RWLock::AutoRLock lock(mRWLock); in isVirtualNetwork() local 333 android::RWLock::AutoWLock lock(mRWLock); in createPhysicalNetwork() local 349 android::RWLock::AutoWLock lock(mRWLock); in createVirtualNetwork() local 369 android::RWLock::AutoWLock lock(mRWLock); in destroyNetwork() local [all …]
|
/system/bt/service/hal/ |
D | bluetooth_interface.cpp | 69 shared_lock<shared_timed_mutex> lock(g_instance_lock); in AdapterStateChangedCallback() local 78 shared_lock<shared_timed_mutex> lock(g_instance_lock); in AdapterPropertiesCallback() local 90 shared_lock<shared_timed_mutex> lock(g_instance_lock); in RemoteDevicePropertiesCallback() local 101 shared_lock<shared_timed_mutex> lock(g_instance_lock); in DiscoveryStateChangedCallback() local 109 shared_lock<shared_timed_mutex> lock(g_instance_lock); in PinRequestCallback() local 121 shared_lock<shared_timed_mutex> lock(g_instance_lock); in SSPRequestCallback() local 136 shared_lock<shared_timed_mutex> lock(g_instance_lock); in BondStateChangedCallback() local 148 shared_lock<shared_timed_mutex> lock(g_instance_lock); in AclStateChangedCallback() local 237 shared_lock<shared_timed_mutex> lock(g_instance_lock); in AddObserver() local 242 shared_lock<shared_timed_mutex> lock(g_instance_lock); in RemoveObserver() local [all …]
|
D | bluetooth_gatt_interface.cpp | 74 shared_lock<shared_timed_mutex> lock(g_instance_lock); in RegisterClientCallback() local 84 shared_lock<shared_timed_mutex> lock(g_instance_lock); in ScanResultCallback() local 96 shared_lock<shared_timed_mutex> lock(g_instance_lock); in ConnectCallback() local 111 shared_lock<shared_timed_mutex> lock(g_instance_lock); in DisconnectCallback() local 124 shared_lock<shared_timed_mutex> lock(g_instance_lock); in SearchCompleteCallback() local 134 shared_lock<shared_timed_mutex> lock(g_instance_lock); in RegisterForNotificationCallback() local 146 shared_lock<shared_timed_mutex> lock(g_instance_lock); in NotifyCallback() local 160 shared_lock<shared_timed_mutex> lock(g_instance_lock); in WriteCharacteristicCallback() local 172 shared_lock<shared_timed_mutex> lock(g_instance_lock); in WriteDescriptorCallback() local 183 shared_lock<shared_timed_mutex> lock(g_instance_lock); in ListenCallback() local [all …]
|
/system/bt/service/ |
D | adapter.cpp | 91 lock_guard<mutex> lock(observers_lock_); in AddObserver() local 96 lock_guard<mutex> lock(observers_lock_); in RemoveObserver() local 191 lock_guard<mutex> lock(local_le_features_lock_); in IsMultiAdvertisementSupported() local 196 lock_guard<mutex> lock(connected_devices_lock_); in IsDeviceConnected() local 201 lock_guard<mutex> lock(local_le_features_lock_); in GetTotalNumberOfTrackableAdvertisements() local 206 lock_guard<mutex> lock(local_le_features_lock_); in IsOffloadedFilteringSupported() local 211 lock_guard<mutex> lock(local_le_features_lock_); in IsOffloadedScanBatchingSupported() local 278 lock_guard<mutex> lock(local_le_features_lock_); in AdapterPropertiesCallback() local 317 lock_guard<mutex> lock(connected_devices_lock_); in AclStateChangedCallback() local 324 lock_guard<mutex> lock(observers_lock_); in AclStateChangedCallback() local [all …]
|
D | gatt_server.cpp | 64 lock_guard<mutex> lock(mutex_); in SetDelegate() local 81 lock_guard<mutex> lock(mutex_); in BeginServiceDeclaration() local 113 lock_guard<mutex> lock(mutex_); in AddCharacteristic() local 141 lock_guard<mutex> lock(mutex_); in AddDescriptor() local 168 lock_guard<mutex> lock(mutex_); in EndServiceDeclaration() local 307 lock_guard<mutex> lock(mutex_); in SendResponse() local 378 lock_guard<mutex> lock(mutex_); in SendNotification() local 453 lock_guard<mutex> lock(mutex_); in ConnectionCallback() local 502 lock_guard<mutex> lock(mutex_); in ServiceAddedCallback() local 538 lock_guard<mutex> lock(mutex_); in CharacteristicAddedCallback() local [all …]
|
D | gatt_server_old.cpp | 122 std::mutex lock; member 153 std::lock_guard<std::mutex> lock(g_internal->lock); in ServiceAddedCallback() local 164 std::lock_guard<std::mutex> lock(g_internal->lock); in RequestReadCallback() local 214 std::lock_guard<std::mutex> lock(g_internal->lock); in RequestWriteCallback() local 273 std::lock_guard<std::mutex> lock(g_internal->lock); in RequestExecWriteCallback() local 304 std::lock_guard<std::mutex> lock(g_internal->lock); in CharacteristicAddedCallback() local 369 std::lock_guard<std::mutex> lock(g_internal->lock); in ListenCallback() local 378 std::lock_guard<std::mutex> lock(g_internal->lock); in ServiceStoppedCallback() local 385 std::lock_guard<std::mutex> lock(g_internal->lock); in ScanResultCallback() local 549 std::unique_lock<std::mutex> lock(internal_->lock); in Initialize() local [all …]
|
D | low_energy_client.cpp | 362 lock_guard<mutex> lock(connection_fields_lock_); in Disconnect() local 389 lock_guard<mutex> lock(connection_fields_lock_); in SetMtu() local 408 lock_guard<mutex> lock(delegate_mutex_); in SetDelegate() local 456 lock_guard<mutex> lock(adv_fields_lock_); in StartAdvertising() local 518 lock_guard<mutex> lock(adv_fields_lock_); in StopAdvertising() local 572 lock_guard<mutex> lock(delegate_mutex_); in ScanResultCallback() local 595 lock_guard<mutex> lock(connection_fields_lock_); in ConnectCallback() local 615 lock_guard<mutex> lock(connection_fields_lock_); in DisconnectCallback() local 634 lock_guard<mutex> lock(connection_fields_lock_); in MtuChangedCallback() local 657 lock_guard<mutex> lock(adv_fields_lock_); in MultiAdvEnableCallback() local [all …]
|
D | gatt_client.cpp | 65 lock_guard<mutex> lock(pending_calls_lock_); in RegisterInstance() local
|
/system/bt/service/ipc/binder/ |
D | bluetooth_gatt_server_binder_server.cpp | 59 std::lock_guard<std::mutex> lock(*maps_lock()); in BeginServiceDeclaration() local 85 std::lock_guard<std::mutex> lock(*maps_lock()); in AddCharacteristic() local 110 std::lock_guard<std::mutex> lock(*maps_lock()); in AddDescriptor() local 132 std::lock_guard<std::mutex> lock(*maps_lock()); in EndServiceDeclaration() local 152 std::lock_guard<std::mutex> lock(*maps_lock()); in EndServiceDeclaration() local 176 std::lock_guard<std::mutex> lock(*maps_lock()); in SendResponse() local 196 std::lock_guard<std::mutex> lock(*maps_lock()); in SendNotification() local 214 std::lock_guard<std::mutex> lock(*maps_lock()); in SendNotification() local 240 std::lock_guard<std::mutex> lock(*maps_lock()); in OnCharacteristicReadRequest() local 258 std::lock_guard<std::mutex> lock(*maps_lock()); in OnDescriptorReadRequest() local [all …]
|
D | bluetooth_low_energy_binder_server.cpp | 63 std::lock_guard<std::mutex> lock(*maps_lock()); in Connect() local 78 std::lock_guard<std::mutex> lock(*maps_lock()); in Disconnect() local 95 std::lock_guard<std::mutex> lock(*maps_lock()); in SetMtu() local 111 std::lock_guard<std::mutex> lock(*maps_lock()); in StartScan() local 124 std::lock_guard<std::mutex> lock(*maps_lock()); in StopScan() local 141 std::lock_guard<std::mutex> lock(*maps_lock()); in StartMultiAdvertising() local 160 std::lock_guard<std::mutex> lock(*maps_lock()); in StartMultiAdvertising() local 182 std::lock_guard<std::mutex> lock(*maps_lock()); in StopMultiAdvertising() local 207 std::lock_guard<std::mutex> lock(*maps_lock()); in StopMultiAdvertising() local 255 std::lock_guard<std::mutex> lock(*maps_lock()); in OnScanResult() local
|
D | interface_with_instances_base.cpp | 77 std::lock_guard<std::mutex> lock(maps_lock_); in UnregisterInstanceBase() local 85 std::lock_guard<std::mutex> lock(maps_lock_); in UnregisterAllBase() local 129 std::lock_guard<std::mutex> lock(maps_lock_); in OnRegisterInstance() local 149 std::lock_guard<std::mutex> lock(maps_lock_); in OnRemoteCallbackRemoved() local
|
/system/nativepower/daemon/ |
D | BnPowerManager.cc | 33 sp<IBinder> lock = data.readStrongBinder(); in onTransact() local 42 sp<IBinder> lock = data.readStrongBinder(); in onTransact() local 51 sp<IBinder> lock = data.readStrongBinder(); in onTransact() local 57 sp<IBinder> lock = data.readStrongBinder(); in onTransact() local
|
D | power_manager.cc | 61 const sp<IBinder>& lock, in acquireWakeLock() 72 const sp<IBinder>& lock, in acquireWakeLockWithUid() 82 status_t PowerManager::releaseWakeLock(const sp<IBinder>& lock, in releaseWakeLock() 88 status_t PowerManager::updateWakeLockUids(const sp<IBinder>& lock, in updateWakeLockUids() 165 bool PowerManager::AddWakeLockRequest(const sp<IBinder>& lock, in AddWakeLockRequest()
|
D | power_manager_stub.cc | 75 const sp<IBinder>& lock, in acquireWakeLock() 86 const sp<IBinder>& lock, in acquireWakeLockWithUid() 97 status_t PowerManagerStub::releaseWakeLock(const sp<IBinder>& lock, in releaseWakeLock() 104 status_t PowerManagerStub::updateWakeLockUids(const sp<IBinder>& lock, in updateWakeLockUids()
|
/system/bt/service/example/heart_rate/ |
D | heart_rate_server.cpp | 98 std::lock_guard<std::mutex> lock(mutex_); in ~HeartRateServer() local 112 std::lock_guard<std::mutex> lock(mutex_); in Run() local 147 std::lock_guard<std::mutex> lock(mutex_); in SendHeartRateMeasurement() local 216 std::lock_guard<std::mutex> lock(mutex_); in OnServerRegistered() local 308 std::lock_guard<std::mutex> lock(mutex_); in OnServiceAdded() local 343 std::lock_guard<std::mutex> lock(mutex_); in OnCharacteristicReadRequest() local 364 std::lock_guard<std::mutex> lock(mutex_); in OnDescriptorReadRequest() local 395 std::lock_guard<std::mutex> lock(mutex_); in OnCharacteristicWriteRequest() local 436 std::lock_guard<std::mutex> lock(mutex_); in OnDescriptorWriteRequest() local 494 std::lock_guard<std::mutex> lock(mutex_); in OnNotificationSent() local
|
/system/bt/service/common/bluetooth/util/ |
D | atomic_string.cpp | 27 std::lock_guard<std::mutex> lock(*mutex); in Get() local 32 std::lock_guard<std::mutex> lock(lock_); in Set() local
|
/system/core/adb/sysdeps/ |
D | mutex.h | 46 void lock() { in lock() function 72 void lock() { in lock() function
|
/system/nativepower/client/ |
D | wake_lock_unittest.cc | 55 std::unique_ptr<WakeLock> lock(client_.CreateWakeLock("foo", "bar")); in TEST_F() local 67 std::unique_ptr<WakeLock> lock(client_.CreateWakeLock("foo", "bar")); in TEST_F() local
|
/system/bt/osi/src/ |
D | metrics.cpp | 60 std::lock_guard<std::mutex> lock(log_lock); in metrics_pair_event() local 87 std::lock_guard<std::mutex> lock(log_lock); in metrics_wake_event() local 112 std::lock_guard<std::mutex> lock(log_lock); in metrics_scan_event() local 151 std::lock_guard<std::mutex> lock(log_lock); in metrics_a2dp_session() local
|
/system/core/adb/ |
D | usb_linux.cpp | 88 std::lock_guard<std::mutex> lock(g_usb_handles_mutex); in is_known_device() local 100 std::lock_guard<std::mutex> lock(g_usb_handles_mutex); in kick_disconnected_devices() local 297 std::unique_lock<std::mutex> lock(h->mutex); in usb_bulk_write() local 336 std::unique_lock<std::mutex> lock(h->mutex); in usb_bulk_read() local 458 std::lock_guard<std::mutex> lock(h->mutex); in usb_kick() local 491 std::lock_guard<std::mutex> lock(g_usb_handles_mutex); in usb_close() local 513 std::lock_guard<std::mutex> lock(g_usb_handles_mutex); in register_device() local 568 std::lock_guard<std::mutex> lock(g_usb_handles_mutex); in register_device() local
|
D | sockets.cpp | 64 std::lock_guard<std::recursive_mutex> lock(local_socket_list_lock); in find_local_socket() local 86 std::lock_guard<std::recursive_mutex> lock(local_socket_list_lock); in install_local_socket() local 115 std::lock_guard<std::recursive_mutex> lock(local_socket_list_lock); in close_all_sockets() local 214 std::lock_guard<std::recursive_mutex> lock(local_socket_list_lock); in local_socket_close() local
|
/system/extras/tests/tcp_nuke_addr/ |
D | tcp_nuke_addr_test.cpp | 70 void killSockets(sockaddr_in listenaddr, int intervalMs, android::RWLock *lock) { in killSockets() 92 android::RWLock *lock, std::atomic<unsigned int> *attempts) { in connectLoop() 137 android::RWLock lock; in main() local
|
/system/nativepower/example/ |
D | power_example.cc | 64 std::unique_ptr<android::WakeLock> lock( in main() local
|
/system/netd/tests/ |
D | dns_responder.cpp | 533 std::lock_guard<std::mutex> lock(mappings_mutex_); in addMapping() local 548 std::lock_guard<std::mutex> lock(mappings_mutex_); in removeMapping() local 636 std::lock_guard<std::mutex> lock(update_mutex_); in startServer() local 644 std::lock_guard<std::mutex> lock(update_mutex_); in stopServer() local 665 std::lock_guard<std::mutex> lock(queries_mutex_); in queries() local 670 std::lock_guard<std::mutex> lock(queries_mutex_); in clearQueries() local 754 std::lock_guard<std::mutex> lock(queries_mutex_); in handleDNSRequest() local
|