/packages/modules/DnsResolver/tests/dns_metrics_listener/ |
D | dns_metrics_listener.h | 75 EXCLUDES(mMutex); 78 int getUnexpectedNat64PrefixUpdates() const EXCLUDES(mMutex) { in getUnexpectedNat64PrefixUpdates() 79 std::lock_guard lock(mMutex); in getUnexpectedNat64PrefixUpdates() 88 bool findValidationRecord(const std::string& serverAddr) const EXCLUDES(mMutex) { in findValidationRecord() 89 std::lock_guard lock(mMutex); in findValidationRecord() 93 std::optional<DnsEvent> popDnsEvent() EXCLUDES(mMutex); 95 void reset() EXCLUDES(mMutex) { in reset() 96 std::lock_guard lock(mMutex); in reset() 109 bool findAndRemoveValidationRecord(const ServerKey& key, const bool value) REQUIRES(mMutex); 115 std::string mNat64Prefix GUARDED_BY(mMutex); [all …]
|
D | dns_metrics_listener.cpp | 49 std::lock_guard lock(mMutex); in onNat64PrefixEvent() 59 std::lock_guard lock(mMutex); in onPrivateDnsValidationEvent() 72 std::lock_guard lock(mMutex); in onDnsEvent() 84 std::lock_guard lock(mMutex); in waitForNat64Prefix() 100 std::unique_lock lock(mMutex); in waitForPrivateDnsValidation() 101 ScopedLockAssertion assume_lock(mMutex); in waitForPrivateDnsValidation() 126 std::lock_guard lock(mMutex); in popDnsEvent() 132 std::lock_guard lock(mMutex); in popDnsEvent()
|
/packages/apps/Nfc/nci/jni/ |
D | PowerSwitch.cpp | 93 mMutex.lock(); in initialize() 118 mMutex.unlock(); in initialize() 132 mMutex.lock(); in getLevel() 134 mMutex.unlock(); in getLevel() 152 mMutex.lock(); in setLevel() 168 mMutex.unlock(); in setLevel() 175 mMutex.lock(); in setLevel() 205 mMutex.unlock(); in setLevel() 214 mMutex.lock(); in setScreenOffPowerState() 216 mMutex.unlock(); in setScreenOffPowerState() [all …]
|
D | Mutex.cpp | 42 memset(&mMutex, 0, sizeof(mMutex)); in Mutex() 43 int res = pthread_mutex_init(&mMutex, NULL); in Mutex() 59 int res = pthread_mutex_destroy(&mMutex); in ~Mutex() 75 int res = pthread_mutex_lock(&mMutex); in lock() 91 int res = pthread_mutex_unlock(&mMutex); in unlock() 107 int res = pthread_mutex_trylock(&mMutex); in tryLock() 123 pthread_mutex_t* Mutex::nativeHandle() { return &mMutex; } in nativeHandle()
|
D | DataQueue.cpp | 51 mMutex.lock(); in ~DataQueue() 57 mMutex.unlock(); in ~DataQueue() 61 mMutex.lock(); in isEmpty() 63 mMutex.unlock(); in isEmpty() 81 mMutex.lock(); in enqueue() 97 mMutex.unlock(); in enqueue() 115 mMutex.lock(); in dequeue() 140 mMutex.unlock(); in dequeue()
|
D | PeerToPeer.cpp | 200 mMutex.lock(); in registerServer() 209 mMutex.unlock(); in registerServer() 223 mMutex.unlock(); in registerServer() 255 AutoMutex mutex(mMutex); in removeServer() 438 mMutex.lock(); in accept() 442 mMutex.unlock(); in accept() 445 mMutex.unlock(); in accept() 467 mMutex.lock(); in deregisterServer() 470 mMutex.unlock(); in deregisterServer() 473 mMutex.unlock(); in deregisterServer() [all …]
|
D | SyncEvent.h | 46 void start() { mMutex.lock(); } in start() 57 void wait() { mCondVar.wait(mMutex); } in wait() 70 bool retVal = mCondVar.wait(mMutex, millisec); in wait() 95 void end() { mMutex.unlock(); } in end() 99 Mutex mMutex; variable
|
D | PeerToPeer.h | 390 Mutex mMutex; variable 689 Mutex mMutex;
|
D | DataQueue.h | 97 Mutex mMutex; variable
|
D | Mutex.h | 103 pthread_mutex_t mMutex;
|
D | PowerSwitch.h | 246 Mutex mMutex; variable
|
/packages/modules/DnsResolver/ |
D | Dns64Configuration.h | 85 int setPrefix64(unsigned netId, const netdutils::IPPrefix& pfx) EXCLUDES(mMutex); 86 int clearPrefix64(unsigned netId) EXCLUDES(mMutex); 111 unsigned getNextId() REQUIRES(mMutex) { return ++mNextId ? mNextId : ++mNextId; } in getNextId() 113 netdutils::IPPrefix getPrefix64Locked(unsigned netId) const REQUIRES(mMutex); 114 bool isDiscoveryInProgress(const Dns64Config& cfg) const REQUIRES(mMutex); 116 REQUIRES(mMutex); 120 void removeDns64Config(unsigned netId) REQUIRES(mMutex); 122 mutable std::mutex mMutex; variable 124 unsigned int mNextId GUARDED_BY(mMutex); 125 std::unordered_map<unsigned, Dns64Config> mDns64Configs GUARDED_BY(mMutex);
|
D | Dns64Configuration.cpp | 54 std::lock_guard guard(mMutex); in startPrefixDiscovery() 97 std::unique_lock<std::mutex> cvGuard(mMutex); in startPrefixDiscovery() 109 std::lock_guard guard(mMutex); in stopPrefixDiscovery() 114 IPPrefix Dns64Configuration::getPrefix64Locked(unsigned netId) const REQUIRES(mMutex) { in getPrefix64Locked() 122 std::lock_guard guard(mMutex); in getPrefix64() 129 std::lock_guard guard(mMutex); in dump() 194 bool Dns64Configuration::isDiscoveryInProgress(const Dns64Config& cfg) const REQUIRES(mMutex) { in isDiscoveryInProgress() 214 std::lock_guard guard(mMutex); in shouldContinueDiscovery() 218 void Dns64Configuration::removeDns64Config(unsigned netId) REQUIRES(mMutex) { in removeDns64Config() 232 std::lock_guard guard(mMutex); in recordDns64Config() [all …]
|
D | ResolverEventReporter.h | 54 void addDefaultListener() EXCLUDES(mMutex); 57 EXCLUDES(mMutex); 60 REQUIRES(mMutex); 61 ListenerSet getListenersImpl() const EXCLUDES(mMutex); 62 void handleBinderDied(const void* who) EXCLUDES(mMutex); 64 mutable std::mutex mMutex; variable 65 ListenerSet mListeners GUARDED_BY(mMutex);
|
D | Experiments.h | 36 int getFlag(std::string_view key, int defaultValue) const EXCLUDES(mMutex); 38 void dump(netdutils::DumpWriter& dw) const EXCLUDES(mMutex); 46 void updateInternal() EXCLUDES(mMutex); 47 mutable std::mutex mMutex; variable 48 std::unordered_map<std::string_view, int> mFlagsMapInt GUARDED_BY(mMutex);
|
D | ResolverEventReporter.cpp | 50 std::lock_guard lock(mMutex); in addDefaultListener() 66 std::lock_guard lock(mMutex); in handleBinderDied() 77 std::lock_guard lock(mMutex); in getListenersImpl() 82 std::lock_guard lock(mMutex); in addListenerImpl()
|
D | ExperimentsTest.cpp | 53 std::lock_guard guard(mExperiments.mMutex); in setupExperimentsMap() 58 std::lock_guard guard(mExperiments.mMutex); in expectFlagsMapInt() 63 std::lock_guard guard(mExperiments.mMutex); in expectFlagsMapIntDefault() 91 std::lock_guard guard(mExperiments.mMutex); in expectDumpOutput()
|
D | Experiments.cpp | 46 std::lock_guard guard(mMutex); in dump() 59 std::lock_guard guard(mMutex); in updateInternal() 66 std::lock_guard guard(mMutex); in getFlag()
|
/packages/apps/TV/jni/ |
D | mutex.h | 27 pthread_mutex_init(&mMutex, NULL); in Mutex() 30 return -pthread_mutex_lock(&mMutex); in lock() 33 pthread_mutex_unlock(&mMutex); in unlock() 36 pthread_mutex_destroy(&mMutex); in ~Mutex() 54 pthread_mutex_t mMutex;
|
/packages/services/Car/tools/keventreader/server/ |
D | eventprovider.cpp | 30 std::scoped_lock lock(mMutex); in startLoop() 43 std::scoped_lock lock(mMutex); in registerCallback() 49 std::scoped_lock lock(mMutex); in unregisterCallback()
|
D | eventprovider.h | 40 std::mutex mMutex; variable
|