Home
last modified time | relevance | path

Searched refs:componentName (Results 1 – 25 of 177) 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/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/services/Telecomm/src/com/android/server/telecom/callfiltering/
DCallScreeningServiceFilter.java63 public void onServiceConnected(ComponentName componentName, IBinder service) { in onServiceConnected() argument
67 Log.addEvent(mCall, LogUtils.Events.SCREENING_BOUND, componentName); in onServiceConnected()
78 public void onServiceDisconnected(ComponentName componentName) { in onServiceDisconnected() argument
123 ComponentName componentName) { in disallowCall() argument
128 boolean isServiceRequestingLogging = isLoggable(componentName, in disallowCall()
142 componentName.flattenToString() //callScreeningComponentName in disallowCall()
281 private boolean isLoggable(ComponentName componentName, boolean shouldAddToCallLog) { in isLoggable() argument
282 if (isCarrierCallScreeningApp(componentName)) { in isLoggable()
284 } else if (isDefaultDialer(componentName) || isUserChosenCallScreeningApp(componentName)) { in isLoggable()
291 private boolean isCarrierCallScreeningApp(ComponentName componentName) { in isCarrierCallScreeningApp() argument
[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/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/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/Launcher3/src/com/android/launcher3/
DAllAppsList.java77 if (!mAppFilter.shouldShowApp(info.componentName)) { in add()
80 if (findAppInfo(info.componentName, info.user) != null) { in add()
144 if (info.user.equals(user) && packageName.equals(info.componentName.getPackageName())) { in removePackage()
158 if (matcher.matches(info, info.componentName)) { in updateDisabledFlags()
168 if (info.user.equals(user) && packages.contains(info.componentName.getPackageName())) { in updateIconsAndLabels()
188 && packageName.equals(applicationInfo.componentName.getPackageName())) { in updatePackage()
189 if (!findActivity(matches, applicationInfo.componentName)) { in updatePackage()
213 && packageName.equals(applicationInfo.componentName.getPackageName())) { in updatePackage()
215 mIconCache.remove(applicationInfo.componentName, user); in updatePackage()
241 private @Nullable AppInfo findAppInfo(@NonNull ComponentName componentName, in findAppInfo() argument
[all …]
DAppInfo.java42 public ComponentName componentName; field in AppInfo
61 this.componentName = info.getComponentName(); in AppInfo()
74 componentName = info.componentName; in AppInfo()
81 return super.dumpProperties() + " componentName=" + componentName; in dumpProperties()
89 return new ComponentKey(componentName, user); in toComponentKey()
/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/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/Launcher3/iconloaderlib/src/com/android/launcher3/icons/cache/
DBaseIconCache.java192 public synchronized void remove(ComponentName componentName, UserHandle user) { in remove() argument
193 mCache.remove(new ComponentKey(componentName, user)); in remove()
202 if (key.componentName.getPackageName().equals(packageName) in removeFromMemCacheLocked()
252 ComponentName componentName = cachingLogic.getComponent(object); in addIconToDBAndMemCache() local
254 final ComponentKey key = new ComponentKey(componentName, user); in addIconToDBAndMemCache()
272 componentName.getPackageName()); in addIconToDBAndMemCache()
273 addIconToDB(values, componentName, info, userSerial); in addIconToDBAndMemCache()
305 @NonNull ComponentName componentName, @NonNull UserHandle user, in cacheLocked()
308 return cacheLocked(componentName, user, infoProvider, cachingLogic, usePackageIcon, in cacheLocked()
313 @NonNull ComponentName componentName, @NonNull UserHandle user, in cacheLocked()
[all …]
/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
340 ComponentName componentName = in performUserDefinedCallRedirection() local
342 if (componentName != null) { in performUserDefinedCallRedirection()
343 mAttempt = new CallRedirectionAttempt(componentName, SERVICE_TYPE_USER_DEFINED); in performUserDefinedCallRedirection()
356 ComponentName componentName = in performCarrierCallRedirection() local
359 if (componentName != null) { in performCarrierCallRedirection()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/util/
DPackageManagerHelper.java190 ComponentName componentName = null; in startDetailsActivityForInfo() local
192 componentName = ((AppInfo) info).componentName; in startDetailsActivityForInfo()
194 componentName = info.getTargetComponent(); in startDetailsActivityForInfo()
196 componentName = ((PendingAddItemInfo) info).componentName; in startDetailsActivityForInfo()
198 componentName = ((LauncherAppWidgetInfo) info).providerName; in startDetailsActivityForInfo()
200 if (componentName != null) { in startDetailsActivityForInfo()
203 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/services/Telecomm/tests/src/com/android/server/telecom/tests/
DComponentContextFixture.java533 ComponentName componentName,
536 addService(ConnectionService.SERVICE_INTERFACE, componentName, service);
539 serviceInfo.packageName = componentName.getPackageName();
540 serviceInfo.name = componentName.getClassName();
541 mServiceInfoByComponentName.put(componentName, serviceInfo);
545 ComponentName componentName,
548 addService(InCallService.SERVICE_INTERFACE, componentName, service);
551 serviceInfo.packageName = componentName.getPackageName();
552 serviceInfo.name = componentName.getClassName();
553 mServiceInfoByComponentName.put(componentName, serviceInfo);
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/location/
DLocationFooterPreferenceController.java111 for (ComponentName componentName : mFooterInjectors) { in onStopInternal()
112 sendBroadcast(componentName, LocationManager.SETTINGS_FOOTER_REMOVED_ACTION); in onStopInternal()
171 private void sendBroadcast(ComponentName componentName, String action) { in sendBroadcast() argument
173 intent.setComponent(componentName); in sendBroadcast()
191 ComponentName componentName) { in LocationFooter() argument
194 mComponentName = componentName; in LocationFooter()
/packages/services/Car/service/src/com/android/car/pm/
DActivityBlockingActivity.java209 ComponentName componentName = ComponentName.unflattenFromString(flattenComponentName); in findApplicationIcon() local
211 return getPackageManager().getApplicationIcon(componentName.getPackageName()); in findApplicationIcon()
215 + componentName.toString()); in findApplicationIcon()
228 ComponentName componentName = ComponentName.unflattenFromString(flattenComponentName); in findHumanReadableLabel() local
233 componentName.getPackageName(), 0); in findHumanReadableLabel()
241 + componentName.toString()); in findHumanReadableLabel()
245 label = componentName.getClass().getSimpleName(); in findHumanReadableLabel()
/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()
/packages/apps/OneTimeInitializer/src/com/android/onetimeinitializer/
DOneTimeInitializer.java112 final ComponentName componentName = intent.getComponent(); in updateDialtactsLauncher() local
115 componentName != null && in updateDialtactsLauncher()
116 "com.android.contacts".equals(componentName.getPackageName()) && in updateDialtactsLauncher()
118 componentName.getClassName()) && in updateDialtactsLauncher()
131 Log.i(TAG, "Updated " + componentName + " to " + newName); in updateDialtactsLauncher()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/qstile/
DDevelopmentTilePreferenceController.java100 ComponentName componentName = new ComponentName( in onPreferenceChange() local
102 mPackageManager.setComponentEnabledSetting(componentName, enabled in onPreferenceChange()
110 mStatusBarService.addTile(componentName); in onPreferenceChange()
112 mStatusBarService.remTile(componentName); in onPreferenceChange()
117 componentName.toString(), e); in onPreferenceChange()

12345678