Home
last modified time | relevance | path

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

123456789

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/
DExtraSettingsLoaderTest.java82 ActivityInfo activityInfo = new ActivityInfo(); in testLoadPreference_stringResources_shouldLoadResources() local
83 activityInfo.metaData = bundle; in testLoadPreference_stringResources_shouldLoadResources()
84 activityInfo.packageName = "package_name"; in testLoadPreference_stringResources_shouldLoadResources()
85 activityInfo.name = "class_name"; in testLoadPreference_stringResources_shouldLoadResources()
89 resolveInfoSystem.activityInfo = activityInfo; in testLoadPreference_stringResources_shouldLoadResources()
112 ActivityInfo activityInfo = new ActivityInfo(); in testLoadPreference_metadataBundleIsValue() local
113 activityInfo.metaData = bundle; in testLoadPreference_metadataBundleIsValue()
114 activityInfo.packageName = "package_name"; in testLoadPreference_metadataBundleIsValue()
115 activityInfo.name = "class_name"; in testLoadPreference_metadataBundleIsValue()
119 resolveInfoSystem.activityInfo = activityInfo; in testLoadPreference_metadataBundleIsValue()
[all …]
/packages/services/Car/service/src/com/android/car/am/
DFixedActivityService.java391 RunningActivityInfo activityInfo = mRunningActivities.valueAt(i); in launchIfNecessary() local
392 activityInfo.isVisible = false; in launchIfNecessary()
393 if (isUserAllowedToLaunchActivity(activityInfo.userId)) { in launchIfNecessary()
397 if (activityInfo.taskId != INVALID_TASK_ID) { in launchIfNecessary()
399 + activityInfo); in launchIfNecessary()
401 mAm.removeTask(activityInfo.taskId); in launchIfNecessary()
424 RunningActivityInfo activityInfo = mRunningActivities.get(stackInfo.displayId); in launchIfNecessary() local
425 if (activityInfo == null) { in launchIfNecessary()
429 if (activityInfo.intent.getComponent().equals(stackInfo.topActivity) in launchIfNecessary()
430 && activityInfo.userId == topUserId && stackInfo.visible) { in launchIfNecessary()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/system/legal/
DLegalPreferenceControllerTest.java85 ActivityInfo activityInfo = new ActivityInfo(); in refreshUi_intentResolvesToActivity_isVisible() local
86 activityInfo.packageName = "some.test.package"; in refreshUi_intentResolvesToActivity_isVisible()
87 activityInfo.name = "SomeActivity"; in refreshUi_intentResolvesToActivity_isVisible()
88 activityInfo.applicationInfo = new ApplicationInfo(); in refreshUi_intentResolvesToActivity_isVisible()
89 activityInfo.applicationInfo.flags = ApplicationInfo.FLAG_SYSTEM; in refreshUi_intentResolvesToActivity_isVisible()
97 resolveInfo.activityInfo = activityInfo; in refreshUi_intentResolvesToActivity_isVisible()
114 ActivityInfo activityInfo = new ActivityInfo(); in refreshUi_intentResolvesToActivity_updatesTitle() local
115 activityInfo.packageName = "some.test.package"; in refreshUi_intentResolvesToActivity_updatesTitle()
116 activityInfo.name = "SomeActivity"; in refreshUi_intentResolvesToActivity_updatesTitle()
117 activityInfo.applicationInfo = new ApplicationInfo(); in refreshUi_intentResolvesToActivity_updatesTitle()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/shortcut/
DCreateShortcutPreferenceControllerTest.java111 ri1.activityInfo = new ActivityInfo(); in queryShortcuts_shouldOnlyIncludeSystemApp()
112 ri1.activityInfo.name = "activity1"; in queryShortcuts_shouldOnlyIncludeSystemApp()
113 ri1.activityInfo.applicationInfo = new ApplicationInfo(); in queryShortcuts_shouldOnlyIncludeSystemApp()
114 ri1.activityInfo.applicationInfo.flags = 0; in queryShortcuts_shouldOnlyIncludeSystemApp()
116 ri2.activityInfo = new ActivityInfo(); in queryShortcuts_shouldOnlyIncludeSystemApp()
117 ri2.activityInfo.name = "activity2"; in queryShortcuts_shouldOnlyIncludeSystemApp()
118 ri2.activityInfo.applicationInfo = new ApplicationInfo(); in queryShortcuts_shouldOnlyIncludeSystemApp()
119 ri2.activityInfo.applicationInfo.flags = ApplicationInfo.FLAG_SYSTEM; in queryShortcuts_shouldOnlyIncludeSystemApp()
127 assertThat(info.get(0).activityInfo).isEqualTo(ri2.activityInfo); in queryShortcuts_shouldOnlyIncludeSystemApp()
134 ri1.activityInfo = new ActivityInfo(); in queryShortcuts_shouldSortBasedOnPriority()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DInstantAppButtonsPreferenceControllerTest.java169 final ActivityInfo activityInfo = mock(ActivityInfo.class); in onPrepareOptionsMenu_hasAppStoreLink_shoulNotDisableInstallInstantAppMenu() local
170 resolveInfo.activityInfo = activityInfo; in onPrepareOptionsMenu_hasAppStoreLink_shoulNotDisableInstallInstantAppMenu()
171 activityInfo.packageName = TEST_INSTALLER_PACKAGE_NAME; in onPrepareOptionsMenu_hasAppStoreLink_shoulNotDisableInstallInstantAppMenu()
172 activityInfo.name = TEST_INSTALLER_ACTIVITY_NAME; in onPrepareOptionsMenu_hasAppStoreLink_shoulNotDisableInstallInstantAppMenu()
195 final ActivityInfo activityInfo = mock(ActivityInfo.class); in onOptionsItemSelected_shouldOpenAppStore() local
196 resolveInfo.activityInfo = activityInfo; in onOptionsItemSelected_shouldOpenAppStore()
197 activityInfo.packageName = TEST_INSTALLER_PACKAGE_NAME; in onOptionsItemSelected_shouldOpenAppStore()
198 activityInfo.name = TEST_INSTALLER_ACTIVITY_NAME; in onOptionsItemSelected_shouldOpenAppStore()
239 final ActivityInfo activityInfo = mock(ActivityInfo.class); in displayPreference_hasAppStoreLink_shoulSetClickListenerForInstallButton() local
240 resolveInfo.activityInfo = activityInfo; in displayPreference_hasAppStoreLink_shoulSetClickListenerForInstallButton()
[all …]
DAppSettingPreferenceControllerTest.java86 info.activityInfo = new ActivityInfo(); in getAvailabilityStatus_hasAppSetting_shouldBeAvailable()
87 info.activityInfo.packageName = TEST_PKG_NAME; in getAvailabilityStatus_hasAppSetting_shouldBeAvailable()
88 info.activityInfo.name = TEST_CLASS_NAME; in getAvailabilityStatus_hasAppSetting_shouldBeAvailable()
104 info.activityInfo = new ActivityInfo(); in clickPreference_hasAppSetting_shouldLaunchIntent()
105 info.activityInfo.packageName = TEST_PKG_NAME; in clickPreference_hasAppSetting_shouldLaunchIntent()
106 info.activityInfo.name = TEST_CLASS_NAME; in clickPreference_hasAppSetting_shouldLaunchIntent()
/packages/apps/Settings/src/com/android/settings/shortcut/
DCreateShortcutPreferenceController.java122 pref.setKey(info.activityInfo.getComponentName().flattenToString()); in updateState()
156 final ActivityInfo activityInfo = resolveInfo.activityInfo; in createResultIntent() local
157 if (activityInfo.icon != 0) { in createResultIntent()
160 activityInfo.applicationInfo, in createResultIntent()
161 activityInfo.icon, in createResultIntent()
181 if (info.activityInfo.name.endsWith(TetherSettingsActivity.class.getSimpleName())) { in queryShortcuts()
186 if (!info.activityInfo.applicationInfo.isSystemApp()) { in queryShortcuts()
187 Log.d(TAG, "Skipping non-system app: " + info.activityInfo); in queryShortcuts()
197 if (info == null || info.activityInfo == null) { in logCreateShortcut()
202 info.activityInfo.name); in logCreateShortcut()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/shortcut/
DCreateShortcutPreferenceController.java122 pref.setKey(info.activityInfo.getComponentName().flattenToString()); in updateState()
146 final ActivityInfo activityInfo = resolveInfo.activityInfo; in createResultIntent() local
149 if (activityInfo.icon != 0 && activityInfo.applicationInfo != null) { in createResultIntent()
151 activityInfo.applicationInfo, activityInfo.icon, in createResultIntent()
173 if (activityInfo.icon != 0) { in createResultIntent()
175 activityInfo.applicationInfo, in createResultIntent()
176 activityInfo.icon, in createResultIntent()
196 if (info.activityInfo.name.endsWith(TetherSettingsActivity.class.getSimpleName())) { in queryShortcuts()
201 if (!info.activityInfo.applicationInfo.isSystemApp()) { in queryShortcuts()
202 Log.d(TAG, "Skipping non-system app: " + info.activityInfo); in queryShortcuts()
[all …]
/packages/apps/MusicFX/src/com/android/musicfx/
DCompatibility.java77 defPackage = defPanel.activityInfo.packageName; in onCreate()
78 defName = defPanel.activityInfo.name; in onCreate()
165 if (foo.activityInfo.name.equals(Compatibility.Redirector.class.getName())) { in searchControlPanel()
170 if (foo.activityInfo.name.equals(savedDefName) && in searchControlPanel()
171 foo.activityInfo.packageName.equals(savedDefPackage) && in searchControlPanel()
172 foo.activityInfo.enabled) { in searchControlPanel()
176 } else if (foo.activityInfo.packageName.equals(updatedPackage)) { in searchControlPanel()
180 !foo.activityInfo.packageName.equals(context.getPackageName())) { in searchControlPanel()
209 String defPackage = defPanel.activityInfo.packageName; in pickDefaultControlPanel()
210 String defName = defPanel.activityInfo.name; in pickDefaultControlPanel()
[all …]
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/Settings/tests/robotests/src/com/android/settings/dashboard/
DSummaryLoaderTest.java61 final ActivityInfo activityInfo = new ActivityInfo(); in SetUp() local
62 activityInfo.packageName = "pkg"; in SetUp()
63 activityInfo.name = "class"; in SetUp()
64 mTile = new Tile(activityInfo, CategoryKey.CATEGORY_HOMEPAGE); in SetUp()
97 final ActivityInfo activityInfo = new ActivityInfo(); in testUpdateSummaryToCache_hasCache_shouldUpdate() local
98 activityInfo.packageName = "pkg"; in testUpdateSummaryToCache_hasCache_shouldUpdate()
99 activityInfo.name = "cls"; in testUpdateSummaryToCache_hasCache_shouldUpdate()
100 activityInfo.metaData = new Bundle(); in testUpdateSummaryToCache_hasCache_shouldUpdate()
101 activityInfo.metaData.putString(META_DATA_PREFERENCE_KEYHINT, "123"); in testUpdateSummaryToCache_hasCache_shouldUpdate()
102 final Tile tile = new Tile(activityInfo, category.key); in testUpdateSummaryToCache_hasCache_shouldUpdate()
/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/Car/libs/car-media-common/tests/robotests/src/com/android/car/media/common/source/
DMediaSourcesLiveDataTest.java86 packageInfo.activities = new ActivityInfo[]{info.activityInfo}; in setUp()
87 packageInfo.packageName = info.activityInfo.packageName; in setUp()
88 packageInfo.applicationInfo = info.activityInfo.applicationInfo; in setUp()
201 ActivityInfo activityInfo = new ActivityInfo(); in newActivityResolveInfo() local
202 activityInfo.packageName = packageName; in newActivityResolveInfo()
203 activityInfo.name = "activity"; in newActivityResolveInfo()
204 activityInfo.nonLocalizedLabel = "Activity Label " + packageName; in newActivityResolveInfo()
208 activityInfo.applicationInfo = applicationInfo; in newActivityResolveInfo()
209 resolveInfo.activityInfo = activityInfo; in newActivityResolveInfo()
225 resolveInfo.activityInfo = newActivityResolveInfo(packageName).activityInfo; in newServiceResolveInfo()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/
DApplicationDetailsFragmentTest.java289 ActivityInfo activityInfo = new ActivityInfo(); in onStart_bundledApp_homePackage_disablesDisableButton() local
290 activityInfo.packageName = PACKAGE_NAME; in onStart_bundledApp_homePackage_disablesDisableButton()
291 homeActivity.activityInfo = activityInfo; in onStart_bundledApp_homePackage_disablesDisableButton()
383 ActivityInfo activityInfo = new ActivityInfo(); in onStart_noDefaultHome_onlyHomeApp_disablesUninstallButton() local
384 activityInfo.packageName = PACKAGE_NAME; in onStart_noDefaultHome_onlyHomeApp_disablesUninstallButton()
385 homeActivity.activityInfo = activityInfo; in onStart_noDefaultHome_onlyHomeApp_disablesUninstallButton()
400 ActivityInfo activityInfo = new ActivityInfo(); in onStart_noDefaultHome_multipleHomeApps_enablesUninstallButton() local
401 activityInfo.packageName = PACKAGE_NAME; in onStart_noDefaultHome_multipleHomeApps_enablesUninstallButton()
402 homeActivity.activityInfo = activityInfo; in onStart_noDefaultHome_multipleHomeApps_enablesUninstallButton()
407 altHomeActivity.activityInfo = altActivityInfo; in onStart_noDefaultHome_multipleHomeApps_enablesUninstallButton()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/location/
DLocationFooterPreferenceController.java163 final ActivityInfo activityInfo = resolveInfo.activityInfo; in getFooterData() local
164 final ApplicationInfo appInfo = activityInfo.applicationInfo; in getFooterData()
174 if (activityInfo.metaData == null) { in getFooterData()
176 Log.d(TAG, "No METADATA in broadcast receiver " + activityInfo.name); in getFooterData()
182 activityInfo.metaData.getInt(LocationManager.METADATA_SETTINGS_FOOTER_STRING); in getFooterData()
194 new ComponentName(activityInfo.packageName, activityInfo.name))); in getFooterData()
/packages/apps/Car/Settings/src/com/android/car/settings/location/
DLocationFooterPreferenceController.java143 ActivityInfo activityInfo = resolveInfo.activityInfo; in getInjectedLocationFooters() local
144 ApplicationInfo appInfo = activityInfo.applicationInfo; in getInjectedLocationFooters()
153 if (activityInfo.metaData == null) { in getInjectedLocationFooters()
154 LOG.d("No METADATA in broadcast receiver " + activityInfo.name); in getInjectedLocationFooters()
160 activityInfo.metaData.getInt(LocationManager.METADATA_SETTINGS_FOOTER_STRING); in getInjectedLocationFooters()
167 new ComponentName(activityInfo.packageName, activityInfo.name))); in getInjectedLocationFooters()
/packages/apps/Settings/src/com/android/settings/location/
DLocationFooterPreferenceController.java163 final ActivityInfo activityInfo = resolveInfo.activityInfo; in getFooterData() local
164 final ApplicationInfo appInfo = activityInfo.applicationInfo; in getFooterData()
174 if (activityInfo.metaData == null) { in getFooterData()
176 Log.d(TAG, "No METADATA in broadcast receiver " + activityInfo.name); in getFooterData()
182 activityInfo.metaData.getInt(LocationManager.METADATA_SETTINGS_FOOTER_STRING); in getFooterData()
194 new ComponentName(activityInfo.packageName, activityInfo.name))); in getFooterData()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DExtraSettingsLoader.java82 ActivityInfo activityInfo = resolved.activityInfo; in loadPreferences() local
83 Bundle metaData = activityInfo.metaData; in loadPreferences()
85 Resources res = pm.getResourcesForApplication(activityInfo.packageName); in loadPreferences()
95 title = activityInfo.loadLabel(pm).toString(); in loadPreferences()
121 icon = Icon.createWithResource(activityInfo.packageName, iconRes); in loadPreferences()
127 new Intent().setClassName(activityInfo.packageName, activityInfo.name); in loadPreferences()
/packages/services/Telephony/src/com/android/phone/euicc/
DEuiccUiDispatcherActivity.java91 ActivityInfo activityInfo = findBestActivity(euiccUiIntent); in resolveEuiccUiIntent() local
92 if (activityInfo == null) { in resolveEuiccUiIntent()
97 grantDefaultPermissionsToActiveLuiApp(activityInfo); in resolveEuiccUiIntent()
99 euiccUiIntent.setComponent(new ComponentName(activityInfo.packageName, activityInfo.name)); in resolveEuiccUiIntent()
140 protected void grantDefaultPermissionsToActiveLuiApp(ActivityInfo activityInfo) { in grantDefaultPermissionsToActiveLuiApp() argument
143 activityInfo.packageName, UserHandle.myUserId()); in grantDefaultPermissionsToActiveLuiApp()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/storage/
DStorageFileCategoryPreferenceControllerTest.java111 ActivityInfo activityInfo = new ActivityInfo(); in handlePreferenceClicked_currentUserAndActivityToHandleIntent_startsNewActivity() local
112 activityInfo.packageName = "com.test.package.name"; in handlePreferenceClicked_currentUserAndActivityToHandleIntent_startsNewActivity()
113 activityInfo.name = "ClassName"; in handlePreferenceClicked_currentUserAndActivityToHandleIntent_startsNewActivity()
114 activityInfo.applicationInfo = new ApplicationInfo(); in handlePreferenceClicked_currentUserAndActivityToHandleIntent_startsNewActivity()
115 activityInfo.applicationInfo.packageName = "com.test.package.name"; in handlePreferenceClicked_currentUserAndActivityToHandleIntent_startsNewActivity()
118 resolveInfo.activityInfo = activityInfo; in handlePreferenceClicked_currentUserAndActivityToHandleIntent_startsNewActivity()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastReceiverTest.java291 ActivityInfo activityInfo = new ActivityInfo(); in testEnableLauncherIfNoLauncherActivity() local
293 activityInfo.targetActivity = CellBroadcastListActivity.class.getName(); in testEnableLauncherIfNoLauncherActivity()
294 activityInfo.name = activityInfoName; in testEnableLauncherIfNoLauncherActivity()
296 activityInfos[0] = activityInfo; in testEnableLauncherIfNoLauncherActivity()
311 ActivityInfo activityInfo = new ActivityInfo(); in testEnableLauncherIfEnableTrue() local
313 activityInfo.targetActivity = CellBroadcastListActivity.class.getName(); in testEnableLauncherIfEnableTrue()
314 activityInfo.name = activityInfoName; in testEnableLauncherIfEnableTrue()
316 activityInfos[0] = activityInfo; in testEnableLauncherIfEnableTrue()
332 ActivityInfo activityInfo = new ActivityInfo(); in testEnableLauncherIfEnableFalse() local
334 activityInfo.targetActivity = CellBroadcastListActivity.class.getName(); in testEnableLauncherIfEnableFalse()
[all …]
/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()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/
DThirdPartyAppCategory.java71 new ComponentName(info.activityInfo.packageName, info.activityInfo.name); in getAll()
81 if (itemPackageName.equals(imagePickerActivityInfo.activityInfo.packageName)) { in getAll()
101 mResolveInfo.activityInfo.packageName, in show()
102 mResolveInfo.activityInfo.name); in show()
132 return mResolveInfo.activityInfo.packageName.equals(packageName); in containsThirdParty()
/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/
DHomeRoleBehavior.java82 if (isSettingsApplication(resolveInfo.activityInfo.applicationInfo, context)) { in getFallbackHolder()
86 packageName = resolveInfo.activityInfo.packageName; in getFallbackHolder()
114 ActivityInfo activityInfo = intent.resolveActivityInfo(userPackageManager, 0); in preparePreferenceAsUser() local
115 if (activityInfo != null && activityInfo.exported) { in preparePreferenceAsUser()
164 if (resolveInfo == null || resolveInfo.activityInfo == null) { in isSettingsApplication()
167 return Objects.equals(applicationInfo.packageName, resolveInfo.activityInfo.packageName); in isSettingsApplication()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DPackageManagerHelper.java120 if (TextUtils.isEmpty(target.activityInfo.permission)) { in hasPermissionForActivity()
130 if(mPm.checkPermission(target.activityInfo.permission, srcPackage) != in hasPermissionForActivity()
136 if (TextUtils.isEmpty(AppOpsManager.permissionToOp(target.activityInfo.permission))) { in hasPermissionForActivity()
233 if ((info != null) && (info.activityInfo != null)) { in isSystemApp()
234 packageName = info.activityInfo.packageName; in isSystemApp()
263 if (info.activityInfo != null && in findSystemApk()
264 (info.activityInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0) { in findSystemApk()
265 final String packageName = info.activityInfo.packageName; in findSystemApk()

123456789