Home
last modified time | relevance | path

Searched refs:lock_name (Results 1 – 11 of 11) sorted by relevance

/system/bt/gd/os/linux_generic/
Dwakelock_manager_unittest.cc44 void AcquireCallout(const std::string& lock_name) override { in AcquireCallout() argument
45 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() argument
53 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()
/system/bt/osi/test/
DAlarmTestHarness.cc28 static int acquire_wake_lock_cb(const char* lock_name) { in acquire_wake_lock_cb() argument
33 static int release_wake_lock_cb(const char* lock_name) { in release_wake_lock_cb() argument
Dwakelock_test.cc33 static int acquire_wake_lock_cb(const char* lock_name) { in acquire_wake_lock_cb() argument
38 static int release_wake_lock_cb(const char* lock_name) { in release_wake_lock_cb() argument
/system/bt/gd/os/linux/
Dwakelock_native.cc34 WakelockNative::StatusCode WakelockNative::Acquire(const std::string& lock_name) { in Acquire() argument
39 WakelockNative::StatusCode WakelockNative::Release(const std::string& lock_name) { in Release() argument
/system/bt/gd/os/host/
Dwakelock_native.cc34 WakelockNative::StatusCode WakelockNative::Acquire(const std::string& lock_name) { in Acquire() argument
39 WakelockNative::StatusCode WakelockNative::Release(const std::string& lock_name) { in Release() argument
/system/bt/gd/os/internal/
Dwakelock_native.h37 StatusCode Acquire(const std::string& lock_name);
38 StatusCode Release(const std::string& lock_name);
/system/bt/gd/os/
Dwakelock_manager.h47 virtual void AcquireCallout(const std::string& lock_name) = 0;
48 virtual void ReleaseCallout(const std::string& lock_name) = 0;
/system/bt/gd/os/android/
Dwakelock_native.cc67 WakelockNative::StatusCode WakelockNative::Acquire(const std::string& lock_name) { in Acquire() argument
78 …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
/system/bt/test/headless/
Dheadless.cc171 int acquire_wake_lock_co(const char* lock_name) { in acquire_wake_lock_co() argument
176 int release_wake_lock_co(const char* lock_name) { in release_wake_lock_co() argument
/system/bt/btif/src/
Dbluetooth.cc529 static int acquire_wake_lock_cb(const char* lock_name) { in acquire_wake_lock_cb() argument
533 lock_name)); in acquire_wake_lock_cb()
536 static int release_wake_lock_cb(const char* lock_name) { in release_wake_lock_cb() argument
540 lock_name)); in release_wake_lock_cb()
/system/bt/include/hardware/
Dbluetooth.h512 typedef int (*acquire_wake_lock_callout)(const char* lock_name);
513 typedef int (*release_wake_lock_callout)(const char* lock_name);