/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/ |
D | WifiAwareServiceImplTest.java | 255 PublishConfig publishConfig = new PublishConfig.Builder().setServiceName("valid.value") in testFailOnAccessClientIdFromWrongUid() local 257 mDut.publish(mPackageName, clientId, publishConfig, mSessionCallbackMock); in testFailOnAccessClientIdFromWrongUid() 259 verify(mAwareStateManagerMock).publish(clientId, publishConfig, mSessionCallbackMock); in testFailOnAccessClientIdFromWrongUid() 271 PublishConfig publishConfig = new PublishConfig.Builder().setServiceName("something.valid") in testFailOnPublishRangingWithoutRttFeature() local 277 mDut.publish(mPackageName, clientId, publishConfig, mockCallback); in testFailOnPublishRangingWithoutRttFeature() 355 PublishConfig publishConfig = new PublishConfig.Builder().setServiceName("something.valid") in testPublish() local 361 mDut.publish(mPackageName, clientId, publishConfig, mockCallback); in testPublish() 363 verify(mAwareStateManagerMock).publish(clientId, publishConfig, mockCallback); in testPublish() 421 PublishConfig publishConfig = new PublishConfig.Builder().setServiceName("something.valid") in testUpdatePublish() local 425 mDut.updatePublish(clientId, sessionId, publishConfig); in testUpdatePublish() [all …]
|
D | WifiAwareStateManagerTest.java | 663 final PublishConfig publishConfig = new PublishConfig.Builder().build(); in testHalNoResponseTimeout() local 690 mDut.publish(clientId, publishConfig, mockSessionCallback); in testHalNoResponseTimeout() 692 inOrder.verify(mMockNative).publish(anyShort(), eq((byte) 0), eq(publishConfig)); in testHalNoResponseTimeout() 701 mDut.publish(clientId, publishConfig, mockSessionCallback); in testHalNoResponseTimeout() 704 eq(publishConfig)); in testHalNoResponseTimeout() 727 PublishConfig publishConfig = new PublishConfig.Builder().build(); in testPublishFail() local 754 mDut.publish(clientId, publishConfig, mockSessionCallback); in testPublishFail() 757 eq(publishConfig)); in testPublishFail() 769 mDut.publish(clientId, publishConfig, mockSessionCallback); in testPublishFail() 772 eq(publishConfig)); in testPublishFail() [all …]
|
D | TestUtils.java | 62 public boolean publish(short transactionId, byte publishId, PublishConfig publishConfig) { in publish() argument
|
D | WifiAwareDataPathStateManagerTest.java | 1231 final PublishConfig publishConfig = new PublishConfig.Builder().build(); in getSessionNetworkRequest() local 1257 sessionCaptor.getValue().publish(publishConfig, mockSessionCallback, in getSessionNetworkRequest() 1259 inOrderS.verify(mockAwareService).publish(any(), eq(clientId), eq(publishConfig), in getSessionNetworkRequest() 1356 final PublishConfig publishConfig = new PublishConfig.Builder().build(); in initDataPathEndPoint() local 1367 mDut.publish(clientId, publishConfig, mMockSessionCallback); in initDataPathEndPoint() 1374 eq(publishConfig)); in initDataPathEndPoint()
|
/frameworks/base/wifi/tests/src/android/net/wifi/aware/ |
D | WifiAwareManagerTest.java | 172 PublishConfig publishConfig = new PublishConfig.Builder().build(); in testConnectFlow() local 173 session.publish(publishConfig, mockSessionCallback, mMockLooperHandler); in testConnectFlow() 174 inOrder.verify(mockAwareService).publish(any(), eq(clientId), eq(publishConfig), any()); in testConnectFlow() 277 final PublishConfig publishConfig = new PublishConfig.Builder().build(); in testPublishFlow() local 308 session.publish(publishConfig, mockSessionCallback, mMockLooperHandler); in testPublishFlow() 309 inOrder.verify(mockAwareService).publish(any(), eq(clientId), eq(publishConfig), in testPublishFlow() 348 publishSession.getValue().updatePublish(publishConfig); in testPublishFlow() 352 eq(publishConfig)); in testPublishFlow() 361 publishSession.getValue().updatePublish(publishConfig); in testPublishFlow() 377 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 | 292 public void publish(String callingPackage, int clientId, PublishConfig publishConfig, in publish() argument 305 if (publishConfig == null) { in publish() 308 publishConfig.assertValid(mStateManager.getCharacteristics(), in publish() 314 + publishConfig + ", callback=" + callback); in publish() 317 mStateManager.publish(clientId, publishConfig, callback); in publish() 321 public void updatePublish(int clientId, int sessionId, PublishConfig publishConfig) { in updatePublish() argument 325 if (publishConfig == null) { in updatePublish() 328 publishConfig.assertValid(mStateManager.getCharacteristics(), in updatePublish() 335 + sessionId + ", config=" + publishConfig); in updatePublish() 338 mStateManager.updatePublish(clientId, sessionId, publishConfig); in updatePublish()
|
D | WifiAwareNativeApi.java | 546 public boolean publish(short transactionId, byte publishId, PublishConfig publishConfig) { in publish() argument 549 + ", config=" + publishConfig); in publish() 561 req.baseConfigs.ttlSec = (short) publishConfig.mTtlSec; in publish() 564 convertNativeByteArrayToArrayList(publishConfig.mServiceName, req.baseConfigs.serviceName); in publish() 566 convertNativeByteArrayToArrayList(publishConfig.mServiceSpecificInfo, in publish() 568 convertNativeByteArrayToArrayList(publishConfig.mMatchFilter, in publish() 569 publishConfig.mPublishType == PublishConfig.PUBLISH_TYPE_UNSOLICITED in publish() 573 !publishConfig.mEnableTerminateNotification; in publish() 579 req.baseConfigs.rangingRequired = publishConfig.mEnableRanging; in publish() 584 req.publishType = publishConfig.mPublishType; in publish()
|
D | WifiAwareStateManager.java | 617 public void publish(int clientId, PublishConfig publishConfig, in publish() argument 623 msg.getData().putParcelable(MESSAGE_BUNDLE_KEY_CONFIG, publishConfig); in publish() 631 public void updatePublish(int clientId, int sessionId, PublishConfig publishConfig) { in updatePublish() argument 635 msg.obj = publishConfig; in updatePublish() 1584 PublishConfig publishConfig = (PublishConfig) msg.getData() in processCommand() local 1587 waitForResponse = publishLocal(mCurrentTransactionId, clientId, publishConfig, in processCommand() 1594 PublishConfig publishConfig = (PublishConfig) msg.obj; in processCommand() local 1597 publishConfig); in processCommand() 2292 private boolean publishLocal(short transactionId, int clientId, PublishConfig publishConfig, in publishLocal() argument 2296 + ", 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 | 304 public void publish(int clientId, Looper looper, PublishConfig publishConfig, in publish() argument 306 if (VDBG) Log.v(TAG, "publish(): clientId=" + clientId + ", config=" + publishConfig); in publish() 313 mService.publish(mContext.getOpPackageName(), clientId, publishConfig, in publish() local 322 public void updatePublish(int clientId, int sessionId, PublishConfig publishConfig) { in updatePublish() argument 325 + ", config=" + publishConfig); in updatePublish() 329 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()
|