Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6a7af1cb authored by Myles Watson's avatar Myles Watson
Browse files

wakelock test: Use AServiceManager_waitForService

AServiceManager_getService is deprecated.

Bug: 264611736
Test: atest bluetooth_test_gd_unit
Change-Id: Ie6fc9545a8c332ac0696988129b2e2faf7f293cc
parent 1112627a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -433,7 +433,7 @@ cc_test {
    sanitize: {
        address: true,
    },
    min_sdk_version: "30",
    min_sdk_version: "Tiramisu",
}

cc_test {
+1 −1
Original line number Diff line number Diff line
@@ -126,7 +126,7 @@ class WakelockNativeTest : public Test {

    WakelockNative::Get().Initialize();

    auto binder_raw = AServiceManager_getService("suspend_control");
    auto binder_raw = AServiceManager_waitForService("suspend_control");
    ASSERT_NE(binder_raw, nullptr);
    binder.set(binder_raw);
    control_service_ = ISuspendControlService::fromBinder(binder);