Code examples for ComponentName

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
89:	expected.flattenToString(), componentName.flattenToString()) 
90:	.isEqualTo(expected); 
-
95:	return hasComponent(new ComponentName(context, cls.getName())); 
Full Snippet Info
8
CodeRank
114:	assertEquals(shadowAppWidgetManager.bindAppWidgetIdIfAllowed(12345, new ComponentName("", "")), true); 
Full Snippet Info
7
CodeRank
18:	ComponentName comp = new ComponentName(context.getPackageName(), PingService.class.getName()); 
19:	ComponentName service = context.startService(new Intent().setComponent(comp)); 
-
22:	Log.e(TAG, "Could not start service " + comp.toString()); 
Full Snippet Info
7
CodeRank
212:	ComponentName name = new ComponentName(packageName, "LauncherActivity"); 
213:	rpm.addPreferredActivity(filter, 0, null, name); 
Full Snippet Info
7
CodeRank
187:	ComponentName name = new ComponentName(packageName, "LauncherActivity"); 
188:	rpm.addPreferredActivity(filter, 0, null, name); 
Full Snippet Info
7
CodeRank
250:	final ComponentName cn = new ComponentName(info.packageName, info.name); 
-
258:	.setListenerInfo(cn, info.loadLabel(mPM).toString()) 
Full Snippet Info
7
CodeRank
53:	intent.setComponent(new ComponentName(this, info.name)); 
Full Snippet Info
7
CodeRank
61:	ComponentName name=new ComponentName(activity.applicationInfo.packageName, 
Full Snippet Info
7
CodeRank
38:	if (!topActivity.getPackageName().equals(context.getPackageName())) { 
Full Snippet Info
7
CodeRank
24:	context.getPackageManager().setComponentEnabledSetting(new ComponentName("fm.last.android", "fm.last.android.activity.Player"), PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP); 
Full Snippet Info
7
CodeRank
26:	ComponentName comp = new ComponentName(context.getPackageName(), YammerService.class.getName()); 
27:	ComponentName service = context.startService(new Intent().setComponent(comp)); 
-
31:	Log.e(getClass().getName(), "Could not start service " + comp.toString()); 
Full Snippet Info
7
CodeRank
34:	ComponentName me=new ComponentName(ctxt, AppWidget.class); 
Full Snippet Info
7
CodeRank
34:	mIntent.setComponent(new ComponentName("com.android.contacts", 
Full Snippet Info
7
CodeRank
126:	ComponentName cn = new ComponentName(mContext, LocalService.class); 
127:	ServiceInfo si = mContext.getPackageManager().getServiceInfo( 
-
132:	si = mContext.getPackageManager().getServiceInfo(cn, 0); 
Full Snippet Info
7
CodeRank
52:	ComponentName locationReceiver = new ComponentName(context, 
Full Snippet Info
7
CodeRank