• Home
  • Raw
  • Download

Lines Matching refs:ResponseCode

65 using ConfirmationResponseCode = android::hardware::confirmationui::V1_0::ResponseCode;
91 return {ResponseCode::NO_ERROR, diff_secs < kIdRotationPeriod}; in hadFactoryResetSinceIdRotation()
96 return {ResponseCode::SYSTEM_ERROR, false /* don't care */}; in hadFactoryResetSinceIdRotation()
102 return {ResponseCode::SYSTEM_ERROR, false /* don't care */}; in hadFactoryResetSinceIdRotation()
107 return {ResponseCode::SYSTEM_ERROR, false /* don't care */}; in hadFactoryResetSinceIdRotation()
110 return {ResponseCode::NO_ERROR, true}; in hadFactoryResetSinceIdRotation()
143 return ResponseCode::NO_ERROR; in updateParamsForAttestation()
151 *aidl_return = static_cast<int32_t>(ResponseCode::PERMISSION_DENIED); in getState()
164 static_cast<int32_t>(ResponseCode::PERMISSION_DENIED)); in get()
168 ResponseCode rc; in get()
175 if (rc != ResponseCode::NO_ERROR) { in get()
203 *aidl_return = static_cast<int32_t>(ResponseCode::KEY_ALREADY_EXISTS); in insert()
218 *aidl_return = static_cast<int32_t>(ResponseCode::PERMISSION_DENIED); in del()
225 *aidl_return = static_cast<int32_t>(ResponseCode::KEY_NOT_FOUND); in del()
229 ResponseCode result = mKeyStore->del(lockedEntry); in del()
239 *aidl_return = static_cast<int32_t>(ResponseCode::PERMISSION_DENIED); in exist()
246 static_cast<int32_t>(lockedEntry ? ResponseCode::NO_ERROR : ResponseCode::KEY_NOT_FOUND); in exist()
256 static_cast<int32_t>(ResponseCode::PERMISSION_DENIED)); in list()
261 ResponseCode rc; in list()
273 if (rc != ResponseCode::NO_ERROR) { in list()
297 *aidl_return = static_cast<int32_t>(ResponseCode::PERMISSION_DENIED); in listUidsOfAuthBoundKeys()
309 ResponseCode rc; in listUidsOfAuthBoundKeys()
316 if (rc != ResponseCode::NO_ERROR) { in listUidsOfAuthBoundKeys()
331 if (rc != ResponseCode::NO_ERROR && rc != ResponseCode::LOCKED) { in listUidsOfAuthBoundKeys()
350 *aidl_return = static_cast<int32_t>(ResponseCode::NO_ERROR); in listUidsOfAuthBoundKeys()
357 *aidl_return = static_cast<int32_t>(ResponseCode::PERMISSION_DENIED); in reset()
363 *aidl_return = static_cast<int32_t>(ResponseCode::NO_ERROR); in reset()
371 *aidl_return = static_cast<int32_t>(ResponseCode::PERMISSION_DENIED); in onUserPasswordChanged()
378 *aidl_return = static_cast<int32_t>(ResponseCode::NO_ERROR); in onUserPasswordChanged()
401 *aidl_return = static_cast<int32_t>(ResponseCode::SYSTEM_ERROR); in onUserPasswordChanged()
409 *aidl_return = static_cast<int32_t>(ResponseCode::PERMISSION_DENIED); in onUserAdded()
427 *aidl_return = static_cast<int32_t>(ResponseCode::NO_ERROR); in onUserAdded()
435 *aidl_return = static_cast<int32_t>(ResponseCode::PERMISSION_DENIED); in onUserRemoved()
440 *aidl_return = static_cast<int32_t>(ResponseCode::NO_ERROR); in onUserRemoved()
447 *aidl_return = static_cast<int32_t>(ResponseCode::PERMISSION_DENIED); in lock()
454 *aidl_return = static_cast<int32_t>(ResponseCode(state)); in lock()
460 *aidl_return = static_cast<int32_t>(ResponseCode::NO_ERROR); in lock()
467 *aidl_return = static_cast<int32_t>(ResponseCode::PERMISSION_DENIED); in unlock()
484 *aidl_return = static_cast<int32_t>(ResponseCode(state)); in unlock()
542 *aidl_return = static_cast<int32_t>(ResponseCode::KEY_NOT_FOUND); in ungrant()
598 return AIDL_RETURN(ResponseCode::PERMISSION_DENIED); in clear_uid()
604 ResponseCode rc; in clear_uid()
613 if (rc != ResponseCode::NO_ERROR) { in clear_uid()
622 if (rc == ResponseCode::NO_ERROR && keyBlob.isCriticalToDeviceEncryption()) { in clear_uid()
629 return AIDL_RETURN(ResponseCode::NO_ERROR); in clear_uid()
645 return AIDL_RETURN(ResponseCode::NO_ERROR); in addRngEntropy()
659 << int32_t(*_aidl_return == static_cast<int32_t>(ResponseCode::NO_ERROR)) in generateKey()
670 return AIDL_RETURN(ResponseCode::PERMISSION_DENIED); in generateKey()
677 return AIDL_RETURN(ResponseCode::PERMISSION_DENIED); in generateKey()
690 return AIDL_RETURN(ResponseCode::KEY_ALREADY_EXISTS); in generateKey()
706 return AIDL_RETURN(ResponseCode::NO_ERROR); in generateKey()
721 return AIDL_RETURN(ResponseCode::PERMISSION_DENIED); in getKeyCharacteristics()
726 ResponseCode rc; in getKeyCharacteristics()
734 if (rc != ResponseCode::NO_ERROR) { in getKeyCharacteristics()
740 return AIDL_RETURN(ResponseCode::SYSTEM_ERROR); in getKeyCharacteristics()
754 return AIDL_RETURN(ResponseCode::NO_ERROR); in getKeyCharacteristics()
766 << int32_t(*_aidl_return == static_cast<int32_t>(ResponseCode::NO_ERROR)) in importKey()
778 return AIDL_RETURN(ResponseCode::PERMISSION_DENIED); in importKey()
793 return AIDL_RETURN(ResponseCode::KEY_ALREADY_EXISTS); in importKey()
809 return AIDL_RETURN(ResponseCode::NO_ERROR); in importKey()
824 return AIDL_RETURN(ResponseCode::PERMISSION_DENIED); in exportKey()
846 return AIDL_RETURN(ResponseCode::NO_ERROR); in exportKey()
859 return AIDL_RETURN(ResponseCode::PERMISSION_DENIED); in begin()
863 return AIDL_RETURN(ResponseCode::PERMISSION_DENIED); in begin()
873 ResponseCode rc; in begin()
878 if (rc == ResponseCode::LOCKED && keyBlob.isSuperEncrypted()) { in begin()
881 if (rc != ResponseCode::NO_ERROR) return AIDL_RETURN(rc); in begin()
890 result_.resultCode == ResponseCode::OP_AUTH_NEEDED) { in begin()
896 return AIDL_RETURN(ResponseCode::NO_ERROR); in begin()
920 return AIDL_RETURN(ResponseCode::NO_ERROR); in update()
946 return AIDL_RETURN(ResponseCode::NO_ERROR); in finish()
960 return AIDL_RETURN(ResponseCode::NO_ERROR); in abort()
972 *aidl_return = static_cast<int32_t>(ResponseCode::PERMISSION_DENIED); in addAuthToken()
989 *aidl_return = static_cast<int32_t>(ResponseCode::NO_ERROR); in addAuthToken()
1050 cb->onFinished(KeyStoreServiceReturnCode(ResponseCode::SYSTEM_ERROR), {}); in attestKey()
1060 return AIDL_RETURN(ResponseCode::NO_ERROR); in attestKey()
1105 return AIDL_RETURN(ResponseCode::SYSTEM_ERROR); in attestDeviceIds()
1127 cb->onFinished(KeyStoreServiceReturnCode(ResponseCode::SYSTEM_ERROR), {}); in attestDeviceIds()
1147 cb->onFinished(KeyStoreServiceReturnCode(ResponseCode::SYSTEM_ERROR), {}); in attestDeviceIds()
1161 return AIDL_RETURN(ResponseCode::NO_ERROR); in attestDeviceIds()
1168 *aidl_return = static_cast<int32_t>(ResponseCode::NO_ERROR); in onDeviceOffBody()
1183 return AIDL_RETURN(ResponseCode::PERMISSION_DENIED); in importWrappedKey()
1203 return AIDL_RETURN(ResponseCode::KEY_ALREADY_EXISTS); in importWrappedKey()
1220 return AIDL_RETURN(ResponseCode::NO_ERROR); in importWrappedKey()
1317 return ResponseCode::PERMISSION_DENIED; in checkBinderPermissionAndKeystoreState()
1322 return static_cast<ResponseCode>(state); in checkBinderPermissionAndKeystoreState()
1325 return ResponseCode::NO_ERROR; in checkBinderPermissionAndKeystoreState()
1363 return AIDL_RETURN(ResponseCode::PERMISSION_DENIED); in onKeyguardVisibilityChanged()
1369 return AIDL_RETURN(ResponseCode::PERMISSION_DENIED); in onKeyguardVisibilityChanged()
1373 return AIDL_RETURN(ResponseCode::NO_ERROR); in onKeyguardVisibilityChanged()