Lines Matching refs:aTopic
38 WakeLockInformation WakeLockInfoFromLockCount(const nsAString& aTopic, in WakeLockInfoFromLockCount() argument
40 nsString topic(aTopic); in WakeLockInfoFromLockCount()
73 ClearHashtableOnShutdown::Observe(nsISupports* aSubject, const char* aTopic, in NS_IMPL_ISUPPORTS()
75 MOZ_ASSERT(!strcmp(aTopic, "xpcom-shutdown")); in NS_IMPL_ISUPPORTS()
94 CleanupOnContentShutdown::Observe(nsISupports* aSubject, const char* aTopic, in NS_IMPL_ISUPPORTS()
96 MOZ_ASSERT(!strcmp(aTopic, "ipc:content-shutdown")); in NS_IMPL_ISUPPORTS()
171 void ModifyWakeLock(const nsAString& aTopic, hal::WakeLockControl aLockAdjust, in ModifyWakeLock() argument
183 sLockTable->WithEntryHandle(aTopic, [&](auto&& entry) { in ModifyWakeLock()
216 sLockTable->Remove(aTopic); in ModifyWakeLock()
224 hal::GetWakeLockInfo(aTopic, &info); in ModifyWakeLock()
229 void GetWakeLockInfo(const nsAString& aTopic, in GetWakeLockInfo() argument
238 ProcessLockTable* table = sLockTable->Get(aTopic); in GetWakeLockInfo()
240 *aWakeLockInfo = WakeLockInfoFromLockCount(aTopic, LockCount()); in GetWakeLockInfo()
245 *aWakeLockInfo = WakeLockInfoFromLockCount(aTopic, totalCount); in GetWakeLockInfo()