Home
last modified time | relevance | path

Searched refs:subscribe (Results 1 – 25 of 89) sorted by relevance

1234

/packages/services/Car/tests/carservice_unit_test/src/android/car/vms/
DVmsSubscriptionHelperTest.java55 mSubscriptionHelper.subscribe(LAYER1); in testSubscribe_SingleLayer()
63 mSubscriptionHelper.subscribe(LAYER1); in testSubscribe_SingleLayer_IgnoreDuplicates()
64 mSubscriptionHelper.subscribe(LAYER1); in testSubscribe_SingleLayer_IgnoreDuplicates()
75 () -> mSubscriptionHelper.subscribe(LAYER1)); in testSubscribe_SingleLayer_RetryAfterException()
78 mSubscriptionHelper.subscribe(LAYER1); in testSubscribe_SingleLayer_RetryAfterException()
86 mSubscriptionHelper.subscribe(LAYER1); in testUnsubscribe_SingleLayer()
95 mSubscriptionHelper.subscribe(LAYER1); in testUnsubscribe_SingleLayer_IgnoreUnknown()
104 mSubscriptionHelper.subscribe(LAYER1); in testUnsubscribe_SingleLayer_RetryAfterException()
119 mSubscriptionHelper.subscribe(LAYER1); in testSubscribe_MultipleLayers()
120 mSubscriptionHelper.subscribe(LAYER2); in testSubscribe_MultipleLayers()
[all …]
/packages/services/Car/tests/carservice_test/src/com/android/car/
DVmsPublisherSubscriberTest.java255 mSubscriber.subscribe(SUBSCRIPTION_LAYER); in testSubscribe()
268 mSubscriber.subscribe(SUBSCRIPTION_LAYER); in testSubscribe_AfterPublish()
276 mSubscriber.subscribe(SUBSCRIPTION_LAYER); in testSubscribe_MultipleLayers()
277 mSubscriber.subscribe(SUBSCRIPTION_LAYER_OTHER); in testSubscribe_MultipleLayers()
290 mSubscriber.subscribe(SUBSCRIPTION_LAYER); in testSubscribe_MultiplePublishers()
304 mSubscriber.subscribe(SUBSCRIPTION_LAYER); in testSubscribe_MultipleLayers_MultiplePublishers()
305 mSubscriber.subscribe(SUBSCRIPTION_LAYER_OTHER); in testSubscribe_MultipleLayers_MultiplePublishers()
319 mSubscriber.subscribe(SUBSCRIPTION_LAYER); in testSubscribe_ClearCallback()
330 mSubscriber.subscribe(SUBSCRIPTION_LAYER); in testSubscribe_NoCallback()
335 mSubscriber.subscribe(SUBSCRIPTION_LAYER); in testUnsubscribe()
[all …]
DVmsSubscriberManagerTest.java85 getSubscriberManager().subscribe(SUBSCRIPTION_LAYER); in testSubscribe()
105 getSubscriberManager().subscribe(SUBSCRIPTION_LAYER, PUBLISHER_ID); in testSubscribeToPublisher()
123 getSubscriberManager().subscribe(SUBSCRIPTION_LAYER, PUBLISHER_ID); in testSubscribeFromPublisher()
143 getSubscriberManager().subscribe(SUBSCRIPTION_LAYER); in testUnsubscribe()
162 getSubscriberManager().subscribe(SUBSCRIPTION_LAYER, PUBLISHER_ID); in testSubscribeFromWrongPublisher()
180 getSubscriberManager().subscribe(SUBSCRIPTION_LAYER, PUBLISHER_ID); in testUnsubscribeFromPublisher()
248 getSubscriberManager().subscribe(SUBSCRIPTION_LAYER); in testSimpleAvailableLayersAfterSubscription()
DVmsOperationRecorderTest.java89 mRecorder.subscribe(layer1); in testSubscribe()
189 mRecorder.subscribe(layer1, 99); in testSubscribeToPublisher()
/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/activeunlock/
DActiveUnlockContentListenerTest.java90 mContentListener.subscribe(); in subscribe_contentFetched()
98 mContentListener.subscribe(); in contentUpdated_contentUpdated()
109 mContentListener.subscribe(); in contentUpdated_unsubscribed_contentNotUpdated()
120 mContentListener.subscribe(); in multipleContentUpdates_contentIsNewestValueAndUpdatedTwice()
133 mContentListener.subscribe(); in duplicateContentUpdates_onContentChangedOnlyCalledOnce()
159 assertThat(contentListener.subscribe()).isFalse(); in noProvider_subscribeDoesntRegisterObserver()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/audio_util/mockable/
DMediaBrowser.java135 public void subscribe(String parentId, Bundle options, SubscriptionCallback callback) { in subscribe() method in MediaBrowser
136 mDelegate.subscribe(parentId, options, callback); in subscribe()
142 public void subscribe(String parentId, SubscriptionCallback callback) { in subscribe() method in MediaBrowser
143 mDelegate.subscribe(parentId, callback); in subscribe()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/fakevhal/
DFakeVehicleStubUnitTest.java1134 client.subscribe(options); in testSubscribeOnChangePropOneClientSubscribeOnePropManyTime()
1135 client.subscribe(options); in testSubscribeOnChangePropOneClientSubscribeOnePropManyTime()
1136 client.subscribe(options); in testSubscribeOnChangePropOneClientSubscribeOnePropManyTime()
1179 client.subscribe(options); in testSubscribeOnChangePropOneClientSubscribeTwoProp()
1221 client.subscribe(options); in testSubscribeAreaPropertyWithEmptyOptionsAreaIds()
1252 client1.subscribe(options); in testSubscribeOnChangePropTwoClientSubscribeSameProp()
1253 client2.subscribe(options); in testSubscribeOnChangePropTwoClientSubscribeSameProp()
1280 client.subscribe(options); in testSubscribeContinuousProp()
1308 client.subscribe(options1); in testSubscribeContinuousPropDifferentRate()
1313 client.subscribe(options2); in testSubscribeContinuousPropDifferentRate()
[all …]
/packages/services/Car/car-lib/src/android/car/vms/
DVmsSubscriberManager.java186 public void subscribe(@NonNull VmsLayer layer) { in subscribe() method in VmsSubscriberManager
187 mSubscriptionHelper.subscribe(layer); in subscribe()
199 public void subscribe(@NonNull VmsLayer layer, int publisherId) { in subscribe() method in VmsSubscriberManager
200 mSubscriptionHelper.subscribe(layer, publisherId); in subscribe()
DVmsSubscriptionHelper.java67 public void subscribe(@NonNull VmsLayer layer) { in subscribe() method in VmsSubscriptionHelper
81 public void subscribe(@NonNull VmsLayer layer, int providerId) { in subscribe() method in VmsSubscriptionHelper
DVmsOperationRecorder.java70 public void subscribe(VmsLayer layer) { in subscribe() method in VmsOperationRecorder
87 public void subscribe(VmsLayer layer, int publisherId) { in subscribe() method in VmsOperationRecorder
/packages/modules/Wifi/tests/hostsidetests/multidevices/test/aware/
Dwifi_aware_test.py66 self.subscriber.wifi_aware_snippet.subscribe(is_unsolicited, is_ranging_required, False)
86 self.subscriber.wifi_aware_snippet.subscribe(is_unsolicited, is_ranging_required, True)
101 self.subscriber.wifi_aware_snippet.subscribe(is_unsolicited, is_ranging_required, True)
/packages/apps/Settings/src/com/android/settings/biometrics/activeunlock/
DActiveUnlockSummaryListener.java35 public void subscribe() { in subscribe() method in ActiveUnlockSummaryListener
36 mContentListener.subscribe(); in subscribe()
DActiveUnlockDeviceNameListener.java40 public void subscribe() { in subscribe() method in ActiveUnlockDeviceNameListener
41 mActiveUnlockContentListener.subscribe(); in subscribe()
DActiveUnlockStatusPreferenceController.java96 mActiveUnlockSummaryListener.subscribe(); in onStart()
97 mActiveUnlockDeviceNameListener.subscribe(); in onStart()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DVehicleHalTest.java527 verify(mSubscriptionClient).subscribe(eq(new SubscribeOptions[]{expectedOptions}));
539 verify(mSubscriptionClient).subscribe(eq(new SubscribeOptions[]{expectedOptions}));
551 verify(mSubscriptionClient).subscribe(eq(new SubscribeOptions[]{expectedOptions}));
578 doThrow(new RemoteException()).when(mSubscriptionClient).subscribe(any());
587 verify(mSubscriptionClient).subscribe(eq(new SubscribeOptions[]{expectedOptions}));
597 verify(mSubscriptionClient, never()).subscribe(any());
605 verify(mSubscriptionClient).subscribe(any());
612 verify(mSubscriptionClient, never()).subscribe(any());
624 verify(mSubscriptionClient).subscribe(eq(new SubscribeOptions[]{expectedOptions}));
645 verify(mSubscriptionClient).subscribe(eq(new SubscribeOptions[]{expectedOptions1}));
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/darkmode/
DDarkModeObserverTest.java76 mDarkModeObserver.subscribe(mCallback); in callbackTest_subscribedCallbackCalled()
86 mDarkModeObserver.subscribe(mCallback); in callbackTest_unsubscribedAfterSubscribe_noMoreCallbackCalled()
/packages/apps/Settings/src/com/android/settings/display/darkmode/
DDarkModePreference.java53 mDarkModeObserver.subscribe(mCallback); in DarkModePreference()
59 mDarkModeObserver.subscribe(mCallback); in onAttached()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareServiceImplTest.java353 mDut.subscribe(mPackageName, mFeatureId, clientId, subscribeConfig, mockCallback, mExtras); in testFailOnSubscribeRangingWithoutRttFeature()
547 mDut.subscribe(mPackageName, mFeatureId, clientId, subscribeConfig, mockCallback, mExtras); in testSubscribe()
549 verify(mAwareStateManagerMock).subscribe(clientId, subscribeConfig, mockCallback); in testSubscribe()
568 mDut.subscribe(mPackageName, mFeatureId, clientId, subscribeConfig, mockCallback, mExtras); in testSubscribePostT()
570 verify(mAwareStateManagerMock).subscribe(clientId, subscribeConfig, mockCallback); in testSubscribePostT()
588 mDut.subscribe(mPackageName, mFeatureId, clientId, subscribeConfig, mockCallback, mExtras); in testSubscribeExceptionPostT()
1008 mDut.subscribe(mPackageName, mFeatureId, clientId, subscribeConfig, mockCallback, mExtras); in doBadSubscribeConfiguration()
1010 verify(mAwareStateManagerMock).subscribe(clientId, subscribeConfig, mockCallback); in doBadSubscribeConfiguration()
DWifiAwareStateManagerTest.java375 mDut.subscribe(clientId1, subscribeConfig, mockSessionCallback1); in testRequestMacAddresses()
377 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), in testRequestMacAddresses()
383 mDut.subscribe(clientId2, subscribeConfig, mockSessionCallback2); in testRequestMacAddresses()
385 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), in testRequestMacAddresses()
1130 mDut.subscribe(clientId, subscribeConfig, mockSessionCallback); in testSubscribeSuccessInstantCommunicationMode()
1132 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), in testSubscribeSuccessInstantCommunicationMode()
1425 mDut.subscribe(clientId, subscribeConfig, mockSessionCallback); in testSubscribeFail()
1427 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), in testSubscribeFail()
1439 when(mMockNative.subscribe(anyShort(), anyByte(), any(), any())).thenReturn(false); in testSubscribeFail()
1441 mDut.subscribe(clientId, subscribeConfig, mockSessionCallback); in testSubscribeFail()
[all …]
/packages/modules/Wifi/framework/java/android/net/wifi/aware/
DWifiAwareSession.java232 public void subscribe(@NonNull SubscribeConfig subscribeConfig, in subscribe() method in WifiAwareSession
243 mgr.subscribe(mClientId, (handler == null) ? Looper.getMainLooper() : handler.getLooper(), in subscribe()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hal/
DWifiNanIfaceAidlImplTest.java100 mDut.subscribe(tid, pid, subDefault, null); in testDiscoveryRangingSettings()
101 mDut.subscribe(tid, pid, subWithMin, null); in testDiscoveryRangingSettings()
102 mDut.subscribe(tid, pid, subWithMax, null); in testDiscoveryRangingSettings()
103 mDut.subscribe(tid, pid, subWithMinMax, null); in testDiscoveryRangingSettings()
DWifiNanIfaceHidlImplTest.java140 mDut.subscribe(tid, pid, subDefault, null); in testDiscoveryRangingSettings()
141 mDut.subscribe(tid, pid, subWithMin, null); in testDiscoveryRangingSettings()
142 mDut.subscribe(tid, pid, subWithMax, null); in testDiscoveryRangingSettings()
143 mDut.subscribe(tid, pid, subWithMinMax, null); in testDiscoveryRangingSettings()
/packages/apps/Car/systemlibs/car-qc-lib/src/com/android/car/qc/controller/
DRemoteQCController.java158 private void subscribe() { in subscribe() method in RemoteQCController
265 subscribe(); in trySubscribe()
/packages/services/Car/cpp/vhal/client/test/
DHidlVhalClientTest.cpp73 Return<StatusCode> subscribe(const sp<IVehicleCallback>& callback, in subscribe() function in android::frameworks::automotive::vhal::hidl_test::MockVhal
393 auto result = subscriptionClient->subscribe(options); in TEST_F()
434 auto result = subscriptionClient->subscribe(options); in TEST_F()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/aware/
DWifiAwareManagerTest.java281 session.subscribe(subscribeConfig, mockSessionCallback, mMockLooperHandler); in testConnectFailure()
282 inOrder.verify(mockAwareService).subscribe(any(), any(), eq(clientId), eq(subscribeConfig), in testConnectFailure()
528 session.subscribe(subscribeConfig, mockSessionCallback, mMockLooperHandler); in testSubscribeFlow()
529 inOrder.verify(mockAwareService).subscribe(any(), any(), eq(clientId), eq(subscribeConfig), in testSubscribeFlow()
624 session.subscribe(subscribeConfig, mockSessionCallback, mMockLooperHandler); in testSubscribeRemoteTerminate()
625 inOrder.verify(mockAwareService).subscribe(any(), any(), eq(clientId), eq(subscribeConfig), in testSubscribeRemoteTerminate()
1649 session.subscribe(subscribeConfig, mockSessionCallback, mMockLooperHandler); in executeSessionStartup()
1650 inOrder.verify(mockAwareService).subscribe(any(), any(), eq(clientId), in executeSessionStartup()
1870 session.subscribe(subscribeConfig, mockSessionCallback, mMockLooperHandler); in testInitiatePairingFlow()
1871 inOrder.verify(mockAwareService).subscribe(any(), any(), eq(clientId), eq(subscribeConfig), in testInitiatePairingFlow()

1234