/packages/services/Telephony/tests/src/com/android/ |
D | TestContext.java | 186 public String getSystemServiceName(Class<?> serviceClass) { in getSystemServiceName() argument 187 if (serviceClass == CarrierConfigManager.class) { in getSystemServiceName() 190 if (serviceClass == TelecomManager.class) { in getSystemServiceName() 193 if (serviceClass == TelephonyManager.class) { in getSystemServiceName() 196 if (serviceClass == SubscriptionManager.class) { in getSystemServiceName() 199 if (serviceClass == ImsManager.class) { in getSystemServiceName() 202 if (serviceClass == UserManager.class) { in getSystemServiceName()
|
/packages/services/Car/libs/car-test-lib/src/android/car/test/util/ |
D | FakeContext.java | 63 public <T> void setSystemService(Class<T> serviceClass, T serviceInstance) { in setSystemService() argument 64 mSystemServices.put(serviceClass.getName(), serviceInstance); in setSystemService() 73 public String getSystemServiceName(Class<?> serviceClass) { in getSystemServiceName() argument 74 return serviceClass.getName(); in getSystemServiceName()
|
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/ |
D | CellBroadcastServiceTestCase.java | 96 CellBroadcastServiceTestCase(Class<T> serviceClass) { in CellBroadcastServiceTestCase() argument 97 super(serviceClass); in CellBroadcastServiceTestCase() 181 public String getSystemServiceName(Class<?> serviceClass) { in getSystemServiceName() argument 182 if (TelephonyManager.class.equals(serviceClass)) { in getSystemServiceName() 185 return super.getSystemServiceName(serviceClass); in getSystemServiceName()
|
/packages/services/Telephony/src/com/android/phone/settings/ |
D | CallForwardInfoUtil.java | 85 info.serviceClass, in setCallForwardingOption() 111 info.serviceClass = CommandsInterface.SERVICE_CLASS_VOICE; in getCallForwardInfo() 126 return (info.serviceClass & CommandsInterface.SERVICE_CLASS_VOICE) != 0; in isServiceClassVoice()
|
D | VoicemailProviderSettings.java | 62 fi.serviceClass = CommandsInterface.SERVICE_CLASS_VOICE; in VoicemailProviderSettings() 120 || i1.serviceClass != i2.serviceClass in forwardingSettingsEqual()
|
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/ |
D | BugleServiceTestCase.java | 37 public BugleServiceTestCase(final Class<T> serviceClass) { in BugleServiceTestCase() argument 38 super(serviceClass); in BugleServiceTestCase()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/ |
D | TestUtils.java | 122 Context ctx, String serviceName, Class<T> serviceClass, T mockService) { in mockGetSystemService() argument 124 when(ctx.getSystemServiceName(eq(serviceClass))).thenReturn(serviceName); in mockGetSystemService() 129 Context ctx, String serviceName, Class<T> serviceClass) { in mockGetSystemService() argument 130 T mockedService = mock(serviceClass); in mockGetSystemService() 131 mockGetSystemService(ctx, serviceName, serviceClass, mockedService); in mockGetSystemService()
|
/packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/ |
D | MyMockContext.java | 71 public String getSystemServiceName(Class<?> serviceClass) { in getSystemServiceName() argument 72 if (mSupportedServiceNamesByClass.containsKey(serviceClass)) { in getSystemServiceName() 73 return mSupportedServiceNamesByClass.get(serviceClass); in getSystemServiceName()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/sim/receivers/ |
D | SimSlotChangeServiceTest.java | 57 private <T> void mockService(String serviceName, Class<T> serviceClass, T service) { in mockService() argument 58 doReturn(serviceName).when(mContext).getSystemServiceName(serviceClass); in mockService()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/ |
D | TestingSettingsTest.java | 64 Class<T> serviceClass, T service) { in mockService() argument 65 when(context.getSystemServiceName(serviceClass)).thenReturn(serviceName); in mockService()
|
/packages/services/Telephony/tests/src/com/android/services/telephony/domainselection/ |
D | DataConnectionStateHelperTest.java | 89 public String getSystemServiceName(Class<?> serviceClass) { in setUp() 90 if (serviceClass == TelephonyManager.class) { in setUp() 92 } else if (serviceClass == CarrierConfigManager.class) { in setUp() 95 return super.getSystemServiceName(serviceClass); in setUp()
|
D | CrossSimRedialingControllerTest.java | 92 public String getSystemServiceName(Class<?> serviceClass) { in setUp() 93 if (serviceClass == TelephonyManager.class) { in setUp() 95 } else if (serviceClass == CarrierConfigManager.class) { in setUp() 98 return super.getSystemServiceName(serviceClass); in setUp()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/ |
D | AbstractExtendedMockitoBluetoothTestCase.java | 145 public void addMockedSystemService(Class<?> serviceClass, Object service) { in addMockedSystemService() argument 147 String name = getSystemServiceName(serviceClass); in addMockedSystemService()
|
/packages/services/Telephony/src/com/android/phone/ |
D | CallBarringEditPreference.java | 218 int serviceClass = CarrierConfigManager.SERVICE_CLASS_VOICE; in getServiceClassForCallBarring() local 222 serviceClass = carrierConfig.getInt( in getServiceClassForCallBarring() 226 return serviceClass; in getServiceClassForCallBarring()
|
/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | IpSecTransformTest.java | 77 public String getSystemServiceName(Class<?> serviceClass) { in setUp() 78 if (serviceClass.equals(IpSecManager.class)) { in setUp()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/simstatus/ |
D | SlotSimStatusTest.java | 162 private <T> void mockService(String serviceName, Class<T> serviceClass, T service) { in mockService() argument 163 when(mContext.getSystemServiceName(serviceClass)).thenReturn(serviceName); in mockService()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | MultipathPolicyTrackerTest.java | 123 private <T> void mockService(String serviceName, Class<T> serviceClass, T service) { in mockService() argument 124 doReturn(serviceName).when(mContext).getSystemServiceName(serviceClass); in mockService() 126 if (mContext.getSystemService(serviceClass) == null) { in mockService() 128 doCallRealMethod().when(mContext).getSystemService(serviceClass); in mockService()
|
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/maintenance/ |
D | OnDevicePersonalizationMaintenanceJob.java | 156 String serviceClass = in cleanupVendorData() local 158 ComponentName service = ComponentName.createRelative(packageName, serviceClass); in cleanupVendorData()
|
D | OnDevicePersonalizationMaintenanceJobService.java | 126 String serviceClass = AppManifestConfigHelper.getServiceNameFromOdpSettings( in cleanupVendorData() local 128 ComponentName service = ComponentName.createRelative(packageName, serviceClass); in cleanupVendorData()
|
/packages/services/Car/car-lib/src/com/android/car/internal/ |
D | ICarBase.java | 78 <T> T getCarManager(@NonNull Class<T> serviceClass); in getCarManager() argument
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/ |
D | BluetoothMethodProxy.java | 210 public <T> T getSystemService(Context context, Class<T> serviceClass) { in getSystemService() argument 211 return context.getSystemService(serviceClass); in getSystemService()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/simstatus/ |
D | SimStatusPreferenceControllerTest.java | 213 private <T> void mockService(String serviceName, Class<T> serviceClass, T service) { in mockService() argument 214 when(mContext.getSystemServiceName(serviceClass)).thenReturn(serviceName); in mockService()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/imei/ |
D | ImeiInfoPreferenceControllerTest.java | 231 private <T> void mockService(String serviceName, Class<T> serviceClass, T service) { in mockService() argument 232 when(mContext.getSystemServiceName(serviceClass)).thenReturn(serviceName); in mockService()
|
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/download/mdd/ |
D | OnDevicePersonalizationFileGroupPopulator.java | 187 String serviceClass = AppManifestConfigHelper.getServiceNameFromOdpSettings( in addDownloadUrlQueryParameters() local 189 ComponentName service = ComponentName.createRelative(packageName, serviceClass); in addDownloadUrlQueryParameters()
|
/packages/services/Car/libs/car-test-lib/src/android/car/test/mocks/ |
D | AndroidMockitoHelper.java | 504 Class<T> serviceClass, T service) { in mockContextGetService() argument 505 when(context.getSystemService(serviceClass)).thenReturn(service); in mockContextGetService() 506 if (serviceClass.equals(PackageManager.class)) { in mockContextGetService()
|