Home
last modified time | relevance | path

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

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareDataPathStateManager.java169 getNetworkRequestByNdpId(int ndpId) { in getNetworkRequestByNdpId() argument
172 if (entry.getValue().ndpId == ndpId) { in getNetworkRequestByNdpId()
276 public void onDataPathInitiateSuccess(WifiAwareNetworkSpecifier networkSpecifier, int ndpId) { in onDataPathInitiateSuccess() argument
280 + ndpId); in onDataPathInitiateSuccess()
287 mMgr.endDataPath(ndpId); in onDataPathInitiateSuccess()
296 declareUnfullfillableAndEndDp(nnri, ndpId); in onDataPathInitiateSuccess()
301 nnri.ndpId = ndpId; in onDataPathInitiateSuccess()
346 public WifiAwareNetworkSpecifier onDataPathRequest(int pubSubId, byte[] mac, int ndpId, in onDataPathRequest() argument
351 HexEncoding.encode(mac)) + ", ndpId=" + ndpId); in onDataPathRequest()
389 getNetworkRequestByNdpId(ndpId); in onDataPathRequest()
[all …]
DWifiAwareStateManager.java803 public void respondToDataPathRequest(boolean accept, int ndpId, String interfaceName, in respondToDataPathRequest() argument
807 msg.arg2 = ndpId; in respondToDataPathRequest()
820 public void endDataPath(int ndpId) { in endDataPath() argument
823 msg.arg2 = ndpId; in endDataPath()
973 public void onInitiateDataPathResponseSuccess(short transactionId, int ndpId) { in onInitiateDataPathResponseSuccess() argument
977 msg.obj = ndpId; in onInitiateDataPathResponseSuccess()
1129 public void onDataPathRequestNotification(int pubSubId, byte[] mac, int ndpId, byte[] message) { in onDataPathRequestNotification() argument
1133 msg.obj = ndpId; in onDataPathRequestNotification()
1143 public void onDataPathConfirmNotification(int ndpId, byte[] mac, boolean accept, int reason, in onDataPathConfirmNotification() argument
1147 msg.arg2 = ndpId; in onDataPathConfirmNotification()
[all …]
DWifiAwareNativeApi.java978 public boolean respondToDataPathRequest(short transactionId, boolean accept, int ndpId, in respondToDataPathRequest() argument
983 + accept + ", int ndpId=" + ndpId + ", interfaceName=" + interfaceName in respondToDataPathRequest()
1001 req.ndpInstanceId = ndpId; in respondToDataPathRequest()
1045 public boolean endDataPath(short transactionId, int ndpId) { in endDataPath() argument
1047 Log.v(TAG, "endDataPath: transactionId=" + transactionId + ", ndpId=" + ndpId); in endDataPath()
1058 WifiStatus status = iface.terminateDataPathRequest(transactionId, ndpId); in endDataPath()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareDataPathStateManagerTest.java322 final int ndpId = 1; in testDataPathWithPortInfoOnPublisher() local
344 mDut.onDataPathRequestNotification(pubSubId, peerDiscoveryMac, ndpId, null); in testDataPathWithPortInfoOnPublisher()
429 final int ndpId = 3; in testDestroyNdiDuringNdpSetupResponder() local
460 mDut.onDataPathRequestNotification(pubSubId, peerDiscoveryMac, ndpId, null); in testDestroyNdiDuringNdpSetupResponder()
465 eq(ndpId), eq(""), eq(null), eq(null), eq(null), eq(false), any()); in testDestroyNdiDuringNdpSetupResponder()
489 final int ndpId = 2; in testMultipleNdpsOnSingleNdi() local
541 mDut.onInitiateDataPathResponseSuccess(transactionId.getValue(), ndpId + i); in testMultipleNdpsOnSingleNdi()
545 mDut.onDataPathConfirmNotification(ndpId + i, peerDataPathMac, true, 0, in testMultipleNdpsOnSingleNdi()
582 inOrder.verify(mMockNative).endDataPath(transactionId.capture(), eq(ndpId + i)); in testMultipleNdpsOnSingleNdi()
585 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.java711 int ndpId = 44; in validateRespondToDataPathRequest() local
724 mDut.respondToDataPathRequest(tid, accept, ndpId, interfaceName, usePmk ? pmk : null, in validateRespondToDataPathRequest()
732 collector.checkThat("ndpInstanceId", ndpId, equalTo(nrtdpir.ndpInstanceId)); in validateRespondToDataPathRequest()