Lines Matching refs:ext1
81 // Map a media_error_type enum (the ext1 of a MEDIA_ERROR event) to a string or NULL
95 // Map a media_info_type enum (the ext1 of a MEDIA_INFO event) to a string or NULL
116 void MediaPlayerNotificationClient::notify(int msg, int ext1, int ext2, const Parcel *obj) {
117 SL_LOGV("MediaPlayerNotificationClient::notify(msg=%s (%d), ext1=%d, ext2=%d)",
118 media_event_type_to_string((enum media_event_type) msg), msg, ext1, ext2);
146 if (genericMediaPlayer->mHasVideo && (ext1 != 0 || ext2 != 0)) {
148 (int32_t)ext1 /*width*/, (int32_t)ext2 /*height*/, true /*async*/);
162 if (ext1 < 0) {
163 SL_LOGE("MEDIA_BUFFERING_UPDATE %d%% < 0", ext1);
164 ext1 = 0;
165 } else if (ext1 > 100) {
166 SL_LOGE("MEDIA_BUFFERING_UPDATE %d%% > 100", ext1);
167 ext1 = 100;
171 genericMediaPlayer->bufferingUpdate(ext1 * 10 /*fillLevelPerMille*/);
176 SL_LOGV("MediaPlayerNotificationClient::notify(msg=MEDIA_ERROR, ext1=%s (%d), ext2=%d)",
177 media_error_type_to_string((media_error_type) ext1), ext1, ext2);
184 genericMediaPlayer->notify(PLAYEREVENT_ERRORAFTERPREPARE, ext1, true /*async*/);
194 SL_LOGV("MediaPlayerNotificationClient::notify(msg=MEDIA_INFO, ext1=%s (%d), ext2=%d)",
195 media_info_type_to_string((media_info_type) ext1), ext1, ext2);
196 switch (ext1) {
198 SL_LOGV("MEDIA_INFO_VIDEO_TRACK_LAGGING by %d ms", ext1);