Home
last modified time | relevance | path

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

12345678

/system/bt/main/shim/
Dstack.cc51 std::lock_guard<std::mutex> lock(mutex_); in StartIdleMode() local
63 std::lock_guard<std::mutex> lock(mutex_); in StartEverything() local
110 std::lock_guard<std::mutex> lock(mutex_); in Stop() local
130 std::lock_guard<std::mutex> lock(mutex_); in IsRunning() local
135 std::lock_guard<std::mutex> lock(mutex_); in GetStackManager() local
141 std::lock_guard<std::mutex> lock(mutex_); in GetBtm() local
147 std::lock_guard<std::mutex> lock(mutex_); in GetHandler() local
/system/bt/gd/storage/
Dstorage_module.cc80 std::lock_guard<std::recursive_mutex> lock(mutex_); in ~StorageModule() local
99 std::lock_guard<std::recursive_mutex> lock(mutex_); in Modify() local
104 std::lock_guard<std::recursive_mutex> lock(mutex_); in GetConfigCache() local
109 std::lock_guard<std::recursive_mutex> lock(mutex_); in GetMemoryOnlyConfigCache() local
114 std::lock_guard<std::recursive_mutex> lock(mutex_); in SaveDelayed() local
124 std::lock_guard<std::recursive_mutex> lock(mutex_); in SaveImmediately() local
144 std::lock_guard<std::recursive_mutex> lock(mutex_); in Start() local
185 std::lock_guard<std::recursive_mutex> lock(mutex_); in Stop() local
195 std::lock_guard<std::recursive_mutex> lock(mutex_); in GetDeviceByLegacyKey() local
204 std::lock_guard<std::recursive_mutex> lock(mutex_); in GetDeviceByClassicMacAddress() local
[all …]
Dconfig_cache.cc58 std::lock_guard<std::recursive_mutex> lock(mutex_); in SetPersistentConfigChangedCallback() local
100 std::lock_guard<std::recursive_mutex> lock(mutex_); in Clear() local
115 std::lock_guard<std::recursive_mutex> lock(mutex_); in HasSection() local
121 std::lock_guard<std::recursive_mutex> lock(mutex_); in HasProperty() local
138 std::lock_guard<std::recursive_mutex> lock(mutex_); in GetProperty() local
164 std::lock_guard<std::recursive_mutex> lock(mutex_); in SetProperty() local
203 std::lock_guard<std::recursive_mutex> lock(mutex_); in RemoveSection() local
214 std::lock_guard<std::recursive_mutex> lock(mutex_); in RemoveProperty() local
267 std::lock_guard<std::recursive_mutex> lock(mutex_); in RemoveSectionWithProperty() local
294 std::lock_guard<std::recursive_mutex> lock(mutex_); in GetPersistentSections() local
[all …]
/system/bt/service/
Da2dp_sink.cc44 std::lock_guard<std::mutex> lock(delegate_mutex_); in SetDelegate() local
49 std::lock_guard<std::mutex> lock(mutex_); in Enable() local
54 std::lock_guard<std::mutex> lock(mutex_); in Disable() local
59 std::lock_guard<std::mutex> lock(mutex_); in Connect() local
78 std::lock_guard<std::mutex> lock(mutex_); in Disconnect() local
97 std::lock_guard<std::mutex> lock(mutex_); in SetAudioFocusState() local
104 std::lock_guard<std::mutex> lock(mutex_); in SetAudioTrackGain() local
114 std::lock_guard<std::mutex> lock(delegate_mutex_); in ConnectionStateCallback() local
124 std::lock_guard<std::mutex> lock(delegate_mutex_); in AudioStateCallback() local
135 std::lock_guard<std::mutex> lock(delegate_mutex_); in AudioConfigCallback() local
Davrcp_target.cc112 LockGuard lock(delegate_mutex_); in SetDelegate() local
117 LockGuard lock(mutex_); in Enable() local
122 LockGuard lock(mutex_); in Disable() local
130 LockGuard lock(mutex_); in GetPlayStatusResponse() local
148 LockGuard lock(mutex_); in ListPlayerAppAttrResponse() local
171 LockGuard lock(mutex_); in GetPlayerAppValueResponse() local
182 LockGuard lock(mutex_); in GetPlayerAppAttrTextResponse() local
194 LockGuard lock(mutex_); in GetPlayerAppValueTextResponse() local
206 LockGuard lock(mutex_); in GetElementAttrResponse() local
217 LockGuard lock(mutex_); in SetPlayerAppValueResponse() local
[all …]
Davrcp_control.cc48 std::lock_guard<std::mutex> lock(delegate_mutex_); in SetDelegate() local
53 std::lock_guard<std::mutex> lock(mutex_); in Enable() local
58 std::lock_guard<std::mutex> lock(mutex_); in Disable() local
73 std::lock_guard<std::mutex> lock(mutex_); in SendPassThroughCommand() local
96 std::lock_guard<std::mutex> lock(mutex_); in SetAbsVolumeResponse() local
120 std::lock_guard<std::mutex> lock(mutex_); in RegisterForAbsVolumeCallbackResponse() local
139 std::lock_guard<std::mutex> lock(delegate_mutex_); in ConnectionStateCallback() local
147 std::lock_guard<std::mutex> lock(delegate_mutex_); in CtrlSetabsvolCmdCallback() local
155 std::lock_guard<std::mutex> lock(delegate_mutex_); in CtrlRegisternotificationAbsVolCallback() local
211 std::lock_guard<std::mutex> lock(delegate_mutex_); in CtrlTrackChangedCallback() local
Da2dp_source.cc120 LockGuard lock(delegate_mutex_); in SetDelegate() local
126 LockGuard lock(mutex_); in Enable() local
132 LockGuard lock(mutex_); in Disable() local
138 LockGuard lock(mutex_); in Connect() local
146 LockGuard lock(mutex_); in Disconnect() local
157 LockGuard lock(mutex_); in ConfigCodec() local
168 LockGuard lock(delegate_mutex_); in ConnectionStateCallback() local
177 LockGuard lock(delegate_mutex_); in AudioStateCallback() local
195 LockGuard lock(delegate_mutex_); in AudioConfigCallback() local
204 LockGuard lock(delegate_mutex_); in MandatoryCodecPreferredCallback() local
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
234 lock_guard<mutex> lock(pending_calls_lock_); in RegisterClientCallback() local
/system/bt/btif/src/
Dbtif_a2dp_sink.cc173 LockGuard lock(g_mutex); in btif_a2dp_sink_init() local
217 LockGuard lock(g_mutex); in btif_a2dp_sink_startup_delayed() local
239 LockGuard lock(g_mutex); in btif_a2dp_sink_start_session_delayed() local
281 LockGuard lock(g_mutex); in btif_a2dp_sink_end_session_delayed() local
293 LockGuard lock(g_mutex); in btif_a2dp_sink_shutdown_delayed() local
306 LockGuard lock(g_mutex); in btif_a2dp_sink_cleanup() local
329 LockGuard lock(g_mutex); in btif_a2dp_sink_cleanup_delayed() local
337 LockGuard lock(g_mutex); in btif_a2dp_sink_get_sample_rate() local
342 LockGuard lock(g_mutex); in btif_a2dp_sink_get_bits_per_sample() local
347 LockGuard lock(g_mutex); in btif_a2dp_sink_get_channel_count() local
[all …]
/system/bt/service/ipc/binder/
Dbluetooth_a2dp_sink_binder_server.cc51 std::lock_guard<std::mutex> lock(*maps_lock()); in Enable() local
70 std::lock_guard<std::mutex> lock(*maps_lock()); in Disable() local
85 std::lock_guard<std::mutex> lock(*maps_lock()); in Connect() local
105 std::lock_guard<std::mutex> lock(*maps_lock()); in Disconnect() local
125 std::lock_guard<std::mutex> lock(*maps_lock()); in SetAudioFocusState() local
140 std::lock_guard<std::mutex> lock(*maps_lock()); in SetAudioTrackGain() local
155 std::lock_guard<std::mutex> lock(*maps_lock()); in OnConnectionState() local
167 std::lock_guard<std::mutex> lock(*maps_lock()); in OnAudioState() local
180 std::lock_guard<std::mutex> lock(*maps_lock()); in OnAudioConfig() local
Dinterface_with_instances_base.cc75 std::lock_guard<std::mutex> lock(maps_lock_); in UnregisterInstanceBase() local
83 std::lock_guard<std::mutex> lock(maps_lock_); in UnregisterAllBase() local
92 std::lock_guard<std::mutex> lock(maps_lock_); in ForEachCallback() local
136 std::lock_guard<std::mutex> lock(maps_lock_); in OnRegisterInstance() local
155 std::lock_guard<std::mutex> lock(maps_lock_); in OnRemoteCallbackRemoved() local
/system/bt/service/hal/
Dbluetooth_interface.cc71 shared_lock<shared_mutex_impl> lock(g_instance_lock); in AdapterStateChangedCallback() local
79 shared_lock<shared_mutex_impl> lock(g_instance_lock); in AdapterPropertiesCallback() local
91 shared_lock<shared_mutex_impl> lock(g_instance_lock); in RemoteDevicePropertiesCallback() local
102 shared_lock<shared_mutex_impl> lock(g_instance_lock); in DeviceFoundCallback() local
109 shared_lock<shared_mutex_impl> lock(g_instance_lock); in DiscoveryStateChangedCallback() local
117 shared_lock<shared_mutex_impl> lock(g_instance_lock); in PinRequestCallback() local
129 shared_lock<shared_mutex_impl> lock(g_instance_lock); in SSPRequestCallback() local
140 shared_lock<shared_mutex_impl> lock(g_instance_lock); in BondStateChangedCallback() local
150 shared_lock<shared_mutex_impl> lock(g_instance_lock); in AclStateChangedCallback() local
229 shared_lock<shared_mutex_impl> lock(g_instance_lock); in AddObserver() local
[all …]
Dbluetooth_avrcp_interface.cc70 shared_lock<shared_mutex_impl> lock(g_instance_lock); in RemoteFeaturesCallback() local
79 shared_lock<shared_mutex_impl> lock(g_instance_lock); in GetPlayStatusCallback() local
88 shared_lock<shared_mutex_impl> lock(g_instance_lock); in ListPlayerAppAttrCallback() local
98 shared_lock<shared_mutex_impl> lock(g_instance_lock); in ListPlayerAppValuesCallback() local
108 shared_lock<shared_mutex_impl> lock(g_instance_lock); in GetPlayerAppValueCallback() local
119 shared_lock<shared_mutex_impl> lock(g_instance_lock); in GetPlayerAppAttrsTextCallback() local
130 shared_lock<shared_mutex_impl> lock(g_instance_lock); in GetPlayerAppValuesTextCallback() local
140 shared_lock<shared_mutex_impl> lock(g_instance_lock); in SetPlayerAppValueCallback() local
150 shared_lock<shared_mutex_impl> lock(g_instance_lock); in GetElementAttrCallback() local
160 shared_lock<shared_mutex_impl> lock(g_instance_lock); in RegisterNotificationCallback() local
[all …]
Dbluetooth_gatt_interface.cc86 shared_lock<shared_mutex_impl> lock(g_instance_lock); in RegisterClientCallback() local
100 shared_lock<shared_mutex_impl> lock(g_instance_lock); in ScanResultCallback() local
112 shared_lock<shared_mutex_impl> lock(g_instance_lock); in ConnectCallback() local
124 shared_lock<shared_mutex_impl> lock(g_instance_lock); in DisconnectCallback() local
135 shared_lock<shared_mutex_impl> lock(g_instance_lock); in SearchCompleteCallback() local
145 shared_lock<shared_mutex_impl> lock(g_instance_lock); in RegisterForNotificationCallback() local
155 shared_lock<shared_mutex_impl> lock(g_instance_lock); in NotifyCallback() local
167 shared_lock<shared_mutex_impl> lock(g_instance_lock); in WriteCharacteristicCallback() local
177 shared_lock<shared_mutex_impl> lock(g_instance_lock); in WriteDescriptorCallback() local
187 shared_lock<shared_mutex_impl> lock(g_instance_lock); in MtuChangedCallback() local
[all …]
/system/netd/server/
DEventReporter.cpp24 std::lock_guard lock(mEventMutex); in getNetdEventListener() local
42 std::lock_guard lock(mUnsolicitedMutex); in getNetdUnsolicitedEventListenerMap() local
48 std::lock_guard lock(mUnsolicitedMutex); in registerUnsolEventListener() local
76 std::lock_guard lock(mUnsolicitedMutex); in unregisterUnsolEventListener() local
DNetworkController.cpp164 ScopedRLock lock(mRWLock); in getDefaultNetwork() local
169 ScopedWLock lock(mRWLock); in setDefaultNetwork() local
256 ScopedRLock lock(mRWLock); in getNetworkForUser() local
286 ScopedRLock lock(mRWLock); in getNetworkForConnect() local
292 ScopedRLock lock(mRWLock); in getNetworkContext() local
349 ScopedRLock lock(mRWLock); in getNetworkForInterface() local
354 ScopedRLock lock(mRWLock); in isVirtualNetwork() local
390 ScopedWLock lock(mRWLock); in createPhysicalNetwork() local
399 ScopedWLock lock(mRWLock); in createPhysicalOemNetwork() local
421 ScopedWLock lock(mRWLock); in createVirtualNetwork() local
[all …]
/system/bt/common/
Dmetric_id_allocator.cc51 std::lock_guard<std::mutex> lock(id_allocator_mutex_); in Init() local
91 std::lock_guard<std::mutex> lock(id_allocator_mutex_); in Close() local
108 std::lock_guard<std::mutex> lock(id_allocator_mutex_); in IsEmpty() local
115 std::lock_guard<std::mutex> lock(id_allocator_mutex_); in AllocateId() local
148 std::lock_guard<std::mutex> lock(id_allocator_mutex_); in SaveDevice() local
178 std::lock_guard<std::mutex> lock(id_allocator_mutex_); in ForgetDevice() local
Daddress_obfuscator.cc37 std::lock_guard<std::recursive_mutex> lock(instance_mutex_); in Initialize() local
42 std::lock_guard<std::recursive_mutex> lock(instance_mutex_); in IsInitialized() local
47 std::lock_guard<std::recursive_mutex> lock(instance_mutex_); in Obfuscate() local
/system/bt/gd/os/linux_generic/
Dhandler.cc47 std::lock_guard<std::mutex> lock(mutex_); in ~Handler() local
58 std::lock_guard<std::mutex> lock(mutex_); in Post() local
73 std::lock_guard<std::mutex> lock(mutex_); in Clear() local
95 std::lock_guard<std::mutex> lock(mutex_); in handle_next_event() local
/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
103 std::unique_lock<std::mutex> lock(tracker_lock); in allocation_tracker_notify_alloc() local
137 std::unique_lock<std::mutex> lock(tracker_lock); in allocation_tracker_notify_free() local
179 std::unique_lock<std::mutex> lock(tracker_lock); in osi_allocator_debug_dump() local
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/chre/platform/linux/
Dplatform_log.cc32 std::unique_lock<std::mutex> lock(mMutex); in logLooper() local
63 std::unique_lock<std::mutex> lock(mMutex); in ~PlatformLog() local
79 std::unique_lock<std::mutex> lock(mMutex); in log() local
/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/slpi/smgr/
Dsmr_helper.cc45 LockGuard<Mutex> lock(mMutex); in releaseSync() local
77 LockGuard<Mutex> lock(mMutex); in waitForService() local
151 LockGuard<Mutex> lock(mMutex); in sendReqSyncUntyped() local
179 LockGuard<Mutex> lock(mMutex); in handleResp() local
200 LockGuard<Mutex> lock(mMutex); in prepareForWait() local
207 LockGuard<Mutex> lock(obj->mMutex); in smrReleaseCb() local
225 LockGuard<Mutex> lock(obj->mMutex); in smrWaitForServiceCb() local
/system/core/adb/
Dadb_listeners.cpp115 std::lock_guard<std::mutex> lock(listener_list_mutex); in listener_disconnect() local
127 std::lock_guard<std::mutex> lock(listener_list_mutex); in format_listeners() local
146 std::lock_guard<std::mutex> lock(listener_list_mutex); in remove_listener() local
157 std::lock_guard<std::mutex> lock(listener_list_mutex); in remove_all_listeners() local
170 std::lock_guard<std::mutex> lock(listener_list_mutex); in enable_server_sockets() local
180 std::lock_guard<std::mutex> lock(listener_list_mutex); in close_smartsockets() local
191 std::lock_guard<std::mutex> lock(listener_list_mutex); in install_listener() local

12345678