Home
last modified time | relevance | path

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

/packages/modules/Wifi/service/java/com/android/server/wifi/aware/
DWifiAwareDataPathStateManager.java200 getNetworkRequestByNdpId(int ndpId) { in getNetworkRequestByNdpId() argument
203 if (entry.getValue().ndpInfos.contains(ndpId)) { in getNetworkRequestByNdpId()
310 int ndpId) { in onDataPathInitiateSuccess() argument
314 + ndpId); in onDataPathInitiateSuccess()
321 mMgr.endDataPath(ndpId); in onDataPathInitiateSuccess()
329 mMgr.endDataPath(ndpId); in onDataPathInitiateSuccess()
335 NdpInfo ndpInfo = new NdpInfo(ndpId); in onDataPathInitiateSuccess()
338 nnri.ndpInfos.put(ndpId, ndpInfo); in onDataPathInitiateSuccess()
388 public boolean onDataPathRequest(int pubSubId, byte[] mac, int ndpId, in onDataPathRequest() argument
392 HexEncoding.encode(mac)) + ", ndpId=" + ndpId); in onDataPathRequest()
[all …]
DWifiAwareStateManager.java1562 public void respondToDataPathRequest(boolean accept, int ndpId, String interfaceName, in respondToDataPathRequest() argument
1567 msg.arg2 = ndpId; in respondToDataPathRequest()
1579 public void endDataPath(int ndpId) { in endDataPath() argument
1582 msg.arg2 = ndpId; in endDataPath()
1764 public void onInitiateDataPathResponseSuccess(short transactionId, int ndpId) { in onInitiateDataPathResponseSuccess() argument
1768 msg.obj = ndpId; in onInitiateDataPathResponseSuccess()
1835 public void onInitiateBootStrappingResponseSuccess(short transactionId, int ndpId) { in onInitiateBootStrappingResponseSuccess() argument
1839 msg.obj = ndpId; in onInitiateBootStrappingResponseSuccess()
2073 public void onDataPathRequestNotification(int pubSubId, byte[] mac, int ndpId, byte[] message) { in onDataPathRequestNotification() argument
2077 msg.obj = ndpId; in onDataPathRequestNotification()
[all …]
DWifiAwareNativeApi.java647 public boolean respondToDataPathRequest(short transactionId, boolean accept, int ndpId, in respondToDataPathRequest() argument
653 + accept + ", int ndpId=" + ndpId + ", interfaceName=" + interfaceName in respondToDataPathRequest()
664 return iface.respondToDataPathRequest(transactionId, accept, ndpId, interfaceName, appInfo, in respondToDataPathRequest()
675 public boolean endDataPath(short transactionId, int ndpId) { in endDataPath() argument
677 Log.v(TAG, "endDataPath: transactionId=" + transactionId + ", ndpId=" + ndpId); in endDataPath()
686 return iface.endDataPath(transactionId, ndpId); in endDataPath()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareDataPathStateManagerTest.java376 final int ndpId = 1; in testDataPathWithPortInfoInvalidPort() local
400 mDut.onDataPathRequestNotification(pubSubId, peerDiscoveryMac, ndpId, null); in testDataPathWithPortInfoInvalidPort()
416 final int ndpId = 1; in testDataPathWithPortInfoButNoSecurityOnPublisher() local
439 mDut.onDataPathRequestNotification(pubSubId, peerDiscoveryMac, ndpId, null); in testDataPathWithPortInfoButNoSecurityOnPublisher()
457 final int ndpId = 3; in testDestroyNdiDuringNdpSetupResponder() local
490 mDut.onDataPathRequestNotification(pubSubId, peerDiscoveryMac, ndpId, null); in testDestroyNdiDuringNdpSetupResponder()
495 eq(ndpId), eq(""), eq(null), eq(false), any(), any(), eq((byte) 0)); in testDestroyNdiDuringNdpSetupResponder()
521 final int ndpId = 2; in testMultipleNdpsOnSingleNdi() local
578 mDut.onInitiateDataPathResponseSuccess(transactionId.getValue(), ndpId + i); in testMultipleNdpsOnSingleNdi()
586 mDut.onDataPathConfirmNotification(ndpId + i, peerDataPathMac, true, 0, in testMultipleNdpsOnSingleNdi()
[all …]
DTestUtils.java115 public boolean respondToDataPathRequest(short transactionId, boolean accept, int ndpId, in respondToDataPathRequest() argument
123 public boolean endDataPath(short transactionId, int ndpId) { in endDataPath() argument
/packages/modules/Wifi/service/java/com/android/server/wifi/hal/
DIWifiNanIface.java211 boolean respondToDataPathRequest(short transactionId, boolean accept, int ndpId, in respondToDataPathRequest() argument
223 boolean endDataPath(short transactionId, int ndpId); in endDataPath() argument
DWifiNanIfaceHidlImpl.java223 public boolean respondToDataPathRequest(short transactionId, boolean accept, int ndpId, in respondToDataPathRequest() argument
228 () -> respondToDataPathRequestInternal(methodStr, transactionId, accept, ndpId, in respondToDataPathRequest()
235 public boolean endDataPath(short transactionId, int ndpId) { in endDataPath() argument
238 () -> endDataPathInternal(methodStr, transactionId, ndpId)); in endDataPath()
947 boolean accept, int ndpId, String interfaceName, byte[] appInfo, boolean isOutOfBand, in respondToDataPathRequestInternal() argument
959 req.ndpInstanceId = ndpId; in respondToDataPathRequestInternal()
996 req.ndpInstanceId = ndpId; in respondToDataPathRequestInternal()
1035 private boolean endDataPathInternal(String methodStr, short transactionId, int ndpId) { in endDataPathInternal() argument
1037 WifiStatus status = mWifiNanIface.terminateDataPathRequest(transactionId, ndpId); in endDataPathInternal()
DWifiNanIface.java467 public boolean respondToDataPathRequest(short transactionId, boolean accept, int ndpId, in respondToDataPathRequest() argument
472 () -> mWifiNanIface.respondToDataPathRequest(transactionId, accept, ndpId, in respondToDataPathRequest()
480 public boolean endDataPath(short transactionId, int ndpId) { in endDataPath() argument
482 () -> mWifiNanIface.endDataPath(transactionId, ndpId)); in endDataPath()
DWifiNanIfaceAidlImpl.java411 public boolean respondToDataPathRequest(short transactionId, boolean accept, int ndpId, in respondToDataPathRequest() argument
420 accept, ndpId, interfaceName, appInfo, isOutOfBand, in respondToDataPathRequest()
437 public boolean endDataPath(short transactionId, int ndpId) { in endDataPath() argument
442 mWifiNanIface.terminateDataPathRequest((char) transactionId, ndpId); in endDataPath()
1086 createNanRespondToDataPathIndicationRequest(boolean accept, int ndpId, in createNanRespondToDataPathIndicationRequest() argument
1091 req.ndpInstanceId = ndpId; in createNanRespondToDataPathIndicationRequest()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hal/
DWifiNanIfaceAidlImplTest.java499 int ndpId = 35; in testEndDataPath() local
500 assertTrue(mDut.endDataPath(tid, ndpId)); in testEndDataPath()
501 verify(mIWifiNanIfaceMock).terminateDataPathRequest(eq((char) tid), eq(ndpId)); in testEndDataPath()
726 int ndpId = 44; in validateRespondToDataPathRequest() local
749 assertTrue(mDut.respondToDataPathRequest(tid, accept, ndpId, interfaceName, in validateRespondToDataPathRequest()
758 collector.checkThat("ndpInstanceId", ndpId, equalTo(nrtdpir.ndpInstanceId)); in validateRespondToDataPathRequest()
DWifiNanIfaceHidlImplTest.java676 int ndpId = 44; in validateRespondToDataPathRequest() local
698 mDut.respondToDataPathRequest(tid, accept, ndpId, interfaceName, in validateRespondToDataPathRequest()
706 collector.checkThat("ndpInstanceId", ndpId, equalTo(nrtdpir.ndpInstanceId)); in validateRespondToDataPathRequest()