Lines Matching refs:aMediaObjects

222     AMediaObjects aMediaObjects;  in testGetPropertyStringNative()  local
223 aMediaObjects.setDrm(AMediaDrm_createByUUID(&juuid[0])); in testGetPropertyStringNative()
224 if (NULL == aMediaObjects.getDrm()) { in testGetPropertyStringNative()
231 media_status_t status = AMediaDrm_getPropertyString(aMediaObjects.getDrm(), in testGetPropertyStringNative()
317 AMediaObjects aMediaObjects; in testPsshNative() local
318 aMediaObjects.setVideoExtractor(AMediaExtractor_new()); in testPsshNative()
322 aMediaObjects.getVideoExtractor(), url); in testPsshNative()
332 PsshInfo* psshInfo = AMediaExtractor_getPsshInfo(aMediaObjects.getVideoExtractor()); in testPsshNative()
343 aMediaObjects.setDrm(AMediaDrm_createByUUID(&juuid[0])); in testPsshNative()
344 if (aMediaObjects.getDrm()) { in testPsshNative()
495 static jboolean playContent(JNIEnv* env, const AMediaObjects& aMediaObjects, in playContent() argument
499 AMediaExtractor* audioExtractor = aMediaObjects.getAudioExtractor(); in playContent()
500 AMediaExtractor* videoExtractor = aMediaObjects.getVideoExtractor(); in playContent()
637 JNIEnv* env, const AMediaObjects& aMediaObjects, const AMediaDrmSessionId& sessionId, in acquireLicense() argument
646 media_status_t status = AMediaDrm_getKeyRequest(aMediaObjects.getDrm(), in acquireLicense()
672 status = AMediaDrm_provideKeyResponse(aMediaObjects.getDrm(), &sessionId, in acquireLicense()
682 AMediaDrm_closeSession(aMediaObjects.getDrm(), &sessionId); in acquireLicense()
704 AMediaObjects aMediaObjects; in testClearKeyPlaybackNative() local
706 aMediaObjects.setDrm(AMediaDrm_createByUUID(&juuid[0])); in testClearKeyPlaybackNative()
707 if (NULL == aMediaObjects.getDrm()) { in testClearKeyPlaybackNative()
712 status = AMediaDrm_setOnEventListener(aMediaObjects.getDrm(), listener); in testClearKeyPlaybackNative()
719 status = AMediaDrm_setOnExpirationUpdateListener(aMediaObjects.getDrm(), in testClearKeyPlaybackNative()
727 status = AMediaDrm_setOnKeysChangeListener(aMediaObjects.getDrm(), in testClearKeyPlaybackNative()
735 aMediaObjects.setAudioExtractor(AMediaExtractor_new()); in testClearKeyPlaybackNative()
739 aMediaObjects.getAudioExtractor(), url); in testClearKeyPlaybackNative()
749 aMediaObjects.setVideoExtractor(AMediaExtractor_new()); in testClearKeyPlaybackNative()
753 aMediaObjects.getVideoExtractor(), url); in testClearKeyPlaybackNative()
764 status = AMediaDrm_openSession(aMediaObjects.getDrm(), &sessionId); in testClearKeyPlaybackNative()
771 acquireLicense(env, aMediaObjects, sessionId, KEY_TYPE_STREAMING); in testClearKeyPlaybackNative()
776 status = AMediaDrm_getPropertyString(aMediaObjects.getDrm(), in testClearKeyPlaybackNative()
793 AMediaDrm_closeSession(aMediaObjects.getDrm(), &sessionId); in testClearKeyPlaybackNative()
801 AMediaDrm_closeSession(aMediaObjects.getDrm(), &sessionId); in testClearKeyPlaybackNative()
809 AMediaDrm_closeSession(aMediaObjects.getDrm(), &sessionId); in testClearKeyPlaybackNative()
815 playContent(env, aMediaObjects, params, sessionId, juuid); in testClearKeyPlaybackNative()
817 status = AMediaDrm_closeSession(aMediaObjects.getDrm(), &sessionId); in testClearKeyPlaybackNative()
841 AMediaObjects aMediaObjects; in testQueryKeyStatusNative() local
843 aMediaObjects.setDrm(AMediaDrm_createByUUID(&juuid[0])); in testQueryKeyStatusNative()
844 if (NULL == aMediaObjects.getDrm()) { in testQueryKeyStatusNative()
850 status = AMediaDrm_openSession(aMediaObjects.getDrm(), &sessionId); in testQueryKeyStatusNative()
861 status = AMediaDrm_queryKeyStatus(aMediaObjects.getDrm(), &sessionId, keyStatus, &numPairs); in testQueryKeyStatusNative()
865 AMediaDrm_closeSession(aMediaObjects.getDrm(), &sessionId); in testQueryKeyStatusNative()
872 AMediaDrm_closeSession(aMediaObjects.getDrm(), &sessionId); in testQueryKeyStatusNative()
876 acquireLicense(env, aMediaObjects, sessionId, KEY_TYPE_STREAMING); in testQueryKeyStatusNative()
880 status = AMediaDrm_queryKeyStatus(aMediaObjects.getDrm(), &sessionId, keyStatus, &numPairs); in testQueryKeyStatusNative()
885 AMediaDrm_closeSession(aMediaObjects.getDrm(), &sessionId); in testQueryKeyStatusNative()
891 status = AMediaDrm_queryKeyStatus(aMediaObjects.getDrm(), &sessionId, keyStatus, &numPairs); in testQueryKeyStatusNative()
895 AMediaDrm_closeSession(aMediaObjects.getDrm(), &sessionId); in testQueryKeyStatusNative()
906 AMediaDrm_closeSession(aMediaObjects.getDrm(), &sessionId); in testQueryKeyStatusNative()
910 status = AMediaDrm_closeSession(aMediaObjects.getDrm(), &sessionId); in testQueryKeyStatusNative()
934 AMediaObjects aMediaObjects; in testFindSessionIdNative() local
936 aMediaObjects.setDrm(AMediaDrm_createByUUID(&juuid[0])); in testFindSessionIdNative()
937 if (NULL == aMediaObjects.getDrm()) { in testFindSessionIdNative()
948 status = AMediaDrm_openSession(aMediaObjects.getDrm(), &sessionId); in testFindSessionIdNative()
965 status = AMediaDrm_closeSession(aMediaObjects.getDrm(), &sessionId); in testFindSessionIdNative()
994 AMediaObjects aMediaObjects; in testGetKeyRequestNative() local
996 aMediaObjects.setDrm(AMediaDrm_createByUUID(&juuid[0])); in testGetKeyRequestNative()
997 if (NULL == aMediaObjects.getDrm()) { in testGetKeyRequestNative()
1003 status = AMediaDrm_openSession(aMediaObjects.getDrm(), &sessionId); in testGetKeyRequestNative()
1020 status = AMediaDrm_getKeyRequestWithDefaultUrlAndType(aMediaObjects.getDrm(), in testGetKeyRequestNative()
1036 AMediaDrm_closeSession(aMediaObjects.getDrm(), &sessionId); in testGetKeyRequestNative()
1043 status = AMediaDrm_getPropertyString(aMediaObjects.getDrm(), in testGetKeyRequestNative()