/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/managedomainurls/ |
D | ClearDefaultsPreferenceControllerTest.java | 42 import com.android.settingslib.applications.AppUtils; 90 AppUtils.class, withSettings().lenient()).startMocking(); in setUp() 102 ExtendedMockito.when(AppUtils.hasPreferredActivities(mMockPackageManager, in onCreate_hasPreferredActivities_hasSummary() 112 ExtendedMockito.when(AppUtils.hasPreferredActivities(mMockPackageManager, in onCreate_isDefaultBrowser_hasSummary() 124 ExtendedMockito.when(AppUtils.hasPreferredActivities(mMockPackageManager, in onCreate_hasUsbDefaults_hasSummary() 137 ExtendedMockito.when(AppUtils.hasPreferredActivities(mMockPackageManager, in onCreate_autoLaunchDisabled_hasNoSummary() 150 ExtendedMockito.when(AppUtils.hasPreferredActivities(mMockPackageManager, in performClick_hasUsbManager_hasPreferredActivities_clearsPreferredActivities() 163 ExtendedMockito.when(AppUtils.hasPreferredActivities(mMockPackageManager, in performClick_hasUsbManager_isDefaultBrowser_clearsDefaultBrowser() 177 ExtendedMockito.when(AppUtils.hasPreferredActivities(mMockPackageManager, in performClick_hasUsbDefaults_clearsUsbDefaults()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/app/ |
D | AppUtils.kt | 33 interface AppUtils { interface 37 class AppUtilsImpl @Inject constructor() : AppUtils { in isDefaultApp() 53 fun providesAppUtils(): AppUtils { in providesAppUtils()
|
/packages/apps/Settings/src/com/android/settings/applications/appinfo/ |
D | AppInstallerInfoPreferenceController.java | 27 import com.android.settingslib.applications.AppUtils; 41 if (AppUtils.isMainlineModule(mContext.getPackageManager(), mPackageName)) { in getAvailabilityStatus() 50 final int detailsStringId = AppUtils.isInstant(mParent.getPackageInfo().applicationInfo) in updateState()
|
D | AppOpenByDefaultPreferenceController.java | 34 import com.android.settingslib.applications.AppUtils; 68 if (packageInfo != null && !AppUtils.isInstant(packageInfo.applicationInfo) in updateState() 69 && !AppUtils.isBrowserApp(mContext, packageInfo.packageName, in updateState()
|
D | AppStoragePreferenceController.java | 35 import com.android.settingslib.applications.AppUtils; 54 mPreference.setEnabled(AppUtils.isAppInstalled(mAppEntry)); in displayPreference() 59 if (!AppUtils.isAppInstalled(mAppEntry)) { in updateState()
|
D | AdvancedAppInfoPreferenceCategoryController.java | 25 import com.android.settingslib.applications.AppUtils; 39 if (preference != null && !AppUtils.isAppInstalled(mAppEntry)) { in displayPreference()
|
D | InstantAppDomainsPreferenceController.java | 26 import com.android.settingslib.applications.AppUtils; 42 && AppUtils.isInstant(mParent.getPackageInfo().applicationInfo) in getAvailabilityStatus()
|
D | AppHeaderViewPreferenceController.java | 28 import com.android.settingslib.applications.AppUtils; 83 final boolean isInstantApp = AppUtils.isInstant(pkgInfo.applicationInfo); in setAppLabelAndIcon()
|
D | TimeSpentInAppPreferenceController.java | 34 import com.android.settingslib.applications.AppUtils; 100 pref.setEnabled(AppUtils.isAppInstalled(mAppEntry)); in displayPreference()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | ClearDefaultsPreference.java | 44 import com.android.settingslib.applications.AppUtils; 120 if (AppUtils.isDefaultBrowser(getContext(), mPackageName)) { in onBindViewHolder() 143 boolean autoLaunchEnabled = AppUtils.hasPreferredActivities(mPm, mPackageName) in updateUI() 144 || AppUtils.isDefaultBrowser(getContext(), mPackageName) in updateUI() 145 || AppUtils.hasUsbDefaults(mUsbManager, mPackageName); in updateUI()
|
D | AppInfoWithHeader.java | 29 import com.android.settingslib.applications.AppUtils; 52 .setIsInstantApp(AppUtils.isInstant(mPackageInfo.applicationInfo)) in onActivityCreated()
|
D | DefaultAppsPreferenceController.java | 33 import com.android.settingslib.applications.AppUtils; 93 return BidiFormatter.getInstance().unicodeWrap(AppUtils.getApplicationLabel(mPackageManager, in getDefaultAppLabel()
|
/packages/apps/Settings/src/com/android/settings/applications/managedomainurls/ |
D | DomainAppPreference.java | 28 import com.android.settingslib.applications.AppUtils; 45 mCacheIcon = AppUtils.getIconFromCache(mEntry); in DomainAppPreference() 85 final Drawable icon = AppUtils.getIcon(getContext(), mEntry); in onBindViewHolder()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | InstantAppDomainsPreferenceControllerTest.java | 35 import com.android.settingslib.applications.AppUtils; 80 ReflectionHelpers.setStaticField(AppUtils.class, "sInstantAppDataProvider", in getAvailabilityStatus_notInstantApp_shouldReturnDisabled() 89 ReflectionHelpers.setStaticField(AppUtils.class, "sInstantAppDataProvider", in getAvailabilityStatus_isInstantApp_shouldReturnAvailable()
|
D | AppOpenByDefaultPreferenceControllerTest.java | 43 import com.android.settingslib.applications.AppUtils; 158 ReflectionHelpers.setStaticField(AppUtils.class, "sInstantAppDataProvider", in updateState_isInstantApp_shouldNotShowPreference() 171 ReflectionHelpers.setStaticField(AppUtils.class, "sInstantAppDataProvider", in updateState_isBrowserApp_shouldNotShowPreference() 191 ReflectionHelpers.setStaticField(AppUtils.class, "sInstantAppDataProvider", in updateState_notBrowserApp_notInstantApp_shouldShowPreferenceAndSetSummary()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/di/ |
D | FakeAppUtils.kt | 4 import com.android.healthconnect.controller.shared.app.AppUtils 6 class FakeAppUtils : AppUtils {
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/appinfo/ |
D | AppButtonsTest.kt | 39 import com.android.settingslib.applications.AppUtils 82 .mockStatic(AppUtils::class.java) in setUp() 91 whenever(AppUtils.isMainlineModule(packageManager, PACKAGE_NAME)).thenReturn(false) in setUp() 102 whenever(AppUtils.isMainlineModule(packageManager, PACKAGE_NAME)).thenReturn(true) in isMainlineModule_notDisplayed()
|
D | AppInstallerInfoPreferenceTest.kt | 39 import com.android.settingslib.applications.AppUtils 74 .mockStatic(AppUtils::class.java) in setUp() 90 whenever(AppUtils.isMainlineModule(any(), eq(PACKAGE_NAME))).thenReturn(false) in setUp() 118 whenever(AppUtils.isMainlineModule(any(), eq(PACKAGE_NAME))).thenReturn(true) in whenIsMainlineModule_notDisplayed()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
D | ShadowAppUtils.java | 21 import com.android.settingslib.applications.AppUtils; 29 @Implements(AppUtils.class)
|
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/applications/manageapplications/ |
D | ManageApplicationsUnitTest.java | 28 import com.android.settingslib.applications.AppUtils; 102 Field field = AppUtils.class.getDeclaredField("sInstantAppDataProvider"); in getCompositeFilter_worksWithInstantApps() 104 field.set(AppUtils.class, (InstantAppDataProvider) (i -> true)); in getCompositeFilter_worksWithInstantApps()
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/ |
D | RecentAppsItemManager.java | 34 import com.android.settingslib.applications.AppUtils; 171 if (AppUtils.isHiddenSystemModule(mContext, pkgName)) { in shouldIncludePkgInRecents() 182 if (appEntry == null || appEntry.info == null || !AppUtils.isInstant(appEntry.info)) { in shouldIncludePkgInRecents()
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | UnrestrictedDataAccessPreference.java | 33 import com.android.settingslib.applications.AppUtils; 68 mCacheIcon = AppUtils.getIconFromCache(mEntry); in UnrestrictedDataAccessPreference() 119 final Drawable icon = AppUtils.getIcon(getContext(), mEntry); in onBindViewHolder()
|
/packages/apps/Settings/src/com/android/settings/applications/intentpicker/ |
D | AppLaunchSettings.java | 52 import com.android.settingslib.applications.AppUtils; 206 .setIsInstantApp(AppUtils.isInstant(mPackageInfo.applicationInfo)) in createHeaderPreference() 401 final boolean isAutoLaunchEnabled = AppUtils.hasPreferredActivities(mPm, mPackageName) in isClearDefaultsEnabled() 402 || AppUtils.isDefaultBrowser(mContext, mPackageName) in isClearDefaultsEnabled() 403 || AppUtils.hasUsbDefaults(mUsbManager, mPackageName); in isClearDefaultsEnabled()
|
/packages/apps/Settings/src/com/android/settings/spa/app/appinfo/ |
D | AppButtons.kt | 25 import com.android.settingslib.applications.AppUtils 51 AppUtils.isMainlineModule(userPackageManager, packageName) in PackageInfoPresenter()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/datasources/appsources/ |
D | AppSourcesPreference.kt | 27 import com.android.healthconnect.controller.shared.app.AppUtils 32 private val appUtils: AppUtils,
|