Home
last modified time | relevance | path

Searched refs:AppsAsyncLoader (Results 1 – 11 of 11) sorted by relevance

/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/
DAppsAsyncLoaderTest.java31 import com.android.storagemanager.deletionhelper.AppsAsyncLoader.PackageInfo;
67 @Mock private AppsAsyncLoader.Clock mClock;
70 private AppsAsyncLoader mLoader;
83 AppsAsyncLoader.FILTER_NO_THRESHOLD.init(); in setUp()
84 AppsAsyncLoader.FILTER_USAGE_STATS.init(); in setUp()
95 AppsAsyncLoader.FILTER_USAGE_STATS.init(); in setUp()
104 new AppsAsyncLoader.Builder(RuntimeEnvironment.application) in setUp()
110 .setFilter(AppsAsyncLoader.FILTER_NO_THRESHOLD) in setUp()
117 AppsAsyncLoader.PackageInfo app = in test_appInstalledSameDayNeverUsed_isInvalid()
118 createPackage(PACKAGE_NAME, AppsAsyncLoader.NEVER_USED, 0); in test_appInstalledSameDayNeverUsed_isInvalid()
[all …]
DAppDeletionTypeTest.java48 mDeletion = new AppDeletionType(mFragment, null, AppsAsyncLoader.NO_THRESHOLD); in setUp()
55 List<AppsAsyncLoader.PackageInfo> loadedPackages = new ArrayList<>(); in uncheckedAppNotReported()
57 new AppsAsyncLoader.PackageInfo.Builder() in uncheckedAppNotReported()
74 List<AppsAsyncLoader.PackageInfo> loadedPackages = new ArrayList<>(); in checkedAppIsReported()
76 new AppsAsyncLoader.PackageInfo.Builder() in checkedAppIsReported()
106 List<AppsAsyncLoader.PackageInfo> apps = new ArrayList<>(); in testLoadingState_completeEmptyOnNothingFound()
114 List<AppsAsyncLoader.PackageInfo> apps = new ArrayList<>(); in testLoadingState_completeOnDeletableContentFound()
116 new AppsAsyncLoader.PackageInfo.Builder() in testLoadingState_completeOnDeletableContentFound()
DDeletionHelperSettingsTest.java80 spy(DeletionHelperSettings.newInstance(AppsAsyncLoader.NO_THRESHOLD)); in downloadsNotDeletedInNoThresholdMode()
95 DeletionHelperSettings.newInstance(AppsAsyncLoader.NO_THRESHOLD); in onFreeableChangeChecksForNull()
106 spy(DeletionHelperSettings.newInstance(AppsAsyncLoader.NORMAL_THRESHOLD)); in requestingSpecificBytesToClearSetsOkResultCodeOnSufficientClear()
125 spy(DeletionHelperSettings.newInstance(AppsAsyncLoader.NORMAL_THRESHOLD)); in requestingSpecificBytesToClearSetsNegativeResultCodeOnSufficientClear()
144 spy(DeletionHelperSettings.newInstance(AppsAsyncLoader.NORMAL_THRESHOLD)); in requestingSpecificBytesToClearSetsNegativeResultCodeOnNoClear()
DAppDeletionPreferenceTest.java20 import com.android.storagemanager.deletionhelper.AppsAsyncLoader.PackageInfo;
127 .setDaysSinceLastUse(AppsAsyncLoader.NEVER_USED) in testNeverUsedPreferenceSummary()
146 .setDaysSinceLastUse(AppsAsyncLoader.UNKNOWN_LAST_USE) in testUnknownLastUsePreferenceSummary()
DAppDeletionPreferenceGroupTest.java41 @Mock private AppsAsyncLoader.PackageInfo mPackage1;
44 private List<AppsAsyncLoader.PackageInfo> mApps;
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DAppDeletionType.java32 import com.android.storagemanager.deletionhelper.AppsAsyncLoader.AppFilter;
33 import com.android.storagemanager.deletionhelper.AppsAsyncLoader.PackageInfo;
179 case AppsAsyncLoader.NO_THRESHOLD: in getFilter()
180 return AppsAsyncLoader.FILTER_NO_THRESHOLD; in getFilter()
181 case AppsAsyncLoader.NORMAL_THRESHOLD: in getFilter()
183 return AppsAsyncLoader.FILTER_USAGE_STATS; in getFilter()
197 case AppsAsyncLoader.NO_THRESHOLD: in getDeletionThreshold()
201 case AppsAsyncLoader.NORMAL_THRESHOLD: in getDeletionThreshold()
203 return AppsAsyncLoader.UNUSED_DAYS_DELETION_THRESHOLD; in getDeletionThreshold()
224 return new AppsAsyncLoader.Builder(mContext) in onCreateLoader()
[all …]
DAppsAsyncLoader.java36 import com.android.storagemanager.deletionhelper.AppsAsyncLoader.PackageInfo;
53 public class AppsAsyncLoader extends AsyncLoader<List<PackageInfo>> { class
68 protected AppsAsyncLoader.AppFilter mFilter;
76 private AppsAsyncLoader( in AppsAsyncLoader() method in AppsAsyncLoader
83 AppsAsyncLoader.AppFilter filter) { in AppsAsyncLoader()
234 private AppsAsyncLoader.AppFilter mFilter;
270 public AppsAsyncLoader build() { in build()
271 return new AppsAsyncLoader( in build()
DAppDeletionPreference.java21 import com.android.storagemanager.deletionhelper.AppsAsyncLoader.PackageInfo;
56 if (mApp.daysSinceLastUse == AppsAsyncLoader.NEVER_USED) { in updateSummary()
58 } else if (mApp.daysSinceLastUse == AppsAsyncLoader.UNKNOWN_LAST_USE) { in updateSummary()
DAppDeletionPreferenceGroup.java53 public void onAppRebuild(List<AppsAsyncLoader.PackageInfo> apps) { in onAppRebuild()
58 AppsAsyncLoader.PackageInfo app = apps.get(i); in onAppRebuild()
151 long deletionThreshold = AppsAsyncLoader.UNUSED_DAYS_DELETION_THRESHOLD; in updateText()
DDeletionHelperActivity.java62 mFragment = DeletionHelperSettings.newInstance(AppsAsyncLoader.NORMAL_THRESHOLD); in onCreate()
185 Fragment fragment = DeletionHelperSettings.newInstance(AppsAsyncLoader.NO_THRESHOLD); in onClick()
DDeletionHelperSettings.java94 mThresholdType = getArguments().getInt(THRESHOLD_KEY, AppsAsyncLoader.NORMAL_THRESHOLD); in onCreatePreferences()
216 return mThresholdType == AppsAsyncLoader.NO_THRESHOLD; in isEmptyState()