Home
last modified time | relevance | path

Searched refs:AppUtils (Results 1 – 25 of 72) sorted by relevance

123

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/managedomainurls/
DClearDefaultsPreferenceControllerTest.java42 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/
DAppUtils.kt33 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/
DAppInstallerInfoPreferenceController.java27 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()
DAppOpenByDefaultPreferenceController.java34 import com.android.settingslib.applications.AppUtils;
68 if (packageInfo != null && !AppUtils.isInstant(packageInfo.applicationInfo) in updateState()
69 && !AppUtils.isBrowserApp(mContext, packageInfo.packageName, in updateState()
DAppStoragePreferenceController.java35 import com.android.settingslib.applications.AppUtils;
54 mPreference.setEnabled(AppUtils.isAppInstalled(mAppEntry)); in displayPreference()
59 if (!AppUtils.isAppInstalled(mAppEntry)) { in updateState()
DAdvancedAppInfoPreferenceCategoryController.java25 import com.android.settingslib.applications.AppUtils;
39 if (preference != null && !AppUtils.isAppInstalled(mAppEntry)) { in displayPreference()
DInstantAppDomainsPreferenceController.java26 import com.android.settingslib.applications.AppUtils;
42 && AppUtils.isInstant(mParent.getPackageInfo().applicationInfo) in getAvailabilityStatus()
DAppHeaderViewPreferenceController.java28 import com.android.settingslib.applications.AppUtils;
83 final boolean isInstantApp = AppUtils.isInstant(pkgInfo.applicationInfo); in setAppLabelAndIcon()
DTimeSpentInAppPreferenceController.java34 import com.android.settingslib.applications.AppUtils;
100 pref.setEnabled(AppUtils.isAppInstalled(mAppEntry)); in displayPreference()
/packages/apps/Settings/src/com/android/settings/applications/
DClearDefaultsPreference.java44 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()
DAppInfoWithHeader.java29 import com.android.settingslib.applications.AppUtils;
52 .setIsInstantApp(AppUtils.isInstant(mPackageInfo.applicationInfo)) in onActivityCreated()
DDefaultAppsPreferenceController.java33 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/
DDomainAppPreference.java28 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/
DInstantAppDomainsPreferenceControllerTest.java35 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()
DAppOpenByDefaultPreferenceControllerTest.java43 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/
DFakeAppUtils.kt4 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/
DAppButtonsTest.kt39 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()
DAppInstallerInfoPreferenceTest.kt39 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/
DShadowAppUtils.java21 import com.android.settingslib.applications.AppUtils;
29 @Implements(AppUtils.class)
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/applications/manageapplications/
DManageApplicationsUnitTest.java28 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/
DRecentAppsItemManager.java34 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/
DUnrestrictedDataAccessPreference.java33 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/
DAppLaunchSettings.java52 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/
DAppButtons.kt25 import com.android.settingslib.applications.AppUtils
51 AppUtils.isMainlineModule(userPackageManager, packageName) in PackageInfoPresenter()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/datasources/appsources/
DAppSourcesPreference.kt27 import com.android.healthconnect.controller.shared.app.AppUtils
32 private val appUtils: AppUtils,

123