/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/android/ |
D | wakelock_native.cc | 90 WakelockNative::StatusCode WakelockNative::Acquire(const std::string& lock_name) { in Acquire() argument 102 WakeLockType::PARTIAL, lock_name, &pimpl_->current_wakelock); in Acquire() 111 WakelockNative::StatusCode WakelockNative::Release(const std::string& lock_name) { in Release() argument
|
/packages/modules/Bluetooth/system/osi/test/ |
D | AlarmTestHarness.cc | 28 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
|
D | wakelock_test.cc | 33 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
|
/packages/modules/Bluetooth/system/gd/os/linux/ |
D | wakelock_native.cc | 34 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
|
/packages/modules/Bluetooth/system/gd/os/internal/ |
D | wakelock_native.h | 37 StatusCode Acquire(const std::string& lock_name); 38 StatusCode Release(const std::string& lock_name);
|
/packages/modules/Bluetooth/system/gd/os/chromeos/ |
D | wakelock_native.cc | 35 WakelockNative::StatusCode WakelockNative::Acquire(const std::string& lock_name) { in Acquire() argument 40 WakelockNative::StatusCode WakelockNative::Release(const std::string& lock_name) { in Release() argument
|
/packages/modules/Bluetooth/system/gd/os/host/ |
D | wakelock_native.cc | 34 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
|
/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/test/headless/ |
D | headless.cc | 237 int acquire_wake_lock_co([[maybe_unused]] const char* lock_name) { in acquire_wake_lock_co() argument 242 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 | 605 typedef int (*acquire_wake_lock_callout)(const char* lock_name); 606 typedef int (*release_wake_lock_callout)(const char* lock_name);
|
/packages/modules/Bluetooth/system/btif/src/ |
D | bluetooth.cc | 912 static int acquire_wake_lock_cb(const char* lock_name) { in acquire_wake_lock_cb() argument 916 lock_name)); in acquire_wake_lock_cb() 919 static int release_wake_lock_cb(const char* lock_name) { in release_wake_lock_cb() argument 923 lock_name)); in release_wake_lock_cb()
|
/packages/modules/Bluetooth/android/app/jni/ |
D | com_android_bluetooth_btservice_AdapterService.cpp | 908 static int acquire_wake_lock_callout(const char* lock_name) { in acquire_wake_lock_callout() argument 925 ScopedLocalRef<jstring> lock_name_jni(env, env->NewStringUTF(lock_name)); in acquire_wake_lock_callout() 931 ALOGE("%s unable to allocate string: %s", __func__, lock_name); in acquire_wake_lock_callout() 939 static int release_wake_lock_callout(const char* lock_name) { in release_wake_lock_callout() argument 956 ScopedLocalRef<jstring> lock_name_jni(env, env->NewStringUTF(lock_name)); in release_wake_lock_callout() 962 ALOGE("%s unable to allocate string: %s", __func__, lock_name); in release_wake_lock_callout()
|