Home
last modified time | relevance | path

Searched refs:response (Results 1 – 25 of 254) sorted by relevance

1234567891011

/aosp14/system/core/trusty/keymaster/
H A DTrustyKeymaster.cpp151 ForwardCommand(KM_CONFIGURE, request, response); in Configure()
245 return response; in GetHmacSharingParameters()
252 return response; in ComputeSharedHmac()
259 return response; in VerifyAuthorization()
265 return response; in GetVersion2()
271 return response; in EarlyBootEnded()
277 return response; in DeviceLocked()
284 return response; in ConfigureVendorPatchlevel()
290 return response; in GetRootOfTrust()
294 GetHwInfoResponse response(message_version()); in GetHwInfo() local
[all …]
/aosp14/system/core/trusty/keymaster/include/trusty_keymaster/
H A DTrustyKeymaster.h29 void GetVersion(const GetVersionRequest& request, GetVersionResponse* response);
31 SupportedAlgorithmsResponse* response);
33 SupportedBlockModesResponse* response);
35 SupportedPaddingModesResponse* response);
37 SupportedDigestsResponse* response);
39 SupportedImportFormatsResponse* response);
41 SupportedExportFormatsResponse* response);
43 void Configure(const ConfigureRequest& request, ConfigureResponse* response);
49 GetKeyCharacteristicsResponse* response);
50 void ImportKey(const ImportKeyRequest& request, ImportKeyResponse* response);
[all …]
/aosp14/system/core/libappfuse/tests/
H A DFuseBufferTest.cc116 FuseResponse response; in TEST() local
118 memset(response.read_data, 'a', 10); in TEST()
120 response.Reset(0, -1, 2); in TEST()
127 response.Reset(5, -4, 3); in TEST()
131 EXPECT_EQ(0, response.read_data[0]); in TEST()
132 EXPECT_EQ(0, response.read_data[1]); in TEST()
133 EXPECT_EQ(0, response.read_data[2]); in TEST()
134 EXPECT_EQ(0, response.read_data[3]); in TEST()
140 FuseResponse response; in TEST() local
144 response.ResetHeader(0, -1, 2); in TEST()
[all …]
/aosp14/system/core/trusty/keymaster/keymint/
H A DTrustyKeyMintDevice.cpp134 if (response.error != KM_ERROR_OK) return kmError2ScopedAStatus(response.error); in generateKey()
138 convertKeyCharacteristics(response.unenforced, response.enforced); in generateKey()
155 if (response.error != KM_ERROR_OK) return kmError2ScopedAStatus(response.error); in getKeyCharacteristics()
157 *characteristics = convertKeyCharacteristics(response.unenforced, response.enforced, in getKeyCharacteristics()
181 if (response.error != KM_ERROR_OK) { in importKey()
187 convertKeyCharacteristics(response.unenforced, response.enforced); in importKey()
211 if (response.error != KM_ERROR_OK) { in importWrappedKey()
217 convertKeyCharacteristics(response.unenforced, response.enforced); in importWrappedKey()
317 if (response.error != KM_ERROR_OK) return kmError2ScopedAStatus(response.error); in convertStorageKeyToEphemeral()
318 if (response.key_data) { in convertStorageKeyToEphemeral()
[all …]
H A DTrustyRemotelyProvisionedComponentDevice.cpp79 GetHwInfoResponse response = impl_->GetHwInfo(); in getHardwareInfo() local
80 if (response.error != KM_ERROR_OK) { in getHardwareInfo()
84 info->versionNumber = response.version; in getHardwareInfo()
87 info->uniqueId = std::move(response.uniqueId); in getHardwareInfo()
97 impl_->GenerateRkpKey(request, &response); in generateEcdsaP256KeyPair()
98 if (response.error != KM_ERROR_OK) { in generateEcdsaP256KeyPair()
121 impl_->GenerateCsr(request, &response); in generateCertificateRequest()
123 if (response.error != KM_ERROR_OK) { in generateCertificateRequest()
144 impl_->GenerateCsrV2(request, &response); in generateCertificateRequestV2()
146 if (response.error != KM_ERROR_OK) { in generateCertificateRequestV2()
[all …]
H A DTrustyKeyMintOperation.cpp66 impl_->UpdateOperation(request, &response); in updateAad()
68 return kmError2ScopedAStatus(response.error); in updateAad()
101 impl_->UpdateOperation(request, &response); in update()
102 if (response.error != KM_ERROR_OK) { in update()
107 input_pos += response.input_consumed; in update()
108 output->insert(output->end(), response.output.begin(), response.output.end()); in update()
163 impl_->FinishOperation(request, &response); in finish()
166 if (response.error != KM_ERROR_OK) return kmError2ScopedAStatus(response.error); in finish()
168 *output = {response.output.begin(), response.output.end()}; in finish()
177 impl_->AbortOperation(request, &response); in abort()
[all …]
H A DTrustySharedSecret.cpp29 auto response = impl_->GetHmacSharingParameters(); in getSharedSecretParameters() local
30 params->seed = kmBlob2vector(response.params.seed); in getSharedSecretParameters()
31 params->nonce = {std::begin(response.params.nonce), std::end(response.params.nonce)}; in getSharedSecretParameters()
32 return kmError2ScopedAStatus(response.error); in getSharedSecretParameters()
49 auto response = impl_->ComputeSharedHmac(request); in computeSharedSecret() local
50 if (response.error == KM_ERROR_OK) *sharingCheck = kmBlob2vector(response.sharing_check); in computeSharedSecret()
51 return kmError2ScopedAStatus(response.error); in computeSharedSecret()
H A DTrustySecureClock.cpp33 auto response = impl_->VerifyAuthorization(request); in generateTimeStamp() local
34 if (response.error != KM_ERROR_OK) return kmError2ScopedAStatus(response.error); in generateTimeStamp()
36 token->challenge = response.token.challenge; in generateTimeStamp()
37 token->timestamp.milliSeconds = static_cast<int64_t>(response.token.timestamp); in generateTimeStamp()
38 token->mac = kmBlob2vector(response.token.mac); in generateTimeStamp()
/aosp14/frameworks/base/core/java/android/accounts/
H A DAbstractAccountAuthenticator.java175 response.onResult(result); in addAccount()
205 response.onResult(result); in confirmCredentials()
233 response.onResult(result); in getAuthTokenLabel()
261 response.onResult(result); in getAuthToken()
292 response.onResult(result); in updateCredentials()
310 response.onResult(result); in editProperties()
743 response.onResult(result); in getAccountCredentialsForCloning()
769 response.onResult(result); in addAccountFromCredentials()
826 response.onResult(result); in startAddAccountSession()
880 response.onResult(result); in startUpdateCredentialsSession()
[all …]
H A DIAccountAuthenticator.aidl33 void addAccount(in IAccountAuthenticatorResponse response, String accountType, in addAccount() argument
41 void confirmCredentials(in IAccountAuthenticatorResponse response, in Account account, in confirmCredentials() argument
49 void getAuthToken(in IAccountAuthenticatorResponse response, in Account account, in getAuthToken() argument
57 void getAuthTokenLabel(in IAccountAuthenticatorResponse response, String authTokenType); in getAuthTokenLabel() argument
64 void updateCredentials(in IAccountAuthenticatorResponse response, in Account account, in updateCredentials() argument
72 void editProperties(in IAccountAuthenticatorResponse response, String accountType); in editProperties() argument
80 void hasFeatures(in IAccountAuthenticatorResponse response, in Account account, in hasFeatures() argument
88 void getAccountRemovalAllowed(in IAccountAuthenticatorResponse response, in Account account); in getAccountRemovalAllowed() argument
94 void getAccountCredentialsForCloning(in IAccountAuthenticatorResponse response, in getAccountCredentialsForCloning() argument
110 void startAddAccountSession(in IAccountAuthenticatorResponse response, String accountType, in startAddAccountSession() argument
[all …]
H A DIAccountManager.aidl44 void getAccountsByFeatures(in IAccountManagerResponse response, String accountType, in getAccountsByFeatures() argument
47 void removeAccountAsUser(in IAccountManagerResponse response, in Account account, in removeAccountAsUser() argument
50 void copyAccountToUser(in IAccountManagerResponse response, in Account account, in copyAccountToUser() argument
60 void getAuthToken(in IAccountManagerResponse response, in Account account, in getAuthToken() argument
63 void addAccount(in IAccountManagerResponse response, String accountType, in addAccount() argument
66 void addAccountAsUser(in IAccountManagerResponse response, String accountType, in addAccountAsUser() argument
69 void updateCredentials(in IAccountManagerResponse response, in Account account, in updateCredentials() argument
71 void editProperties(in IAccountManagerResponse response, String accountType, in editProperties() argument
73 void confirmCredentialsAsUser(in IAccountManagerResponse response, in Account account, in confirmCredentialsAsUser() argument
76 void getAuthTokenLabel(in IAccountManagerResponse response, String accountType, in getAuthTokenLabel() argument
[all …]
/aosp14/system/core/trusty/keymaster/3.0/
H A DTrustyKeymaster3Device.cpp244 if (response.error == KM_ERROR_OK) { in generateKey()
265 if (response.error == KM_ERROR_OK) { in getKeyCharacteristics()
283 impl_->ImportKey(request, &response); in importKey()
287 if (response.error == KM_ERROR_OK) { in importKey()
310 if (response.error == KM_ERROR_OK) { in exportKey()
311 resultKeyBlob.setToExternal(response.key_data, response.key_data_length); in exportKey()
328 if (response.error == KM_ERROR_OK) { in attestKey()
345 if (response.error == KM_ERROR_OK) { in upgradeKey()
387 if (response.error == KM_ERROR_OK) { in begin()
391 _hidl_cb(legacy_enum_conversion(response.error), resultParams, response.op_handle); in begin()
[all …]
/aosp14/system/core/trusty/keymaster/4.0/
H A DTrustyKeymaster4Device.cpp302 if (response.error == KM_ERROR_OK) { in computeSharedHmac()
359 if (response.error == KM_ERROR_OK) { in generateKey()
380 if (response.error == KM_ERROR_OK) { in getKeyCharacteristics()
402 if (response.error == KM_ERROR_OK) { in importKey()
428 if (response.error == KM_ERROR_OK) { in importWrappedKey()
451 if (response.error == KM_ERROR_OK) { in exportKey()
452 resultKeyBlob.setToExternal(response.key_data, response.key_data_length); in exportKey()
469 if (response.error == KM_ERROR_OK) { in attestKey()
486 if (response.error == KM_ERROR_OK) { in upgradeKey()
529 if (response.error == KM_ERROR_OK) { in begin()
[all …]
/aosp14/system/core/libappfuse/
H A DFuseAppLoop.cc149 FuseSimpleResponse response; in ReplySimple() local
151 return response.Write(fd_); in ReplySimple()
155 FuseSimpleResponse response; in ReplyLookup() local
163 return response.Write(fd_); in ReplyLookup()
168 FuseSimpleResponse response; in ReplyGetAttr() local
174 return response.Write(fd_); in ReplyGetAttr()
178 FuseSimpleResponse response; in ReplyOpen() local
180 response.open_out.fh = fh; in ReplyOpen()
181 return response.Write(fd_); in ReplyOpen()
186 FuseSimpleResponse response; in ReplyWrite() local
[all …]
/aosp14/system/core/trusty/gatekeeper/
H A Dtrusty_gatekeeper.cpp92 EnrollResponse response; in enroll() local
93 auto error = Send(request, &response); in enroll()
99 } else if (response.error != ERROR_NONE) { in enroll()
127 VerifyResponse response; in verify() local
129 auto error = Send(request, &response); in verify()
135 } else if (response.error != ERROR_NONE) { in verify()
153 DeleteUserResponse response; in deleteUser() local
154 auto error = Send(request, &response); in deleteUser()
173 DeleteAllUsersResponse response; in deleteAllUsers() local
174 auto error = Send(request, &response); in deleteAllUsers()
[all …]
H A Dtrusty_gatekeeper.h84 GateKeeperMessage* response);
86 gatekeeper_error_t Send(const EnrollRequest& request, EnrollResponse* response) { in Send() argument
87 return Send(GK_ENROLL, request, response); in Send()
90 gatekeeper_error_t Send(const VerifyRequest& request, VerifyResponse* response) { in Send() argument
91 return Send(GK_VERIFY, request, response); in Send()
94 gatekeeper_error_t Send(const DeleteUserRequest& request, DeleteUserResponse* response) { in Send() argument
95 return Send(GK_DELETE_USER, request, response); in Send()
99 DeleteAllUsersResponse* response) { in Send() argument
100 return Send(GK_DELETE_ALL_USERS, request, response); in Send()
/aosp14/frameworks/base/omapi/aidl/vts/functional/omapi/
H A DVtsHalOmapiSeServiceV1_TargetTest.cpp520 ASSERT_EQ((response[response.size() - 1] & 0xFF), (0x00)); in TEST_P()
521 ASSERT_EQ((response[response.size() - 2] & 0xFF), (0x90)); in TEST_P()
555 ASSERT_EQ(response[response.size() - 1], SW[1]); in TEST_P()
556 ASSERT_EQ(response[response.size() - 2], SW[0]); in TEST_P()
567 ASSERT_EQ(response[response.size() - 1], SW[1]); in TEST_P()
568 ASSERT_EQ(response[response.size() - 2], SW[0]); in TEST_P()
583 ASSERT_EQ(response[response.size() - 1], SW[1]); in TEST_P()
584 ASSERT_EQ(response[response.size() - 2], SW[0]); in TEST_P()
620 ASSERT_EQ((response[response.size() - 1] & 0xFF), (0x00)); in TEST_P()
621 ASSERT_EQ((response[response.size() - 2] & 0xFF), (0x90)); in TEST_P()
[all …]
/aosp14/frameworks/base/core/java/android/service/quickaccesswallet/
H A DGetWalletCardsCallbackImpl.java64 if (isValidResponse(response)) { in onSuccess()
68 removeLocationsFromResponse(response); in onSuccess()
71 mHandler.post(() -> onSuccessInternal(response)); in onSuccess()
97 mCallback.onGetWalletCardsSuccess(response); in onSuccessInternal()
117 if (response == null) { in isValidResponse()
121 if (response.getWalletCards() == null) { in isValidResponse()
125 if (response.getSelectedIndex() < 0) { in isValidResponse()
129 if (!response.getWalletCards().isEmpty() in isValidResponse()
130 && response.getSelectedIndex() >= response.getWalletCards().size()) { in isValidResponse()
138 for (WalletCard walletCard : response.getWalletCards()) { in isValidResponse()
[all …]
/aosp14/frameworks/base/tools/preload/loadclass/
H A DLoadClass.java59 StringBuilder response = new StringBuilder("DECAFBAD"); in main() local
64 response.append(',').append(memoryInfo.nativeSharedDirty); in main()
65 response.append(',').append(memoryInfo.dalvikSharedDirty); in main()
66 response.append(',').append(memoryInfo.otherSharedDirty); in main()
69 response.append(',').append(memoryInfo.otherPrivateDirty); in main()
71 response.append(',').append(allocCount); in main()
72 response.append(',').append(allocSize); in main()
73 response.append(',').append(freedCount); in main()
74 response.append(',').append(freedSize); in main()
75 response.append(',').append(nativeHeapSize); in main()
[all …]
/aosp14/system/core/debuggerd/tombstoned/
H A Dintercept_manager.cpp123 InterceptResponse response = {}; in intercept_request_cb() local
125 snprintf(response.error_message, sizeof(response.error_message), "invalid intercept request"); in intercept_request_cb()
126 TEMP_FAILURE_RETRY(write(sockfd, &response, sizeof(response))); in intercept_request_cb()
135 InterceptResponse response = {}; in intercept_request_cb() local
137 snprintf(response.error_message, sizeof(response.error_message), in intercept_request_cb()
140 TEMP_FAILURE_RETRY(write(sockfd, &response, sizeof(response))); in intercept_request_cb()
141 LOG(WARNING) << response.error_message; in intercept_request_cb()
147 InterceptResponse response = {}; in intercept_request_cb() local
149 if (TEMP_FAILURE_RETRY(write(sockfd, &response, sizeof(response))) == -1) { in intercept_request_cb()
228 InterceptResponse response = {}; in GetIntercept() local
[all …]
/aosp14/system/core/fastboot/
H A Dfastboot_driver.cpp107 return GetVar("all", &tmp, response); in GetVarAll()
127 response, info); in SetActive()
134 auto result = RawCommand(raw, response, info); in SnapshotUpdateCommand()
216 return HandleResponse(response, info); in Download()
222 auto result = Download(buf, response, info); in Download()
246 return HandleResponse(response, info); in Download()
296 return HandleResponse(response, info); in Download()
341 return HandleResponse(response, info); in RunAndReadBuffer()
450 return HandleResponse(response, info, dsize); in RawCommand()
457 if ((ret = RawCommand(cmd, response, info))) { in DownloadCommand()
[all …]
H A Dfastboot_driver.h74 std::string* response = nullptr,
87 RetCode Erase(const std::string& partition, std::string* response = nullptr,
89 RetCode Flash(const std::string& partition, std::string* response = nullptr,
93 RetCode GetVarAll(std::vector<std::string>* response);
94 RetCode Reboot(std::string* response = nullptr,
96 RetCode RebootTo(std::string target, std::string* response = nullptr,
99 RetCode SetActive(const std::string& slot, std::string* response = nullptr,
101 RetCode Upload(const std::string& outfile, std::string* response = nullptr,
138 RetCode DownloadCommand(uint32_t size, std::string* response = nullptr,
140 RetCode HandleResponse(std::string* response = nullptr,
[all …]
/aosp14/frameworks/base/core/java/android/service/gatekeeper/
H A DGateKeeperResponse.java54 response.mTimeout = timeout; in createRetryResponse()
55 return response; in createRetryResponse()
60 GateKeeperResponse response = new GateKeeperResponse(RESPONSE_OK); in createOkResponse() local
61 response.mPayload = payload; in createOkResponse()
62 response.mShouldReEnroll = shouldReEnroll; in createOkResponse()
63 return response; in createOkResponse()
76 final GateKeeperResponse response;
78 response = createRetryResponse(source.readInt());
87 response = createOkResponse(payload, shouldReEnroll);
89 response = createGenericResponse(responseCode);
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
H A DTestAccountType2Authenticator.java47 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
54 AccountAuthenticatorResponse response, in addAccount() argument
65 AccountAuthenticatorResponse response, in confirmCredentials() argument
74 AccountAuthenticatorResponse response, in getAuthToken() argument
90 AccountAuthenticatorResponse response, in updateCredentials() argument
100 AccountAuthenticatorResponse response, in hasFeatures() argument
109 AccountAuthenticatorResponse response, in startAddAccountSession() argument
120 AccountAuthenticatorResponse response, in startUpdateCredentialsSession() argument
131 public Bundle finishSession(AccountAuthenticatorResponse response, in finishSession() argument
140 final AccountAuthenticatorResponse response, in isCredentialsUpdateSuggested() argument
/aosp14/frameworks/base/omapi/java/android/se/omapi/
H A DChannel.java168 byte[] response = mChannel.transmit(command); in transmit()
169 if (response == null) { in transmit()
172 return response; in transmit()
205 byte[] response; in getSelectResponse()
207 response = mChannel.getSelectResponse(); in getSelectResponse()
212 if (response != null && response.length == 0) { in getSelectResponse()
213 response = null; in getSelectResponse()
215 return response; in getSelectResponse()

1234567891011