1 /*
2  * This file is auto-generated.  DO NOT MODIFY.
3  * Using: out/host/linux-x86/bin/aidl --lang=ndk -Weverything -Wno-missing-permission-annotation -t --min_sdk_version 30 --ninja -d out/soong/.intermediates/external/ot-br-posix/src/android/aidl/ot-daemon-aidl-ndk-source/gen/staging/com/android/server/thread/openthread/INsdDiscoverServiceCallback.cpp.d -h out/soong/.intermediates/external/ot-br-posix/src/android/aidl/ot-daemon-aidl-ndk-source/gen/include/staging -o out/soong/.intermediates/external/ot-br-posix/src/android/aidl/ot-daemon-aidl-ndk-source/gen/staging -Nexternal/ot-br-posix/src/android/aidl -Npackages/modules/Connectivity/thread/framework/java external/ot-br-posix/src/android/aidl/com/android/server/thread/openthread/INsdDiscoverServiceCallback.aidl
4  *
5  * DO NOT CHECK THIS FILE INTO A CODE TREE (e.g. git, etc..).
6  * ALWAYS GENERATE THIS FILE FROM UPDATED AIDL COMPILER
7  * AS A BUILD INTERMEDIATE ONLY. THIS IS NOT SOURCE CODE.
8  */
9 #pragma once
10 
11 #include <cstdint>
12 #include <memory>
13 #include <optional>
14 #include <string>
15 #include <vector>
16 #include <android/binder_interface_utils.h>
17 #ifdef BINDER_STABILITY_SUPPORT
18 #include <android/binder_stability.h>
19 #endif  // BINDER_STABILITY_SUPPORT
20 
21 namespace aidl {
22 namespace com {
23 namespace android {
24 namespace server {
25 namespace thread {
26 namespace openthread {
27 class INsdDiscoverServiceCallbackDelegator;
28 
29 class INsdDiscoverServiceCallback : public ::ndk::ICInterface {
30 public:
31   typedef INsdDiscoverServiceCallbackDelegator DefaultDelegator;
32   static const char* descriptor;
33   INsdDiscoverServiceCallback();
34   virtual ~INsdDiscoverServiceCallback();
35 
36   static constexpr uint32_t TRANSACTION_onServiceDiscovered = FIRST_CALL_TRANSACTION + 0;
37 
38   static std::shared_ptr<INsdDiscoverServiceCallback> fromBinder(const ::ndk::SpAIBinder& binder);
39   static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<INsdDiscoverServiceCallback>& instance);
40   static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<INsdDiscoverServiceCallback>* instance);
41   static bool setDefaultImpl(const std::shared_ptr<INsdDiscoverServiceCallback>& impl);
42   static const std::shared_ptr<INsdDiscoverServiceCallback>& getDefaultImpl();
43   virtual ::ndk::ScopedAStatus onServiceDiscovered(const std::string& in_name, const std::string& in_type, bool in_isFound) = 0;
44 private:
45   static std::shared_ptr<INsdDiscoverServiceCallback> default_impl;
46 };
47 class INsdDiscoverServiceCallbackDefault : public INsdDiscoverServiceCallback {
48 public:
49   ::ndk::ScopedAStatus onServiceDiscovered(const std::string& in_name, const std::string& in_type, bool in_isFound) override;
50   ::ndk::SpAIBinder asBinder() override;
51   bool isRemote() override;
52 };
53 }  // namespace openthread
54 }  // namespace thread
55 }  // namespace server
56 }  // namespace android
57 }  // namespace com
58 }  // namespace aidl
59