/cts/tests/tests/externalservice/service/src/android/externalservice/service/ |
D | BaseService.java | 58 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/ondeviceintelligence/src/android/ondeviceintelligence/cts/ |
D | OnDeviceIntelligenceServiceTest.java | 97 ServiceInfo serviceInfo = systemUserContext.getPackageManager().getServiceInfo( in validateSandboxedService() local 101 assertNotNull("Remote service is not configured to complete the request.", serviceInfo); in validateSandboxedService() 102 final String permission = serviceInfo.permission; in validateSandboxedService() 107 serviceInfo.getComponentName(), in validateSandboxedService() 109 serviceInfo.permission), permission, requiredPermission); in validateSandboxedService() 112 isIsolatedService(serviceInfo)); in validateSandboxedService() 115 private static boolean isIsolatedService(@NonNull ServiceInfo serviceInfo) { in isIsolatedService() argument 116 return (serviceInfo.flags & ServiceInfo.FLAG_ISOLATED_PROCESS) != 0 in isIsolatedService() 117 && (serviceInfo.flags & ServiceInfo.FLAG_EXTERNAL_SERVICE) == 0; in isIsolatedService()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | ServiceInfoTest.java | 71 ServiceInfo serviceInfo = pm.getServiceInfo(componentName, 0); in testServiceInfo() local 73 ServiceInfo infoFromExisted = new ServiceInfo(serviceInfo); in testServiceInfo() 74 checkInfoSame(serviceInfo, infoFromExisted); in testServiceInfo() 76 assertNotNull(serviceInfo.toString()); in testServiceInfo() 77 assertEquals(0, serviceInfo.describeContents()); in testServiceInfo() 80 serviceInfo.writeToParcel(p, 0); in testServiceInfo() 83 checkInfoSame(serviceInfo, infoFromParcel); in testServiceInfo()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/accessibility/ |
D | Accessibility.kt | 40 .map { serviceInfo -> AccessibilityService(serviceInfo) } in <lambda>() method 53 .map { serviceInfo -> AccessibilityService(serviceInfo) } in <lambda>() method
|
D | AccessibilityService.kt | 26 private val serviceInfo: AccessibilityServiceInfo) { constant in com.android.bedstead.nene.accessibility.AccessibilityService 29 fun pkg(): Package = TestApis.packages().find(serviceInfo.resolveInfo.serviceInfo.packageName)
|
/cts/tests/accessibility/src/android/view/accessibility/cts/ |
D | AccessibilityManagerTest.java | 259 ServiceInfo serviceInfo = installedService.getResolveInfo().serviceInfo; in testGetInstalledAccessibilityServicesList() local 260 if (mTargetContext.getPackageName().equals(serviceInfo.packageName) in testGetInstalledAccessibilityServicesList() 261 && SPEAKING_ACCESSIBLITY_SERVICE_NAME.equals(serviceInfo.name)) { in testGetInstalledAccessibilityServicesList() 264 if (mTargetContext.getPackageName().equals(serviceInfo.packageName) in testGetInstalledAccessibilityServicesList() 265 && VIBRATING_ACCESSIBLITY_SERVICE_NAME.equals(serviceInfo.name)) { in testGetInstalledAccessibilityServicesList() 285 ServiceInfo serviceInfo = enabledService.getResolveInfo().serviceInfo; in testGetEnabledAccessibilityServiceList() local 286 if (mTargetContext.getPackageName().equals(serviceInfo.packageName) in testGetEnabledAccessibilityServiceList() 287 && SPEAKING_ACCESSIBLITY_SERVICE_NAME.equals(serviceInfo.name)) { in testGetEnabledAccessibilityServiceList() 290 if (mTargetContext.getPackageName().equals(serviceInfo.packageName) in testGetEnabledAccessibilityServiceList() 291 && VIBRATING_ACCESSIBLITY_SERVICE_NAME.equals(serviceInfo.name)) { in testGetEnabledAccessibilityServiceList() [all …]
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | BasicInCallServiceTest.java | 80 .filter(r -> r.serviceInfo != null in testResolveInCallIntent() 81 && r.serviceInfo.metaData != null in testResolveInCallIntent() 82 && r.serviceInfo.metaData.containsKey( in testResolveInCallIntent() 84 && r.serviceInfo.permission.equals( in testResolveInCallIntent() 86 && r.serviceInfo.name != null) in testResolveInCallIntent()
|
/cts/tests/tests/uiautomation/src/android/app/uiautomation/cts/ |
D | UiAutomationTestA11yService.java | 77 AccessibilityServiceInfo serviceInfo = getServiceInfo(); in toString() local 78 if (serviceInfo == null) { in toString() 81 string.append(", serviceInfo=").append(serviceInfo.getId()); in toString()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityButtonTest.java | 104 final AccessibilityServiceInfo serviceInfo = mService.getServiceInfo(); in testUpdateRequestAccessibilityButtonFlag_targetSdkGreaterThanQ_ignoresUpdate() local 105 assertTrue((serviceInfo.flags & FLAG_REQUEST_ACCESSIBILITY_BUTTON) in testUpdateRequestAccessibilityButtonFlag_targetSdkGreaterThanQ_ignoresUpdate() 109 serviceInfo.flags &= ~FLAG_REQUEST_ACCESSIBILITY_BUTTON; in testUpdateRequestAccessibilityButtonFlag_targetSdkGreaterThanQ_ignoresUpdate() 110 mService.setServiceInfo(serviceInfo); in testUpdateRequestAccessibilityButtonFlag_targetSdkGreaterThanQ_ignoresUpdate()
|
D | AccessibilityViewTreeReportingTest.java | 378 AccessibilityServiceInfo serviceInfo = sUiAutomation.getServiceInfo(); in setGetNonImportantViews() local 379 serviceInfo.flags &= ~AccessibilityServiceInfo.FLAG_INCLUDE_NOT_IMPORTANT_VIEWS; in setGetNonImportantViews() 380 serviceInfo.flags |= getNonImportantViews ? in setGetNonImportantViews() 382 sUiAutomation.setServiceInfo(serviceInfo); in setGetNonImportantViews()
|
/cts/hostsidetests/appsecurity/test-apps/OrderedActivityApp/src/android/appsecurity/cts/orderedactivity/ |
D | PackageResolutionTest.java | 68 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/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | InputMethodInfoTest.java | 154 assertService(resolveInfo.serviceInfo, mInputMethodInfo.getServiceInfo()); in testInputMethodInfoProperties() 318 final ServiceInfo serviceInfo = imi.getServiceInfo(); in testAtLeastOneEncryptionAwareInputMethodIsAvailable() local 319 if (serviceInfo == null) { in testAtLeastOneEncryptionAwareInputMethodIsAvailable() 322 if ((serviceInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) in testAtLeastOneEncryptionAwareInputMethodIsAvailable() 326 if (serviceInfo.directBootAware) { in testAtLeastOneEncryptionAwareInputMethodIsAvailable() 359 final ServiceInfo serviceInfo = new ServiceInfo(); in testParsingPhysicalKeyboardAttributes() local 360 serviceInfo.applicationInfo = mContext.getApplicationInfo(); in testParsingPhysicalKeyboardAttributes() 361 serviceInfo.packageName = mContext.getPackageName(); in testParsingPhysicalKeyboardAttributes() 362 serviceInfo.name = "TestIme"; in testParsingPhysicalKeyboardAttributes() 363 serviceInfo.metaData = new Bundle(); in testParsingPhysicalKeyboardAttributes() [all …]
|
D | InputMethodRegistrationTest.java | 95 ri -> ri.serviceInfo.applicationInfo.className != null in verifyTestSetup_initiallyDisabledImes_AreFound() 97 ComponentName.createRelative(ri.serviceInfo.applicationInfo.packageName, in verifyTestSetup_initiallyDisabledImes_AreFound() 98 ri.serviceInfo.applicationInfo.className)) in verifyTestSetup_initiallyDisabledImes_AreFound() 99 && !ri.serviceInfo.enabled).findAny(); in verifyTestSetup_initiallyDisabledImes_AreFound() 101 ri -> ri.serviceInfo.applicationInfo.className != null in verifyTestSetup_initiallyDisabledImes_AreFound() 103 ComponentName.createRelative(ri.serviceInfo.applicationInfo.packageName, in verifyTestSetup_initiallyDisabledImes_AreFound() 104 ri.serviceInfo.applicationInfo.className)) in verifyTestSetup_initiallyDisabledImes_AreFound() 105 && !ri.serviceInfo.enabled).findAny(); in verifyTestSetup_initiallyDisabledImes_AreFound()
|
/cts/tests/tests/nfc/src/android/nfc/cts/ |
D | NfcFServiceInfoTest.java | 86 ServiceInfo serviceInfo = new ServiceInfo(); in setUp() local 87 serviceInfo.packageName = SERVICE_PACKAGE_NAME; in setUp() 88 serviceInfo.name = SERVICE_NAME; in setUp() 89 serviceInfo.applicationInfo = new ApplicationInfo(); in setUp() 90 mResolveInfo.serviceInfo = serviceInfo; in setUp()
|
D | ApduServiceInfoTest.java | 93 ServiceInfo serviceInfo = new ServiceInfo(); in setUp() local 94 serviceInfo.packageName = SERVICE_PACKAGE_NAME; in setUp() 95 serviceInfo.name = SERVICE_NAME; in setUp() 96 serviceInfo.applicationInfo = new ApplicationInfo(); in setUp() 97 mResolveInfo.serviceInfo = serviceInfo; in setUp() 133 ServiceInfo si = resolvedService.serviceInfo; in findForegroundServiceResolveInfo()
|
/cts/common/device-side/bedstead/queryable/src/main/java/com/android/queryable/info/ |
D | ServiceInfo.java | 41 public static Builder builder(android.content.pm.ServiceInfo serviceInfo) { in builder() argument 43 .serviceClass(serviceInfo.name); in builder()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | CVE_2024_34719.java | 156 .map(resolveInfo -> resolveInfo.serviceInfo) in queryBluetoothPackageName() 157 .map(serviceInfo -> serviceInfo.packageName) in queryBluetoothPackageName()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | ActivityLaunchUtils.java | 146 final AccessibilityServiceInfo serviceInfo = uiAutomation.getServiceInfo(); in homeScreenOrBust() 147 final int enabledFlags = serviceInfo.flags; in homeScreenOrBust() 149 serviceInfo.flags |= AccessibilityServiceInfo.FLAG_RETRIEVE_INTERACTIVE_WINDOWS; in homeScreenOrBust() 150 uiAutomation.setServiceInfo(serviceInfo); in homeScreenOrBust() 193 serviceInfo.flags = enabledFlags; in homeScreenOrBust() 194 uiAutomation.setServiceInfo(serviceInfo); in homeScreenOrBust()
|
/cts/common/device-side/bedstead/queryable/src/test/java/com/android/queryable/queries/ |
D | ServiceQueryHelperTest.java | 61 android.content.pm.ServiceInfo serviceInfo = new android.content.pm.ServiceInfo(); in createServiceInfo() local 62 serviceInfo.name = name; in createServiceInfo() 64 return serviceInfo; in createServiceInfo()
|
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/ |
D | ClientTest.java | 189 assertThat(resolveInfo.get(0).serviceInfo.packageName, in testQuery() 191 assertThat(resolveInfo.get(0).serviceInfo.name, in testQuery() 195 assertThat(resolveInfo.get(1).serviceInfo.packageName, in testQuery() 197 assertThat(resolveInfo.get(1).serviceInfo.name, in testQuery() 214 assertThat(resolveInfo.get(0).serviceInfo.packageName, in testQuery() 216 assertThat(resolveInfo.get(0).serviceInfo.name, in testQuery() 220 assertThat(resolveInfo.get(1).serviceInfo.packageName, in testQuery() 222 assertThat(resolveInfo.get(1).serviceInfo.name, in testQuery()
|
/cts/tests/accessibilityservice/testsdk29/src/android/accessibilityservice/cts/ |
D | AccessibilityButtonSdk29Test.java | 94 mServiceInfo.getResolveInfo().serviceInfo.packageName, in setUp() 95 mServiceInfo.getResolveInfo().serviceInfo.name); in setUp()
|
/cts/tests/accessibilityservice/test-apps/NonProxySeparateApp/src/foo/bar/proxy/ |
D | NonProxySeparateAppActivity.java | 54 enabledServiceList[i] = enabled.get(i).getResolveInfo().serviceInfo.name; in onCreate()
|
/cts/tests/accessibility/common/src/android/accessibility/cts/common/ |
D | InstrumentedAccessibilityService.java | 189 for (AccessibilityServiceInfo serviceInfo : serviceInfos) { in enableServiceWithoutWait() 190 final String serviceId = serviceInfo.getId(); in enableServiceWithoutWait()
|
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ |
D | ClientTest.java | 260 assertThat(resolveInfo.get(0).serviceInfo.packageName, in testQuery() 262 assertThat(resolveInfo.get(0).serviceInfo.name, in testQuery() 264 assertThat(resolveInfo.get(1).serviceInfo.packageName, in testQuery() 266 assertThat(resolveInfo.get(1).serviceInfo.name, in testQuery() 282 assertThat(resolveInfo.get(0).serviceInfo.packageName, in testQuery() 284 assertThat(resolveInfo.get(0).serviceInfo.name, in testQuery() 300 assertThat(resolveInfo.get(0).serviceInfo.packageName, in testQuery() 302 assertThat(resolveInfo.get(0).serviceInfo.name, in testQuery()
|
/cts/tests/app/WallpaperTest/src/android/app/cts/wallpapers/ |
D | WallpaperInfoTest.java | 94 if (resolveInfo.serviceInfo.name.equals(service.getName())) { in getInfoForService()
|