Home
last modified time | relevance | path

Searched refs:serviceClass (Results 1 – 25 of 44) sorted by relevance

12

/packages/services/Telephony/tests/src/com/android/
DTestContext.java186 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/
DFakeContext.java63 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/
DCellBroadcastServiceTestCase.java96 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/
DCallForwardInfoUtil.java85 info.serviceClass, in setCallForwardingOption()
111 info.serviceClass = CommandsInterface.SERVICE_CLASS_VOICE; in getCallForwardInfo()
126 return (info.serviceClass & CommandsInterface.SERVICE_CLASS_VOICE) != 0; in isServiceClassVoice()
DVoicemailProviderSettings.java62 fi.serviceClass = CommandsInterface.SERVICE_CLASS_VOICE; in VoicemailProviderSettings()
120 || i1.serviceClass != i2.serviceClass in forwardingSettingsEqual()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/
DBugleServiceTestCase.java37 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/
DTestUtils.java122 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/
DMyMockContext.java71 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/
DSimSlotChangeServiceTest.java57 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/
DTestingSettingsTest.java64 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/
DDataConnectionStateHelperTest.java89 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()
DCrossSimRedialingControllerTest.java92 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/
DAbstractExtendedMockitoBluetoothTestCase.java145 public void addMockedSystemService(Class<?> serviceClass, Object service) { in addMockedSystemService() argument
147 String name = getSystemServiceName(serviceClass); in addMockedSystemService()
/packages/services/Telephony/src/com/android/phone/
DCallBarringEditPreference.java218 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/
DIpSecTransformTest.java77 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/
DSlotSimStatusTest.java162 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/
DMultipathPolicyTrackerTest.java123 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/
DOnDevicePersonalizationMaintenanceJob.java156 String serviceClass = in cleanupVendorData() local
158 ComponentName service = ComponentName.createRelative(packageName, serviceClass); in cleanupVendorData()
DOnDevicePersonalizationMaintenanceJobService.java126 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/
DICarBase.java78 <T> T getCarManager(@NonNull Class<T> serviceClass); in getCarManager() argument
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/
DBluetoothMethodProxy.java210 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/
DSimStatusPreferenceControllerTest.java213 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/
DImeiInfoPreferenceControllerTest.java231 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/
DOnDevicePersonalizationFileGroupPopulator.java187 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/
DAndroidMockitoHelper.java504 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()

12