Home
last modified time | relevance | path

Searched refs:activityInfo (Results 1 – 12 of 12) sorted by relevance

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DLegacyManifestParser.java176 ActivityInfo activityInfo = new ActivityInfo(); in createPackage() local
177 activityInfo.name = buildClassName(pkg.packageName, data.getName()); in createPackage()
178 activityInfo.packageName = pkg.packageName; in createPackage()
179 activityInfo.configChanges = getConfigChanges(data); in createPackage()
180 activityInfo.parentActivityName = data.getParentActivityName(); in createPackage()
181 activityInfo.metaData = metaDataToBundle(data.getMetaData().getValueMap()); in createPackage()
182 activityInfo.applicationInfo = pkg.applicationInfo; in createPackage()
183 activityInfo.targetActivity = data.getTargetActivityName(); in createPackage()
184 activityInfo.exported = data.isExported(); in createPackage()
185 activityInfo.permission = data.getPermission(); in createPackage()
[all …]
DShadowResolveInfo.java38 resInfo.activityInfo = actInfo; in newResolveInfo()
54 copy.activityInfo = orig.activityInfo; in newResolveInfo()
DShadowActivity.java87 ActivityInfo activityInfo; in callAttach() local
89activityInfo = application.getPackageManager().getActivityInfo(new ComponentName(application.getPa… in callAttach()
94 CharSequence activityTitle = activityInfo.loadLabel(baseContext.getPackageManager()); in callAttach()
111 ReflectionHelpers.ClassParameter.from(ActivityInfo.class, activityInfo), in callAttach()
131 ReflectionHelpers.ClassParameter.from(ActivityInfo.class, activityInfo), in callAttach()
152 ReflectionHelpers.ClassParameter.from(ActivityInfo.class, activityInfo), in callAttach()
175 ReflectionHelpers.ClassParameter.from(ActivityInfo.class, activityInfo), in callAttach()
199 ReflectionHelpers.ClassParameter.from(ActivityInfo.class, activityInfo), in callAttach()
225 ReflectionHelpers.ClassParameter.from(ActivityInfo.class, activityInfo), in callAttach()
243 int theme = activityInfo.getThemeResource(); in callAttach()
DShadowPackageManager.java298 info.activityInfo, in addResolveInfoForIntent()
346 } else if (resolveInfo.activityInfo != null) { in getPackageName()
347 return resolveInfo.activityInfo.packageName; in getPackageName()
1004 return resolveInfo.activityInfo != null in isPreferred()
1005 && resolveInfo.activityInfo.packageName != null in isPreferred()
1006 && resolveInfo.activityInfo.name != null in isPreferred()
1009 resolveInfo.activityInfo.packageName, resolveInfo.activityInfo.name)); in isPreferred()
DShadowApplicationPackageManager.java376 resolveInfo.activityInfo != null in filterResolvedComponent()
447 resolveInfoList, flags, (resolveInfo) -> resolveInfo.activityInfo)); in queryIntentActivities()
455 Arrays.asList(resolvedActivity), flags, (resolveInfo) -> resolveInfo.activityInfo)); in queryIntentActivities()
462 (resolveInfo) -> resolveInfo.activityInfo)); in queryIntentActivities()
613 resolveInfo.activityInfo = activity.info; in buildResolveInfo()
729 resolveInfoList, flags, (resolveInfo) -> resolveInfo.activityInfo)); in queryBroadcastReceivers()
737 Arrays.asList(resolvedReceiver), flags, (resolveInfo) -> resolveInfo.activityInfo)); in queryBroadcastReceivers()
744 (resolveInfo) -> resolveInfo.activityInfo)); in queryBroadcastReceivers()
1080 intent.setClassName(packageName, ris.get(0).activityInfo.name); in getLaunchIntentForPackage()
1798 return info != null && packageName.equals(info.activityInfo.packageName); in isPackageActiveLauncher()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowResolveInfoTest.java24 assertThat(mResolveInfo.activityInfo.packageName).isEqualTo("package"); in testNewResolveInfoWithActivity()
25 assertThat(mResolveInfo.activityInfo.applicationInfo.packageName).isEqualTo("package"); in testNewResolveInfoWithActivity()
26 assertThat(mResolveInfo.activityInfo.name).isEqualTo("fragmentActivity"); in testNewResolveInfoWithActivity()
DShadowPackageManagerTest.java352 assertThat(receiverInfos.get(0).activityInfo.name) in testQueryBroadcastReceiverSucceeds()
354 assertThat(receiverInfos.get(0).activityInfo.permission) in testQueryBroadcastReceiverSucceeds()
375 assertThat(receiverInfo.activityInfo.name) in testQueryBroadcastReceiver_matchAllWithoutIntentFilter()
398 …ActivityInfo activityInfo = activity.getPackageManager().getActivityInfo(activity.getComponentName… in getActivityMetaData_configChanges() local
400 int configChanges = activityInfo.configChanges; in getActivityMetaData_configChanges()
415 ActivityInfo activityInfo = in getActivityMetaData_configChangesAlwaysIncludesMccAndMnc() local
418 int configChanges = activityInfo.configChanges; in getActivityMetaData_configChangesAlwaysIncludesMccAndMnc()
669 info.activityInfo = new ActivityInfo(); in queryIntentActivities_Match()
670 info.activityInfo.name = "name"; in queryIntentActivities_Match()
671 info.activityInfo.packageName = TEST_PACKAGE_NAME; in queryIntentActivities_Match()
[all …]
DShadowIntentTest.java40 …ActivityInfo activityInfo = intent.resolveActivityInfo(packageManager, PackageManager.GET_ACTIVITI… in resolveActivityInfo_shouldReturnActivityInfoForExistingActivity() local
41 assertThat(activityInfo).isNotNull(); in resolveActivityInfo_shouldReturnActivityInfoForExistingActivity()
/external/sl4a/Common/src/com/googlecode/android_scripting/activity/
DFutureActivity.java65 if (resolve.activityInfo.packageName.equals(packageName)) { in onCreate()
66 intent.setClassName(packageName, resolve.activityInfo.name); in onCreate()
/external/setupdesign/main/src/com/google/android/setupdesign/util/
DPartner.java159 if (info.activityInfo == null) { in get()
162 final ApplicationInfo appInfo = info.activityInfo.applicationInfo; in get()
/external/sl4a/Common/src/com/googlecode/android_scripting/interpreter/
DInterpreterConfiguration.java83 addInterpreter(info.activityInfo.packageName); in discoverForType()
100 addInterpreter(info.activityInfo.packageName); in discoverAll()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/
DApplicationManagerFacade.java70 applications.put(info.loadLabel(mPackageManager).toString(), info.activityInfo.name); in getLaunchableApplications()