/system/core/fs_mgr/libsnapshot/ |
D | snapshot.cpp | 218 bool SnapshotManager::RemoveAllUpdateState(LockedFile* lock, const std::function<bool()>& prolog) { in RemoveAllUpdateState() argument 226 if (!RemoveAllSnapshots(lock)) { in RemoveAllUpdateState() 248 return WriteUpdateState(lock, UpdateState::None); in RemoveAllUpdateState() 252 auto lock = LockExclusive(); in FinishedSnapshotWrites() local 253 if (!lock) return false; in FinishedSnapshotWrites() 255 auto update_state = ReadUpdateState(lock.get()); in FinishedSnapshotWrites() 266 if (!EnsureNoOverflowSnapshot(lock.get())) { in FinishedSnapshotWrites() 291 return WriteUpdateState(lock.get(), UpdateState::Unverified); in FinishedSnapshotWrites() 294 bool SnapshotManager::CreateSnapshot(LockedFile* lock, SnapshotStatus* status) { in CreateSnapshot() argument 295 CHECK(lock); in CreateSnapshot() [all …]
|
/system/sepolicy/prebuilts/api/26.0/ |
D | nonplat_sepolicy.cil | 1741 (allow bootanim_26_0 gpu_device_26_0 (chr_file (ioctl read write getattr lock append open))) 1743 (allow bootanim_26_0 oemfs_26_0 (file (ioctl read getattr lock open))) 1744 (allow bootanim_26_0 audio_device_26_0 (dir (ioctl read getattr lock search open))) 1745 (allow bootanim_26_0 audio_device_26_0 (chr_file (ioctl read write getattr lock append open))) 1748 (allow bootanim_26_0 ion_device_26_0 (chr_file (ioctl read write getattr lock append open))) 1751 (allow bootanim_26_0 proc_26_0 (dir (ioctl read getattr lock search open))) 1752 (allow bootanim_26_0 proc_26_0 (file (ioctl read getattr lock open))) 1753 (allow bootanim_26_0 proc_26_0 (lnk_file (ioctl read getattr lock open))) 1754 (allow bootanim_26_0 proc_meminfo_26_0 (file (ioctl read getattr lock open))) 1755 (allow bootanim_26_0 sysfs_26_0 (dir (ioctl read getattr lock search open))) [all …]
|
/system/sepolicy/prebuilts/api/27.0/ |
D | nonplat_sepolicy.cil | 1961 (allow bootanim_27_0 gpu_device_27_0 (chr_file (ioctl read write getattr lock append map open))) 1963 (allow bootanim_27_0 oemfs_27_0 (file (ioctl read getattr lock map open))) 1964 (allow bootanim_27_0 audio_device_27_0 (dir (ioctl read getattr lock search open))) 1965 (allow bootanim_27_0 audio_device_27_0 (chr_file (ioctl read write getattr lock append map open))) 1968 (allow bootanim_27_0 ion_device_27_0 (chr_file (ioctl read write getattr lock append map open))) 1971 (allow bootanim_27_0 proc_27_0 (dir (ioctl read getattr lock search open))) 1972 (allow bootanim_27_0 proc_27_0 (file (ioctl read getattr lock map open))) 1973 (allow bootanim_27_0 proc_27_0 (lnk_file (ioctl read getattr lock map open))) 1974 (allow bootanim_27_0 proc_meminfo_27_0 (file (ioctl read getattr lock map open))) 1975 (allow bootanim_27_0 sysfs_27_0 (dir (ioctl read getattr lock search open))) [all …]
|
/system/core/libcutils/ |
D | threads.cpp | 63 pthread_mutex_lock( &store->lock ); in thread_store_set() 66 pthread_mutex_unlock(&store->lock); in thread_store_set() 71 pthread_mutex_unlock( &store->lock ); in thread_store_set() 92 InitializeCriticalSection( &store->lock ); in thread_store_set() 98 EnterCriticalSection( &store->lock ); in thread_store_set() 102 LeaveCriticalSection( &store->lock ); in thread_store_set() 107 LeaveCriticalSection( &store->lock ); in thread_store_set()
|
/system/bt/gd/common/ |
D | blocking_queue.h | 31 std::unique_lock<std::mutex> lock(mutex_); in push() 39 std::unique_lock<std::mutex> lock(mutex_); in take() 41 not_empty_.wait(lock); in take() 50 std::unique_lock<std::mutex> lock(mutex_); in wait_to_take() 52 if (not_empty_.wait_for(lock, time) == std::cv_status::timeout) { in wait_to_take() 60 std::unique_lock<std::mutex> lock(mutex_); in empty() 65 std::unique_lock<std::mutex> lock(mutex_); in clear()
|
/system/sepolicy/prebuilts/api/28.0/ |
D | plat_pub_versioned.cil | 3049 (allow appdomain zygote_exec_28_0 (file (ioctl read getattr lock map execute execute_no_trans open)… 3052 (allow appdomain cgroup_28_0 (file (ioctl read write getattr lock append map open))) 3054 (allow appdomain dalvikcache_data_file_28_0 (file (ioctl read getattr lock map open))) 3055 (allow base_typeattr_43_28_0 rootfs_28_0 (lnk_file (ioctl read getattr lock map open))) 3056 (allow base_typeattr_43_28_0 tmpfs_28_0 (lnk_file (ioctl read getattr lock map open))) 3057 (allow appdomain tmpfs_28_0 (dir (ioctl read getattr lock search open))) 3059 (allow appdomain method_trace_data_file_28_0 (dir (write lock add_name remove_name search open))) 3060 (allow appdomain method_trace_data_file_28_0 (file (write create lock append map open))) 3065 (allow appdomain system_server_28_0 (fifo_file (ioctl read write getattr lock append map open))) 3068 (allow appdomain appdomain (fifo_file (ioctl read write getattr lock append map open))) [all …]
|
/system/bt/service/ |
D | gatt_server_old.cc | 121 std::mutex lock; member 150 std::lock_guard<std::mutex> lock(g_internal->lock); in ServiceAddedCallback() local 211 std::lock_guard<std::mutex> lock(g_internal->lock); in RequestReadCallback() local 262 std::lock_guard<std::mutex> lock(g_internal->lock); in RequestWriteCallback() local 320 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 541 std::unique_lock<std::mutex> lock(internal_->lock); in Initialize() local 554 internal_->api_synchronize.wait(lock); in Initialize() [all …]
|
D | a2dp_sink.cc | 44 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
|
D | avrcp_target.cc | 112 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 …]
|
D | avrcp_control.cc | 48 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
|
D | a2dp_source.cc | 120 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
|
/system/chre/util/include/chre/util/ |
D | fixed_size_blocking_queue_impl.h | 30 LockGuard<Mutex> lock(mMutex); in push() 43 LockGuard<Mutex> lock(mMutex); in push() 54 LockGuard<Mutex> lock(mMutex); in pop() 66 LockGuard<Mutex> lock(mMutex); in empty() 72 LockGuard<Mutex> lock(mMutex); in size() 78 LockGuard<Mutex> lock(mMutex); in remove() 85 LockGuard<Mutex> lock(mMutex); 92 LockGuard<Mutex> lock(mMutex);
|
/system/bt/service/hal/ |
D | bluetooth_avrcp_interface.cc | 70 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 …]
|
D | bluetooth_gatt_interface.cc | 86 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 …]
|
D | bluetooth_interface.cc | 71 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 …]
|
/system/teeui/libteeui/src/ |
D | evdev.cpp | 91 std::unique_lock<std::mutex> lock(mutex_); in addEventReceiver() local 100 std::unique_lock<std::mutex> lock(mutex_); in addTimer() local 109 std::unique_lock<std::mutex> lock(mutex_); in start() local 116 std::unique_lock<std::mutex> lock(mutex_); in start() local 118 lock.unlock(); in start() 120 lock.lock(); in start() 124 lock.unlock(); in start() 134 lock.lock(); in start() 149 lock.lock(); in start() 152 lock.unlock(); in start() [all …]
|
/system/core/fs_mgr/libsnapshot/include/libsnapshot/ |
D | snapshot.h | 380 bool CreateSnapshot(LockedFile* lock, SnapshotStatus* status); 384 Return CreateCowImage(LockedFile* lock, const std::string& name); 393 bool MapSnapshot(LockedFile* lock, const std::string& name, const std::string& base_device, 403 bool DeleteSnapshot(LockedFile* lock, const std::string& name); 406 bool UnmapSnapshot(LockedFile* lock, const std::string& name); 412 bool RemoveAllSnapshots(LockedFile* lock); 415 bool ListSnapshots(LockedFile* lock, std::vector<std::string>* snapshots); 419 bool HandleCancelledUpdate(LockedFile* lock, const std::function<bool()>& before_cancel); 422 bool AreAllSnapshotsCancelled(LockedFile* lock); 430 bool GetSnapshotFlashingStatus(LockedFile* lock, const std::vector<std::string>& snapshots, [all …]
|
/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() argument 80 lock->writeLock(); in killSockets() 84 lock->unlock(); in killSockets() 92 android::RWLock *lock, std::atomic<unsigned int> *attempts) { in connectLoop() argument 100 lock->readLock(); in connectLoop() 102 lock->unlock(); in connectLoop() 137 android::RWLock lock; in main() local 141 std::thread t0(killSockets, sin, KILL_INTERVAL_MS, &lock); in main() 143 std::thread(connectLoop, sin, listensock, &lock, &attempts).detach(); in main()
|
/system/core/logd/ |
D | rwlock.h | 33 void lock() ACQUIRE() { pthread_rwlock_wrlock(&rwlock_); } in lock() function 46 explicit SharedLock(RwLock& lock) ACQUIRE_SHARED(lock) : lock_(lock) { lock_.lock_shared(); } in SharedLock() argument
|
D | LogReaderThread.cpp | 52 auto lock = std::unique_lock{reader_list_->reader_threads_lock()}; in ThreadFunction() 56 if (thread_triggered_condition_.wait_until(lock, deadline_) == in ThreadFunction() 65 lock.unlock(); in ThreadFunction() 91 lock.lock(); in ThreadFunction() 104 thread_triggered_condition_.wait(lock); in ThreadFunction() 121 auto lock = std::lock_guard{reader_list_->reader_threads_lock()}; in FilterFirstPass() 133 auto lock = std::lock_guard{reader_list_->reader_threads_lock()}; in FilterSecondPass()
|
/system/bt/gd/storage/ |
D | storage_module.cc | 80 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 …]
|
/system/bt/common/ |
D | lru.h | 63 std::lock_guard<std::recursive_mutex> lock(lru_mutex_); in Clear() 78 std::lock_guard<std::recursive_mutex> lock(lru_mutex_); in Find() 97 std::lock_guard<std::recursive_mutex> lock(lru_mutex_); in Get() 114 std::lock_guard<std::recursive_mutex> lock(lru_mutex_); in HasKey() 127 std::lock_guard<std::recursive_mutex> lock(lru_mutex_); in Put() 155 std::lock_guard<std::recursive_mutex> lock(lru_mutex_); in Remove() 176 std::lock_guard<std::recursive_mutex> lock(lru_mutex_); in Size()
|
/system/libhidl/base/ |
D | SynchronizedQueue.h | 48 std::unique_lock<std::mutex> lock() { in lock() function 73 std::unique_lock<std::mutex> lock(mMutex); in wait_pop() 75 mCondition.wait(lock, [this]{ in wait_pop() 89 std::unique_lock<std::mutex> lock(mMutex); in push() 104 std::unique_lock<std::mutex> lock(mMutex); in size()
|
/system/chre/platform/linux/ |
D | platform_log.cc | 32 std::unique_lock<std::mutex> lock(mMutex); in logLooper() local 33 mConditionVariable.wait(lock, [this]{ in logLooper() 63 std::unique_lock<std::mutex> lock(mMutex); in ~PlatformLog() local 79 std::unique_lock<std::mutex> lock(mMutex); in log() local
|
/system/bt/service/ipc/binder/ |
D | bluetooth_a2dp_sink_binder_server.cc | 51 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
|