1 //
2 // Copyright (C) 2020 The Android Open Source Project
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 //      http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16 
17 // clang-format off
18 #include "native_bridge_support/vdso/interceptable_functions.h"
19 
20 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AImageReader_acquireLatestImage);
21 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AImageReader_acquireLatestImageAsync);
22 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AImageReader_acquireNextImage);
23 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AImageReader_acquireNextImageAsync);
24 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AImageReader_delete);
25 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AImageReader_getFormat);
26 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AImageReader_getHeight);
27 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AImageReader_getMaxImages);
28 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AImageReader_getWidth);
29 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AImageReader_getWindow);
30 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AImageReader_getWindowNativeHandle);
31 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AImageReader_new);
32 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AImageReader_newWithUsage);
33 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AImageReader_setBufferRemovedListener);
34 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AImageReader_setImageListener);
35 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AImage_delete);
36 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AImage_deleteAsync);
37 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AImage_getCropRect);
38 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AImage_getFormat);
39 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AImage_getHardwareBuffer);
40 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AImage_getHeight);
41 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AImage_getNumberOfPlanes);
42 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AImage_getPlaneData);
43 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AImage_getPlanePixelStride);
44 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AImage_getPlaneRowStride);
45 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AImage_getTimestamp);
46 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AImage_getWidth);
47 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodecActionCode_isRecoverable);
48 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodecActionCode_isTransient);
49 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodecCryptoInfo_delete);
50 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodecCryptoInfo_getClearBytes);
51 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodecCryptoInfo_getEncryptedBytes);
52 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodecCryptoInfo_getIV);
53 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodecCryptoInfo_getKey);
54 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodecCryptoInfo_getMode);
55 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodecCryptoInfo_getNumSubSamples);
56 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodecCryptoInfo_new);
57 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodecCryptoInfo_setPattern);
58 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodec_configure);
59 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodec_createCodecByName);
60 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodec_createDecoderByType);
61 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodec_createEncoderByType);
62 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodec_createInputSurface);
63 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodec_createPersistentInputSurface);
64 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodec_delete);
65 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodec_dequeueInputBuffer);
66 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodec_dequeueOutputBuffer);
67 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodec_flush);
68 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodec_getBufferFormat);
69 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodec_getInputBuffer);
70 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodec_getInputFormat);
71 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodec_getName);
72 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodec_getOutputBuffer);
73 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodec_getOutputFormat);
74 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodec_queueInputBuffer);
75 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodec_queueSecureInputBuffer);
76 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodec_releaseCrypto);
77 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodec_releaseName);
78 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodec_releaseOutputBuffer);
79 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodec_releaseOutputBufferAtTime);
80 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodec_setAsyncNotifyCallback);
81 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodec_setInputSurface);
82 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodec_setOutputSurface);
83 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodec_setParameters);
84 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodec_signalEndOfInputStream);
85 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodec_start);
86 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCodec_stop);
87 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCrypto_delete);
88 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCrypto_isCryptoSchemeSupported);
89 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCrypto_new);
90 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaCrypto_requiresSecureDecoderComponent);
91 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaDataSource_close);
92 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaDataSource_delete);
93 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaDataSource_new);
94 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaDataSource_newUri);
95 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaDataSource_setClose);
96 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaDataSource_setGetAvailableSize);
97 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaDataSource_setGetSize);
98 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaDataSource_setReadAt);
99 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaDataSource_setUserdata);
100 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaDrm_closeSession);
101 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaDrm_createByUUID);
102 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaDrm_decrypt);
103 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaDrm_encrypt);
104 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaDrm_getKeyRequest);
105 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaDrm_getPropertyByteArray);
106 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaDrm_getPropertyString);
107 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaDrm_getProvisionRequest);
108 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaDrm_getSecureStops);
109 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaDrm_isCryptoSchemeSupported);
110 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaDrm_openSession);
111 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaDrm_provideKeyResponse);
112 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaDrm_provideProvisionResponse);
113 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaDrm_queryKeyStatus);
114 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaDrm_release);
115 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaDrm_releaseSecureStops);
116 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaDrm_removeKeys);
117 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaDrm_restoreKeys);
118 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaDrm_setOnEventListener);
119 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaDrm_setOnExpirationUpdateListener);
120 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaDrm_setOnKeysChangeListener);
121 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaDrm_setPropertyByteArray);
122 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaDrm_setPropertyString);
123 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaDrm_sign);
124 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaDrm_verify);
125 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaExtractor_advance);
126 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaExtractor_delete);
127 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaExtractor_getCachedDuration);
128 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaExtractor_getFileFormat);
129 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaExtractor_getPsshInfo);
130 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaExtractor_getSampleCryptoInfo);
131 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaExtractor_getSampleFlags);
132 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaExtractor_getSampleFormat);
133 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaExtractor_getSampleSize);
134 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaExtractor_getSampleTime);
135 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaExtractor_getSampleTrackIndex);
136 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaExtractor_getTrackCount);
137 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaExtractor_getTrackFormat);
138 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaExtractor_new);
139 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaExtractor_readSampleData);
140 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaExtractor_seekTo);
141 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaExtractor_selectTrack);
142 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaExtractor_setDataSource);
143 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaExtractor_setDataSourceCustom);
144 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaExtractor_setDataSourceFd);
145 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaExtractor_unselectTrack);
146 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaFormat_clear);
147 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaFormat_copy);
148 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaFormat_delete);
149 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaFormat_getBuffer);
150 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaFormat_getDouble);
151 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaFormat_getFloat);
152 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaFormat_getInt32);
153 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaFormat_getInt64);
154 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaFormat_getRect);
155 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaFormat_getSize);
156 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaFormat_getString);
157 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaFormat_new);
158 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaFormat_setBuffer);
159 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaFormat_setDouble);
160 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaFormat_setFloat);
161 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaFormat_setInt32);
162 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaFormat_setInt64);
163 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaFormat_setRect);
164 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaFormat_setSize);
165 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaFormat_setString);
166 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaFormat_toString);
167 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaMuxer_addTrack);
168 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaMuxer_delete);
169 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaMuxer_new);
170 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaMuxer_setLocation);
171 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaMuxer_setOrientationHint);
172 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaMuxer_start);
173 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaMuxer_stop);
174 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AMediaMuxer_writeSampleData);
175 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_AAC_DRC_ATTENUATION_FACTOR);
176 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_AAC_DRC_BOOST_FACTOR);
177 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_AAC_DRC_HEAVY_COMPRESSION);
178 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_AAC_DRC_TARGET_REFERENCE_LEVEL);
179 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_AAC_ENCODED_TARGET_LEVEL);
180 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_AAC_MAX_OUTPUT_CHANNEL_COUNT);
181 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_AAC_PROFILE);
182 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_AAC_SBR_MODE);
183 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_ALBUM);
184 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_ALBUMART);
185 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_ALBUMARTIST);
186 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_ARTIST);
187 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_AUDIO_PRESENTATION_INFO);
188 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_AUDIO_SESSION_ID);
189 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_AUTHOR);
190 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_BITRATE_MODE);
191 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_BITS_PER_SAMPLE);
192 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_BIT_RATE);
193 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_CAPTURE_RATE);
194 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_CDTRACKNUMBER);
195 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_CHANNEL_COUNT);
196 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_CHANNEL_MASK);
197 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_COLOR_FORMAT);
198 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_COLOR_RANGE);
199 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_COLOR_STANDARD);
200 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_COLOR_TRANSFER);
201 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_COMPILATION);
202 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_COMPLEXITY);
203 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_COMPOSER);
204 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_CREATE_INPUT_SURFACE_SUSPENDED);
205 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_CRYPTO_DEFAULT_IV_SIZE);
206 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_CRYPTO_ENCRYPTED_BYTE_BLOCK);
207 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_CRYPTO_ENCRYPTED_SIZES);
208 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_CRYPTO_IV);
209 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_CRYPTO_KEY);
210 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_CRYPTO_MODE);
211 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_CRYPTO_PLAIN_SIZES);
212 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_CRYPTO_SKIP_BYTE_BLOCK);
213 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_CSD);
214 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_CSD_0);
215 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_CSD_1);
216 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_CSD_2);
217 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_CSD_AVC);
218 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_CSD_HEVC);
219 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_D263);
220 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_DATE);
221 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_DISCNUMBER);
222 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_DISPLAY_CROP);
223 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_DISPLAY_HEIGHT);
224 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_DISPLAY_WIDTH);
225 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_DURATION);
226 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_ENCODER_DELAY);
227 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_ENCODER_PADDING);
228 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_ESDS);
229 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_EXIF_OFFSET);
230 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_EXIF_SIZE);
231 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_FLAC_COMPRESSION_LEVEL);
232 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_FRAME_COUNT);
233 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_FRAME_RATE);
234 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_GENRE);
235 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_GRID_COLUMNS);
236 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_GRID_ROWS);
237 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_HAPTIC_CHANNEL_COUNT);
238 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_HDR_STATIC_INFO);
239 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_HEIGHT);
240 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_ICC_PROFILE);
241 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_INTRA_REFRESH_PERIOD);
242 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_IS_ADTS);
243 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_IS_AUTOSELECT);
244 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_IS_DEFAULT);
245 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_IS_FORCED_SUBTITLE);
246 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_IS_SYNC_FRAME);
247 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_I_FRAME_INTERVAL);
248 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_LANGUAGE);
249 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_LATENCY);
250 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_LEVEL);
251 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_LOCATION);
252 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_LOOP);
253 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_LOW_LATENCY);
254 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_LYRICIST);
255 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_MANUFACTURER);
256 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_MAX_BIT_RATE);
257 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_MAX_FPS_TO_ENCODER);
258 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_MAX_HEIGHT);
259 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_MAX_INPUT_SIZE);
260 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_MAX_PTS_GAP_TO_ENCODER);
261 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_MAX_WIDTH);
262 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_MIME);
263 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_MPEG2_STREAM_HEADER);
264 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_MPEG_USER_DATA);
265 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_OPERATING_RATE);
266 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_PCM_BIG_ENDIAN);
267 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_PCM_ENCODING);
268 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_PRIORITY);
269 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_PROFILE);
270 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_PSSH);
271 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_PUSH_BLANK_BUFFERS_ON_STOP);
272 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_REPEAT_PREVIOUS_FRAME_AFTER);
273 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_ROTATION);
274 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_SAMPLE_RATE);
275 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_SAR_HEIGHT);
276 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_SAR_WIDTH);
277 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_SEI);
278 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_SLICE_HEIGHT);
279 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_STRIDE);
280 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_TARGET_TIME);
281 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_TEMPORAL_LAYERING);
282 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_TEMPORAL_LAYER_COUNT);
283 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_TEMPORAL_LAYER_ID);
284 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_TEXT_FORMAT_DATA);
285 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_THUMBNAIL_CSD_HEVC);
286 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_THUMBNAIL_HEIGHT);
287 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_THUMBNAIL_TIME);
288 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_THUMBNAIL_WIDTH);
289 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_TILE_HEIGHT);
290 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_TILE_WIDTH);
291 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_TIME_US);
292 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_TITLE);
293 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_TRACK_ID);
294 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_TRACK_INDEX);
295 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_VALID_SAMPLES);
296 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_WIDTH);
297 DEFINE_INTERCEPTABLE_STUB_VARIABLE(AMEDIAFORMAT_KEY_YEAR);
298 
init_stub_library()299 static void __attribute__((constructor(0))) init_stub_library() {
300   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AImageReader_acquireLatestImage);
301   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AImageReader_acquireLatestImageAsync);
302   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AImageReader_acquireNextImage);
303   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AImageReader_acquireNextImageAsync);
304   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AImageReader_delete);
305   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AImageReader_getFormat);
306   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AImageReader_getHeight);
307   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AImageReader_getMaxImages);
308   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AImageReader_getWidth);
309   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AImageReader_getWindow);
310   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AImageReader_getWindowNativeHandle);
311   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AImageReader_new);
312   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AImageReader_newWithUsage);
313   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AImageReader_setBufferRemovedListener);
314   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AImageReader_setImageListener);
315   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AImage_delete);
316   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AImage_deleteAsync);
317   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AImage_getCropRect);
318   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AImage_getFormat);
319   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AImage_getHardwareBuffer);
320   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AImage_getHeight);
321   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AImage_getNumberOfPlanes);
322   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AImage_getPlaneData);
323   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AImage_getPlanePixelStride);
324   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AImage_getPlaneRowStride);
325   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AImage_getTimestamp);
326   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AImage_getWidth);
327   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodecActionCode_isRecoverable);
328   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodecActionCode_isTransient);
329   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodecCryptoInfo_delete);
330   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodecCryptoInfo_getClearBytes);
331   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodecCryptoInfo_getEncryptedBytes);
332   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodecCryptoInfo_getIV);
333   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodecCryptoInfo_getKey);
334   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodecCryptoInfo_getMode);
335   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodecCryptoInfo_getNumSubSamples);
336   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodecCryptoInfo_new);
337   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodecCryptoInfo_setPattern);
338   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodec_configure);
339   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodec_createCodecByName);
340   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodec_createDecoderByType);
341   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodec_createEncoderByType);
342   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodec_createInputSurface);
343   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodec_createPersistentInputSurface);
344   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodec_delete);
345   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodec_dequeueInputBuffer);
346   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodec_dequeueOutputBuffer);
347   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodec_flush);
348   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodec_getBufferFormat);
349   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodec_getInputBuffer);
350   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodec_getInputFormat);
351   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodec_getName);
352   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodec_getOutputBuffer);
353   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodec_getOutputFormat);
354   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodec_queueInputBuffer);
355   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodec_queueSecureInputBuffer);
356   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodec_releaseCrypto);
357   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodec_releaseName);
358   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodec_releaseOutputBuffer);
359   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodec_releaseOutputBufferAtTime);
360   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodec_setAsyncNotifyCallback);
361   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodec_setInputSurface);
362   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodec_setOutputSurface);
363   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodec_setParameters);
364   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodec_signalEndOfInputStream);
365   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodec_start);
366   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCodec_stop);
367   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCrypto_delete);
368   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCrypto_isCryptoSchemeSupported);
369   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCrypto_new);
370   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaCrypto_requiresSecureDecoderComponent);
371   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaDataSource_close);
372   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaDataSource_delete);
373   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaDataSource_new);
374   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaDataSource_newUri);
375   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaDataSource_setClose);
376   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaDataSource_setGetAvailableSize);
377   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaDataSource_setGetSize);
378   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaDataSource_setReadAt);
379   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaDataSource_setUserdata);
380   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaDrm_closeSession);
381   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaDrm_createByUUID);
382   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaDrm_decrypt);
383   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaDrm_encrypt);
384   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaDrm_getKeyRequest);
385   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaDrm_getPropertyByteArray);
386   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaDrm_getPropertyString);
387   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaDrm_getProvisionRequest);
388   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaDrm_getSecureStops);
389   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaDrm_isCryptoSchemeSupported);
390   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaDrm_openSession);
391   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaDrm_provideKeyResponse);
392   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaDrm_provideProvisionResponse);
393   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaDrm_queryKeyStatus);
394   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaDrm_release);
395   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaDrm_releaseSecureStops);
396   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaDrm_removeKeys);
397   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaDrm_restoreKeys);
398   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaDrm_setOnEventListener);
399   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaDrm_setOnExpirationUpdateListener);
400   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaDrm_setOnKeysChangeListener);
401   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaDrm_setPropertyByteArray);
402   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaDrm_setPropertyString);
403   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaDrm_sign);
404   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaDrm_verify);
405   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaExtractor_advance);
406   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaExtractor_delete);
407   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaExtractor_getCachedDuration);
408   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaExtractor_getFileFormat);
409   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaExtractor_getPsshInfo);
410   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaExtractor_getSampleCryptoInfo);
411   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaExtractor_getSampleFlags);
412   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaExtractor_getSampleFormat);
413   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaExtractor_getSampleSize);
414   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaExtractor_getSampleTime);
415   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaExtractor_getSampleTrackIndex);
416   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaExtractor_getTrackCount);
417   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaExtractor_getTrackFormat);
418   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaExtractor_new);
419   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaExtractor_readSampleData);
420   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaExtractor_seekTo);
421   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaExtractor_selectTrack);
422   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaExtractor_setDataSource);
423   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaExtractor_setDataSourceCustom);
424   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaExtractor_setDataSourceFd);
425   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaExtractor_unselectTrack);
426   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaFormat_clear);
427   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaFormat_copy);
428   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaFormat_delete);
429   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaFormat_getBuffer);
430   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaFormat_getDouble);
431   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaFormat_getFloat);
432   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaFormat_getInt32);
433   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaFormat_getInt64);
434   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaFormat_getRect);
435   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaFormat_getSize);
436   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaFormat_getString);
437   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaFormat_new);
438   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaFormat_setBuffer);
439   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaFormat_setDouble);
440   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaFormat_setFloat);
441   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaFormat_setInt32);
442   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaFormat_setInt64);
443   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaFormat_setRect);
444   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaFormat_setSize);
445   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaFormat_setString);
446   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaFormat_toString);
447   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaMuxer_addTrack);
448   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaMuxer_delete);
449   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaMuxer_new);
450   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaMuxer_setLocation);
451   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaMuxer_setOrientationHint);
452   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaMuxer_start);
453   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaMuxer_stop);
454   INIT_INTERCEPTABLE_STUB_FUNCTION("libmediandk.so", AMediaMuxer_writeSampleData);
455   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_AAC_DRC_ATTENUATION_FACTOR);
456   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_AAC_DRC_BOOST_FACTOR);
457   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_AAC_DRC_HEAVY_COMPRESSION);
458   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_AAC_DRC_TARGET_REFERENCE_LEVEL);
459   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_AAC_ENCODED_TARGET_LEVEL);
460   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_AAC_MAX_OUTPUT_CHANNEL_COUNT);
461   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_AAC_PROFILE);
462   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_AAC_SBR_MODE);
463   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_ALBUM);
464   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_ALBUMART);
465   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_ALBUMARTIST);
466   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_ARTIST);
467   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_AUDIO_PRESENTATION_INFO);
468   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_AUDIO_SESSION_ID);
469   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_AUTHOR);
470   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_BITRATE_MODE);
471   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_BITS_PER_SAMPLE);
472   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_BIT_RATE);
473   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_CAPTURE_RATE);
474   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_CDTRACKNUMBER);
475   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_CHANNEL_COUNT);
476   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_CHANNEL_MASK);
477   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_COLOR_FORMAT);
478   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_COLOR_RANGE);
479   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_COLOR_STANDARD);
480   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_COLOR_TRANSFER);
481   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_COMPILATION);
482   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_COMPLEXITY);
483   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_COMPOSER);
484   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_CREATE_INPUT_SURFACE_SUSPENDED);
485   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_CRYPTO_DEFAULT_IV_SIZE);
486   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_CRYPTO_ENCRYPTED_BYTE_BLOCK);
487   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_CRYPTO_ENCRYPTED_SIZES);
488   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_CRYPTO_IV);
489   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_CRYPTO_KEY);
490   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_CRYPTO_MODE);
491   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_CRYPTO_PLAIN_SIZES);
492   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_CRYPTO_SKIP_BYTE_BLOCK);
493   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_CSD);
494   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_CSD_0);
495   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_CSD_1);
496   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_CSD_2);
497   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_CSD_AVC);
498   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_CSD_HEVC);
499   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_D263);
500   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_DATE);
501   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_DISCNUMBER);
502   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_DISPLAY_CROP);
503   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_DISPLAY_HEIGHT);
504   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_DISPLAY_WIDTH);
505   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_DURATION);
506   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_ENCODER_DELAY);
507   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_ENCODER_PADDING);
508   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_ESDS);
509   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_EXIF_OFFSET);
510   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_EXIF_SIZE);
511   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_FLAC_COMPRESSION_LEVEL);
512   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_FRAME_COUNT);
513   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_FRAME_RATE);
514   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_GENRE);
515   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_GRID_COLUMNS);
516   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_GRID_ROWS);
517   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_HAPTIC_CHANNEL_COUNT);
518   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_HDR_STATIC_INFO);
519   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_HEIGHT);
520   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_ICC_PROFILE);
521   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_INTRA_REFRESH_PERIOD);
522   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_IS_ADTS);
523   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_IS_AUTOSELECT);
524   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_IS_DEFAULT);
525   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_IS_FORCED_SUBTITLE);
526   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_IS_SYNC_FRAME);
527   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_I_FRAME_INTERVAL);
528   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_LANGUAGE);
529   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_LATENCY);
530   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_LEVEL);
531   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_LOCATION);
532   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_LOOP);
533   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_LOW_LATENCY);
534   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_LYRICIST);
535   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_MANUFACTURER);
536   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_MAX_BIT_RATE);
537   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_MAX_FPS_TO_ENCODER);
538   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_MAX_HEIGHT);
539   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_MAX_INPUT_SIZE);
540   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_MAX_PTS_GAP_TO_ENCODER);
541   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_MAX_WIDTH);
542   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_MIME);
543   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_MPEG2_STREAM_HEADER);
544   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_MPEG_USER_DATA);
545   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_OPERATING_RATE);
546   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_PCM_BIG_ENDIAN);
547   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_PCM_ENCODING);
548   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_PRIORITY);
549   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_PROFILE);
550   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_PSSH);
551   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_PUSH_BLANK_BUFFERS_ON_STOP);
552   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_REPEAT_PREVIOUS_FRAME_AFTER);
553   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_ROTATION);
554   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_SAMPLE_RATE);
555   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_SAR_HEIGHT);
556   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_SAR_WIDTH);
557   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_SEI);
558   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_SLICE_HEIGHT);
559   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_STRIDE);
560   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_TARGET_TIME);
561   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_TEMPORAL_LAYERING);
562   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_TEMPORAL_LAYER_COUNT);
563   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_TEMPORAL_LAYER_ID);
564   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_TEXT_FORMAT_DATA);
565   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_THUMBNAIL_CSD_HEVC);
566   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_THUMBNAIL_HEIGHT);
567   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_THUMBNAIL_TIME);
568   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_THUMBNAIL_WIDTH);
569   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_TILE_HEIGHT);
570   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_TILE_WIDTH);
571   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_TIME_US);
572   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_TITLE);
573   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_TRACK_ID);
574   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_TRACK_INDEX);
575   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_VALID_SAMPLES);
576   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_WIDTH);
577   INIT_INTERCEPTABLE_STUB_VARIABLE("libmediandk.so", AMEDIAFORMAT_KEY_YEAR);
578 }
579 // clang-format on
580