Home
last modified time | relevance | path

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

12

/cts/common/device-side/bedstead/queryable/src/main/java/com/android/queryable/info/
DServiceInfo.java43 .serviceClass(serviceInfo.name); in builder()
46 private ServiceInfo(String serviceClass, Set<IntentFilter> intentFilters) { in ServiceInfo() argument
47 super(serviceClass); in ServiceInfo()
74 public Builder serviceClass(String serviceClassName) { in serviceClass() method in ServiceInfo.Builder
80 public Builder serviceClass(Service service) { in serviceClass() method in ServiceInfo.Builder
81 return serviceClass(service.getClass()); in serviceClass()
85 public Builder serviceClass(Class<? extends Service> serviceClass) { in serviceClass() argument
86 return serviceClass(serviceClass.getName()); in serviceClass()
/cts/common/device-side/bedstead/queryable/src/test/java/com/android/queryable/queries/
DServiceQueryHelperTest.java72 .serviceClass(CLASS_1_CLASS_NAME)
88 serviceQueryHelper.serviceClass().isSameClassAs(CLASS_1); in matches_serviceClass_doesMatch_returnsTrue()
97 serviceQueryHelper.serviceClass().isSameClassAs(CLASS_1); in matches_serviceClass_doesNotMatch_returnsFalse()
128 serviceQueryHelper.serviceClass().className().isEqualTo(""); in parcel_parcelsCorrectly()
139 .where().serviceClass().isSameClassAs(CLASS_1) in serviceQueryHelper_queries()
156 serviceQueryHelper.serviceClass().className().isEqualTo(""); in isEmptyQuery_hasServiceClassQuery_returnsFalse()
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DImsCallForwardInfoTest.java40 int serviceClass = 1; // CommandsInterface#SERVICE_CLASS_VOICE in createParcelUnparcel() local
43 ImsCallForwardInfo info = new ImsCallForwardInfo(condition, status, toA, serviceClass, in createParcelUnparcel()
56 assertEquals(serviceClass, unparceledInfo.getServiceClass()); in createParcelUnparcel()
/cts/tests/tests/hardware/src/android/hardware/cts/
DHardwareBufferTestService.java88 public static IHardwareBufferTestService connect(Context context, Class serviceClass) {
89 return new SyncTestServiceConnection(context, serviceClass).get();
101 SyncTestServiceConnection(Context context, Class serviceClass) {
103 mServiceProviderClass = serviceClass;
DHardwareBufferAidlTest.java57 public HardwareBufferAidlTest(Class serviceClass) { in HardwareBufferAidlTest() argument
58 mServiceClass = serviceClass; in HardwareBufferAidlTest()
/cts/tests/tests/binder_ndk/src/android/binder/cts/
DSyncTestServiceConnection.java42 public SyncTestServiceConnection(Context context, Class serviceClass) { in SyncTestServiceConnection() argument
44 mServiceProviderClass = serviceClass; in SyncTestServiceConnection()
/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/
DTestAppSystemServiceFactory.java203 private static <T> T getSystemService(Context context, Class<T> serviceClass, in getSystemService() argument
213 if (serviceClass.equals(DevicePolicyManager.class)) { in getSystemService()
219 } else if (serviceClass.equals(WifiManager.class)) { in getSystemService()
226 } else if (serviceClass.equals(HardwarePropertiesManager.class)) { in getSystemService()
232 } else if (serviceClass.equals(UserManager.class)) { in getSystemService()
238 } else if (serviceClass.equals(GenericManager.class)) { in getSystemService()
248 throw new IllegalArgumentException("invalid service class: " + serviceClass); in getSystemService()
256 Log.i(TAG, "Manager of" + serviceClass + "is null"); in getSystemService()
259 fail("Could not get a manager of type " + serviceClass); in getSystemService()
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/premade/
DEventLibServiceTest.java55 .whereService().serviceClass().isSameClassAs(EventLibService.class); in launchEventLibService_logsServiceCreatedEvent()
68 .whereService().serviceClass().className().isEqualTo(GENERATED_SERVICE_CLASS_NAME); in launchEventLibService_withGeneratedServiceClass_logsServiceCreatedEventWithCorrectClassName()
DEventLibAppComponentFactoryTest.java97 .whereService().serviceClass().className() in startService_serviceDoesNotExist_startsLoggingService()
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/
DRemoteService.java135 @NonNull Class<? extends RemoteService> serviceClass, int testId) in Invoker() argument
153 Intent intent = new Intent(mContext, serviceClass); in Invoker()
155 assertTrue("Failed to bind to service " + serviceClass, in Invoker()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/services/
DServices.java336 public boolean serviceIsAvailable(Class<?> serviceClass) { in serviceIsAvailable() argument
337 if (!sServiceNameMapping.containsKey(serviceClass)) { in serviceIsAvailable()
338 … throw new NeneException("Unknown service " + serviceClass + ". Check Nene Services map"); in serviceIsAvailable()
340 return serviceIsAvailable(sServiceNameMapping.get(serviceClass), serviceClass); in serviceIsAvailable()
343 private boolean serviceIsAvailable(String service, Class<?> serviceClass) { in serviceIsAvailable() argument
344 if (TestApis.context().instrumentedContext().getSystemService(serviceClass) == null) { in serviceIsAvailable()
/cts/common/device-side/bedstead/queryable/src/main/java/com/android/queryable/queries/
DServiceQuery.java38 ClassQuery<E> serviceClass(); in serviceClass() method
DServiceQueryHelper.java77 public ClassQuery<E> serviceClass() { in serviceClass() method in ServiceQueryHelper
/cts/hostsidetests/appsecurity/test-apps/UseProcessSuccess/src/com/android/cts/useprocess/
DAccessNetworkTest.java144 private void doNetworkTest(Class serviceClass) { in doNetworkTest() argument
147 Intent intent = new Intent(context, serviceClass); in doNetworkTest()
/cts/hostsidetests/appbinding/hostside/src/com/android/cts/appbinding/
DAppBindingHostTest.java244 String serviceClass, int userId) throws Throwable { in installAndCheckBound() argument
251 checkBound(packageName, serviceClass, userId); in installAndCheckBound()
254 private void checkBound(String packageName, String serviceClass, int userId) throws Throwable { in checkBound() argument
256 runCommand("dumpsys activity service " + packageName + "/" + serviceClass, in checkBound()
258 + Pattern.quote("[" + serviceClass + "]")); in checkBound()
269 + serviceClass + ",bound,connected,")); in checkBound()
/cts/tests/tests/nfc/src/android/nfc/cts/
DDefaultPaymentProviderTestUtils.java42 static ComponentName setDefaultPaymentService(Class serviceClass, Context context) { in setDefaultPaymentService() argument
44 new ComponentName(context, serviceClass), context); in setDefaultPaymentService()
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/events/services/
DServiceDestroyedEvent.java100 .serviceClass(serviceName) in setService()
DServiceCreatedEvent.java102 .serviceClass(serviceName) in setService()
DServiceLowMemoryEvent.java102 .serviceClass(serviceName) in setService()
DServiceConfigurationChangedEvent.java109 .serviceClass(serviceName) in setService()
DServiceMemoryTrimmedEvent.java114 .serviceClass(serviceName) in setService()
DServiceUnboundEvent.java121 .serviceClass(serviceName) in setService()
DServiceBoundEvent.java117 .serviceClass(serviceName) in setService()
DServiceTaskRemovedEvent.java124 .serviceClass(serviceName) in setService()
/cts/common/device-side/bedstead/testapp/src/test/java/com/android/bedstead/testapp/
DTestAppAppComponentFactoryTest.java104 .whereService().serviceClass().className() in startService_serviceDoesNotExist_startsLoggingService()

12