/frameworks/base/services/core/java/com/android/server/media/ |
D | RemoteDisplayProviderWatcher.java | 119 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/core/java/android/app/ |
D | WallpaperInfo.java | 85 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/ |
D | NsdManager.java | 270 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/support/v7/mediarouter/src/android/support/v7/media/ |
D | RegisteredMediaRouteProviderWatcher.java | 98 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/packages/PrintSpooler/src/com/android/printspooler/util/ |
D | PrintOptionUtils.java | 48 ServiceInfo serviceInfo = printServiceInfo.getResolveInfo().serviceInfo; in getAdvancedOptionsActivityName() local 49 if (serviceInfo.name.equals(serviceName.getClassName()) in getAdvancedOptionsActivityName() 50 && serviceInfo.packageName.equals(serviceName.getPackageName())) { in getAdvancedOptionsActivityName()
|
/frameworks/base/core/java/android/content/pm/ |
D | ResolveInfo.java | 54 public ServiceInfo serviceInfo; field in ResolveInfo 148 if (serviceInfo != null) return serviceInfo; in getComponentInfo() 258 } else if (serviceInfo != null) { in dump() 260 serviceInfo.dump(pw, prefix + " "); in dump() 273 serviceInfo = orig.serviceInfo; in ResolveInfo() 321 } else if (serviceInfo != null) { in writeToParcel() 323 serviceInfo.writeToParcel(dest, parcelableFlags); in writeToParcel() 361 serviceInfo = null; in ResolveInfo() 368 serviceInfo = ServiceInfo.CREATOR.createFromParcel(source); in ResolveInfo()
|
D | RegisteredServicesCache.java | 475 final ServiceInfo<V> serviceInfo = serviceInfos.get(i); in containsTypeAndUid() local 476 if (serviceInfo.type.equals(type) && serviceInfo.uid == uid) { in containsTypeAndUid() 486 android.content.pm.ServiceInfo si = service.serviceInfo; in parseServiceInfo() 516 final android.content.pm.ServiceInfo serviceInfo = service.serviceInfo; in parseServiceInfo() local 517 final ApplicationInfo applicationInfo = serviceInfo.applicationInfo; in parseServiceInfo()
|
/frameworks/base/media/java/android/media/tv/ |
D | TvInputInfo.java | 155 new ComponentName(service.serviceInfo.packageName, service.serviceInfo.name)), in createTvInputInfo() 179 new ComponentName(service.serviceInfo.packageName, service.serviceInfo.name), in createTvInputInfo() 204 new ComponentName(service.serviceInfo.packageName, service.serviceInfo.name), in createTvInputInfo() 212 ServiceInfo si = service.serviceInfo; in createTvInputInfo() 317 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() 484 + ", pkg=" + mService.serviceInfo.packageName in toString() 485 + ", service=" + mService.serviceInfo.name + "}"; in toString() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | ComponentTest.java | 289 assertNotNull(info2.serviceInfo); in testResolveDisabledService() 290 assertFalse(info2.serviceInfo.enabled); in testResolveDisabledService() 302 assertNotNull(info.serviceInfo); in testResolveEnabledService() 303 assertTrue(info.serviceInfo.enabled); in testResolveEnabledService() 322 assertNotNull(info.serviceInfo); in testQueryDisabledService() 323 assertFalse(info.serviceInfo.enabled); in testQueryDisabledService() 337 assertNotNull(info.serviceInfo); in testQueryEnabledService() 338 assertTrue(info.serviceInfo.enabled); in testQueryEnabledService() 354 final ServiceInfo serviceInfo = in testGetDisabledServiceInfo() local 357 assertNotNull(serviceInfo); in testGetDisabledServiceInfo() [all …]
|
/frameworks/base/core/java/android/view/textservice/ |
D | SpellCheckerInfo.java | 67 ServiceInfo si = service.serviceInfo; in SpellCheckerInfo() 160 mService.serviceInfo.packageName, mService.serviceInfo.name); in getComponent() 167 return mService.serviceInfo.packageName; in getPackageName() 209 return pm.getText(getPackageName(), mLabel, mService.serviceInfo.applicationInfo); in loadLabel() 227 return mService.serviceInfo; in getServiceInfo()
|
/frameworks/base/core/java/android/accessibilityservice/ |
D | AccessibilityServiceInfo.java | 441 ServiceInfo serviceInfo = resolveInfo.serviceInfo; in AccessibilityServiceInfo() local 442 mId = new ComponentName(serviceInfo.packageName, serviceInfo.name).flattenToShortString(); in AccessibilityServiceInfo() 449 parser = serviceInfo.loadXmlMetaData(packageManager, in AccessibilityServiceInfo() 468 serviceInfo.applicationInfo); in AccessibilityServiceInfo() 517 + serviceInfo.packageName); in AccessibilityServiceInfo() 653 ServiceInfo serviceInfo = mResolveInfo.serviceInfo; in loadDescription() local 654 CharSequence description = packageManager.getText(serviceInfo.packageName, in loadDescription() 655 mDescriptionResId, serviceInfo.applicationInfo); in loadDescription()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ServiceRecord.java | 66 final ServiceInfo serviceInfo; field in ServiceRecord 311 serviceInfo = sInfo; in ServiceRecord() 328 if ((serviceInfo.applicationInfo.flags&ApplicationInfo.FLAG_PERSISTENT) == 0) { in getTracker() 329 tracker = ams.mProcessStats.getServiceStateLocked(serviceInfo.packageName, in getTracker() 330 serviceInfo.applicationInfo.uid, serviceInfo.applicationInfo.versionCode, in getTracker() 331 serviceInfo.processName, serviceInfo.name); in getTracker() 346 if ((serviceInfo.applicationInfo.flags&ApplicationInfo.FLAG_PERSISTENT) == 0) { in makeRestarting() 347 restartTracker = ams.mProcessStats.getServiceStateLocked(serviceInfo.packageName, in makeRestarting() 348 serviceInfo.applicationInfo.uid, serviceInfo.applicationInfo.versionCode, in makeRestarting() 349 serviceInfo.processName, serviceInfo.name); in makeRestarting()
|
/frameworks/base/core/java/android/printservice/ |
D | PrintServiceInfo.java | 88 mId = new ComponentName(resolveInfo.serviceInfo.packageName, in PrintServiceInfo() 89 resolveInfo.serviceInfo.name).flattenToString(); in PrintServiceInfo() 111 parser = resolveInfo.serviceInfo.loadXmlMetaData(packageManager, in create() 126 resolveInfo.serviceInfo.applicationInfo); in create() 148 + resolveInfo.serviceInfo.packageName); in create()
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | InputMethodInfo.java | 132 ServiceInfo si = service.serviceInfo; in InputMethodInfo() 284 final ServiceInfo si = ri.serviceInfo; in InputMethodInfo() 308 ri.serviceInfo = si; in buildDummyResolveInfo() 324 return mService.serviceInfo.packageName; in getPackageName() 332 return mService.serviceInfo.name; in getServiceName() 340 return mService.serviceInfo; in getServiceInfo() 348 return new ComponentName(mService.serviceInfo.packageName, in getComponent() 349 mService.serviceInfo.name); in getComponent()
|
/frameworks/base/docs/html/training/connect-devices-wirelessly/ |
D | nsd.jd | 62 NsdServiceInfo serviceInfo = new NsdServiceInfo(); 66 serviceInfo.setServiceName("NsdChat"); 67 serviceInfo.setServiceType("_http._tcp."); 68 serviceInfo.setPort(port); 142 public void onRegistrationFailed(NsdServiceInfo serviceInfo, int errorCode) { 153 public void onUnregistrationFailed(NsdServiceInfo serviceInfo, int errorCode) { 171 NsdServiceInfo serviceInfo = new NsdServiceInfo(); 172 serviceInfo.setServiceName("NsdChat"); 173 serviceInfo.setServiceType("_http._tcp."); 174 serviceInfo.setPort(port); [all …]
|
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/ |
D | VoiceInteractionManagerService.java | 277 ServiceInfo cur = available.get(i).serviceInfo; in findAvailInteractor() 345 ServiceInfo serviceInfo = available.get(i).serviceInfo; in findAvailRecognizer() local 346 if (prefPackage.equals(serviceInfo.packageName)) { in findAvailRecognizer() 347 return new ComponentName(serviceInfo.packageName, serviceInfo.name); in findAvailRecognizer() 355 ServiceInfo serviceInfo = available.get(0).serviceInfo; in findAvailRecognizer() local 356 return new ComponentName(serviceInfo.packageName, serviceInfo.name); in findAvailRecognizer()
|
/frameworks/base/services/core/java/com/android/server/trust/ |
D | TrustManagerService.java | 403 if (resolveInfo == null || resolveInfo.serviceInfo == null in getSettingsComponentName() 404 || resolveInfo.serviceInfo.metaData == null) return null; in getSettingsComponentName() 409 parser = resolveInfo.serviceInfo.loadXmlMetaData(pm, in getSettingsComponentName() 415 Resources res = pm.getResourcesForApplication(resolveInfo.serviceInfo.applicationInfo); in getSettingsComponentName() 441 Slog.w(TAG, "Error parsing : " + resolveInfo.serviceInfo.packageName, caughtException); in getSettingsComponentName() 448 cn = resolveInfo.serviceInfo.packageName + "/" + cn; in getSettingsComponentName() 454 if (resolveInfo == null || resolveInfo.serviceInfo == null) return null; in getComponentName() 455 return new ComponentName(resolveInfo.serviceInfo.packageName, resolveInfo.serviceInfo.name); in getComponentName() 468 int applicationInfoFlags = resolveInfo.serviceInfo.applicationInfo.flags; in maybeEnableFactoryTrustAgents() 491 if (resolveInfo.serviceInfo == null) continue; in resolveAllowedTrustAgents() [all …]
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
D | EnableAccessibilityController.java | 247 ServiceInfo serviceInfo = service.getResolveInfo().serviceInfo; in enableAccessibility() local 248 ComponentName componentName = new ComponentName(serviceInfo.packageName, serviceInfo.name); in enableAccessibility()
|
/frameworks/base/services/core/java/com/android/server/ |
D | ServiceWatcher.java | 174 String packageName = rInfo.serviceInfo.packageName; in bindBestPackageLocked() 193 if (rInfo.serviceInfo.metaData != null) { in bindBestPackageLocked() 194 version = rInfo.serviceInfo.metaData.getInt( in bindBestPackageLocked() 196 isMultiuser = rInfo.serviceInfo.metaData.getBoolean(EXTRA_SERVICE_IS_MULTIUSER); in bindBestPackageLocked()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | AccessibilityManagerServiceTest.java | 166 ServiceInfo serviceInfo = info.getResolveInfo().serviceInfo; in testGetAccessibilityServicesList() local 167 if (packageName.equals(serviceInfo.packageName)) { in testGetAccessibilityServicesList() 168 if (firstMockServiceClassName.equals(serviceInfo.name)) { in testGetAccessibilityServicesList() 170 } else if (secondMockServiceClassName.equals(serviceInfo.name)) { in testGetAccessibilityServicesList()
|
/frameworks/base/tests/MusicBrowserDemo/src/com/example/android/musicbrowserdemo/ |
D | AppListFragment.java | 104 ri.serviceInfo.applicationInfo.packageName, in Adapter() 105 ri.serviceInfo.name))); in Adapter()
|
/frameworks/base/services/print/java/com/android/server/print/ |
D | UserState.java | 315 installedService.getResolveInfo().serviceInfo.packageName, in getEnabledPrintServices() 316 installedService.getResolveInfo().serviceInfo.name); in getEnabledPrintServices() 591 resolveInfo.serviceInfo.packageName, in dump() 592 resolveInfo.serviceInfo.name); in dump() 651 installedService.serviceInfo.permission)) { in readInstalledPrintServicesLocked() 653 installedService.serviceInfo.packageName, in readInstalledPrintServicesLocked() 654 installedService.serviceInfo.name); in readInstalledPrintServicesLocked() 746 ServiceInfo serviceInfo = mInstalledServices.get(i).getResolveInfo().serviceInfo; in enableSystemPrintServicesLocked() local 748 if ((serviceInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0) { in enableSystemPrintServicesLocked() 750 serviceInfo.packageName, serviceInfo.name); in enableSystemPrintServicesLocked() [all …]
|
D | PrintManagerService.java | 592 ServiceInfo serviceInfo = installedServices.get(i).serviceInfo; in registerBroadcastReceivers() 593 ComponentName component = new ComponentName(serviceInfo.packageName, in registerBroadcastReceivers() 594 serviceInfo.name); in registerBroadcastReceivers() 595 String label = serviceInfo.loadLabel(mContext.getPackageManager()) in registerBroadcastReceivers()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | SmsApplication.java | 228 final ServiceInfo serviceInfo = resolveInfo.serviceInfo; in getApplicationCollectionInternal() local 229 if (serviceInfo == null) { in getApplicationCollectionInternal() 232 if (!permission.SEND_RESPOND_VIA_MESSAGE.equals(serviceInfo.permission)) { in getApplicationCollectionInternal() 235 final String packageName = serviceInfo.packageName; in getApplicationCollectionInternal() 238 smsApplicationData.mRespondViaMessageClass = serviceInfo.name; in getApplicationCollectionInternal()
|
/frameworks/base/core/java/android/service/trust/ |
D | TrustAgentService.java | 154 ServiceInfo serviceInfo = getPackageManager().getServiceInfo(component, 0 /* flags */); in onCreate() local 155 if (!Manifest.permission.BIND_TRUST_AGENT.equals(serviceInfo.permission)) { in onCreate()
|