Home
last modified time | relevance | path

Searched refs:publishConfig (Results 1 – 12 of 12) sorted by relevance

/packages/modules/Wifi/framework/tests/src/android/net/wifi/aware/
DWifiAwareManagerTest.java214 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/
DWifiAwareServiceImplTest.java293 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 …]
DWifiAwareStateManagerTest.java678 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 …]
DTestUtils.java62 public boolean publish(short transactionId, byte publishId, PublishConfig publishConfig) { in publish() argument
DWifiAwareDataPathStateManagerTest.java1799 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/
DWifiAwareServiceImpl.java311 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()
DWifiAwareNativeApi.java691 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()
DWifiAwareStateManager.java766 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/
DWifiAwareManager.java397 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()
DPublishDiscoverySession.java54 public void updatePublish(@NonNull PublishConfig publishConfig) { in updatePublish() argument
65 mgr.updatePublish(mClientId, mSessionId, publishConfig); in updatePublish()
DIWifiAwareManager.aidl52 in PublishConfig publishConfig, in IWifiAwareDiscoverySessionCallback callback); in publish() argument
57 void updatePublish(int clientId, int discoverySessionId, in PublishConfig publishConfig); in updatePublish() argument
DWifiAwareSession.java149 public void publish(@NonNull PublishConfig publishConfig, in publish() argument
161 publishConfig, callback); in publish()