Searched refs:lock_name (Results 1 – 11 of 11) sorted by relevance
44 void AcquireCallout(const std::string& lock_name) override { in AcquireCallout() argument45 auto iter = acquired_lock_counts.find(lock_name); in AcquireCallout()47 acquired_lock_counts[lock_name] = 0; in AcquireCallout()49 acquired_lock_counts[lock_name] += 1; in AcquireCallout()52 void ReleaseCallout(const std::string& lock_name) override { in ReleaseCallout() argument53 auto iter = acquired_lock_counts.find(lock_name); in ReleaseCallout()55 acquired_lock_counts[lock_name] = 0; in ReleaseCallout()57 acquired_lock_counts[lock_name] -= 1; in ReleaseCallout()60 std::optional<int> GetNetAcquiredCount(const std::string& lock_name) const { in GetNetAcquiredCount()61 auto iter = acquired_lock_counts.find(lock_name); in GetNetAcquiredCount()
28 static int acquire_wake_lock_cb(const char* lock_name) { in acquire_wake_lock_cb() argument33 static int release_wake_lock_cb(const char* lock_name) { in release_wake_lock_cb() argument
33 static int acquire_wake_lock_cb(const char* lock_name) { in acquire_wake_lock_cb() argument38 static int release_wake_lock_cb(const char* lock_name) { in release_wake_lock_cb() argument
34 WakelockNative::StatusCode WakelockNative::Acquire(const std::string& lock_name) { in Acquire() argument39 WakelockNative::StatusCode WakelockNative::Release(const std::string& lock_name) { in Release() argument
37 StatusCode Acquire(const std::string& lock_name);38 StatusCode Release(const std::string& lock_name);
47 virtual void AcquireCallout(const std::string& lock_name) = 0;48 virtual void ReleaseCallout(const std::string& lock_name) = 0;
67 WakelockNative::StatusCode WakelockNative::Acquire(const std::string& lock_name) { in Acquire() argument78 …pl_->current_wakelock = pimpl_->suspend_service->acquireWakeLock(WakeLockType::PARTIAL, lock_name); in Acquire()87 WakelockNative::StatusCode WakelockNative::Release(const std::string& lock_name) { in Release() argument
171 int acquire_wake_lock_co(const char* lock_name) { in acquire_wake_lock_co() argument176 int release_wake_lock_co(const char* lock_name) { in release_wake_lock_co() argument
529 static int acquire_wake_lock_cb(const char* lock_name) { in acquire_wake_lock_cb() argument533 lock_name)); in acquire_wake_lock_cb()536 static int release_wake_lock_cb(const char* lock_name) { in release_wake_lock_cb() argument540 lock_name)); in release_wake_lock_cb()
512 typedef int (*acquire_wake_lock_callout)(const char* lock_name);513 typedef int (*release_wake_lock_callout)(const char* lock_name);