Home
last modified time | relevance | path

Searched refs:serviceComponent (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/speech/
DSpeechRecognitionManagerServiceImpl.java83 protected ServiceInfo newServiceInfoLocked(@NonNull ComponentName serviceComponent) in newServiceInfoLocked() argument
86 return AppGlobals.getPackageManager().getServiceInfo(serviceComponent, in newServiceInfoLocked()
90 "Could not get service for " + serviceComponent); in newServiceInfoLocked()
111 ComponentName serviceComponent = componentName; in createSessionLocked() local
113 serviceComponent = getOnDeviceComponentNameLocked(); in createSessionLocked()
122 if (serviceComponent == null) { in createSessionLocked()
131 RemoteSpeechRecognitionService service = createService(creatorCallingUid, serviceComponent); in createSessionLocked()
273 int callingUid, ComponentName serviceComponent) { in createService() argument
300 service.getServiceComponentName().equals(serviceComponent)) in createService()
304 Slog.i(TAG, "Reused existing connection to " + serviceComponent); in createService()
[all …]
/frameworks/base/core/java/android/service/remotelockscreenvalidation/
DRemoteLockscreenValidationClient.java39 @NonNull ComponentName serviceComponent) { in create() argument
43 serviceComponent); in create()
55 @Nullable Executor bgExecutor, @NonNull ComponentName serviceComponent) { in create() argument
56 return new RemoteLockscreenValidationClientImpl(context, bgExecutor, serviceComponent); in create()
DRemoteLockscreenValidationClientImpl.java67 @NonNull ComponentName serviceComponent) { in RemoteLockscreenValidationClientImpl() argument
69 mIsServiceAvailable = isServiceAvailable(mContext, serviceComponent); in RemoteLockscreenValidationClientImpl()
159 @NonNull ComponentName serviceComponent) { in isServiceAvailable() argument
160 mServiceInfo = getServiceInfo(context, serviceComponent); in isServiceAvailable()
176 @NonNull Context context, @NonNull ComponentName serviceComponent) { in getServiceInfo() argument
178 return context.getPackageManager().getServiceInfo(serviceComponent, in getServiceInfo()
182 serviceComponent.getClassName())); in getServiceInfo()
/frameworks/base/services/systemcaptions/java/com/android/server/systemcaptions/
DSystemCaptionsManagerPerUserService.java52 @SuppressWarnings("unused") @NonNull ComponentName serviceComponent) in newServiceInfoLocked()
55 return AppGlobals.getPackageManager().getServiceInfo(serviceComponent, in newServiceInfoLocked()
59 "Could not get service for " + serviceComponent); in newServiceInfoLocked()
99 ComponentName serviceComponent = ComponentName.unflattenFromString(serviceName); in getRemoteServiceLocked() local
102 serviceComponent, in getRemoteServiceLocked()
/frameworks/base/services/core/java/com/android/server/infra/
DAbstractPerUserSystemService.java101 @SuppressWarnings("unused") @NonNull ComponentName serviceComponent) in newServiceInfoLocked()
208 ComponentName serviceComponent = null; in getServiceComponent() local
211 serviceComponent = ComponentName.unflattenFromString(componentName); in getServiceComponent()
212 serviceInfo = AppGlobals.getPackageManager().getServiceInfo(serviceComponent, in getServiceComponent()
224 mServiceInfo = newServiceInfoLocked(serviceComponent); in getServiceComponent()
227 + serviceComponent + " and info as " + mServiceInfo); in getServiceComponent()
239 return serviceComponent; in getServiceComponent()
338 final ComponentName serviceComponent = getServiceComponentName(); in getServicePackageName() local
339 return serviceComponent == null ? null : serviceComponent.getPackageName(); in getServicePackageName()
/frameworks/base/services/credentials/java/com/android/server/credentials/
DCredentialManagerServiceImpl.java76 protected ServiceInfo newServiceInfoLocked(@NonNull ComponentName serviceComponent) in newServiceInfoLocked() argument
81 + serviceComponent.flattenToString()); in newServiceInfoLocked()
84 + serviceComponent.flattenToString()); in newServiceInfoLocked()
89 getContext(), serviceComponent, in newServiceInfoLocked()
91 primaryProviders.contains(serviceComponent)); in newServiceInfoLocked()
/frameworks/base/services/wallpapereffectsgeneration/java/com/android/server/wallpapereffectsgeneration/
DWallpaperEffectsGenerationPerUserService.java61 protected ServiceInfo newServiceInfoLocked(@NonNull ComponentName serviceComponent) in newServiceInfoLocked() argument
65 si = AppGlobals.getPackageManager().getServiceInfo(serviceComponent, in newServiceInfoLocked()
68 throw new NameNotFoundException("Could not get service for " + serviceComponent); in newServiceInfoLocked()
244 final ComponentName serviceComponent = updateServiceInfoLocked(); in ensureRemoteServiceLocked() local
245 if (serviceComponent == null) { in ensureRemoteServiceLocked()
253 serviceComponent, mUserId, this, in ensureRemoteServiceLocked()
/frameworks/base/services/contentsuggestions/java/com/android/server/contentsuggestions/
DContentSuggestionsPerUserService.java66 protected ServiceInfo newServiceInfoLocked(@NonNull ComponentName serviceComponent) in newServiceInfoLocked() argument
70 si = AppGlobals.getPackageManager().getServiceInfo(serviceComponent, in newServiceInfoLocked()
74 "Could not get service for " + serviceComponent); in newServiceInfoLocked()
158 ComponentName serviceComponent = ComponentName.unflattenFromString(serviceName); in ensureRemoteServiceLocked() local
161 serviceComponent, mUserId, in ensureRemoteServiceLocked()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/domain/resume/
DMediaBrowserFactory.java45 public MediaBrowser create(ComponentName serviceComponent, in create() argument
47 return new MediaBrowser(mContext, serviceComponent, callback, rootHints); in create()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DBatteryUtils.java71 final ComponentName serviceComponent = ComponentName.unflattenFromString( in getA11yPackageNames() local
73 if (serviceComponent != null) { in getA11yPackageNames()
74 packageNames.add(serviceComponent.getPackageName()); in getA11yPackageNames()
/frameworks/base/telephony/java/android/telephony/mbms/
DMbmsUtils.java81 String serviceComponent = appInfo.metaData.getString(metaDataKey); in getOverrideServiceName() local
82 if (serviceComponent == null) { in getOverrideServiceName()
85 return ComponentName.unflattenFromString(serviceComponent); in getOverrideServiceName()
/frameworks/base/services/autofill/java/com/android/server/autofill/
DRemoteFieldClassificationService.java99 final ComponentName serviceComponent; in getComponentName() local
102 serviceComponent = ComponentName.unflattenFromString(serviceName); in getComponentName()
103 serviceInfo = AppGlobals.getPackageManager().getServiceInfo(serviceComponent, flags, in getComponentName()
113 return new Pair<>(serviceInfo, serviceComponent); in getComponentName()
/frameworks/base/services/smartspace/java/com/android/server/smartspace/
DSmartspacePerUserService.java69 protected ServiceInfo newServiceInfoLocked(@NonNull ComponentName serviceComponent) in newServiceInfoLocked() argument
74 si = AppGlobals.getPackageManager().getServiceInfo(serviceComponent, in newServiceInfoLocked()
77 throw new NameNotFoundException("Could not get service for " + serviceComponent); in newServiceInfoLocked()
316 ComponentName serviceComponent = ComponentName.unflattenFromString(serviceName); in getRemoteServiceLocked() local
319 SmartspaceService.SERVICE_INTERFACE, serviceComponent, mUserId, this, in getRemoteServiceLocked()
/frameworks/base/core/tests/coretests/src/com/android/internal/accessibility/
DTestUtils.java57 String packageLabel, String serviceComponent, in createFakeServiceInfo() argument
70 .thenReturn(ComponentName.unflattenFromString(serviceComponent)); in createFakeServiceInfo()
/frameworks/base/services/texttospeech/java/com/android/server/texttospeech/
DTextToSpeechManagerPerUserService.java71 @SuppressWarnings("unused") @NonNull ComponentName serviceComponent) in newServiceInfoLocked()
74 return AppGlobals.getPackageManager().getServiceInfo(serviceComponent, in newServiceInfoLocked()
78 "Could not get service for " + serviceComponent); in newServiceInfoLocked()
/frameworks/base/services/translation/java/com/android/server/translation/
DTranslationManagerServiceImpl.java124 protected ServiceInfo newServiceInfoLocked(@NonNull ComponentName serviceComponent) in newServiceInfoLocked() argument
127 serviceComponent, isTemporaryServiceSetLocked(), mUserId); in newServiceInfoLocked()
163 final ComponentName serviceComponent = ComponentName.unflattenFromString(serviceName); in ensureRemoteServiceLocked() local
167 isServiceAvailableForUser = isServiceAvailableForUser(serviceComponent); in ensureRemoteServiceLocked()
176 Slog.w(TAG, "ensureRemoteServiceLocked(): " + serviceComponent in ensureRemoteServiceLocked()
180 mRemoteTranslationService = new RemoteTranslationService(getContext(), serviceComponent, in ensureRemoteServiceLocked()
186 private boolean isServiceAvailableForUser(ComponentName serviceComponent) { in isServiceAvailableForUser() argument
188 .setComponent(serviceComponent); in isServiceAvailableForUser()
/frameworks/base/services/searchui/java/com/android/server/searchui/
DSearchUiPerUserService.java73 protected ServiceInfo newServiceInfoLocked(@NonNull ComponentName serviceComponent) in newServiceInfoLocked() argument
78 si = AppGlobals.getPackageManager().getServiceInfo(serviceComponent, in newServiceInfoLocked()
81 throw new NameNotFoundException("Could not get service for " + serviceComponent); in newServiceInfoLocked()
322 ComponentName serviceComponent = ComponentName.unflattenFromString(serviceName); in getRemoteServiceLocked() local
325 SearchUiService.SERVICE_INTERFACE, serviceComponent, mUserId, this, in getRemoteServiceLocked()
/frameworks/base/core/java/com/android/internal/statusbar/
DAppClipsServiceConnector.java84 final ComponentName serviceComponent = ComponentName.unflattenFromString( in connectToServiceAndProcessRequest() local
88 serviceIntent.setComponent(serviceComponent); in connectToServiceAndProcessRequest()
/frameworks/base/services/core/java/com/android/server/rotationresolver/
DRotationResolverManagerPerUserService.java189 protected ServiceInfo newServiceInfoLocked(@NonNull ComponentName serviceComponent) in newServiceInfoLocked() argument
193 serviceInfo = AppGlobals.getPackageManager().getServiceInfo(serviceComponent, in newServiceInfoLocked()
207 "Could not get service for " + serviceComponent); in newServiceInfoLocked()
/frameworks/base/services/musicrecognition/java/com/android/server/musicrecognition/
DMusicRecognitionManagerService.java173 final ComponentName serviceComponent = ComponentName.unflattenFromString(serviceName); in isCalledByServiceAppLocked() local
174 if (serviceComponent == null) { in isCalledByServiceAppLocked()
179 final String servicePackageName = serviceComponent.getPackageName(); in isCalledByServiceAppLocked()
DMusicRecognitionManagerPerUserService.java102 protected ServiceInfo newServiceInfoLocked(@NonNull ComponentName serviceComponent) in newServiceInfoLocked() argument
106 si = AppGlobals.getPackageManager().getServiceInfo(serviceComponent, in newServiceInfoLocked()
110 "Could not get service for " + serviceComponent); in newServiceInfoLocked()
135 ComponentName serviceComponent = ComponentName.unflattenFromString(serviceName); in ensureRemoteServiceLocked() local
138 serviceComponent, mUserId, this, in ensureRemoteServiceLocked()
/frameworks/base/services/core/java/com/android/server/ambientcontext/
DAmbientContextManagerPerUserService.java265 protected ServiceInfo newServiceInfoLocked(@NonNull ComponentName serviceComponent) in newServiceInfoLocked() argument
268 + serviceComponent.getClassName()); in newServiceInfoLocked()
271 || !serviceComponent.getClassName().equals(getComponentName().getClassName())) { in newServiceInfoLocked()
278 serviceInfo = AppGlobals.getPackageManager().getServiceInfo(serviceComponent, in newServiceInfoLocked()
293 "Could not get service for " + serviceComponent); in newServiceInfoLocked()
/frameworks/base/core/java/android/speech/
DSpeechRecognizerImpl.java127 final ComponentName serviceComponent) { in SpeechRecognizerImpl() argument
128 this(context, serviceComponent, false); in SpeechRecognizerImpl()
141 final ComponentName serviceComponent, in SpeechRecognizerImpl() argument
144 mServiceComponent = serviceComponent; in SpeechRecognizerImpl()
534 String serviceComponent = Settings.Secure.getString(mContext.getContentResolver(), in getSpeechRecognizerComponentName() local
537 if (TextUtils.isEmpty(serviceComponent)) { in getSpeechRecognizerComponentName()
543 return ComponentName.unflattenFromString(serviceComponent); in getSpeechRecognizerComponentName()
/frameworks/base/services/appprediction/java/com/android/server/appprediction/
DAppPredictionPerUserService.java84 protected ServiceInfo newServiceInfoLocked(@NonNull ComponentName serviceComponent) in newServiceInfoLocked() argument
89 si = AppGlobals.getPackageManager().getServiceInfo(serviceComponent, in newServiceInfoLocked()
92 throw new NameNotFoundException("Could not get service for " + serviceComponent); in newServiceInfoLocked()
390 ComponentName serviceComponent = ComponentName.unflattenFromString(serviceName); in getRemoteServiceLocked() local
393 AppPredictionService.SERVICE_INTERFACE, serviceComponent, mUserId, this, in getRemoteServiceLocked()
/frameworks/base/tests/testables/src/android/testing/
DTestableContext.java317 ComponentName serviceComponent = resolveMockServiceComponent(service); in checkMocks()
318 if (serviceComponent == null) return false; in checkMocks()
320 IBinder serviceImpl = mMockServices.get(serviceComponent); in checkMocks()
324 mActiveServices.put(conn, serviceComponent); in checkMocks()
325 conn.onServiceConnected(serviceComponent, serviceImpl); in checkMocks()

12