Home
last modified time | relevance | path

Searched refs:componentName (Results 1 – 25 of 188) sorted by relevance

12345678

/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DRegisteredNfcFServicesCache.java188 ComponentName componentName) { in containsServiceLocked() argument
190 if (service.getComponent().equals(componentName)) return true; in containsServiceLocked()
195 public boolean hasService(int userId, ComponentName componentName) { in hasService() argument
196 return getService(userId, componentName) != null; in hasService()
199 public NfcFServiceInfo getService(int userId, ComponentName componentName) { in getService() argument
202 return userServices.services.get(componentName); in getService()
235 ComponentName componentName = new ComponentName(si.packageName, si.name); in getInstalledServices() local
239 Log.e(TAG, "Skipping NfcF service " + componentName + in getInstalledServices()
246 Log.e(TAG, "Skipping NfcF service " + componentName + in getInstalledServices()
328 ComponentName componentName = entry.getKey(); in invalidateCache() local
[all …]
DRegisteredServicesCache.java242 ComponentName componentName = new ComponentName(si.packageName, si.name); in getInstalledServices() local
246 Log.e(TAG, "Skipping application component " + componentName + in getInstalledServices()
253 Log.e(TAG, "Skipping APDU service " + componentName + in getInstalledServices()
454 public boolean setOffHostSecureElement(int userId, int uid, ComponentName componentName, in setOffHostSecureElement() argument
460 ApduServiceInfo serviceInfo = getService(userId, componentName); in setOffHostSecureElement()
462 Log.e(TAG, "Service " + componentName + " does not exist."); in setOffHostSecureElement()
478 DynamicSettings dynSettings = services.dynamicSettings.get(componentName); in setOffHostSecureElement()
498 public boolean unsetOffHostSecureElement(int userId, int uid, ComponentName componentName) { in unsetOffHostSecureElement() argument
503 ApduServiceInfo serviceInfo = getService(userId, componentName); in unsetOffHostSecureElement()
505 Log.e(TAG, "Service " + componentName + " does not exist."); in unsetOffHostSecureElement()
[all …]
/packages/apps/Car/Launcher/src/com/android/car/carlauncher/
DAppLauncherUtils.java113 boolean isMediaService(ComponentName componentName) { in isMediaService() argument
114 return mMediaServices.containsKey(componentName); in isMediaService()
119 AppMetaData getAppMetaData(ComponentName componentName) { in getAppMetaData() argument
120 return mLaunchables.get(componentName); in getAppMetaData()
201 ComponentName componentName = new ComponentName(packageName, className); in getLauncherApps() local
202 mediaServicesMap.put(componentName, info); in getLauncherApps()
203 if (shouldAddToLaunchables(componentName, blackList, customMediaComponents, in getLauncherApps()
208 intent.putExtra(Car.CAR_EXTRA_MEDIA_COMPONENT, componentName.flattenToString()); in getLauncherApps()
212 componentName, in getLauncherApps()
219 selectMediaSourceAndFinish(context, componentName); in getLauncherApps()
[all …]
/packages/apps/Settings/src/com/android/settings/security/trustagent/
DTrustAgentsPreferenceController.java104 final ComponentName componentName = agent.getComponentName(); in updateAgents() local
106 mScreen.findPreference(componentName.flattenToString()); in updateAgents()
110 preference.setKey(componentName.flattenToString()); in updateAgents()
115 preference.setChecked(mActiveAgents.contains(componentName)); in updateAgents()
117 componentName) == null) { in updateAgents()
149 final ComponentName componentName = mTrustAgentManager.getComponentName(resolveInfo); in findAvailableTrustAgents() local
152 final TrustAgentInfo agentInfo = new TrustAgentInfo(label, componentName, icon); in findAvailableTrustAgents()
153 mAvailableAgents.put(componentName, agentInfo); in findAvailableTrustAgents()
165 final ComponentName componentName = new ComponentName(names[0], names[1]); in removeUselessExistingPreferences() local
166 if (!mAvailableAgents.containsKey(componentName)) { in removeUselessExistingPreferences()
[all …]
/packages/apps/Launcher3/iconloaderlib/src/com/android/launcher3/util/
DComponentKey.java26 public final ComponentName componentName; field in ComponentKey
31 public ComponentKey(ComponentName componentName, UserHandle user) { in ComponentKey() argument
32 if (componentName == null || user == null) { in ComponentKey()
35 this.componentName = componentName; in ComponentKey()
37 mHashCode = Arrays.hashCode(new Object[] {componentName, user}); in ComponentKey()
49 return other.componentName.equals(componentName) && other.user.equals(user); in equals()
57 return componentName.flattenToString() + "#" + user; in toString()
/packages/apps/QuickSearchBox/benchmarks/src/com/android/quicksearchbox/benchmarks/
DSourceLatency.java59 private SearchableInfo getSearchable(ComponentName componentName) { in getSearchable() argument
60 SearchableInfo searchable = mSearchManager.getSearchableInfo(componentName); in getSearchable()
63 + componentName.flattenToShortString()); in getSearchable()
89 public void checkSourceConcurrent(final String src, final ComponentName componentName, in checkSourceConcurrent() argument
92 final SearchableInfo searchable = getSearchable(componentName); in checkSourceConcurrent()
122 public void checkSource(String src, ComponentName componentName, String[] queries) { in checkSource() argument
126 long t = checkSource(src, componentName, queries[i]); in checkSource()
133 public long checkSource(String src, ComponentName componentName, String query) { in checkSource() argument
134 SearchableInfo searchable = getSearchable(componentName); in checkSource()
214 public void checkLiveSource(String src, ComponentName componentName, String query) { in checkLiveSource() argument
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accessibility/
DAccessibilityDetailsSettingsFragment.java65 final ComponentName componentName = ComponentName.unflattenFromString(extraComponentName); in onCreate() local
66 final AccessibilityServiceInfo info = getAccessibilityServiceInfo(componentName); in onCreate()
74 if (!isServiceAllowed(componentName.getPackageName())) { in onCreate()
112 private AccessibilityServiceInfo getAccessibilityServiceInfo(ComponentName componentName) { in getAccessibilityServiceInfo() argument
113 if (componentName == null) { in getAccessibilityServiceInfo()
123 if (componentName.getPackageName().equals(resolveInfo.serviceInfo.packageName) in getAccessibilityServiceInfo()
124 && componentName.getClassName().equals(resolveInfo.serviceInfo.name)) { in getAccessibilityServiceInfo()
136 final ComponentName componentName = new ComponentName(packageName, serviceInfo.name); in buildArguments() local
143 final boolean serviceEnabled = enabledServices.contains(componentName); in buildArguments()
157 componentName.flattenToString()); in buildArguments()
[all …]
DShortcutServicePickerFragment.java84 for (ComponentName componentName : frameworkFeatureInfoMap.keySet()) { in getCandidates()
86 if (componentName.equals(COLOR_INVERSION_COMPONENT_NAME)) { in getCandidates()
88 } else if (componentName.equals(DALTONIZER_COMPONENT_NAME)) { in getCandidates()
93 candidates.add(new FrameworkCandidateInfo(frameworkFeatureInfoMap.get(componentName), in getCandidates()
94 iconId, componentName.flattenToString())); in getCandidates()
241 final ComponentName componentName = mServiceInfo.getComponentName(); in loadLabel() local
242 if (componentName != null) { in loadLabel()
245 componentName.getPackageName(), 0, UserHandle.myUserId()); in loadLabel()
/packages/apps/Settings/src/com/android/settings/accessibility/
DAccessibilityDetailsSettingsFragment.java65 final ComponentName componentName = ComponentName.unflattenFromString(extraComponentName); in onCreate() local
66 final AccessibilityServiceInfo info = getAccessibilityServiceInfo(componentName); in onCreate()
74 if (!isServiceAllowed(componentName.getPackageName())) { in onCreate()
112 private AccessibilityServiceInfo getAccessibilityServiceInfo(ComponentName componentName) { in getAccessibilityServiceInfo() argument
113 if (componentName == null) { in getAccessibilityServiceInfo()
123 if (componentName.getPackageName().equals(resolveInfo.serviceInfo.packageName) in getAccessibilityServiceInfo()
124 && componentName.getClassName().equals(resolveInfo.serviceInfo.name)) { in getAccessibilityServiceInfo()
136 final ComponentName componentName = new ComponentName(packageName, serviceInfo.name); in buildArguments() local
143 final boolean serviceEnabled = enabledServices.contains(componentName); in buildArguments()
157 componentName.flattenToString()); in buildArguments()
[all …]
DShortcutServicePickerFragment.java82 for (ComponentName componentName : frameworkFeatureInfoMap.keySet()) { in getCandidates()
84 if (componentName.equals(COLOR_INVERSION_COMPONENT_NAME)) { in getCandidates()
86 } else if (componentName.equals(DALTONIZER_COMPONENT_NAME)) { in getCandidates()
91 candidates.add(new FrameworkCandidateInfo(frameworkFeatureInfoMap.get(componentName), in getCandidates()
92 iconId, componentName.flattenToString())); in getCandidates()
241 final ComponentName componentName = mServiceInfo.getComponentName(); in loadLabel() local
242 if (componentName != null) { in loadLabel()
245 componentName.getPackageName(), 0, UserHandle.myUserId()); in loadLabel()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/location/
DLocationFooterPreferenceController.java99 sendBroadcastFooterDisplayed(data.componentName); in updateState()
100 mFooterInjectors.add(data.componentName); in updateState()
126 for (ComponentName componentName : mFooterInjectors) { in onPause()
128 intent.setComponent(componentName); in onPause()
138 void sendBroadcastFooterDisplayed(ComponentName componentName) { in sendBroadcastFooterDisplayed() argument
140 intent.setComponent(componentName); in sendBroadcastFooterDisplayed()
212 final ComponentName componentName; field in LocationFooterPreferenceController.FooterData
214 FooterData(int footerRes, ApplicationInfo appInfo, ComponentName componentName) { in FooterData() argument
217 this.componentName = componentName; in FooterData()
/packages/apps/Settings/src/com/android/settings/location/
DLocationFooterPreferenceController.java99 sendBroadcastFooterDisplayed(data.componentName); in updateState()
100 mFooterInjectors.add(data.componentName); in updateState()
126 for (ComponentName componentName : mFooterInjectors) { in onPause()
128 intent.setComponent(componentName); in onPause()
138 void sendBroadcastFooterDisplayed(ComponentName componentName) { in sendBroadcastFooterDisplayed() argument
140 intent.setComponent(componentName); in sendBroadcastFooterDisplayed()
212 final ComponentName componentName; field in LocationFooterPreferenceController.FooterData
214 FooterData(int footerRes, ApplicationInfo appInfo, ComponentName componentName) { in FooterData() argument
217 this.componentName = componentName; in FooterData()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DAllAppsList.java100 if (!mAppFilter.shouldShowApp(info.componentName)) { in add()
103 if (findAppInfo(info.componentName, info.user) != null) { in add()
183 if (info.user.equals(user) && packageName.equals(info.componentName.getPackageName())) { in removePackage()
196 if (matcher.matches(info, info.componentName)) { in updateDisabledFlags()
205 if (info.user.equals(user) && packages.contains(info.componentName.getPackageName())) { in updateIconsAndLabels()
226 && packageName.equals(applicationInfo.componentName.getPackageName())) { in updatePackage()
227 if (!findActivity(matches, applicationInfo.componentName)) { in updatePackage()
252 && packageName.equals(applicationInfo.componentName.getPackageName())) { in updatePackage()
253 mIconCache.remove(applicationInfo.componentName, user); in updatePackage()
278 private @Nullable AppInfo findAppInfo(@NonNull ComponentName componentName, in findAppInfo() argument
[all …]
/packages/services/Car/service/src/com/android/car/
DCarMediaService.java297 public synchronized void setMediaSource(@NonNull ComponentName componentName) { in setMediaSource() argument
300 Log.d(CarLog.TAG_MEDIA, "Changing media source to: " + componentName.getPackageName()); in setMediaSource()
302 setPrimaryMediaSource(componentName); in setMediaSource()
523 private synchronized void setPrimaryMediaSource(@Nullable ComponentName componentName) { in setPrimaryMediaSource() argument
524 if (mPrimaryMediaComponent != null && mPrimaryMediaComponent.equals((componentName))) { in setPrimaryMediaSource()
532 mPrimaryMediaComponent = componentName; in setPrimaryMediaSource()
625 private boolean isMediaService(@NonNull ComponentName componentName) { in isMediaService() argument
626 return getMediaService(componentName) != null; in isMediaService()
632 private ComponentName getMediaService(@NonNull ComponentName componentName) { in getMediaService() argument
633 String packageName = componentName.getPackageName(); in getMediaService()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DAppInfo.java42 return uc != 0 ? uc : a.componentName.compareTo(b.componentName);
50 public ComponentName componentName; field in AppInfo
72 this.componentName = info.getComponentName(); in AppInfo()
85 componentName = info.componentName; in AppInfo()
94 return super.dumpProperties() + " componentName=" + componentName; in dumpProperties()
102 return new ComponentKey(componentName, user); in toComponentKey()
/packages/services/Telecomm/src/com/android/server/telecom/callredirection/
DCallRedirectionProcessor.java72 private CallRedirectionAttempt(ComponentName componentName, String serviceType) { in CallRedirectionAttempt() argument
73 mComponentName = componentName; in CallRedirectionAttempt()
129 public void onServiceConnected(ComponentName componentName, IBinder service) { in onServiceConnected() argument
135 : LogUtils.Events.REDIRECTION_BOUND_CARRIER, componentName); in onServiceConnected()
144 public void onServiceDisconnected(ComponentName componentName) { in onServiceDisconnected() argument
347 ComponentName componentName = in performUserDefinedCallRedirection() local
349 if (componentName != null) { in performUserDefinedCallRedirection()
350 mAttempt = new CallRedirectionAttempt(componentName, SERVICE_TYPE_USER_DEFINED); in performUserDefinedCallRedirection()
363 ComponentName componentName = in performCarrierCallRedirection() local
366 if (componentName != null) { in performCarrierCallRedirection()
[all …]
/packages/apps/Launcher3/iconloaderlib/src/com/android/launcher3/icons/cache/
DBaseIconCache.java195 public synchronized void remove(ComponentName componentName, UserHandle user) { in remove() argument
196 mCache.remove(new ComponentKey(componentName, user)); in remove()
205 if (key.componentName.getPackageName().equals(packageName) in removeFromMemCacheLocked()
255 ComponentName componentName = cachingLogic.getComponent(object); in addIconToDBAndMemCache() local
257 final ComponentKey key = new ComponentKey(componentName, user); in addIconToDBAndMemCache()
279 componentName.getPackageName(), cachingLogic.getKeywords(object, mLocaleList)); in addIconToDBAndMemCache()
280 addIconToDB(values, componentName, info, userSerial); in addIconToDBAndMemCache()
312 @NonNull ComponentName componentName, @NonNull UserHandle user, in cacheLocked()
316 ComponentKey cacheKey = new ComponentKey(componentName, user); in cacheLocked()
337 componentName.getPackageName(), user, false); in cacheLocked()
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DComponentContextFixture.java554 ComponentName componentName,
557 addService(ConnectionService.SERVICE_INTERFACE, componentName, service);
560 serviceInfo.packageName = componentName.getPackageName();
561 serviceInfo.name = componentName.getClassName();
562 mServiceInfoByComponentName.put(componentName, serviceInfo);
566 ComponentName componentName,
570 addService(InCallService.SERVICE_INTERFACE, componentName, service);
573 serviceInfo.packageName = componentName.getPackageName();
578 serviceInfo.name = componentName.getClassName();
579 mServiceInfoByComponentName.put(componentName, serviceInfo);
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/util/
DPackageManagerHelper.java193 ComponentName componentName = null; in startDetailsActivityForInfo() local
195 componentName = ((AppInfo) info).componentName; in startDetailsActivityForInfo()
197 componentName = info.getTargetComponent(); in startDetailsActivityForInfo()
199 componentName = ((PendingAddItemInfo) info).componentName; in startDetailsActivityForInfo()
201 componentName = ((LauncherAppWidgetInfo) info).providerName; in startDetailsActivityForInfo()
203 if (componentName != null) { in startDetailsActivityForInfo()
206 componentName, info.user, sourceBounds, opts); in startDetailsActivityForInfo()
/packages/services/Telecomm/src/com/android/server/telecom/
DServiceBinder.java145 public void onServiceConnected(ComponentName componentName, IBinder binder) { in onServiceConnected() argument
149 Log.i(this, "Service bound %s", componentName); in onServiceConnected()
151 Log.addEvent(mCall, LogUtils.Events.CS_BOUND, componentName); in onServiceConnected()
163 mServiceDeathRecipient = new ServiceDeathRecipient(componentName); in onServiceConnected()
183 public void onServiceDisconnected(ComponentName componentName) { in onServiceDisconnected() argument
255 protected ServiceBinder(String serviceAction, ComponentName componentName, Context context, in ServiceBinder() argument
258 Preconditions.checkNotNull(componentName); in ServiceBinder()
263 mComponentName = componentName; in ServiceBinder()
DConnectionServiceRepository.java64 public ConnectionServiceWrapper getService(ComponentName componentName, UserHandle userHandle) { in getService() argument
65 Pair<ComponentName, UserHandle> cacheKey = Pair.create(componentName, userHandle); in getService()
69 componentName, in getService()
91 ComponentName componentName = cacheKey.first; in dump() local
92 pw.println(componentName); in dump()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/source/
DMediaSource.java66 @NonNull ComponentName componentName) { in create() argument
67 ServiceInfo serviceInfo = getBrowseServiceInfo(context, componentName); in create()
72 "No MediaBrowserService found in component " + componentName.flattenToString()); in create()
77 String packageName = componentName.getPackageName(); in create()
83 Log.w(TAG, "Component not found " + componentName.flattenToString()); in create()
103 @NonNull ComponentName componentName) { in getBrowseServiceInfo() argument
107 intent.setPackage(componentName.getPackageName()); in getBrowseServiceInfo()
113 String className = componentName.getClassName(); in getBrowseServiceInfo()
/packages/services/Car/car-lib/src/android/car/media/
DCarMediaManager.java58 void onMediaSourceChanged(ComponentName componentName); in onMediaSourceChanged() argument
81 public synchronized void setMediaSource(ComponentName componentName) { in setMediaSource() argument
83 mService.setMediaSource(componentName); in setMediaSource()
99 public void onMediaSourceChanged(ComponentName componentName) { in registerMediaSourceListener()
100 callback.onMediaSourceChanged(componentName); in registerMediaSourceListener()
/packages/apps/Car/Settings/src/com/android/car/settings/location/
DLocationFooterPreferenceController.java112 for (ComponentName componentName : mFooterInjectors) { in onStopInternal()
113 sendBroadcast(componentName, LocationManager.SETTINGS_FOOTER_REMOVED_ACTION); in onStopInternal()
172 private void sendBroadcast(ComponentName componentName, String action) { in sendBroadcast() argument
174 intent.setComponent(componentName); in sendBroadcast()
192 ComponentName componentName) { in LocationFooter() argument
195 mComponentName = componentName; in LocationFooter()
/packages/apps/Dialer/java/com/android/dialer/databasepopulator/
DVoicemailPopulator.java40 private static String componentName = ""; field in VoicemailPopulator
50 .setPhoneAccountComponentName(componentName)
58 .setPhoneAccountComponentName(componentName)
65 .setPhoneAccountComponentName(componentName)
72 .setPhoneAccountComponentName(componentName)
118 componentName = handle.getComponentName().toString(); in enableVoicemail()

12345678