/cts/tests/tests/content/src/android/content/pm/cts/ |
ResolveInfo_DisplayNameComparatorTest.java | 35 ResolveInfo activityInfo = pm.resolveActivity(intent, 0); 40 assertTrue(dnc.compare(activityInfo, serviceInfo) < 0); 41 assertTrue(dnc.compare(activityInfo, activityInfo) == 0); 42 assertTrue(dnc.compare(serviceInfo, activityInfo) > 0);
|
PackageItemInfo_DisplayNameComparatorTest.java | 21 import android.content.pm.ActivityInfo; 38 ActivityInfo activityInfo = pm.getActivityInfo(componentName, 0); 39 PackageItemInfo pkgItemInfo = new PackageItemInfo(activityInfo); 42 activityInfo = pm.getActivityInfo(componentName, 0); 43 PackageItemInfo cmpInfo = new PackageItemInfo(activityInfo);
|
PackageItemInfoTest.java | 23 import android.content.pm.ActivityInfo; 46 ActivityInfo activityInfo = (ActivityInfo) getTestItemInfo(); 48 PackageItemInfo pkgItemInfo = new PackageItemInfo(activityInfo); 49 checkInfoSame(activityInfo, pkgItemInfo); 72 ActivityInfo activityInfo = (ActivityInfo) getTestItemInfo(); 73 PackageItemInfo expectedInfo = new PackageItemInfo(activityInfo); [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
MockPackageManager.java | 20 import android.content.pm.ActivityInfo; 42 ActivityInfo activityInfo = new ActivityInfo(); 43 activityInfo.packageName = packageName; 44 activityInfo.name = "FooClass"; 46 resolveInfo.activityInfo = activityInfo;
|
/frameworks/base/core/java/android/content/pm/ |
ResolveInfo.java | 43 * Exactly one of {@link #activityInfo}, {@link #serviceInfo}, or 46 public ActivityInfo activityInfo; 50 * is for a service. Exactly one of {@link #activityInfo}, 57 * resolution is for a provider. Exactly one of {@link #activityInfo}, 135 if (activityInfo != null) return activityInfo; 240 if (activityInfo != null) { 241 pw.println(prefix + "ActivityInfo:"); 242 activityInfo.dump(pw, prefix + " ") [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
Grid1.java | 76 i.setImageDrawable(info.activityInfo.loadIcon(getPackageManager()));
|
LayoutAnimation1.java | 60 i.setImageDrawable(info.activityInfo.loadIcon(getPackageManager()));
|
LayoutAnimation4.java | 61 i.setImageDrawable(info.activityInfo.loadIcon(getPackageManager()));
|
LayoutAnimation5.java | 60 i.setImageDrawable(info.activityInfo.loadIcon(getPackageManager()));
|
LayoutAnimation6.java | 60 i.setImageDrawable(info.activityInfo.loadIcon(getPackageManager()));
|
Grid3.java | 89 i.setImageDrawable(info.activityInfo.loadIcon(getPackageManager()));
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
AbstractConversationWebViewClient.java | 23 import android.content.pm.ActivityInfo; 125 final ActivityInfo activityInfo = resolveInfo.activityInfo; 126 if (packageName.equals(activityInfo.packageName)) { 127 intent.setClassName(activityInfo.packageName, activityInfo.name);
|
/packages/apps/Tag/src/com/android/apps/tag/record/ |
RecordUtils.java | 25 import android.content.pm.ActivityInfo; 70 if (numActivities == 0 || (numActivities == 1 && !activities.get(0).activityInfo.enabled)) { 86 if (!resolveInfo.activityInfo.enabled) { 108 ActivityInfo activityInfo = resolveInfo.activityInfo; 111 intent.setComponent(new ComponentName(activityInfo.packageName, activityInfo.name));
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
AllAppsList.java | 25 import android.content.pm.ActivityInfo; 142 info.activityInfo.applicationInfo.packageName, 143 info.activityInfo.name); 186 final ActivityInfo activityInfo = info.activityInfo; 187 if (activityInfo.name.equals(className)) {
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/ |
ThirdPartyWallpaperPickerListAdapter.java | 22 import android.content.pm.ActivityInfo; 56 mResolveInfo.activityInfo.packageName, mResolveInfo.activityInfo.name); 81 ActivityInfo activityInfo = imagePickerActivities.get(i).activityInfo; 82 imageActivities[i] = new ComponentName(activityInfo.packageName, activityInfo.name); 88 new ComponentName(info.activityInfo.packageName, info.activityInfo.name) [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
AllAppsList.java | 22 import android.content.pm.ActivityInfo; 147 info.activityInfo.applicationInfo.packageName, 148 info.activityInfo.name); 191 final ActivityInfo activityInfo = info.activityInfo; 192 if (activityInfo.name.equals(className)) {
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
DbModifierWithNotification.java | 28 import android.content.pm.ActivityInfo; 240 // For broadcast receivers ResolveInfo.activityInfo is the one that is populated. 243 ActivityInfo activityInfo = resolveInfo.activityInfo; 244 receiverComponents.add(new ComponentName(activityInfo.packageName, activityInfo.name));
|
/frameworks/base/core/java/android/app/ |
LocalActivityManager.java | 20 import android.content.pm.ActivityInfo; 55 ActivityInfo activityInfo; // Package manager info about activity. 132 if (r.activityInfo == null) { 133 r.activityInfo = mActivityThread.resolveActivityInfo(r.intent); 136 mParent, r.id, r.intent, r.activityInfo, r, r.instanceState, instance); 269 ActivityInfo aInfo = null; 281 aInfo = r.activityInfo; 304 } else if (r.activityInfo != null) { 307 if (aInfo == r.activityInfo || [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
RecentApplicationsDialog.java | 27 import android.content.pm.ActivityInfo; 264 ActivityInfo homeInfo = 300 final ActivityInfo activityInfo = resolveInfo.activityInfo; 301 final String title = activityInfo.loadLabel(pm).toString(); 302 Drawable icon = activityInfo.loadIcon(pm);
|
/frameworks/base/tests/MemoryUsage/src/com/android/tests/memoryusage/ |
MemoryUsageTest.java | 124 + " package: " + ri.activityInfo.packageName 125 + " name: " + ri.activityInfo.name); 129 startIntent.setClassName(ri.activityInfo.packageName, 130 ri.activityInfo.name); 133 ri.activityInfo.processName);
|
/frameworks/base/core/java/android/preference/ |
PreferenceManager.java | 24 import android.content.pm.ActivityInfo; 216 final ActivityInfo activityInfo = activities.get(i).activityInfo; 217 final Bundle metaData = activityInfo.metaData; 225 final String uniqueResId = activityInfo.packageName + ":" 226 + activityInfo.metaData.getInt(METADATA_KEY_PREFERENCES); 233 context = mContext.createPackageContext(activityInfo.packageName, 0); 235 Log.w(TAG, "Could not create context for " + activityInfo.packageName + ": " 241 final XmlResourceParser parser = activityInfo.loadXmlMetaData(contex [all...] |
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
ComponentTest.java | 142 assertNotNull(info2.activityInfo); 143 assertFalse(info2.activityInfo.enabled); 155 assertNotNull(info.activityInfo); 156 assertTrue(info.activityInfo.enabled); 175 assertNotNull(info.activityInfo); 176 assertFalse(info.activityInfo.enabled); 190 assertNotNull(info.activityInfo); 191 assertTrue(info.activityInfo.enabled); 207 final ActivityInfo activityInfo [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
SmsApplication.java | 25 import android.content.pm.ActivityInfo; 142 final ActivityInfo activityInfo = resolveInfo.activityInfo; 143 if (activityInfo == null) { 146 if (!permission.BROADCAST_SMS.equals(activityInfo.permission)) { 149 final String packageName = activityInfo.packageName; 153 applicationName, packageName, activityInfo.applicationInfo.uid); 154 smsApplicationData.mSmsReceiverClass = activityInfo.name; 164 final ActivityInfo activityInfo = resolveInfo.activityInfo [all...] |
/development/samples/Home/src/com/example/android/home/ |
Home.java | 27 import android.content.pm.ActivityInfo; 390 final ActivityInfo activityInfo = resolveInfo.activityInfo; 391 info.icon = activityInfo.loadIcon(manager); 393 info.title = activityInfo.loadLabel(manager); 506 info.activityInfo.applicationInfo.packageName, 507 info.activityInfo.name), 510 application.icon = info.activityInfo.loadIcon(manager);
|
/frameworks/base/core/java/android/widget/ |
ActivityChooserModel.java | 23 import android.content.pm.ActivityInfo; 480 chosenActivity.resolveInfo.activityInfo.packageName, 481 chosenActivity.resolveInfo.activityInfo.name); 561 newDefaultActivity.resolveInfo.activityInfo.packageName, 562 newDefaultActivity.resolveInfo.activityInfo.name); 714 ActivityInfo activityInfo = resolveInfo.activityInfo; 715 if (ActivityManager.checkComponentPermission(activityInfo.permission, 716 android.os.Process.myUid(), activityInfo.applicationInfo.uid [all...] |