/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareServiceImpl.java | 270 public void subscribe(int clientId, SubscribeConfig subscribeConfig, in subscribe() argument 279 if (subscribeConfig == null) { in subscribe() 282 subscribeConfig.assertValid(mStateManager.getCharacteristics()); in subscribe() 288 + subscribeConfig + ", callback=" + callback); in subscribe() 291 mStateManager.subscribe(clientId, subscribeConfig, callback); in subscribe() 295 public void updateSubscribe(int clientId, int sessionId, SubscribeConfig subscribeConfig) { in updateSubscribe() argument 299 if (subscribeConfig == null) { in updateSubscribe() 302 subscribeConfig.assertValid(mStateManager.getCharacteristics()); in updateSubscribe() 308 + sessionId + ", config=" + subscribeConfig); in updateSubscribe() 311 mStateManager.updateSubscribe(clientId, sessionId, subscribeConfig); in updateSubscribe()
|
D | WifiAwareNativeApi.java | 352 SubscribeConfig subscribeConfig) { in subscribe() argument 354 Log.d(TAG, "subscribe: transactionId=" + transactionId + ", config=" + subscribeConfig); in subscribe() 365 req.baseConfigs.ttlSec = (short) subscribeConfig.mTtlSec; in subscribe() 368 convertNativeByteArrayToArrayList(subscribeConfig.mServiceName, in subscribe() 371 convertNativeByteArrayToArrayList(subscribeConfig.mServiceSpecificInfo, in subscribe() 373 convertNativeByteArrayToArrayList(subscribeConfig.mMatchFilter, in subscribe() 374 subscribeConfig.mSubscribeType == SubscribeConfig.SUBSCRIBE_TYPE_ACTIVE in subscribe() 378 !subscribeConfig.mEnableTerminateNotification; in subscribe() 386 req.subscribeType = subscribeConfig.mSubscribeType; in subscribe()
|
D | WifiAwareStateManager.java | 335 public void subscribe(int clientId, SubscribeConfig subscribeConfig, in subscribe() argument 341 msg.getData().putParcelable(MESSAGE_BUNDLE_KEY_CONFIG, subscribeConfig); in subscribe() 349 public void updateSubscribe(int clientId, int sessionId, SubscribeConfig subscribeConfig) { in updateSubscribe() argument 353 msg.obj = subscribeConfig; in updateSubscribe() 1253 SubscribeConfig subscribeConfig = (SubscribeConfig) msg.getData() in processCommand() local 1257 subscribeConfig, callback); in processCommand() 1263 SubscribeConfig subscribeConfig = (SubscribeConfig) msg.obj; in processCommand() local 1266 sessionId, subscribeConfig); in processCommand() 1932 SubscribeConfig subscribeConfig, IWifiAwareDiscoverySessionCallback callback) { in subscribeLocal() argument 1935 + ", subscribeConfig=" + subscribeConfig + ", callback=" + callback); in subscribeLocal() [all …]
|
/frameworks/base/wifi/tests/src/android/net/wifi/aware/ |
D | WifiAwareManagerTest.java | 200 SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().build(); in testConnectFailure() local 201 session.subscribe(subscribeConfig, mockSessionCallback, mMockLooperHandler); in testConnectFailure() 202 inOrder.verify(mockAwareService).subscribe(eq(clientId), eq(subscribeConfig), any()); in testConnectFailure() 403 final SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().build(); in testSubscribeFlow() local 432 session.subscribe(subscribeConfig, mockSessionCallback, mMockLooperHandler); in testSubscribeFlow() 433 inOrder.verify(mockAwareService).subscribe(eq(clientId), eq(subscribeConfig), in testSubscribeFlow() 461 subscribeSession.getValue().updateSubscribe(subscribeConfig); in testSubscribeFlow() 465 eq(subscribeConfig)); in testSubscribeFlow() 474 subscribeSession.getValue().updateSubscribe(subscribeConfig); in testSubscribeFlow() 490 final SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().build(); in testSubscribeRemoteTerminate() local [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/ |
D | WifiAwareServiceImplTest.java | 380 SubscribeConfig subscribeConfig = new SubscribeConfig.Builder() in testSubscribe() local 386 mDut.subscribe(clientId, subscribeConfig, mockCallback); in testSubscribe() 388 verify(mAwareStateManagerMock).subscribe(clientId, subscribeConfig, mockCallback); in testSubscribe() 446 SubscribeConfig subscribeConfig = new SubscribeConfig.Builder() in testUpdateSubscribeInvalid() local 451 mDut.updateSubscribe(clientId, sessionId, subscribeConfig); in testUpdateSubscribeInvalid() 453 verify(mAwareStateManagerMock).updateSubscribe(clientId, sessionId, subscribeConfig); in testUpdateSubscribeInvalid() 462 SubscribeConfig subscribeConfig = new SubscribeConfig.Builder() in testUpdateSubscribe() local 466 mDut.updateSubscribe(clientId, sessionId, subscribeConfig); in testUpdateSubscribe() 468 verify(mAwareStateManagerMock).updateSubscribe(clientId, sessionId, subscribeConfig); in testUpdateSubscribe() 603 SubscribeConfig subscribeConfig = new SubscribeConfig(serviceName.getBytes(), ssi, in doBadSubscribeConfiguration() local [all …]
|
D | WifiAwareStateManagerTest.java | 760 SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().build(); in testSubscribeFail() local 784 mDut.subscribe(clientId, subscribeConfig, mockSessionCallback); in testSubscribeFail() 786 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq(0), eq(subscribeConfig)); in testSubscribeFail() 798 mDut.subscribe(clientId, subscribeConfig, mockSessionCallback); in testSubscribeFail() 800 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq(0), eq(subscribeConfig)); in testSubscribeFail() 824 SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().build(); in testSubscribeSuccessTerminated() local 849 mDut.subscribe(clientId, subscribeConfig, mockSessionCallback); in testSubscribeSuccessTerminated() 851 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq(0), eq(subscribeConfig)); in testSubscribeSuccessTerminated() 865 mDut.updateSubscribe(clientId, sessionId.getValue(), subscribeConfig); in testSubscribeSuccessTerminated() 873 mDut.updateSubscribe(clientId, sessionId.getValue(), subscribeConfig); in testSubscribeSuccessTerminated() [all …]
|
D | WifiAwareDataPathStateManagerTest.java | 650 final SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().build(); in getSessionNetworkRequest() local 677 sessionCaptor.getValue().subscribe(subscribeConfig, mockSessionCallback, in getSessionNetworkRequest() 679 verify(mMockAwareService).subscribe(eq(clientId), eq(subscribeConfig), in getSessionNetworkRequest() 760 final SubscribeConfig subscribeConfig = new SubscribeConfig.Builder().build(); in initDataPathEndPoint() local 803 mDut.subscribe(clientId, subscribeConfig, mMockSessionCallback); in initDataPathEndPoint() 810 eq(subscribeConfig)); in initDataPathEndPoint()
|
/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(int clientId, in SubscribeConfig subscribeConfig, in subscribe() argument 52 void updateSubscribe(int clientId, int discoverySessionId, in SubscribeConfig subscribeConfig); in updateSubscribe() argument
|
D | WifiAwareSession.java | 172 public void subscribe(@NonNull SubscribeConfig subscribeConfig, in subscribe() argument 184 subscribeConfig, callback); in subscribe()
|
D | WifiAwareManager.java | 334 public void subscribe(int clientId, Looper looper, SubscribeConfig subscribeConfig, in subscribe() argument 339 "subscribe(): clientId=" + clientId + ", config=" + subscribeConfig); in subscribe() 344 mService.subscribe(clientId, subscribeConfig, in subscribe() 353 public void updateSubscribe(int clientId, int sessionId, SubscribeConfig subscribeConfig) { in updateSubscribe() argument 356 + ", config=" + subscribeConfig); in updateSubscribe() 360 mService.updateSubscribe(clientId, sessionId, subscribeConfig); in updateSubscribe()
|