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/packages/modules/StatsD/aidl/statsd-aidl-ndk-source/gen/staging/android/os/IPendingIntentRef.cpp.d -h out/soong/.intermediates/packages/modules/StatsD/aidl/statsd-aidl-ndk-source/gen/include/staging -o out/soong/.intermediates/packages/modules/StatsD/aidl/statsd-aidl-ndk-source/gen/staging -Npackages/modules/StatsD/aidl packages/modules/StatsD/aidl/android/os/IPendingIntentRef.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 #include <aidl/android/os/StatsDimensionsValueParcel.h>
18 #ifdef BINDER_STABILITY_SUPPORT
19 #include <android/binder_stability.h>
20 #endif  // BINDER_STABILITY_SUPPORT
21 
22 namespace aidl::android::os {
23 class StatsDimensionsValueParcel;
24 }  // namespace aidl::android::os
25 namespace aidl {
26 namespace android {
27 namespace os {
28 class IPendingIntentRefDelegator;
29 
30 class IPendingIntentRef : public ::ndk::ICInterface {
31 public:
32   typedef IPendingIntentRefDelegator DefaultDelegator;
33   static const char* descriptor;
34   IPendingIntentRef();
35   virtual ~IPendingIntentRef();
36 
37   static constexpr uint32_t TRANSACTION_sendDataBroadcast = FIRST_CALL_TRANSACTION + 0;
38   static constexpr uint32_t TRANSACTION_sendActiveConfigsChangedBroadcast = FIRST_CALL_TRANSACTION + 1;
39   static constexpr uint32_t TRANSACTION_sendSubscriberBroadcast = FIRST_CALL_TRANSACTION + 2;
40   static constexpr uint32_t TRANSACTION_sendRestrictedMetricsChangedBroadcast = FIRST_CALL_TRANSACTION + 3;
41 
42   static std::shared_ptr<IPendingIntentRef> fromBinder(const ::ndk::SpAIBinder& binder);
43   static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<IPendingIntentRef>& instance);
44   static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<IPendingIntentRef>* instance);
45   static bool setDefaultImpl(const std::shared_ptr<IPendingIntentRef>& impl);
46   static const std::shared_ptr<IPendingIntentRef>& getDefaultImpl();
47   virtual ::ndk::ScopedAStatus sendDataBroadcast(int64_t in_lastReportTimeNs) = 0;
48   virtual ::ndk::ScopedAStatus sendActiveConfigsChangedBroadcast(const std::vector<int64_t>& in_configIds) = 0;
49   virtual ::ndk::ScopedAStatus sendSubscriberBroadcast(int64_t in_configUid, int64_t in_configId, int64_t in_subscriptionId, int64_t in_subscriptionRuleId, const std::vector<std::string>& in_cookies, const ::aidl::android::os::StatsDimensionsValueParcel& in_dimensionsValueParcel) = 0;
50   virtual ::ndk::ScopedAStatus sendRestrictedMetricsChangedBroadcast(const std::vector<int64_t>& in_metricIds) = 0;
51 private:
52   static std::shared_ptr<IPendingIntentRef> default_impl;
53 };
54 class IPendingIntentRefDefault : public IPendingIntentRef {
55 public:
56   ::ndk::ScopedAStatus sendDataBroadcast(int64_t in_lastReportTimeNs) override;
57   ::ndk::ScopedAStatus sendActiveConfigsChangedBroadcast(const std::vector<int64_t>& in_configIds) override;
58   ::ndk::ScopedAStatus sendSubscriberBroadcast(int64_t in_configUid, int64_t in_configId, int64_t in_subscriptionId, int64_t in_subscriptionRuleId, const std::vector<std::string>& in_cookies, const ::aidl::android::os::StatsDimensionsValueParcel& in_dimensionsValueParcel) override;
59   ::ndk::ScopedAStatus sendRestrictedMetricsChangedBroadcast(const std::vector<int64_t>& in_metricIds) override;
60   ::ndk::SpAIBinder asBinder() override;
61   bool isRemote() override;
62 };
63 }  // namespace os
64 }  // namespace android
65 }  // namespace aidl
66