/packages/modules/Wifi/framework/tests/src/android/net/wifi/aware/ |
D | WifiAwareManagerTest.java | 267 SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().build(); in testConnectFailure() local 268 session.subscribe(subscribeConfig, mockSessionCallback, mMockLooperHandler); in testConnectFailure() 269 inOrder.verify(mockAwareService).subscribe(any(), any(), eq(clientId), eq(subscribeConfig), in testConnectFailure() 478 final SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().build(); in testSubscribeFlow() local 508 session.subscribe(subscribeConfig, mockSessionCallback, mMockLooperHandler); in testSubscribeFlow() 509 inOrder.verify(mockAwareService).subscribe(any(), any(), eq(clientId), eq(subscribeConfig), in testSubscribeFlow() 541 subscribeSession.getValue().updateSubscribe(subscribeConfig); in testSubscribeFlow() 545 eq(subscribeConfig)); in testSubscribeFlow() 561 subscribeSession.getValue().updateSubscribe(subscribeConfig); in testSubscribeFlow() 577 final SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().build(); in testSubscribeRemoteTerminate() local [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/ |
D | WifiAwareServiceImplTest.java | 326 SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().setServiceName( in testFailOnSubscribeRangingWithoutRttFeature() local 332 mDut.subscribe(mPackageName, mFeatureId, clientId, subscribeConfig, mockCallback); in testFailOnSubscribeRangingWithoutRttFeature() 488 SubscribeConfig subscribeConfig = new SubscribeConfig.Builder() in testSubscribe() local 494 mDut.subscribe(mPackageName, mFeatureId, clientId, subscribeConfig, mockCallback); in testSubscribe() 496 verify(mAwareStateManagerMock).subscribe(clientId, subscribeConfig, mockCallback); in testSubscribe() 554 SubscribeConfig subscribeConfig = new SubscribeConfig.Builder() in testUpdateSubscribeInvalid() local 559 mDut.updateSubscribe(clientId, sessionId, subscribeConfig); in testUpdateSubscribeInvalid() 561 verify(mAwareStateManagerMock).updateSubscribe(clientId, sessionId, subscribeConfig); in testUpdateSubscribeInvalid() 570 SubscribeConfig subscribeConfig = new SubscribeConfig.Builder() in testUpdateSubscribe() local 574 mDut.updateSubscribe(clientId, sessionId, subscribeConfig); in testUpdateSubscribe() [all …]
|
D | WifiAwareStateManagerTest.java | 258 SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().setServiceName(serviceName) in testRequestMacAddresses() local 303 mDut.subscribe(clientId1, subscribeConfig, mockSessionCallback1); in testRequestMacAddresses() 306 eq(subscribeConfig)); in testRequestMacAddresses() 311 mDut.subscribe(clientId2, subscribeConfig, mockSessionCallback2); in testRequestMacAddresses() 314 eq(subscribeConfig)); in testRequestMacAddresses() 1087 SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().build(); in testSubscribeFail() local 1113 mDut.subscribe(clientId, subscribeConfig, mockSessionCallback); in testSubscribeFail() 1116 eq(subscribeConfig)); in testSubscribeFail() 1129 mDut.subscribe(clientId, subscribeConfig, mockSessionCallback); in testSubscribeFail() 1132 eq(subscribeConfig)); in testSubscribeFail() [all …]
|
D | TestUtils.java | 68 SubscribeConfig subscribeConfig) { in subscribe() argument
|
D | WifiAwareDataPathStateManagerTest.java | 1800 final SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().build(); in getSessionNetworkRequestMore() local 1830 sessionCaptor.getValue().subscribe(subscribeConfig, mockSessionCallback, in getSessionNetworkRequestMore() 1833 eq(subscribeConfig), sessionProxyCallback.capture()); in getSessionNetworkRequestMore() 1936 final SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().build(); in initDataPathEndPoint() local 1948 mDut.subscribe(clientId, subscribeConfig, mMockSessionCallback); in initDataPathEndPoint() 1956 eq(subscribeConfig)); in initDataPathEndPoint()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareServiceImpl.java | 361 SubscribeConfig subscribeConfig, IWifiAwareDiscoverySessionCallback callback) { in subscribe() argument 373 if (subscribeConfig == null) { in subscribe() 376 subscribeConfig.assertValid(mStateManager.getCharacteristics(), in subscribe() 382 + subscribeConfig + ", callback=" + callback); in subscribe() 385 mStateManager.subscribe(clientId, subscribeConfig, callback); in subscribe() 389 public void updateSubscribe(int clientId, int sessionId, SubscribeConfig subscribeConfig) { in updateSubscribe() argument 393 if (subscribeConfig == null) { in updateSubscribe() 396 subscribeConfig.assertValid(mStateManager.getCharacteristics(), in updateSubscribe() 403 + sessionId + ", config=" + subscribeConfig); in updateSubscribe() 406 mStateManager.updateSubscribe(clientId, sessionId, subscribeConfig); in updateSubscribe()
|
D | WifiAwareNativeApi.java | 756 SubscribeConfig subscribeConfig) { in subscribe() argument 759 + ", config=" + subscribeConfig); in subscribe() 771 req.baseConfigs.ttlSec = (short) subscribeConfig.mTtlSec; in subscribe() 774 convertNativeByteArrayToArrayList(subscribeConfig.mServiceName, in subscribe() 777 convertNativeByteArrayToArrayList(subscribeConfig.mServiceSpecificInfo, in subscribe() 779 convertNativeByteArrayToArrayList(subscribeConfig.mMatchFilter, in subscribe() 780 subscribeConfig.mSubscribeType == SubscribeConfig.SUBSCRIBE_TYPE_ACTIVE in subscribe() 784 !subscribeConfig.mEnableTerminateNotification; in subscribe() 789 subscribeConfig.mMinDistanceMmSet || subscribeConfig.mMaxDistanceMmSet; in subscribe() 792 if (subscribeConfig.mMinDistanceMmSet) { in subscribe() [all …]
|
D | WifiAwareStateManager.java | 793 public void subscribe(int clientId, SubscribeConfig subscribeConfig, in subscribe() argument 799 msg.getData().putParcelable(MESSAGE_BUNDLE_KEY_CONFIG, subscribeConfig); in subscribe() 807 public void updateSubscribe(int clientId, int sessionId, SubscribeConfig subscribeConfig) { in updateSubscribe() argument 811 msg.getData().putParcelable(MESSAGE_BUNDLE_KEY_CONFIG, subscribeConfig); in updateSubscribe() 1798 SubscribeConfig subscribeConfig = (SubscribeConfig) msg.getData() in processCommand() local 1802 subscribeConfig, callback); in processCommand() 1808 SubscribeConfig subscribeConfig = (SubscribeConfig) msg.getData() in processCommand() local 1812 sessionId, subscribeConfig); in processCommand() 2595 SubscribeConfig subscribeConfig, IWifiAwareDiscoverySessionCallback callback) { in subscribeLocal() argument 2598 + ", subscribeConfig=" + subscribeConfig + ", callback=" + callback); in subscribeLocal() [all …]
|
/packages/modules/Wifi/framework/java/android/net/wifi/aware/ |
D | WifiAwareManager.java | 430 public void subscribe(int clientId, Looper looper, SubscribeConfig subscribeConfig, in subscribe() argument 435 "subscribe(): clientId=" + clientId + ", config=" + subscribeConfig); in subscribe() 445 subscribeConfig, in subscribe() local 454 public void updateSubscribe(int clientId, int sessionId, SubscribeConfig subscribeConfig) { in updateSubscribe() argument 457 + ", config=" + subscribeConfig); in updateSubscribe() 461 mService.updateSubscribe(clientId, sessionId, subscribeConfig); in updateSubscribe()
|
D | SubscribeDiscoverySession.java | 59 public void updateSubscribe(@NonNull SubscribeConfig subscribeConfig) { in updateSubscribe() argument 70 mgr.updateSubscribe(mClientId, mSessionId, subscribeConfig); in updateSubscribe()
|
D | IWifiAwareManager.aidl | 54 in SubscribeConfig subscribeConfig, in IWifiAwareDiscoverySessionCallback callback); in subscribe() argument 58 void updateSubscribe(int clientId, int discoverySessionId, in SubscribeConfig subscribeConfig); in updateSubscribe() argument
|
D | WifiAwareSession.java | 197 public void subscribe(@NonNull SubscribeConfig subscribeConfig, in subscribe() argument 209 subscribeConfig, callback); in subscribe()
|