Home
last modified time | relevance | path

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

123456

/frameworks/base/services/core/java/com/android/server/tv/
DTvRemoteProviderWatcher.java114 ServiceInfo serviceInfo = resolveInfo.serviceInfo; in scanPackages() local
115 if (serviceInfo != null && verifyServiceTrusted(serviceInfo)) { in scanPackages()
116 int sourceIndex = findProvider(serviceInfo.packageName, serviceInfo.name); in scanPackages()
120 new ComponentName(serviceInfo.packageName, serviceInfo.name), in scanPackages()
121 mUserId, serviceInfo.applicationInfo.uid); in scanPackages()
145 private boolean verifyServiceTrusted(ServiceInfo serviceInfo) { in verifyServiceTrusted() argument
146 if (serviceInfo.permission == null || !serviceInfo.permission.equals( in verifyServiceTrusted()
154 + serviceInfo.packageName + "/" + serviceInfo.name); in verifyServiceTrusted()
159 if (!serviceInfo.packageName.equals(mUnbundledServicePackage)) { in verifyServiceTrusted()
162 + serviceInfo.packageName + "/" + serviceInfo.name); in verifyServiceTrusted()
[all …]
/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/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()
/frameworks/base/services/core/java/com/android/server/
DNetworkScorerAppManager.java82 final ServiceInfo serviceInfo = resolveInfos.get(i).serviceInfo; in getAllValidScorers() local
83 if (hasPermissions(serviceInfo.applicationInfo.uid, serviceInfo.packageName)) { in getAllValidScorers()
85 Log.v(TAG, serviceInfo.packageName + " is a valid scorer/recommender."); in getAllValidScorers()
88 new ComponentName(serviceInfo.packageName, serviceInfo.name); in getAllValidScorers()
89 final String serviceLabel = getRecommendationServiceLabel(serviceInfo, pm); in getAllValidScorers()
91 findUseOpenWifiNetworksActivity(serviceInfo); in getAllValidScorers()
93 getNetworkAvailableNotificationChannelId(serviceInfo); in getAllValidScorers()
95 new NetworkScorerAppData(serviceInfo.applicationInfo.uid, in getAllValidScorers()
99 if (VERBOSE) Log.v(TAG, serviceInfo.packageName in getAllValidScorers()
108 private String getRecommendationServiceLabel(ServiceInfo serviceInfo, PackageManager pm) { in getRecommendationServiceLabel() argument
[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.java315 public void onServiceFound(NsdServiceInfo serviceInfo); in onServiceFound() argument
317 public void onServiceLost(NsdServiceInfo serviceInfo); in onServiceLost() argument
323 public void onRegistrationFailed(NsdServiceInfo serviceInfo, int errorCode); in onRegistrationFailed() argument
325 public void onUnregistrationFailed(NsdServiceInfo serviceInfo, int errorCode); in onUnregistrationFailed() argument
327 public void onServiceRegistered(NsdServiceInfo serviceInfo); in onServiceRegistered() argument
329 public void onServiceUnregistered(NsdServiceInfo serviceInfo); in onServiceUnregistered() argument
335 public void onResolveFailed(NsdServiceInfo serviceInfo, int errorCode); in onResolveFailed() argument
337 public void onServiceResolved(NsdServiceInfo serviceInfo); in onServiceResolved() argument
518 public void registerService(NsdServiceInfo serviceInfo, int protocolType, in registerService() argument
520 checkArgument(serviceInfo.getPort() > 0, "Invalid port number"); in registerService()
[all …]
/frameworks/base/core/java/android/nfc/cardemulation/
DCardEmulation.java669 ApduServiceInfo serviceInfo = sService.getPreferredPaymentService(mContext.getUserId()); in getAidsForPreferredPaymentService() local
670 return (serviceInfo != null ? serviceInfo.getAids() : null); in getAidsForPreferredPaymentService()
678 ApduServiceInfo serviceInfo = in getAidsForPreferredPaymentService()
680 return (serviceInfo != null ? serviceInfo.getAids() : null); in getAidsForPreferredPaymentService()
708 ApduServiceInfo serviceInfo = sService.getPreferredPaymentService(mContext.getUserId()); in getRouteDestinationForPreferredPaymentService() local
709 if (serviceInfo != null) { in getRouteDestinationForPreferredPaymentService()
710 if (!serviceInfo.isOnHost()) { in getRouteDestinationForPreferredPaymentService()
711 return serviceInfo.getOffHostSecureElement() == null ? in getRouteDestinationForPreferredPaymentService()
712 "OffHost" : serviceInfo.getOffHostSecureElement(); in getRouteDestinationForPreferredPaymentService()
724 ApduServiceInfo serviceInfo = in getRouteDestinationForPreferredPaymentService()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
DInputMethodInfoTest.java88 final ServiceInfo serviceInfo = new ServiceInfo(); in buildInputMethodForTest() local
89 serviceInfo.applicationInfo = context.getApplicationInfo(); in buildInputMethodForTest()
90 serviceInfo.packageName = context.getPackageName(); in buildInputMethodForTest()
91 serviceInfo.name = "DummyImeForTest"; in buildInputMethodForTest()
92 serviceInfo.metaData = new Bundle(); in buildInputMethodForTest()
93 serviceInfo.metaData.putInt(InputMethod.SERVICE_META_DATA, metaDataRes); in buildInputMethodForTest()
95 resolveInfo.serviceInfo = serviceInfo; in buildInputMethodForTest()
/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/autofill/java/com/android/server/autofill/
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()
245 final ServiceInfo serviceInfo = getServiceInfo(); in getMetadataValue() local
246 if (serviceInfo == null) return null; in getMetadataValue()
252 res = pm.getResourcesForApplication(serviceInfo.applicationInfo); in getMetadataValue()
254 Log.e(TAG, "Error getting application resources for " + serviceInfo, e); in getMetadataValue()
[all …]
/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()
DComponentTest.java291 assertNotNull(info2.serviceInfo); in testResolveDisabledService()
292 assertFalse(info2.serviceInfo.enabled); in testResolveDisabledService()
304 assertNotNull(info.serviceInfo); in testResolveEnabledService()
305 assertTrue(info.serviceInfo.enabled); in testResolveEnabledService()
324 assertNotNull(info.serviceInfo); in testQueryDisabledService()
325 assertFalse(info.serviceInfo.enabled); in testQueryDisabledService()
339 assertNotNull(info.serviceInfo); in testQueryEnabledService()
340 assertTrue(info.serviceInfo.enabled); in testQueryEnabledService()
356 final ServiceInfo serviceInfo = in testGetDisabledServiceInfo() local
359 assertNotNull(serviceInfo); in testGetDisabledServiceInfo()
[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/services/midi/java/com/android/server/midi/
DMidiService.java305 ServiceInfo serviceInfo, int uid) { in Device() argument
307 mServiceInfo = serviceInfo; in Device()
579 ServiceInfo serviceInfo = resolveInfos.get(i).serviceInfo; in onUnlockUser() local
580 if (serviceInfo != null) { in onUnlockUser()
581 addPackageDeviceServer(serviceInfo); in onUnlockUser()
740 ServiceInfo serviceInfo = device.getServiceInfo(); in getServiceDeviceInfo() local
741 if (serviceInfo != null && in getServiceDeviceInfo()
742 packageName.equals(serviceInfo.packageName) && in getServiceDeviceInfo()
743 className.equals(serviceInfo.name)) { in getServiceDeviceInfo()
784 IMidiDeviceServer server, ServiceInfo serviceInfo, in addDeviceLocked() argument
[all …]
/frameworks/base/services/core/java/com/android/server/role/
DFinancialSmsManager.java80 if (resolveInfo == null || resolveInfo.serviceInfo == null) { in getServiceInfo()
84 return resolveInfo.serviceInfo; in getServiceInfo()
89 final ServiceInfo serviceInfo = getServiceInfo(); in getServiceComponentName() local
90 if (serviceInfo == null) return null; in getServiceComponentName()
92 final ComponentName name = new ComponentName(serviceInfo.packageName, serviceInfo.name); in getServiceComponentName()
93 if (!Manifest.permission.BIND_FINANCIAL_SMS_SERVICE.equals(serviceInfo.permission)) { in getServiceComponentName()
/frameworks/base/core/java/android/content/pm/
DResolveInfo.java56 public ServiceInfo serviceInfo; field in ResolveInfo
191 if (serviceInfo != null) return serviceInfo; in getComponentInfo()
349 } else if (serviceInfo != null) { in dump()
351 serviceInfo.dump(pw, prefix + " ", dumpFlags); in dump()
364 serviceInfo = orig.serviceInfo; in ResolveInfo()
417 } else if (serviceInfo != null) { in writeToParcel()
419 serviceInfo.writeToParcel(dest, parcelableFlags); in writeToParcel()
460 serviceInfo = null; in ResolveInfo()
467 serviceInfo = ServiceInfo.CREATOR.createFromParcel(source); in ResolveInfo()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/xerox/
DServiceResolver.java109 private void queueRequest(NsdServiceInfo serviceInfo) { in queueRequest() argument
111 if (mQueue.contains(serviceInfo)) return; in queueRequest()
112 mQueue.add(serviceInfo); in queueRequest()
117 private void removeRequest(NsdServiceInfo serviceInfo) { in removeRequest() argument
119 mQueue.remove(serviceInfo); in removeRequest()
120 if ((mCurrentRequest != null) && serviceInfo.equals(mCurrentRequest)) in removeRequest()
/frameworks/base/core/java/android/accessibilityservice/
DAccessibilityServiceInfo.java508 ServiceInfo serviceInfo = resolveInfo.serviceInfo; in AccessibilityServiceInfo() local
509 mComponentName = new ComponentName(serviceInfo.packageName, serviceInfo.name); in AccessibilityServiceInfo()
516 parser = serviceInfo.loadXmlMetaData(packageManager, in AccessibilityServiceInfo()
535 serviceInfo.applicationInfo); in AccessibilityServiceInfo()
607 + serviceInfo.packageName); in AccessibilityServiceInfo()
742 ServiceInfo serviceInfo = mResolveInfo.serviceInfo; in loadSummary() local
743 CharSequence summary = packageManager.getText(serviceInfo.packageName, in loadSummary()
744 mSummaryResId, serviceInfo.applicationInfo); in loadSummary()
777 ServiceInfo serviceInfo = mResolveInfo.serviceInfo; in loadDescription() local
778 CharSequence description = packageManager.getText(serviceInfo.packageName, in loadDescription()
[all …]
/frameworks/base/core/java/android/printservice/
DPrintServiceInfo.java97 mId = new ComponentName(resolveInfo.serviceInfo.packageName, in PrintServiceInfo()
98 resolveInfo.serviceInfo.name).flattenToString(); in PrintServiceInfo()
111 return new ComponentName(mResolveInfo.serviceInfo.packageName, in getComponentName()
112 mResolveInfo.serviceInfo.name); in getComponentName()
131 parser = resolveInfo.serviceInfo.loadXmlMetaData(packageManager, in create()
146 resolveInfo.serviceInfo.applicationInfo); in create()
168 + resolveInfo.serviceInfo.packageName); in create()
/frameworks/base/core/java/com/android/internal/accessibility/
DAccessibilityShortcutController.java240 final AccessibilityServiceInfo serviceInfo = getInfoForTargetService(); in performAccessibilityShortcut() local
241 if (serviceInfo != null) { in performAccessibilityShortcut()
242 String toastMessageFormatString = mContext.getString(isServiceEnabled(serviceInfo) in performAccessibilityShortcut()
315 final AccessibilityServiceInfo serviceInfo = mFrameworkObjectProvider in getShortcutFeatureDescription() local
318 if (serviceInfo == null) { in getShortcutFeatureDescription()
322 String label = serviceInfo.getResolveInfo().loadLabel(pm).toString(); in getShortcutFeatureDescription()
323 CharSequence summary = serviceInfo.loadSummary(pm); in getShortcutFeatureDescription()
330 private boolean isServiceEnabled(AccessibilityServiceInfo serviceInfo) { in isServiceEnabled() argument
334 AccessibilityServiceInfo.FEEDBACK_ALL_MASK).contains(serviceInfo); in isServiceEnabled()
361 final AccessibilityServiceInfo serviceInfo = getInfoForTargetService(); in performTtsPrompt() local
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/
DTileQueryHelper.java144 String packageName = info.serviceInfo.packageName; in addPackageTiles()
145 ComponentName componentName = new ComponentName(packageName, info.serviceInfo.name); in addPackageTiles()
152 final CharSequence appLabel = info.serviceInfo.applicationInfo.loadLabel(pm); in addPackageTiles()
159 if (info.serviceInfo.icon == 0 && info.serviceInfo.applicationInfo.icon == 0) { in addPackageTiles()
162 Drawable icon = info.serviceInfo.loadIcon(pm); in addPackageTiles()
163 if (!permission.BIND_QUICK_SETTINGS_TILE.equals(info.serviceInfo.permission)) { in addPackageTiles()
171 CharSequence label = info.serviceInfo.loadLabel(pm); in addPackageTiles()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/accessibility/
DAccessibilityUtils.java55 final ServiceInfo serviceInfo = enabledServiceInfos.get(i).getResolveInfo().serviceInfo; in hasServiceCrashed() local
56 if (TextUtils.equals(serviceInfo.packageName, packageName) in hasServiceCrashed()
57 && TextUtils.equals(serviceInfo.name, serviceName)) { in hasServiceCrashed()
209 resolveInfo.serviceInfo.packageName, in getInstalledServices()
210 resolveInfo.serviceInfo.name); in getInstalledServices()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/hp/
DServiceResolveQueue.java61 public void queueRequest(NsdServiceInfo serviceInfo, ResolveCallback callback) { in queueRequest() argument
63 Pair<NsdServiceInfo, ResolveCallback> newRequest = Pair.create(serviceInfo, callback); in queueRequest()
70 public void removeRequest(NsdServiceInfo serviceInfo, ResolveCallback callback) { in removeRequest() argument
72 Pair<NsdServiceInfo, ResolveCallback> newRequest = Pair.create(serviceInfo, callback); in removeRequest()

123456