Lines Matching refs:status

47 #define STATUS_CASE(status) \  in MediaErrorToEnum()  argument
48 case ERROR_##status: \ in MediaErrorToEnum()
49 return ENUM_##status in MediaErrorToEnum()
100 #define STATUS_CASE(status) \ in DrmPluginSecurityLevelToJavaSecurityLevel() argument
101 case DrmPlugin::k##status: \ in DrmPluginSecurityLevelToJavaSecurityLevel()
102 return J##status in DrmPluginSecurityLevelToJavaSecurityLevel()
119 DrmStatus status = mImpl->initCheck(); in initCheck() local
120 if (status != OK) { in initCheck()
121 reportMediaDrmErrored(status, __func__); in initCheck()
123 return status; in initCheck()
130 DrmStatus status = mImpl->isCryptoSchemeSupported(uuid, mimeType, securityLevel, result); in isCryptoSchemeSupported() local
131 if (status != OK) { in isCryptoSchemeSupported()
132 reportMediaDrmErrored(status, __func__); in isCryptoSchemeSupported()
134 return status; in isCryptoSchemeSupported()
150 DrmStatus status = mImpl->createPlugin(uuid, appPackageName); in createPlugin() local
151 if (status == OK) { in createPlugin()
158 reportMediaDrmErrored(status, __func__); in createPlugin()
160 return status; in createPlugin()
164 DrmStatus status = mImpl->destroyPlugin(); in destroyPlugin() local
165 if (status != OK) { in destroyPlugin()
166 reportMediaDrmErrored(status, __func__); in destroyPlugin()
168 return status; in destroyPlugin()
177 DrmStatus status = mImpl->openSession(securityLevel, sessionId); in openSession() local
178 if (status == OK) { in openSession()
193 reportMediaDrmErrored(status, __func__); in openSession()
195 return status; in openSession()
200 DrmStatus status = mImpl->closeSession(sessionId); in closeSession() local
201 if (status == OK) { in closeSession()
206 reportMediaDrmErrored(status, __func__, sid); in closeSession()
208 return status; in closeSession()
217 DrmStatus status = in getKeyRequest() local
220 if (status != OK) { in getKeyRequest()
221 reportMediaDrmErrored(status, __func__, toStdVec(sessionId)); in getKeyRequest()
223 return status; in getKeyRequest()
229 DrmStatus status = mImpl->provideKeyResponse(sessionId, response, keySetId); in provideKeyResponse() local
230 if (status != OK) { in provideKeyResponse()
231 reportMediaDrmErrored(status, __func__, toStdVec(sessionId)); in provideKeyResponse()
233 return status; in provideKeyResponse()
237 DrmStatus status = mImpl->removeKeys(keySetId); in removeKeys() local
238 if (status != OK) { in removeKeys()
239 reportMediaDrmErrored(status, __func__); in removeKeys()
241 return status; in removeKeys()
246 DrmStatus status = mImpl->restoreKeys(sessionId, keySetId); in restoreKeys() local
247 if (status != OK) { in restoreKeys()
248 reportMediaDrmErrored(status, __func__, toStdVec(sessionId)); in restoreKeys()
250 return status; in restoreKeys()
255 DrmStatus status = mImpl->queryKeyStatus(sessionId, infoMap); in queryKeyStatus() local
256 if (status != OK) { in queryKeyStatus()
257 reportMediaDrmErrored(status, __func__, toStdVec(sessionId)); in queryKeyStatus()
259 return status; in queryKeyStatus()
265 DrmStatus status = mImpl->getProvisionRequest(certType, certAuthority, request, defaultUrl); in getProvisionRequest() local
266 if (status != OK) { in getProvisionRequest()
267 reportMediaDrmErrored(status, __func__); in getProvisionRequest()
269 return status; in getProvisionRequest()
275 DrmStatus status = mImpl->provideProvisionResponse(response, certificate, wrappedKey); in provideProvisionResponse() local
276 if (status != OK) { in provideProvisionResponse()
277 reportMediaDrmErrored(status, __func__); in provideProvisionResponse()
279 return status; in provideProvisionResponse()
283 DrmStatus status = mImpl->getSecureStops(secureStops); in getSecureStops() local
284 if (status != OK) { in getSecureStops()
285 reportMediaDrmErrored(status, __func__); in getSecureStops()
287 return status; in getSecureStops()
291 DrmStatus status = mImpl->getSecureStopIds(secureStopIds); in getSecureStopIds() local
292 if (status != OK) { in getSecureStopIds()
293 reportMediaDrmErrored(status, __func__); in getSecureStopIds()
295 return status; in getSecureStopIds()
300 DrmStatus status = mImpl->getSecureStop(ssid, secureStop); in getSecureStop() local
301 if (status != OK) { in getSecureStop()
302 reportMediaDrmErrored(status, __func__); in getSecureStop()
304 return status; in getSecureStop()
308 DrmStatus status = mImpl->releaseSecureStops(ssRelease); in releaseSecureStops() local
309 if (status != OK) { in releaseSecureStops()
310 reportMediaDrmErrored(status, __func__); in releaseSecureStops()
312 return status; in releaseSecureStops()
316 DrmStatus status = mImpl->removeSecureStop(ssid); in removeSecureStop() local
317 if (status != OK) { in removeSecureStop()
318 reportMediaDrmErrored(status, __func__); in removeSecureStop()
320 return status; in removeSecureStop()
324 DrmStatus status = mImpl->removeAllSecureStops(); in removeAllSecureStops() local
325 if (status != OK) { in removeAllSecureStops()
326 reportMediaDrmErrored(status, __func__); in removeAllSecureStops()
328 return status; in removeAllSecureStops()
333 DrmStatus status = mImpl->getHdcpLevels(connectedLevel, maxLevel); in getHdcpLevels() local
334 if (status != OK) { in getHdcpLevels()
335 reportMediaDrmErrored(status, __func__); in getHdcpLevels()
337 return status; in getHdcpLevels()
342 DrmStatus status = mImpl->getNumberOfSessions(currentSessions, maxSessions); in getNumberOfSessions() local
343 if (status != OK) { in getNumberOfSessions()
344 reportMediaDrmErrored(status, __func__); in getNumberOfSessions()
346 return status; in getNumberOfSessions()
351 DrmStatus status = mImpl->getSecurityLevel(sessionId, level); in getSecurityLevel() local
352 if (status != OK) { in getSecurityLevel()
353 reportMediaDrmErrored(status, __func__, toStdVec(sessionId)); in getSecurityLevel()
355 return status; in getSecurityLevel()
359 DrmStatus status = mImpl->getOfflineLicenseKeySetIds(keySetIds); in getOfflineLicenseKeySetIds() local
360 if (status != OK) { in getOfflineLicenseKeySetIds()
361 reportMediaDrmErrored(status, __func__); in getOfflineLicenseKeySetIds()
363 return status; in getOfflineLicenseKeySetIds()
367 DrmStatus status = mImpl->removeOfflineLicense(keySetId); in removeOfflineLicense() local
368 if (status != OK) { in removeOfflineLicense()
369 reportMediaDrmErrored(status, __func__); in removeOfflineLicense()
371 return status; in removeOfflineLicense()
376 DrmStatus status = mImpl->getOfflineLicenseState(keySetId, licenseState); in getOfflineLicenseState() local
377 if (status != OK) { in getOfflineLicenseState()
378 reportMediaDrmErrored(status, __func__); in getOfflineLicenseState()
380 return status; in getOfflineLicenseState()
384 DrmStatus status = mImpl->getPropertyString(name, value); in getPropertyString() local
385 if (status != OK) { in getPropertyString()
386 reportMediaDrmErrored(status, __func__); in getPropertyString()
388 return status; in getPropertyString()
393 DrmStatus status = mImpl->getPropertyByteArray(name, value); in getPropertyByteArray() local
394 if (status != OK) { in getPropertyByteArray()
395 reportMediaDrmErrored(status, __func__); in getPropertyByteArray()
397 return status; in getPropertyByteArray()
401 DrmStatus status = mImpl->setPropertyString(name, value); in setPropertyString() local
402 if (status != OK) { in setPropertyString()
403 reportMediaDrmErrored(status, __func__); in setPropertyString()
405 return status; in setPropertyString()
410 DrmStatus status = mImpl->setPropertyByteArray(name, value); in setPropertyByteArray() local
411 if (status != OK) { in setPropertyByteArray()
412 reportMediaDrmErrored(status, __func__); in setPropertyByteArray()
414 return status; in setPropertyByteArray()
418 DrmStatus status = mImpl->getMetrics(consumer); in getMetrics() local
419 if (status != OK) { in getMetrics()
420 reportMediaDrmErrored(status, __func__); in getMetrics()
422 return status; in getMetrics()
427 DrmStatus status = mImpl->setCipherAlgorithm(sessionId, algorithm); in setCipherAlgorithm() local
428 if (status != OK) { in setCipherAlgorithm()
429 reportMediaDrmErrored(status, __func__, toStdVec(sessionId)); in setCipherAlgorithm()
431 return status; in setCipherAlgorithm()
436 DrmStatus status = mImpl->setMacAlgorithm(sessionId, algorithm); in setMacAlgorithm() local
437 if (status != OK) { in setMacAlgorithm()
438 reportMediaDrmErrored(status, __func__, toStdVec(sessionId)); in setMacAlgorithm()
440 return status; in setMacAlgorithm()
446 DrmStatus status = mImpl->encrypt(sessionId, keyId, input, iv, output); in encrypt() local
447 if (status != OK) { in encrypt()
448 reportMediaDrmErrored(status, __func__, toStdVec(sessionId)); in encrypt()
450 return status; in encrypt()
456 DrmStatus status = mImpl->decrypt(sessionId, keyId, input, iv, output); in decrypt() local
457 if (status != OK) { in decrypt()
458 reportMediaDrmErrored(status, __func__, toStdVec(sessionId)); in decrypt()
460 return status; in decrypt()
465 DrmStatus status = mImpl->sign(sessionId, keyId, message, signature); in sign() local
466 if (status != OK) { in sign()
467 reportMediaDrmErrored(status, __func__, toStdVec(sessionId)); in sign()
469 return status; in sign()
475 DrmStatus status = mImpl->verify(sessionId, keyId, message, signature, match); in verify() local
476 if (status != OK) { in verify()
477 reportMediaDrmErrored(status, __func__, toStdVec(sessionId)); in verify()
479 return status; in verify()
485 DrmStatus status = mImpl->signRSA(sessionId, algorithm, message, wrappedKey, signature); in signRSA() local
486 if (status != OK) { in signRSA()
487 reportMediaDrmErrored(status, __func__, toStdVec(sessionId)); in signRSA()
489 return status; in signRSA()
493 DrmStatus status = mImpl->setListener(listener); in setListener() local
494 if (status != OK) { in setListener()
495 reportMediaDrmErrored(status, __func__); in setListener()
497 return status; in setListener()
501 DrmStatus status = mImpl->requiresSecureDecoder(mime, required); in requiresSecureDecoder() local
502 if (status != OK) { in requiresSecureDecoder()
503 reportMediaDrmErrored(status, __func__); in requiresSecureDecoder()
505 return status; in requiresSecureDecoder()
511 DrmStatus status = mImpl->requiresSecureDecoder(mime, securityLevel, required); in requiresSecureDecoder() local
512 if (status != OK) { in requiresSecureDecoder()
513 reportMediaDrmErrored(status, "requiresSecureDecoderLevel"); in requiresSecureDecoder()
515 return status; in requiresSecureDecoder()
520 DrmStatus status = mImpl->setPlaybackId(sessionId, playbackId); in setPlaybackId() local
521 if (status != OK) { in setPlaybackId()
522 reportMediaDrmErrored(status, __func__, toStdVec(sessionId)); in setPlaybackId()
524 return status; in setPlaybackId()
528 DrmStatus status = mImpl->getLogMessages(logs); in getLogMessages() local
529 if (status != OK) { in getLogMessages()
530 reportMediaDrmErrored(status, __func__); in getLogMessages()
532 return status; in getLogMessages()
536 DrmStatus status = mImpl->getSupportedSchemes(schemes); in getSupportedSchemes() local
537 if (status != OK) { in getSupportedSchemes()
538 reportMediaDrmErrored(status, __func__); in getSupportedSchemes()
540 return status; in getSupportedSchemes()