/frameworks/av/drm/libmediadrm/ |
H A D | IMediaDrmService.cpp | 71 sp<ICrypto> crypto = makeCrypto(); local 72 reply->writeStrongBinder(IInterface::asBinder(crypto));
|
/frameworks/av/include/media/stagefright/ |
H A D | CodecBase.h | 259 inline void setCrypto(const sp<ICrypto> &crypto) { argument 260 mCrypto = crypto;
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | GenericSource.cpp | 274 // Widevine sources might re-initialize crypto when starting, if we delay 855 // the codec's crypto object has gone away (b/37960096). 1891 const uint8_t uuid[16], const Vector<uint8_t> &drmSessionId, sp<ICrypto> *crypto) 1902 msg->setPointer("crypto", (void*)crypto); 1909 ALOGV_IF(status == OK, "prepareDrm: mCrypto: %p (%d)", crypto->get(), 1910 (*crypto != NULL ? (*crypto)->getStrongCount() : 0)); 1925 // synchronous call to update the source states before the player proceedes with crypto cleanup 1951 CHECK(msg->findPointer("crypto", (voi 1890 prepareDrm( const uint8_t uuid[16], const Vector<uint8_t> &drmSessionId, sp<ICrypto> *crypto) argument 1954 sp<ICrypto> crypto = NuPlayerDrm::createCryptoAndPlugin(uuid, *drmSessionId, status); local [all...] |
H A D | NuPlayer.cpp | 1838 format->setPointer("crypto", mCrypto.get()); 2753 sp<ICrypto> crypto = NULL; local 2755 status = mSource->prepareDrm(uuid, *drmSessionId, &crypto); 2756 if (crypto == NULL) { 2768 mCrypto = crypto; 2790 // notifying the source first before removing crypto from codec 2796 // first making sure the codecs have released their crypto reference 2817 ALOGE("onReleaseDrm: Unexpected. There is no crypto.");
|
H A D | NuPlayerDecoder.cpp | 331 if (!format->findPointer("crypto", &pCrypto)) { 334 sp<ICrypto> crypto = (ICrypto*)pCrypto; local 335 // non-encrypted source won't have a crypto 336 mIsEncrypted = (crypto != NULL); 340 crypto.get(), (crypto != NULL ? crypto->getStrongCount() : 0), mIsSecure); 343 format, mSurface, crypto, 0 /* flags */); 620 // Clearing the state as it's tied to crypto. mIsEncryptedObservedEarlier is sticky though
|
H A D | NuPlayerDrm.cpp | 72 sp<ICrypto> crypto = service->makeCrypto(); local 73 if (crypto == NULL) { 80 status = crypto->initCheck(); 82 ALOGE("createCrypto failed crypto->initCheck(): %d", status); 86 return crypto; 156 // temporary DRM object for crypto Scheme enquiry (without creating a plugin) 190 sp<ICrypto> crypto = createCrypto(&status); local 191 if (crypto == NULL) { 197 status = crypto->createPlugin(uuid, drmSessionId.array(), drmSessionId.size()); 200 // crypto wil [all...] |
/frameworks/av/media/libstagefright/ |
H A D | MediaCodec.cpp | 72 static const char *kCodecCrypto = "android.media.mediacodec.crypto"; /* 0,1 */ 689 const sp<ICrypto> &crypto, 691 return configure(format, nativeWindow, crypto, NULL, flags); 697 const sp<ICrypto> &crypto, 727 if (crypto != NULL || descrambler != NULL) { 728 if (crypto != NULL) { 729 msg->setPointer("crypto", crypto.get()); 734 // XXX: save indication that it's crypto in some way... 2003 void *crypto; local 686 configure( const sp<AMessage> &format, const sp<Surface> &nativeWindow, const sp<ICrypto> &crypto, uint32_t flags) argument 694 configure( const sp<AMessage> &format, const sp<Surface> &surface, const sp<ICrypto> &crypto, const sp<IDescrambler> &descrambler, uint32_t flags) argument [all...] |
H A D | MediaCodecListOverrides.cpp | 156 const sp<ICrypto> crypto; local 159 err = codec->configure(format, nativeWindow, crypto, flags);
|
/frameworks/av/media/libstagefright/foundation/include/ |
H A D | CodecBase.h | 259 inline void setCrypto(const sp<ICrypto> &crypto) { argument 260 mCrypto = crypto;
|
/frameworks/av/media/libstagefright/include/ |
H A D | CodecBase.h | 259 inline void setCrypto(const sp<ICrypto> &crypto) { argument 260 mCrypto = crypto;
|
/frameworks/av/media/ndk/ |
H A D | NdkMediaCodec.cpp | 229 AMediaCrypto *crypto, 240 crypto ? crypto->mCrypto : NULL, flags)); 505 AMediaCodecCryptoInfo* crypto, 509 CryptoPlugin::SubSample *subSamples = new CryptoPlugin::SubSample[crypto->numsubsamples]; 510 for (int i = 0; i < crypto->numsubsamples; i++) { 511 subSamples[i].mNumBytesOfClearData = crypto->clearbytes[i]; 512 subSamples[i].mNumBytesOfEncryptedData = crypto->encryptedbytes[i]; 516 pattern.mEncryptBlocks = crypto->pattern.encryptBlocks; 517 pattern.mSkipBlocks = crypto 225 AMediaCodec_configure( AMediaCodec *mData, const AMediaFormat* format, ANativeWindow* window, AMediaCrypto *crypto, uint32_t flags) argument 501 AMediaCodec_queueSecureInputBuffer( AMediaCodec* codec, size_t idx, off_t offset, AMediaCodecCryptoInfo* crypto, uint64_t time, uint32_t flags) argument [all...] |
H A D | NdkMediaCrypto.cpp | 48 sp<ICrypto> crypto = service->makeCrypto(); local 49 if (crypto == NULL || (crypto->initCheck() != OK && crypto->initCheck() != NO_INIT)) { 52 return crypto; 65 sp<ICrypto> crypto = makeCrypto(); local 66 if (crypto == NULL) { 69 return crypto->isCryptoSchemeSupported(uuid); 74 sp<ICrypto> crypto = makeCrypto(); local 75 if (crypto 93 AMediaCrypto *crypto = new AMediaCrypto(); local 100 AMediaCrypto_delete(AMediaCrypto* crypto) argument [all...] |
/frameworks/base/core/java/android/hardware/fingerprint/ |
H A D | FingerprintManager.java | 42 import javax.crypto.Cipher; 43 import javax.crypto.Mac; 208 public OnAuthenticationCancelListener(CryptoObject crypto) { argument 209 mCrypto = crypto; 219 * A wrapper class for the crypto objects supported by FingerprintManager. Currently the 284 * @param crypto the crypto object 288 public AuthenticationResult(CryptoObject crypto, Fingerprint fingerprint, int userId) { argument 289 mCryptoObject = crypto; 295 * Obtain the crypto objec 480 authenticate(@ullable CryptoObject crypto, @Nullable CancellationSignal cancel, int flags, @NonNull AuthenticationCallback callback, @Nullable Handler handler) argument 502 authenticate(@ullable CryptoObject crypto, @Nullable CancellationSignal cancel, int flags, @NonNull AuthenticationCallback callback, Handler handler, int userId) argument [all...] |
/frameworks/base/media/java/android/media/ |
H A D | MediaCodec.java | 1847 * @param crypto Specify a crypto object to facilitate secure decryption 1848 * of the media data. Pass {@code null} as {@code crypto} for 1862 @Nullable Surface surface, @Nullable MediaCrypto crypto, 1864 configure(format, surface, crypto, null, flags); 1899 @Nullable MediaCrypto crypto, @Nullable IBinder descramblerBinder, 1901 if (crypto != null && descramblerBinder != null) { 1902 throw new IllegalArgumentException("Can't use crypto and descrambler together!"); 1935 native_configure(keys, values, surface, crypto, descramblerBinder, flags); 2013 @Nullable Surface surface, @Nullable MediaCrypto crypto, 1860 configure( @ullable MediaFormat format, @Nullable Surface surface, @Nullable MediaCrypto crypto, @ConfigureFlag int flags) argument 1897 configure( @ullable MediaFormat format, @Nullable Surface surface, @Nullable MediaCrypto crypto, @Nullable IBinder descramblerBinder, @ConfigureFlag int flags) argument 2011 native_configure( @ullable String[] keys, @Nullable Object[] values, @Nullable Surface surface, @Nullable MediaCrypto crypto, @Nullable IBinder descramblerBinder, @ConfigureFlag int flags) argument [all...] |
/frameworks/base/media/jni/ |
H A D | android_media_MediaCodec.cpp | 274 const sp<ICrypto> &crypto, 286 format, mSurfaceTextureClient, crypto, descrambler, flags); 1006 sp<ICrypto> crypto; local 1008 crypto = JCrypto::GetCrypto(env, jcrypto); 1017 err = codec->configure(format, bufferProducer, crypto, descrambler, flags); 271 configure( const sp<AMessage> &format, const sp<IGraphicBufferProducer> &bufferProducer, const sp<ICrypto> &crypto, const sp<IDescrambler> &descrambler, int flags) argument
|
H A D | android_media_MediaCrypto.cpp | 75 sp<ICrypto> crypto = service->makeCrypto(); local 76 if (crypto == NULL || (crypto->initCheck() != OK && crypto->initCheck() != NO_INIT)) { 80 return crypto; 86 sp<ICrypto> crypto = MakeCrypto(); local 88 if (crypto == NULL) { 92 status_t err = crypto->createPlugin(uuid, initData, initSize); 98 return crypto; 111 sp<ICrypto> crypto local 155 setCrypto( JNIEnv *env, jobject thiz, const sp<JCrypto> &crypto) argument 205 sp<JCrypto> crypto = new JCrypto( local 264 sp<JCrypto> crypto = getCrypto(env, thiz); local 292 sp<ICrypto> crypto = JCrypto::GetCrypto(env, thiz); local [all...] |
/frameworks/support/compat/api23/android/support/v4/hardware/fingerprint/ |
H A D | FingerprintManagerCompatApi23.java | 31 import javax.crypto.Cipher; 32 import javax.crypto.Mac; 69 static void authenticate(Context context, CryptoObject crypto, int flags, Object cancel, argument 73 fp.authenticate(wrapCryptoObject(crypto), 165 public AuthenticationResultInternal(CryptoObject crypto) { argument 166 mCryptoObject = crypto;
|
/frameworks/support/compat/java/android/support/v4/hardware/fingerprint/ |
H A D | FingerprintManagerCompat.java | 29 import javax.crypto.Cipher; 30 import javax.crypto.Mac; 79 * Request authentication of a crypto object. This call warms up the fingerprint hardware 86 * @param crypto object associated with the call or null if none required. 92 public void authenticate(@Nullable CryptoObject crypto, int flags, argument 95 IMPL.authenticate(mContext, crypto, flags, cancel, callback, handler); 99 * A wrapper class for the crypto objects supported by FingerprintManager. Currently the 153 public AuthenticationResult(CryptoObject crypto) { argument 154 mCryptoObject = crypto; 158 * Obtain the crypto objec 205 authenticate(Context context, CryptoObject crypto, int flags, CancellationSignal cancel, AuthenticationCallback callback, Handler handler) argument 226 authenticate(Context context, CryptoObject crypto, int flags, CancellationSignal cancel, AuthenticationCallback callback, Handler handler) argument 249 authenticate(Context context, CryptoObject crypto, int flags, CancellationSignal cancel, AuthenticationCallback callback, Handler handler) argument [all...] |