/frameworks/base/tools/streaming_proto/test/unit/ |
D | streaming_proto_java.cpp | 125 CodeGeneratorResponse response = generate_java_protostream_code(request); in TEST() local 127 auto generated_file_count = response.file_size(); in TEST() 130 EXPECT_EQ(response.file(0).name(), "test/package/MyTestProtoFile.java"); in TEST() 131 EXPECT_THAT(response.file(0).content(), HasSubstr("class MyTestProtoFile")); in TEST() 132 EXPECT_THAT(response.file(0).content(), HasSubstr("class MyTestMessage")); in TEST() 133 EXPECT_THAT(response.file(0).content(), HasSubstr("long MY_TEST_FIELD")); in TEST() 134 EXPECT_THAT(response.file(0).content(), HasSubstr("long MY_OTHER_TEST_FIELD")); in TEST() 136 EXPECT_EQ(response.file(1).name(), "test/package/MyOtherTestProtoFile.java"); in TEST() 137 EXPECT_THAT(response.file(1).content(), HasSubstr("class MyOtherTestProtoFile")); in TEST() 138 EXPECT_THAT(response.file(1).content(), HasSubstr("class MyOtherTestMessage")); in TEST() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
D | ImsPhoneCommandInterface.java | 173 public void setMute (boolean enableMute, Message response) { in setMute() argument 177 public void getMute (Message response) { in getMute() argument 231 int retry, int messageRef, Message response) { in sendImsGsmSms() argument 236 Message response) { in sendImsCdmaSms() argument 244 public void deleteSmsOnSim(int index, Message response) { in deleteSmsOnSim() argument 248 public void deleteSmsOnRuim(int index, Message response) { in deleteSmsOnRuim() argument 252 public void writeSmsToSim(int status, String smsc, String pdu, Message response) { in writeSmsToSim() argument 256 public void writeSmsToRuim(int status, byte[] pdu, Message response) { in writeSmsToRuim() argument 310 public void queryCallWaiting(int serviceClass, Message response) { in queryCallWaiting() argument 315 Message response) { in setCallWaiting() argument [all …]
|
/frameworks/base/core/java/android/accounts/ |
D | AbstractAccountAuthenticator.java | 151 public void addAccount(IAccountAuthenticatorResponse response, String accountType, in addAccount() argument 163 new AccountAuthenticatorResponse(response), in addAccount() 172 response.onResult(result); in addAccount() 174 response.onError(AccountManager.ERROR_CODE_INVALID_RESPONSE, in addAccount() 178 handleException(response, "addAccount", accountType, e); in addAccount() 184 public void confirmCredentials(IAccountAuthenticatorResponse response, in confirmCredentials() argument 193 new AccountAuthenticatorResponse(response), account, options); in confirmCredentials() 202 response.onResult(result); in confirmCredentials() 205 handleException(response, "confirmCredentials", account.toString(), e); in confirmCredentials() 211 public void getAuthTokenLabel(IAccountAuthenticatorResponse response, in getAuthTokenLabel() argument [all …]
|
D | IAccountAuthenticator.aidl | 33 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 102 void addAccountFromCredentials(in IAccountAuthenticatorResponse response, in Account account, in addAccountFromCredentials() argument [all …]
|
D | IAccountManager.aidl | 40 void hasFeatures(in IAccountManagerResponse response, in Account account, in String[] features, in hasFeatures() argument 42 void getAccountByTypeAndFeatures(in IAccountManagerResponse response, String accountType, in getAccountByTypeAndFeatures() argument 44 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 [all …]
|
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/request/ |
D | SubscribeRequestCoordinator.java | 91 RequestResult createRequestResult(long taskId, CapabilityRequestResponse response, in createRequestResult() argument 96 private static final RequestResultCreator sRequestErrorCreator = (taskId, response, 98 int errorCode = response.getRequestInternalError().orElse(DEFAULT_ERROR_CODE); 99 long retryAfter = response.getRetryAfterMillis(); 104 private static final RequestResultCreator sCommandErrorCreator = (taskId, response, 106 int cmdError = response.getCommandError().orElse(COMMAND_CODE_GENERIC_FAILURE); 108 long retryAfter = response.getRetryAfterMillis(); 113 private static final RequestResultCreator sNetworkRespErrorCreator = (taskId, response, 116 SipDetails details = response.getSipDetails().orElse(null); 122 int errorCode = CapabilityRequestResponse.getCapabilityErrorFromSipCode(response); [all …]
|
D | OptionsRequestCoordinator.java | 75 RequestResult createRequestResult(long taskId, CapabilityRequestResponse response); in createRequestResult() argument 79 private static final RequestResultCreator sRequestErrorCreator = (taskId, response) -> { 80 int errorCode = response.getRequestInternalError().orElse(DEFAULT_ERROR_CODE); 81 long retryAfter = response.getRetryAfterMillis(); 86 private static final RequestResultCreator sCommandErrorCreator = (taskId, response) -> { 87 int cmdError = response.getCommandError().orElse(COMMAND_CODE_GENERIC_FAILURE); 89 long retryAfter = response.getRetryAfterMillis(); 94 private static final RequestResultCreator sNetworkRespCreator = (taskId, response) -> { 95 if (response.isNetworkResponseOK()) { 98 int errorCode = CapabilityRequestResponse.getCapabilityErrorFromSipCode(response); [all …]
|
/frameworks/base/tools/preload/loadclass/ |
D | LoadClass.java | 59 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() 67 response.append(',').append(memoryInfo.nativePrivateDirty); in main() 68 response.append(',').append(memoryInfo.dalvikPrivateDirty); 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() [all …]
|
/frameworks/base/core/java/android/service/quickaccesswallet/ |
D | GetWalletCardsCallbackImpl.java | 63 public void onSuccess(@NonNull GetWalletCardsResponse response) { in onSuccess() argument 64 if (isValidResponse(response)) { in onSuccess() 68 removeLocationsFromResponse(response); in onSuccess() 71 mHandler.post(() -> onSuccessInternal(response)); in onSuccess() 90 private void onSuccessInternal(GetWalletCardsResponse response) { in onSuccessInternal() argument 97 mCallback.onGetWalletCardsSuccess(response); in onSuccessInternal() 116 private boolean isValidResponse(@NonNull GetWalletCardsResponse response) { in isValidResponse() argument 117 if (response == null) { in isValidResponse() 121 if (response.getWalletCards() == null) { in isValidResponse() 125 if (response.getSelectedIndex() < 0) { in isValidResponse() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | ImsIndication.java | 61 Object[] response = new Object[2]; in onConnectionSetupFailure() local 62 response[0] = token; in onConnectionSetupFailure() 63 response[1] = new ConnectionFailureInfo( in onConnectionSetupFailure() 67 if (RIL.RILJ_LOGD) mRil.unsljLogRet(RIL_UNSOL_CONNECTION_SETUP_FAILURE, response); in onConnectionSetupFailure() 70 new AsyncResult(null, response, null)); in onConnectionSetupFailure() 86 int[] response = new int[3]; in notifyAnbr() local 87 response[0] = qosSessionId; in notifyAnbr() 88 response[1] = imsdirection; in notifyAnbr() 89 response[2] = bitsPerSecond; in notifyAnbr() 91 if (RIL.RILJ_LOGD) mRil.unsljLogRet(RIL_UNSOL_NOTIFY_ANBR, response); in notifyAnbr() [all …]
|
D | CommandsInterface.java | 1073 void setMute (boolean enableMute, Message response); in setMute() argument 1075 void getMute (Message response); in getMute() argument 1085 void getSignalStrength (Message response); in getSignalStrength() argument 1099 void getVoiceRegistrationState (Message response); in getVoiceRegistrationState() argument 1111 void getDataRegistrationState (Message response); in getDataRegistrationState() argument 1120 void getOperator(Message response); in getOperator() argument 1158 void sendSMS (String smscPDU, String pdu, Message response); in sendSMS() argument 1168 void sendSMSExpectMore (String smscPDU, String pdu, Message response); in sendSMSExpectMore() argument 1174 void sendCdmaSms(byte[] pdu, Message response); in sendCdmaSms() argument 1181 void sendCdmaSMSExpectMore(byte[] pdu, Message response); in sendCdmaSMSExpectMore() argument [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/ |
D | IccFileHandlerTest.java | 103 Message response = invocation.getArgument(9); in loadEFLinearFixed_WithNullPath() 104 AsyncResult.forMessage(response, "Success", null); in loadEFLinearFixed_WithNullPath() 105 response.sendToTarget(); in loadEFLinearFixed_WithNullPath() 122 Message response = invocation.getArgument(9); in loadEFLinearFixed() 123 AsyncResult.forMessage(response, "Success", null); in loadEFLinearFixed() 124 response.sendToTarget(); in loadEFLinearFixed() 141 Message response = invocation.getArgument(9); in loadEFImgLinearFixed() 142 AsyncResult.forMessage(response, "Success", null); in loadEFImgLinearFixed() 143 response.sendToTarget(); in loadEFImgLinearFixed() 160 Message response = invocation.getArgument(9); in getEFLinearRecordSize_WithNullPath() [all …]
|
D | SIMRecordsTest.java | 181 Message response = invocation.getArgument(1); in setUpSetForbiddenPlmnsTests() 182 AsyncResult.forMessage(response, EF_SIZE, null); in setUpSetForbiddenPlmnsTests() 183 response.sendToTarget(); in setUpSetForbiddenPlmnsTests() 190 Message response = invocation.getArgument(2); in setUpSetForbiddenPlmnsTests() 191 AsyncResult.forMessage(response, true, null); in setUpSetForbiddenPlmnsTests() 192 response.sendToTarget(); in setUpSetForbiddenPlmnsTests() 203 Message response = invocation.getArgument(1); in testGetForbiddenPlmns() 205 AsyncResult.forMessage(response, encodedFplmn, null); in testGetForbiddenPlmns() 206 response.sendToTarget(); in testGetForbiddenPlmns() 226 Message response = invocation.getArgument(1); in testGetForbiddenPlmnsException() [all …]
|
/frameworks/base/omapi/aidl/vts/functional/omapi/ |
D | VtsHalOmapiSeServiceV1_TargetTest.cpp | 495 std::vector<uint8_t> response = {}; in TEST_P() local 496 res = channel->transmit(cmd, &response); in TEST_P() 517 std::vector<uint8_t> response = {}; in TEST_P() local 518 internalTransmitApdu(reader, apdu, response); in TEST_P() 519 ASSERT_GE(response.size(), 2); in TEST_P() 520 ASSERT_EQ((response[response.size() - 1] & 0xFF), (0x00)); in TEST_P() 521 ASSERT_EQ((response[response.size() - 2] & 0xFF), (0x90)); in TEST_P() 525 std::vector<uint8_t> response = {}; in TEST_P() local 526 internalTransmitApdu(reader, apdu, response); in TEST_P() 528 ASSERT_GE(response.size(), 258); in TEST_P() [all …]
|
/frameworks/libs/service_entitlement/tests/src/com/android/libraries/entitlement/ |
D | Ts43OperationTest.java | 339 ManageSubscriptionResponse response = mTs43Operation.manageSubscription(request); in testManageSubscription_continueToWebsheet() local 340 assertThat(response.operationResult()).isEqualTo( in testManageSubscription_continueToWebsheet() 342 assertThat(response.subscriptionResult()).isEqualTo( in testManageSubscription_continueToWebsheet() 344 assertThat(response.subscriptionServiceUrl()).isEqualTo(new URL(SUBSCRIPTION_SERVICE_URL)); in testManageSubscription_continueToWebsheet() 345 assertThat(response.subscriptionServiceUserData()) in testManageSubscription_continueToWebsheet() 360 ManageSubscriptionResponse response = mTs43Operation.manageSubscription(request); in testManageSubscription_downloadProfile() local 361 assertThat(response.operationResult()).isEqualTo( in testManageSubscription_downloadProfile() 363 assertThat(response.subscriptionResult()).isEqualTo( in testManageSubscription_downloadProfile() 365 assertThat(response.downloadInfo().profileIccid()).isEqualTo(ICCID); in testManageSubscription_downloadProfile() 366 assertThat(response.downloadInfo().profileSmdpAddresses()) in testManageSubscription_downloadProfile() [all …]
|
D | EapAkaHelperTest.java | 105 String response = mEapAkaHelper.getEapAkaChallengeResponse(challenge); in getEapAkaChallengeResponse() local 107 assertThat(response).isEqualTo(expectedResponse); in getEapAkaChallengeResponse() 122 String response = mEapAkaHelper.getEapAkaChallengeResponse(challenge); in getEapAkaChallengeResponse_getIccAuthenticationFailed() local 124 assertThat(response).isNull(); in getEapAkaChallengeResponse_getIccAuthenticationFailed() 141 EapAkaHelper.EapAkaResponse response = mEapAkaHelper.getEapAkaResponse(challenge); in getEapAkaResponse() local 143 assertThat(response.response()).isEqualTo(expectedResponse); in getEapAkaResponse() 144 assertThat(response.synchronizationFailureResponse()).isNull(); in getEapAkaResponse() 161 EapAkaHelper.EapAkaResponse response = mEapAkaHelper.getEapAkaResponse(challenge); in getEapAkaResponse_synchronizationFailure() local 163 assertThat(response.response()).isNull(); in getEapAkaResponse_synchronizationFailure() 164 assertThat(response.synchronizationFailureResponse()).isEqualTo(expectedResponse); in getEapAkaResponse_synchronizationFailure() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | SimulatedCommandsVerifier.java | 777 public void setMute(boolean enableMute, Message response) { in setMute() argument 782 public void getMute(Message response) { in getMute() argument 787 public void getSignalStrength(Message response) { in getSignalStrength() argument 792 public void getVoiceRegistrationState(Message response) { in getVoiceRegistrationState() argument 797 public void getDataRegistrationState(Message response) { in getDataRegistrationState() argument 802 public void getOperator(Message response) { in getOperator() argument 827 public void sendSMS(String smscPDU, String pdu, Message response) { in sendSMS() argument 832 public void sendSMSExpectMore(String smscPDU, String pdu, Message response) { in sendSMSExpectMore() argument 837 public void sendCdmaSms(byte[] pdu, Message response) { in sendCdmaSms() argument 842 public void sendCdmaSMSExpectMore(byte[] pdu, Message response) { in sendCdmaSMSExpectMore() argument [all …]
|
D | SimulatedCommands.java | 894 public void sendTerminalResponse(String contents, Message response) { in sendTerminalResponse() argument 895 resultSuccess(response, null); in sendTerminalResponse() 902 public void sendEnvelope(String contents, Message response) { in sendEnvelope() argument 903 resultSuccess(response, null); in sendEnvelope() 910 public void sendEnvelopeWithStatus(String contents, Message response) { in sendEnvelopeWithStatus() argument 911 resultSuccess(response, null); in sendEnvelopeWithStatus() 919 boolean accept, Message response) { in handleCallSetupRequestFromSim() argument 920 resultSuccess(response, null); in handleCallSetupRequestFromSim() 1088 public void deleteSmsOnSim(int index, Message response) { in deleteSmsOnSim() argument 1090 unimplemented(response); in deleteSmsOnSim() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | IccFileHandler.java | 191 Message response in loadEFLinearFixed() local 196 0, 0, GET_RESPONSE_EF_SIZE_BYTES, null, null, mAid, response); in loadEFLinearFixed() 224 Message response = obtainMessage(EVENT_GET_RECORD_SIZE_IMG_DONE, in loadEFImgLinearFixed() local 231 null, null, mAid, response); in loadEFImgLinearFixed() 247 Message response in getEFLinearRecordSize() local 251 0, 0, GET_RESPONSE_EF_SIZE_BYTES, null, null, mAid, response); in getEFLinearRecordSize() 276 Message response = obtainMessage(EVENT_GET_EF_TRANSPARENT_SIZE_DONE, fileid, 0, onLoaded); in getEFTransparentRecordSize() local 287 response); in getEFTransparentRecordSize() 302 Message response = obtainMessage(EVENT_GET_RECORD_SIZE_DONE, in loadEFLinearFixedAll() local 306 0, 0, GET_RESPONSE_EF_SIZE_BYTES, null, null, mAid, response); in loadEFLinearFixedAll() [all …]
|
D | AdnRecordCache.java | 138 private void sendErrorResponse(Message response, String errString) { in sendErrorResponse() argument 139 if (response != null) { in sendErrorResponse() 141 AsyncResult.forMessage(response).exception = e; in sendErrorResponse() 142 response.sendToTarget(); in sendErrorResponse() 158 Message response) { in updateAdnByIndex() argument 162 sendErrorResponse(response, "EF is not known ADN-like EF:0x" + in updateAdnByIndex() 169 sendErrorResponse(response, "Have pending update for EF:0x" + in updateAdnByIndex() 174 mUserWriteResponse.put(efid, response); in updateAdnByIndex() 196 String pin2, Message response) { in updateAdnBySearch() argument 201 sendErrorResponse(response, "EF is not known ADN-like EF:0x" + in updateAdnBySearch() [all …]
|
/frameworks/hardware/interfaces/location/altitude/aidl/vts/functional/ |
D | VtsHalAltitudeServiceTargetTest.cpp | 58 AddMslAltitudeToLocationResponse response; in TEST_P() local 59 service->addMslAltitudeToLocation(request, &response); in TEST_P() 60 ASSERT_NEAR(response.mslAltitudeMeters, -19.2359, 2); in TEST_P() 61 ASSERT_NEAR(response.mslAltitudeAccuracyMeters, 1.05f, 0.5f); in TEST_P() 67 ASSERT_TRUE(response.success); in TEST_P() 81 GetGeoidHeightResponse response; in TEST_P() local 82 service->getGeoidHeight(request, &response); in TEST_P() 83 ASSERT_NEAR(response.geoidHeightMeters, 18.2359, 2); in TEST_P() 84 ASSERT_NEAR(response.geoidHeightErrorMeters, 0.27f, 0.2f); in TEST_P() 85 ASSERT_NEAR(response.expirationDistanceMeters, 2828, 1000); in TEST_P() [all …]
|
/frameworks/base/core/java/android/service/gatekeeper/ |
D | GateKeeperResponse.java | 53 GateKeeperResponse response = new GateKeeperResponse(RESPONSE_RETRY); in createRetryResponse() local 54 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); [all …]
|
/frameworks/base/services/core/java/com/android/server/location/altitude/ |
D | AltitudeService.java | 58 AddMslAltitudeToLocationResponse response = new AddMslAltitudeToLocationResponse(); in addMslAltitudeToLocation() local 62 response.success = false; in addMslAltitudeToLocation() 63 return response; in addMslAltitudeToLocation() 65 response.mslAltitudeMeters = location.getMslAltitudeMeters(); in addMslAltitudeToLocation() 66 response.mslAltitudeAccuracyMeters = location.getMslAltitudeAccuracyMeters(); in addMslAltitudeToLocation() 67 response.success = true; in addMslAltitudeToLocation() 68 return response; in addMslAltitudeToLocation() 77 GetGeoidHeightResponse response = new GetGeoidHeightResponse(); in getGeoidHeight() 78 response.success = false; in getGeoidHeight() 79 return response; in getGeoidHeight()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/ |
D | TestAccountType2Authenticator.java | 47 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
|
/frameworks/base/omapi/java/android/se/omapi/ |
D | Channel.java | 168 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()
|