Home
last modified time | relevance | path

Searched refs:mService (Results 1 – 25 of 351) sorted by relevance

12345678910>>...15

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bass_client/
DBleBroadcastAssistantBinderTest.java50 @Mock private BassClientService mService; field in BleBroadcastAssistantBinderTest
58 mBinder = new BassClientService.BluetoothLeBroadcastAssistantBinder(mService); in setUp()
65 assertThat(mBinder.mService).isNull(); in cleanUp()
72 verify(mService).getConnectionState(device); in getConnectionState()
74 doThrow(new RuntimeException()).when(mService).getConnectionState(device); in getConnectionState()
85 verify(mService).getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates()
87 doThrow(new RuntimeException()).when(mService).getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates()
99 verify(mService).getConnectedDevices(); in getConnectedDevices()
101 doThrow(new RuntimeException()).when(mService).getConnectedDevices(); in getConnectedDevices()
112 verify(mService).setConnectionPolicy(device, BluetoothProfile.CONNECTION_POLICY_ALLOWED); in setConnectionPolicy()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hearingaid/
DHearingAidServiceTest.java72 private HearingAidService mService; field in HearingAidServiceTest
105 mService.mHearingAidNativeInterface = mNativeInterface; in setUp()
106 mService.mAudioManager = mAudioManager; in setUp()
107 mServiceBinder = (HearingAidService.BluetoothHearingAidBinder) mService.initBinder(); in setUp()
145 mService = HearingAidService.getHearingAidService(); in startService()
146 Assert.assertNotNull(mService); in startService()
152 mService = HearingAidService.getHearingAidService(); in stopService()
153 Assert.assertNull(mService); in stopService()
192 mService.setActiveDevice(device); in verifyConnectionStateIntent()
194 if (mService.getConnectedDevices().isEmpty()) { in verifyConnectionStateIntent()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_audio/
DLeAudioServiceTest.java97 private LeAudioService mService; field in LeAudioServiceTest
184 mService.mAudioManager = mAudioManager; in setUp()
185 mService.mMcpService = mMcpService; in setUp()
186 mService.mTbsService = mTbsService; in setUp()
187 mService.mServiceFactory = mServiceFactory; in setUp()
193 mService.messageFromNative(stackEvent); in setUp()
194 assertThat(mService.mLeAudioNativeIsInitialized).isTrue(); in setUp()
230 if ((mService == null) || (mAdapter == null)) { in tearDown()
245 mService = LeAudioService.getLeAudioService(); in startService()
246 assertThat(mService).isNotNull(); in startService()
[all …]
/packages/modules/AdServices/adservices/framework/java/android/app/adservices/
DAdServicesManager.java58 private final IAdServicesManager mService; field in AdServicesManager
72 mService = iAdServicesManager; in AdServicesManager()
95 return mService.getConsent(consentApiType); in getConsent()
106 mService.setConsent(consentParcel); in setConsent()
119 mService.recordNotificationDisplayed(); in recordNotificationDisplayed()
133 return mService.wasNotificationDisplayed(); in wasNotificationDisplayed()
146 mService.recordGaUxNotificationDisplayed(); in recordGaUxNotificationDisplayed()
165 return mService.getUserManualInteractionWithConsent(); in getUserManualInteractionWithConsent()
175 mService.recordUserManualInteractionWithConsent(interaction); in recordUserManualInteractionWithConsent()
189 return mService.wasGaUxNotificationDisplayed(); in wasGaUxNotificationDisplayed()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarBugreportManagerServiceTest.java69 private CarBugreportManagerService mService; field in CarBugreportManagerServiceTest
92 if (mService != null) { in tearDown()
93 mService.release(); in tearDown()
106 mService = new CarBugreportManagerService(mMockContext, /* isUserBuild= */ true); in test_requestBugreport_failsIfNotDesignatedAppOnUserBuild()
107 mService.init(); in test_requestBugreport_failsIfNotDesignatedAppOnUserBuild()
118 () -> mService.requestBugreport(mMockOutput, mMockExtraOutput, in test_requestBugreport_failsIfNotDesignatedAppOnUserBuild()
127 mService = new CarBugreportManagerService(mMockContext, /* isUserBuild= */ true); in test_requestBugreport_failsWhenBugreportServiceCannotStart()
128 mService.init(); in test_requestBugreport_failsWhenBugreportServiceCannotStart()
133 mService.requestBugreport(mMockOutput, mMockExtraOutput, mMockCallback, DUMPSTATE_DRY_RUN); in test_requestBugreport_failsWhenBugreportServiceCannotStart()
135 assertThat(mService.mIsServiceRunning.get()).isFalse(); in test_requestBugreport_failsWhenBugreportServiceCannotStart()
[all …]
DCarOccupantZoneServiceTest.java87 private CarOccupantZoneService mService; field in CarOccupantZoneServiceTest
265 mService = new CarOccupantZoneService(mContext, mDisplayManager, mUserManager, in setUp()
267 spyOn(mService); in setUp()
269 doReturn(VehicleAreaSeat.SEAT_ROW_1_LEFT).when(mService).getDriverSeat(); in setUp()
270 doReturn(CURRENT_USER).when(mService).getCurrentUser(); in setUp()
277 }).when(mService).isUserVisible(any()); in setUp()
280 mManager = new CarOccupantZoneManager(car, mService); in setUp()
295 mService.init(); in testFindDisplayConfigForDisplayId()
297 DisplayConfig displayConfig0 = mService.findDisplayConfigForDisplayId(0); in testFindDisplayConfigForDisplayId()
301 DisplayConfig displayConfig2 = mService.findDisplayConfigForDisplayId(2); in testFindDisplayConfigForDisplayId()
[all …]
DCarPropertyServiceUnitTest.java92 private CarPropertyService mService; field in CarPropertyServiceUnitTest
227 mService = new CarPropertyService(mContext, mHalService); in setUp()
228 mService.init(); in setUp()
237 mService.getPropertiesAsync(new AsyncPropertyServiceRequestList(requests), in testGetPropertiesAsync()
246 () -> mService.getPropertiesAsync(null, mAsyncPropertyResultCallback, in testGetPropertiesAsync_throwsExceptionBecauseOfNullRequests()
253 () -> mService.getPropertiesAsync(new AsyncPropertyServiceRequestList(List.of()), in testGetPropertiesAsync_throwsExceptionBecauseOfNullCallback()
263 assertThrows(IllegalArgumentException.class, () -> mService.getPropertiesAsync( in testGetPropertiesAsync_propertyIdNotSupported()
274 assertThrows(SecurityException.class, () -> mService.getPropertiesAsync( in testGetPropertiesAsync_noReadPermission()
284 assertThrows(IllegalArgumentException.class, () -> mService.getPropertiesAsync( in testGetPropertiesAsync_propertyNotReadable()
294 assertThrows(IllegalArgumentException.class, () -> mService.getPropertiesAsync( in testGetPropertiesAsync_areaIdNotSupported()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/
DWatchdogStorageUnitTest.java80 private WatchdogStorage mService; field in WatchdogStorageUnitTest
91 mService = new WatchdogStorage(mContext, /* useDataSystemCarDir= */ false, mTimeSource); in setUp()
96 mService.release(); in tearDown()
104 assertWithMessage("Start write on clean db").that(mService.startWrite()).isFalse(); in testStartWrite()
106 mService.markDirty(); in testStartWrite()
108 assertWithMessage("Start write on a dirty DB").that(mService.startWrite()).isTrue(); in testStartWrite()
110 mService.markWriteSuccessful(); in testStartWrite()
111 mService.endWrite(); in testStartWrite()
113 assertWithMessage("Start write again").that(mService.startWrite()).isFalse(); in testStartWrite()
118 mService.markDirty(); in testStartWriteAndMarkDirty()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/mapclient/
DMapClientServiceTest.java60 private MapClientService mService = null; field in MapClientServiceTest
71 mService = MapClientService.getMapClientService(); in setUp()
72 assertThat(mService).isNotNull(); in setUp()
82 mService = MapClientService.getMapClientService(); in tearDown()
83 assertThat(mService).isNull(); in tearDown()
103 mService.getInstanceMap().put(mRemoteDevice, sm); in dump_callsStateMachineDump()
106 mService.dump(builder); in dump_callsStateMachineDump()
117 assertThat(mService.setConnectionPolicy(mRemoteDevice, connectionPolicy)).isTrue(); in setConnectionPolicy()
126 assertThat(mService.getConnectionPolicy(mRemoteDevice)).isEqualTo(connectionPolicy); in getConnectionPolicy()
135 assertThat(mService.connect(mRemoteDevice)).isFalse(); in connect_whenPolicyIsForbidden_returnsFalse()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/remoteaccess/
DCarRemoteAccessServiceUnitTest.java133 private CarRemoteAccessService mService; field in CarRemoteAccessServiceUnitTest
208 mService = newServiceWithSystemUpTime(ALLOWED_SYSTEM_UP_TIME_FOR_TESTING_MS); in setUp()
213 mService.release(); in tearDown()
229 mService.init(); in verifyBindingStartedForPackages()
251 mService.setAllowedTimeForRemoteTaskClientInitMs(100); in testStartRemoteTaskClientService()
253 mService.init(); in testStartRemoteTaskClientService()
267 mService.init(); in testStartRemoteTaskClientServiceUserLocked()
292 mService.init(); in testStartRemoteTaskClientServiceUserLocked_bindAgainAfterUnlock()
325 mService.init(); in testStartRemoteTaskClientServiceUserLocked_unbindWhileWaiting()
332 mService.unbindAllServices(); in testStartRemoteTaskClientServiceUserLocked_unbindWhileWaiting()
[all …]
/packages/modules/AdServices/sdksandbox/tests/unittest/src/com/android/server/sdksandbox/
DSdkSandboxShellCommandUnitTest.java53 private FakeSdkSandboxManagerService mService; field in SdkSandboxShellCommandUnitTest
86 mService = Mockito.spy(new FakeSdkSandboxManagerService(mSpyContext)); in setup()
138 new SdkSandboxShellCommand(mService, mSpyContext, injector); in testCommandFailsIfCallerNotShellOrRoot()
140 assertThat(cmd.exec(mService, mIn, mOut, mErr, new String[] {"start", DEBUGGABLE_PACKAGE})) in testCommandFailsIfCallerNotShellOrRoot()
147 new SdkSandboxShellCommand(mService, mSpyContext, new ShellInjector()); in testStartFailsForInvalidPackage()
149 assertThat(cmd.exec(mService, mIn, mOut, mErr, new String[] {"start", INVALID_PACKAGE})) in testStartFailsForInvalidPackage()
162 Mockito.doReturn(false).when(mService).isSdkSandboxServiceRunning(callingInfo); in testStartFailsWhenSdkSandboxDisabled()
164 new SdkSandboxShellCommand(mService, mSpyContext, new ShellInjector()); in testStartFailsWhenSdkSandboxDisabled()
165 mService.setIsSdkSandboxDisabledResponse(true); in testStartFailsWhenSdkSandboxDisabled()
167 assertThat(cmd.exec(mService, mIn, mOut, mErr, new String[] {"start", DEBUGGABLE_PACKAGE})) in testStartFailsWhenSdkSandboxDisabled()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/android/car/cluster/renderer/
DInstrumentClusterRenderingServiceTest.java98 private TestableInstrumentClusterRenderingService mService; field in InstrumentClusterRenderingServiceTest
122 mService = ((TestableInstrumentClusterRenderingService.BinderWrapper) binder).getService(); in bindService()
163 mService.setClusterActivityLaunchOptions(ActivityOptions.makeBasic()); in setNavigationContextOwner_launchesNavigationComponent()
166 mService.setClusterActivityState(clusterActivityState); in setNavigationContextOwner_launchesNavigationComponent()
169 .when(mService.mSpyPackageManager).getPackagesForUid(userId); in setNavigationContextOwner_launchesNavigationComponent()
171 .when(mService.mSpyPackageManager).checkPermission( in setNavigationContextOwner_launchesNavigationComponent()
173 doReturn(createActivityResolveInfo(packageName)).when(mService.mSpyPackageManager) in setNavigationContextOwner_launchesNavigationComponent()
180 assertThat(mService.mNumOfTimesOnNavigationComponentLaunchedCalled).isEqualTo(1); in setNavigationContextOwner_launchesNavigationComponent()
188 mService.setClusterActivityLaunchOptions(ActivityOptions.makeBasic()); in setNavigationContextOwner_navigationComponentAlreadyLaunched_doesNothing()
191 mService.setClusterActivityState(clusterActivityState); in setNavigationContextOwner_navigationComponentAlreadyLaunched_doesNothing()
[all …]
/packages/services/Car/cpp/watchdog/server/src/
DWatchdogServiceHelper.cpp67 mService(nullptr) {} in WatchdogServiceHelper()
92 if (mService != nullptr && mService->asBinder() == binder) { in registerService()
103 mService = service; in registerService()
110 if (mService != nullptr && mService->asBinder() == binder) { in registerService()
112 mService.reset(); in registerService()
131 mService == nullptr || binder != mService->asBinder()) { in unregisterService()
146 if (mService == nullptr) { in handleBinderDeath()
149 const auto curBinder = mService->asBinder(); in handleBinderDeath()
154 mService.reset(); in handleBinderDeath()
167 if (std::shared_lock readLock(mRWMutex); mService == nullptr || mService->asBinder() != who) { in checkIfAlive()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/gatt/
DGattServiceTest.java93 private GattService mService; field in GattServiceTest
142 mService = GattService.getGattService(); in setUp()
143 Assert.assertNotNull(mService); in setUp()
145 mService.mClientMap = mClientMap; in setUp()
146 mService.mScannerMap = mScannerMap; in setUp()
147 mService.mPeriodicScanManager = mPeriodicScanManager; in setUp()
148 mService.mScanManager = mScanManager; in setUp()
149 mService.mReliableQueue = mReliableQueue; in setUp()
150 mService.mServerMap = mServerMap; in setUp()
151 mService.mDistanceMeasurementManager = mDistanceMeasurementManager; in setUp()
[all …]
DGattServiceBinderTest.java68 private GattService mService; field in GattServiceBinderTest
84 when(mService.isAvailable()).thenReturn(true); in setUp()
85 mBinder = new GattService.BluetoothGattBinder(mService); in setUp()
97 verify(mService).getDevicesMatchingConnectionStates(states, mAttributionSource); in getDevicesMatchingConnectionStates()
109 verify(mService).registerClient(uuid, callback, eattSupport, mAttributionSource); in registerClient()
118 verify(mService).unregisterClient(clientIf, mAttributionSource); in unregisterClient()
129 verify(mService).registerScanner(callback, workSource, mAttributionSource); in registerScanner()
138 verify(mService).unregisterScanner(scannerId, mAttributionSource); in unregisterScanner()
150 verify(mService).startScan(scannerId, settings, filters, mAttributionSource); in startScan()
161 verify(mService).registerPiAndStartScan(mPendingIntent, settings, filters, in startScanForIntent()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerServiceTest.java63 private AvrcpControllerService mService = null; field in AvrcpControllerServiceTest
81 mService = AvrcpControllerService.getAvrcpControllerService(); in setUp()
82 assertThat(mService).isNotNull(); in setUp()
87 mService.mDeviceStateMap.put(mRemoteDevice, mStateMachine); in setUp()
96 mService = AvrcpControllerService.getAvrcpControllerService(); in tearDown()
97 assertThat(mService).isNull(); in tearDown()
110 assertThat(mService.disconnect(mRemoteDevice)).isFalse(); in disconnect_whenDisconnected_returnsFalse()
117 assertThat(mService.disconnect(mRemoteDevice)).isTrue(); in disconnect_whenDisconnected_returnsTrue()
125 mService.removeStateMachine(mStateMachine); in removeStateMachine()
127 assertThat(mService.mDeviceStateMap).doesNotContainKey(mRemoteDevice); in removeStateMachine()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dpsink/
DA2dpSinkServiceTest.java55 private A2dpSinkService mService = null; field in A2dpSinkServiceTest
101 mService = A2dpSinkService.getA2dpSinkService(); in setUp()
102 assertThat(mService).isNotNull(); in setUp()
105 mService.mNativeInterface = mNativeInterface; in setUp()
112 mService = A2dpSinkService.getA2dpSinkService(); in tearDown()
113 assertThat(mService).isNull(); in tearDown()
118 assertThat(mService.getConnectionState(device)).isEqualTo( in setupDeviceConnection()
120 assertThat(mService.connect(device)).isTrue(); in setupDeviceConnection()
123 assertThat(mService.getConnectionState(device)).isEqualTo( in setupDeviceConnection()
129 mService.messageFromNative(event); in sendConnectionEvent()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/vc/
DVolumeControlServiceTest.java75 private VolumeControlService mService; field in VolumeControlServiceTest
125 mService.mVolumeControlNativeInterface = mNativeInterface; in setUp()
126 mService.mAudioManager = mAudioManager; in setUp()
127 mService.mFactory = mServiceFactory; in setUp()
128 mServiceBinder = (VolumeControlService.BluetoothVolumeControlBinder) mService.initBinder(); in setUp()
158 if (mService == null) { in tearDown()
171 mService = VolumeControlService.getVolumeControlService(); in startService()
172 Assert.assertNotNull(mService); in startService()
177 mService = VolumeControlService.getVolumeControlService(); in stopService()
178 Assert.assertNull(mService); in stopService()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfpclient/
DHeadsetClientServiceBinderTest.java42 private HeadsetClientService mService; field in HeadsetClientServiceBinderTest
52 mBinder = new HeadsetClientService.BluetoothHeadsetClientBinder(mService); in setUp()
59 verify(mService).connect(mRemoteDevice); in connect_callsServiceMethod()
66 verify(mService).disconnect(mRemoteDevice); in disconnect_callsServiceMethod()
73 verify(mService).getConnectedDevices(); in getConnectedDevices_callsServiceMethod()
81 verify(mService).getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates_callsServiceMethod()
88 verify(mService).getConnectionState(mRemoteDevice); in getConnectionState_callsServiceMethod()
97 verify(mService).setConnectionPolicy(mRemoteDevice, connectionPolicy); in setConnectionPolicy_callsServiceMethod()
104 verify(mService).getConnectionPolicy(mRemoteDevice); in getConnectionPolicy_callsServiceMethod()
111 verify(mService).startVoiceRecognition(mRemoteDevice); in startVoiceRecognition_callsServiceMethod()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DAdapterServiceBinderTest.java42 @Mock private AdapterService mService; field in AdapterServiceBinderTest
51 mService.mAdapterProperties = mAdapterProperties; in setUp()
52 doReturn(true).when(mService).isAvailable(); in setUp()
53 doNothing().when(mService).enforceCallingOrSelfPermission(any(), any()); in setUp()
54 mBinder = new AdapterService.AdapterServiceBinder(mService); in setUp()
66 verify(mService.mAdapterProperties).getAddress(); in getAddress()
74 verify(mService).dump(any(), any(), any()); in dump()
76 Mockito.clearInvocations(mService); in dump()
79 verify(mService, never()).dump(any(), any(), any()); in dump()
89 verify(mService).generateLocalOobData(transport, cb); in generateLocalOobData()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DDiagnosticHalServiceTest.java65 private DiagnosticHalService mService; field in DiagnosticHalServiceTest
74 mService = new DiagnosticHalService(mVehicle); in setUp()
75 mService.setDiagnosticListener(mListener); in setUp()
102 mService.takeProperties(new ArrayList<HalPropConfig>(Arrays.asList( in setUp()
161 int[] props = mService.getSupportedDiagnosticProperties(); in testGetSupportedDiagnosticProperties()
170 assertThat(mService.requestDiagnosticStart(CarDiagnosticManager.FRAME_TYPE_LIVE, in verifyRequestDiagnosticStartRate()
173 verify(mVehicle).subscribeProperty(mService, VehicleProperty.OBD2_LIVE_FRAME, expectRate); in verifyRequestDiagnosticStartRate()
199 mService.takeProperties(new ArrayList<HalPropConfig>(Arrays.asList( in testRequestDiagnosticStartRateFitToMinRate()
210 mService.takeProperties(new ArrayList<HalPropConfig>(Arrays.asList( in testRequestDiagnosticStartRateFitToMaxRate()
219 assertThat(mService.requestDiagnosticStart(CarDiagnosticManager.FRAME_TYPE_FREEZE, in testRequestDiagnosticStartFreezeFrame()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/
DBluetoothHeadsetBinderTest.java37 private HeadsetService mService; field in BluetoothHeadsetBinderTest
47 mBinder = new HeadsetService.BluetoothHeadsetBinder(mService); in setUp()
55 verify(mService).connect(mTestDevice); in connect()
61 verify(mService).disconnect(mTestDevice); in disconnect()
67 verify(mService).getConnectedDevices(); in getConnectedDevices()
75 verify(mService).getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates()
82 verify(mService).getConnectionState(mTestDevice); in getConnectionState()
90 verify(mService).setConnectionPolicy(mTestDevice, connectionPolicy); in setConnectionPolicy()
97 verify(mService).getConnectionPolicy(mTestDevice); in getConnectionPolicy()
104 verify(mService).isNoiseReductionSupported(mTestDevice); in isNoiseReductionSupported()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbapclient/
DPbapClientServiceTest.java66 private PbapClientService mService = null; field in PbapClientServiceTest
85 mService = PbapClientService.getPbapClientService(); in setUp()
86 Assert.assertNotNull(mService); in setUp()
96 mService = PbapClientService.getPbapClientService(); in tearDown()
97 Assert.assertNull(mService); in tearDown()
117 mService.mPbapClientStateMachineMap.put(mRemoteDevice, sm); in dump_callsStateMachineDump()
120 mService.dump(builder); in dump_callsStateMachineDump()
127 assertThrows(IllegalArgumentException.class, () -> mService.setConnectionPolicy( in testSetConnectionPolicy_withNullDevice_throwsIAE()
137 assertThat(mService.setConnectionPolicy(mRemoteDevice, connectionPolicy)).isTrue(); in testSetConnectionPolicy()
142 assertThrows(IllegalArgumentException.class, () -> mService.getConnectionPolicy(null)); in testGetConnectionPolicy_withNullDevice_throwsIAE()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/cluster/
DClusterHomeManagerUnitTest.java62 private IClusterHomeService.Stub mService; field in ClusterHomeManagerUnitTest
80 when(mBinder.queryLocalInterface(anyString())).thenReturn(mService); in setup()
87 when(mService.getClusterState()).thenThrow(thrownException); in getClusterState_serviceFailure()
99 .when(mService).registerClusterStateListener(any()); in registerClusterStateListener_serviceFailure()
111 .when(mService).registerClusterNavigationStateListener(any()); in registerClusterNavigationStateListener_serviceFailure()
122 doNothing().when(mService).registerClusterStateListener(any()); in registerClusterStateListener_callbackAlreadyRegistered_doNothing()
129 verify(mService, times(1)).registerClusterStateListener(any()); in registerClusterStateListener_callbackAlreadyRegistered_doNothing()
130 verifyNoMoreInteractions(mService); in registerClusterStateListener_callbackAlreadyRegistered_doNothing()
136 doNothing().when(mService).registerClusterNavigationStateListener(any()); in registerClusterNavigationStateListener_callbackAlreadyRegistered_doNothing()
143 verify(mService, times(1)).registerClusterNavigationStateListener(any()); in registerClusterNavigationStateListener_callbackAlreadyRegistered_doNothing()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pan/
DPanServiceTest.java58 private PanService mService = null; field in PanServiceTest
75 mService = PanService.getPanService(); in setUp()
76 assertThat(mService).isNotNull(); in setUp()
80 mService.mUserManager = mMockUserManager; in setUp()
87 mService = PanService.getPanService(); in tearDown()
88 assertThat(mService).isNull(); in tearDown()
100 assertThat(mService.connect(mRemoteDevice)).isFalse(); in connect_whenGuestUser_returnsFalse()
106 mService.mPanDevices.put(mRemoteDevice, new BluetoothPanDevice( in connect_inConnectedState_returnsFalse()
109 assertThat(mService.connect(mRemoteDevice)).isFalse(); in connect_inConnectedState_returnsFalse()
115 mService.mPanDevices.put(mRemoteDevice, new BluetoothPanDevice( in connect()
[all …]

12345678910>>...15