/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/ |
D | TestUtils.java | 35 private void addTransactionId(int transactionId) { in addTransactionId() argument 36 if (transactionId == 0) { in addTransactionId() 39 mTransactionIds.append(transactionId, mTransactionIds.get(transactionId) + 1); in addTransactionId() 50 public boolean enableAndConfigure(short transactionId, ConfigRequest configRequest, in enableAndConfigure() argument 53 addTransactionId(transactionId); in enableAndConfigure() 57 public boolean disable(short transactionId) { in disable() argument 58 addTransactionId(transactionId); in disable() 62 public boolean publish(short transactionId, byte publishId, PublishConfig publishConfig) { in publish() argument 63 addTransactionId(transactionId); in publish() 67 public boolean subscribe(short transactionId, byte subscribeId, in subscribe() argument [all …]
|
D | WifiAwareStateManagerTest.java | 187 ArgumentCaptor<Short> transactionId = ArgumentCaptor.forClass(Short.class); in setUp() local 190 verify(mMockNative).getCapabilities(transactionId.capture()); in setUp() 191 mDut.onCapabilitiesUpdateResponse(transactionId.getValue(), getCapabilities()); in setUp() 267 ArgumentCaptor<Short> transactionId = ArgumentCaptor.forClass(Short.class); in testRequestMacAddresses() local 287 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), in testRequestMacAddresses() 289 mDut.onConfigSuccessResponse(transactionId.getValue()); in testRequestMacAddresses() 305 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), in testRequestMacAddresses() 307 mDut.onSessionConfigSuccessResponse(transactionId.getValue(), false, subscribeId1); in testRequestMacAddresses() 313 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), in testRequestMacAddresses() 315 mDut.onSessionConfigSuccessResponse(transactionId.getValue(), false, subscribeId2); in testRequestMacAddresses() [all …]
|
D | WifiAwareDataPathStateManagerTest.java | 213 ArgumentCaptor<Short> transactionId = ArgumentCaptor.forClass(Short.class); in testCreateDeleteAllInterfaces() local 220 inOrder.verify(mMockNative).getCapabilities(transactionId.capture()); in testCreateDeleteAllInterfaces() 221 mDut.onCapabilitiesUpdateResponse(transactionId.getValue(), capabilities); in testCreateDeleteAllInterfaces() 228 inOrder.verify(mMockNative).createAwareNetworkInterface(transactionId.capture(), in testCreateDeleteAllInterfaces() 232 mDut.onCreateDataPathInterfaceResponse(transactionId.getValue(), true, 0); in testCreateDeleteAllInterfaces() 243 inOrder.verify(mMockNative).deleteAwareNetworkInterface(transactionId.capture(), in testCreateDeleteAllInterfaces() 249 mDut.onDeleteDataPathInterfaceResponse(transactionId.getValue(), false, 0); in testCreateDeleteAllInterfaces() 251 mDut.onDeleteDataPathInterfaceResponse(transactionId.getValue(), true, 0); in testCreateDeleteAllInterfaces() 265 inOrder.verify(mMockNative).deleteAwareNetworkInterface(transactionId.capture(), in testCreateDeleteAllInterfaces() 269 mDut.onDeleteDataPathInterfaceResponse(transactionId.getValue(), true, 0); in testCreateDeleteAllInterfaces() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareNativeApi.java | 87 private void recordTransactionId(int transactionId) { in recordTransactionId() argument 90 if (transactionId == 0) { in recordTransactionId() 94 int count = mTransactionIds.get(transactionId); in recordTransactionId() 96 Log.wtf(TAG, "Repeated transaction ID == " + transactionId); in recordTransactionId() 98 mTransactionIds.append(transactionId, count + 1); in recordTransactionId() 331 public boolean getCapabilities(short transactionId) { in getCapabilities() argument 332 if (mDbg) Log.v(TAG, "getCapabilities: transactionId=" + transactionId); in getCapabilities() 333 recordTransactionId(transactionId); in getCapabilities() 346 status = iface.getCapabilitiesRequest(transactionId); in getCapabilities() 348 status = iface15.getCapabilitiesRequest_1_5(transactionId); in getCapabilities() [all …]
|
D | WifiAwareStateManager.java | 996 public void onConfigSuccessResponse(short transactionId) { in onConfigSuccessResponse() argument 999 msg.arg2 = transactionId; in onConfigSuccessResponse() 1007 public void onConfigFailedResponse(short transactionId, int reason) { in onConfigFailedResponse() argument 1010 msg.arg2 = transactionId; in onConfigFailedResponse() 1019 public void onDisableResponse(short transactionId, int reason) { in onDisableResponse() argument 1022 msg.arg2 = transactionId; in onDisableResponse() 1031 public void onSessionConfigSuccessResponse(short transactionId, boolean isPublish, in onSessionConfigSuccessResponse() argument 1035 msg.arg2 = transactionId; in onSessionConfigSuccessResponse() 1045 public void onSessionConfigFailResponse(short transactionId, boolean isPublish, int reason) { in onSessionConfigFailResponse() argument 1048 msg.arg2 = transactionId; in onSessionConfigFailResponse() [all …]
|
D | WifiAwareDiscoverySessionState.java | 164 public boolean updatePublish(short transactionId, PublishConfig config) { in updatePublish() argument 175 boolean success = mWifiAwareNativeApi.publish(transactionId, mPubSubId, config); in updatePublish() 194 public boolean updateSubscribe(short transactionId, SubscribeConfig config) { in updateSubscribe() argument 205 boolean success = mWifiAwareNativeApi.subscribe(transactionId, mPubSubId, config); in updateSubscribe() 228 public boolean sendMessage(short transactionId, int peerId, byte[] message, int messageId) { in sendMessage() argument 241 boolean success = mWifiAwareNativeApi.sendMessage(transactionId, mPubSubId, in sendMessage()
|
/packages/modules/NetworkStack/src/android/net/dhcp/ |
D | DhcpPacket.java | 980 int transactionId; in decodeFullPacket() local 1115 transactionId = packet.getInt(); in decodeFullPacket() 1315 newPacket = new DhcpDiscoverPacket(transactionId, secs, relayIp, clientMac, in decodeFullPacket() 1320 transactionId, secs, broadcast, ipSrc, relayIp, clientIp, yourIp, clientMac); in decodeFullPacket() 1324 transactionId, secs, clientIp, relayIp, clientMac, broadcast); in decodeFullPacket() 1328 transactionId, secs, clientIp, yourIp, nextIp, relayIp, clientMac, requestedIp, in decodeFullPacket() 1333 transactionId, secs, broadcast, ipSrc, relayIp, clientIp, yourIp, clientMac, in decodeFullPacket() 1338 transactionId, secs, relayIp, clientMac, broadcast); in decodeFullPacket() 1346 transactionId, serverIdentifier, clientIp, relayIp, clientMac); in decodeFullPacket() 1350 transactionId, secs, clientIp, yourIp, nextIp, relayIp, in decodeFullPacket() [all …]
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | NetworkValidationTest.kt | 168 reader.sendResponse(makeOfferPacket(discover.clientMac, discover.transactionId)) in testCapportApiCallbacks() 172 assertEquals(discover.transactionId, request.transactionId) in testCapportApiCallbacks() 174 reader.sendResponse(makeAckPacket(request.clientMac, request.transactionId)) in testCapportApiCallbacks() 208 private fun makeOfferPacket(clientMac: ByteArray, transactionId: Int) = in makeOfferPacket() 209 DhcpPacket.buildOfferPacket(DhcpPacket.ENCAP_L2, transactionId, in makeOfferPacket() 218 private fun makeAckPacket(clientMac: ByteArray, transactionId: Int) = in makeOfferPacket() 219 DhcpPacket.buildAckPacket(DhcpPacket.ENCAP_L2, transactionId, in makeOfferPacket()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
D | ProcessDownloadedMmsAction.java | 142 final int statusIfFailed, final boolean autoDownload, final String transactionId, in processMessageDownloadFastFailed() argument 162 params.putString(KEY_TRANSACTION_ID, transactionId); in processMessageDownloadFastFailed() 168 final int statusIfFailed, final int subId, final String transactionId) { in processDownloadActionFailure() argument 183 params.putString(KEY_TRANSACTION_ID, transactionId); in processDownloadActionFailure() 187 public static void sendDeferredRespStatus(final String messageId, final String transactionId, in sendDeferredRespStatus() argument 192 params.putString(KEY_TRANSACTION_ID, transactionId); in sendDeferredRespStatus() 215 final String transactionId = actionParameters.getString(KEY_TRANSACTION_ID); in doBackgroundWork() local 229 MmsUtils.stringToBytes(transactionId, "UTF-8"), in doBackgroundWork() 292 notificationUri, subId, subPhoneNumber, transactionId, in doBackgroundWork() 351 final String transactionId = actionParameters.getString(KEY_TRANSACTION_ID); in processBackgroundResponse() local [all …]
|
D | DownloadMmsAction.java | 239 final String transactionId = actionParameters.getString(KEY_TRANSACTION_ID); in doBackgroundWork() local 262 notificationUri, subId, subPhoneNumber, transactionId, contentLocation, in doBackgroundWork() 277 subPhoneNumber, statusIfFailed, autoDownload, transactionId, in doBackgroundWork() 292 final String transactionId = actionParameters.getString(KEY_TRANSACTION_ID); in processBackgroundFailure() local 300 conversationId, participantId, statusIfFailed, subId, transactionId); in processBackgroundFailure()
|
/packages/apps/Messaging/src/android/support/v7/mms/pdu/ |
D | SendReq.java | 44 String transactionId = "T" + Long.toHexString(System.currentTimeMillis()); in generateTransactionId() local 45 return transactionId.getBytes(); in generateTransactionId() 61 byte[] transactionId) throws InvalidHeaderValueException { in SendReq() argument 67 setTransactionId(transactionId); in SendReq()
|
D | AcknowledgeInd.java | 32 public AcknowledgeInd(int mmsVersion, byte[] transactionId) in AcknowledgeInd() argument 38 setTransactionId(transactionId); in AcknowledgeInd()
|
D | NotifyRespInd.java | 35 byte[] transactionId, in NotifyRespInd() argument 40 setTransactionId(transactionId); in NotifyRespInd()
|
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/ |
D | SendReq.java | 46 String transactionId = "T" + Long.toHexString(System.currentTimeMillis()); in generateTransactionId() local 47 return transactionId.getBytes(); in generateTransactionId() 64 byte[] transactionId) throws InvalidHeaderValueException { in SendReq() argument 70 setTransactionId(transactionId); in SendReq()
|
D | AcknowledgeInd.java | 34 public AcknowledgeInd(int mmsVersion, byte[] transactionId) in AcknowledgeInd() argument 40 setTransactionId(transactionId); in AcknowledgeInd()
|
/packages/services/Telephony/src/com/android/services/telephony/rcs/ |
D | MessageTransportWrapper.java | 463 String transactionId = SipMessageParsingUtils.getTransactionId(message.getHeaderSection()); in notifyDelegateSendError() local 464 logi("Error sending SipMessage[id: " + transactionId + ", code: " + reasonCode in notifyDelegateSendError() 467 mAppCallback.onMessageSendFailure(transactionId, reasonCode); in notifyDelegateSendError() 474 String transactionId = SipMessageParsingUtils.getTransactionId(message.getHeaderSection()); in notifyAppReceiveError() local 475 logi("Error sending SipMessage[id: " + transactionId + ", code: " + reasonCode + "] -> " in notifyAppReceiveError() 478 mSipDelegate.notifyMessageReceiveError(transactionId, reasonCode); in notifyAppReceiveError()
|
D | TransportSipMessageValidator.java | 390 public void acknowledgePendingMessage(String transactionId) { in acknowledgePendingMessage() argument 391 logi("acknowledgePendingMessage: id=" + transactionId); in acknowledgePendingMessage() 392 mSipSessionTracker.acknowledgePendingMessage(transactionId); in acknowledgePendingMessage() 400 public void notifyPendingMessageFailed(String transactionId) { in notifyPendingMessageFailed() argument 401 logi("notifyPendingMessageFailed: id=" + transactionId); in notifyPendingMessageFailed() 402 mSipSessionTracker.pendingMessageFailed(transactionId); in notifyPendingMessageFailed()
|
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/msrp/ |
D | MsrpSession.java | 145 transactions.put(request.transactionId(), transaction); in send() 154 return "MsrpSession.send(" + request.transactionId() + ")"; in send() 223 MsrpTransaction transaction = session.transactions.remove(chunk.transactionId()); in completeTransaction() 237 .transactionId(chunk.transactionId()) in sendResponse()
|
D | MsrpParser.java | 108 transaction.transactionId(txId).responseCode(responseCode).responseReason( in parse() 111 transaction.transactionId(txId).method(method); in parse() 167 final int length = END_MSRP_MSG_LENGTH - 1 + transaction.transactionId().length(); in readHeaders() 226 (NEW_LINE_END_MSRP_MSG + chunk.transactionId()).getBytes(); in readUnknownChunk() 272 final int length = END_MSRP_MSG_LENGTH + chunk.transactionId().length(); in skipEndLine()
|
D | MsrpChunk.java | 43 public abstract String transactionId(); in transactionId() method in MsrpChunk 115 public abstract Builder transactionId(String id); in transactionId() method in MsrpChunk.Builder 117 public abstract String transactionId(); in transactionId() method in MsrpChunk.Builder
|
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/javatests/com/android/libraries/rcs/simpleclient/protocol/msrp/ |
D | MsrpChunkTest.java | 52 .transactionId("123123") in whenSerializeParseRequest_success() 67 .transactionId("testtransaction") in whenSerializeParseEmptyRequest_success() 83 .transactionId("testtransaction") in whenSerializeParseResponse_success()
|
/packages/apps/Messaging/src/com/android/messaging/sms/ |
D | MmsSender.java | 90 final byte[] transactionId, final String contentLocation, final int status) in sendNotifyResponseForMmsDownload() argument 94 PduHeaders.CURRENT_MMS_VERSION, transactionId, status); in sendNotifyResponseForMmsDownload() 117 final byte[] transactionId, final String contentLocation) in sendAcknowledgeForMmsDownload() argument 122 transactionId); in sendAcknowledgeForMmsDownload()
|
/packages/services/Iwlan/src/com/google/android/iwlan/epdg/ |
D | EpdgSelector.java | 83 void onServerListChanged(int transactionId, ArrayList<InetAddress> validIPList); in onServerListChanged() argument 85 void onError(int transactionId, IwlanError error); in onError() argument 586 int transactionId, in getValidatedServerList() argument 597 Log.d(TAG, "Processing request with transactionId: " + transactionId); in getValidatedServerList() 637 transactionId, removeDuplicateIp(validIpList)); in getValidatedServerList() 640 transactionId, in getValidatedServerList()
|
/packages/services/Telephony/src/com/android/phone/callcomposer/ |
D | GbaCredentials.java | 23 public GbaCredentials(String transactionId, byte[] key) { in GbaCredentials() argument 24 mTransactionId = transactionId; in GbaCredentials()
|
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/filetransfer/ |
D | FileUploadController.java | 92 String transactionId, File file) { in uploadFile() argument 130 httpClient, httpContext, authScheme, transactionId, file), in uploadFile() 184 String transactionId, in executeAuthenticatedPost() argument 189 new StringPart(TRANSFER_ID_PART_NAME, transactionId), in executeAuthenticatedPost()
|