/packages/modules/Bluetooth/system/gd/os/linux_generic/ |
D | wakelock_manager_unittest.cc | 44 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/ |
D | wakelock_native.cc | 37 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/ |
D | wakelock_native.cc | 37 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/ |
D | wakelock_native.h | 39 StatusCode Acquire(const std::string& lock_name); 40 StatusCode Release(const std::string& lock_name);
|
/packages/modules/Bluetooth/system/gd/os/ |
D | wakelock_manager.h | 47 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/ |
D | wakelock_test.cc | 29 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
|
D | alarm_test.cc | 50 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/ |
D | wakelock_native.cc | 91 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/ |
D | headless.cc | 259 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/ |
D | bluetooth.h | 649 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/ |
D | bluetooth.cc | 989 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/ |
D | com_android_bluetooth_btservice_AdapterService.cpp | 921 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()
|