Use ScopedLocalRef instead of env->DeleteLocalRef

Bug: 264638354
Test: atest android.media.tv.tuner.cts on cf_x86_tv-userdebug
Change-Id: I14a8e88a61a3c99a1d25ff9e5b105fbe84408ba3
This commit is contained in:
Ray Chin
2023-05-11 15:10:32 +08:00
parent d53107bdd3
commit 24e26b0d0c
2 changed files with 362 additions and 407 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -163,17 +163,19 @@ private:
jmethodID mRestartEventInitID;
jfieldID mMediaEventFieldContextID;
bool mSharedFilter;
void getSectionEvent(jobjectArray& arr, const int size, const DemuxFilterEvent& event);
void getMediaEvent(jobjectArray& arr, const int size, const DemuxFilterEvent& event);
void getPesEvent(jobjectArray& arr, const int size, const DemuxFilterEvent& event);
void getTsRecordEvent(jobjectArray& arr, const int size, const DemuxFilterEvent& event);
void getMmtpRecordEvent(jobjectArray& arr, const int size, const DemuxFilterEvent& event);
void getDownloadEvent(jobjectArray& arr, const int size, const DemuxFilterEvent& event);
void getIpPayloadEvent(jobjectArray& arr, const int size, const DemuxFilterEvent& event);
void getTemiEvent(jobjectArray& arr, const int size, const DemuxFilterEvent& event);
void getScramblingStatusEvent(jobjectArray& arr, const int size, const DemuxFilterEvent& event);
void getIpCidChangeEvent(jobjectArray& arr, const int size, const DemuxFilterEvent& event);
void getRestartEvent(jobjectArray& arr, const int size, const DemuxFilterEvent& event);
void getSectionEvent(const jobjectArray& arr, const int size, const DemuxFilterEvent& event);
void getMediaEvent(const jobjectArray& arr, const int size, const DemuxFilterEvent& event);
void getPesEvent(const jobjectArray& arr, const int size, const DemuxFilterEvent& event);
void getTsRecordEvent(const jobjectArray& arr, const int size, const DemuxFilterEvent& event);
void getMmtpRecordEvent(const jobjectArray& arr, const int size, const DemuxFilterEvent& event);
void getDownloadEvent(const jobjectArray& arr, const int size, const DemuxFilterEvent& event);
void getIpPayloadEvent(const jobjectArray& arr, const int size, const DemuxFilterEvent& event);
void getTemiEvent(const jobjectArray& arr, const int size, const DemuxFilterEvent& event);
void getScramblingStatusEvent(const jobjectArray& arr, const int size,
const DemuxFilterEvent& event);
void getIpCidChangeEvent(const jobjectArray& arr, const int size,
const DemuxFilterEvent& event);
void getRestartEvent(const jobjectArray& arr, const int size, const DemuxFilterEvent& event);
};
struct JTuner;