Home
last modified time | relevance | path

Searched refs:PackageInfo (Results 1 – 25 of 236) sorted by relevance

12345678910

/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/
DAppsAsyncLoaderTest.java31 import com.android.storagemanager.deletionhelper.AppsAsyncLoader.PackageInfo;
117 AppsAsyncLoader.PackageInfo app = in test_appInstalledSameDayNeverUsed_isInvalid()
125 AppsAsyncLoader.PackageInfo app = in test_noThresholdFilter_appInstalledSameDayNeverUsed_isValid()
133 AppsAsyncLoader.PackageInfo app = in test_unusedApp_isValid()
141 AppsAsyncLoader.PackageInfo app = in test_noThresholdFilter_unusedApp_isValid()
149 AppsAsyncLoader.PackageInfo app = createPackage(PACKAGE_NAME, -1, 90); in test_unknownLastUse_isFilteredOut()
156 AppsAsyncLoader.PackageInfo app = createPackage(PACKAGE_NAME, -1, 90); in test_noThresholdFilter_unknownLastUse_isFilteredOut()
163 AppsAsyncLoader.PackageInfo app = createPackage(PACKAGE_NAME, 1, 200); in test_oldAppRecentlyUsed_isNotValid()
170 AppsAsyncLoader.PackageInfo app = createPackage(PACKAGE_NAME, 1, 200); in test_noThresholdFilter_oldAppRecentlyUsed_isValid()
177 AppsAsyncLoader.PackageInfo app = createPackage(PACKAGE_NAME, 199, 200); in test_oldUnusedApp_isValid()
[all …]
DAppDeletionPreferenceTest.java20 import com.android.storagemanager.deletionhelper.AppsAsyncLoader.PackageInfo;
49 PackageInfo app = in testPreferenceSummary()
50 new PackageInfo.Builder() in testPreferenceSummary()
68 PackageInfo app = in testTwoDayPreferenceSummary()
69 new PackageInfo.Builder() in testTwoDayPreferenceSummary()
87 PackageInfo app = in testYesterdayPreferenceSummary()
88 new PackageInfo.Builder() in testYesterdayPreferenceSummary()
106 PackageInfo app = in testTodayPreferenceSummary()
107 new PackageInfo.Builder() in testTodayPreferenceSummary()
125 PackageInfo app = in testNeverUsedPreferenceSummary()
[all …]
DAppDeletionTypeTest.java55 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()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/pictureinpicture/
DPictureInPictureSettingsTest.java27 import android.content.pm.PackageInfo;
58 private ArrayList<PackageInfo> mPrimaryUserPackages;
59 private ArrayList<PackageInfo> mProfileUserPackages;
84 PackageInfo primaryP1 = createPackage("Calculator", true); in testCollectPipApps()
85 PackageInfo primaryP2 = createPackage("Clock", false); in testCollectPipApps()
86 PackageInfo profileP1 = createPackage("Calculator", false); in testCollectPipApps()
87 PackageInfo profileP2 = createPackage("Clock", true); in testCollectPipApps()
101 PackageInfo primaryP1 = createPackage("Android", true); in testAppSort()
102 PackageInfo primaryP2 = createPackage("Boop", true); in testAppSort()
103 PackageInfo primaryP3 = createPackage("Deck", true); in testAppSort()
[all …]
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DAppsAsyncLoader.java36 import com.android.storagemanager.deletionhelper.AppsAsyncLoader.PackageInfo;
53 public class AppsAsyncLoader extends AsyncLoader<List<PackageInfo>> {
95 public List<PackageInfo> loadInBackground() { in loadInBackground()
99 private List<PackageInfo> loadApps() { in loadApps()
111 List<PackageInfo> stats = new ArrayList<>(); in loadApps()
131 PackageInfo extraInfo = in loadApps()
132 new PackageInfo.Builder() in loadApps()
208 protected void onDiscardResult(List<PackageInfo> result) {} in onDiscardResult()
210 private static boolean isDefaultLauncher(PackageManager packageManager, PackageInfo info) { in isDefaultLauncher()
287 public static final Comparator<PackageInfo> PACKAGE_INFO_COMPARATOR =
[all …]
DAppDeletionType.java33 import com.android.storagemanager.deletionhelper.AppsAsyncLoader.PackageInfo;
42 implements LoaderManager.LoaderCallbacks<List<PackageInfo>>, DeletionType {
54 private List<PackageInfo> mApps;
103 for (PackageInfo app : mApps) { in clearFreeableData()
156 final PackageInfo app = mApps.get(i); in getTotalAppsFreeableSpace()
223 public Loader<List<PackageInfo>> onCreateLoader(int id, Bundle args) { in onCreateLoader()
238 public void onLoadFinished(Loader<List<PackageInfo>> loader, List<PackageInfo> data) { in onLoadFinished()
246 public void onLoaderReset(Loader<List<PackageInfo>> loader) {} in onLoaderReset()
257 void onAppRebuild(List<PackageInfo> apps); in onAppRebuild()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/specialaccess/
DAppStateAppOpsBridgeTest.java30 import android.content.pm.PackageInfo;
69 private ParceledListSlice<PackageInfo> mParceledPackages;
71 private ParceledListSlice<PackageInfo> mParceledPackagesOtherProfile;
73 private List<PackageInfo> mPackages;
99 PackageInfo packageInfo = createPackageInfo(packageName, uid); in androidPackagesIgnored()
112 PackageInfo packageInfo = createPackageInfo(packageName, uid); in selfPackageIgnored()
125 PackageInfo packageInfo = createPackageInfo(packageName, uid); in packagesNotRequestingPermissionIgnored()
141 PackageInfo packageInfo = createPackageInfo(packageName, uid); in unavailablePackageIgnored()
156 PackageInfo packageInfo = createPackageInfo(packageName, uid); in loadsAppOpsExtraInfo_modeAllowed_isPermissible()
171 PackageInfo packageInfo = createPackageInfo(packageName, uid); in loadsAppOpsExtraInfo_modeDefault_isPermissible()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/slices/
DNotificationChannelSlice.java31 import android.content.pm.PackageInfo;
155 final List<PackageInfo> multiChannelPackages = getMultiChannelPackages( in getSlice()
157 final PackageInfo packageInfo = getMaxSentNotificationsPackage(multiChannelPackages); in getSlice()
274 private List<ListBuilder.RowBuilder> getNotificationChannelRows(PackageInfo packageInfo, in getNotificationChannelRows()
303 private List<PackageInfo> getMultiChannelPackages(List<PackageInfo> packageInfoList) { in getMultiChannelPackages()
304 final List<PackageInfo> multiChannelPackages = new ArrayList<>(); in getMultiChannelPackages()
310 for (PackageInfo packageInfo : packageInfoList) { in getMultiChannelPackages()
322 private List<PackageInfo> getRecentlyInstalledPackages() { in getRecentlyInstalledPackages()
327 final List<PackageInfo> recentlyInstalledPackages = new ArrayList<>(); in getRecentlyInstalledPackages()
328 final List<PackageInfo> installedPackages = in getRecentlyInstalledPackages()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DTargetPackageInfoGetterTask.java20 import android.content.pm.PackageInfo;
28 AsyncTask<String, Void, PackageInfo> {
30 private static final LruCache<String, PackageInfo> sCache = new LruCache<>(MAX_CACHE_ENTRIES);
32 public static PackageInfo getCachedPackageInfo(final String packageName) { in getCachedPackageInfo()
51 protected PackageInfo doInBackground(final String... packageName) { in doInBackground()
55 final PackageInfo packageInfo = pm.getPackageInfo(packageName[0], 0 /* flags */); in doInBackground()
64 protected void onPostExecute(final PackageInfo info) { in onPostExecute()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsMockPackageManager.java21 import android.content.pm.PackageInfo;
45 private List<PackageInfo> mPackages;
96 public void setInstalledPackages(List<PackageInfo> packages) { in setInstalledPackages()
101 public List<PackageInfo> getInstalledPackages(int flags) { in getInstalledPackages()
106 public PackageInfo getPackageInfo(String packageName, int flags) throws NameNotFoundException { in getPackageInfo()
107 for (PackageInfo info : mPackages) { in getPackageInfo()
132 final List<PackageInfo> packages = getInstalledPackages(flags); in queryContentProviders()
136 for (PackageInfo pkg : packages) { in queryContentProviders()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/
DApplicationDetailsFragmentTest.java33 import android.content.pm.PackageInfo;
176 PackageInfo packageInfo = createPackageInfoWithApplicationInfo(PACKAGE_NAME); in onStart_packageExplicitlyStopped_queriesPackageRestart()
194 PackageInfo packageInfo = createPackageInfoWithApplicationInfo(PACKAGE_NAME); in onStart_packageExplicitlyStopped_success_enablesForceStopButton()
218 PackageInfo packageInfo = createPackageInfoWithApplicationInfo(PACKAGE_NAME); in onStart_packageExplicitlyStopped_failure_disablesForceStopButton()
242 PackageInfo packageInfo = createPackageInfoWithApplicationInfo(PACKAGE_NAME); in onStart_bundledApp_showsDisableButton()
255 PackageInfo packageInfo = createPackageInfoWithApplicationInfo(PACKAGE_NAME); in onStart_bundledApp_notEnabled_showsEnableButton()
269 PackageInfo packageInfo = createPackageInfoWithApplicationInfo(PACKAGE_NAME); in onStart_bundledApp_enabled_disableUntilUsed_showsEnableButton()
284 PackageInfo packageInfo = createPackageInfoWithApplicationInfo(PACKAGE_NAME); in onStart_bundledApp_homePackage_disablesDisableButton()
303 PackageInfo packageInfo = createPackageInfoWithApplicationInfo(PACKAGE_NAME); in onStart_bundledApp_systemPackage_disablesDisableButton()
309 PackageInfo systemPackage = createPackageInfoWithApplicationInfo("android"); in onStart_bundledApp_systemPackage_disablesDisableButton()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
DUtilsTest.java36 import android.content.pm.PackageInfo;
155 PackageInfo pi = new PackageInfo(); in testPackageRequiresUpdate()
291 PackageInfo packageInfo = setUpPackage(TEST_PACKAGE_NAME_1, TEST_DEVICE_ADMIN_NAME); in testFindDeviceAdminInPackageInfo_Success()
300 PackageInfo packageInfo = setUpPackage(TEST_PACKAGE_NAME_1, TEST_DEVICE_ADMIN_NAME); in testFindDeviceAdminInPackageInfo_PackageNameMismatch()
308 PackageInfo packageInfo = setUpPackage(TEST_PACKAGE_NAME_1); in testFindDeviceAdminInPackageInfo_NoAdmin()
316 PackageInfo packageInfo = setUpPackage(TEST_PACKAGE_NAME_1, TEST_DEVICE_ADMIN_NAME, in testFindDeviceAdminInPackageInfo_TwoAdmins()
325 PackageInfo packageInfo = setUpPackage(TEST_PACKAGE_NAME_1, TEST_DEVICE_ADMIN_NAME, in testFindDeviceAdminInPackageInfo_TwoAdminsWithComponentName()
336 PackageInfo packageInfo = setUpPackage(TEST_PACKAGE_NAME_1, TEST_DEVICE_ADMIN_NAME); in testFindDeviceAdminInPackageInfo_InvalidComponentName()
445 private PackageInfo setUpPackage(String packageName, String... adminNames) in setUpPackage()
447 PackageInfo packageInfo = new PackageInfo(); in setUpPackage()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/service/
DRuntimePermissionsUpgradeController.java23 import android.content.pm.PackageInfo;
88 final List<PackageInfo> apps = context.getPackageManager() in whitelistAllSystemAppPermissions()
98 final PackageInfo app = apps.get(i); in whitelistAllSystemAppPermissions()
138 final List<PackageInfo> apps = context.getPackageManager() in onUpgradeLocked()
163 final PackageInfo app = apps.get(i); in onUpgradeLocked()
194 final PackageInfo app = apps.get(i); in onUpgradeLocked()
224 final PackageInfo app = apps.get(i); in onUpgradeLocked()
247 final PackageInfo app = apps.get(i); in onUpgradeLocked()
288 final PackageInfo pkgInfo = apps.get(i); in onUpgradeLocked()
DPermissionControllerServiceImpl.java34 import android.content.pm.PackageInfo;
116 private @Nullable PackageInfo getPkgInfo(@NonNull String pkg) { in getPkgInfo()
228 PackageInfo callerPkgInfo = getPkgInfo(callerPackageName); in onRevokeRuntimePermissions()
238 PackageInfo requestedPkgInfo = getPkgInfo(appRequest.getKey()); in onRevokeRuntimePermissions()
254 PackageInfo pkgInfo = getPkgInfo(pkgName); in onRevokeRuntimePermissions()
377 final PackageInfo packageInfo; in onGetAppPermissions()
414 final PackageInfo packageInfo = getPackageManager().getPackageInfo(packageName, in onRevokeRuntimePermission()
441 List<PackageInfo> pkgs = getPackageManager().getInstalledPackages(GET_PERMISSIONS); in onCountPermissionApps()
447 PackageInfo pkg = pkgs.get(pkgNum); in onCountPermissionApps()
511 PackageInfo callerPkgInfo = getPkgInfo(callerPackageName); in onSetRuntimePermissionGrantStateByDeviceAdmin()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAppInstallerInfoPreferenceControllerTest.java35 import android.content.pm.PackageInfo;
114 final PackageInfo packageInfo = mock(PackageInfo.class); in updateState_shouldSetSummary()
125 final PackageInfo packageInfo = mock(PackageInfo.class); in updateState_noAppStoreLink_shouldDisablePreference()
137 final PackageInfo packageInfo = mock(PackageInfo.class); in updateState_hasAppStoreLink_shouldSetPreferenceIntent()
DDrawOverlayDetailPreferenceControllerTest.java30 import android.content.pm.PackageInfo;
80 when(mFragment.getPackageInfo()).thenReturn(new PackageInfo()); in getAvailabilityStatus_noPermissionRequested_shouldReturnDisabled()
89 final PackageInfo info = new PackageInfo(); in getAvailabilityStatus_noSystemAlertWindowPermission_shouldReturnDisabled()
100 final PackageInfo info = new PackageInfo(); in getAvailabilityStatus_hasSystemAlertWindowPermission_shouldReturnAvailable()
DWriteSystemSettingsPreferenceControllerTest.java30 import android.content.pm.PackageInfo;
80 when(mFragment.getPackageInfo()).thenReturn(new PackageInfo()); in getAvailabilityStatus_noPermissionRequested_shouldReturnDisabled()
89 final PackageInfo info = new PackageInfo(); in getAvailabilityStatus_noWriteSettingsPermission_shouldReturnDisabled()
100 final PackageInfo info = new PackageInfo(); in getAvailabilityStatus_hasWriteSettingsPermission_shouldReturnAvailable()
DAppInfoDashboardFragmentTest.java40 import android.content.pm.PackageInfo;
124 final PackageInfo packageInfo = mock(PackageInfo.class); in shouldShowUninstallForAll_installForOneOtherUserOnly_shouldReturnTrue()
140 final PackageInfo packageInfo = mock(PackageInfo.class); in shouldShowUninstallForAll_installForSelfOnly_shouldReturnFalse()
192 final PackageInfo packageInfo = mock(PackageInfo.class); in ensurePackageInfoAvailable_hasPackageInfo_shouldReturnTrue()
258 final PackageInfo packageInfo = mock(PackageInfo.class); in instantApps_noUninstallForAllButton()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/legal/
DModuleLicensesPreferenceControllerTest.java30 import android.content.pm.PackageInfo;
87 PackageInfo packageInfo = new PackageInfo(); in displayPreference_alphabeticalOrder()
121 PackageInfo packageInfo = new PackageInfo(); in displayPreference_includeOnlyModulesWithLicenseFile()
131 PackageInfo packageInfo2 = new PackageInfo(); in displayPreference_includeOnlyModulesWithLicenseFile()
DModuleLicenseProviderTest.java33 import android.content.pm.PackageInfo;
305 PackageInfo packageInfo = new PackageInfo(); in isCachedHtmlFileOutdated_versionCodeDiffersFromSharedPref_returnTrue()
326 PackageInfo packageInfo = new PackageInfo(); in isCachedHtmlFileOutdated_fileDoesNotExist_returnTrue()
348 PackageInfo packageInfo = new PackageInfo(); in isCachedHtmlFileOutdated_fileIsEmpty_returnTrue()
373 PackageInfo packageInfo = new PackageInfo(); in isCachedHtmlFileOutdated_notOutdated_returnFalse()
DModuleLicensesListPreferenceControllerTest.java29 import android.content.pm.PackageInfo;
58 PackageInfo packageInfo = new PackageInfo(); in getAvailabilityStatus_validLicenses_returnsAvailable()
99 PackageInfo packageInfo = new PackageInfo(); in getAvailabilityStatus_noLicenses_returnsConditionallyUnavailable()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/model/
DPermissionApps.java20 import android.content.pm.PackageInfo;
176 private @NonNull List<PackageInfo> getPackageInfos(@NonNull UserHandle user) { in getPackageInfos()
177 List<PackageInfo> apps = (mPmCache != null) ? mPmCache.getPackages( in getPackageInfos()
183 final PackageInfo app = apps.get(i); in getPackageInfos()
198 final PackageInfo packageInfo = mPm.getPackageInfo(mPackageName, in getPackageInfos()
239 List<PackageInfo> apps = getPackageInfos(user); in loadPermissionApps()
242 PackageInfo app = apps.get(i); in loadPermissionApps()
473 private final SparseArray<List<PackageInfo>> mPackageInfoCache = new SparseArray<>();
480 public synchronized List<PackageInfo> getPackages(int userId) { in getPackages()
481 List<PackageInfo> ret = mPackageInfoCache.get(userId); in getPackages()
DAppPermissions.java20 import android.content.pm.PackageInfo;
60 private PackageInfo mPackageInfo;
62 public AppPermissions(Context context, PackageInfo packageInfo, boolean sortGroups, in AppPermissions()
67 public AppPermissions(Context context, PackageInfo packageInfo, boolean sortGroups, in AppPermissions()
78 public PackageInfo getPackageInfo() { in getPackageInfo()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/
DNotificationMultiChannelAppRowTest.java27 import android.content.pm.PackageInfo;
47 private PackageInfo mPackageInfo;
54 mPackageInfo = new PackageInfo(); in setUp()
69 any(RoleManager.class), any(PackageInfo.class)); in call_isMultiChannel_shouldLoadAppRow()
80 any(PackageManager.class), any(RoleManager.class), any(PackageInfo.class)); in call_isNotMultiChannel_shouldNotLoadAppRow()
/packages/apps/Car/Notification/tests/robotests/src/com/android/car/notification/testutils/
DShadowApplicationPackageManager.java21 import android.content.pm.PackageInfo;
33 private static PackageInfo sPackageInfo;
43 public PackageInfo getPackageInfoAsUser(String packageName, in getPackageInfoAsUser()
58 public static void setPackageInfo(PackageInfo packageInfo) { in setPackageInfo()

12345678910