Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/
DAppUtilsTest.java82 assertThat(AppUtils.getIcon(mContext, /* appEntry= */ null)).isNull(); in getIcon_nullAppEntry_shouldReturnNull()
88 assertThat(AppUtils.getIcon(mContext, mAppEntry)).isNotNull(); in getIcon_noCachedIcon_shouldNotReturnNull()
95 assertThat(AppUtils.getIcon(mContext, mAppEntry)).isEqualTo(mIcon); in getIcon_existCachedIcon_shouldReturnCachedIcon()
100 assertThat(AppUtils.getIconFromCache(/* appEntry= */ null)).isNull(); in getIconFromCache_nullAppEntry_shouldReturnNull()
107 assertThat(AppUtils.getIconFromCache(mAppEntry)).isEqualTo(mIcon); in getIconFromCache_shouldReturnCachedIcon()
112 AppUtils.preloadTopIcons(mContext, /* appEntries= */ null, /* number= */ 1); in preloadTopIcons_nullAppEntries_shouldNotCrash()
118 AppUtils.preloadTopIcons(mContext, mAppEntries, /* number= */ 0); in preloadTopIcons_zeroPreloadIcons_shouldNotCacheIcons()
126 AppUtils.preloadTopIcons(mContext, mAppEntries, /* number= */ 1); in preloadTopIcons_shouldCheckIconFromCache()
134 assertThat(AppUtils.isAppInstalled(null)).isFalse(); in isAppInstalled_noAppEntry_shouldReturnFalse()
143 assertThat(AppUtils.isAppInstalled(appEntry)).isTrue(); in isAppInstalled_hasAppEntryWithInstalledFlag_shouldReturnTrue()
[all …]
/frameworks/base/packages/SettingsLib/Utils/src/com/android/settingslib/utils/applications/
DAppUtils.java30 public class AppUtils { class
32 private static final String TAG = AppUtils.class.getSimpleName();
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DAppUtils.java46 public class AppUtils { class
132 return com.android.settingslib.utils.applications.AppUtils in getApplicationLabel()
184 return com.android.settingslib.utils.applications.AppUtils.getAppContentDescription(context, in getAppContentDescription()
DApplicationsState.java316 if (!mHaveInstantApps && AppUtils.isInstant(info)) { in doResumeIfNeededLocked()
615 if (AppUtils.isInstant(info)) { in addPackage()
654 if (AppUtils.isInstant(info)) { in removePackage()
657 if (AppUtils.isInstant(otherInfo)) { in removePackage()
1840 if (AppUtils.isInstant(entry.info)) {
1866 return AppUtils.isInstant(entry.info)
1895 return !entry.info.enabled && !AppUtils.isInstant(entry.info);
1906 return AppUtils.isInstant(entry.info);
1917 return entry.info.enabled && !AppUtils.isInstant(entry.info);
1939 return !AppUtils.isInstant(entry.info)