Home
last modified time | relevance | path

Searched refs:serviceInfo (Results 1 – 17 of 17) sorted by relevance

/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityManagerTest.java150 ServiceInfo serviceInfo = installedService.getResolveInfo().serviceInfo; in testGetInstalledAccessibilityServicesList() local
151 if (mTargetContext.getPackageName().equals(serviceInfo.packageName) in testGetInstalledAccessibilityServicesList()
152 && SPEAKING_ACCESSIBLITY_SERVICE_NAME.equals(serviceInfo.name)) { in testGetInstalledAccessibilityServicesList()
155 if (mTargetContext.getPackageName().equals(serviceInfo.packageName) in testGetInstalledAccessibilityServicesList()
156 && VIBRATING_ACCESSIBLITY_SERVICE_NAME.equals(serviceInfo.name)) { in testGetInstalledAccessibilityServicesList()
176 ServiceInfo serviceInfo = enabledService.getResolveInfo().serviceInfo; in testGetEnabledAccessibilityServiceList() local
177 if (mTargetContext.getPackageName().equals(serviceInfo.packageName) in testGetEnabledAccessibilityServiceList()
178 && SPEAKING_ACCESSIBLITY_SERVICE_NAME.equals(serviceInfo.name)) { in testGetEnabledAccessibilityServiceList()
181 if (mTargetContext.getPackageName().equals(serviceInfo.packageName) in testGetEnabledAccessibilityServiceList()
182 && VIBRATING_ACCESSIBLITY_SERVICE_NAME.equals(serviceInfo.name)) { in testGetEnabledAccessibilityServiceList()
[all …]
/cts/tests/tests/content/src/android/content/pm/cts/
DServiceInfoTest.java41 ServiceInfo serviceInfo = pm.getServiceInfo(componentName, 0); in testServiceInfo() local
43 ServiceInfo infoFromExisted = new ServiceInfo(serviceInfo); in testServiceInfo()
44 checkInfoSame(serviceInfo, infoFromExisted); in testServiceInfo()
46 assertNotNull(serviceInfo.toString()); in testServiceInfo()
47 assertEquals(0, serviceInfo.describeContents()); in testServiceInfo()
50 serviceInfo.writeToParcel(p, 0); in testServiceInfo()
53 checkInfoSame(serviceInfo, infoFromParcel); in testServiceInfo()
DPackageManagerTest.java191 current = infoIterator.next().serviceInfo.name; in checkServiceInfoName()
543 assertEquals(SERVICE_NAME, resolveInfo.serviceInfo.name); in testResolveMethods()
/cts/tests/tests/externalservice/service/src/android/externalservice/service/
DBaseService.java58 RunningServiceInfo serviceInfo = new RunningServiceInfo(); in handleMessage() local
59 serviceInfo.uid = Process.myUid(); in handleMessage()
60 serviceInfo.pid = Process.myPid(); in handleMessage()
61 serviceInfo.packageName = mContext.getPackageName(); in handleMessage()
62 serviceInfo.zygotePid = ZygotePreload.getZygotePid(); in handleMessage()
63 serviceInfo.zygotePackage = ZygotePreload.getZygotePackage(); in handleMessage()
65 serviceInfo); in handleMessage()
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DNsdManagerTest.java58 public void onRegistrationFailed(NsdServiceInfo serviceInfo, int errorCode) { in initRegistrationListener()
63 public void onUnregistrationFailed(NsdServiceInfo serviceInfo, int errorCode) { in initRegistrationListener()
68 public void onServiceRegistered(NsdServiceInfo serviceInfo) { in initRegistrationListener()
69 setEvent("onServiceRegistered", serviceInfo); in initRegistrationListener()
73 public void onServiceUnregistered(NsdServiceInfo serviceInfo) { in initRegistrationListener()
74 setEvent("onServiceUnregistered", serviceInfo); in initRegistrationListener()
106 public void onServiceFound(NsdServiceInfo serviceInfo) { in initDiscoveryListener()
107 setEvent("onServiceFound", serviceInfo); in initDiscoveryListener()
111 public void onServiceLost(NsdServiceInfo serviceInfo) { in initDiscoveryListener()
112 setEvent("onServiceLost", serviceInfo); in initDiscoveryListener()
[all …]
/cts/tests/tests/telecom/src/android/telecom/cts/
DBasicInCallServiceTest.java82 .filter(r -> r.serviceInfo != null in testResolveInCallIntent()
83 && r.serviceInfo.metaData != null in testResolveInCallIntent()
84 && r.serviceInfo.metaData.containsKey( in testResolveInCallIntent()
86 && r.serviceInfo.permission.equals( in testResolveInCallIntent()
88 && r.serviceInfo.name != null) in testResolveInCallIntent()
/cts/hostsidetests/appsecurity/test-apps/OrderedActivityApp/src/android/appsecurity/cts/orderedactivity/
DPackageResolutionTest.java68 resolve.get(0).serviceInfo.name); in queryServiceOrdered()
70 resolve.get(1).serviceInfo.name); in queryServiceOrdered()
72 resolve.get(2).serviceInfo.name); in queryServiceOrdered()
74 resolve.get(3).serviceInfo.name); in queryServiceOrdered()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/
DClientTest.java168 assertThat(resolveInfo.get(0).serviceInfo.packageName, in testQuery()
170 assertThat(resolveInfo.get(0).serviceInfo.name, in testQuery()
174 assertThat(resolveInfo.get(1).serviceInfo.packageName, in testQuery()
176 assertThat(resolveInfo.get(1).serviceInfo.name, in testQuery()
193 assertThat(resolveInfo.get(0).serviceInfo.packageName, in testQuery()
195 assertThat(resolveInfo.get(0).serviceInfo.name, in testQuery()
199 assertThat(resolveInfo.get(1).serviceInfo.packageName, in testQuery()
201 assertThat(resolveInfo.get(1).serviceInfo.name, in testQuery()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputMethodInfoTest.java120 assertService(resolveInfo.serviceInfo, mInputMethodInfo.getServiceInfo()); in testInputMethodInfoProperties()
243 final ServiceInfo serviceInfo = imi.getServiceInfo(); in testAtLeastOneEncryptionAwareInputMethodIsAvailable() local
244 if (serviceInfo == null) { in testAtLeastOneEncryptionAwareInputMethodIsAvailable()
247 if ((serviceInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) in testAtLeastOneEncryptionAwareInputMethodIsAvailable()
251 if (serviceInfo.directBootAware) { in testAtLeastOneEncryptionAwareInputMethodIsAvailable()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DBluetoothSharingRestrictionTest.java135 info.serviceInfo != null ? info.serviceInfo : in assertHandlerAvailable()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityViewTreeReportingTest.java313 AccessibilityServiceInfo serviceInfo = sUiAutomation.getServiceInfo();
314 serviceInfo.flags &= ~AccessibilityServiceInfo.FLAG_INCLUDE_NOT_IMPORTANT_VIEWS;
315 serviceInfo.flags |= getNonImportantViews ?
317 sUiAutomation.setServiceInfo(serviceInfo);
/cts/tests/accessibility/common/src/android/accessibility/cts/common/
DInstrumentedAccessibilityService.java183 for (AccessibilityServiceInfo serviceInfo : serviceInfos) { in enableService()
184 final String serviceId = serviceInfo.getId(); in enableService()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/
DClientTest.java254 assertThat(resolveInfo.get(0).serviceInfo.packageName, in testQuery()
256 assertThat(resolveInfo.get(0).serviceInfo.name, in testQuery()
258 assertThat(resolveInfo.get(1).serviceInfo.packageName, in testQuery()
260 assertThat(resolveInfo.get(1).serviceInfo.name, in testQuery()
276 assertThat(resolveInfo.get(0).serviceInfo.packageName, in testQuery()
278 assertThat(resolveInfo.get(0).serviceInfo.name, in testQuery()
294 assertThat(resolveInfo.get(0).serviceInfo.packageName, in testQuery()
296 assertThat(resolveInfo.get(0).serviceInfo.name, in testQuery()
/cts/tests/tests/uiautomation/src/android/app/uiautomation/cts/
DUiAutomationTest.java525 AccessibilityServiceInfo serviceInfo = serviceInfos.get(i); in enableAccessibilityService() local
527 .equals(serviceInfo.getDescription())) { in enableAccessibilityService()
532 enabledServices + COMPONENT_NAME_SEPARATOR + serviceInfo.getId()); in enableAccessibilityService()
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DImsUtils.java111 if (carrierPackages.contains(info.serviceInfo.packageName)) { in shouldRunSmsImsTests()
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/
DBasePrintTest.java250 && packageToLeaveEnabled.equals(service.serviceInfo.packageName)) { in disablePrintServices()
256 builder.append(new ComponentName(service.serviceInfo.packageName, in disablePrintServices()
257 service.serviceInfo.name).flattenToString()); in disablePrintServices()
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/
DSplitAppTest.java278 assertEquals("com.android.cts.splitapp.FeatureService", result.get(0).serviceInfo.name); in testFeatureBase()