Home
last modified time | relevance | path

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

1234

/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.java60 final @NonNull NsdServiceInfo serviceInfo; field in NsdResolveQueue.NsdResolveRequest
64 @NonNull NsdServiceInfo serviceInfo, @NonNull NsdManager.ResolveListener listener) { in NsdResolveRequest() argument
66 this.serviceInfo = serviceInfo; in NsdResolveRequest()
78 public void resolve(@NonNull NsdManager nsdManager, @NonNull NsdServiceInfo serviceInfo, in resolve() argument
81 mResolveRequests.addLast(new NsdResolveRequest(nsdManager, serviceInfo, in resolve()
102 public void onResolveFailed(NsdServiceInfo serviceInfo, int errorCode) { in onResolveFailed() argument
103 mListener.onResolveFailed(serviceInfo, errorCode); in onResolveFailed()
112 public void onServiceResolved(NsdServiceInfo serviceInfo) { in onServiceResolved() argument
113 mListener.onServiceResolved(serviceInfo); in onServiceResolved()
129 request.nsdManager.resolveService(request.serviceInfo, request.listener); in resolveNextRequest()
DDiscoveryListenerMultiplexer.java154 public void onServiceFound(NsdServiceInfo serviceInfo) { in onServiceFound() argument
160 listener.onServiceFound(serviceInfo); in onServiceFound()
166 public void onServiceLost(NsdServiceInfo serviceInfo) { in onServiceLost() argument
172 listener.onServiceLost(serviceInfo); in onServiceLost()
/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()
162 if (!hasCaptureVideoPermission(serviceInfo.packageName)) { in verifyServiceTrusted()
168 + "permission: " + serviceInfo.packageName + "/" + serviceInfo.name); in verifyServiceTrusted()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/mdnsFilter/
DMDNSFilterPlugin.java149 public void onServiceFound(NsdServiceInfo serviceInfo) { in onServiceFound() argument
150 mResolveQueue.resolve(getNDSManager(), serviceInfo, in onServiceFound() local
153 public void onResolveFailed(NsdServiceInfo serviceInfo, int errorCode) { in onServiceFound() argument
154 Log.w(LOG_TAG, "Service found: could not resolve " + serviceInfo + ": " + in onServiceFound()
159 public void onServiceResolved(NsdServiceInfo serviceInfo) { in onServiceFound() argument
160 if (MDNSUtils.isVendorPrinter(serviceInfo, mMDNSNames)) { in onServiceFound()
162 boolean added = mPrinters.add(serviceInfo.getHost().getHostAddress()); in onServiceFound()
174 public void onServiceLost(NsdServiceInfo serviceInfo) { in onServiceLost() argument
175 mResolveQueue.resolve(getNDSManager(), serviceInfo, in onServiceLost() local
178 public void onResolveFailed(NsdServiceInfo serviceInfo, int errorCode) { in onServiceLost() argument
[all …]
/frameworks/base/core/java/android/app/
DWallpaperInfo.java85 ServiceInfo si = service.serviceInfo; in WallpaperInfo()
157 return mService.serviceInfo.packageName; in getPackageName()
165 return mService.serviceInfo.name; in getServiceName()
173 return mService.serviceInfo; in getServiceInfo()
180 return new ComponentName(mService.serviceInfo.packageName, in getComponent()
181 mService.serviceInfo.name); in getComponent()
213 return pm.getDrawable(mService.serviceInfo.packageName, in loadThumbnail()
215 mService.serviceInfo.applicationInfo); in loadThumbnail()
226 packageName = mService.serviceInfo.packageName; in loadAuthor()
227 applicationInfo = mService.serviceInfo.applicationInfo; in loadAuthor()
[all …]
/frameworks/base/core/java/android/net/nsd/
DNsdManager.java270 public void onServiceFound(NsdServiceInfo serviceInfo); in onServiceFound() argument
272 public void onServiceLost(NsdServiceInfo serviceInfo); in onServiceLost() argument
279 public void onRegistrationFailed(NsdServiceInfo serviceInfo, int errorCode); in onRegistrationFailed() argument
281 public void onUnregistrationFailed(NsdServiceInfo serviceInfo, int errorCode); in onUnregistrationFailed() argument
283 public void onServiceRegistered(NsdServiceInfo serviceInfo); in onServiceRegistered() argument
285 public void onServiceUnregistered(NsdServiceInfo serviceInfo); in onServiceUnregistered() argument
291 public void onResolveFailed(NsdServiceInfo serviceInfo, int errorCode); in onResolveFailed() argument
293 public void onServiceResolved(NsdServiceInfo serviceInfo); in onServiceResolved() argument
468 public void registerService(NsdServiceInfo serviceInfo, int protocolType, in registerService() argument
470 if (TextUtils.isEmpty(serviceInfo.getServiceName()) || in registerService()
[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.java290 assertNotNull(info2.serviceInfo); in testResolveDisabledService()
291 assertFalse(info2.serviceInfo.enabled); in testResolveDisabledService()
303 assertNotNull(info.serviceInfo); in testResolveEnabledService()
304 assertTrue(info.serviceInfo.enabled); in testResolveEnabledService()
323 assertNotNull(info.serviceInfo); in testQueryDisabledService()
324 assertFalse(info.serviceInfo.enabled); in testQueryDisabledService()
338 assertNotNull(info.serviceInfo); in testQueryEnabledService()
339 assertTrue(info.serviceInfo.enabled); in testQueryEnabledService()
355 final ServiceInfo serviceInfo = in testGetDisabledServiceInfo() local
358 assertNotNull(serviceInfo); in testGetDisabledServiceInfo()
[all …]
/frameworks/support/v7/mediarouter/src/android/support/v7/media/
DRegisteredMediaRouteProviderWatcher.java98 ServiceInfo serviceInfo = resolveInfo.serviceInfo; in scanPackages() local
99 if (serviceInfo != null) { in scanPackages()
100 int sourceIndex = findProvider(serviceInfo.packageName, serviceInfo.name); in scanPackages()
104 new ComponentName(serviceInfo.packageName, serviceInfo.name)); in scanPackages()
/frameworks/base/core/java/android/content/pm/
DResolveInfo.java54 public ServiceInfo serviceInfo; field in ResolveInfo
178 if (serviceInfo != null) return serviceInfo; in getComponentInfo()
302 } else if (serviceInfo != null) { in dump()
304 serviceInfo.dump(pw, prefix + " ", flags); in dump()
317 serviceInfo = orig.serviceInfo; in ResolveInfo()
368 } else if (serviceInfo != null) { in writeToParcel()
370 serviceInfo.writeToParcel(dest, parcelableFlags); in writeToParcel()
410 serviceInfo = null; in ResolveInfo()
417 serviceInfo = ServiceInfo.CREATOR.createFromParcel(source); in ResolveInfo()
DAppsQueryHelper.java142 ServiceInfo serviceInfo = resolveInfos.get(i).serviceInfo; in queryApps() local
143 if (systemAppsOnly && !serviceInfo.applicationInfo.isSystemApp()) { in queryApps()
146 if (!result.contains(serviceInfo.packageName)) { in queryApps()
147 result.add(serviceInfo.packageName); in queryApps()
/frameworks/base/services/midi/java/com/android/server/midi/
DMidiService.java304 ServiceInfo serviceInfo, int uid) { in Device() argument
306 mServiceInfo = serviceInfo; in Device()
581 ServiceInfo serviceInfo = resolveInfos.get(i).serviceInfo; in onUnlockUser() local
582 if (serviceInfo != null) { in onUnlockUser()
583 addPackageDeviceServer(serviceInfo); in onUnlockUser()
742 ServiceInfo serviceInfo = device.getServiceInfo(); in getServiceDeviceInfo() local
743 if (serviceInfo != null && in getServiceDeviceInfo()
744 packageName.equals(serviceInfo.packageName) && in getServiceDeviceInfo()
745 className.equals(serviceInfo.name)) { in getServiceDeviceInfo()
786 IMidiDeviceServer server, ServiceInfo serviceInfo, in addDeviceLocked() argument
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/
DTileQueryHelper.java149 String packageName = info.serviceInfo.packageName; in doInBackground()
150 ComponentName componentName = new ComponentName(packageName, info.serviceInfo.name); in doInBackground()
151 final CharSequence appLabel = info.serviceInfo.applicationInfo.loadLabel(pm); in doInBackground()
158 if (info.serviceInfo.icon == 0 && info.serviceInfo.applicationInfo.icon == 0) { in doInBackground()
161 Drawable icon = info.serviceInfo.loadIcon(pm); in doInBackground()
162 if (!permission.BIND_QUICK_SETTINGS_TILE.equals(info.serviceInfo.permission)) { in doInBackground()
170 CharSequence label = info.serviceInfo.loadLabel(pm); in doInBackground()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/xerox/
DServiceResolver.java106 private void queueRequest(NsdServiceInfo serviceInfo) { in queueRequest() argument
108 if (mQueue.contains(serviceInfo)) return; in queueRequest()
109 mQueue.add(serviceInfo); in queueRequest()
114 private void removeRequest(NsdServiceInfo serviceInfo) { in removeRequest() argument
116 mQueue.remove(serviceInfo); in removeRequest()
117 if ((mCurrentRequest != null) && serviceInfo.equals(mCurrentRequest)) in removeRequest()
/frameworks/base/core/java/android/printservice/
DPrintServiceInfo.java92 mId = new ComponentName(resolveInfo.serviceInfo.packageName, in PrintServiceInfo()
93 resolveInfo.serviceInfo.name).flattenToString(); in PrintServiceInfo()
106 return new ComponentName(mResolveInfo.serviceInfo.packageName, in getComponentName()
107 mResolveInfo.serviceInfo.name); in getComponentName()
124 parser = resolveInfo.serviceInfo.loadXmlMetaData(packageManager, in create()
139 resolveInfo.serviceInfo.applicationInfo); in create()
161 + resolveInfo.serviceInfo.packageName); in create()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/dream/
DDreamBackend.java100 if (resolveInfo.serviceInfo == null) in getDreamInfos()
232 if (resolveInfo == null || resolveInfo.serviceInfo == null) in getDreamComponentName()
234 return new ComponentName(resolveInfo.serviceInfo.packageName, resolveInfo.serviceInfo.name); in getDreamComponentName()
239 || resolveInfo.serviceInfo == null in getSettingsComponentName()
240 || resolveInfo.serviceInfo.metaData == null) in getSettingsComponentName()
246 parser = resolveInfo.serviceInfo.loadXmlMetaData(pm, DreamService.DREAM_META_DATA); in getSettingsComponentName()
251 Resources res = pm.getResourcesForApplication(resolveInfo.serviceInfo.applicationInfo); in getSettingsComponentName()
271 Log.w(TAG, "Error parsing : " + resolveInfo.serviceInfo.packageName, caughtException); in getSettingsComponentName()
275 cn = resolveInfo.serviceInfo.packageName + "/" + cn; in getSettingsComponentName()
/frameworks/base/core/tests/coretests/src/android/net/
DNetworkScorerAppManagerTest.java177 ResolveInfo serviceInfo = null; in buildResolveInfo() local
179 serviceInfo = new ResolveInfo(); in buildResolveInfo()
180 serviceInfo.serviceInfo = new ServiceInfo(); in buildResolveInfo()
181 serviceInfo.serviceInfo.name = ".ScoringService"; in buildResolveInfo()
184 return new ResolveInfoHolder(resolveInfo, configActivityInfo, serviceInfo); in buildResolveInfo()
/frameworks/base/core/java/android/accessibilityservice/
DAccessibilityServiceInfo.java459 ServiceInfo serviceInfo = resolveInfo.serviceInfo; in AccessibilityServiceInfo() local
460 mId = new ComponentName(serviceInfo.packageName, serviceInfo.name).flattenToShortString(); in AccessibilityServiceInfo()
467 parser = serviceInfo.loadXmlMetaData(packageManager, in AccessibilityServiceInfo()
486 serviceInfo.applicationInfo); in AccessibilityServiceInfo()
543 + serviceInfo.packageName); in AccessibilityServiceInfo()
683 ServiceInfo serviceInfo = mResolveInfo.serviceInfo; in loadDescription() local
684 CharSequence description = packageManager.getText(serviceInfo.packageName, in loadDescription()
685 mDescriptionResId, serviceInfo.applicationInfo); in loadDescription()
695 || mResolveInfo.serviceInfo.directBootAware; in isDirectBootAware()
/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()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/samsung/
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()
/frameworks/base/services/core/java/com/android/server/am/
DServiceRecord.java71 final ServiceInfo serviceInfo; field in ServiceRecord
320 serviceInfo = sInfo; in ServiceRecord()
337 if ((serviceInfo.applicationInfo.flags&ApplicationInfo.FLAG_PERSISTENT) == 0) { in getTracker()
338 tracker = ams.mProcessStats.getServiceStateLocked(serviceInfo.packageName, in getTracker()
339 serviceInfo.applicationInfo.uid, serviceInfo.applicationInfo.versionCode, in getTracker()
340 serviceInfo.processName, serviceInfo.name); in getTracker()
355 if ((serviceInfo.applicationInfo.flags&ApplicationInfo.FLAG_PERSISTENT) == 0) { in makeRestarting()
356 restartTracker = ams.mProcessStats.getServiceStateLocked(serviceInfo.packageName, in makeRestarting()
357 serviceInfo.applicationInfo.uid, serviceInfo.applicationInfo.versionCode, in makeRestarting()
358 serviceInfo.processName, serviceInfo.name); in makeRestarting()
/frameworks/base/core/java/android/view/textservice/
DSpellCheckerInfo.java69 ServiceInfo si = service.serviceInfo; in SpellCheckerInfo()
166 mService.serviceInfo.packageName, mService.serviceInfo.name); in getComponent()
173 return mService.serviceInfo.packageName; in getPackageName()
215 return pm.getText(getPackageName(), mLabel, mService.serviceInfo.applicationInfo); in loadLabel()
233 return mService.serviceInfo; in getServiceInfo()
/frameworks/base/core/java/android/view/inputmethod/
DInputMethodInfo.java131 ServiceInfo si = service.serviceInfo; in InputMethodInfo()
285 final ServiceInfo si = ri.serviceInfo; in InputMethodInfo()
309 ri.serviceInfo = si; in buildDummyResolveInfo()
325 return mService.serviceInfo.packageName; in getPackageName()
333 return mService.serviceInfo.name; in getServiceName()
341 return mService.serviceInfo; in getServiceInfo()
349 return new ComponentName(mService.serviceInfo.packageName, in getComponent()
350 mService.serviceInfo.name); in getComponent()
/frameworks/base/media/java/android/media/tv/
DTvInputInfo.java317 return mService.serviceInfo; in getServiceInfo()
325 return new ComponentName(mService.serviceInfo.packageName, mService.serviceInfo.name); in getComponent()
334 intent.setClassName(mService.serviceInfo.packageName, mSetupActivity); in createSetupIntent()
347 intent.setClassName(mService.serviceInfo.packageName, mSettingsActivity); in createSettingsIntent()
452 return context.getPackageManager().getText(mService.serviceInfo.packageName, in loadLabel()
569 + ", pkg=" + mService.serviceInfo.packageName in toString()
570 + ", service=" + mService.serviceInfo.name + "}"; in toString()
602 if (mService.serviceInfo.icon == 0 in loadServiceIcon()
603 && mService.serviceInfo.applicationInfo.icon == 0) { in loadServiceIcon()
606 return mService.serviceInfo.loadIcon(context.getPackageManager()); in loadServiceIcon()
[all …]

1234