Home
last modified time | relevance | path

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

123456789

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hearingaid/
DHearingAidServiceTest.java64 private HearingAidService mService; field in HearingAidServiceTest
100 mService.mHearingAidNativeInterface = mNativeInterface; in setUp()
101 mService.mAudioManager = mAudioManager; in setUp()
141 mService = HearingAidService.getHearingAidService(); in startService()
142 Assert.assertNotNull(mService); in startService()
147 mService = HearingAidService.getHearingAidService(); in stopService()
148 Assert.assertNull(mService); in stopService()
192 Assert.assertEquals(mService, HearingAidService.getHearingAidService()); in testGetHearingAidService()
205 Assert.assertTrue(mService.stop()); in testStopHearingAidService()
211 Assert.assertTrue(mService.start()); in testStopHearingAidService()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/le_audio/
DLeAudioServiceTest.java67 private LeAudioService mService; field in LeAudioServiceTest
96 mService.mLeAudioNativeInterface = mNativeInterface; in setUp()
131 mService = LeAudioService.getLeAudioService(); in startService()
132 assertThat(mService).isNotNull(); in startService()
137 mService = LeAudioService.getLeAudioService(); in stopService()
138 assertThat(mService).isNull(); in stopService()
178 assertThat(mService).isEqualTo(LeAudioService.getLeAudioService()); in testGetLeAudioService()
191 assertThat(mService.stop()).isTrue(); in testStopLeAudioService()
197 assertThat(mService.start()).isTrue(); in testStopLeAudioService()
211 .isEqualTo(mService.getConnectionPolicy(mLeftDevice)); in testGetSetPriority()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarOccupantZoneServiceTest.java79 private CarOccupantZoneService mService; field in CarOccupantZoneServiceTest
240 mService = new CarOccupantZoneService(mContext, mDisplayManager, mUserManager, in setUp()
242 spyOn(mService); in setUp()
243 doReturn(VehicleAreaSeat.SEAT_ROW_1_LEFT).when(mService).getDriverSeat(); in setUp()
244 doReturn(CURRENT_USER).when(mService).getCurrentUser(); in setUp()
247 mManager = new CarOccupantZoneManager(car, mService); in setUp()
258 mService.init(); in testDefaultOccupantConfig()
261 SparseArray<OccupantZoneInfo> configs = mService.getOccupantsConfig(); in testDefaultOccupantConfig()
271 mService.init(); in testDefaultAudioZoneConfig()
272 SparseIntArray audioConfigs = mService.getAudioConfigs(); in testDefaultAudioZoneConfig()
[all …]
DSystemActivityMonitoringServiceTest.java58 private SystemActivityMonitoringService mService; field in SystemActivityMonitoringServiceTest
62 mService = new SystemActivityMonitoringService(getContext()); in setUp()
63 mService.init(); in setUp()
68 mService.registerActivityLaunchListener(null); in tearDown()
69 mService.release(); in tearDown()
70 mService = null; in tearDown()
77 mService.registerActivityLaunchListener(listenerA); in testActivityLaunch()
83 mService.registerActivityLaunchListener(listenerB); in testActivityLaunch()
98 mService.registerActivityLaunchListener(listenerDenyListed); in testActivityBlocking()
104 mService.registerActivityLaunchListener(listenerBlocking); in testActivityBlocking()
[all …]
/packages/services/Car/cpp/watchdog/server/src/
DWatchdogServiceHelper.cpp71 sp<IBinder> curBinder = BnCarWatchdogServiceForSystem::asBinder(mService); in registerService()
73 if (mService != nullptr && curBinder == newBinder) { in registerService()
86 mService = service; in registerService()
93 binder != BnCarWatchdogServiceForSystem::asBinder(mService)) { in unregisterService()
104 sp<IBinder> curBinder = BnCarWatchdogServiceForSystem::asBinder(mService); in binderDied()
109 mService.clear(); in binderDied()
122 if (std::shared_lock readLock(mRWMutex); mService == nullptr || in checkIfAlive()
123 who.unsafe_get() != BnCarWatchdogServiceForSystem::asBinder(mService)) { in checkIfAlive()
129 service = mService; in checkIfAlive()
136 if (std::shared_lock readLock(mRWMutex); mService == nullptr || in prepareProcessTermination()
[all …]
/packages/apps/Contacts/src/com/android/contacts/vcard/
DExportProcessor.java53 private final VCardService mService; field in ExportProcessor
68 Toast.makeText(mService,
77 mService = service; in ExportProcessor()
80 (NotificationManager)mService.getSystemService(Context.NOTIFICATION_SERVICE); in ExportProcessor()
101 FeedbackHelper.sendFeedback(mService, LOG_TAG, "Failed to process vcard export", e); in run()
130 mService.getString(R.string.fail_reason_could_not_open_file, in runInternal()
140 mService.getString(R.string.config_export_vcard_type)); in runInternal()
145 composer = new VCardComposer(mService, vcardType, true); in runInternal()
163 mService.getString(R.string.fail_reason_could_not_initialize_exporter, in runInternal()
172 mService.getString(R.string.fail_reason_no_exportable_contact); in runInternal()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/
DCarTelemetryServiceTest.java46 private CarTelemetryService mService; field in CarTelemetryServiceTest
50 mService = new CarTelemetryService(mContext); in setUp()
55 int result = mService.addManifest(mManifestKeyV1, mMetricsConfig.toByteArray()); in testAddManifest_newManifest_shouldSucceed()
62 mService.addManifest(mManifestKeyV1, mMetricsConfig.toByteArray()); in testAddManifest_duplicateManifest_shouldFail()
64 int result = mService.addManifest(mManifestKeyV1, mMetricsConfig.toByteArray()); in testAddManifest_duplicateManifest_shouldFail()
71 int result = mService.addManifest(mManifestKeyV1, "bad manifest".getBytes()); in testAddManifest_invalidManifest_shouldFail()
78 mService.addManifest(mManifestKeyV2, mMetricsConfig.toByteArray()); in testAddManifest_olderManifest_shouldFail()
80 int result = mService.addManifest(mManifestKeyV1, mMetricsConfig.toByteArray()); in testAddManifest_olderManifest_shouldFail()
87 mService.addManifest(mManifestKeyV1, mMetricsConfig.toByteArray()); in testAddManifest_newerManifest_shouldReplace()
89 int result = mService.addManifest(mManifestKeyV2, mMetricsConfig.toByteArray()); in testAddManifest_newerManifest_shouldReplace()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
DCarPowerManagementServiceUnitTest.java116 private CarPowerManagementService mService; field in CarPowerManagementServiceUnitTest
160 if (mService != null) { in tearDown()
161 mService.release(); in tearDown()
183 mService = new CarPowerManagementService(mContext, mResources, mPowerHal, mSystemInterface, in setService()
187 CarLocalServices.addService(CarPowerManagementService.class, mService); in setService()
188 mService.init(); in setService()
189 mService.setShutdownTimersForTest(0, 0); in setService()
191 mService.scheduleNextWakeupTime(WAKE_UP_DELAY); in setService()
218 assertThat(mService.garageModeShouldExitImmediately()).isFalse(); in testShutdown()
239 assertThat(mService.garageModeShouldExitImmediately()).isTrue(); in testShutdownImmediately()
[all …]
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiManager.java1379 IWifiManager mService; field in WifiManager
1420 mService = service; in WifiManager()
1469 mService.getConfiguredNetworks(mContext.getOpPackageName(), in getConfiguredNetworks()
1494 mService.getConfiguredNetworks(mContext.getOpPackageName(), in getCallerConfiguredNetworks()
1512 mService.getPrivilegedConfiguredNetworks(mContext.getOpPackageName(), in getPrivilegedConfiguredNetworks()
1546 mService.getAllMatchingPasspointProfilesForScanResults(scanResults); in getAllMatchingWifiConfigs()
1551 mService.getWifiConfigsForPasspointProfiles( in getAllMatchingWifiConfigs()
1591 return mService.getWifiConfigForMatchedNetworkSuggestionsSharedWithUser(scanResults); in getWifiConfigForMatchedNetworkSuggestionsSharedWithUser()
1619 return mService.getMatchingOsuProviders(scanResults); in getMatchingOsuProviders()
1646 return mService.getMatchingPasspointConfigsForOsuProviders( in getMatchingPasspointConfigsForOsuProviders()
[all …]
/packages/modules/Scheduling/tests/unittests/src/com/android/server/scheduling/
DRebootReadinessUnitTest.java120 private RebootReadinessManagerService mService; field in RebootReadinessUnitTest
178 mService = new RebootReadinessManagerService(mMockContext, mLogger); in setup()
202 mService.cancelPendingReboot(TEST_PACKAGE); in teardown()
203 mService.cancelPendingReboot(TEST_PACKAGE2); in teardown()
213 mService.markRebootPending(TEST_PACKAGE); in testCallingPackages()
214 assertThat(mService.getCallingPackages().valueAt(0)).contains(TEST_PACKAGE); in testCallingPackages()
215 mService.cancelPendingReboot(TEST_PACKAGE); in testCallingPackages()
216 assertThat(mService.getCallingPackages().size()).isEqualTo(0); in testCallingPackages()
225 mService.addRequestRebootReadinessStatusListener(getStatusListener(latch)); in testRegisteredListenerIsCalled()
226 mService.markRebootPending(TEST_PACKAGE); in testRegisteredListenerIsCalled()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/mapclient/
DMapClientTest.java57 private MapClientService mService = null; field in MapClientTest
78 mService = MapClientService.getMapClientService(); in setUp()
79 Assert.assertNotNull(mService); in setUp()
89 mService = MapClientService.getMapClientService(); in tearDown()
90 Assert.assertNull(mService); in tearDown()
117 Assert.assertNull(mService.getInstanceMap().get(device)); in testConnect()
121 Assert.assertTrue(mService.connect(device)); in testConnect()
124 Map<BluetoothDevice, MceStateMachine> map = mService.getInstanceMap(); in testConnect()
127 TestUtils.waitForLooperToFinishScheduledTask(mService.getMainLooper()); in testConnect()
130 mService.cleanupDevice(device); in testConnect()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/
DCarWatchdogManagerUnitTest.java89 @Mock private ICarWatchdogService mService; field in CarWatchdogManagerUnitTest
96 when(mBinder.queryLocalInterface(anyString())).thenReturn(mService); in setUp()
105 verify(mService).unregisterClient(clientImpl); in testRegisterClient()
108 verify(mService, never()).tellClientAlive(clientImpl, 123456); in testRegisterClient()
149 when(mService.getResourceOveruseStats(FLAG_RESOURCE_OVERUSE_IO, STATS_PERIOD_CURRENT_DAY)) in testGetResourceOveruseStats()
165 when(mService.getAllResourceOveruseStats(FLAG_RESOURCE_OVERUSE_IO, in testGetAllResourceOveruseStats()
180 when(mService.getResourceOveruseStatsForUserPackage(packageName, userHandle, in testGetResourceOveruseStatsForUserPackage()
210 verify(mService).removeResourceOveruseListener(listenerImpl); in testAddResourceOveruseListener()
216 verifyNoMoreInteractions(mService); in testAddResourceOveruseListener()
239 verifyNoMoreInteractions(mService); in testMultipleAddResourceOveruseListener()
[all …]
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DMyServiceClient.java37 private IMyService mService; field in MyServiceClient
44 if (mService != null) { in bind()
52 mService = IMyService.Stub.asInterface(service); in bind()
57 mService = null; in bind()
68 if (mService == null) { in bind()
75 if (mService != null) { in unbind()
81 mService.registerBroadcastReceiver(); in registerBroadcastReceiver()
85 return mService.getCounters(receiverName, action); in getCounters()
89 return mService.checkNetworkStatus(); in checkNetworkStatus()
93 return mService.getRestrictBackgroundStatus(); in getRestrictBackgroundStatus()
[all …]
/packages/services/Car/experimental/tests/experimentalcarservice_unit_test/src/com/android/experimentalcar/
DDriverDistractionExperimentalFeatureServiceTest.java156 private DriverDistractionExperimentalFeatureService mService; field in DriverDistractionExperimentalFeatureServiceTest
180 mService = new DriverDistractionExperimentalFeatureService(mSpyContext, mTimeSource, in setUp()
183 mManager = new CarDriverDistractionManager(Car.createCar(mSpyContext), mService); in setUp()
188 if (mService != null) { in tearDown()
189 mService.release(); in tearDown()
236 mService = new DriverDistractionExperimentalFeatureService(serviceLauncherContext, in testInit_bindsToServicesInXmlConfig()
239 mService.init(); in testInit_bindsToServicesInXmlConfig()
250 mService.setDriverAwarenessSuppliers(Arrays.asList( in testHandleDriverAwarenessEvent_updatesCurrentValue_withLatestEvent()
262 mService.setDriverAwarenessSuppliers(Arrays.asList( in testHandleDriverAwarenessEvent_hasPreferredEvent_ignoresFallbackEvent()
279 mService.setDriverAwarenessSuppliers(Arrays.asList( in testHandleDriverAwarenessEvent_ignoresOldEvents()
[all …]
/packages/services/Car/car-lib/src/android/car/media/
DCarAudioManager.java139 private final ICarAudio mService; field in CarAudioManager
185 return mService.isAudioFeatureEnabled(audioFeature); in isAudioFeatureEnabled()
218 mService.setGroupVolume(zoneId, groupId, index, flags); in setGroupVolume()
248 return mService.getGroupMaxVolume(zoneId, groupId); in getGroupMaxVolume()
278 return mService.getGroupMinVolume(zoneId, groupId); in getGroupMinVolume()
311 return mService.getGroupVolume(zoneId, groupId); in getGroupVolume()
330 mService.setFadeTowardFront(value); in setFadeTowardFront()
349 mService.setBalanceTowardRight(value); in setBalanceTowardRight()
371 return mService.getExternalSources(); in getExternalSources()
402 return mService.createAudioPatch(sourceAddress, usage, gainInMillibels); in createAudioPatch()
[all …]
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/ipmemorystore/
DIpMemoryStoreServiceTest.java116 private IpMemoryStoreService mService; field in IpMemoryStoreServiceTest
127 mService = new IpMemoryStoreService(mMockContext) { in setUp()
145 mService.shutdown(); in tearDown()
380 doLatched(timeoutMessage, latch -> mService.storeNetworkAttributes(l2Key, na.toParcelable(),
395 doLatched(timeoutMessage, latch -> mService.storeBlob(l2Key, TEST_CLIENT_ID, TEST_DATA_NAME,
425 mService.mDb,
433 mService.mDb, "fakeKey" + i, TEST_CLIENT_ID, TEST_DATA_NAME,
439 assertTrue(mService.isDbSizeOverThreshold());
464 mService.retrieveNetworkAttributes(l2Key, onNetworkAttributesRetrieved(
480 mService.retrieveNetworkAttributes(l2Key, onNetworkAttributesRetrieved(
[all …]
/packages/apps/ImsServiceEntitlement/tests/unittests/src/com/android/imsserviceentitlement/
DImsEntitlementPollingServiceTest.java73 private ImsEntitlementPollingService mService; field in ImsEntitlementPollingServiceTest
81 mService = new ImsEntitlementPollingService(); in setUp()
82 mService.attachBaseContext(mContext); in setUp()
83 mService.onCreate(); in setUp()
84 mService.onBind(null); in setUp()
85 mService.injectImsEntitlementApi(mImsEntitlementApi); in setUp()
98 mService.onStartJob(mJobParameters); in doEntitlementCheck_isWfcEnabledByUserFalse_doNothing()
99 mService.mOngoingTask.get(); // wait for job finish. in doEntitlementCheck_isWfcEnabledByUserFalse_doNothing()
110 mService.onStartJob(mJobParameters); in doEntitlementCheck_shouldTurnOffWfc_disableWfc()
111 mService.mOngoingTask.get(); // wait for job finish. in doEntitlementCheck_shouldTurnOffWfc_disableWfc()
[all …]
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarUxRestrictionsManagerServiceTest.java100 private CarUxRestrictionsManagerService mService; field in CarUxRestrictionsManagerServiceTest
139 mService = new CarUxRestrictionsManagerService(mSpyContext, in setUp()
145 mService = null; in tearDown()
154 assertTrue(mService.saveUxRestrictionsConfigurationForNextBoot(Arrays.asList(config))); in testSaveConfig_WriteStagedFile()
173 assertFalse(mService.saveUxRestrictionsConfigurationForNextBoot(Arrays.asList(spyConfig))); in testSaveConfig_ReturnFalseOnException()
183 for (CarUxRestrictionsConfiguration config : mService.loadConfig()) { in testLoadConfig_UseDefaultConfigWhenNoSavedConfigFileNoXml()
184 assertTrue(config.equals(mService.createDefaultConfig(config.getPhysicalPort()))); in testLoadConfig_UseDefaultConfigWhenNoSavedConfigFileNoXml()
194 List<CarUxRestrictionsConfiguration> actual = mService.loadConfig(); in testLoadConfig_UseXml()
204 CarUxRestrictionsConfiguration actual = mService.loadConfig().get(0); in testLoadConfig_UseProdConfig()
223 CarUxRestrictionsConfiguration actual = mService.loadConfig().get(0); in testLoadConfig_SupportsLegacyV1()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DPbapStateMachine.java87 private BluetoothPbapService mService; field in PbapStateMachine
106 mService = service; in PbapStateMachine()
166 mService.sendBroadcastAsUser(intent, UserHandle.ALL, in broadcastConnectionState()
230 mService.checkOrGetPhonebookPermission(PbapStateMachine.this); in processMessage()
252 new BluetoothPbapObexServer(mServiceHandler, mService, PbapStateMachine.this); in rejectConnection()
309 mService.setConnectionPolicy( in enter()
324 mService.sendBroadcast(i); in processMessage()
349 new BluetoothPbapObexServer(mServiceHandler, mService, PbapStateMachine.this); in startObexServerSession()
371 (NotificationManager) mService.getSystemService(Context.NOTIFICATION_SERVICE); in createPbapNotification()
374 mService.getString(R.string.pbap_notification_group), in createPbapNotification()
[all …]
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/services/
DFileOperationServiceTest.java64 private FileOperationService mService; field in FileOperationServiceTest
93 mService = getService(); in setUp()
95 assertNull(mService.executor); in setUp()
96 mService.executor = mExecutor; in setUp()
98 assertNull(mService.deletionExecutor); in setUp()
99 mService.deletionExecutor = mDeletionExecutor; in setUp()
101 assertNull(mService.handler); in setUp()
102 mService.handler = mHandler; in setUp()
104 assertNull(mService.foregroundManager); in setUp()
105 mService.foregroundManager = mForegroundManager; in setUp()
[all …]
/packages/modules/ExtServices/java/tests/src/android/ext/services/displayhash/
DDisplayHashingServiceImplTest.java43 private final DisplayHashingServiceImpl mService = new DisplayHashingServiceImpl(); field in DisplayHashingServiceImplTest
55 mService.onCreate(); in setUp()
56 mService.setImageHashManager(new MockImageHashManager()); in setUp()
62 mService.onGenerateDisplayHash(mSalt, mBuffer, mBounds, mHashAlgorithm, in testOnGenerateAndOnVerifyDisplayHash()
67 VerifiedDisplayHash verifiedDisplayHash = mService.onVerifyDisplayHash(mSalt, in testOnGenerateAndOnVerifyDisplayHash()
79 mService.onGenerateDisplayHash(null, mBuffer, mBounds, mHashAlgorithm, in testOnGenerateDisplayHash_nullSalt()
87 mService.onGenerateDisplayHash(mSalt, mBuffer, mBounds, null /* hashAlgorithm */, in testOnGenerateDisplayHash_invalidHashAlgorithm()
93 mService.onGenerateDisplayHash(mSalt, mBuffer, mBounds, "fake hash", in testOnGenerateDisplayHash_invalidHashAlgorithm()
101 mService.onGenerateDisplayHash(mSalt, null /* buffer */, mBounds, mHashAlgorithm, in testOnGenerateDisplayHash_nullBuffer()
109 mService.onGenerateDisplayHash(mSalt, mBuffer, mBounds, mHashAlgorithm, in testOnVerifyDisplayHash_nullSalt()
[all …]
/packages/modules/Connectivity/tests/unit/java/android/net/
DConnectivityManagerTest.java88 @Mock IConnectivityManager mService; field in ConnectivityManagerTest
220 ConnectivityManager manager = new ConnectivityManager(mCtx, mService); in testCallbackRelease()
228 when(mService.requestNetwork(anyInt(), any(), anyInt(), captor.capture(), anyInt(), any(), in testCallbackRelease()
239 verify(mService, times(1)).releaseNetworkRequest(request); in testCallbackRelease()
248 ConnectivityManager manager = new ConnectivityManager(mCtx, mService); in testCallbackRecycling()
257 when(mService.requestNetwork(anyInt(), any(), anyInt(), captor.capture(), anyInt(), any(), in testCallbackRecycling()
268 verify(mService, times(1)).releaseNetworkRequest(req1); in testCallbackRecycling()
275 when(mService.requestNetwork(anyInt(), any(), anyInt(), captor.capture(), anyInt(), any(), in testCallbackRecycling()
285 verify(mService, times(1)).releaseNetworkRequest(req2); in testCallbackRecycling()
291 ConnectivityManager manager = new ConnectivityManager(mCtx, mService); in noDoubleCallbackRegistration()
[all …]
/packages/modules/Connectivity/framework/src/android/net/
DConnectivityManager.java927 private final IConnectivityManager mService; field in ConnectivityManager
1025 mService.systemReady(); in systemReady()
1155 return mService.getActiveNetworkInfo(); in getActiveNetworkInfo()
1175 return mService.getActiveNetwork(); in getActiveNetwork()
1202 return mService.getActiveNetworkForUid(uid, ignoreBlocked); in getActiveNetworkForUid()
1252 mService.setRequireVpnForUids(requireVpn, rangesArray); in setRequireVpnForUids()
1291 mService.setLegacyLockdownVpnEnabled(enabled); in setLegacyLockdownVpnEnabled()
1317 return mService.getActiveNetworkInfoForUid(uid, ignoreBlocked); in getActiveNetworkInfoForUid()
1346 return mService.getNetworkInfo(networkType); in getNetworkInfo()
1373 return mService.getNetworkInfoForUid(network, uid, ignoreBlocked); in getNetworkInfoForUid()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DBluetoothSocketManagerBinder.java32 private AdapterService mService; field in BluetoothSocketManagerBinder
35 mService = service; in BluetoothSocketManagerBinder()
39 mService = null; in cleanUp()
48 if (!Utils.checkConnectPermissionForPreflight(mService)) { in connectSocket()
52 return marshalFd(mService.connectSocketNative( in connectSocket()
67 if (!Utils.checkConnectPermissionForPreflight(mService)) { in createSocketChannel()
71 return marshalFd(mService.createSocketChannelNative( in createSocketChannel()
85 if (!Utils.checkConnectPermissionForPreflight(mService)) { in requestMaximumTxDataLength()
89 mService.requestMaximumTxDataLengthNative(Utils.getBytesFromAddress(device.getAddress())); in requestMaximumTxDataLength()
93 if (!Utils.checkCallerIsSystemOrActiveOrManagedUser(mService, TAG)) { in enforceActiveUser()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DExperimentalCarUserManagerUnitTest.java60 private ICarUserService mService; field in ExperimentalCarUserManagerUnitTest
66 ExperimentalCarUserManager.from(new CarUserManager(mCar, mService, mUserManager)); in setFixtures()
142 when(mService.getAllDrivers()).thenReturn(userInfos); in testGetAllDrivers()
150 when(mService.getPassengers(10)).thenReturn(userInfos); in testGetAllPassengers()
151 when(mService.getPassengers(20)).thenReturn(Arrays.asList()); in testGetAllPassengers()
192 when(mService.createDriver(eq(name), anyBoolean())).thenReturn(future); in expectCreateDriverSucceed()
196 doThrow(new RemoteException("D'OH!")).when(mService) in expectCreateDriverFail()
202 when(mService.createPassenger("test passenger", /* driverId = */ 10)).thenReturn(userInfo); in expectCreatePassengerSucceed()
206 when(mService.createPassenger("test passenger", /* driverId = */ 10)).thenReturn(null); in expectCreatePassengerFail()
216 }).when(mService).switchDriver(eq(userId), notNull()); in expectSwitchDriverSucceed()
[all …]

123456789