Home
last modified time | relevance | path

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

/packages/modules/Wifi/framework/tests/src/android/net/wifi/aware/
DWifiAwareManagerTest.java283 SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().build(); in testConnectFailure() local
284 session.subscribe(subscribeConfig, mockSessionCallback, mMockLooperHandler); in testConnectFailure()
285 inOrder.verify(mockAwareService).subscribe(any(), any(), eq(clientId), eq(subscribeConfig), in testConnectFailure()
503 final SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().build(); in testSubscribeFlow() local
535 session.subscribe(subscribeConfig, mockSessionCallback, mMockLooperHandler); in testSubscribeFlow()
536 inOrder.verify(mockAwareService).subscribe(any(), any(), eq(clientId), eq(subscribeConfig), in testSubscribeFlow()
572 subscribeSession.getValue().updateSubscribe(subscribeConfig); in testSubscribeFlow()
576 eq(subscribeConfig)); in testSubscribeFlow()
592 subscribeSession.getValue().updateSubscribe(subscribeConfig); in testSubscribeFlow()
608 final SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().build(); in testSubscribeRemoteTerminate() local
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/hal/
DWifiNanIfaceAidlImpl.java257 SubscribeConfig subscribeConfig, in subscribe() argument
263 NanSubscribeRequest req = createNanSubscribeRequest(subscribeId, subscribeConfig, in subscribe()
881 byte subscribeId, SubscribeConfig subscribeConfig, byte[] nik) { in createNanSubscribeRequest() argument
885 req.baseConfigs.ttlSec = (char) subscribeConfig.mTtlSec; in createNanSubscribeRequest()
888 req.baseConfigs.serviceName = copyArray(subscribeConfig.mServiceName); in createNanSubscribeRequest()
890 if (subscribeConfig.mServiceSpecificInfo != null in createNanSubscribeRequest()
891 && subscribeConfig.mServiceSpecificInfo.length > 255) { in createNanSubscribeRequest()
893 copyArray(subscribeConfig.mServiceSpecificInfo); in createNanSubscribeRequest()
896 req.baseConfigs.serviceSpecificInfo = copyArray(subscribeConfig.mServiceSpecificInfo); in createNanSubscribeRequest()
899 if (subscribeConfig.mSubscribeType == SubscribeConfig.SUBSCRIBE_TYPE_ACTIVE) { in createNanSubscribeRequest()
[all …]
DWifiNanIfaceHidlImpl.java150 SubscribeConfig subscribeConfig, in subscribe() argument
154 () -> subscribeInternal(methodStr, transactionId, subscribeId, subscribeConfig)); in subscribe()
741 SubscribeConfig subscribeConfig) { in subscribeInternal() argument
744 req.baseConfigs.ttlSec = (short) subscribeConfig.mTtlSec; in subscribeInternal()
747 convertNativeByteArrayToArrayList(subscribeConfig.mServiceName, in subscribeInternal()
750 convertNativeByteArrayToArrayList(subscribeConfig.mServiceSpecificInfo, in subscribeInternal()
752 convertNativeByteArrayToArrayList(subscribeConfig.mMatchFilter, in subscribeInternal()
753 subscribeConfig.mSubscribeType == SubscribeConfig.SUBSCRIBE_TYPE_ACTIVE in subscribeInternal()
757 !subscribeConfig.mEnableTerminateNotification; in subscribeInternal()
762 subscribeConfig.mMinDistanceMmSet || subscribeConfig.mMaxDistanceMmSet; in subscribeInternal()
[all …]
DIWifiNanIface.java110 boolean subscribe(short transactionId, byte subscribeId, SubscribeConfig subscribeConfig, in subscribe() argument
DWifiNanIface.java402 SubscribeConfig subscribeConfig, byte[] nik) { in subscribe() argument
404 () -> mWifiNanIface.subscribe(transactionId, subscribeId, subscribeConfig, nik)); in subscribe()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareServiceImplTest.java428 SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().setServiceName( in testFailOnSubscribeRangingWithoutRttFeature() local
434 mDut.subscribe(mPackageName, mFeatureId, clientId, subscribeConfig, mockCallback, mExtras); in testFailOnSubscribeRangingWithoutRttFeature()
622 SubscribeConfig subscribeConfig = new SubscribeConfig.Builder() in testSubscribe() local
628 mDut.subscribe(mPackageName, mFeatureId, clientId, subscribeConfig, mockCallback, mExtras); in testSubscribe()
630 verify(mAwareStateManagerMock).subscribe(clientId, subscribeConfig, mockCallback); in testSubscribe()
643 SubscribeConfig subscribeConfig = new SubscribeConfig.Builder() in testSubscribePostT() local
649 mDut.subscribe(mPackageName, mFeatureId, clientId, subscribeConfig, mockCallback, mExtras); in testSubscribePostT()
651 verify(mAwareStateManagerMock).subscribe(clientId, subscribeConfig, mockCallback); in testSubscribePostT()
663 SubscribeConfig subscribeConfig = new SubscribeConfig.Builder() in testSubscribeExceptionPostT() local
669 mDut.subscribe(mPackageName, mFeatureId, clientId, subscribeConfig, mockCallback, mExtras); in testSubscribeExceptionPostT()
[all …]
DWifiAwareStateManagerTest.java392 SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().setServiceName(serviceName) in testRequestMacAddresses() local
439 mDut.subscribe(clientId1, subscribeConfig, mockSessionCallback1); in testRequestMacAddresses()
442 eq(subscribeConfig), isNull()); in testRequestMacAddresses()
447 mDut.subscribe(clientId2, subscribeConfig, mockSessionCallback2); in testRequestMacAddresses()
450 eq(subscribeConfig), isNull()); in testRequestMacAddresses()
1166 SubscribeConfig subscribeConfig = new SubscribeConfig.Builder() in testSubscribeSuccessInstantCommunicationMode() local
1197 mDut.subscribe(clientId, subscribeConfig, mockSessionCallback); in testSubscribeSuccessInstantCommunicationMode()
1200 eq(subscribeConfig), isNull()); in testSubscribeSuccessInstantCommunicationMode()
1464 SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().build(); in testSubscribeFail() local
1492 mDut.subscribe(clientId, subscribeConfig, mockSessionCallback); in testSubscribeFail()
[all …]
DTestUtils.java71 SubscribeConfig subscribeConfig, byte[] nik) { in subscribe() argument
DWifiAwareDataPathStateManagerTest.java2033 final SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().build(); in getSessionNetworkRequestMore() local
2063 sessionCaptor.getValue().subscribe(subscribeConfig, mockSessionCallback, in getSessionNetworkRequestMore()
2066 eq(subscribeConfig), sessionProxyCallback.capture(), any()); in getSessionNetworkRequestMore()
2169 final SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().build(); in initDataPathEndPoint() local
2181 mDut.subscribe(clientId, subscribeConfig, mMockSessionCallback); in initDataPathEndPoint()
2189 eq(subscribeConfig), isNull()); in initDataPathEndPoint()
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/
DWifiAwareServiceImpl.java566 SubscribeConfig subscribeConfig, IWifiAwareDiscoverySessionCallback callback, in subscribe() argument
580 if (subscribeConfig == null) { in subscribe()
583 subscribeConfig.assertValid(mStateManager.getCharacteristics(), in subscribe()
586 if (SdkLevel.isAtLeastU() && subscribeConfig.isSuspendable() in subscribe()
595 + subscribeConfig + ", callback=" + callback); in subscribe()
598 mStateManager.subscribe(clientId, subscribeConfig, callback); in subscribe()
602 public void updateSubscribe(int clientId, int sessionId, SubscribeConfig subscribeConfig) { in updateSubscribe() argument
606 if (subscribeConfig == null) { in updateSubscribe()
609 subscribeConfig.assertValid(mStateManager.getCharacteristics(), in updateSubscribe()
613 if (SdkLevel.isAtLeastU() && subscribeConfig.isSuspendable() in updateSubscribe()
[all …]
DWifiAwareStateManager.java1301 public void subscribe(int clientId, SubscribeConfig subscribeConfig, in subscribe() argument
1307 msg.getData().putParcelable(MESSAGE_BUNDLE_KEY_CONFIG, subscribeConfig); in subscribe()
1315 public void updateSubscribe(int clientId, int sessionId, SubscribeConfig subscribeConfig) { in updateSubscribe() argument
1319 msg.getData().putParcelable(MESSAGE_BUNDLE_KEY_CONFIG, subscribeConfig); in updateSubscribe()
2995 SubscribeConfig subscribeConfig = (SubscribeConfig) msg.getData() in processCommand() local
2999 subscribeConfig, callback); in processCommand()
3005 SubscribeConfig subscribeConfig = (SubscribeConfig) msg.getData() in processCommand() local
3009 sessionId, subscribeConfig); in processCommand()
4090 SubscribeConfig subscribeConfig, IWifiAwareDiscoverySessionCallback callback) { in subscribeLocal() argument
4093 + ", subscribeConfig=" + subscribeConfig + ", callback=" + callback); in subscribeLocal()
[all …]
DWifiAwareNativeApi.java435 SubscribeConfig subscribeConfig, byte[] nik) { in subscribe() argument
438 + ", config=" + subscribeConfig); in subscribe()
447 return iface.subscribe(transactionId, subscribeId, subscribeConfig, nik); in subscribe()
/packages/modules/Wifi/framework/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.aidl70 in SubscribeConfig subscribeConfig, in IWifiAwareDiscoverySessionCallback callback, in subscribe() argument
75 void updateSubscribe(int clientId, int discoverySessionId, in SubscribeConfig subscribeConfig); in updateSubscribe() argument
DWifiAwareSession.java232 public void subscribe(@NonNull SubscribeConfig subscribeConfig, in subscribe() argument
244 subscribeConfig, callback); in subscribe()
DWifiAwareManager.java679 public void subscribe(int clientId, Looper looper, SubscribeConfig subscribeConfig, in subscribe() argument
684 "subscribe(): clientId=" + clientId + ", config=" + subscribeConfig); in subscribe()
699 subscribeConfig, in subscribe() local
708 public void updateSubscribe(int clientId, int sessionId, SubscribeConfig subscribeConfig) { in updateSubscribe() argument
711 + ", config=" + subscribeConfig); in updateSubscribe()
715 mService.updateSubscribe(clientId, sessionId, subscribeConfig); in updateSubscribe()
/packages/modules/Wifi/tests/hostsidetests/multidevices/com.google.snippet.wifi/aware/
DWifiAwareSnippet.java153 SubscribeConfig subscribeConfig = builder.build(); in subscribe() local
154 Log.d(TAG, "executeTestSubscriber: subscribeConfig=" + subscribeConfig); in subscribe()
155 mWifiAwareSession.subscribe(subscribeConfig, mDiscoveryCb, mHandler); in subscribe()