/frameworks/av/media/libstagefright/ |
H A D | CodecBase.cpp | 27 void BufferChannelBase::setCrypto(const sp<ICrypto> &crypto) { argument 28 mCrypto = crypto;
|
H A D | MediaCodecListOverrides.cpp | 154 const sp<ICrypto> crypto; local 157 err = codec->configure(format, nativeWindow, crypto, flags);
|
H A D | MediaCodec.cpp | 84 static const char *kCodecCrypto = "android.media.mediacodec.crypto"; /* 0,1 */ 1000 const sp<ICrypto> &crypto, 1002 return configure(format, nativeWindow, crypto, NULL, flags); 1008 const sp<ICrypto> &crypto, 1057 if (crypto != NULL || descrambler != NULL) { 1058 if (crypto != NULL) { 1059 msg->setPointer("crypto", crypto.get()); 2409 void *crypto; local 2410 if (!msg->findPointer("crypto", 997 configure( const sp<AMessage> &format, const sp<Surface> &nativeWindow, const sp<ICrypto> &crypto, uint32_t flags) argument 1005 configure( const sp<AMessage> &format, const sp<Surface> &surface, const sp<ICrypto> &crypto, const sp<IDescrambler> &descrambler, uint32_t flags) argument [all...] |
/frameworks/av/drm/libmediadrm/ |
H A D | IMediaDrmService.cpp | 71 sp<ICrypto> crypto = makeCrypto(); local 72 reply->writeStrongBinder(IInterface::asBinder(crypto));
|
/frameworks/av/media/ndk/ |
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...] |
H A D | NdkMediaCodec.cpp | 405 AMediaCrypto *crypto, 416 crypto ? crypto->mCrypto : NULL, flags); 753 AMediaCodecCryptoInfo* crypto, 757 CryptoPlugin::SubSample *subSamples = new CryptoPlugin::SubSample[crypto->numsubsamples]; 758 for (int i = 0; i < crypto->numsubsamples; i++) { 759 subSamples[i].mNumBytesOfClearData = crypto->clearbytes[i]; 760 subSamples[i].mNumBytesOfEncryptedData = crypto->encryptedbytes[i]; 764 pattern.mEncryptBlocks = crypto->pattern.encryptBlocks; 765 pattern.mSkipBlocks = crypto 401 AMediaCodec_configure( AMediaCodec *mData, const AMediaFormat* format, ANativeWindow* window, AMediaCrypto *crypto, uint32_t flags) argument 749 AMediaCodec_queueSecureInputBuffer( AMediaCodec* codec, size_t idx, off_t offset, AMediaCodecCryptoInfo* crypto, uint64_t time, uint32_t flags) argument [all...] |
/frameworks/base/core/java/android/hardware/biometrics/ |
H A D | BiometricAuthenticator.java | 56 * @param crypto 61 public AuthenticationResult(CryptoObject crypto, BiometricIdentifier identifier, argument 63 mCryptoObject = crypto; 69 * Obtain the crypto object associated with this transaction 70 * @return crypto object provided to {@link BiometricAuthenticator#authenticate( 142 * AuthenticationResult)} is called, at which point the crypto object becomes invalid. This 153 * @param crypto Object associated with the call 158 void authenticate(@NonNull CryptoObject crypto, argument
|
H A D | BiometricPrompt.java | 35 import javax.crypto.Cipher; 36 import javax.crypto.Mac; 242 * A wrapper class for the crypto objects supported by BiometricPrompt. Currently the framework 291 * @param crypto 296 public AuthenticationResult(CryptoObject crypto, BiometricIdentifier identifier, argument 298 super(crypto, identifier, userId); 301 * Obtain the crypto object associated with this transaction 302 * @return crypto object provided to {@link #authenticate( CryptoObject, CancellationSignal, 370 * @param crypto Object associated with the call 377 public void authenticate(@NonNull android.hardware.biometrics.CryptoObject crypto, argument 428 authenticate(@onNull CryptoObject crypto, @NonNull CancellationSignal cancel, @NonNull @CallbackExecutor Executor executor, @NonNull AuthenticationCallback callback) argument [all...] |
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
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...] |
H A D | NuPlayerDecoder.cpp | 332 if (!format->findPointer("crypto", &pCrypto)) { 335 sp<ICrypto> crypto = (ICrypto*)pCrypto; local 336 // non-encrypted source won't have a crypto 337 mIsEncrypted = (crypto != NULL); 341 crypto.get(), (crypto != NULL ? crypto->getStrongCount() : 0), mIsSecure); 344 format, mSurface, crypto, 0 /* flags */); 627 // Clearing the state as it's tied to crypto. mIsEncryptedObservedEarlier is sticky though
|
H A D | GenericSource.cpp | 299 // Widevine sources might re-initialize crypto when starting, if we delay 823 // the codec's crypto object has gone away (b/37960096). 1581 sp<ICrypto> crypto = NuPlayerDrm::createCryptoAndPlugin(uuid, drmSessionId, status); local 1582 if (crypto == NULL) { 1589 *outCrypto = crypto; 1590 // as long a there is an active crypto 1601 mIsSecure = crypto->requiresSecureDecoderComponent(mime);
|
H A D | NuPlayer.cpp | 1982 format->setPointer("crypto", mCrypto.get()); 2902 sp<ICrypto> crypto = NULL; local 2904 status = mSource->prepareDrm(uuid, *drmSessionId, &crypto); 2905 if (crypto == NULL) { 2917 mCrypto = crypto; 2939 // notifying the source first before removing crypto from codec 2945 // first making sure the codecs have released their crypto reference 2966 ALOGE("onReleaseDrm: Unexpected. There is no crypto.");
|
/frameworks/base/media/jni/ |
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...] |
H A D | android_media_MediaCodec.cpp | 283 const sp<ICrypto> &crypto, 295 format, mSurfaceTextureClient, crypto, descrambler, flags); 1117 sp<ICrypto> crypto; local 1119 crypto = JCrypto::GetCrypto(env, jcrypto); 1127 err = codec->configure(format, bufferProducer, crypto, descrambler, flags); 280 configure( const sp<AMessage> &format, const sp<IGraphicBufferProducer> &bufferProducer, const sp<ICrypto> &crypto, const sp<IDescrambler> &descrambler, int flags) argument
|
/frameworks/support/compat/src/main/java/androidx/core/hardware/fingerprint/ |
H A D | FingerprintManagerCompat.java | 33 import javax.crypto.Cipher; 34 import javax.crypto.Mac; 87 * Request authentication of a crypto object. This call warms up the fingerprint hardware 94 * @param crypto object associated with the call or null if none required. 101 public void authenticate(@Nullable CryptoObject crypto, int flags, argument 111 wrapCryptoObject(crypto), 188 * A wrapper class for the crypto objects supported by FingerprintManager. Currently the 245 public AuthenticationResult(CryptoObject crypto) { argument 246 mCryptoObject = crypto; 250 * Obtain the crypto objec [all...] |
/frameworks/av/media/libmediaplayer2/nuplayer2/ |
H A D | GenericSource2.cpp | 796 // the codec's crypto object has gone away (b/37960096). 1516 sp<AMediaCryptoWrapper> crypto = local 1518 if (crypto == NULL) { 1519 ALOGE("prepareDrm: failed to create crypto."); 1522 ALOGV("prepareDrm: crypto created for uuid: %s", 1525 *outCrypto = crypto; 1526 // as long a there is an active crypto 1537 mIsSecure = crypto->requiresSecureDecoderComponent(mime);
|
H A D | NuPlayer2Decoder.cpp | 344 format->findObject("crypto", &objCrypto); 345 sp<AMediaCryptoWrapper> crypto = static_cast<AMediaCryptoWrapper *>(objCrypto.get()); local 346 // non-encrypted source won't have a crypto 347 mIsEncrypted = (crypto != NULL); 350 ALOGV("onConfigure mCrypto: %p, mIsSecure: %d", crypto.get(), mIsSecure); 355 crypto, 648 // Clearing the state as it's tied to crypto. mIsEncryptedObservedEarlier is sticky though
|
H A D | NuPlayer2.cpp | 2028 format->setObject("crypto", mCrypto); 2992 sp<AMediaCryptoWrapper> crypto = NULL; local 2994 status = mSource->prepareDrm(uuid, *drmSessionId, &crypto); 2995 if (crypto == NULL) { 3006 mCrypto = crypto; 3027 // notifying the source first before removing crypto from codec 3033 // first making sure the codecs have released their crypto reference 3053 ALOGE("onReleaseDrm: Unexpected. There is no crypto.");
|
/frameworks/base/core/java/android/hardware/fingerprint/ |
H A D | FingerprintManager.java | 54 import javax.crypto.Cipher; 55 import javax.crypto.Mac; 100 public OnAuthenticationCancelListener(android.hardware.biometrics.CryptoObject crypto) { argument 101 mCrypto = crypto; 111 * A wrapper class for the crypto objects supported by FingerprintManager. Currently the 168 * @param crypto the crypto object 172 public AuthenticationResult(CryptoObject crypto, Fingerprint fingerprint, int userId) { argument 173 mCryptoObject = crypto; 179 * Obtain the crypto objec 387 authenticate(@ullable CryptoObject crypto, @Nullable CancellationSignal cancel, int flags, @NonNull AuthenticationCallback callback, @Nullable Handler handler) argument 411 authenticate(@ullable CryptoObject crypto, @Nullable CancellationSignal cancel, int flags, @NonNull AuthenticationCallback callback, Handler handler, int userId) argument 449 authenticate(int userId, @Nullable android.hardware.biometrics.CryptoObject crypto, @NonNull CancellationSignal cancel, @NonNull Bundle bundle, @NonNull @CallbackExecutor Executor executor, @NonNull IBiometricPromptReceiver receiver, @NonNull BiometricAuthenticator.AuthenticationCallback callback) argument 522 authenticate(@onNull android.hardware.biometrics.CryptoObject crypto, @NonNull CancellationSignal cancel, @NonNull Bundle bundle, @NonNull @CallbackExecutor Executor executor, @NonNull IBiometricPromptReceiver receiver, @NonNull BiometricAuthenticator.AuthenticationCallback callback) argument [all...] |
/frameworks/av/media/libmedia/ |
H A D | NdkWrapper.cpp | 909 const sp<AMediaCryptoWrapper> &crypto, 919 crypto == NULL ? NULL : crypto->getAMediaCrypto(), 906 configure( const sp<AMediaFormatWrapper> &format, const sp<ANativeWindowWrapper> &nww, const sp<AMediaCryptoWrapper> &crypto, uint32_t flags) argument
|
/frameworks/base/media/java/android/media/ |
H A D | MediaCodec.java | 1872 * @param crypto Specify a crypto object to facilitate secure decryption 1873 * of the media data. Pass {@code null} as {@code crypto} for 1887 @Nullable Surface surface, @Nullable MediaCrypto crypto, 1889 configure(format, surface, crypto, null, flags); 1924 @Nullable MediaCrypto crypto, @Nullable IHwBinder descramblerBinder, 1926 if (crypto != null && descramblerBinder != null) { 1927 throw new IllegalArgumentException("Can't use crypto and descrambler together!"); 1960 native_configure(keys, values, surface, crypto, descramblerBinder, flags); 2038 @Nullable Surface surface, @Nullable MediaCrypto crypto, 1885 configure( @ullable MediaFormat format, @Nullable Surface surface, @Nullable MediaCrypto crypto, @ConfigureFlag int flags) argument 1922 configure( @ullable MediaFormat format, @Nullable Surface surface, @Nullable MediaCrypto crypto, @Nullable IHwBinder descramblerBinder, @ConfigureFlag int flags) argument 2036 native_configure( @ullable String[] keys, @Nullable Object[] values, @Nullable Surface surface, @Nullable MediaCrypto crypto, @Nullable IHwBinder descramblerBinder, @ConfigureFlag int flags) argument [all...] |