Lines Matching refs:reply

76         Parcel data, reply;  in initCheck()  local
78 status_t status = remote()->transact(INIT_CHECK, data, &reply); in initCheck()
83 return reply.readInt32(); in initCheck()
88 Parcel data, reply; in isCryptoSchemeSupported() local
94 status_t status = remote()->transact(IS_CRYPTO_SUPPORTED, data, &reply); in isCryptoSchemeSupported()
99 *isSupported = static_cast<bool>(reply.readInt32()); in isCryptoSchemeSupported()
101 return reply.readInt32(); in isCryptoSchemeSupported()
106 Parcel data, reply; in createPlugin() local
110 status_t status = remote()->transact(CREATE_PLUGIN, data, &reply); in createPlugin()
116 return reply.readInt32(); in createPlugin()
120 Parcel data, reply; in destroyPlugin() local
122 status_t status = remote()->transact(DESTROY_PLUGIN, data, &reply); in destroyPlugin()
127 return reply.readInt32(); in destroyPlugin()
132 Parcel data, reply; in openSession() local
136 status_t status = remote()->transact(OPEN_SESSION, data, &reply); in openSession()
140 readVector(reply, sessionId); in openSession()
142 return reply.readInt32(); in openSession()
146 Parcel data, reply; in closeSession() local
150 status_t status = remote()->transact(CLOSE_SESSION, data, &reply); in closeSession()
155 return reply.readInt32(); in closeSession()
165 Parcel data, reply; in getKeyRequest() local
179 status_t status = remote()->transact(GET_KEY_REQUEST, data, &reply); in getKeyRequest()
184 readVector(reply, request); in getKeyRequest()
185 defaultUrl = reply.readString8(); in getKeyRequest()
186 *keyRequestType = static_cast<DrmPlugin::KeyRequestType>(reply.readInt32()); in getKeyRequest()
188 return reply.readInt32(); in getKeyRequest()
194 Parcel data, reply; in provideKeyResponse() local
199 status_t status = remote()->transact(PROVIDE_KEY_RESPONSE, data, &reply); in provideKeyResponse()
204 readVector(reply, keySetId); in provideKeyResponse()
206 return reply.readInt32(); in provideKeyResponse()
210 Parcel data, reply; in removeKeys() local
214 status_t status = remote()->transact(REMOVE_KEYS, data, &reply); in removeKeys()
219 return reply.readInt32(); in removeKeys()
224 Parcel data, reply; in restoreKeys() local
229 status_t status = remote()->transact(RESTORE_KEYS, data, &reply); in restoreKeys()
234 return reply.readInt32(); in restoreKeys()
239 Parcel data, reply; in queryKeyStatus() local
243 status_t status = remote()->transact(QUERY_KEY_STATUS, data, &reply); in queryKeyStatus()
249 size_t count = reply.readInt32(); in queryKeyStatus()
251 String8 key = reply.readString8(); in queryKeyStatus()
252 String8 value = reply.readString8(); in queryKeyStatus()
255 return reply.readInt32(); in queryKeyStatus()
262 Parcel data, reply; in getProvisionRequest() local
267 status_t status = remote()->transact(GET_PROVISION_REQUEST, data, &reply); in getProvisionRequest()
272 readVector(reply, request); in getProvisionRequest()
273 defaultUrl = reply.readString8(); in getProvisionRequest()
275 return reply.readInt32(); in getProvisionRequest()
281 Parcel data, reply; in provideProvisionResponse() local
285 status_t status = remote()->transact(PROVIDE_PROVISION_RESPONSE, data, &reply); in provideProvisionResponse()
290 readVector(reply, certificate); in provideProvisionResponse()
291 readVector(reply, wrappedKey); in provideProvisionResponse()
293 return reply.readInt32(); in provideProvisionResponse()
297 Parcel data, reply; in getSecureStops() local
300 status_t status = remote()->transact(GET_SECURE_STOPS, data, &reply); in getSecureStops()
306 uint32_t count = reply.readInt32(); in getSecureStops()
309 readVector(reply, secureStop); in getSecureStops()
312 return reply.readInt32(); in getSecureStops()
316 Parcel data, reply; in getSecureStopIds() local
319 status_t status = remote()->transact(GET_SECURE_STOP_IDS, data, &reply); in getSecureStopIds()
325 uint32_t count = reply.readInt32(); in getSecureStopIds()
328 readVector(reply, secureStopId); in getSecureStopIds()
331 return reply.readInt32(); in getSecureStopIds()
335 Parcel data, reply; in getSecureStop() local
339 status_t status = remote()->transact(GET_SECURE_STOP, data, &reply); in getSecureStop()
344 readVector(reply, secureStop); in getSecureStop()
345 return reply.readInt32(); in getSecureStop()
349 Parcel data, reply; in releaseSecureStops() local
353 status_t status = remote()->transact(RELEASE_SECURE_STOPS, data, &reply); in releaseSecureStops()
358 return reply.readInt32(); in releaseSecureStops()
362 Parcel data, reply; in removeSecureStop() local
366 status_t status = remote()->transact(REMOVE_SECURE_STOP, data, &reply); in removeSecureStop()
371 return reply.readInt32(); in removeSecureStop()
375 Parcel data, reply; in removeAllSecureStops() local
378 status_t status = remote()->transact(REMOVE_ALL_SECURE_STOPS, data, &reply); in removeAllSecureStops()
383 return reply.readInt32(); in removeAllSecureStops()
387 Parcel data, reply; in getOfflineLicenseKeySetIds() local
390 status_t status = remote()->transact(GET_OFFLINE_LICENSE_KEYSET_IDS, data, &reply); in getOfflineLicenseKeySetIds()
396 uint32_t count = reply.readInt32(); in getOfflineLicenseKeySetIds()
399 readVector(reply, keySetId); in getOfflineLicenseKeySetIds()
402 return reply.readInt32(); in getOfflineLicenseKeySetIds()
406 Parcel data, reply; in removeOfflineLicense() local
410 status_t status = remote()->transact(REMOVE_OFFLINE_LICENSE, data, &reply); in removeOfflineLicense()
414 return reply.readInt32(); in removeOfflineLicense()
419 Parcel data, reply; in getOfflineLicenseState() local
423 status_t status = remote()->transact(GET_OFFLINE_LICENSE_STATE, data, &reply); in getOfflineLicenseState()
428 *licenseState = static_cast<DrmPlugin::OfflineLicenseState>(reply.readInt32()); in getOfflineLicenseState()
429 return reply.readInt32(); in getOfflineLicenseState()
433 Parcel data, reply; in getPropertyString() local
437 status_t status = remote()->transact(GET_PROPERTY_STRING, data, &reply); in getPropertyString()
442 value = reply.readString8(); in getPropertyString()
443 return reply.readInt32(); in getPropertyString()
448 Parcel data, reply; in getHdcpLevels() local
456 status_t status = remote()->transact(GET_HDCP_LEVELS, data, &reply); in getHdcpLevels()
461 *connected = static_cast<DrmPlugin::HdcpLevel>(reply.readInt32()); in getHdcpLevels()
462 *max = static_cast<DrmPlugin::HdcpLevel>(reply.readInt32()); in getHdcpLevels()
463 return reply.readInt32(); in getHdcpLevels()
467 Parcel data, reply; in getNumberOfSessions() local
475 status_t status = remote()->transact(GET_NUMBER_OF_SESSIONS, data, &reply); in getNumberOfSessions()
480 *open = reply.readInt32(); in getNumberOfSessions()
481 *max = reply.readInt32(); in getNumberOfSessions()
482 return reply.readInt32(); in getNumberOfSessions()
487 Parcel data, reply; in getSecurityLevel() local
496 status_t status = remote()->transact(GET_SECURITY_LEVEL, data, &reply); in getSecurityLevel()
501 *level = static_cast<DrmPlugin::SecurityLevel>(reply.readInt32()); in getSecurityLevel()
502 return reply.readInt32(); in getSecurityLevel()
506 Parcel data, reply; in getPropertyByteArray() local
510 status_t status = remote()->transact(GET_PROPERTY_BYTE_ARRAY, data, &reply); in getPropertyByteArray()
515 readVector(reply, value); in getPropertyByteArray()
516 return reply.readInt32(); in getPropertyByteArray()
520 Parcel data, reply; in setPropertyString() local
525 status_t status = remote()->transact(SET_PROPERTY_STRING, data, &reply); in setPropertyString()
530 return reply.readInt32(); in setPropertyString()
535 Parcel data, reply; in setPropertyByteArray() local
540 status_t status = remote()->transact(SET_PROPERTY_BYTE_ARRAY, data, &reply); in setPropertyByteArray()
545 return reply.readInt32(); in setPropertyByteArray()
552 Parcel data, reply; in getMetrics() local
555 status_t status = remote()->transact(GET_METRICS, data, &reply); in getMetrics()
563 if (reply.readInt32(&reply_status) != OK in getMetrics()
570 status = metrics->readFromParcel(&reply); in getMetrics()
580 Parcel data, reply; in setCipherAlgorithm() local
585 status_t status = remote()->transact(SET_CIPHER_ALGORITHM, data, &reply); in setCipherAlgorithm()
589 return reply.readInt32(); in setCipherAlgorithm()
594 Parcel data, reply; in setMacAlgorithm() local
599 status_t status = remote()->transact(SET_MAC_ALGORITHM, data, &reply); in setMacAlgorithm()
603 return reply.readInt32(); in setMacAlgorithm()
611 Parcel data, reply; in encrypt() local
619 status_t status = remote()->transact(ENCRYPT, data, &reply); in encrypt()
623 readVector(reply, output); in encrypt()
625 return reply.readInt32(); in encrypt()
633 Parcel data, reply; in decrypt() local
641 status_t status = remote()->transact(DECRYPT, data, &reply); in decrypt()
645 readVector(reply, output); in decrypt()
647 return reply.readInt32(); in decrypt()
654 Parcel data, reply; in sign() local
661 status_t status = remote()->transact(SIGN, data, &reply); in sign()
665 readVector(reply, signature); in sign()
667 return reply.readInt32(); in sign()
675 Parcel data, reply; in verify() local
683 status_t status = remote()->transact(VERIFY, data, &reply); in verify()
687 match = (bool)reply.readInt32(); in verify()
688 return reply.readInt32(); in verify()
696 Parcel data, reply; in signRSA() local
704 status_t status = remote()->transact(SIGN_RSA, data, &reply); in signRSA()
708 readVector(reply, signature); in signRSA()
710 return reply.readInt32(); in signRSA()
714 Parcel data, reply; in setListener() local
717 status_t status = remote()->transact(SET_LISTENER, data, &reply); in setListener()
721 return reply.readInt32(); in setListener()
725 void readVector(Parcel &reply, Vector<uint8_t> &vector) const { in readVector()
726 uint32_t size = reply.readInt32(); in readVector()
728 reply.read(vector.editArray(), size); in readVector()
754 void BnDrm::writeVector(Parcel *reply, Vector<uint8_t> const &vector) const { in writeVector() argument
755 reply->writeInt32(vector.size()); in writeVector()
756 reply->write(vector.array(), vector.size()); in writeVector()
760 uint32_t code, const Parcel &data, Parcel *reply, uint32_t flags) { in onTransact() argument
764 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
765 reply->writeInt32(initCheck()); in onTransact()
771 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
779 reply->writeInt32(isSupported); in onTransact()
780 reply->writeInt32(result); in onTransact()
786 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
790 reply->writeInt32(createPlugin(uuid, appPackageName)); in onTransact()
796 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
797 reply->writeInt32(destroyPlugin()); in onTransact()
803 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
808 writeVector(reply, sessionId); in onTransact()
809 reply->writeInt32(result); in onTransact()
815 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
818 reply->writeInt32(closeSession(sessionId)); in onTransact()
824 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
849 writeVector(reply, request); in onTransact()
850 reply->writeString8(defaultUrl); in onTransact()
851 reply->writeInt32(static_cast<int32_t>(keyRequestType)); in onTransact()
852 reply->writeInt32(result); in onTransact()
858 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
863 writeVector(reply, keySetId); in onTransact()
864 reply->writeInt32(result); in onTransact()
870 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
873 reply->writeInt32(removeKeys(keySetId)); in onTransact()
879 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
883 reply->writeInt32(restoreKeys(sessionId, keySetId)); in onTransact()
889 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
895 reply->writeInt32(count); in onTransact()
897 reply->writeString8(infoMap.keyAt(i)); in onTransact()
898 reply->writeString8(infoMap.valueAt(i)); in onTransact()
900 reply->writeInt32(result); in onTransact()
906 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
914 writeVector(reply, request); in onTransact()
915 reply->writeString8(defaultUrl); in onTransact()
916 reply->writeInt32(result); in onTransact()
922 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
928 writeVector(reply, certificate); in onTransact()
929 writeVector(reply, wrappedKey); in onTransact()
930 reply->writeInt32(result); in onTransact()
936 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
940 reply->writeInt32(count); in onTransact()
944 reply->writeInt32(size); in onTransact()
945 reply->write(iter->array(), iter->size()); in onTransact()
948 reply->writeInt32(result); in onTransact()
954 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
958 reply->writeInt32(count); in onTransact()
962 reply->writeInt32(size); in onTransact()
963 reply->write(iter->array(), iter->size()); in onTransact()
966 reply->writeInt32(result); in onTransact()
972 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
976 writeVector(reply, secureStop); in onTransact()
977 reply->writeInt32(result); in onTransact()
983 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
986 reply->writeInt32(releaseSecureStops(ssRelease)); in onTransact()
992 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
995 reply->writeInt32(removeSecureStop(ssid)); in onTransact()
1001 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1002 reply->writeInt32(removeAllSecureStops()); in onTransact()
1008 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1012 reply->writeInt32(connected); in onTransact()
1013 reply->writeInt32(max); in onTransact()
1014 reply->writeInt32(result); in onTransact()
1020 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1023 reply->writeInt32(open); in onTransact()
1024 reply->writeInt32(max); in onTransact()
1025 reply->writeInt32(result); in onTransact()
1031 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1036 reply->writeInt32(level); in onTransact()
1037 reply->writeInt32(result); in onTransact()
1043 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1047 reply->writeInt32(count); in onTransact()
1051 reply->writeInt32(size); in onTransact()
1052 reply->write(iter->array(), iter->size()); in onTransact()
1055 reply->writeInt32(result); in onTransact()
1061 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1064 reply->writeInt32(removeOfflineLicense(keySetId)); in onTransact()
1070 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1076 reply->writeInt32(static_cast<DrmPlugin::OfflineLicenseState>(state)); in onTransact()
1077 reply->writeInt32(result); in onTransact()
1083 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1087 reply->writeString8(value); in onTransact()
1088 reply->writeInt32(result); in onTransact()
1094 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1098 writeVector(reply, value); in onTransact()
1099 reply->writeInt32(result); in onTransact()
1105 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1108 reply->writeInt32(setPropertyString(name, value)); in onTransact()
1114 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1118 reply->writeInt32(setPropertyByteArray(name, value)); in onTransact()
1124 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1133 status_t parcel_result = reply->writeInt32(result); in onTransact()
1135 parcel_result = metrics.writeToParcel(reply); in onTransact()
1142 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1146 reply->writeInt32(setCipherAlgorithm(sessionId, algorithm)); in onTransact()
1152 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1156 reply->writeInt32(setMacAlgorithm(sessionId, algorithm)); in onTransact()
1162 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1169 writeVector(reply, output); in onTransact()
1170 reply->writeInt32(result); in onTransact()
1176 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1183 writeVector(reply, output); in onTransact()
1184 reply->writeInt32(result); in onTransact()
1190 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1196 writeVector(reply, signature); in onTransact()
1197 reply->writeInt32(result); in onTransact()
1203 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1211 reply->writeInt32(match); in onTransact()
1212 reply->writeInt32(result); in onTransact()
1218 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1225 writeVector(reply, signature); in onTransact()
1226 reply->writeInt32(result); in onTransact()
1231 CHECK_INTERFACE(IDrm, data, reply); in onTransact()
1234 reply->writeInt32(setListener(listener)); in onTransact()
1239 return BBinder::onTransact(code, data, reply, flags); in onTransact()