Loading services/powermanager/tests/PowerHalWrapperAidlTest.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -35,6 +35,7 @@ using aidl::android::hardware::power::IPowerHintSession; using aidl::android::hardware::power::Mode; using aidl::android::hardware::power::SessionConfig; using aidl::android::hardware::power::SessionTag; using aidl::android::hardware::power::SupportInfo; using android::binder::Status; using namespace android; Loading Loading @@ -65,6 +66,7 @@ public: (int32_t tgid, int32_t uid, ChannelConfig* _aidl_return), (override)); MOCK_METHOD(ndk::ScopedAStatus, closeSessionChannel, (int32_t tgid, int32_t uid), (override)); MOCK_METHOD(ndk::ScopedAStatus, getHintSessionPreferredRate, (int64_t * rate), (override)); MOCK_METHOD(ndk::ScopedAStatus, getSupportInfo, (SupportInfo * _aidl_return), (override)); MOCK_METHOD(ndk::ScopedAStatus, getInterfaceVersion, (int32_t * version), (override)); MOCK_METHOD(ndk::ScopedAStatus, getInterfaceHash, (std::string * hash), (override)); MOCK_METHOD(ndk::SpAIBinder, asBinder, (), (override)); Loading services/surfaceflinger/tests/unittests/mock/DisplayHardware/MockIPower.h +2 −0 Original line number Diff line number Diff line Loading @@ -32,6 +32,7 @@ using aidl::android::hardware::power::IPower; using aidl::android::hardware::power::IPowerHintSession; using aidl::android::hardware::power::SessionConfig; using aidl::android::hardware::power::SessionTag; using aidl::android::hardware::power::SupportInfo; using aidl::android::hardware::power::Mode; using android::binder::Status; Loading Loading @@ -59,6 +60,7 @@ public: MOCK_METHOD(ndk::ScopedAStatus, getSessionChannel, (int32_t tgid, int32_t uid, ChannelConfig* _aidl_return), (override)); MOCK_METHOD(ndk::ScopedAStatus, closeSessionChannel, (int32_t tgid, int32_t uid), (override)); MOCK_METHOD(ndk::ScopedAStatus, getSupportInfo, (SupportInfo * _aidl_return), (override)); MOCK_METHOD(ndk::ScopedAStatus, getInterfaceVersion, (int32_t * version), (override)); MOCK_METHOD(ndk::ScopedAStatus, getInterfaceHash, (std::string * hash), (override)); MOCK_METHOD(ndk::SpAIBinder, asBinder, (), (override)); Loading Loading
services/powermanager/tests/PowerHalWrapperAidlTest.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -35,6 +35,7 @@ using aidl::android::hardware::power::IPowerHintSession; using aidl::android::hardware::power::Mode; using aidl::android::hardware::power::SessionConfig; using aidl::android::hardware::power::SessionTag; using aidl::android::hardware::power::SupportInfo; using android::binder::Status; using namespace android; Loading Loading @@ -65,6 +66,7 @@ public: (int32_t tgid, int32_t uid, ChannelConfig* _aidl_return), (override)); MOCK_METHOD(ndk::ScopedAStatus, closeSessionChannel, (int32_t tgid, int32_t uid), (override)); MOCK_METHOD(ndk::ScopedAStatus, getHintSessionPreferredRate, (int64_t * rate), (override)); MOCK_METHOD(ndk::ScopedAStatus, getSupportInfo, (SupportInfo * _aidl_return), (override)); MOCK_METHOD(ndk::ScopedAStatus, getInterfaceVersion, (int32_t * version), (override)); MOCK_METHOD(ndk::ScopedAStatus, getInterfaceHash, (std::string * hash), (override)); MOCK_METHOD(ndk::SpAIBinder, asBinder, (), (override)); Loading
services/surfaceflinger/tests/unittests/mock/DisplayHardware/MockIPower.h +2 −0 Original line number Diff line number Diff line Loading @@ -32,6 +32,7 @@ using aidl::android::hardware::power::IPower; using aidl::android::hardware::power::IPowerHintSession; using aidl::android::hardware::power::SessionConfig; using aidl::android::hardware::power::SessionTag; using aidl::android::hardware::power::SupportInfo; using aidl::android::hardware::power::Mode; using android::binder::Status; Loading Loading @@ -59,6 +60,7 @@ public: MOCK_METHOD(ndk::ScopedAStatus, getSessionChannel, (int32_t tgid, int32_t uid, ChannelConfig* _aidl_return), (override)); MOCK_METHOD(ndk::ScopedAStatus, closeSessionChannel, (int32_t tgid, int32_t uid), (override)); MOCK_METHOD(ndk::ScopedAStatus, getSupportInfo, (SupportInfo * _aidl_return), (override)); MOCK_METHOD(ndk::ScopedAStatus, getInterfaceVersion, (int32_t * version), (override)); MOCK_METHOD(ndk::ScopedAStatus, getInterfaceHash, (std::string * hash), (override)); MOCK_METHOD(ndk::SpAIBinder, asBinder, (), (override)); Loading