Home
last modified time | relevance | path

Searched refs:mMutex (Results 1 – 25 of 39) sorted by relevance

12

/packages/services/Car/evs/manager/1.1/stats/
DCameraUsageStats.h139 : mMutex(Mutex()), in CameraUsageStats()
146 mutable Mutex mMutex;
155 CameraUsageStatsRecord mStats GUARDED_BY(mMutex);
158 std::unordered_map<int, BufferRecord> mBufferHistory GUARDED_BY(mMutex);
161 void framesReceived(int n = 1) EXCLUDES(mMutex);
162 void framesReturned(int n = 1) EXCLUDES(mMutex);
165 ) EXCLUDES(mMutex);
168 ) EXCLUDES(mMutex);
169 void framesIgnored(int n = 1) EXCLUDES(mMutex);
170 void framesSkippedToSync(int n = 1) EXCLUDES(mMutex);
[all …]
DStatsCollector.h97 std::chrono::nanoseconds duration) EXCLUDES(mMutex);
103 std::string id = "") EXCLUDES(mMutex);
107 android::sp<HalCamera>& camera) EXCLUDES(mMutex);
111 const std::string& id) EXCLUDES(mMutex);
117 const char* indent = "") EXCLUDES(mMutex);
121 mutable Mutex mMutex;
130 CollectionEvent mCurrentCollectionEvent GUARDED_BY(mMutex);
133 CollectionInfo mPeriodicCollectionInfo GUARDED_BY(mMutex);
136 CollectionInfo mCustomCollectionInfo GUARDED_BY(mMutex);
140 android::wp<HalCamera>> mClientsToMonitor GUARDED_BY(mMutex);
[all …]
DCameraUsageStats.cpp85 AutoMutex lock(mMutex); in framesReceived()
92 AutoMutex lock(mMutex); in framesReceived()
100 AutoMutex lock(mMutex); in framesReturned()
107 AutoMutex lock(mMutex); in framesReturned()
115 AutoMutex lock(mMutex); in framesIgnored()
121 AutoMutex lock(mMutex); in framesSkippedToSync()
127 AutoMutex lock(mMutex); in eventsReceived()
133 AutoMutex lock(mMutex); in updateNumClients()
141 AutoMutex lock(mMutex); in getTimeCreated()
147 AutoMutex lock(mMutex); in getFramesReceived()
[all …]
DStatsCollector.cpp74 AutoMutex lock(mMutex); in handleMessage()
95 Mutex::Autolock lock(mMutex); in handleMessage()
108 AutoMutex lock(mMutex); in handleCollectionEvent()
144 Result<void> StatsCollector::collectLocked(CollectionInfo* info) REQUIRES(mMutex) { in collectLocked()
173 AutoMutex lock(mMutex); in startCollection()
192 AutoMutex lock(mMutex); in startCollection()
219 AutoMutex lock(mMutex); in startCollection()
236 AutoMutex lock(mMutex); in stopCollection()
277 AutoMutex lock(mMutex); in startCustomCollection()
313 Mutex::Autolock lock(mMutex); in stopCustomCollection()
[all …]
/packages/modules/DnsResolver/tests/dns_metrics_listener/
Ddns_metrics_listener.h55 EXCLUDES(mMutex);
58 int getUnexpectedNat64PrefixUpdates() const EXCLUDES(mMutex) { in getUnexpectedNat64PrefixUpdates()
59 std::lock_guard lock(mMutex); in getUnexpectedNat64PrefixUpdates()
68 bool findValidationRecord(const std::string& serverAddr) const EXCLUDES(mMutex) { in findValidationRecord()
69 std::lock_guard lock(mMutex); in findValidationRecord()
73 void reset() EXCLUDES(mMutex) { in reset()
74 std::lock_guard lock(mMutex); in reset()
84 bool findAndRemoveValidationRecord(const ServerKey& key, const bool value) REQUIRES(mMutex);
90 std::string mNat64Prefix GUARDED_BY(mMutex);
97 int mUnexpectedNat64PrefixUpdates GUARDED_BY(mMutex);
[all …]
Ddns_metrics_listener.cpp35 std::lock_guard lock(mMutex); in onNat64PrefixEvent()
45 std::lock_guard lock(mMutex); in onPrivateDnsValidationEvent()
57 std::lock_guard lock(mMutex); in waitForNat64Prefix()
73 std::unique_lock lock(mMutex); in waitForPrivateDnsValidation()
74 ScopedLockAssertion assume_lock(mMutex); in waitForPrivateDnsValidation()
/packages/apps/Nfc/nci/jni/
DPowerSwitch.cpp93 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 …]
DMutex.cpp42 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()
DDataQueue.cpp51 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()
DPeerToPeer.cpp200 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 …]
DSyncEvent.h46 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
/packages/modules/DnsResolver/
DDns64Configuration.h85 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);
DDns64Configuration.cpp54 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 …]
DResolverEventReporter.h54 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);
DExperiments.h36 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);
DResolverEventReporter.cpp50 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()
DExperimentsTest.cpp53 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()
/packages/services/Car/watchdog/server/src/
DIoPerfCollection.h258 Mutex mMutex; variable
261 android::sp<LooperWrapper> mHandlerLooper GUARDED_BY(mMutex);
265 CollectionInfo mBoottimeCollection GUARDED_BY(mMutex);
269 CollectionInfo mPeriodicCollection GUARDED_BY(mMutex);
273 CollectionInfo mCustomCollection GUARDED_BY(mMutex);
277 CollectionEvent mCurrCollectionEvent GUARDED_BY(mMutex);
280 std::unordered_map<uint64_t, std::string> mUidToPackageNameMapping GUARDED_BY(mMutex);
283 android::sp<UidIoStats> mUidIoStats GUARDED_BY(mMutex);
286 android::sp<ProcStat> mProcStat GUARDED_BY(mMutex);
289 android::sp<ProcPidStat> mProcPidStat GUARDED_BY(mMutex);
[all …]
DWatchdogProcessService.cpp93 Mutex::Autolock lock(mMutex); in registerClient()
98 Mutex::Autolock lock(mMutex); in unregisterClient()
106 Mutex::Autolock lock(mMutex); in registerMediator()
114 Mutex::Autolock lock(mMutex); in unregisterMediator()
119 Mutex::Autolock lock(mMutex); in registerMonitor()
137 Mutex::Autolock lock(mMutex); in unregisterMonitor()
154 Mutex::Autolock lock(mMutex); in tellClientAlive()
163 Mutex::Autolock lock(mMutex); in tellMediatorAlive()
186 Mutex::Autolock lock(mMutex); in tellDumpFinished()
199 Mutex::Autolock lock(mMutex); in notifyPowerCycleChange()
[all …]
DWatchdogProcessService.h123 Mutex mMutex; variable
124 std::unordered_map<TimeoutLength, std::vector<ClientInfo>> mClients GUARDED_BY(mMutex);
125 std::unordered_map<TimeoutLength, PingedClientMap> mPingedClients GUARDED_BY(mMutex);
126 std::unordered_set<userid_t> mStoppedUserId GUARDED_BY(mMutex);
127 android::sp<ICarWatchdogMonitor> mMonitor GUARDED_BY(mMutex);
128 bool mWatchdogEnabled GUARDED_BY(mMutex);
/packages/services/Car/watchdog/testclient/src/
DWatchdogClient.cpp55 Mutex::Autolock lock(mMutex); in checkIfAlive()
80 Mutex::Autolock lock(mMutex); in initialize()
101 Mutex::Autolock lock(mMutex); in finalize()
114 Mutex::Autolock lock(mMutex); in respondToWatchdog()
133 Mutex::Autolock lock(mMutex); in becomeInactive()
160 Mutex::Autolock lock(mMutex); in registerClient()
175 Mutex::Autolock lock(mMutex); in unregisterClient()
DWatchdogClient.h81 ::android::Mutex mMutex;
82 std::shared_ptr<ICarWatchdog> mWatchdogServer GUARDED_BY(mMutex);
83 std::shared_ptr<ICarWatchdogClient> mTestClient GUARDED_BY(mMutex);
84 bool mIsClientActive GUARDED_BY(mMutex);
85 HealthCheckSession mSession GUARDED_BY(mMutex);
/packages/services/Car/watchdog/server/tests/
DLooperStub.cpp46 Mutex::Autolock lock(mMutex); in pollAll()
68 Mutex::Autolock lock(mMutex); in pollAll()
79 Mutex::Autolock lock(mMutex); in sendMessageAtTime()
90 Mutex::Autolock lock(mMutex); in removeMessages()
97 Mutex::Autolock lock(mMutex); in pollCache()
103 Mutex::Autolock lock(mMutex); in pollCache()
/packages/apps/TV/jni/
Dmutex.h27 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/
Deventprovider.cpp30 std::scoped_lock lock(mMutex); in startLoop()
43 std::scoped_lock lock(mMutex); in registerCallback()
49 std::scoped_lock lock(mMutex); in unregisterCallback()

12