Home
last modified time | relevance | path

Searched defs:lock (Results 1 – 25 of 119) sorted by relevance

12345

/system/core/libcutils/include_vndk/cutils/
Dthreads.h45 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/core/libcutils/include/cutils/
Dthreads.h45 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/chre/platform/slpi/
Dsmr_helper.cc34 LockGuard<Mutex> lock(mMutex); in releaseSync() local
42 LockGuard<Mutex> lock(mMutex); in releaseSync() local
63 LockGuard<Mutex> lock(mMutex); in waitForService() local
72 LockGuard<Mutex> lock(mMutex); in waitForService() local
92 LockGuard<Mutex> lock(mMutex); in sendReqSyncUntyped() local
132 LockGuard<Mutex> lock(mMutex); in handleResp() local
150 LockGuard<Mutex> lock(obj->mMutex); in smrReleaseCb() local
168 LockGuard<Mutex> lock(obj->mMutex); in smrWaitForServiceCb() local
/system/netd/server/
DNetworkController.cpp150 android::RWLock::AutoRLock lock(mRWLock); in getDefaultNetwork() local
155 android::RWLock::AutoWLock lock(mRWLock); in setDefaultNetwork() local
192 android::RWLock::AutoRLock lock(mRWLock); in getNetworkForDns() local
231 android::RWLock::AutoRLock lock(mRWLock); in getNetworkForUser() local
253 android::RWLock::AutoRLock lock(mRWLock); in getNetworkForConnect() local
309 android::RWLock::AutoRLock lock(mRWLock); in getNetworkForInterface() local
319 android::RWLock::AutoRLock lock(mRWLock); in isVirtualNetwork() local
348 android::RWLock::AutoWLock lock(mRWLock); in createPhysicalNetwork() local
357 android::RWLock::AutoWLock lock(mRWLock); in createPhysicalOemNetwork() local
389 android::RWLock::AutoWLock lock(mRWLock); in createVirtualNetwork() local
[all …]
/system/bt/service/hal/
Dbluetooth_interface.cc69 shared_lock<shared_mutex_impl> lock(g_instance_lock); in AdapterStateChangedCallback() local
77 shared_lock<shared_mutex_impl> lock(g_instance_lock); in AdapterPropertiesCallback() local
89 shared_lock<shared_mutex_impl> lock(g_instance_lock); in RemoteDevicePropertiesCallback() local
100 shared_lock<shared_mutex_impl> lock(g_instance_lock); in DiscoveryStateChangedCallback() local
108 shared_lock<shared_mutex_impl> lock(g_instance_lock); in PinRequestCallback() local
120 shared_lock<shared_mutex_impl> lock(g_instance_lock); in SSPRequestCallback() local
131 shared_lock<shared_mutex_impl> lock(g_instance_lock); in BondStateChangedCallback() local
141 shared_lock<shared_mutex_impl> lock(g_instance_lock); in AclStateChangedCallback() local
220 shared_lock<shared_mutex_impl> lock(g_instance_lock); in AddObserver() local
225 shared_lock<shared_mutex_impl> lock(g_instance_lock); in RemoveObserver() local
[all …]
Dbluetooth_gatt_interface.cc83 shared_lock<shared_mutex_impl> lock(g_instance_lock); in RegisterClientCallback() local
97 shared_lock<shared_mutex_impl> lock(g_instance_lock); in ScanResultCallback() local
109 shared_lock<shared_mutex_impl> lock(g_instance_lock); in ConnectCallback() local
121 shared_lock<shared_mutex_impl> lock(g_instance_lock); in DisconnectCallback() local
132 shared_lock<shared_mutex_impl> lock(g_instance_lock); in SearchCompleteCallback() local
142 shared_lock<shared_mutex_impl> lock(g_instance_lock); in RegisterForNotificationCallback() local
152 shared_lock<shared_mutex_impl> lock(g_instance_lock); in NotifyCallback() local
164 shared_lock<shared_mutex_impl> lock(g_instance_lock); in WriteCharacteristicCallback() local
174 shared_lock<shared_mutex_impl> lock(g_instance_lock); in WriteDescriptorCallback() local
184 shared_lock<shared_mutex_impl> lock(g_instance_lock); in MtuChangedCallback() local
[all …]
/system/bt/osi/src/
Dallocation_tracker.cc53 std::unique_lock<std::mutex> lock(tracker_lock); in allocation_tracker_init() local
66 std::unique_lock<std::mutex> lock(tracker_lock); in allocation_tracker_uninit() local
74 std::unique_lock<std::mutex> lock(tracker_lock); in allocation_tracker_reset() local
81 std::unique_lock<std::mutex> lock(tracker_lock); in allocation_tracker_expect_no_allocations() local
104 std::unique_lock<std::mutex> lock(tracker_lock); in allocation_tracker_notify_alloc() local
138 std::unique_lock<std::mutex> lock(tracker_lock); in allocation_tracker_notify_free() local
180 std::unique_lock<std::mutex> lock(tracker_lock); in osi_allocator_debug_dump() local
Dmetrics.cc272 std::lock_guard<std::recursive_mutex> lock(pimpl_->bluetooth_log_lock_); in LogPairEvent() local
289 std::lock_guard<std::recursive_mutex> lock(pimpl_->bluetooth_log_lock_); in LogWakeEvent() local
311 std::lock_guard<std::recursive_mutex> lock(pimpl_->bluetooth_log_lock_); in LogScanEvent() local
319 std::lock_guard<std::recursive_mutex> lock(pimpl_->bluetooth_session_lock_); in LogBluetoothSessionStart() local
335 std::lock_guard<std::recursive_mutex> lock(pimpl_->bluetooth_session_lock_); in LogBluetoothSessionEnd() local
358 std::lock_guard<std::recursive_mutex> lock(pimpl_->bluetooth_session_lock_); in LogBluetoothSessionDeviceInfo() local
369 std::lock_guard<std::recursive_mutex> lock(pimpl_->bluetooth_session_lock_); in LogA2dpSession() local
400 std::lock_guard<std::recursive_mutex> lock(pimpl_->bluetooth_log_lock_); in WriteString() local
431 std::lock_guard<std::recursive_mutex> lock(pimpl_->bluetooth_session_lock_); in CutoffSession() local
445 std::lock_guard<std::recursive_mutex> lock(pimpl_->bluetooth_log_lock_); in Build() local
[all …]
Dfixed_queue.cc99 std::lock_guard<std::mutex> lock(*queue->mutex); in fixed_queue_is_empty() local
106 std::lock_guard<std::mutex> lock(*queue->mutex); in fixed_queue_length() local
123 std::lock_guard<std::mutex> lock(*queue->mutex); in fixed_queue_enqueue() local
137 std::lock_guard<std::mutex> lock(*queue->mutex); in fixed_queue_dequeue() local
154 std::lock_guard<std::mutex> lock(*queue->mutex); in fixed_queue_try_enqueue() local
169 std::lock_guard<std::mutex> lock(*queue->mutex); in fixed_queue_try_dequeue() local
182 std::lock_guard<std::mutex> lock(*queue->mutex); in fixed_queue_try_peek_first() local
189 std::lock_guard<std::mutex> lock(*queue->mutex); in fixed_queue_try_peek_last() local
198 std::lock_guard<std::mutex> lock(*queue->mutex); in fixed_queue_try_remove_from_queue() local
/system/bt/service/
Dadapter.cc94 lock_guard<mutex> lock(observers_lock_); in AddObserver() local
99 lock_guard<mutex> lock(observers_lock_); in RemoveObserver() local
187 lock_guard<mutex> lock(local_le_features_lock_); in IsMultiAdvertisementSupported() local
192 lock_guard<mutex> lock(connected_devices_lock_); in IsDeviceConnected() local
197 lock_guard<mutex> lock(local_le_features_lock_); in GetTotalNumberOfTrackableAdvertisements() local
202 lock_guard<mutex> lock(local_le_features_lock_); in IsOffloadedFilteringSupported() local
207 lock_guard<mutex> lock(local_le_features_lock_); in IsOffloadedScanBatchingSupported() local
281 lock_guard<mutex> lock(local_le_features_lock_); in AdapterPropertiesCallback() local
325 lock_guard<mutex> lock(connected_devices_lock_); in AclStateChangedCallback() local
332 lock_guard<mutex> lock(observers_lock_); in AclStateChangedCallback() local
[all …]
Dlow_energy_client.cc78 lock_guard<mutex> lock(connection_fields_lock_); in Disconnect() local
105 lock_guard<mutex> lock(connection_fields_lock_); in SetMtu() local
125 lock_guard<mutex> lock(delegate_mutex_); in SetDelegate() local
143 lock_guard<mutex> lock(connection_fields_lock_); in ConnectCallback() local
162 lock_guard<mutex> lock(connection_fields_lock_); in DisconnectCallback() local
180 lock_guard<mutex> lock(connection_fields_lock_); in MtuChangedCallback() local
210 lock_guard<mutex> lock(pending_calls_lock_); in RegisterInstance() local
235 lock_guard<mutex> lock(pending_calls_lock_); in RegisterClientCallback() local
Dgatt_server.cc50 lock_guard<mutex> lock(mutex_); in SetDelegate() local
61 lock_guard<mutex> lock(mutex_); in AddService() local
110 lock_guard<mutex> lock(mutex_); in SendResponse() local
185 lock_guard<mutex> lock(mutex_); in SendNotification() local
246 lock_guard<mutex> lock(mutex_); in ConnectionCallback() local
296 lock_guard<mutex> lock(mutex_); in ServiceAddedCallback() local
338 lock_guard<mutex> lock(mutex_); in RequestReadCharacteristicCallback() local
371 lock_guard<mutex> lock(mutex_); in RequestReadDescriptorCallback() local
406 lock_guard<mutex> lock(mutex_); in RequestWriteCharacteristicCallback() local
445 lock_guard<mutex> lock(mutex_); in RequestWriteDescriptorCallback() local
[all …]
Dgatt_server_old.cc121 std::mutex lock; member
148 std::lock_guard<std::mutex> lock(g_internal->lock); in ServiceAddedCallback() local
210 std::lock_guard<std::mutex> lock(g_internal->lock); in RequestReadCallback() local
261 std::lock_guard<std::mutex> lock(g_internal->lock); in RequestWriteCallback() local
319 std::lock_guard<std::mutex> lock(g_internal->lock); in RequestExecWriteCallback() local
345 std::lock_guard<std::mutex> lock(g_internal->lock); in EnableAdvertisingCallback() local
370 std::lock_guard<std::mutex> lock(g_internal->lock); in ServiceStoppedCallback() local
381 std::lock_guard<std::mutex> lock(g_internal->lock); in ScanResultCallback() local
543 std::unique_lock<std::mutex> lock(internal_->lock); in Initialize() local
583 std::lock_guard<std::mutex> lock(internal_->lock); in SetAdvertisement() local
[all …]
/system/chre/util/tests/
Dconditional_lock_guard_test.cc27 void lock() { in lock() function in MockMutex
48 ConditionalLockGuard<MockMutex> lock(mutex, true); in TEST() local
60 ConditionalLockGuard<MockMutex> lock(mutex, false); in TEST() local
/system/chre/platform/linux/
Dplatform_log.cc30 std::unique_lock<std::mutex> lock(mMutex); in logLooper() local
60 std::unique_lock<std::mutex> lock(mMutex); in ~PlatformLog() local
80 std::unique_lock<std::mutex> lock(mMutex); in log() local
/system/bt/btif/src/
Dbtif_config.cc124 std::unique_lock<std::mutex> lock(config_lock); in init() local
229 std::unique_lock<std::mutex> lock(config_lock); in clean_up() local
245 std::unique_lock<std::mutex> lock(config_lock); in btif_config_has_section() local
254 std::unique_lock<std::mutex> lock(config_lock); in btif_config_exist() local
264 std::unique_lock<std::mutex> lock(config_lock); in btif_config_get_int() local
276 std::unique_lock<std::mutex> lock(config_lock); in btif_config_set_int() local
291 std::unique_lock<std::mutex> lock(config_lock); in btif_config_get_str() local
308 std::unique_lock<std::mutex> lock(config_lock); in btif_config_set_str() local
321 std::unique_lock<std::mutex> lock(config_lock); in btif_config_get_bin() local
343 std::unique_lock<std::mutex> lock(config_lock); in btif_config_get_bin_length() local
[all …]
Dbtif_uid.cc36 std::mutex lock; member
46 std::unique_lock<std::mutex> lock(set->lock); in uid_set_destroy() local
77 std::unique_lock<std::mutex> lock(set->lock); in uid_set_add_tx() local
85 std::unique_lock<std::mutex> lock(set->lock); in uid_set_add_rx() local
91 std::unique_lock<std::mutex> lock(set->lock); in uid_set_read_and_clear() local
/system/bt/hci/src/
Dhci_layer.cc138 std::lock_guard<std::mutex> lock(message_loop_mutex); in initialization_complete() local
168 std::lock_guard<std::mutex> lock(message_loop_mutex); in message_loop_run() local
178 std::lock_guard<std::mutex> lock(message_loop_mutex); in message_loop_run() local
257 std::lock_guard<std::recursive_mutex> lock(commands_pending_response_mutex); in hci_module_shut_down() local
265 std::lock_guard<std::mutex> lock(message_loop_mutex); in hci_module_shut_down() local
279 std::lock_guard<std::recursive_mutex> lock(commands_pending_response_mutex); in hci_module_shut_down() local
362 std::lock_guard<std::recursive_mutex> lock(commands_pending_response_mutex); in event_finish_startup() local
371 std::lock_guard<std::recursive_mutex> lock(commands_pending_response_mutex); in startup_timer_expired() local
398 std::lock_guard<std::recursive_mutex> lock(commands_pending_response_mutex); in event_command_ready() local
409 std::lock_guard<std::mutex> lock(message_loop_mutex); in enqueue_packet() local
[all …]
/system/tools/hidl/test/
DFooCallback.cpp36 Mutex::Autolock lock(mLock); in heyItsYou() local
52 Mutex::Autolock lock(mLock); in heyItsYouIsntIt() local
68 Mutex::Autolock lock(mLock); in heyItsTheMeaningOfLife() local
82 Mutex::Autolock lock(mLock); in reportResults() local
115 Mutex::Autolock lock(mLock); in youBlockedMeFor() local
/system/bt/service/ipc/binder/
Dbluetooth_gatt_server_binder_server.cc69 std::lock_guard<std::mutex> lock(*maps_lock()); in AddService() local
89 std::lock_guard<std::mutex> lock(*maps_lock()); in AddService() local
114 std::lock_guard<std::mutex> lock(*maps_lock()); in SendResponse() local
134 std::lock_guard<std::mutex> lock(*maps_lock()); in SendNotification() local
153 std::lock_guard<std::mutex> lock(*maps_lock()); in SendNotification() local
180 std::lock_guard<std::mutex> lock(*maps_lock()); in OnCharacteristicReadRequest() local
197 std::lock_guard<std::mutex> lock(*maps_lock()); in OnDescriptorReadRequest() local
244 std::lock_guard<std::mutex> lock(*maps_lock()); in OnCharacteristicWriteRequest() local
262 std::lock_guard<std::mutex> lock(*maps_lock()); in OnDescriptorWriteRequest() local
279 std::lock_guard<std::mutex> lock(*maps_lock()); in OnExecuteWriteRequest() local
[all …]
Dinterface_with_instances_base.cc74 std::lock_guard<std::mutex> lock(maps_lock_); in UnregisterInstanceBase() local
82 std::lock_guard<std::mutex> lock(maps_lock_); in UnregisterAllBase() local
125 std::lock_guard<std::mutex> lock(maps_lock_); in OnRegisterInstance() local
144 std::lock_guard<std::mutex> lock(maps_lock_); in OnRemoteCallbackRemoved() local
/system/libhidl/transport/token/1.0/utils/
DHybridInterface.cpp35 std::lock_guard<std::mutex> lock(gTokenManagerLock); in serviceDied() local
79 std::lock_guard<std::mutex> lock(gTokenManagerLock); in retrieveHalInterface() local
94 std::lock_guard<std::mutex> lock(gTokenManagerLock); in createHalToken() local
108 std::lock_guard<std::mutex> lock(gTokenManagerLock); in deleteHalToken() local
/system/bt/service/example/heart_rate/
Dheart_rate_server.cc112 std::lock_guard<std::mutex> lock(mutex_); in ~HeartRateServer() local
124 std::lock_guard<std::mutex> lock(mutex_); in Run() local
160 std::lock_guard<std::mutex> lock(mutex_); in SendHeartRateMeasurement() local
228 std::lock_guard<std::mutex> lock(mutex_); in OnServerRegistered() local
284 std::lock_guard<std::mutex> lock(mutex_); in OnServiceAdded() local
316 std::lock_guard<std::mutex> lock(mutex_); in OnCharacteristicReadRequest() local
339 std::lock_guard<std::mutex> lock(mutex_); in OnDescriptorReadRequest() local
373 std::lock_guard<std::mutex> lock(mutex_); in OnCharacteristicWriteRequest() local
416 std::lock_guard<std::mutex> lock(mutex_); in OnDescriptorWriteRequest() local
480 std::lock_guard<std::mutex> lock(mutex_); in OnNotificationSent() local
/system/core/adb/
Dadb_listeners.cpp117 std::lock_guard<std::mutex> lock(listener_list_mutex); in listener_disconnect() local
129 std::lock_guard<std::mutex> lock(listener_list_mutex); in format_listeners() local
147 std::lock_guard<std::mutex> lock(listener_list_mutex); in remove_listener() local
158 std::lock_guard<std::mutex> lock(listener_list_mutex); in remove_all_listeners() local
171 std::lock_guard<std::mutex> lock(listener_list_mutex); in close_smartsockets() local
181 std::lock_guard<std::mutex> lock(listener_list_mutex); in install_listener() local
/system/bt/service/common/bluetooth/util/
Datomic_string.cc25 std::lock_guard<std::mutex> lock(*mutex); in Get() local
30 std::lock_guard<std::mutex> lock(lock_); in Set() local

12345