Home
last modified time | relevance | path

Searched refs:ndpId (Results 1 – 6 of 6) sorted by relevance

/packages/modules/Wifi/service/java/com/android/server/wifi/aware/
DWifiAwareDataPathStateManager.java194 getNetworkRequestByNdpId(int ndpId) { in getNetworkRequestByNdpId() argument
197 if (entry.getValue().ndpInfos.contains(ndpId)) { in getNetworkRequestByNdpId()
302 int ndpId) { in onDataPathInitiateSuccess() argument
306 + ndpId); in onDataPathInitiateSuccess()
313 mMgr.endDataPath(ndpId); in onDataPathInitiateSuccess()
321 mMgr.endDataPath(ndpId); in onDataPathInitiateSuccess()
327 NdpInfo ndpInfo = new NdpInfo(ndpId); in onDataPathInitiateSuccess()
330 nnri.ndpInfos.put(ndpId, ndpInfo); in onDataPathInitiateSuccess()
380 public boolean onDataPathRequest(int pubSubId, byte[] mac, int ndpId, in onDataPathRequest() argument
385 HexEncoding.encode(mac)) + ", ndpId=" + ndpId); in onDataPathRequest()
[all …]
DWifiAwareStateManager.java950 public void respondToDataPathRequest(boolean accept, int ndpId, String interfaceName, in respondToDataPathRequest() argument
954 msg.arg2 = ndpId; in respondToDataPathRequest()
967 public void endDataPath(int ndpId) { in endDataPath() argument
970 msg.arg2 = ndpId; in endDataPath()
1120 public void onInitiateDataPathResponseSuccess(short transactionId, int ndpId) { in onInitiateDataPathResponseSuccess() argument
1124 msg.obj = ndpId; in onInitiateDataPathResponseSuccess()
1288 public void onDataPathRequestNotification(int pubSubId, byte[] mac, int ndpId, byte[] message) { in onDataPathRequestNotification() argument
1292 msg.obj = ndpId; in onDataPathRequestNotification()
1302 public void onDataPathConfirmNotification(int ndpId, byte[] mac, boolean accept, int reason, in onDataPathConfirmNotification() argument
1306 msg.arg2 = ndpId; in onDataPathConfirmNotification()
[all …]
DWifiAwareNativeApi.java1119 public boolean respondToDataPathRequest(short transactionId, boolean accept, int ndpId, in respondToDataPathRequest() argument
1124 + accept + ", int ndpId=" + ndpId + ", interfaceName=" + interfaceName in respondToDataPathRequest()
1142 req.ndpInstanceId = ndpId; in respondToDataPathRequest()
1186 public boolean endDataPath(short transactionId, int ndpId) { in endDataPath() argument
1188 Log.v(TAG, "endDataPath: transactionId=" + transactionId + ", ndpId=" + ndpId); in endDataPath()
1199 WifiStatus status = iface.terminateDataPathRequest(transactionId, ndpId); in endDataPath()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareDataPathStateManagerTest.java292 final int ndpId = 1; in testDataPathWithPortInfoOnPublisher() local
315 mDut.onDataPathRequestNotification(pubSubId, peerDiscoveryMac, ndpId, null); in testDataPathWithPortInfoOnPublisher()
402 final int ndpId = 3; in testDestroyNdiDuringNdpSetupResponder() local
435 mDut.onDataPathRequestNotification(pubSubId, peerDiscoveryMac, ndpId, null); in testDestroyNdiDuringNdpSetupResponder()
440 eq(ndpId), eq(""), eq(null), eq(null), eq(null), eq(false), any()); in testDestroyNdiDuringNdpSetupResponder()
464 final int ndpId = 2; in testMultipleNdpsOnSingleNdi() local
519 mDut.onInitiateDataPathResponseSuccess(transactionId.getValue(), ndpId + i); in testMultipleNdpsOnSingleNdi()
523 mDut.onDataPathConfirmNotification(ndpId + i, peerDataPathMac, true, 0, in testMultipleNdpsOnSingleNdi()
558 inOrder.verify(mMockNative).endDataPath(transactionId.capture(), eq(ndpId + i)); in testMultipleNdpsOnSingleNdi()
561 mDut.onDataPathEndNotification(ndpId + i); in testMultipleNdpsOnSingleNdi()
[all …]
DTestUtils.java111 public boolean respondToDataPathRequest(short transactionId, boolean accept, int ndpId, in respondToDataPathRequest() argument
118 public boolean endDataPath(short transactionId, int ndpId) { in endDataPath() argument
DWifiAwareNativeApiTest.java728 int ndpId = 44; in validateRespondToDataPathRequest() local
741 mDut.respondToDataPathRequest(tid, accept, ndpId, interfaceName, usePmk ? pmk : null, in validateRespondToDataPathRequest()
749 collector.checkThat("ndpInstanceId", ndpId, equalTo(nrtdpir.ndpInstanceId)); in validateRespondToDataPathRequest()