Home
last modified time | relevance | path

Searched refs:currentDefaultHome (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/appinfo/
DAppButtonRepositoryTest.kt66 currentDefaultHome: ComponentName? = null, in mockGetHomeActivities()
71 currentDefaultHome in mockGetHomeActivities()
82 assertThat(homePackageInfo.currentDefaultHome).isNull() in getHomePackageInfo_empty()
92 assertThat(homePackageInfo.currentDefaultHome).isNull() in getHomePackageInfo_noActivityInfo()
99 currentDefaultHome = COMPONENT_NAME, in getHomePackageInfo_oneHome()
105 assertThat(homePackageInfo.currentDefaultHome).isSameInstanceAs(COMPONENT_NAME) in getHomePackageInfo_oneHome()
141 currentDefaultHome = COMPONENT_NAME, in uninstallDisallowedDueToHomeApp_isNotSystemAndIsCurrentHomeAndHasOnlyOneHomeApp()
158 currentDefaultHome = COMPONENT_NAME, in uninstallDisallowedDueToHomeApp_isNotSystemAndIsCurrentHomeAndHasOtherHomeApps()
176 currentDefaultHome = COMPONENT_NAME, in uninstallDisallowedDueToHomeApp_isSystemAndIsCurrentHomeAndHasOtherHomeApps()
/packages/apps/Settings/src/com/android/settings/spa/app/appinfo/
DAppButtonRepository.kt67 val currentDefaultHome = packageManager.getHomeActivities(homeActivities) in <lambda>() constant
75 return HomePackages(homePackages, currentDefaultHome) in <lambda>()
126 packageName == homePackageInfo.currentDefaultHome?.packageName -> { in <lambda>()
146 val currentDefaultHome: ComponentName?, in <lambda>() constant in com.android.settings.spa.app.appinfo.AppButtonRepository.HomePackages
/packages/apps/Car/Settings/src/com/android/car/settings/applications/
DApplicationActionButtonsPreferenceController.java493 ComponentName currentDefaultHome = mPm.getHomeActivities(homeActivities); in shouldDisableUninstallForHomeApp() local
513 } else if (currentDefaultHome == null) { in shouldDisableUninstallForHomeApp()
520 return mPackageName.equals(currentDefaultHome.getPackageName()); in shouldDisableUninstallForHomeApp()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppButtonsPreferenceController.java433 ComponentName currentDefaultHome = mPm.getHomeActivities(homeActivities); in updateUninstallButton() local
434 if (currentDefaultHome == null) { in updateUninstallButton()
438 } else if (mPackageInfo.packageName.equals(currentDefaultHome.getPackageName())) { in updateUninstallButton()