Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/system/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()
/packages/modules/Bluetooth/system/gd/os/chromeos/
Dwakelock_native.cc37 WakelockNative::StatusCode WakelockNative::Acquire(const std::string& lock_name) { in Acquire() argument
42 WakelockNative::StatusCode WakelockNative::Release(const std::string& lock_name) { in Release() argument
/packages/modules/Bluetooth/system/gd/os/linux/
Dwakelock_native.cc37 WakelockNative::StatusCode WakelockNative::Acquire(const std::string& lock_name) { in Acquire() argument
42 WakelockNative::StatusCode WakelockNative::Release(const std::string& lock_name) { in Release() argument
/packages/modules/Bluetooth/system/gd/os/internal/
Dwakelock_native.h39 StatusCode Acquire(const std::string& lock_name);
40 StatusCode Release(const std::string& lock_name);
/packages/modules/Bluetooth/system/gd/os/
Dwakelock_manager.h47 virtual void AcquireCallout(const std::string& lock_name) = 0;
48 virtual void ReleaseCallout(const std::string& lock_name) = 0;
/packages/modules/Bluetooth/system/osi/test/
Dwakelock_test.cc29 static int acquire_wake_lock_cb(const char* lock_name) { in acquire_wake_lock_cb() argument
34 static int release_wake_lock_cb(const char* lock_name) { in release_wake_lock_cb() argument
Dalarm_test.cc50 static int acquire_wake_lock_cb(const char* lock_name) { in acquire_wake_lock_cb() argument
55 static int release_wake_lock_cb(const char* lock_name) { in release_wake_lock_cb() argument
/packages/modules/Bluetooth/system/gd/os/android/
Dwakelock_native.cc91 WakelockNative::StatusCode WakelockNative::Acquire(const std::string& lock_name) { in Acquire() argument
103 WakeLockType::PARTIAL, lock_name, &pimpl_->current_wakelock); in Acquire()
/packages/modules/Bluetooth/system/test/headless/
Dheadless.cc259 int acquire_wake_lock_co([[maybe_unused]] const char* lock_name) { in acquire_wake_lock_co() argument
264 int release_wake_lock_co([[maybe_unused]] const char* lock_name) { in release_wake_lock_co() argument
/packages/modules/Bluetooth/system/include/hardware/
Dbluetooth.h649 typedef int (*acquire_wake_lock_callout)(const char* lock_name);
650 typedef int (*release_wake_lock_callout)(const char* lock_name);
/packages/modules/Bluetooth/system/btif/src/
Dbluetooth.cc989 static int acquire_wake_lock_cb(const char* lock_name) { in acquire_wake_lock_cb() argument
992 lock_name)); in acquire_wake_lock_cb()
995 static int release_wake_lock_cb(const char* lock_name) { in release_wake_lock_cb() argument
998 lock_name)); in release_wake_lock_cb()
/packages/modules/Bluetooth/android/app/jni/
Dcom_android_bluetooth_btservice_AdapterService.cpp921 static int acquire_wake_lock_callout(const char* lock_name) { in acquire_wake_lock_callout() argument
938 ScopedLocalRef<jstring> lock_name_jni(env, env->NewStringUTF(lock_name)); in acquire_wake_lock_callout()
944 log::error("unable to allocate string: {}", lock_name); in acquire_wake_lock_callout()
952 static int release_wake_lock_callout(const char* lock_name) { in release_wake_lock_callout() argument
969 ScopedLocalRef<jstring> lock_name_jni(env, env->NewStringUTF(lock_name)); in release_wake_lock_callout()
975 log::error("unable to allocate string: {}", lock_name); in release_wake_lock_callout()