Home
last modified time | relevance | path

Searched refs:getSystemServiceName (Results 1 – 25 of 103) sorted by relevance

12345

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/
DAbstractExtendedMockitoBluetoothTestCase.java147 String name = getSystemServiceName(serviceClass); in addMockedSystemService()
154 if ((name != null) && name.equals(getSystemServiceName(UserManager.class))) { in getSystemService()
/packages/services/Telephony/tests/src/com/android/phone/satellite/entitlement/
DSatelliteEntitlementApiTest.java75 doReturn(Context.CARRIER_CONFIG_SERVICE).when(mContext).getSystemServiceName( in setUp()
82 doReturn(Context.TELEPHONY_SERVICE).when(mContext).getSystemServiceName( in setUp()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContextWithServiceOverrides.java36 final String name = getSystemServiceName(cls); in injectSystemService()
DContactsActor.java367 public String getSystemServiceName(Class<?> serviceClass) { in ContactsActor()
368 return overallContext.getSystemServiceName(serviceClass); in ContactsActor()
415 public String getSystemServiceName(Class<?> serviceClass) { in ContactsActor()
416 return overallContext.getSystemServiceName(serviceClass); in ContactsActor()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastServiceTestCase.java181 public String getSystemServiceName(Class<?> serviceClass) { in getSystemServiceName() method in CellBroadcastServiceTestCase.TestContextWrapper
185 return super.getSystemServiceName(serviceClass); in getSystemServiceName()
DCellBroadcastInternalReceiverTest.java69 .getSystemServiceName(NotificationManager.class); in testOnReceive_actionMarkAsRead()
DCellBroadcastSearchIndexableProviderTest.java77 doReturn("test").when(mContext).getSystemServiceName(Vibrator.class); in testQueryNonIndexableKeys()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/audio_util/
DMediaPlayerListTest.java78 when(mMockContext.getSystemServiceName(AudioManager.class)) in setUp()
87 when(mMockContext.getSystemServiceName(MediaSessionManager.class)) in setUp()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/utils/
DMockitoUtils.kt60 whenever(context.getSystemServiceName(classToMock)) { classToMock.simpleName } in capture()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/finalization/
DFinalizationInsideSuwControllerTest.java109 when(mActivity.getSystemServiceName(DevicePolicyManager.class)) in setUp()
117 when(mActivity.getSystemServiceName(UserManager.class)) in setUp()
381 when(profileContext.getSystemServiceName(DevicePolicyManager.class)) in testCorpOwnedManagedProfileDuringSuw()
DDpcReceivedSuccessReceiverTest.java56 when(mContext.getSystemServiceName(DevicePolicyManager.class)) in setUp()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/provisioninglisteners/
DManagedUserRemovalUtilsTest.java52 when(mContext.getSystemServiceName(DevicePolicyManager.class)) in setUp()
DManagedUserRemovalListenerTest.java72 when(mContext.getSystemServiceName(DevicePolicyManager.class)) in setUp()
/packages/apps/Settings/tests/unit/src/com/android/settings/sim/receivers/
DSimSlotChangeServiceTest.java58 doReturn(serviceName).when(mContext).getSystemServiceName(serviceClass); in mockService()
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DCellBroadcastServiceTestBase.java140 .getSystemServiceName(TelephonyManager.class); in setUp()
143 doReturn(Context.TELEPHONY_SUBSCRIPTION_SERVICE).when(mMockedContext).getSystemServiceName( in setUp()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetPhoneStateTest.java87 when(mHeadsetService.getSystemServiceName(TelephonyManager.class)) in setUp()
92 when(mHeadsetService.getSystemServiceName(SubscriptionManager.class)) in setUp()
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DContextUtils.kt66 doReturn(name).`when`(context).getSystemServiceName(clazz) in mockService()
/packages/apps/Settings/tests/unit/src/com/android/settings/
DTestingSettingsTest.java65 when(context.getSystemServiceName(serviceClass)).thenReturn(serviceName); in mockService()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/
DMessageTest.java102 when(mContext.getSystemServiceName(UserManager.class)).thenReturn("mUserManager"); in setUp()
104 when(mContext.getSystemServiceName(DevicePolicyManager.class)) in setUp()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/
DBootReminderTest.java65 when(mContext.getSystemServiceName(DevicePolicyManager.class)) in setUp()
/packages/services/Telephony/tests/src/com/android/phone/
DRcsProvisioningMonitorTest.java240 when(mPhone.getSystemServiceName(eq(CarrierConfigManager.class))) in setUp()
242 when(mPhone.getSystemServiceName(eq(SubscriptionManager.class))) in setUp()
244 when(mPhone.getSystemServiceName(eq(TelephonyRegistryManager.class))) in setUp()
246 when(mPhone.getSystemServiceName(eq(RoleManager.class))) in setUp()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/enterprise/
DEnterprisePolicyGuardTest.java349 public String getSystemServiceName(Class<?> serviceClass) { in getSystemServiceName() method in EnterprisePolicyGuardTest.TestMockContext
350 return mRealContext.getSystemServiceName(serviceClass); in getSystemServiceName()
/packages/services/Telephony/tests/src/com/android/services/telephony/domainselection/
DDataConnectionStateHelperTest.java89 public String getSystemServiceName(Class<?> serviceClass) { in setUp()
95 return super.getSystemServiceName(serviceClass); in setUp()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbapclient/
DPbapClientStateMachineTest.java77 when(mMockPbapClientService.getSystemServiceName(UserManager.class)) in setUp()
/packages/services/Car/libs/car-test-lib/src/android/car/test/util/
DFakeContext.java73 public String getSystemServiceName(Class<?> serviceClass) { in getSystemServiceName() method in FakeContext

12345