/packages/modules/Wifi/framework/tests/src/android/net/wifi/aware/ |
D | WifiAwareManagerTest.java | 214 PublishConfig publishConfig = new PublishConfig.Builder().build(); in testConnectFlow() local 215 session.publish(publishConfig, mockSessionCallback, mMockLooperHandler); in testConnectFlow() 216 inOrder.verify(mockAwareService).publish(any(), any(), eq(clientId), eq(publishConfig), in testConnectFlow() 321 final PublishConfig publishConfig = new PublishConfig.Builder().build(); in testPublishFlow() local 352 session.publish(publishConfig, mockSessionCallback, mMockLooperHandler); in testPublishFlow() 353 inOrder.verify(mockAwareService).publish(any(), any(), eq(clientId), eq(publishConfig), in testPublishFlow() 392 publishSession.getValue().updatePublish(publishConfig); in testPublishFlow() 396 eq(publishConfig)); in testPublishFlow() 412 publishSession.getValue().updatePublish(publishConfig); in testPublishFlow() 428 final PublishConfig publishConfig = new PublishConfig.Builder().build(); in testPublishRemoteTerminate() local [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/ |
D | WifiAwareServiceImplTest.java | 293 PublishConfig publishConfig = new PublishConfig.Builder().setServiceName("valid.value") in testFailOnAccessClientIdFromWrongUid() local 295 mDut.publish(mPackageName, mFeatureId, clientId, publishConfig, mSessionCallbackMock); in testFailOnAccessClientIdFromWrongUid() 297 verify(mAwareStateManagerMock).publish(clientId, publishConfig, mSessionCallbackMock); in testFailOnAccessClientIdFromWrongUid() 309 PublishConfig publishConfig = new PublishConfig.Builder().setServiceName("something.valid") in testFailOnPublishRangingWithoutRttFeature() local 315 mDut.publish(mPackageName, mFeatureId, clientId, publishConfig, mockCallback); in testFailOnPublishRangingWithoutRttFeature() 393 PublishConfig publishConfig = new PublishConfig.Builder().setServiceName("something.valid") in testPublish() local 399 mDut.publish(mPackageName, mFeatureId, clientId, publishConfig, mockCallback); in testPublish() 401 verify(mAwareStateManagerMock).publish(clientId, publishConfig, mockCallback); in testPublish() 459 PublishConfig publishConfig = new PublishConfig.Builder().setServiceName("something.valid") in testUpdatePublish() local 463 mDut.updatePublish(clientId, sessionId, publishConfig); in testUpdatePublish() [all …]
|
D | WifiAwareStateManagerTest.java | 678 final PublishConfig publishConfig = new PublishConfig.Builder().build(); in testHalNoResponseTimeout() local 704 mDut.publish(clientId, publishConfig, mockSessionCallback); in testHalNoResponseTimeout() 706 inOrder.verify(mMockNative).publish(anyShort(), eq((byte) 0), eq(publishConfig)); in testHalNoResponseTimeout() 715 mDut.publish(clientId, publishConfig, mockSessionCallback); in testHalNoResponseTimeout() 718 eq(publishConfig)); in testHalNoResponseTimeout() 742 PublishConfig publishConfig = new PublishConfig.Builder().build(); in testPublishFail() local 768 mDut.publish(clientId, publishConfig, mockSessionCallback); in testPublishFail() 771 eq(publishConfig)); in testPublishFail() 783 mDut.publish(clientId, publishConfig, mockSessionCallback); in testPublishFail() 786 eq(publishConfig)); in testPublishFail() [all …]
|
D | TestUtils.java | 62 public boolean publish(short transactionId, byte publishId, PublishConfig publishConfig) { in publish() argument
|
D | WifiAwareDataPathStateManagerTest.java | 1799 final PublishConfig publishConfig = new PublishConfig.Builder().build(); in getSessionNetworkRequestMore() local 1825 sessionCaptor.getValue().publish(publishConfig, mockSessionCallback, in getSessionNetworkRequestMore() 1827 inOrderS.verify(mockAwareService).publish(any(), any(), eq(clientId), eq(publishConfig), in getSessionNetworkRequestMore() 1935 final PublishConfig publishConfig = new PublishConfig.Builder().build(); in initDataPathEndPoint() local 1946 mDut.publish(clientId, publishConfig, mMockSessionCallback); in initDataPathEndPoint() 1953 eq(publishConfig)); in initDataPathEndPoint()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareServiceImpl.java | 311 PublishConfig publishConfig, IWifiAwareDiscoverySessionCallback callback) { in publish() argument 323 if (publishConfig == null) { in publish() 326 publishConfig.assertValid(mStateManager.getCharacteristics(), in publish() 332 + publishConfig + ", callback=" + callback); in publish() 335 mStateManager.publish(clientId, publishConfig, callback); in publish() 339 public void updatePublish(int clientId, int sessionId, PublishConfig publishConfig) { in updatePublish() argument 343 if (publishConfig == null) { in updatePublish() 346 publishConfig.assertValid(mStateManager.getCharacteristics(), in updatePublish() 353 + sessionId + ", config=" + publishConfig); in updatePublish() 356 mStateManager.updatePublish(clientId, sessionId, publishConfig); in updatePublish()
|
D | WifiAwareNativeApi.java | 691 public boolean publish(short transactionId, byte publishId, PublishConfig publishConfig) { in publish() argument 694 + ", config=" + publishConfig); in publish() 706 req.baseConfigs.ttlSec = (short) publishConfig.mTtlSec; in publish() 709 convertNativeByteArrayToArrayList(publishConfig.mServiceName, req.baseConfigs.serviceName); in publish() 711 convertNativeByteArrayToArrayList(publishConfig.mServiceSpecificInfo, in publish() 713 convertNativeByteArrayToArrayList(publishConfig.mMatchFilter, in publish() 714 publishConfig.mPublishType == PublishConfig.PUBLISH_TYPE_UNSOLICITED in publish() 718 !publishConfig.mEnableTerminateNotification; in publish() 724 req.baseConfigs.rangingRequired = publishConfig.mEnableRanging; in publish() 729 req.publishType = publishConfig.mPublishType; in publish()
|
D | WifiAwareStateManager.java | 766 public void publish(int clientId, PublishConfig publishConfig, in publish() argument 772 msg.getData().putParcelable(MESSAGE_BUNDLE_KEY_CONFIG, publishConfig); in publish() 780 public void updatePublish(int clientId, int sessionId, PublishConfig publishConfig) { in updatePublish() argument 784 msg.getData().putParcelable(MESSAGE_BUNDLE_KEY_CONFIG, publishConfig); in updatePublish() 1778 PublishConfig publishConfig = (PublishConfig) msg.getData() in processCommand() local 1781 waitForResponse = publishLocal(mCurrentTransactionId, clientId, publishConfig, in processCommand() 1788 PublishConfig publishConfig = (PublishConfig) msg.getData() in processCommand() local 1791 publishConfig); in processCommand() 2534 private boolean publishLocal(short transactionId, int clientId, PublishConfig publishConfig, in publishLocal() argument 2538 + ", publishConfig=" + publishConfig + ", callback=" + callback); in publishLocal() [all …]
|
/packages/modules/Wifi/framework/java/android/net/wifi/aware/ |
D | WifiAwareManager.java | 397 public void publish(int clientId, Looper looper, PublishConfig publishConfig, in publish() argument 399 if (VDBG) Log.v(TAG, "publish(): clientId=" + clientId + ", config=" + publishConfig); in publish() 407 publishConfig, in publish() local 416 public void updatePublish(int clientId, int sessionId, PublishConfig publishConfig) { in updatePublish() argument 419 + ", config=" + publishConfig); in updatePublish() 423 mService.updatePublish(clientId, sessionId, publishConfig); in updatePublish()
|
D | PublishDiscoverySession.java | 54 public void updatePublish(@NonNull PublishConfig publishConfig) { in updatePublish() argument 65 mgr.updatePublish(mClientId, mSessionId, publishConfig); in updatePublish()
|
D | IWifiAwareManager.aidl | 52 in PublishConfig publishConfig, in IWifiAwareDiscoverySessionCallback callback); in publish() argument 57 void updatePublish(int clientId, int discoverySessionId, in PublishConfig publishConfig); in updatePublish() argument
|
D | WifiAwareSession.java | 149 public void publish(@NonNull PublishConfig publishConfig, in publish() argument 161 publishConfig, callback); in publish()
|