/packages/services/Car/cpp/evs/manager/1.1/stats/ |
D | CameraUsageStats.h | 139 : 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 …]
|
D | StatsCollector.h | 97 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 …]
|
D | CameraUsageStats.cpp | 85 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 …]
|
D | StatsCollector.cpp | 74 AutoMutex lock(mMutex); in handleMessage() 95 Mutex::Autolock lock(mMutex); in handleMessage() 108 AutoMutex lock(mMutex); in handleCollectionEvent() 150 Result<void> StatsCollector::collectLocked(CollectionInfo* info) REQUIRES(mMutex) { in collectLocked() 179 AutoMutex lock(mMutex); in startCollection() 198 AutoMutex lock(mMutex); in startCollection() 225 AutoMutex lock(mMutex); in startCollection() 242 AutoMutex lock(mMutex); in stopCollection() 283 AutoMutex lock(mMutex); in startCustomCollection() 319 Mutex::Autolock lock(mMutex); in stopCustomCollection() [all …]
|
/packages/modules/DnsResolver/tests/unsolicited_listener/ |
D | unsolicited_event_listener.h | 50 EXCLUDES(mMutex); 53 android::base::Result<int> popDnsHealthResult() EXCLUDES(mMutex); 56 bool findValidationRecord(const std::string& serverAddr) const EXCLUDES(mMutex) { in findValidationRecord() 57 std::lock_guard lock(mMutex); in findValidationRecord() 62 int getUnexpectedNat64PrefixUpdates() const EXCLUDES(mMutex) { in getUnexpectedNat64PrefixUpdates() 63 std::lock_guard lock(mMutex); in getUnexpectedNat64PrefixUpdates() 67 void reset() EXCLUDES(mMutex) { in reset() 68 std::lock_guard lock(mMutex); in reset() 81 bool findAndRemoveValidationRecord(const ServerKey& key, int value) REQUIRES(mMutex); 87 std::map<ServerKey, int> mValidationRecords GUARDED_BY(mMutex); [all …]
|
D | unsolicited_event_listener.cpp | 39 std::lock_guard lock(mMutex); in onDnsHealthEvent() 46 std::lock_guard lock(mMutex); in onNat64PrefixEvent() 60 std::lock_guard lock(mMutex); in onPrivateDnsValidationEvent() 72 std::unique_lock lock(mMutex); in waitForPrivateDnsValidation() 73 ScopedLockAssertion assume_lock(mMutex); in waitForPrivateDnsValidation() 97 std::lock_guard lock(mMutex); in waitForNat64Prefix() 116 std::lock_guard lock(mMutex); in popDnsHealthResult() 122 std::lock_guard lock(mMutex); in popDnsHealthResult()
|
/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/modules/DnsResolver/ |
D | ResolverEventReporter.h | 67 void addDefaultListener() EXCLUDES(mMutex); 70 EXCLUDES(mMutex); 73 REQUIRES(mMutex); 77 listener) EXCLUDES(mMutex); 81 listener) REQUIRES(mMutex); 82 ListenerSet getListenersImpl() const EXCLUDES(mMutex); 83 UnsolEventListenerSet getUnsolEventListenersImpl() const EXCLUDES(mMutex); 84 void handleBinderDied(const void* who) EXCLUDES(mMutex); 85 void handleUnsolEventBinderDied(const void* who) EXCLUDES(mMutex); 87 mutable std::mutex mMutex; variable [all …]
|
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 | OperationLimiter.h | 58 bool start(KeyType key) EXCLUDES(mMutex) { in start() 59 std::lock_guard lock(mMutex); in start() 79 void finish(KeyType key) EXCLUDES(mMutex) { in finish() 80 std::lock_guard lock(mMutex); in finish() 103 std::mutex mMutex; 106 std::unordered_map<KeyType, int> mCounters GUARDED_BY(mMutex); 108 int mGlobalCounter GUARDED_BY(mMutex) = 0;
|
D | ResolverEventReporter.cpp | 60 std::lock_guard lock(mMutex); in addDefaultListener() 76 std::lock_guard lock(mMutex); in handleBinderDied() 87 std::lock_guard lock(mMutex); in handleUnsolEventBinderDied() 98 std::lock_guard lock(mMutex); in getListenersImpl() 104 std::lock_guard lock(mMutex); in getUnsolEventListenersImpl() 109 std::lock_guard lock(mMutex); in addListenerImpl() 160 std::lock_guard lock(mMutex); in addUnsolEventListenerImpl()
|
/packages/modules/StatsD/statsd/src/metrics/ |
D | MetricProducer.h | 174 std::lock_guard<std::mutex> lock(mMutex); in onConfigUpdated() 187 std::lock_guard<std::mutex> lock(mMutex); in notifyAppUpgrade() 200 std::lock_guard<std::mutex> lock(mMutex); in onStatsdInitCompleted() 205 std::lock_guard<std::mutex> lock(mMutex); in onMatchedLogEvent() 210 std::lock_guard<std::mutex> lock(mMutex); in onConditionChanged() 215 std::lock_guard<std::mutex> lock(mMutex); in onSlicedConditionMayChange() 220 std::lock_guard<std::mutex> lock(mMutex); in isConditionSliced() 236 std::lock_guard<std::mutex> lock(mMutex); in onDumpReport() 258 std::lock_guard<std::mutex> lock(mMutex); in clearPastBuckets() 263 std::lock_guard<std::mutex> lock(mMutex); in prepareFirstBucket() [all …]
|
/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 …]
|
/packages/services/Car/cpp/watchdog/server/src/ |
D | WatchdogPerfService.h | 275 Mutex mMutex; variable 278 android::sp<LooperWrapper> mHandlerLooper GUARDED_BY(mMutex); 281 SystemState mSystemState GUARDED_BY(mMutex); 284 EventMetadata mBoottimeCollection GUARDED_BY(mMutex); 287 EventMetadata mPeriodicCollection GUARDED_BY(mMutex); 293 EventMetadata mCustomCollection GUARDED_BY(mMutex); 296 EventMetadata mPeriodicMonitor GUARDED_BY(mMutex); 302 EventType mCurrCollectionEvent GUARDED_BY(mMutex); 305 android::sp<UidIoStats> mUidIoStats GUARDED_BY(mMutex); 308 android::sp<ProcStat> mProcStat GUARDED_BY(mMutex); [all …]
|
D | WatchdogProcessService.cpp | 148 Mutex::Autolock lock(mMutex); in registerWatchdogServiceHelper() 159 Mutex::Autolock lock(mMutex); in registerClient() 164 Mutex::Autolock lock(mMutex); in unregisterClient() 175 Mutex::Autolock lock(mMutex); in registerCarWatchdogService() 185 Mutex::Autolock lock(mMutex); in unregisterCarWatchdogService() 192 Mutex::Autolock lock(mMutex); in registerMonitor() 210 Mutex::Autolock lock(mMutex); in unregisterMonitor() 228 Mutex::Autolock lock(mMutex); in tellClientAlive() 237 Mutex::Autolock lock(mMutex); in tellCarWatchdogServiceAlive() 260 Mutex::Autolock lock(mMutex); in tellDumpFinished() [all …]
|
/packages/modules/StatsD/statsd/src/config/ |
D | ConfigManager.cpp | 68 lock_guard<mutex> lock(thiz->mMutex); in configReceiverDied() 102 lock_guard<mutex> lock(thiz->mMutex); in activeConfigChangedReceiverDied() 135 lock_guard<mutex> lock(mMutex); in AddListener() 142 lock_guard <mutex> lock(mMutex); in UpdateConfig() 190 lock_guard<mutex> lock(mMutex); in SetConfigReceiver() 197 lock_guard<mutex> lock(mMutex); in RemoveConfigReceiver() 204 lock_guard<mutex> lock(mMutex); in SetActiveConfigsChangedReceiver() 212 lock_guard<mutex> lock(mMutex); in RemoveActiveConfigsChangedReceiver() 219 lock_guard <mutex> lock(mMutex); in RemoveConfig() 251 lock_guard <mutex> lock(mMutex); in RemoveConfigs() [all …]
|
/packages/services/Car/cpp/powerpolicy/server/src/ |
D | CarPowerPolicyServer.cpp | 229 Mutex::Autolock lock(mMutex); in getCurrentPowerPolicy() 252 Mutex::Autolock lock(mMutex); in registerPowerPolicyChangeCallback() 282 Mutex::Autolock lock(mMutex); in unregisterPowerPolicyChangeCallback() 310 Mutex::Autolock lock(mMutex); in notifyCarServiceReady() 357 Mutex::Autolock lock(mMutex); in dump() 414 Mutex::Autolock lock(mMutex); in init() 443 Mutex::Autolock lock(mMutex); in terminate() 454 Mutex::Autolock lock(mMutex); in handleBinderDeath() 466 Mutex::Autolock lock(mMutex); in handleHidlDeath() 486 if (Mutex::Autolock lock(mMutex); mIsCarServiceInOperation != carServiceInOperation) { in applyPowerPolicy() [all …]
|
D | CarPowerPolicyServer.h | 221 android::Mutex mMutex; variable 222 CarPowerPolicyMeta mCurrentPowerPolicyMeta GUARDED_BY(mMutex); 223 std::string mCurrentPolicyGroupId GUARDED_BY(mMutex); 224 std::string mPendingPowerPolicyId GUARDED_BY(mMutex); 225 bool mIsPowerPolicyLocked GUARDED_BY(mMutex); 226 std::vector<CallbackInfo> mPolicyChangeCallbacks GUARDED_BY(mMutex); 228 GUARDED_BY(mMutex); 229 std::optional<int64_t> mLastApplyPowerPolicyUptimeMs GUARDED_BY(mMutex); 230 std::optional<int64_t> mLastSetDefaultPowerPolicyGroupUptimeMs GUARDED_BY(mMutex); 231 bool mIsCarServiceInOperation GUARDED_BY(mMutex);
|
/packages/services/Car/cpp/watchdog/server/tests/ |
D | LooperStub.cpp | 45 Mutex::Autolock lock(mMutex); in pollAll() 67 Mutex::Autolock lock(mMutex); in pollAll() 78 Mutex::Autolock lock(mMutex); in sendMessageAtTime() 89 Mutex::Autolock lock(mMutex); in removeMessages() 95 Mutex::Autolock lock(mMutex); in removeMessages() 110 Mutex::Autolock lock(mMutex); in pollCache() 116 Mutex::Autolock lock(mMutex); in pollCache()
|
/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;
|