/system/core/logd/ |
D | SimpleLogBuffer.h | 50 virtual bool Prune(log_id_t id, unsigned long prune_rows, uid_t uid) REQUIRES(lock_); 51 virtual void LogInternal(LogBufferElement&& elem) REQUIRES(lock_); 55 std::list<LogBufferElement>::iterator GetOldest(log_id_t log_id) REQUIRES(lock_); 57 REQUIRES(lock_); 59 REQUIRES_SHARED(lock_); 63 unsigned long max_size(log_id_t id) REQUIRES_SHARED(lock_) { return max_size_[id]; } in max_size() 66 RwLock lock_; variable 70 void MaybePrune(log_id_t id) REQUIRES(lock_); 78 unsigned long max_size_[LOG_ID_MAX] GUARDED_BY(lock_); 79 std::list<LogBufferElement> logs_ GUARDED_BY(lock_); [all …]
|
D | rwlock.h | 46 explicit SharedLock(RwLock& lock) ACQUIRE_SHARED(lock) : lock_(lock) { lock_.lock_shared(); } in SharedLock() 47 ~SharedLock() RELEASE() { lock_.unlock(); } in RELEASE() 49 void lock_shared() ACQUIRE_SHARED() { lock_.lock_shared(); } in lock_shared() 50 void unlock() RELEASE() { lock_.unlock(); } in unlock() 55 RwLock& lock_;
|
D | ChattyLogBuffer.h | 46 LogBufferIteratorMap mLastWorst[LOG_ID_MAX] GUARDED_BY(lock_); 49 LogBufferPidIteratorMap mLastWorstPidOfSystem[LOG_ID_MAX] GUARDED_BY(lock_); 57 bool Prune(log_id_t id, unsigned long pruneRows, uid_t uid) REQUIRES(lock_) override; 58 void LogInternal(LogBufferElement&& elem) REQUIRES(lock_) override; 62 bool coalesce = false) REQUIRES(lock_); 67 std::optional<LogBufferElement> last_logged_elements_[LOG_ID_MAX] GUARDED_BY(lock_); 70 std::optional<LogBufferElement> duplicate_elements_[LOG_ID_MAX] GUARDED_BY(lock_);
|
D | SerializedLogBuffer.h | 57 void MaybePrune(log_id_t log_id) REQUIRES(lock_); 58 bool Prune(log_id_t log_id, size_t bytes_to_free, uid_t uid) REQUIRES(lock_); 60 REQUIRES_SHARED(lock_); 64 unsigned long GetSizeUsed(log_id_t id) REQUIRES(lock_); 70 unsigned long max_size_[LOG_ID_MAX] GUARDED_BY(lock_) = {}; 71 std::list<SerializedLogChunk> logs_[LOG_ID_MAX] GUARDED_BY(lock_); 72 RwLock lock_; variable
|
D | LogStatistics.h | 446 size_t mSizes[LOG_ID_MAX] GUARDED_BY(lock_); 447 size_t mElements[LOG_ID_MAX] GUARDED_BY(lock_); 448 size_t mDroppedElements[LOG_ID_MAX] GUARDED_BY(lock_); 449 size_t mSizesTotal[LOG_ID_MAX] GUARDED_BY(lock_); 450 size_t mElementsTotal[LOG_ID_MAX] GUARDED_BY(lock_); 451 log_time mOldest[LOG_ID_MAX] GUARDED_BY(lock_); 452 log_time mNewest[LOG_ID_MAX] GUARDED_BY(lock_); 453 log_time mNewestDropped[LOG_ID_MAX] GUARDED_BY(lock_); 459 uidTable_t uidTable[LOG_ID_MAX] GUARDED_BY(lock_); 463 pidSystemTable_t pidSystemTable[LOG_ID_MAX] GUARDED_BY(lock_); [all …]
|
D | SimpleLogBuffer.cpp | 97 auto lock = std::lock_guard{lock_}; in Log() 138 auto shared_lock = SharedLock{lock_}; in FlushTo() 219 auto lock = std::lock_guard{lock_}; in Clear() 231 auto lock = std::lock_guard{lock_}; in Clear() 245 auto lock = std::lock_guard{lock_}; in Clear() 251 auto lock = SharedLock{lock_}; in GetSize() 263 auto lock = std::lock_guard{lock_}; in SetSize()
|
D | SerializedLogBuffer.cpp | 84 auto lock = std::lock_guard{lock_}; in Log() 225 auto lock = std::unique_lock{lock_}; in FlushTo() 271 auto lock = std::lock_guard{lock_}; in Clear() 284 auto lock = std::lock_guard{lock_}; in Clear() 298 auto lock = std::lock_guard{lock_}; in Clear() 311 auto lock = std::lock_guard{lock_}; in GetSize() 324 auto lock = std::lock_guard{lock_}; in SetSize()
|
D | LogStatistics.cpp | 119 auto lock = std::lock_guard{lock_}; in AddTotal() 127 auto lock = std::lock_guard{lock_}; in Add() 203 auto lock = std::lock_guard{lock_}; in Subtract() 256 auto lock = std::lock_guard{lock_}; in Drop() 294 auto lock = std::lock_guard{lock_}; in Erase() 328 auto lock = std::lock_guard{lock_}; in UidToName() 414 auto lock = std::lock_guard{lock_}; in WorstTwoUids() 420 auto lock = std::lock_guard{lock_}; in WorstTwoTags() 426 auto lock = std::lock_guard{lock_}; in WorstTwoSystemPids() 444 auto lock = std::lock_guard{lock_}; in ShouldPrune() [all …]
|
D | RecordingLogBuffer.cpp | 28 auto lock = std::lock_guard{lock_}; in RecordLogMessage()
|
/system/bt/common/ |
D | leaky_bonded_queue.h | 86 std::mutex lock_; variable 104 std::lock_guard<std::mutex> lock(lock_); in Enqueue() 114 std::lock_guard<std::mutex> lock(lock_); in EnqueueWithPop() 128 std::lock_guard<std::mutex> lock(lock_); in Dequeue() 136 std::lock_guard<std::mutex> lock(lock_); in Clear() 145 std::lock_guard<std::mutex> lock(lock_); in Length() 156 std::lock_guard<std::mutex> lock(lock_); in Empty()
|
/system/extras/libperfmgr/ |
D | NodeLooperThread.cc | 38 ::android::AutoMutex _l(lock_); in Request() 77 ::android::AutoMutex _l(lock_); in Cancel() 92 ::android::AutoMutex _l(lock_); in DumpToFd() 99 ::android::AutoMutex _l(lock_); in threadLoop() 119 wake_cond_.waitRelative(lock_, sleep_timeout_ns); in threadLoop() 136 ::android::AutoMutex _l(lock_); in Stop()
|
/system/bt/service/common/bluetooth/util/ |
D | atomic_string.cc | 24 std::mutex* mutex = const_cast<std::mutex*>(&lock_); in Get() 30 std::lock_guard<std::mutex> lock(lock_); in Set()
|
D | atomic_string.h | 36 std::mutex lock_;
|
/system/core/fs_mgr/libsnapshot/ |
D | snapshot_test.cpp | 111 lock_ = nullptr; in TearDown() 130 lock_ = nullptr; in CleanupTestArtifacts() 159 lock_ = sm->LockExclusive(); in AcquireLock() 160 return !!lock_; in AcquireLock() 261 if (!sm->CreateCowImage(lock_.get(), name)) { in CreateCowImage() 306 if (!sm->CreateSnapshot(lock_.get(), &status)) { in PrepareOneSnapshot() 315 if (!sm->MapSnapshot(lock_.get(), "test_partition_b", base_device, cow_device, 10s, in PrepareOneSnapshot() 327 lock_ = nullptr; in SimulateReboot() 346 std::unique_ptr<SnapshotManager::LockedFile> lock_; member in android::snapshot::SnapshotTest 360 ASSERT_TRUE(sm->CreateSnapshot(lock_.get(), &status)); in TEST_F() [all …]
|
D | utility.h | 88 : AutoDevice(name), manager_(manager), lock_(lock) {} in AutoDeleteSnapshot() 95 SnapshotManager::LockedFile* lock_ = nullptr; member
|
/system/bt/btif/src/ |
D | btif_a2dp_audio_interface.cc | 88 std::lock_guard<std::recursive_mutex> lock(lock_); in Reset() 93 std::lock_guard<std::recursive_mutex> lock(lock_); in ResetPreserveSession() 98 std::lock_guard<std::recursive_mutex> lock(lock_); in StoreMetrics() 111 std::lock_guard<std::recursive_mutex> lock(lock_); in LogAudioStart() 115 std::lock_guard<std::recursive_mutex> lock(lock_); in LogAudioStop() 119 std::lock_guard<std::recursive_mutex> lock(lock_); in LogAudioStopMetricsAndReset() 125 std::lock_guard<std::recursive_mutex> lock(lock_); in SetCodecIndex() 130 std::recursive_mutex lock_; member in A2dpOffloadAudioStats
|
/system/gsid/ |
D | gsi_service.cpp | 116 std::lock_guard<std::mutex> guard(lock_); in openInstall() 138 std::lock_guard<std::mutex> guard(lock_); in closeInstall() 152 std::lock_guard<std::mutex> guard(lock_); in createPartition() 188 std::lock_guard<std::mutex> guard(lock_); in commitGsiChunkFromStream() 232 std::lock_guard<std::mutex> guard(lock_); in commitGsiChunkFromAshmem() 266 std::lock_guard<std::mutex> guard(lock_); in enableGsi() 294 std::lock_guard<std::mutex> guard(lock_); in isGsiEnabled() 317 std::lock_guard<std::mutex> guard(lock_); in removeGsi() 332 std::lock_guard<std::mutex> guard(lock_); in disableGsi() 340 std::lock_guard<std::mutex> guard(lock_); in isGsiRunning() [all …]
|
D | gsi_service.h | 108 std::mutex lock_; variable 109 std::mutex& lock() { return lock_; } in lock()
|
/system/security/keystore/include/keystore/ |
D | keystore_concurrency.h | 66 GuardType<MutexType> lock_; 73 : lock_(std::move(lock)), value_(value) {} in MutexProxyLockHelper()
|
/system/extras/simpleperf/app_api/cpp/ |
D | simpleperf.cpp | 186 std::mutex lock_; // Protect all members below. member in simpleperf::ProfileSessionImpl 204 std::lock_guard<std::mutex> guard(lock_); in StartRecording() 221 std::lock_guard<std::mutex> guard(lock_); in PauseRecording() 233 std::lock_guard<std::mutex> guard(lock_); in ResumeRecording() 242 std::lock_guard<std::mutex> guard(lock_); in StopRecording()
|
/system/core/libunwindstack/include/unwindstack/ |
D | JitDebug.h | 66 std::mutex lock_; variable
|
D | DexFiles.h | 67 std::mutex lock_; variable
|
/system/core/libunwindstack/ |
D | Elf.cpp | 97 std::lock_guard<std::mutex> guard(lock_); in GetSoname() 109 std::lock_guard<std::mutex> guard(lock_); in GetFunctionName() 197 std::lock_guard<std::mutex> guard(lock_); in Step()
|
/system/extras/libperfmgr/include/perfmgr/ |
D | NodeLooperThread.h | 96 ::android::Mutex lock_;
|
/system/core/init/ |
D | init.cpp | 144 auto lock = std::lock_guard{lock_}; in StartWaiting() 161 auto lock = std::lock_guard{lock_}; in ResetWaitForProp() 166 auto lock = std::lock_guard{lock_}; in CheckAndResetWait() 193 auto lock = std::lock_guard{lock_}; in MightBeWaiting() 204 std::mutex lock_; member in android::init::PropWaiterState
|