Lines Matching refs:status
202 static status_t toStatusT(Status status) {
203 switch (status) {
360 [&](Status status, const sp<IDrmPlugin>& hPlugin) {
361 if (status != Status::OK) {
591 [&](Status status,const hidl_vec<uint8_t>& id) {
592 if (status == Status::OK) {
595 err = toStatusT(status);
600 [&](Status status, const hidl_vec<uint8_t>& id) {
601 if (status == Status::OK) {
604 err = toStatusT(status);
640 Return<Status> status = mPlugin->closeSession(toHidlVec(sessionId));
641 if (status.isOk()) {
642 if (status == Status::OK) {
651 status_t response = toStatusT(status);
692 [&](Status status, const hidl_vec<uint8_t>& hRequest,
696 if (status == Status::OK) {
720 err = toStatusT(status);
728 [&](Status status, const hidl_vec<uint8_t>& hRequest,
732 if (status == Status::OK) {
750 err = toStatusT(status);
772 [&](Status status, const hidl_vec<uint8_t>& hKeySetId) {
773 if (status == Status::OK) {
776 err = toStatusT(status);
788 Return<Status> status = mPlugin->removeKeys(toHidlVec(keySetId));
789 return status.isOk() ? toStatusT(status) : DEAD_OBJECT;
799 Return<Status> status = mPlugin->restoreKeys(toHidlVec(sessionId),
801 return status.isOk() ? toStatusT(status) : DEAD_OBJECT;
816 [&](Status status, const hidl_vec<KeyValue>& map) {
817 if (status == Status::OK) {
820 err = toStatusT(status);
837 [&](Status status, const hidl_vec<uint8_t>& hRequest,
839 if (status == Status::OK) {
843 err = toStatusT(status);
860 [&](Status status, const hidl_vec<uint8_t>& hCertificate,
862 if (status == Status::OK) {
866 err = toStatusT(status);
882 [&](Status status, const hidl_vec<SecureStop>& hSecureStops) {
883 if (status == Status::OK) {
886 err = toStatusT(status);
908 [&](Status status, const hidl_vec<SecureStopId>& hSecureStopIds) {
909 if (status == Status::OK) {
912 err = toStatusT(status);
927 [&](Status status, const SecureStop& hSecureStop) {
928 if (status == Status::OK) {
931 err = toStatusT(status);
942 Return<Status> status(Status::ERROR_DRM_UNKNOWN);
946 status = mPluginV1_1->releaseSecureStops(secureStopRelease);
948 status = mPlugin->releaseSecureStop(toHidlVec(ssRelease));
950 return status.isOk() ? toStatusT(status) : DEAD_OBJECT;
964 Return<Status> status = mPluginV1_1->removeSecureStop(toHidlVec(ssid));
965 return status.isOk() ? toStatusT(status) : DEAD_OBJECT;
972 Return<Status> status(Status::ERROR_DRM_UNKNOWN);
974 status = mPluginV1_1->removeAllSecureStops();
976 status = mPlugin->releaseAllSecureStops();
978 return status.isOk() ? toStatusT(status) : DEAD_OBJECT;
999 [&](Status status, const HdcpLevel& hConnected, const HdcpLevel& hMax) {
1000 if (status == Status::OK) {
1004 err = toStatusT(status);
1028 [&](Status status, uint32_t hOpen, uint32_t hMax) {
1029 if (status == Status::OK) {
1033 err = toStatusT(status);
1057 [&](Status status, SecurityLevel hLevel) {
1058 if (status == Status::OK) {
1061 err = toStatusT(status);
1081 [&](Status status, const hidl_string& hValue) {
1082 if (status == Status::OK) {
1085 err = toStatusT(status);
1105 [&](Status status, const hidl_vec<uint8_t>& hValue) {
1106 if (status == Status::OK) {
1109 err = toStatusT(status);
1124 Return<Status> status = mPlugin->setPropertyString(toHidlString(name),
1126 return status.isOk() ? toStatusT(status) : DEAD_OBJECT;
1134 Return<Status> status = mPlugin->setPropertyByteArray(toHidlString(name),
1136 return status.isOk() ? toStatusT(status) : DEAD_OBJECT;
1165 Return<void> status = mPluginV1_1->getMetrics(
1166 [&](Status status, hidl_vec<DrmMetricGroup> pluginMetrics) {
1167 if (status != Status::OK) {
1168 ALOGV("Error getting plugin metrics: %d", status);
1176 err = toStatusT(status);
1178 return status.isOk() ? err : DEAD_OBJECT;
1191 Return<Status> status = mPlugin->setCipherAlgorithm(toHidlVec(sessionId),
1193 return status.isOk() ? toStatusT(status) : DEAD_OBJECT;
1203 Return<Status> status = mPlugin->setMacAlgorithm(toHidlVec(sessionId),
1205 return status.isOk() ? toStatusT(status) : DEAD_OBJECT;
1220 [&](Status status, const hidl_vec<uint8_t>& hOutput) {
1221 if (status == Status::OK) {
1224 err = toStatusT(status);
1243 [&](Status status, const hidl_vec<uint8_t>& hOutput) {
1244 if (status == Status::OK) {
1247 err = toStatusT(status);
1266 [&](Status status, const hidl_vec<uint8_t>& hSignature) {
1267 if (status == Status::OK) {
1270 err = toStatusT(status);
1289 [&](Status status, bool hMatch) {
1290 if (status == Status::OK) {
1295 err = toStatusT(status);
1318 [&](Status status, const hidl_vec<uint8_t>& hSignature) {
1319 if (status == Status::OK) {
1322 err = toStatusT(status);