/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/ |
D | WifiAwareServiceImplTest.java | 290 SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().setServiceName( in testFailOnSubscribeRangingWithoutRttFeature() local 296 mDut.subscribe(mPackageName, clientId, subscribeConfig, mockCallback); in testFailOnSubscribeRangingWithoutRttFeature() 452 SubscribeConfig subscribeConfig = new SubscribeConfig.Builder() in testSubscribe() local 458 mDut.subscribe(mPackageName, clientId, subscribeConfig, mockCallback); in testSubscribe() 460 verify(mAwareStateManagerMock).subscribe(clientId, subscribeConfig, mockCallback); in testSubscribe() 518 SubscribeConfig subscribeConfig = new SubscribeConfig.Builder() in testUpdateSubscribeInvalid() local 523 mDut.updateSubscribe(clientId, sessionId, subscribeConfig); in testUpdateSubscribeInvalid() 525 verify(mAwareStateManagerMock).updateSubscribe(clientId, sessionId, subscribeConfig); in testUpdateSubscribeInvalid() 534 SubscribeConfig subscribeConfig = new SubscribeConfig.Builder() in testUpdateSubscribe() local 538 mDut.updateSubscribe(clientId, sessionId, subscribeConfig); in testUpdateSubscribe() [all …]
|
D | WifiAwareStateManagerTest.java | 246 SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().setServiceName(serviceName) in testRequestMacAddresses() local 282 mDut.subscribe(clientId1, subscribeConfig, mockSessionCallback1); in testRequestMacAddresses() 285 eq(subscribeConfig)); in testRequestMacAddresses() 290 mDut.subscribe(clientId2, subscribeConfig, mockSessionCallback2); in testRequestMacAddresses() 293 eq(subscribeConfig)); in testRequestMacAddresses() 1050 SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().build(); in testSubscribeFail() local 1077 mDut.subscribe(clientId, subscribeConfig, mockSessionCallback); in testSubscribeFail() 1080 eq(subscribeConfig)); in testSubscribeFail() 1093 mDut.subscribe(clientId, subscribeConfig, mockSessionCallback); in testSubscribeFail() 1096 eq(subscribeConfig)); in testSubscribeFail() [all …]
|
D | TestUtils.java | 68 SubscribeConfig subscribeConfig) { in subscribe() argument
|
D | WifiAwareDataPathStateManagerTest.java | 1597 final SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().build(); in getSessionNetworkRequestMore() local 1627 sessionCaptor.getValue().subscribe(subscribeConfig, mockSessionCallback, in getSessionNetworkRequestMore() 1629 inOrderS.verify(mockAwareService).subscribe(any(), eq(clientId), eq(subscribeConfig), in getSessionNetworkRequestMore() 1729 final SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().build(); in initDataPathEndPoint() local 1741 mDut.subscribe(clientId, subscribeConfig, mMockSessionCallback); in initDataPathEndPoint() 1749 eq(subscribeConfig)); in initDataPathEndPoint()
|
/frameworks/base/wifi/tests/src/android/net/wifi/aware/ |
D | WifiAwareManagerTest.java | 231 SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().build(); in testConnectFailure() local 232 session.subscribe(subscribeConfig, mockSessionCallback, mMockLooperHandler); in testConnectFailure() 233 inOrder.verify(mockAwareService).subscribe(any(), eq(clientId), eq(subscribeConfig), any()); in testConnectFailure() 434 final SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().build(); in testSubscribeFlow() local 464 session.subscribe(subscribeConfig, mockSessionCallback, mMockLooperHandler); in testSubscribeFlow() 465 inOrder.verify(mockAwareService).subscribe(any(), eq(clientId), eq(subscribeConfig), in testSubscribeFlow() 497 subscribeSession.getValue().updateSubscribe(subscribeConfig); in testSubscribeFlow() 501 eq(subscribeConfig)); in testSubscribeFlow() 510 subscribeSession.getValue().updateSubscribe(subscribeConfig); in testSubscribeFlow() 526 final SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().build(); in testSubscribeRemoteTerminate() local [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareServiceImpl.java | 343 public void subscribe(String callingPackage, int clientId, SubscribeConfig subscribeConfig, in subscribe() argument 356 if (subscribeConfig == null) { in subscribe() 359 subscribeConfig.assertValid(mStateManager.getCharacteristics(), in subscribe() 365 + subscribeConfig + ", callback=" + callback); in subscribe() 368 mStateManager.subscribe(clientId, subscribeConfig, callback); in subscribe() 372 public void updateSubscribe(int clientId, int sessionId, SubscribeConfig subscribeConfig) { in updateSubscribe() argument 376 if (subscribeConfig == null) { in updateSubscribe() 379 subscribeConfig.assertValid(mStateManager.getCharacteristics(), in updateSubscribe() 386 + sessionId + ", config=" + subscribeConfig); in updateSubscribe() 389 mStateManager.updateSubscribe(clientId, sessionId, subscribeConfig); in updateSubscribe()
|
D | WifiAwareNativeApi.java | 615 SubscribeConfig subscribeConfig) { in subscribe() argument 618 + ", config=" + subscribeConfig); in subscribe() 630 req.baseConfigs.ttlSec = (short) subscribeConfig.mTtlSec; in subscribe() 633 convertNativeByteArrayToArrayList(subscribeConfig.mServiceName, in subscribe() 636 convertNativeByteArrayToArrayList(subscribeConfig.mServiceSpecificInfo, in subscribe() 638 convertNativeByteArrayToArrayList(subscribeConfig.mMatchFilter, in subscribe() 639 subscribeConfig.mSubscribeType == SubscribeConfig.SUBSCRIBE_TYPE_ACTIVE in subscribe() 643 !subscribeConfig.mEnableTerminateNotification; in subscribe() 648 subscribeConfig.mMinDistanceMmSet || subscribeConfig.mMaxDistanceMmSet; in subscribe() 651 if (subscribeConfig.mMinDistanceMmSet) { in subscribe() [all …]
|
D | WifiAwareStateManager.java | 649 public void subscribe(int clientId, SubscribeConfig subscribeConfig, in subscribe() argument 655 msg.getData().putParcelable(MESSAGE_BUNDLE_KEY_CONFIG, subscribeConfig); in subscribe() 663 public void updateSubscribe(int clientId, int sessionId, SubscribeConfig subscribeConfig) { in updateSubscribe() argument 667 msg.obj = subscribeConfig; in updateSubscribe() 1614 SubscribeConfig subscribeConfig = (SubscribeConfig) msg.getData() in processCommand() local 1618 subscribeConfig, callback); in processCommand() 1624 SubscribeConfig subscribeConfig = (SubscribeConfig) msg.obj; in processCommand() local 1627 sessionId, subscribeConfig); in processCommand() 2360 SubscribeConfig subscribeConfig, IWifiAwareDiscoverySessionCallback callback) { in subscribeLocal() argument 2363 + ", subscribeConfig=" + subscribeConfig + ", callback=" + callback); in subscribeLocal() [all …]
|
/frameworks/base/wifi/java/android/net/wifi/aware/ |
D | SubscribeDiscoverySession.java | 59 public void updateSubscribe(@NonNull SubscribeConfig subscribeConfig) { in updateSubscribe() argument 70 mgr.updateSubscribe(mClientId, mSessionId, subscribeConfig); in updateSubscribe()
|
D | IWifiAwareManager.aidl | 47 void subscribe(in String callingPackage, int clientId, in SubscribeConfig subscribeConfig, in subscribe() argument 52 void updateSubscribe(int clientId, int discoverySessionId, in SubscribeConfig subscribeConfig); in updateSubscribe() argument
|
D | WifiAwareManager.java | 325 public void subscribe(int clientId, Looper looper, SubscribeConfig subscribeConfig, in subscribe() argument 330 "subscribe(): clientId=" + clientId + ", config=" + subscribeConfig); in subscribe() 339 mService.subscribe(mContext.getOpPackageName(), clientId, subscribeConfig, in subscribe() local 348 public void updateSubscribe(int clientId, int sessionId, SubscribeConfig subscribeConfig) { in updateSubscribe() argument 351 + ", config=" + subscribeConfig); in updateSubscribe() 355 mService.updateSubscribe(clientId, sessionId, subscribeConfig); in updateSubscribe()
|
D | WifiAwareSession.java | 192 public void subscribe(@NonNull SubscribeConfig subscribeConfig, in subscribe() argument 204 subscribeConfig, callback); in subscribe()
|