/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/ |
D | AbstractExtendedMockitoBluetoothTestCase.java | 147 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/ |
D | SatelliteEntitlementApiTest.java | 75 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/ |
D | ContextWithServiceOverrides.java | 36 final String name = getSystemServiceName(cls); in injectSystemService()
|
D | ContactsActor.java | 367 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/ |
D | CellBroadcastServiceTestCase.java | 181 public String getSystemServiceName(Class<?> serviceClass) { in getSystemServiceName() method in CellBroadcastServiceTestCase.TestContextWrapper 185 return super.getSystemServiceName(serviceClass); in getSystemServiceName()
|
D | CellBroadcastInternalReceiverTest.java | 69 .getSystemServiceName(NotificationManager.class); in testOnReceive_actionMarkAsRead()
|
D | CellBroadcastSearchIndexableProviderTest.java | 77 doReturn("test").when(mContext).getSystemServiceName(Vibrator.class); in testQueryNonIndexableKeys()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/audio_util/ |
D | MediaPlayerListTest.java | 78 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/ |
D | MockitoUtils.kt | 60 whenever(context.getSystemServiceName(classToMock)) { classToMock.simpleName } in capture()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/finalization/ |
D | FinalizationInsideSuwControllerTest.java | 109 when(mActivity.getSystemServiceName(DevicePolicyManager.class)) in setUp() 117 when(mActivity.getSystemServiceName(UserManager.class)) in setUp() 381 when(profileContext.getSystemServiceName(DevicePolicyManager.class)) in testCorpOwnedManagedProfileDuringSuw()
|
D | DpcReceivedSuccessReceiverTest.java | 56 when(mContext.getSystemServiceName(DevicePolicyManager.class)) in setUp()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/provisioninglisteners/ |
D | ManagedUserRemovalUtilsTest.java | 52 when(mContext.getSystemServiceName(DevicePolicyManager.class)) in setUp()
|
D | ManagedUserRemovalListenerTest.java | 72 when(mContext.getSystemServiceName(DevicePolicyManager.class)) in setUp()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/sim/receivers/ |
D | SimSlotChangeServiceTest.java | 58 doReturn(serviceName).when(mContext).getSystemServiceName(serviceClass); in mockService()
|
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/ |
D | CellBroadcastServiceTestBase.java | 140 .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/ |
D | HeadsetPhoneStateTest.java | 87 when(mHeadsetService.getSystemServiceName(TelephonyManager.class)) in setUp() 92 when(mHeadsetService.getSystemServiceName(SubscriptionManager.class)) in setUp()
|
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/ |
D | ContextUtils.kt | 66 doReturn(name).`when`(context).getSystemServiceName(clazz) in mockService()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/ |
D | TestingSettingsTest.java | 65 when(context.getSystemServiceName(serviceClass)).thenReturn(serviceName); in mockService()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/ |
D | MessageTest.java | 102 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/ |
D | BootReminderTest.java | 65 when(mContext.getSystemServiceName(DevicePolicyManager.class)) in setUp()
|
/packages/services/Telephony/tests/src/com/android/phone/ |
D | RcsProvisioningMonitorTest.java | 240 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/ |
D | EnterprisePolicyGuardTest.java | 349 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/ |
D | DataConnectionStateHelperTest.java | 89 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/ |
D | PbapClientStateMachineTest.java | 77 when(mMockPbapClientService.getSystemServiceName(UserManager.class)) in setUp()
|
/packages/services/Car/libs/car-test-lib/src/android/car/test/util/ |
D | FakeContext.java | 73 public String getSystemServiceName(Class<?> serviceClass) { in getSystemServiceName() method in FakeContext
|