Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/content/pm/
DResolveInfo.java41 public ActivityInfo activityInfo; field in ResolveInfo
144 ComponentInfo ci = activityInfo != null ? activityInfo : serviceInfo; in loadLabel()
178 ComponentInfo ci = activityInfo != null ? activityInfo : serviceInfo; in loadIcon()
198 if (activityInfo != null) return activityInfo.getIconResource(); in getIconResource()
221 if (activityInfo != null) { in dump()
223 activityInfo.dump(pw, prefix + " "); in dump()
234 activityInfo = orig.activityInfo; in ResolveInfo()
249 ComponentInfo ci = activityInfo != null ? activityInfo : serviceInfo; in toString()
261 if (activityInfo != null) { in writeToParcel()
263 activityInfo.writeToParcel(dest, parcelableFlags); in writeToParcel()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/pm/
DComponentTest.java142 assertNotNull(info2.activityInfo); in testResolveDisabledActivity()
143 assertFalse(info2.activityInfo.enabled); in testResolveDisabledActivity()
155 assertNotNull(info.activityInfo); in testResolveEnabledActivity()
156 assertTrue(info.activityInfo.enabled); in testResolveEnabledActivity()
175 assertNotNull(info.activityInfo); in testQueryDisabledActivity()
176 assertFalse(info.activityInfo.enabled); in testQueryDisabledActivity()
190 assertNotNull(info.activityInfo); in testQueryEnabledActivity()
191 assertTrue(info.activityInfo.enabled); in testQueryEnabledActivity()
207 final ActivityInfo activityInfo = in testGetDisabledActivityInfo() local
210 assertNotNull(activityInfo); in testGetDisabledActivityInfo()
[all …]
/frameworks/base/services/java/com/android/server/am/
DBroadcastQueue.java675 info.activityInfo.applicationInfo.packageName, in processNextBroadcast()
676 info.activityInfo.name); in processNextBroadcast()
679 int perm = mService.checkComponentPermission(info.activityInfo.permission, in processNextBroadcast()
680 r.callingPid, r.callingUid, info.activityInfo.applicationInfo.uid, in processNextBroadcast()
681 info.activityInfo.exported); in processNextBroadcast()
683 if (!info.activityInfo.exported) { in processNextBroadcast()
688 + " is not exported from uid " + info.activityInfo.applicationInfo.uid in processNextBroadcast()
695 + " requires " + info.activityInfo.permission in processNextBroadcast()
700 if (info.activityInfo.applicationInfo.uid != Process.SYSTEM_UID && in processNextBroadcast()
705 info.activityInfo.applicationInfo.packageName); in processNextBroadcast()
[all …]
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/
DKeyguardActivityLauncher.java82 if (resolved == null || resolved.activityInfo == null) { in getCameraWidgetInfo()
85 if (resolved.activityInfo.metaData == null || resolved.activityInfo.metaData.isEmpty()) { in getCameraWidgetInfo()
89 int layoutId = resolved.activityInfo.metaData.getInt(META_DATA_KEYGUARD_LAYOUT); in getCameraWidgetInfo()
94 info.contextPackage = resolved.activityInfo.packageName; in getCameraWidgetInfo()
266 if (tmp.activityInfo.name.equals(resolved.activityInfo.name) in wouldLaunchResolverActivity()
267 && tmp.activityInfo.packageName.equals(resolved.activityInfo.packageName)) { in wouldLaunchResolverActivity()
/frameworks/base/core/java/android/app/admin/
DDeviceAdminInfo.java233 ActivityInfo ai = receiver.activityInfo; in DeviceAdminInfo()
310 return mReceiver.activityInfo.packageName; in getPackageName()
318 return mReceiver.activityInfo.name; in getReceiverName()
326 return mReceiver.activityInfo; in getActivityInfo()
333 return new ComponentName(mReceiver.activityInfo.packageName, in getComponent()
334 mReceiver.activityInfo.name); in getComponent()
354 if (mReceiver.activityInfo.descriptionRes != 0) { in loadDescription()
358 packageName = mReceiver.activityInfo.packageName; in loadDescription()
359 applicationInfo = mReceiver.activityInfo.applicationInfo; in loadDescription()
362 mReceiver.activityInfo.descriptionRes, applicationInfo); in loadDescription()
[all …]
/frameworks/base/core/java/android/speech/
DRecognizerIntent.java331 if (ri == null || ri.activityInfo == null || ri.activityInfo.metaData == null) return null; in getVoiceDetailsIntent()
333 String className = ri.activityInfo.metaData.getString(DETAILS_META_DATA); in getVoiceDetailsIntent()
337 detailsIntent.setComponent(new ComponentName(ri.activityInfo.packageName, className)); in getVoiceDetailsIntent()
/frameworks/base/core/java/android/preference/
DPreferenceManager.java216 final ActivityInfo activityInfo = activities.get(i).activityInfo; in inflateFromIntent() local
217 final Bundle metaData = activityInfo.metaData; in inflateFromIntent()
225 final String uniqueResId = activityInfo.packageName + ":" in inflateFromIntent()
226 + activityInfo.metaData.getInt(METADATA_KEY_PREFERENCES); in inflateFromIntent()
233 context = mContext.createPackageContext(activityInfo.packageName, 0); in inflateFromIntent()
235 Log.w(TAG, "Could not create context for " + activityInfo.packageName + ": " in inflateFromIntent()
241 final XmlResourceParser parser = activityInfo.loadXmlMetaData(context in inflateFromIntent()
/frameworks/base/core/java/android/app/
DLocalActivityManager.java55 ActivityInfo activityInfo; // Package manager info about activity. field in LocalActivityManager.LocalActivityRecord
132 if (r.activityInfo == null) { in moveToState()
133 r.activityInfo = mActivityThread.resolveActivityInfo(r.intent); in moveToState()
136 mParent, r.id, r.intent, r.activityInfo, r, r.instanceState, instance); in moveToState()
281 aInfo = r.activityInfo; in startActivity()
304 } else if (r.activityInfo != null) { in startActivity()
307 if (aInfo == r.activityInfo || in startActivity()
308 (aInfo.name.equals(r.activityInfo.name) && in startActivity()
309 aInfo.packageName.equals(r.activityInfo.packageName))) { in startActivity()
345 r.activityInfo = aInfo; in startActivity()
DSearchableInfo.java515 public static SearchableInfo getActivityMetaData(Context context, ActivityInfo activityInfo, in getActivityMetaData() argument
527 activityInfo.loadXmlMetaData(userContext.getPackageManager(), MD_LABEL_SEARCHABLE); in getActivityMetaData()
531 ComponentName cName = new ComponentName(activityInfo.packageName, activityInfo.name); in getActivityMetaData()
538 Log.d(LOG_TAG, "Checked " + activityInfo.name in getActivityMetaData()
547 Log.d(LOG_TAG, "Checked " + activityInfo.name + ", no searchable meta-data"); in getActivityMetaData()
/frameworks/base/core/java/com/android/internal/app/
DResolverActivity.java203 dr = getIcon(mPm.getResourcesForApplication(ri.activityInfo.packageName), iconRes); in loadIconForResolveInfo()
361 set[i] = new ComponentName(r.activityInfo.packageName, in onIntentSelected()
362 r.activityInfo.name); in onIntentSelected()
377 .setData(Uri.fromParts("package", ri.activityInfo.packageName, null)) in showAppDetails()
449 ActivityInfo ai = currentResolveList.get(i).activityInfo; in rebuildList()
469 r0.activityInfo.name + "=" + in rebuildList()
471 ri.activityInfo.name + "=" + in rebuildList()
501 ri.activityInfo = ai; in rebuildList()
522 r0Label = r0.activityInfo.packageName; in rebuildList()
527 riLabel = ri.activityInfo.packageName; in rebuildList()
[all …]
/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()
DUsbResolverActivity.java100 final int uid = ri.activityInfo.applicationInfo.uid; in onIntentSelected()
108 service.setDevicePackage(mDevice, ri.activityInfo.packageName, userId); in onIntentSelected()
117 service.setAccessoryPackage(mAccessory, ri.activityInfo.packageName, userId); in onIntentSelected()
/frameworks/testing/app-tests/AppLaunchTest/src/com/android/applaunchtest/
DAppLaunchTest.java108 Log.i(TAG, String.format("Running activity %s/%s", app.activityInfo.packageName, in runOneActivity()
109 app.activityInfo.name)); in runOneActivity()
142 err.info.processName, app.activityInfo.packageName)); in runOneActivity()
166 final String appPkg = app.activityInfo.packageName; in packageMatches()
187 final ComponentName component = new ComponentName(app.activityInfo.packageName, in intentForActivity()
188 app.activityInfo.name); in intentForActivity()
/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()
221 final String appPkg = app.activityInfo.packageName; in packageMatches()
243 final ComponentName component = new ComponentName(app.activityInfo.packageName, in intentForActivity()
244 app.activityInfo.name); in intentForActivity()
DSmokeTestRunner.java84 appTest.setName(app.activityInfo.name); in getAllTests()
/frameworks/base/tests/MemoryUsage/src/com/android/tests/memoryusage/
DMemoryUsageTest.java124 + " package: " + ri.activityInfo.packageName in createMappings()
125 + " name: " + ri.activityInfo.name); in createMappings()
129 startIntent.setClassName(ri.activityInfo.packageName, in createMappings()
130 ri.activityInfo.name); in createMappings()
133 ri.activityInfo.processName); in createMappings()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DHwTests.java89 : info.activityInfo.name; in getData()
99 info.activityInfo.applicationInfo.packageName, in getData()
100 info.activityInfo.name)); in getData()
/frameworks/base/services/java/com/android/server/search/
DSearchables.java234 ActivityInfo ai = info.activityInfo; in buildSearchableList()
360 return (res.activityInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0; in isSystemApp()
369 ActivityInfo ai = providerList.get(0).activityInfo; in getDefaultGlobalSearchProvider()
397 ActivityInfo ai = activities.get(0).activityInfo; in findWebSearchActivity()
DSearchManagerService.java253 info.activityInfo.applicationInfo.packageName, in getAssistIntent()
254 info.activityInfo.name); in getAssistIntent()
/frameworks/base/policy/src/com/android/internal/policy/impl/
DRecentApplicationsDialog.java300 final ActivityInfo activityInfo = resolveInfo.activityInfo; in reloadButtons() local
301 final String title = activityInfo.loadLabel(pm).toString(); in reloadButtons()
302 Drawable icon = activityInfo.loadIcon(pm); in reloadButtons()
/frameworks/base/services/java/com/android/server/usb/
DUsbSettingsManager.java542 ActivityInfo ai = info.activityInfo; in packageMatchesLocked()
698 if (rInfo.activityInfo != null && in resolveActivity()
699 rInfo.activityInfo.applicationInfo != null && in resolveActivity()
700 (rInfo.activityInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0) { in resolveActivity()
709 if (rInfo.activityInfo != null && in resolveActivity()
710 defaultPackage.equals(rInfo.activityInfo.packageName)) { in resolveActivity()
720 grantDevicePermission(device, defaultRI.activityInfo.applicationInfo.uid); in resolveActivity()
722 grantAccessoryPermission(accessory, defaultRI.activityInfo.applicationInfo.uid); in resolveActivity()
728 new ComponentName(defaultRI.activityInfo.packageName, in resolveActivity()
729 defaultRI.activityInfo.name)); in resolveActivity()
/frameworks/base/core/java/android/widget/
DActivityChooserModel.java477 chosenActivity.resolveInfo.activityInfo.packageName, in chooseActivity()
478 chosenActivity.resolveInfo.activityInfo.name); in chooseActivity()
558 newDefaultActivity.resolveInfo.activityInfo.packageName, in setDefaultActivity()
559 newDefaultActivity.resolveInfo.activityInfo.name); in setDefaultActivity()
946 String packageName = activity.resolveInfo.activityInfo.packageName; in sort()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DActivityChooserModel.java470 chosenActivity.resolveInfo.activityInfo.packageName, in chooseActivity()
471 chosenActivity.resolveInfo.activityInfo.name); in chooseActivity()
551 newDefaultActivity.resolveInfo.activityInfo.packageName, in setDefaultActivity()
552 newDefaultActivity.resolveInfo.activityInfo.name); in setDefaultActivity()
946 String packageName = activity.resolveInfo.activityInfo.packageName; in sort()
/frameworks/base/tests/AppLaunch/src/com/android/tests/applaunch/
DAppLaunch.java177 startIntent.setClassName(ri.activityInfo.packageName, in createMappings()
178 ri.activityInfo.name); in createMappings()
182 mNameToProcess.put(appName, ri.activityInfo.processName); in createMappings()
/frameworks/base/core/java/com/android/internal/view/menu/
DActionMenu.java87 ri.activityInfo.applicationInfo.packageName, in addIntentOptions()
88 ri.activityInfo.name)); in addIntentOptions()

12