Home
last modified time | relevance | path

Searched refs:lock_name (Results 1 – 13 of 13) 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/android/
Dwakelock_native.cc90 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/
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
/packages/modules/Bluetooth/system/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
/packages/modules/Bluetooth/system/gd/os/internal/
Dwakelock_native.h37 StatusCode Acquire(const std::string& lock_name);
38 StatusCode Release(const std::string& lock_name);
/packages/modules/Bluetooth/system/gd/os/chromeos/
Dwakelock_native.cc35 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/
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
/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/test/headless/
Dheadless.cc237 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/
Dbluetooth.h605 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/
Dbluetooth.cc912 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/
Dcom_android_bluetooth_btservice_AdapterService.cpp908 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()