Lines Matching refs:String8

51     bool MockDrmFactory::isContentTypeSupported(const String8 &mimeType)  in isContentTypeSupported()
112 String8 const &mimeType, KeyType keyType, in getKeyRequest()
113 KeyedVector<String8, String8> const &optionalParameters, in getKeyRequest() argument
114 Vector<uint8_t> &request, String8 &defaultUrl) in getKeyRequest()
134 mByteArrayProperties.add(String8("mock-initdata"), initData); in getKeyRequest()
135 mStringProperties.add(String8("mock-mimetype"), mimeType); in getKeyRequest()
137 String8 keyTypeStr; in getKeyRequest()
139 mStringProperties.add(String8("mock-keytype"), keyTypeStr); in getKeyRequest()
141 String8 params; in getKeyRequest()
147 mStringProperties.add(String8("mock-optparams"), params); in getKeyRequest()
153 index = mByteArrayProperties.indexOfKey(String8("mock-request")); in getKeyRequest()
161 index = mStringProperties.indexOfKey(String8("mock-defaultUrl")); in getKeyRequest()
189 mByteArrayProperties.add(String8("mock-response"), response); in provideKeyResponse()
241 KeyedVector<String8, String8> &infoMap) const in queryKeyStatus() argument
252 infoMap.add(String8("purchaseDuration"), String8("1000")); in queryKeyStatus()
253 infoMap.add(String8("licenseDuration"), String8("100")); in queryKeyStatus()
257 status_t MockDrmPlugin::getProvisionRequest(String8 const &certType, in getProvisionRequest()
258 String8 const &certAuthority, in getProvisionRequest()
260 String8 &defaultUrl) in getProvisionRequest()
269 ssize_t index = mByteArrayProperties.indexOfKey(String8("mock-request")); in getProvisionRequest()
277 index = mStringProperties.indexOfKey(String8("mock-defaultUrl")); in getProvisionRequest()
298 mByteArrayProperties.add(String8("mock-response"), response); in provideProvisionResponse()
316 ssize_t index = mByteArrayProperties.indexOfKey(String8("mock-secure-stop")); in getSecureStop()
336 ssize_t index = mByteArrayProperties.indexOfKey(String8("mock-secure-stop1")); in getSecureStops()
344 index = mByteArrayProperties.indexOfKey(String8("mock-secure-stop2")); in getSecureStops()
365 mByteArrayProperties.add(String8("mock-ssrelease"), ssRelease); in releaseSecureStops()
377 status_t MockDrmPlugin::getPropertyString(String8 const &name, String8 &value) const in getPropertyString()
389 status_t MockDrmPlugin::getPropertyByteArray(String8 const &name, in getPropertyByteArray()
402 status_t MockDrmPlugin::setPropertyString(String8 const &name, in setPropertyString()
403 String8 const &value) in setPropertyString()
415 ssize_t index = mByteArrayProperties.indexOfKey(String8("mock-event-session-id")); in setPropertyString()
421 index = mByteArrayProperties.indexOfKey(String8("mock-event-data")); in setPropertyString()
436 status_t MockDrmPlugin::setPropertyByteArray(String8 const &name, in setPropertyByteArray()
447 String8 const &algorithm) in setCipherAlgorithm()
467 String8 const &algorithm) in setMacAlgorithm()
509 mByteArrayProperties.add(String8("mock-keyid"), keyId); in encrypt()
510 mByteArrayProperties.add(String8("mock-input"), input); in encrypt()
511 mByteArrayProperties.add(String8("mock-iv"), iv); in encrypt()
515 index = mByteArrayProperties.indexOfKey(String8("mock-output")); in encrypt()
548 mByteArrayProperties.add(String8("mock-keyid"), keyId); in decrypt()
549 mByteArrayProperties.add(String8("mock-input"), input); in decrypt()
550 mByteArrayProperties.add(String8("mock-iv"), iv); in decrypt()
554 index = mByteArrayProperties.indexOfKey(String8("mock-output")); in decrypt()
584 mByteArrayProperties.add(String8("mock-keyid"), keyId); in sign()
585 mByteArrayProperties.add(String8("mock-message"), message); in sign()
589 index = mByteArrayProperties.indexOfKey(String8("mock-signature")); in sign()
622 mByteArrayProperties.add(String8("mock-keyid"), keyId); in verify()
623 mByteArrayProperties.add(String8("mock-message"), message); in verify()
624 mByteArrayProperties.add(String8("mock-signature"), signature); in verify()
628 index = mStringProperties.indexOfKey(String8("mock-match")); in verify()
639 String8 const &algorithm, in signRSA()
657 mByteArrayProperties.add(String8("mock-sessionid"), sessionId); in signRSA()
658 mStringProperties.add(String8("mock-algorithm"), algorithm); in signRSA()
659 mByteArrayProperties.add(String8("mock-message"), message); in signRSA()
660 mByteArrayProperties.add(String8("mock-wrappedkey"), wrappedKey); in signRSA()
661 mByteArrayProperties.add(String8("mock-signature"), signature); in signRSA()
689 String8 MockDrmPlugin::vectorToString(Vector<uint8_t> const &vector) const in vectorToString()
694 String8 MockDrmPlugin::arrayToString(uint8_t const *array, size_t len) const in arrayToString()
696 String8 result("{ "); in arrayToString()
704 String8 MockDrmPlugin::stringMapToString(KeyedVector<String8, String8> map) const in stringMapToString() argument
706 String8 result("{ "); in stringMapToString()
745 String8 MockCryptoPlugin::arrayToString(uint8_t const *array, size_t len) const in arrayToString()
747 String8 result("{ "); in arrayToString()
755 String8 MockCryptoPlugin::subSamplesToString(SubSample const *subSamples, in subSamplesToString()
758 String8 result; in subSamplesToString()