Home
last modified time | relevance | path

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

123456

/frameworks/base/core/tests/coretests/src/android/content/pm/
DComponentTest.java143 assertNotNull(info2.activityInfo); in testResolveDisabledActivity()
144 assertFalse(info2.activityInfo.enabled); in testResolveDisabledActivity()
156 assertNotNull(info.activityInfo); in testResolveEnabledActivity()
157 assertTrue(info.activityInfo.enabled); in testResolveEnabledActivity()
176 assertNotNull(info.activityInfo); in testQueryDisabledActivity()
177 assertFalse(info.activityInfo.enabled); in testQueryDisabledActivity()
191 assertNotNull(info.activityInfo); in testQueryEnabledActivity()
192 assertTrue(info.activityInfo.enabled); in testQueryEnabledActivity()
208 final ActivityInfo activityInfo = in testGetDisabledActivityInfo() local
211 assertNotNull(activityInfo); in testGetDisabledActivityInfo()
[all …]
DAppsQueryHelperTests.java130 r2.activityInfo = new ActivityInfo(); in queryIntentActivitiesAsUser()
131 r2.activityInfo.packageName = "sys_app2"; in queryIntentActivitiesAsUser()
132 r2.activityInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in queryIntentActivitiesAsUser()
134 r4.activityInfo = new ActivityInfo(); in queryIntentActivitiesAsUser()
135 r4.activityInfo.packageName = "app4"; in queryIntentActivitiesAsUser()
/frameworks/base/telephony/java/com/android/internal/telephony/
DSmsApplication.java234 final ActivityInfo activityInfo = resolveInfo.activityInfo; in getApplicationCollectionInternal() local
235 if (activityInfo == null) { in getApplicationCollectionInternal()
238 if (!permission.BROADCAST_SMS.equals(activityInfo.permission)) { in getApplicationCollectionInternal()
241 final String packageName = activityInfo.packageName; in getApplicationCollectionInternal()
244 activityInfo.applicationInfo.uid); in getApplicationCollectionInternal()
245 smsApplicationData.mSmsReceiverClass = activityInfo.name; in getApplicationCollectionInternal()
256 final ActivityInfo activityInfo = resolveInfo.activityInfo; in getApplicationCollectionInternal() local
257 if (activityInfo == null) { in getApplicationCollectionInternal()
260 if (!permission.BROADCAST_WAP_PUSH.equals(activityInfo.permission)) { in getApplicationCollectionInternal()
263 final String packageName = activityInfo.packageName; in getApplicationCollectionInternal()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/
DTileUtils.java275 category.title = resolved.activityInfo.loadLabel(pm); in createCategory()
277 resolved.activityInfo.applicationInfo.packageName) ? resolved.priority : 0; in createCategory()
315 ActivityInfo activityInfo = resolved.activityInfo; in getTilesForIntent() local
316 Bundle metaData = activityInfo.metaData; in getTilesForIntent()
322 Log.w(LOG_TAG, "Found " + resolved.activityInfo.name + " for intent " in getTilesForIntent()
330 Pair<String, String> key = new Pair<String, String>(activityInfo.packageName, in getTilesForIntent()
331 activityInfo.name); in getTilesForIntent()
336 activityInfo.packageName, activityInfo.name); in getTilesForIntent()
339 tile.metaData = activityInfo.metaData; in getTilesForIntent()
340 updateTileData(context, tile, activityInfo, activityInfo.applicationInfo, in getTilesForIntent()
[all …]
/frameworks/base/core/java/android/content/pm/
DResolveInfo.java47 public ActivityInfo activityInfo; field in ResolveInfo
181 if (activityInfo != null) return activityInfo; in getComponentInfo()
303 if (activityInfo != null) { in dump()
305 activityInfo.dump(pw, prefix + " ", flags); in dump()
320 activityInfo = orig.activityInfo; in ResolveInfo()
371 if (activityInfo != null) { in writeToParcel()
373 activityInfo.writeToParcel(dest, parcelableFlags); in writeToParcel()
416 activityInfo = null; in ResolveInfo()
421 activityInfo = ActivityInfo.CREATOR.createFromParcel(source); in ResolveInfo()
469 if (sa == null) sa = a.activityInfo.name; in compare()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DBroadcastQueue.java1054 info.activityInfo.applicationInfo.packageName, in processNextBroadcast()
1055 info.activityInfo.name); in processNextBroadcast()
1059 (info.activityInfo.applicationInfo.targetSdkVersion in processNextBroadcast()
1061 info.activityInfo.applicationInfo.targetSdkVersion in processNextBroadcast()
1065 int perm = mService.checkComponentPermission(info.activityInfo.permission, in processNextBroadcast()
1066 r.callingPid, r.callingUid, info.activityInfo.applicationInfo.uid, in processNextBroadcast()
1067 info.activityInfo.exported); in processNextBroadcast()
1069 if (!info.activityInfo.exported) { in processNextBroadcast()
1074 + " is not exported from uid " + info.activityInfo.applicationInfo.uid in processNextBroadcast()
1081 + " requires " + info.activityInfo.permission in processNextBroadcast()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/drawer/
DTileUtilsTest.java357 info.activityInfo = new ActivityInfo(); in newInfo()
358 info.activityInfo.packageName = "abc"; in newInfo()
359 info.activityInfo.name = "123"; in newInfo()
360 info.activityInfo.metaData = new Bundle(); in newInfo()
361 info.activityInfo.metaData.putString("com.android.settings.category", category); in newInfo()
362 info.activityInfo.metaData.putInt("com.android.settings.icon", 314159); in newInfo()
363 info.activityInfo.metaData.putString("com.android.settings.summary", "static-summary"); in newInfo()
365 info.activityInfo.metaData.putString("com.android.settings.keyhint", keyHint); in newInfo()
368 info.activityInfo.metaData.putString("com.android.settings.icon_uri", iconUri); in newInfo()
371 info.activityInfo.metaData.putString("com.android.settings.summary_uri", summaryUri); in newInfo()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DPreviewInflater.java136 if (resolved == null || resolved.activityInfo == null) { in getWidgetInfo()
139 return getWidgetInfoFromMetaData(resolved.activityInfo.packageName, in getWidgetInfo()
140 resolved.activityInfo.metaData); in getWidgetInfo()
174 return resolved.activityInfo; in getTargetActivityInfo()
184 if (tmp.activityInfo.name.equals(resolved.activityInfo.name) in wouldLaunchResolverActivity()
185 && tmp.activityInfo.packageName.equals(resolved.activityInfo.packageName)) { in wouldLaunchResolverActivity()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/
DRecentsTaskLoader.java463 ActivityInfo activityInfo = getAndUpdateActivityInfo(taskKey); in getAndUpdateActivityTitle() local
464 if (activityInfo != null) { in getAndUpdateActivityTitle()
465 label = ssp.getBadgedActivityLabel(activityInfo, taskKey.userId); in getAndUpdateActivityTitle()
489 ActivityInfo activityInfo = getAndUpdateActivityInfo(taskKey); in getAndUpdateContentDescription() local
490 if (activityInfo != null) { in getAndUpdateContentDescription()
491 label = ssp.getBadgedContentDescription(activityInfo, taskKey.userId, td, res); in getAndUpdateContentDescription()
529 ActivityInfo activityInfo = getAndUpdateActivityInfo(taskKey); in getAndUpdateActivityIcon() local
530 if (activityInfo != null) { in getAndUpdateActivityIcon()
531 icon = ssp.getBadgedActivityIcon(activityInfo, taskKey.userId); in getAndUpdateActivityIcon()
607 ActivityInfo activityInfo = mActivityInfoCache.get(cn); in getAndUpdateActivityInfo() local
[all …]
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/util/
DPartnerTest.java162 ActivityInfo activityInfo = new ActivityInfo(); in createResolveInfo() local
166 activityInfo.applicationInfo = appInfo; in createResolveInfo()
167 activityInfo.packageName = packageName; in createResolveInfo()
168 activityInfo.name = packageName; in createResolveInfo()
170 activityInfo.directBootAware = directBootAware; in createResolveInfo()
172 info.activityInfo = activityInfo; in createResolveInfo()
/frameworks/base/telecomm/java/android/telecom/
DDefaultDialerManager.java165 final ActivityInfo activityInfo = resolveInfo.activityInfo; in getInstalledDialerApplications() local
166 if (activityInfo != null && !packageNames.contains(activityInfo.packageName)) { in getInstalledDialerApplications()
167 packageNames.add(activityInfo.packageName); in getInstalledDialerApplications()
220 final ActivityInfo info = resolveInfoList.get(i).activityInfo; in filterByIntent()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/users/
DAppRestrictionsHelperTest.java192 packageInfo.applicationInfo = ri.activityInfo.applicationInfo; in addSystemAppsWithRequiredAccounts()
209 final String pkgName = ri.activityInfo.packageName; in addInstalledApp()
214 packageInfo.applicationInfo = ri.activityInfo.applicationInfo; in addInstalledApp()
222 ri.activityInfo.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in createResolveInfoForSystemApp()
231 final ActivityInfo activityInfo = new ActivityInfo(); in createResolveInfo() local
232 activityInfo.applicationInfo = applicationInfo; in createResolveInfo()
233 activityInfo.packageName = packageName; in createResolveInfo()
234 activityInfo.name = ""; in createResolveInfo()
235 ri.activityInfo = activityInfo; in createResolveInfo()
/frameworks/base/core/java/android/speech/
DRecognizerIntent.java334 if (ri == null || ri.activityInfo == null || ri.activityInfo.metaData == null) return null; in getVoiceDetailsIntent()
336 String className = ri.activityInfo.metaData.getString(DETAILS_META_DATA); in getVoiceDetailsIntent()
340 detailsIntent.setComponent(new ComponentName(ri.activityInfo.packageName, className)); in getVoiceDetailsIntent()
/frameworks/base/core/java/com/android/internal/app/
DResolverListController.java106 if (info.activityInfo != null && !info.activityInfo.exported) { in getResolversForIntent()
140 newInfo.activityInfo.packageName, newInfo.activityInfo.name); in addResolveListDedupe()
164 .getResolveInfoAt(0).activityInfo; in filterIneligibleActivities()
201 r0.activityInfo.name + "=" + in filterLowPriority()
203 ri.activityInfo.name + "=" + in filterLowPriority()
259 final ActivityInfo ai = a.activityInfo; in isSameResolvedComponent()
DResolverActivity.java476 dr = getIcon(mPm.getResourcesForApplication(ri.activityInfo.packageName), iconRes); in loadIconForResolveInfo()
566 resolveInfo.activityInfo.packageName, 0 /* default flags */); in supportsManagedProfiles()
608 ri.activityInfo.loadLabel(getPackageManager()).toString()), in startSelected()
748 set[i] = new ComponentName(r.activityInfo.packageName, in onTargetSelected()
749 r.activityInfo.name); in onTargetSelected()
770 … pm.setDefaultBrowserPackageNameAsUser(ri.activityInfo.packageName, userId); in onTargetSelected()
863 .setData(Uri.fromParts("package", ri.activityInfo.packageName, null)) in showTargetDetails()
1048 : lhs.activityInfo == null ? rhs.activityInfo == null in resolveInfoMatch()
1049 : Objects.equals(lhs.activityInfo.name, rhs.activityInfo.name) in resolveInfoMatch()
1050 && Objects.equals(lhs.activityInfo.packageName, rhs.activityInfo.packageName); in resolveInfoMatch()
[all …]
/frameworks/base/core/java/android/app/
DLocalActivityManager.java56 ActivityInfo activityInfo; // Package manager info about activity. field in LocalActivityManager.LocalActivityRecord
133 if (r.activityInfo == null) { in moveToState()
134 r.activityInfo = mActivityThread.resolveActivityInfo(r.intent); in moveToState()
137 mParent, r.id, r.intent, r.activityInfo, r, r.instanceState, instance); in moveToState()
282 aInfo = r.activityInfo; in startActivity()
305 } else if (r.activityInfo != null) { in startActivity()
308 if (aInfo == r.activityInfo || in startActivity()
309 (aInfo.name.equals(r.activityInfo.name) && in startActivity()
310 aInfo.packageName.equals(r.activityInfo.packageName))) { in startActivity()
346 r.activityInfo = aInfo; in startActivity()
/frameworks/base/tests/SmokeTest/tests/src/com/android/smoketest/
DProcessErrorsTest.java146 Log.i(TAG, String.format("Running activity %s/%s", app.activityInfo.packageName, in runOneActivity()
147 app.activityInfo.name)); in runOneActivity()
159 app.activityInfo.packageName, app.activityInfo.name)); in runOneActivity()
226 final String appPkg = app.activityInfo.packageName; in packageMatches()
250 final ComponentName component = new ComponentName(app.activityInfo.packageName, in intentForActivity()
251 app.activityInfo.name); in intentForActivity()
/frameworks/base/core/java/android/preference/
DPreferenceManager.java268 final ActivityInfo activityInfo = activities.get(i).activityInfo; in inflateFromIntent() local
269 final Bundle metaData = activityInfo.metaData; in inflateFromIntent()
277 final String uniqueResId = activityInfo.packageName + ":" in inflateFromIntent()
278 + activityInfo.metaData.getInt(METADATA_KEY_PREFERENCES); in inflateFromIntent()
285 context = mContext.createPackageContext(activityInfo.packageName, 0); in inflateFromIntent()
287 Log.w(TAG, "Could not create context for " + activityInfo.packageName + ": " in inflateFromIntent()
293 final XmlResourceParser parser = activityInfo.loadXmlMetaData(context in inflateFromIntent()
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DChooserActivityTest.java120 onView(withText(toChoose.activityInfo.name)) in twoOptionsAndUserSelectsOne()
146 onView(withText(toChoose.activityInfo.name)) in updateChooserCountsAndModelAfterUserSelection()
152 .updateModel(toChoose.activityInfo.getComponentName()); in updateChooserCountsAndModelAfterUserSelection()
228 withText(stableCopy.get(0).getResolveInfoAt(0).activityInfo.name))); in hasOtherProfileOneOption()
229 onView(withText(stableCopy.get(1).getResolveInfoAt(0).activityInfo.name)) in hasOtherProfileOneOption()
267 withText(stableCopy.get(0).getResolveInfoAt(0).activityInfo.name))); in hasOtherProfileTwoOptionsAndUserSelectsOne()
268 onView(withText(stableCopy.get(1).getResolveInfoAt(0).activityInfo.name)) in hasOtherProfileTwoOptionsAndUserSelectsOne()
304 withText(stableCopy.get(0).getResolveInfoAt(0).activityInfo.name))); in hasLastChosenActivityAndOtherProfile()
305 onView(withText(stableCopy.get(1).getResolveInfoAt(0).activityInfo.name)) in hasLastChosenActivityAndOtherProfile()
DResolverActivityTest.java94 onView(withText(toChoose.activityInfo.name)) in twoOptionsAndUserSelectsOne()
160 withText(stableCopy.get(0).getResolveInfoAt(0).activityInfo.name))); in hasOtherProfileOneOption()
161 onView(withText(stableCopy.get(1).getResolveInfoAt(0).activityInfo.name)) in hasOtherProfileOneOption()
201 withText(stableCopy.get(0).getResolveInfoAt(0).activityInfo.name))); in hasOtherProfileTwoOptionsAndUserSelectsOne()
202 onView(withText(stableCopy.get(1).getResolveInfoAt(0).activityInfo.name)) in hasOtherProfileTwoOptionsAndUserSelectsOne()
246 withText(stableCopy.get(0).getResolveInfoAt(0).activityInfo.name))); in hasLastChosenActivityAndOtherProfile()
247 onView(withText(stableCopy.get(1).getResolveInfoAt(0).activityInfo.name)) in hasLastChosenActivityAndOtherProfile()
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DUsbConfirmActivity.java117 final int uid = mResolveInfo.activityInfo.applicationInfo.uid; in onClick()
131 mDevice, mResolveInfo.activityInfo.packageName, userId); in onClick()
144 mAccessory, mResolveInfo.activityInfo.packageName, userId); in onClick()
152 new ComponentName(mResolveInfo.activityInfo.packageName, in onClick()
153 mResolveInfo.activityInfo.name)); in onClick()
/frameworks/base/core/java/android/widget/
DActivityChooserModel.java481 chosenActivity.resolveInfo.activityInfo.packageName, in chooseActivity()
482 chosenActivity.resolveInfo.activityInfo.name); in chooseActivity()
562 newDefaultActivity.resolveInfo.activityInfo.packageName, in setDefaultActivity()
563 newDefaultActivity.resolveInfo.activityInfo.name); in setDefaultActivity()
715 ActivityInfo activityInfo = resolveInfo.activityInfo; in loadActivitiesIfNeeded() local
716 if (ActivityManager.checkComponentPermission(activityInfo.permission, in loadActivitiesIfNeeded()
717 android.os.Process.myUid(), activityInfo.applicationInfo.uid, in loadActivitiesIfNeeded()
718 activityInfo.exported) == PackageManager.PERMISSION_GRANTED) { in loadActivitiesIfNeeded()
956 activity.resolveInfo.activityInfo.packageName, in sort()
957 activity.resolveInfo.activityInfo.name); in sort()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/
DAppRestrictionsHelper.java303 if (app.activityInfo != null && app.activityInfo.applicationInfo != null) { in addSystemApps()
304 final String packageName = app.activityInfo.packageName; in addSystemApps()
305 int flags = app.activityInfo.applicationInfo.flags; in addSystemApps()
323 info.packageName = app.activityInfo.packageName; in addSystemApps()
324 info.appName = app.activityInfo.applicationInfo.loadLabel(pm); in addSystemApps()
325 info.icon = app.activityInfo.loadIcon(pm); in addSystemApps()
326 info.activityName = app.activityInfo.loadLabel(pm); in addSystemApps()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DDeviceInfoUtils.java138 if (info.activityInfo != null) { in getFeedbackReporterPackage()
139 if (!TextUtils.isEmpty(info.activityInfo.packageName)) { in getFeedbackReporterPackage()
142 pm.getApplicationInfo(info.activityInfo.packageName, 0); in getFeedbackReporterPackage()
146 info.activityInfo.packageName, feedbackReporter)) { in getFeedbackReporterPackage()
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutParser.java76 final ActivityInfo activityInfoNoMetadata = activities.get(i).activityInfo; in parseShortcuts()
101 ActivityInfo activityInfo, String packageName, @UserIdInt int userId, in parseShortcutsOneFile() argument
105 "Checking main activity %s", activityInfo.getComponentName())); in parseShortcutsOneFile()
110 parser = service.injectXmlMetaData(activityInfo, METADATA_KEY); in parseShortcutsOneFile()
115 final ComponentName activity = new ComponentName(packageName, activityInfo.name); in parseShortcutsOneFile()
160 + activityInfo.getComponentName() + ". Skipping the rest."); in parseShortcutsOneFile()

123456