Home
last modified time | relevance | path

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

/frameworks/base/wifi/tests/src/android/net/wifi/aware/
DWifiAwareManagerTest.java224 SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().build(); in testConnectFailure() local
225 session.subscribe(subscribeConfig, mockSessionCallback, mMockLooperHandler); in testConnectFailure()
226 inOrder.verify(mockAwareService).subscribe(any(), eq(clientId), eq(subscribeConfig), any()); in testConnectFailure()
427 final SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().build(); in testSubscribeFlow() local
457 session.subscribe(subscribeConfig, mockSessionCallback, mMockLooperHandler); in testSubscribeFlow()
458 inOrder.verify(mockAwareService).subscribe(any(), eq(clientId), eq(subscribeConfig), in testSubscribeFlow()
490 subscribeSession.getValue().updateSubscribe(subscribeConfig); in testSubscribeFlow()
494 eq(subscribeConfig)); in testSubscribeFlow()
503 subscribeSession.getValue().updateSubscribe(subscribeConfig); in testSubscribeFlow()
519 final SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().build(); in testSubscribeRemoteTerminate() local
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareServiceImplTest.java288 SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().setServiceName( in testFailOnSubscribeRangingWithoutRttFeature() local
294 mDut.subscribe(mPackageName, clientId, subscribeConfig, mockCallback); in testFailOnSubscribeRangingWithoutRttFeature()
450 SubscribeConfig subscribeConfig = new SubscribeConfig.Builder() in testSubscribe() local
456 mDut.subscribe(mPackageName, clientId, subscribeConfig, mockCallback); in testSubscribe()
458 verify(mAwareStateManagerMock).subscribe(clientId, subscribeConfig, mockCallback); in testSubscribe()
516 SubscribeConfig subscribeConfig = new SubscribeConfig.Builder() in testUpdateSubscribeInvalid() local
521 mDut.updateSubscribe(clientId, sessionId, subscribeConfig); in testUpdateSubscribeInvalid()
523 verify(mAwareStateManagerMock).updateSubscribe(clientId, sessionId, subscribeConfig); in testUpdateSubscribeInvalid()
532 SubscribeConfig subscribeConfig = new SubscribeConfig.Builder() in testUpdateSubscribe() local
536 mDut.updateSubscribe(clientId, sessionId, subscribeConfig); in testUpdateSubscribe()
[all …]
DWifiAwareStateManagerTest.java250 SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().setServiceName(serviceName) in testRequestMacAddresses() local
286 mDut.subscribe(clientId1, subscribeConfig, mockSessionCallback1); in testRequestMacAddresses()
289 eq(subscribeConfig)); in testRequestMacAddresses()
294 mDut.subscribe(clientId2, subscribeConfig, mockSessionCallback2); in testRequestMacAddresses()
297 eq(subscribeConfig)); in testRequestMacAddresses()
1056 SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().build(); in testSubscribeFail() local
1083 mDut.subscribe(clientId, subscribeConfig, mockSessionCallback); in testSubscribeFail()
1086 eq(subscribeConfig)); in testSubscribeFail()
1099 mDut.subscribe(clientId, subscribeConfig, mockSessionCallback); in testSubscribeFail()
1102 eq(subscribeConfig)); in testSubscribeFail()
[all …]
DTestUtils.java68 SubscribeConfig subscribeConfig) { in subscribe() argument
DWifiAwareDataPathStateManagerTest.java1232 final SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().build(); in getSessionNetworkRequest() local
1262 sessionCaptor.getValue().subscribe(subscribeConfig, mockSessionCallback, in getSessionNetworkRequest()
1264 inOrderS.verify(mockAwareService).subscribe(any(), eq(clientId), eq(subscribeConfig), in getSessionNetworkRequest()
1357 final SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().build(); in initDataPathEndPoint() local
1369 mDut.subscribe(clientId, subscribeConfig, mMockSessionCallback); in initDataPathEndPoint()
1377 eq(subscribeConfig)); in initDataPathEndPoint()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareServiceImpl.java342 public void subscribe(String callingPackage, int clientId, SubscribeConfig subscribeConfig, in subscribe() argument
355 if (subscribeConfig == null) { in subscribe()
358 subscribeConfig.assertValid(mStateManager.getCharacteristics(), in subscribe()
364 + subscribeConfig + ", callback=" + callback); in subscribe()
367 mStateManager.subscribe(clientId, subscribeConfig, callback); in subscribe()
371 public void updateSubscribe(int clientId, int sessionId, SubscribeConfig subscribeConfig) { in updateSubscribe() argument
375 if (subscribeConfig == null) { in updateSubscribe()
378 subscribeConfig.assertValid(mStateManager.getCharacteristics(), in updateSubscribe()
385 + sessionId + ", config=" + subscribeConfig); in updateSubscribe()
388 mStateManager.updateSubscribe(clientId, sessionId, subscribeConfig); in updateSubscribe()
DWifiAwareNativeApi.java611 SubscribeConfig subscribeConfig) { in subscribe() argument
614 + ", config=" + subscribeConfig); in subscribe()
626 req.baseConfigs.ttlSec = (short) subscribeConfig.mTtlSec; in subscribe()
629 convertNativeByteArrayToArrayList(subscribeConfig.mServiceName, in subscribe()
632 convertNativeByteArrayToArrayList(subscribeConfig.mServiceSpecificInfo, in subscribe()
634 convertNativeByteArrayToArrayList(subscribeConfig.mMatchFilter, in subscribe()
635 subscribeConfig.mSubscribeType == SubscribeConfig.SUBSCRIBE_TYPE_ACTIVE in subscribe()
639 !subscribeConfig.mEnableTerminateNotification; in subscribe()
644 subscribeConfig.mMinDistanceMmSet || subscribeConfig.mMaxDistanceMmSet; in subscribe()
647 if (subscribeConfig.mMinDistanceMmSet) { in subscribe()
[all …]
DWifiAwareStateManager.java644 public void subscribe(int clientId, SubscribeConfig subscribeConfig, in subscribe() argument
650 msg.getData().putParcelable(MESSAGE_BUNDLE_KEY_CONFIG, subscribeConfig); in subscribe()
658 public void updateSubscribe(int clientId, int sessionId, SubscribeConfig subscribeConfig) { in updateSubscribe() argument
662 msg.obj = subscribeConfig; in updateSubscribe()
1604 SubscribeConfig subscribeConfig = (SubscribeConfig) msg.getData() in processCommand() local
1608 subscribeConfig, callback); in processCommand()
1614 SubscribeConfig subscribeConfig = (SubscribeConfig) msg.obj; in processCommand() local
1617 sessionId, subscribeConfig); in processCommand()
2348 SubscribeConfig subscribeConfig, IWifiAwareDiscoverySessionCallback callback) { in subscribeLocal() argument
2351 + ", subscribeConfig=" + subscribeConfig + ", callback=" + callback); in subscribeLocal()
[all …]
/frameworks/base/wifi/java/android/net/wifi/aware/
DSubscribeDiscoverySession.java59 public void updateSubscribe(@NonNull SubscribeConfig subscribeConfig) { in updateSubscribe() argument
70 mgr.updateSubscribe(mClientId, mSessionId, subscribeConfig); in updateSubscribe()
DIWifiAwareManager.aidl47 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
DWifiAwareManager.java336 public void subscribe(int clientId, Looper looper, SubscribeConfig subscribeConfig, in subscribe() argument
341 "subscribe(): clientId=" + clientId + ", config=" + subscribeConfig); in subscribe()
350 mService.subscribe(mContext.getOpPackageName(), clientId, subscribeConfig, in subscribe() local
359 public void updateSubscribe(int clientId, int sessionId, SubscribeConfig subscribeConfig) { in updateSubscribe() argument
362 + ", config=" + subscribeConfig); in updateSubscribe()
366 mService.updateSubscribe(clientId, sessionId, subscribeConfig); in updateSubscribe()
DWifiAwareSession.java192 public void subscribe(@NonNull SubscribeConfig subscribeConfig, in subscribe() argument
204 subscribeConfig, callback); in subscribe()