Lines Matching refs:resultToStatus
46 static ndk::ScopedAStatus resultToStatus(binder_exception_t res, const std::string& msg = "") { in resultToStatus() function
140 return resultToStatus(EX_ILLEGAL_ARGUMENT, "CAK length must be 16 or 32 bytes"); in addTestKey()
144 return resultToStatus(EX_ILLEGAL_ARGUMENT, "Key ID must be same as CAK length"); in addTestKey()
203 return resultToStatus(EX_ILLEGAL_ARGUMENT, "Key not exist"); in calcIcv()
208 return resultToStatus(EX_SERVICE_SPECIFIC, "Internal error"); in calcIcv()
220 return resultToStatus(EX_ILLEGAL_ARGUMENT, "Invalid SAK length"); in generateSak()
224 return resultToStatus(EX_ILLEGAL_ARGUMENT, "Invalid data length"); in generateSak()
235 return resultToStatus(EX_ILLEGAL_ARGUMENT, "Key not exist"); in generateSak()
242 return resultToStatus(EX_SERVICE_SPECIFIC, "Internal error"); in generateSak()
252 return resultToStatus(EX_ILLEGAL_ARGUMENT, in wrapSak()
266 return resultToStatus(EX_ILLEGAL_ARGUMENT, "Key not exist"); in wrapSak()
275 return resultToStatus(EX_SERVICE_SPECIFIC, "Internal error"); in wrapSak()
282 return resultToStatus(EX_ILLEGAL_ARGUMENT, in unwrapSak()
296 return resultToStatus(EX_ILLEGAL_ARGUMENT, "Key not exist"); in unwrapSak()
305 return resultToStatus(EX_SERVICE_SPECIFIC, "Internal error"); in unwrapSak()