/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/ |
D | WifiAwareServiceImplTest.java | 257 PublishConfig publishConfig = new PublishConfig.Builder().setServiceName("valid.value") in testFailOnAccessClientIdFromWrongUid() local 259 mDut.publish(mPackageName, clientId, publishConfig, mSessionCallbackMock); in testFailOnAccessClientIdFromWrongUid() 261 verify(mAwareStateManagerMock).publish(clientId, publishConfig, mSessionCallbackMock); in testFailOnAccessClientIdFromWrongUid() 273 PublishConfig publishConfig = new PublishConfig.Builder().setServiceName("something.valid") in testFailOnPublishRangingWithoutRttFeature() local 279 mDut.publish(mPackageName, clientId, publishConfig, mockCallback); in testFailOnPublishRangingWithoutRttFeature() 357 PublishConfig publishConfig = new PublishConfig.Builder().setServiceName("something.valid") in testPublish() local 363 mDut.publish(mPackageName, clientId, publishConfig, mockCallback); in testPublish() 365 verify(mAwareStateManagerMock).publish(clientId, publishConfig, mockCallback); in testPublish() 423 PublishConfig publishConfig = new PublishConfig.Builder().setServiceName("something.valid") in testUpdatePublish() local 427 mDut.updatePublish(clientId, sessionId, publishConfig); in testUpdatePublish() [all …]
|
D | WifiAwareStateManagerTest.java | 657 final PublishConfig publishConfig = new PublishConfig.Builder().build(); in testHalNoResponseTimeout() local 684 mDut.publish(clientId, publishConfig, mockSessionCallback); in testHalNoResponseTimeout() 686 inOrder.verify(mMockNative).publish(anyShort(), eq((byte) 0), eq(publishConfig)); in testHalNoResponseTimeout() 695 mDut.publish(clientId, publishConfig, mockSessionCallback); in testHalNoResponseTimeout() 698 eq(publishConfig)); in testHalNoResponseTimeout() 721 PublishConfig publishConfig = new PublishConfig.Builder().build(); in testPublishFail() local 748 mDut.publish(clientId, publishConfig, mockSessionCallback); in testPublishFail() 751 eq(publishConfig)); in testPublishFail() 763 mDut.publish(clientId, publishConfig, mockSessionCallback); in testPublishFail() 766 eq(publishConfig)); in testPublishFail() [all …]
|
D | TestUtils.java | 62 public boolean publish(short transactionId, byte publishId, PublishConfig publishConfig) { in publish() argument
|
D | WifiAwareDataPathStateManagerTest.java | 1596 final PublishConfig publishConfig = new PublishConfig.Builder().build(); in getSessionNetworkRequestMore() local 1622 sessionCaptor.getValue().publish(publishConfig, mockSessionCallback, in getSessionNetworkRequestMore() 1624 inOrderS.verify(mockAwareService).publish(any(), eq(clientId), eq(publishConfig), in getSessionNetworkRequestMore() 1728 final PublishConfig publishConfig = new PublishConfig.Builder().build(); in initDataPathEndPoint() local 1739 mDut.publish(clientId, publishConfig, mMockSessionCallback); in initDataPathEndPoint() 1746 eq(publishConfig)); in initDataPathEndPoint()
|
/frameworks/base/wifi/tests/src/android/net/wifi/aware/ |
D | WifiAwareManagerTest.java | 179 PublishConfig publishConfig = new PublishConfig.Builder().build(); in testConnectFlow() local 180 session.publish(publishConfig, mockSessionCallback, mMockLooperHandler); in testConnectFlow() 181 inOrder.verify(mockAwareService).publish(any(), eq(clientId), eq(publishConfig), any()); in testConnectFlow() 284 final PublishConfig publishConfig = new PublishConfig.Builder().build(); in testPublishFlow() local 315 session.publish(publishConfig, mockSessionCallback, mMockLooperHandler); in testPublishFlow() 316 inOrder.verify(mockAwareService).publish(any(), eq(clientId), eq(publishConfig), in testPublishFlow() 355 publishSession.getValue().updatePublish(publishConfig); in testPublishFlow() 359 eq(publishConfig)); in testPublishFlow() 368 publishSession.getValue().updatePublish(publishConfig); in testPublishFlow() 384 final PublishConfig publishConfig = new PublishConfig.Builder().build(); in testPublishRemoteTerminate() local [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareServiceImpl.java | 293 public void publish(String callingPackage, int clientId, PublishConfig publishConfig, in publish() argument 306 if (publishConfig == null) { in publish() 309 publishConfig.assertValid(mStateManager.getCharacteristics(), in publish() 315 + publishConfig + ", callback=" + callback); in publish() 318 mStateManager.publish(clientId, publishConfig, callback); in publish() 322 public void updatePublish(int clientId, int sessionId, PublishConfig publishConfig) { in updatePublish() argument 326 if (publishConfig == null) { in updatePublish() 329 publishConfig.assertValid(mStateManager.getCharacteristics(), in updatePublish() 336 + sessionId + ", config=" + publishConfig); in updatePublish() 339 mStateManager.updatePublish(clientId, sessionId, publishConfig); in updatePublish()
|
D | WifiAwareNativeApi.java | 550 public boolean publish(short transactionId, byte publishId, PublishConfig publishConfig) { in publish() argument 553 + ", config=" + publishConfig); in publish() 565 req.baseConfigs.ttlSec = (short) publishConfig.mTtlSec; in publish() 568 convertNativeByteArrayToArrayList(publishConfig.mServiceName, req.baseConfigs.serviceName); in publish() 570 convertNativeByteArrayToArrayList(publishConfig.mServiceSpecificInfo, in publish() 572 convertNativeByteArrayToArrayList(publishConfig.mMatchFilter, in publish() 573 publishConfig.mPublishType == PublishConfig.PUBLISH_TYPE_UNSOLICITED in publish() 577 !publishConfig.mEnableTerminateNotification; in publish() 583 req.baseConfigs.rangingRequired = publishConfig.mEnableRanging; in publish() 588 req.publishType = publishConfig.mPublishType; in publish()
|
D | WifiAwareStateManager.java | 622 public void publish(int clientId, PublishConfig publishConfig, in publish() argument 628 msg.getData().putParcelable(MESSAGE_BUNDLE_KEY_CONFIG, publishConfig); in publish() 636 public void updatePublish(int clientId, int sessionId, PublishConfig publishConfig) { in updatePublish() argument 640 msg.obj = publishConfig; in updatePublish() 1594 PublishConfig publishConfig = (PublishConfig) msg.getData() in processCommand() local 1597 waitForResponse = publishLocal(mCurrentTransactionId, clientId, publishConfig, in processCommand() 1604 PublishConfig publishConfig = (PublishConfig) msg.obj; in processCommand() local 1607 publishConfig); in processCommand() 2304 private boolean publishLocal(short transactionId, int clientId, PublishConfig publishConfig, in publishLocal() argument 2308 + ", publishConfig=" + publishConfig + ", callback=" + callback); in publishLocal() [all …]
|
/frameworks/base/wifi/java/android/net/wifi/aware/ |
D | PublishDiscoverySession.java | 54 public void updatePublish(@NonNull PublishConfig publishConfig) { in updatePublish() argument 65 mgr.updatePublish(mClientId, mSessionId, publishConfig); in updatePublish()
|
D | IWifiAwareManager.aidl | 45 void publish(in String callingPackage, int clientId, in PublishConfig publishConfig, in publish() argument 51 void updatePublish(int clientId, int discoverySessionId, in PublishConfig publishConfig); in updatePublish() argument
|
D | WifiAwareManager.java | 293 public void publish(int clientId, Looper looper, PublishConfig publishConfig, in publish() argument 295 if (VDBG) Log.v(TAG, "publish(): clientId=" + clientId + ", config=" + publishConfig); in publish() 302 mService.publish(mContext.getOpPackageName(), clientId, publishConfig, in publish() local 311 public void updatePublish(int clientId, int sessionId, PublishConfig publishConfig) { in updatePublish() argument 314 + ", config=" + publishConfig); in updatePublish() 318 mService.updatePublish(clientId, sessionId, publishConfig); in updatePublish()
|
D | WifiAwareSession.java | 146 public void publish(@NonNull PublishConfig publishConfig, in publish() argument 158 publishConfig, callback); in publish()
|