diff options
| author | 2019-06-06 23:38:04 +0100 | |
|---|---|---|
| committer | 2019-06-07 13:39:53 +0100 | |
| commit | 1bbf28fa59e3cd43b3d7d7da943e3aa65db989d4 (patch) | |
| tree | da294ec7b25feaf8b7a3f2b80197529c3f4b9983 | |
| parent | 714580731675932b0d91aa267a12af8c3127cd47 (diff) | |
incident report args: add setter stubs & constant aliases
Bug: 130543265
Merged-In: Ieaf5b3b4d67168e2a99ff54e6392c77d8372ed4e
Change-Id: I855002050bf8a9f43b997060b1990f26eec597c7
| -rw-r--r-- | libs/incident/include/android/os/IncidentReportArgs.h | 9 | ||||
| -rw-r--r-- | libs/incident/src/IncidentReportArgs.cpp | 18 | 
2 files changed, 27 insertions, 0 deletions
| diff --git a/libs/incident/include/android/os/IncidentReportArgs.h b/libs/incident/include/android/os/IncidentReportArgs.h index ee1e33c43b89..52b555e17ad5 100644 --- a/libs/incident/include/android/os/IncidentReportArgs.h +++ b/libs/incident/include/android/os/IncidentReportArgs.h @@ -36,6 +36,12 @@ const uint8_t DEST_LOCAL = 0;  const uint8_t DEST_EXPLICIT = 100;  const uint8_t DEST_AUTOMATIC = 200; +// Aliases for the above. +const uint8_t PRIVACY_POLICY_LOCAL = 0; +const uint8_t PRIVACY_POLICY_EXPLICIT = 100; +const uint8_t PRIVACY_POLICY_AUTOMATIC = 200; +const uint8_t PRIVACY_POLICY_UNSET = 255; +  class IncidentReportArgs : public Parcelable {  public: @@ -48,7 +54,10 @@ public:      void setAll(bool all);      void setDest(int dest); +    void setPrivacyPolicy(int);      void addSection(int section); +    void setReceiverPkg(const string&); +    void setReceiverCls(const string&);      void addHeader(const IncidentHeaderProto& headerProto);      inline bool all() const { return mAll; } diff --git a/libs/incident/src/IncidentReportArgs.cpp b/libs/incident/src/IncidentReportArgs.cpp index fbc21e558806..fd0d5cc52db3 100644 --- a/libs/incident/src/IncidentReportArgs.cpp +++ b/libs/incident/src/IncidentReportArgs.cpp @@ -194,5 +194,23 @@ IncidentReportArgs::merge(const IncidentReportArgs& that)      }  } +// stub +void +IncidentReportArgs::setPrivacyPolicy(int) +{ +} + +// stub +void +IncidentReportArgs::setReceiverPkg(const string&) +{ +} + +// stub +void +IncidentReportArgs::setReceiverCls(const string&) +{ +} +  }  } |