Home
last modified time | relevance | path

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

12345

/packages/apps/MusicFX/src/com/android/musicfx/
DCompatibility.java157 if (foo.activityInfo.name.equals(Compatibility.Redirector.class.getName())) { in pickDefaultControlPanel()
162 if (foo.activityInfo.name.equals(savedDefName) && in pickDefaultControlPanel()
163 foo.activityInfo.packageName.equals(savedDefPackage) && in pickDefaultControlPanel()
164 foo.activityInfo.enabled) { in pickDefaultControlPanel()
168 } else if (foo.activityInfo.packageName.equals(updatedPackage)) { in pickDefaultControlPanel()
171 … } else if (otherPanel == null && !foo.activityInfo.packageName.equals(getPackageName())) { in pickDefaultControlPanel()
193 String defPackage = defPanel.activityInfo.packageName; in pickDefaultControlPanel()
194 String defName = defPanel.activityInfo.name; in pickDefaultControlPanel()
223 … ComponentName comp = new ComponentName(foo.activityInfo.packageName, foo.activityInfo.name); in setupReceivers()
224 if (foo.activityInfo.packageName.equals(defPackage)) { in setupReceivers()
DControlPanelPicker.java65 if (foo.activityInfo.name.equals(Compatibility.Redirector.class.getName())) { in onCreate()
68 CharSequence name = pmgr.getApplicationLabel(foo.activityInfo.applicationInfo); in onCreate()
69 … c.addRow(new Object [] { 0, name, foo.activityInfo.packageName, foo.activityInfo.name }); in onCreate()
71 if (foo.activityInfo.name.equals(savedDefName) && in onCreate()
72 foo.activityInfo.packageName.equals(savedDefPackage) && in onCreate()
73 foo.activityInfo.enabled) { in onCreate()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/
DApplicationDetailFragment.java97 v -> forceStopPackage(mResolveInfo.activityInfo.packageName)); in onActivityCreated()
126 mResolveInfo.activityInfo.packageName, 0 /* flag */); in getAppInfo()
128 Log.e(TAG, "incorrect packagename: " + mResolveInfo.activityInfo.packageName, e); in getAppInfo()
136 mResolveInfo.activityInfo.packageName, 0 /* flag */); in getPackageInfo()
138 Log.e(TAG, "incorrect packagename: " + mResolveInfo.activityInfo.packageName, e); in getPackageInfo()
168 mResolveInfo.activityInfo.packageName, in updateDisableable()
194 if (mDpm.packageHasActiveAdmins(mResolveInfo.activityInfo.packageName)) { in updateForceStopButton()
209 Uri.fromParts("package", mResolveInfo.activityInfo.packageName, null)); in updateForceStopButton()
211 mResolveInfo.activityInfo.packageName in updateForceStopButton()
216 + mResolveInfo.activityInfo.packageName); in updateForceStopButton()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DPendingAddShortcutInfo.java28 public ShortcutConfigActivityInfo activityInfo; field in PendingAddShortcutInfo
30 public PendingAddShortcutInfo(ShortcutConfigActivityInfo activityInfo) { in PendingAddShortcutInfo() argument
31 this.activityInfo = activityInfo; in PendingAddShortcutInfo()
32 componentName = activityInfo.getComponent(); in PendingAddShortcutInfo()
33 user = activityInfo.getUser(); in PendingAddShortcutInfo()
34 itemType = activityInfo.getItemType(); in PendingAddShortcutInfo()
/packages/apps/Settings/src/com/android/settings/
DCreateShortcut.java72 ActivityInfo activityInfo = resolveInfo.activityInfo; in createResultIntent() local
74 Icon maskableIcon = activityInfo.icon != 0 ? Icon.createWithAdaptiveBitmap( in createResultIntent()
75 createIcon(activityInfo.icon, in createResultIntent()
95 if (activityInfo.icon != 0) { in createResultIntent()
96 intent.putExtra(Intent.EXTRA_SHORTCUT_ICON, createIcon(activityInfo.icon, in createResultIntent()
104 if (info == null || info.activityInfo == null) { in logCreateShortcut()
109 info.activityInfo.name); in logCreateShortcut()
149 if (info.activityInfo.name.endsWith(TetherSettingsActivity.class.getSimpleName())) { in onQueryPackageManager()
/packages/apps/Settings/src/com/android/settings/wallpaper/
DWallpaperTypeSettings.java72 info.activityInfo.packageName, info.activityInfo.name)); in populateWallpaperTypes()
75 if (label == null) label = info.activityInfo.packageName; in populateWallpaperTypes()
97 if (!wallpaperPickerPackage.equals(info.activityInfo.packageName)) {
101 if (label == null) label = info.activityInfo.packageName;
108 data.intentTargetPackage = info.activityInfo.packageName;
109 data.intentTargetClass = info.activityInfo.name;
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DSettingsDumpServiceTest.java62 mResolveInfo.activityInfo = new ActivityInfo(); in testDumpDefaultBrowser_DefaultBrowser_ReturnBrowserName()
63 mResolveInfo.activityInfo.packageName = PACKAGE_BROWSER; in testDumpDefaultBrowser_DefaultBrowser_ReturnBrowserName()
70 mResolveInfo.activityInfo = new ActivityInfo(); in testDumpDefaultBrowser_NoDefault_ReturnNull()
71 mResolveInfo.activityInfo.packageName = PACKAGE_NULL; in testDumpDefaultBrowser_NoDefault_ReturnNull()
78 mResolveInfo.activityInfo = new ActivityInfo(); in testDump_ReturnJsonObject()
79 mResolveInfo.activityInfo.packageName = PACKAGE_BROWSER; in testDump_ReturnJsonObject()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestResolveInfo.java26 ActivityInfo activityInfo = new ActivityInfo(); in create() local
27 activityInfo.name = "DocsUiTestActivity"; in create()
30 activityInfo.applicationInfo = appInfo; in create()
31 info.activityInfo = activityInfo; in create()
DTestPackageManager.java86 info.activityInfo = new ActivityInfo(); in resolveActivity()
87 info.activityInfo.packageName = in resolveActivity()
89 info.activityInfo.applicationInfo = new ApplicationInfo(); in resolveActivity()
90 info.activityInfo.applicationInfo.packageName = intent.getPackage(); in resolveActivity()
91 info.activityInfo.name = "Fake Quick Viewer"; in resolveActivity()
/packages/apps/Launcher3/src/com/android/launcher3/
DInstallShortcutReceiver.java304 final LauncherActivityInfo activityInfo; field in InstallShortcutReceiver.PendingInstallShortcutInfo
318 activityInfo = null; in PendingInstallShortcutInfo()
335 activityInfo = info; in PendingInstallShortcutInfo()
351 activityInfo = null; in PendingInstallShortcutInfo()
368 activityInfo = null; in PendingInstallShortcutInfo()
383 if (activityInfo != null) { in encodeToString()
455 if (activityInfo != null) { in getItemInfo()
456 AppInfo appInfo = new AppInfo(mContext, activityInfo, user); in getItemInfo()
463 app.getIconCache().getTitleAndIcon(si, activityInfo, false /* useLowResIcon */); in getItemInfo()
469 si, activityInfo, false /* useLowResIcon */); in getItemInfo()
[all …]
DDefaultLayoutParser.java128 final ActivityInfo info = resolved.activityInfo; in invalidPackageOrClass()
146 appList.get(i).activityInfo.packageName, 0); in getSingleSystemActivity()
168 if (tmp.activityInfo.name.equals(resolved.activityInfo.name) in wouldLaunchResolverActivity()
169 && tmp.activityInfo.packageName.equals(resolved.activityInfo.packageName)) { in wouldLaunchResolverActivity()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DApplicationFeatureProviderImplTest.java233 new ApplicationInfo(app1.activityInfo.applicationInfo))); in testFindPersistentPreferredActivities()
236 new ApplicationInfo(app1.activityInfo.applicationInfo))); in testFindPersistentPreferredActivities()
238 new ApplicationInfo(app2.activityInfo.applicationInfo))); in testFindPersistentPreferredActivities()
275 final ActivityInfo activityInfo = new ActivityInfo(); in createResolveInfo() local
276 activityInfo.packageName = packageName; in createResolveInfo()
277 activityInfo.applicationInfo = applicationInfo; in createResolveInfo()
279 resolveInfo.activityInfo = activityInfo; in createResolveInfo()
/packages/apps/Tag/src/com/android/apps/tag/record/
DRecordUtils.java70 if (numActivities == 0 || (numActivities == 1 && !activities.get(0).activityInfo.enabled)) { in getViewsForIntent()
86 if (!resolveInfo.activityInfo.enabled) { in getViewsForIntent()
108 ActivityInfo activityInfo = resolveInfo.activityInfo; in buildActivityView() local
111 intent.setComponent(new ComponentName(activityInfo.packageName, activityInfo.name)); in buildActivityView()
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationSettingsBase.java238 final ActivityInfo activityInfo = ri.activityInfo; in applyConfigActivities() local
239 final ApplicationInfo appInfo = activityInfo.applicationInfo; in applyConfigActivities()
243 + activityInfo.name + ") for unknown package " in applyConfigActivities()
244 + activityInfo.packageName); in applyConfigActivities()
249 + activityInfo.name + ") for package " in applyConfigActivities()
250 + activityInfo.packageName); in applyConfigActivities()
254 .setClassName(activityInfo.packageName, activityInfo.name); in applyConfigActivities()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/
DProvisioningActivity.java152 if (ri.activityInfo == null) { in maybeLaunchNfcUserSetupCompleteIntent()
155 if (!permission.BIND_DEVICE_ADMIN.equals(ri.activityInfo.permission)) { in maybeLaunchNfcUserSetupCompleteIntent()
156 ProvisionLogger.loge("Component " + ri.activityInfo.getComponentName() in maybeLaunchNfcUserSetupCompleteIntent()
159 ri.activityInfo.packageName) != PackageManager.PERMISSION_GRANTED) { in maybeLaunchNfcUserSetupCompleteIntent()
160 ProvisionLogger.loge("Package " + ri.activityInfo.packageName in maybeLaunchNfcUserSetupCompleteIntent()
163 targetComponent = ri.activityInfo.getComponentName(); in maybeLaunchNfcUserSetupCompleteIntent()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/setting/usb/
DUsbDeviceHandlerResolver.java447 ActivityInfo activityInfo; in dispatch() local
449 activityInfo = mPackageManager.getActivityInfo(component, PackageManager.GET_META_DATA); in dispatch()
457 DeviceFilter filter = packageMatches(activityInfo, intent.getAction(), device, true); in dispatch()
460 mDispatchUid = activityInfo.applicationInfo.uid; in dispatch()
468 mUsbManager.grantPermission(device, activityInfo.applicationInfo.uid); in dispatch()
504 info.first.activityInfo.packageName, info.first.activityInfo.name)); in doHandleResolveHandlers()
623 option.first.activityInfo.packageName, option.first.activityInfo.name)); in doHandleServiceConnectionStateChanged()
644 DeviceFilter filter = packageMatches(resolveInfo.activityInfo, in getDeviceMatches()
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
DUsbDeviceHandlerResolver.java430 ActivityInfo activityInfo; in dispatch() local
432 activityInfo = mPackageManager.getActivityInfo(component, PackageManager.GET_META_DATA); in dispatch()
444 packageMatches(activityInfo, intent.getAction(), device, true); in dispatch()
453 mUsbManager.grantPermission(device, activityInfo.applicationInfo.uid); in dispatch()
482 info.first.activityInfo.packageName, info.first.activityInfo.name)); in doHandleResolveHandlers()
560 option.first.activityInfo.packageName, option.first.activityInfo.name)); in doHandleServiceConnectionStateChanged()
576 DeviceFilter filter = packageMatches(resolveInfo.activityInfo, in getDeviceMatches()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DAbstractConversationWebViewClient.java199 final ActivityInfo activityInfo = resolveInfo.activityInfo; in generateProxyIntent() local
200 if (packageName.equals(activityInfo.packageName)) { in generateProxyIntent()
201 intent.setClassName(activityInfo.packageName, activityInfo.name); in generateProxyIntent()
/packages/apps/TV/src/com/android/tv/util/
DPartner.java101 final String packageName = info.activityInfo.packageName; in getInstance()
102 final String receiverName = info.activityInfo.name; in getInstance()
177 return (info.activityInfo != null in isSystemApp()
178 && info.activityInfo.applicationInfo != null in isSystemApp()
179 && (info.activityInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0); in isSystemApp()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DDragView.java318 LauncherActivityInfo activityInfo = LauncherAppsCompat.getInstance(mLauncher) in getFullDrawable() local
320 outObj[0] = activityInfo; in getFullDrawable()
321 return (activityInfo != null) ? appState.getIconCache() in getFullDrawable()
322 .getFullResIcon(activityInfo, false) : null; in getFullDrawable()
325 ShortcutConfigActivityInfo activityInfo = in getFullDrawable() local
326 ((PendingAddShortcutInfo) info).activityInfo; in getFullDrawable()
327 outObj[0] = activityInfo; in getFullDrawable()
328 return activityInfo.getFullResIcon(appState.getIconCache()); in getFullDrawable()
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/
DAppItem.java49 ActivityInfo activityInfo = info.activityInfo; in getStringId() local
52 STRING_ID_FORMAT, activityInfo.applicationInfo.packageName, activityInfo.name); in getStringId()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/provisioning/
DProvisioningActivityTest.java471 ActivityInfo activityInfo = new ActivityInfo(); in testSuccess_Nfc() local
472 activityInfo.packageName = TEST_ACTIVITY.getPackageName(); in testSuccess_Nfc()
473 activityInfo.name = TEST_ACTIVITY.getClassName(); in testSuccess_Nfc()
474 activityInfo.permission = permission.BIND_DEVICE_ADMIN; in testSuccess_Nfc()
476 resolveInfo.activityInfo = activityInfo; in testSuccess_Nfc()
483 eq(activityInfo.packageName))).thenReturn(PackageManager.PERMISSION_GRANTED); in testSuccess_Nfc()
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/
DThirdPartyWallpaperInfo.java36 mResolveInfo.activityInfo.packageName, mResolveInfo.activityInfo.name); in onClick()
66 excludePackages.add(info.activityInfo.packageName); in getAll()
73 if (!excludePackages.contains(info.activityInfo.packageName)) { in getAll()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/assist/
DDefaultAssistPreferenceControllerTest.java108 resolveInfo.activityInfo = new ActivityInfo(); in getSettingIntent_noSettingsActivity_shouldNotCrash()
109 resolveInfo.activityInfo.name = "assist"; in getSettingIntent_noSettingsActivity_shouldNotCrash()
110 resolveInfo.activityInfo.applicationInfo = new ApplicationInfo(); in getSettingIntent_noSettingsActivity_shouldNotCrash()
111 resolveInfo.activityInfo.applicationInfo.packageName = "com.android.settings"; in getSettingIntent_noSettingsActivity_shouldNotCrash()
/packages/services/Telephony/src/com/android/phone/
DEmergencyActionGroup.java167 if (infos.get(i).activityInfo == null) continue; in resolveAssistPackageAndQueryActivites()
168 String packageName = infos.get(i).activityInfo.packageName; in resolveAssistPackageAndQueryActivites()
215 if (resolveInfo == null || resolveInfo.activityInfo == null) return null; in getComponentName()
216 return new ComponentName(resolveInfo.activityInfo.packageName, in getComponentName()
217 resolveInfo.activityInfo.name); in getComponentName()

12345