Home
last modified time | relevance | path

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

123

/system/core/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/netd/server/
DNetworkController.cpp145 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/
Dbluetooth_interface.cpp69 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 …]
Dbluetooth_gatt_interface.cpp74 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/
Dadapter.cpp91 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 …]
Dgatt_server.cpp64 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 …]
Dgatt_server_old.cpp122 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 …]
Dlow_energy_client.cpp362 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 …]
Dgatt_client.cpp65 lock_guard<mutex> lock(pending_calls_lock_); in RegisterInstance() local
/system/bt/service/ipc/binder/
Dbluetooth_gatt_server_binder_server.cpp59 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 …]
Dbluetooth_low_energy_binder_server.cpp63 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
Dinterface_with_instances_base.cpp77 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/
DBnPowerManager.cc33 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
Dpower_manager.cc61 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()
Dpower_manager_stub.cc75 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/
Dheart_rate_server.cpp98 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/
Datomic_string.cpp27 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/
Dmutex.h46 void lock() { in lock() function
72 void lock() { in lock() function
/system/nativepower/client/
Dwake_lock_unittest.cc55 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/
Dmetrics.cpp60 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/
Dusb_linux.cpp88 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
Dsockets.cpp64 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/
Dtcp_nuke_addr_test.cpp70 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/
Dpower_example.cc64 std::unique_ptr<android::WakeLock> lock( in main() local
/system/netd/tests/
Ddns_responder.cpp533 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

123