Home
last modified time | relevance | path

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

/external/libtextclassifier/java/src/com/android/textclassifier/common/intent/
DLabeledIntent.java97 if (resolveInfo == null || resolveInfo.activityInfo == null) { in resolve()
119 if (!hasPermission(context, resolveInfo.activityInfo)) { in resolve()
120 TcLog.d(TAG, "No permission to access: " + resolveInfo.activityInfo); in resolve()
124 final String packageName = resolveInfo.activityInfo.packageName; in resolve()
125 final String className = resolveInfo.activityInfo.name; in resolve()
138 if (resolveInfo.activityInfo.getIconResource() != 0) { in resolve()
140 createIconFromPackage(context, packageName, resolveInfo.activityInfo.getIconResource()); in resolve()
222 if (resolveInfo == null || resolveInfo.activityInfo == null) { in getApplicationName()
225 if ("android".equals(resolveInfo.activityInfo.packageName)) { in getApplicationName()
228 if (resolveInfo.activityInfo.applicationInfo == null) { in getApplicationName()
[all …]
/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/testing/
DFakeContextBuilder.java127 info.activityInfo = new ActivityInfo(); in getResolveInfo()
128 info.activityInfo.packageName = component.getPackageName(); in getResolveInfo()
129 info.activityInfo.name = component.getClassName(); in getResolveInfo()
130 info.activityInfo.exported = true; in getResolveInfo()
131 info.activityInfo.applicationInfo = new ApplicationInfo(); in getResolveInfo()
132 info.activityInfo.applicationInfo.packageName = component.getPackageName(); in getResolveInfo()
133 info.activityInfo.applicationInfo.icon = 0; in getResolveInfo()
/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.java88 ActivityInfo activityInfo; in callAttach() local
90activityInfo = application.getPackageManager().getActivityInfo(new ComponentName(application.getPa… in callAttach()
95 CharSequence activityTitle = activityInfo.loadLabel(baseContext.getPackageManager()); in callAttach()
112 ReflectionHelpers.ClassParameter.from(ActivityInfo.class, activityInfo), in callAttach()
132 ReflectionHelpers.ClassParameter.from(ActivityInfo.class, activityInfo), in callAttach()
153 ReflectionHelpers.ClassParameter.from(ActivityInfo.class, activityInfo), in callAttach()
176 ReflectionHelpers.ClassParameter.from(ActivityInfo.class, activityInfo), in callAttach()
200 ReflectionHelpers.ClassParameter.from(ActivityInfo.class, activityInfo), in callAttach()
226 ReflectionHelpers.ClassParameter.from(ActivityInfo.class, activityInfo), in callAttach()
253 ReflectionHelpers.ClassParameter.from(ActivityInfo.class, activityInfo), in callAttach()
[all …]
DShadowCrossProfileApps.java276 ActivityInfo activityInfo = resolveInfo.activityInfo; in verifyActivityInManifest()
277 return TextUtils.equals(activityInfo.packageName, component.getPackageName()) in verifyActivityInManifest()
278 && TextUtils.equals(activityInfo.name, component.getClassName()) in verifyActivityInManifest()
279 && activityInfo.exported; in verifyActivityInManifest()
DShadowPackageManager.java299 info.activityInfo, in addResolveInfoForIntent()
347 } else if (resolveInfo.activityInfo != null) { in getPackageName()
348 return resolveInfo.activityInfo.packageName; in getPackageName()
1012 return resolveInfo.activityInfo != null in isPreferred()
1013 && resolveInfo.activityInfo.packageName != null in isPreferred()
1014 && resolveInfo.activityInfo.name != null in isPreferred()
1017 resolveInfo.activityInfo.packageName, resolveInfo.activityInfo.name)); in isPreferred()
DShadowApplicationPackageManager.java397 resolveInfo.activityInfo != null in filterResolvedComponent()
468 resolveInfoList, flags, (resolveInfo) -> resolveInfo.activityInfo)); in queryIntentActivities()
476 Arrays.asList(resolvedActivity), flags, (resolveInfo) -> resolveInfo.activityInfo)); in queryIntentActivities()
483 (resolveInfo) -> resolveInfo.activityInfo)); in queryIntentActivities()
634 resolveInfo.activityInfo = activity.info; in buildResolveInfo()
750 resolveInfoList, flags, (resolveInfo) -> resolveInfo.activityInfo)); in queryBroadcastReceivers()
758 Arrays.asList(resolvedReceiver), flags, (resolveInfo) -> resolveInfo.activityInfo)); in queryBroadcastReceivers()
765 (resolveInfo) -> resolveInfo.activityInfo)); in queryBroadcastReceivers()
1101 intent.setClassName(packageName, ris.get(0).activityInfo.name); in getLaunchIntentForPackage()
1831 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.java355 assertThat(receiverInfos.get(0).activityInfo.name) in testQueryBroadcastReceiverSucceeds()
357 assertThat(receiverInfos.get(0).activityInfo.permission) in testQueryBroadcastReceiverSucceeds()
378 assertThat(receiverInfo.activityInfo.name) in testQueryBroadcastReceiver_matchAllWithoutIntentFilter()
401 …ActivityInfo activityInfo = activity.getPackageManager().getActivityInfo(activity.getComponentName… in getActivityMetaData_configChanges() local
403 int configChanges = activityInfo.configChanges; in getActivityMetaData_configChanges()
418 ActivityInfo activityInfo = in getActivityMetaData_configChangesAlwaysIncludesMccAndMnc() local
421 int configChanges = activityInfo.configChanges; in getActivityMetaData_configChangesAlwaysIncludesMccAndMnc()
672 info.activityInfo = new ActivityInfo(); in queryIntentActivities_Match()
673 info.activityInfo.name = "name"; in queryIntentActivities_Match()
674 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/ScriptingLayerForAndroid/libs/
Dlocale_platform.jarMETA-INF/MANIFEST.MF com/twofortyfouram/locale/platform/BreadCrumber.class BreadCrumber ...
/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.java203 if (info.activityInfo == null) { in get()
206 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/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/
DActionsSuggestionsHelperTest.java400 resolveInfo.activityInfo = new ActivityInfo(); in createResolveInfo()
401 resolveInfo.activityInfo.packageName = packageName; in createResolveInfo()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/
DApplicationManagerFacade.java70 applications.put(info.loadLabel(mPackageManager).toString(), info.activityInfo.name); in getLaunchableApplications()
/external/libtextclassifier/java/src/com/android/textclassifier/
DActionsSuggestionsHelper.java156 if ("android".equals(resolveInfo.activityInfo.packageName)) { in createTitleChooser()