Home
last modified time | relevance | path

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

12345678

/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/util/
DNsdResolveQueue.java61 final @NonNull NsdServiceInfo serviceInfo; field in NsdResolveQueue.NsdResolveRequest
65 @NonNull NsdServiceInfo serviceInfo, @NonNull NsdManager.ResolveListener listener) { in NsdResolveRequest() argument
67 this.serviceInfo = serviceInfo; in NsdResolveRequest()
79 public void resolve(@NonNull NsdManager nsdManager, @NonNull NsdServiceInfo serviceInfo, in resolve() argument
82 mResolveRequests.addLast(new NsdResolveRequest(nsdManager, serviceInfo, in resolve()
103 public void onResolveFailed(NsdServiceInfo serviceInfo, int errorCode) { in onResolveFailed() argument
104 mListener.onResolveFailed(serviceInfo, errorCode); in onResolveFailed()
113 public void onServiceResolved(NsdServiceInfo serviceInfo) { in onServiceResolved() argument
114 mListener.onServiceResolved(serviceInfo); in onServiceResolved()
130 request.nsdManager.resolveService(request.serviceInfo, request.listener); in resolveNextRequest()
DMDNSFilteredDiscovery.java165 public void onServiceFound(NsdServiceInfo serviceInfo) { in onServiceFound() argument
166 mResolveQueue.resolve(getNDSManager(), serviceInfo, in onServiceFound() local
169 public void onResolveFailed(NsdServiceInfo serviceInfo, int errorCode) { in onServiceFound() argument
170 Log.w(LOG_TAG, "Service found: could not resolve " + serviceInfo + ": " + in onServiceFound()
175 public void onServiceResolved(NsdServiceInfo serviceInfo) { in onServiceFound() argument
176 if (!TextUtils.isEmpty(PrinterHashMap.getKey(serviceInfo)) in onServiceFound()
177 && mPrinterFilter.matchesCriteria(serviceInfo)) { in onServiceFound()
179 NsdServiceInfo old = mPrinters.addPrinter(serviceInfo); in onServiceFound()
180 if (!Objects.equals(old, serviceInfo)) { in onServiceFound()
190 public void onServiceLost(NsdServiceInfo serviceInfo) { in onServiceLost() argument
[all …]
DMDNSUtils.java48 public static boolean isVendorPrinter(@NonNull NsdServiceInfo serviceInfo, in isVendorPrinter() argument
50 for (Map.Entry<String, byte[]> entry : serviceInfo.getAttributes().entrySet()) { in isVendorPrinter()
123 public static boolean isSupportedServiceType(@NonNull NsdServiceInfo serviceInfo, in isSupportedServiceType() argument
125 String curType = serviceInfo.getServiceType().toLowerCase(); in isSupportedServiceType()
/frameworks/base/services/core/java/com/android/server/tv/
DTvRemoteProviderWatcher.java133 ServiceInfo serviceInfo = resolveInfo.serviceInfo; in scanPackages() local
134 if (serviceInfo != null && verifyServiceTrusted(serviceInfo)) { in scanPackages()
135 int sourceIndex = findProvider(serviceInfo.packageName, serviceInfo.name); in scanPackages()
139 new ComponentName(serviceInfo.packageName, serviceInfo.name), in scanPackages()
140 mUserId, serviceInfo.applicationInfo.uid); in scanPackages()
163 boolean verifyServiceTrusted(ServiceInfo serviceInfo) { in verifyServiceTrusted() argument
164 if (serviceInfo.permission == null || !serviceInfo.permission.equals( in verifyServiceTrusted()
172 + serviceInfo.packageName + "/" + serviceInfo.name); in verifyServiceTrusted()
177 if (!mUnbundledServicePackages.contains(serviceInfo.packageName)) { in verifyServiceTrusted()
180 + serviceInfo.packageName + "/" + serviceInfo.name); in verifyServiceTrusted()
[all …]
/frameworks/base/services/core/java/com/android/server/media/
DRemoteDisplayProviderWatcher.java119 ServiceInfo serviceInfo = resolveInfo.serviceInfo; in scanPackages() local
120 if (serviceInfo != null && verifyServiceTrusted(serviceInfo)) { in scanPackages()
121 int sourceIndex = findProvider(serviceInfo.packageName, serviceInfo.name); in scanPackages()
125 new ComponentName(serviceInfo.packageName, serviceInfo.name), in scanPackages()
150 private boolean verifyServiceTrusted(ServiceInfo serviceInfo) { in verifyServiceTrusted() argument
151 if (serviceInfo.permission == null || !serviceInfo.permission.equals( in verifyServiceTrusted()
159 + serviceInfo.packageName + "/" + serviceInfo.name); in verifyServiceTrusted()
163 serviceInfo.packageName) != PackageManager.PERMISSION_GRANTED) { in verifyServiceTrusted()
169 + "permission: " + serviceInfo.packageName + "/" + serviceInfo.name); in verifyServiceTrusted()
DMediaRoute2ProviderWatcher.java115 ServiceInfo serviceInfo = resolveInfo.serviceInfo; in scanPackages() local
116 if (serviceInfo != null) { in scanPackages()
117 int sourceIndex = findProvider(serviceInfo.packageName, serviceInfo.name); in scanPackages()
121 new ComponentName(serviceInfo.packageName, serviceInfo.name), in scanPackages()
/frameworks/base/services/tests/servicestests/src/com/android/server/tv/
DTvRemoteProviderWatcherTest.java120 ServiceInfo serviceInfo = createTvServiceInfo(); in permissionIsRequired() local
121 serviceInfo.permission = null; in permissionIsRequired()
123 assertFalse(mTvRemoteProviderWatcher.verifyServiceTrusted(serviceInfo)); in permissionIsRequired()
128 ServiceInfo serviceInfo = createTvServiceInfo(); in permissionMustBeBindRemote() local
129 serviceInfo.permission = Manifest.permission.BIND_TV_INPUT; in permissionMustBeBindRemote()
130 assertFalse(mTvRemoteProviderWatcher.verifyServiceTrusted(serviceInfo)); in permissionMustBeBindRemote()
135 ServiceInfo serviceInfo = createTvServiceInfo(); in packageNameMustMatch() local
136 serviceInfo.packageName = "some.random.package"; in packageNameMustMatch()
137 assertFalse(mTvRemoteProviderWatcher.verifyServiceTrusted(serviceInfo)); in packageNameMustMatch()
160 ServiceInfo serviceInfo = new ServiceInfo(); in createTvServiceInfo() local
[all …]
/frameworks/base/services/core/java/com/android/server/
DNetworkScorerAppManager.java83 final ServiceInfo serviceInfo = resolveInfos.get(i).serviceInfo; in getAllValidScorers() local
84 if (hasPermissions(serviceInfo.applicationInfo.uid, serviceInfo.packageName)) { in getAllValidScorers()
86 Log.v(TAG, serviceInfo.packageName + " is a valid scorer/recommender."); in getAllValidScorers()
89 new ComponentName(serviceInfo.packageName, serviceInfo.name); in getAllValidScorers()
90 final String serviceLabel = getRecommendationServiceLabel(serviceInfo, pm); in getAllValidScorers()
92 findUseOpenWifiNetworksActivity(serviceInfo); in getAllValidScorers()
94 getNetworkAvailableNotificationChannelId(serviceInfo); in getAllValidScorers()
96 new NetworkScorerAppData(serviceInfo.applicationInfo.uid, in getAllValidScorers()
100 if (VERBOSE) Log.v(TAG, serviceInfo.packageName in getAllValidScorers()
109 private String getRecommendationServiceLabel(ServiceInfo serviceInfo, PackageManager pm) { in getRecommendationServiceLabel() argument
[all …]
/frameworks/base/core/java/android/service/quickaccesswallet/
DQuickAccessWalletServiceInfo.java62 @NonNull ServiceInfo serviceInfo, in QuickAccessWalletServiceInfo()
65 mServiceInfo = serviceInfo; in QuickAccessWalletServiceInfo()
77 ServiceInfo serviceInfo = getWalletServiceInfo(context, defaultPaymentApp.getPackageName()); in tryCreate() local
78 if (serviceInfo == null) { in tryCreate()
82 if (!Manifest.permission.BIND_QUICK_ACCESS_WALLET_SERVICE.equals(serviceInfo.permission)) { in tryCreate()
84 serviceInfo.packageName, serviceInfo.name, in tryCreate()
89 ServiceMetadata metadata = parseServiceMetadata(context, serviceInfo); in tryCreate()
91 new TileServiceMetadata(parseTileServiceMetadata(context, serviceInfo)); in tryCreate()
92 return new QuickAccessWalletServiceInfo(serviceInfo, metadata, tileServiceMetadata); in tryCreate()
110 return resolveInfos.isEmpty() ? null : resolveInfos.get(0).serviceInfo; in getWalletServiceInfo()
[all …]
/frameworks/base/core/java/android/app/
DWallpaperInfo.java97 ServiceInfo si = service.serviceInfo; in WallpaperInfo()
181 return mService.serviceInfo.packageName; in getPackageName()
189 return mService.serviceInfo.name; in getServiceName()
197 return mService.serviceInfo; in getServiceInfo()
204 return new ComponentName(mService.serviceInfo.packageName, in getComponent()
205 mService.serviceInfo.name); in getComponent()
237 return pm.getDrawable(mService.serviceInfo.packageName, in loadThumbnail()
239 mService.serviceInfo.applicationInfo); in loadThumbnail()
250 packageName = mService.serviceInfo.packageName; in loadAuthor()
251 applicationInfo = mService.serviceInfo.applicationInfo; in loadAuthor()
[all …]
/frameworks/base/core/java/android/net/nsd/
DNsdManager.java344 public void onServiceFound(NsdServiceInfo serviceInfo); in onServiceFound() argument
346 public void onServiceLost(NsdServiceInfo serviceInfo); in onServiceLost() argument
352 public void onRegistrationFailed(NsdServiceInfo serviceInfo, int errorCode); in onRegistrationFailed() argument
354 public void onUnregistrationFailed(NsdServiceInfo serviceInfo, int errorCode); in onUnregistrationFailed() argument
356 public void onServiceRegistered(NsdServiceInfo serviceInfo); in onServiceRegistered() argument
358 public void onServiceUnregistered(NsdServiceInfo serviceInfo); in onServiceUnregistered() argument
364 public void onResolveFailed(NsdServiceInfo serviceInfo, int errorCode); in onResolveFailed() argument
366 public void onServiceResolved(NsdServiceInfo serviceInfo); in onServiceResolved() argument
553 public void registerService(NsdServiceInfo serviceInfo, int protocolType, in registerService() argument
555 checkArgument(serviceInfo.getPort() > 0, "Invalid port number"); in registerService()
[all …]
/frameworks/base/services/autofill/java/com/android/server/autofill/
DRemoteInlineSuggestionRenderService.java123 final ServiceInfo serviceInfo = resolveInfo == null ? null : resolveInfo.serviceInfo; in getServiceInfo() local
124 if (resolveInfo == null || serviceInfo == null) { in getServiceInfo()
130 .equals(serviceInfo.permission)) { in getServiceInfo()
131 Slog.w(TAG, serviceInfo.name + " does not require permission " in getServiceInfo()
136 return serviceInfo; in getServiceInfo()
141 final ServiceInfo serviceInfo = getServiceInfo(context, userId); in getServiceComponentName() local
142 if (serviceInfo == null) return null; in getServiceComponentName()
144 final ComponentName componentName = new ComponentName(serviceInfo.packageName, in getServiceComponentName()
145 serviceInfo.name); in getServiceComponentName()
DFieldClassificationStrategy.java96 if (resolveInfo == null || resolveInfo.serviceInfo == null) { in getServiceInfo()
100 return resolveInfo.serviceInfo; in getServiceInfo()
105 final ServiceInfo serviceInfo = getServiceInfo(); in getServiceComponentName() local
106 if (serviceInfo == null) return null; in getServiceComponentName()
108 final ComponentName name = new ComponentName(serviceInfo.packageName, serviceInfo.name); in getServiceComponentName()
110 .equals(serviceInfo.permission)) { in getServiceComponentName()
250 final ServiceInfo serviceInfo = getServiceInfo(); in getMetadataValue() local
251 if (serviceInfo == null) return null; in getMetadataValue()
257 res = pm.getResourcesForApplication(serviceInfo.applicationInfo); in getMetadataValue()
259 Log.e(TAG, "Error getting application resources for " + serviceInfo, e); in getMetadataValue()
[all …]
/frameworks/base/core/java/android/nfc/cardemulation/
DCardEmulation.java683 ApduServiceInfo serviceInfo = sService.getPreferredPaymentService(mContext.getUserId()); in getAidsForPreferredPaymentService() local
684 return (serviceInfo != null ? serviceInfo.getAids() : null); in getAidsForPreferredPaymentService()
692 ApduServiceInfo serviceInfo = in getAidsForPreferredPaymentService()
694 return (serviceInfo != null ? serviceInfo.getAids() : null); in getAidsForPreferredPaymentService()
722 ApduServiceInfo serviceInfo = sService.getPreferredPaymentService(mContext.getUserId()); in getRouteDestinationForPreferredPaymentService() local
723 if (serviceInfo != null) { in getRouteDestinationForPreferredPaymentService()
724 if (!serviceInfo.isOnHost()) { in getRouteDestinationForPreferredPaymentService()
725 return serviceInfo.getOffHostSecureElement() == null ? in getRouteDestinationForPreferredPaymentService()
726 "OffHost" : serviceInfo.getOffHostSecureElement(); in getRouteDestinationForPreferredPaymentService()
738 ApduServiceInfo serviceInfo = in getRouteDestinationForPreferredPaymentService()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
DInputMethodInfoTest.java101 final ServiceInfo serviceInfo = new ServiceInfo(); in buildInputMethodForTest() local
102 serviceInfo.applicationInfo = context.getApplicationInfo(); in buildInputMethodForTest()
103 serviceInfo.packageName = context.getPackageName(); in buildInputMethodForTest()
104 serviceInfo.name = "DummyImeForTest"; in buildInputMethodForTest()
105 serviceInfo.metaData = new Bundle(); in buildInputMethodForTest()
106 serviceInfo.metaData.putInt(InputMethod.SERVICE_META_DATA, metaDataRes); in buildInputMethodForTest()
108 resolveInfo.serviceInfo = serviceInfo; in buildInputMethodForTest()
/frameworks/base/core/java/com/android/internal/accessibility/dialog/
DAccessibilityServiceTarget.java38 @NonNull AccessibilityServiceInfo serviceInfo) { in AccessibilityServiceTarget() argument
43 serviceInfo.getComponentName().flattenToString()), in AccessibilityServiceTarget()
44 serviceInfo.getComponentName().flattenToString(), in AccessibilityServiceTarget()
45 serviceInfo.getResolveInfo().loadLabel(context.getPackageManager()), in AccessibilityServiceTarget()
46 serviceInfo.getResolveInfo().loadIcon(context.getPackageManager()), in AccessibilityServiceTarget()
/frameworks/base/services/tests/servicestests/src/com/android/server/inputmethod/
DMultiClientInputMethodManagerServiceTest.java84 imeService.serviceInfo = new ServiceInfo(); in buildResolveInfo()
85 imeService.serviceInfo.packageName = "com.android.server.inputmethod"; in buildResolveInfo()
86 imeService.serviceInfo.name = "someIMEService"; in buildResolveInfo()
87 imeService.serviceInfo.permission = permission; in buildResolveInfo()
88 imeService.serviceInfo.applicationInfo = new ApplicationInfo(); in buildResolveInfo()
89 imeService.serviceInfo.applicationInfo.flags = flags; in buildResolveInfo()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkScorerAppManagerTest.java629 final ResolveInfo serviceInfo = new ResolveInfo(); in mockRecommendationServiceAvailable() local
630 serviceInfo.serviceInfo = new ServiceInfo(); in mockRecommendationServiceAvailable()
631 serviceInfo.serviceInfo.name = compName.getClassName(); in mockRecommendationServiceAvailable()
632 serviceInfo.serviceInfo.packageName = compName.getPackageName(); in mockRecommendationServiceAvailable()
633 serviceInfo.serviceInfo.applicationInfo = new ApplicationInfo(); in mockRecommendationServiceAvailable()
634 serviceInfo.serviceInfo.applicationInfo.uid = packageUid; in mockRecommendationServiceAvailable()
636 serviceInfo.serviceInfo.metaData = new Bundle(); in mockRecommendationServiceAvailable()
637 serviceInfo.serviceInfo.metaData.putString( in mockRecommendationServiceAvailable()
642 if (serviceInfo.serviceInfo.metaData == null) { in mockRecommendationServiceAvailable()
643 serviceInfo.serviceInfo.metaData = new Bundle(); in mockRecommendationServiceAvailable()
[all …]
/frameworks/base/services/core/java/com/android/server/servicewatcher/
DCurrentUserServiceSupplier.java100 int uid = resolveInfo.serviceInfo.applicationInfo.uid; in parseUid()
101 Bundle metadata = resolveInfo.serviceInfo.metaData; in parseUid()
111 if (resolveInfo.serviceInfo.metaData != null) { in parseVersion()
112 version = resolveInfo.serviceInfo.metaData.getInt(EXTRA_SERVICE_VERSION, version); in parseVersion()
121 this(action, parseUid(resolveInfo), resolveInfo.serviceInfo.getComponentName(), in BoundServiceInfo()
122 parseVersion(resolveInfo), resolveInfo.serviceInfo.metaData); in BoundServiceInfo()
244 ServiceInfo service = Objects.requireNonNull(resolveInfo.serviceInfo); in getServiceInfo()
254 BoundServiceInfo serviceInfo = new BoundServiceInfo(mIntent.getAction(), resolveInfo); in getServiceInfo() local
258 service.packageName, serviceInfo.getUserId()) != PERMISSION_GRANTED) { in getServiceInfo()
259 Log.d(TAG, serviceInfo.getComponentName().flattenToShortString() in getServiceInfo()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/
DMediaResumeListenerTest.kt192 val serviceInfo = ServiceInfo() in capture() constant
193 serviceInfo.packageName = PACKAGE_NAME in capture()
194 resolveInfo.serviceInfo = serviceInfo in capture()
195 resolveInfo.serviceInfo.name = CLASS_NAME in capture()
227 val serviceInfo = ServiceInfo() in capture() constant
228 serviceInfo.packageName = PACKAGE_NAME in capture()
229 resolveInfo.serviceInfo = serviceInfo in capture()
230 resolveInfo.serviceInfo.name = CLASS_NAME in capture()
302 val serviceInfo = ServiceInfo() in capture() constant
303 serviceInfo.packageName = PACKAGE_NAME in capture()
[all …]
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/inputmethod/
DInputMethodPreferenceTest.java134 resolveInfo.serviceInfo = new ServiceInfo(); in createInputMethodInfo()
135 resolveInfo.serviceInfo.packageName = "com.android.ime"; in createInputMethodInfo()
136 resolveInfo.serviceInfo.name = name; in createInputMethodInfo()
137 resolveInfo.serviceInfo.applicationInfo = new ApplicationInfo(); in createInputMethodInfo()
138 resolveInfo.serviceInfo.applicationInfo.enabled = true; in createInputMethodInfo()
140 resolveInfo.serviceInfo.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in createInputMethodInfo()
142 resolveInfo.serviceInfo.applicationInfo.flags &= ~ApplicationInfo.FLAG_SYSTEM; in createInputMethodInfo()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DAppsQueryHelperTests.java151 sysApp1.serviceInfo = new ServiceInfo(); in queryIntentServicesAsUser()
152 sysApp1.serviceInfo.packageName = "sys_app1"; in queryIntentServicesAsUser()
153 sysApp1.serviceInfo.name = "name"; in queryIntentServicesAsUser()
154 sysApp1.serviceInfo.applicationInfo = new ApplicationInfo(); in queryIntentServicesAsUser()
155 sysApp1.serviceInfo.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in queryIntentServicesAsUser()
157 app4.serviceInfo = new ServiceInfo(); in queryIntentServicesAsUser()
158 app4.serviceInfo.packageName = "app4"; in queryIntentServicesAsUser()
159 app4.serviceInfo.name = "name"; in queryIntentServicesAsUser()
160 app4.serviceInfo.applicationInfo = new ApplicationInfo(); in queryIntentServicesAsUser()
/frameworks/base/core/java/android/accessibilityservice/
DAccessibilityServiceInfo.java609 ServiceInfo serviceInfo = resolveInfo.serviceInfo; in AccessibilityServiceInfo() local
610 mComponentName = new ComponentName(serviceInfo.packageName, serviceInfo.name); in AccessibilityServiceInfo()
617 parser = serviceInfo.loadXmlMetaData(packageManager, in AccessibilityServiceInfo()
636 serviceInfo.applicationInfo); in AccessibilityServiceInfo()
724 + serviceInfo.packageName); in AccessibilityServiceInfo()
766 mResolveInfo.serviceInfo.applicationInfo); in isRequestAccessibilityButtonChangeEnabled()
770 return mResolveInfo.serviceInfo.applicationInfo.targetSdkVersion > Build.VERSION_CODES.Q; in isRequestAccessibilityButtonChangeEnabled()
852 return loadSafeAnimatedImage(context, mResolveInfo.serviceInfo.applicationInfo, in loadAnimatedImage()
920 ServiceInfo serviceInfo = mResolveInfo.serviceInfo; in loadSummary() local
921 CharSequence summary = packageManager.getText(serviceInfo.packageName, in loadSummary()
[all …]
/frameworks/base/services/core/java/com/android/server/rotationresolver/
DRotationResolverManagerPerUserService.java189 ServiceInfo serviceInfo; in newServiceInfoLocked() local
191 serviceInfo = AppGlobals.getPackageManager().getServiceInfo(serviceComponent, in newServiceInfoLocked()
193 if (serviceInfo != null) { in newServiceInfoLocked()
194 final String permission = serviceInfo.permission; in newServiceInfoLocked()
198 serviceInfo.getComponentName(), in newServiceInfoLocked()
200 serviceInfo.permission)); in newServiceInfoLocked()
207 return serviceInfo; in newServiceInfoLocked()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilitySecurityPolicy.java525 public boolean canRegisterService(@NonNull ServiceInfo serviceInfo) { in canRegisterService() argument
527 serviceInfo.permission)) { in canRegisterService()
529 serviceInfo.packageName, serviceInfo.name).flattenToShortString() in canRegisterService()
535 int servicePackageUid = serviceInfo.applicationInfo.uid; in canRegisterService()
537 servicePackageUid, serviceInfo.packageName) != AppOpsManager.MODE_ALLOWED) { in canRegisterService()
539 serviceInfo.packageName, serviceInfo.name).flattenToShortString() in canRegisterService()
562 final int uid = resolveInfo.serviceInfo.applicationInfo.uid; in checkAccessibilityAccess()
684 public boolean isA11yCategoryService(AccessibilityServiceInfo serviceInfo) { in isA11yCategoryService() argument
685 if (!serviceInfo.isAccessibilityTool()) { in isA11yCategoryService()
688 if (!serviceInfo.getResolveInfo().serviceInfo.applicationInfo.isSystemApp()) { in isA11yCategoryService()
[all …]

12345678