blob: 8b4c44b647f96450b45cebdd141e5ec89e2f9179 [file] [log] [blame]
#pragma once
#include "aidl/android/hardware/security/secureclock/ISecureClock.h"
#include <android/binder_ibinder.h>
namespace aidl {
namespace android {
namespace hardware {
namespace security {
namespace secureclock {
class BpSecureClock : public ::ndk::BpCInterface<ISecureClock> {
public:
explicit BpSecureClock(const ::ndk::SpAIBinder& binder);
virtual ~BpSecureClock();
::ndk::ScopedAStatus generateTimeStamp(int64_t in_challenge, ::aidl::android::hardware::security::secureclock::TimeStampToken* _aidl_return) override;
::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) override;
::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) override;
int32_t _aidl_cached_version = -1;
std::string _aidl_cached_hash = "-1";
std::mutex _aidl_cached_hash_mutex;
};
} // namespace secureclock
} // namespace security
} // namespace hardware
} // namespace android
} // namespace aidl