Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android]remove dead code for im event callback in android #29381

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 0 additions & 40 deletions src/controller/java/AndroidCallbacks.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,46 +92,6 @@ struct ReportCallback : public app::ClusterStateCache::Callback
jclass mNodeStateCls = nullptr;
};

struct ReportEventCallback : public app::ReadClient::Callback
{
/** Subscription established callback can be nullptr. */
ReportEventCallback(jobject wrapperCallback, jobject subscriptionEstablishedCallback, jobject reportCallback,
jobject resubscriptionAttemptCallback);
~ReportEventCallback();

void OnReportBegin() override;

void OnReportEnd() override;

void OnEventData(const app::EventHeader & aEventHeader, TLV::TLVReader * apData, const app::StatusIB * apStatus) override;

void OnError(CHIP_ERROR aError) override;

void OnDone(app::ReadClient *) override;

void OnSubscriptionEstablished(SubscriptionId aSubscriptionId) override;

CHIP_ERROR OnResubscriptionNeeded(app::ReadClient * apReadClient, CHIP_ERROR aTerminationCause) override;

/** Report errors back to Java layer. attributePath may be nullptr for general errors. */
void ReportError(jobject eventPath, CHIP_ERROR err);
void ReportError(jobject eventPath, Protocols::InteractionModel::Status status);
void ReportError(jobject eventPath, const char * message, ChipError::StorageType errorCode);

CHIP_ERROR CreateChipEventPath(const app::ConcreteEventPath & aPath, jobject & outObj);

app::ReadClient * mReadClient = nullptr;

app::BufferedReadCallback mBufferedReadAdapter;
jobject mWrapperCallbackRef = nullptr;
jobject mSubscriptionEstablishedCallbackRef = nullptr;
jobject mResubscriptionAttemptCallbackRef = nullptr;
jobject mReportCallbackRef = nullptr;
// NodeState Java object that will be returned to the application.
jobject mNodeStateObj = nullptr;
jclass mNodeStateCls = nullptr;
};

struct WriteAttributesCallback : public app::WriteClient::Callback
{
WriteAttributesCallback(jobject wrapperCallback, jobject javaCallback);
Expand Down
Loading