Lines Matching refs:crypto
75 sp<ICrypto> crypto = service->makeCrypto(); in MakeCrypto() local
77 if (crypto == NULL || crypto->initCheck() != OK) { in MakeCrypto()
81 return crypto; in MakeCrypto()
87 sp<ICrypto> crypto = MakeCrypto(); in MakeCrypto() local
89 if (crypto == NULL) { in MakeCrypto()
93 status_t err = crypto->createPlugin(uuid, initData, initSize); in MakeCrypto()
99 return crypto; in MakeCrypto()
112 sp<ICrypto> crypto = MakeCrypto(); in IsCryptoSchemeSupported() local
114 if (crypto == NULL) { in IsCryptoSchemeSupported()
118 return crypto->isCryptoSchemeSupported(uuid); in IsCryptoSchemeSupported()
148 JNIEnv *env, jobject thiz, const sp<JCrypto> &crypto) { in setCrypto() argument
150 if (crypto != NULL) { in setCrypto()
151 crypto->incStrong(thiz); in setCrypto()
156 env->SetIntField(thiz, gFields.context, (int)crypto.get()); in setCrypto()
197 sp<JCrypto> crypto = new JCrypto( in android_media_MediaCrypto_native_setup() local
200 status_t err = crypto->initCheck(); in android_media_MediaCrypto_native_setup()
218 setCrypto(env,thiz, crypto); in android_media_MediaCrypto_native_setup()
256 sp<JCrypto> crypto = getCrypto(env, thiz); in android_media_MediaCrypto_requiresSecureDecoderComponent() local
258 if (crypto == NULL) { in android_media_MediaCrypto_requiresSecureDecoderComponent()
269 bool result = crypto->requiresSecureDecoderComponent(mime); in android_media_MediaCrypto_requiresSecureDecoderComponent()