/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | ExternalSourcesDetailsTest.java | 72 private PackageInfo mPackageInfo; field in ExternalSourcesDetailsTest 90 ReflectionHelpers.setField(mFragment, "mPackageInfo", mPackageInfo); in setCanInstallApps_false_shouldKillNonCoreUid() 92 mPackageInfo.applicationInfo = new ApplicationInfo(); in setCanInstallApps_false_shouldKillNonCoreUid() 93 mPackageInfo.applicationInfo.uid = mockUid; in setCanInstallApps_false_shouldKillNonCoreUid() 102 ReflectionHelpers.setField(mFragment, "mPackageInfo", mPackageInfo); in setCanInstallApps_false_shouldNotKillCoreUid() 104 mPackageInfo.applicationInfo = new ApplicationInfo(); in setCanInstallApps_false_shouldNotKillCoreUid() 105 mPackageInfo.applicationInfo.uid = mockUid; in setCanInstallApps_false_shouldNotKillCoreUid() 114 ReflectionHelpers.setField(mFragment, "mPackageInfo", mPackageInfo); in setCanInstallApps_true_shouldNotKillUid() 116 mPackageInfo.applicationInfo = new ApplicationInfo(); in setCanInstallApps_true_shouldNotKillUid() 117 mPackageInfo.applicationInfo.uid = mockUid; in setCanInstallApps_true_shouldNotKillUid() [all …]
|
D | AppButtonsPreferenceControllerTest.java | 119 private PackageInfo mPackageInfo; field in AppButtonsPreferenceControllerTest 148 mPackageInfo.packageName = PACKAGE_NAME; in setUp() 149 mPackageInfo.applicationInfo = mAppInfo; in setUp() 153 mController.mPackageInfo = mPackageInfo; in setUp() 186 doReturn(mPackageInfo).when(mPackageManger).getPackageInfo(anyString(), anyInt()); in retrieveAppEntry_hasAppEntry_notNull() 191 assertThat(mController.mPackageInfo).isNotNull(); in retrieveAppEntry_hasAppEntry_notNull() 197 doReturn(mPackageInfo).when(mPackageManger).getPackageInfo(anyString(), anyInt()); in retrieveAppEntry_noAppEntry_null() 202 assertThat(mController.mPackageInfo).isNull(); in retrieveAppEntry_noAppEntry_null() 215 assertThat(mController.mPackageInfo).isNull(); in retrieveAppEntry_throwException_null()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
D | AppWorkaroundsUtils.java | 26 private final PackageInfo mPackageInfo; // May be null field in AppWorkaroundsUtils 30 mPackageInfo = packageInfo; in AppWorkaroundsUtils() 40 if (null == mPackageInfo || null == mPackageInfo.applicationInfo) { in isBeforeJellyBean() 43 return mPackageInfo.applicationInfo.targetSdkVersion < VERSION_CODES.JELLY_BEAN; in isBeforeJellyBean() 48 if (null == mPackageInfo || null == mPackageInfo.applicationInfo) { in toString() 53 .append(mPackageInfo.applicationInfo.name) in toString() 55 .append(mPackageInfo.applicationInfo.packageName) in toString() 57 .append(mPackageInfo.applicationInfo.targetSdkVersion); in toString()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/model/ |
D | AppPermissions.java | 60 private PackageInfo mPackageInfo; field in AppPermissions 70 mPackageInfo = packageInfo; in AppPermissions() 79 return mPackageInfo; in getPackageInfo() 112 mPackageInfo = mContext.createPackageContextAsUser(mPackageInfo.packageName, 0, in loadPackageInfo() 113 UserHandle.getUserHandleForUid(mPackageInfo.applicationInfo.uid)) in loadPackageInfo() 114 .getPackageManager().getPackageInfo(mPackageInfo.packageName, in loadPackageInfo() 143 if (mPackageInfo.requestedPermissions != null) { in loadPermissionGroups() 144 for (String requestedPerm : mPackageInfo.requestedPermissions) { in loadPermissionGroups() 146 AppPermissionGroup group = AppPermissionGroup.create(mContext, mPackageInfo, in loadPermissionGroups()
|
D | AppPermissionGroup.java | 83 private final PackageInfo mPackageInfo; field in AppPermissionGroup 398 mPackageInfo = packageInfo; in AppPermissionGroup() 492 return mPackageInfo; in getApp() 638 if (LocationUtils.isLocationGroupAndProvider(mContext, mName, mPackageInfo.packageName)) { in areRuntimePermissionsGranted() 644 mContext, mName, mPackageInfo.packageName)) { in areRuntimePermissionsGranted() 675 int currentMode = mAppOps.unsafeCheckOpRaw(op, uid, mPackageInfo.packageName); in setAppOpMode() 751 mActivityManager.killUid(mPackageInfo.applicationInfo.uid, reason); in killApp() 1165 return mPackageInfo.applicationInfo.uid in compareTo() 1166 - another.mPackageInfo.applicationInfo.uid; in compareTo() 1179 && mPackageInfo.packageName.equals(other.mPackageInfo.packageName) in equals() [all …]
|
/packages/apps/Settings/src/com/android/settings/vpn2/ |
D | AppDialogFragment.java | 52 private PackageInfo mPackageInfo; field in AppDialogFragment 109 mPackageInfo = args.getParcelable(ARG_PACKAGE); in onCreateDialog() 112 return new AppDialog(getActivity(), this, mPackageInfo, label); in onCreateDialog() 150 mPackageInfo.packageName, userId, VpnManager.TYPE_VPN_NONE); in onForget() 153 Log.e(TAG, "Failed to forget authorization of " + mPackageInfo.packageName + in onForget() 168 if (mPackageInfo.packageName.equals(VpnUtils.getConnectedPackage(mService, userId))) { in onDisconnect() 171 mService.prepareVpn(mPackageInfo.packageName, VpnConfig.LEGACY_VPN, userId); in onDisconnect() 174 Log.e(TAG, "Failed to disconnect package " + mPackageInfo.packageName + in onDisconnect() 185 return UserHandle.getUserId(mPackageInfo.applicationInfo.uid); in getUserId()
|
D | AppDialog.java | 41 private final PackageInfo mPackageInfo; field in AppDialog 48 mPackageInfo = pkgInfo; in AppDialog() 53 return mPackageInfo; in getPackageInfo() 59 setMessage(getContext().getString(R.string.vpn_version, mPackageInfo.versionName)); in onCreate()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/vpn2/ |
D | AppDialogFragment.java | 52 private PackageInfo mPackageInfo; field in AppDialogFragment 109 mPackageInfo = args.getParcelable(ARG_PACKAGE); in onCreateDialog() 112 return new AppDialog(getActivity(), this, mPackageInfo, label); in onCreateDialog() 150 mPackageInfo.packageName, userId, VpnManager.TYPE_VPN_NONE); in onForget() 153 Log.e(TAG, "Failed to forget authorization of " + mPackageInfo.packageName + in onForget() 168 if (mPackageInfo.packageName.equals(VpnUtils.getConnectedPackage(mService, userId))) { in onDisconnect() 171 mService.prepareVpn(mPackageInfo.packageName, VpnConfig.LEGACY_VPN, userId); in onDisconnect() 174 Log.e(TAG, "Failed to disconnect package " + mPackageInfo.packageName + in onDisconnect() 185 return UserHandle.getUserId(mPackageInfo.applicationInfo.uid); in getUserId()
|
D | AppDialog.java | 41 private final PackageInfo mPackageInfo; field in AppDialog 48 mPackageInfo = pkgInfo; in AppDialog() 53 return mPackageInfo; in getPackageInfo() 59 setMessage(getContext().getString(R.string.vpn_version, mPackageInfo.versionName)); in onCreate()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | AppInfoWithHeader.java | 45 if (mPackageInfo == null) return; in onActivityCreated() 51 .getBadgedIcon(mPackageInfo.applicationInfo)) in onActivityCreated() 52 .setLabel(mPackageInfo.applicationInfo.loadLabel(mPm)) in onActivityCreated() 53 .setSummary(mPackageInfo) in onActivityCreated() 54 .setIsInstantApp(AppUtils.isInstant(mPackageInfo.applicationInfo)) in onActivityCreated() 56 .setUid(mPackageInfo.applicationInfo.uid) in onActivityCreated()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | AppInfoWithHeader.java | 45 if (mPackageInfo == null) return; in onActivityCreated() 51 .getBadgedIcon(mPackageInfo.applicationInfo)) in onActivityCreated() 52 .setLabel(mPackageInfo.applicationInfo.loadLabel(mPm)) in onActivityCreated() 53 .setSummary(mPackageInfo) in onActivityCreated() 54 .setIsInstantApp(AppUtils.isInstant(mPackageInfo.applicationInfo)) in onActivityCreated() 56 .setUid(mPackageInfo.applicationInfo.uid) in onActivityCreated()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/ |
D | AppButtonsPreferenceController.java | 95 PackageInfo mPackageInfo; field in AppButtonsPreferenceController 216 if (mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in onClick() 354 mPackageInfo = mPm.getPackageInfo(mAppEntry.info.packageName, in retrieveAppEntry() 363 mPackageInfo = null; in retrieveAppEntry() 366 mPackageInfo = null; in retrieveAppEntry() 383 if ((mPackageInfo.applicationInfo.flags & ApplicationInfo.FLAG_INSTALLED) == 0 in updateUninstallButton() 392 if (isBundled && mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in updateUninstallButton() 399 if (Utils.isProfileOrDeviceOwner(mUserManager, mDpm, mPackageInfo.packageName)) { in updateUninstallButton() 420 if (enabled && mHomePackages.contains(mPackageInfo.packageName)) { in updateUninstallButton() 433 enabled = !mPackageInfo.packageName.equals(currentDefaultHome.getPackageName()); in updateUninstallButton() [all …]
|
D | AppInfoDashboardFragment.java | 107 private PackageInfo mPackageInfo; field in AppInfoDashboardFragment 245 if (mPackageInfo == null) { in createPreferenceControllers() 296 return mPackageInfo; in getPackageInfo() 316 if (mPackageInfo == null) { in ensurePackageInfoAvailable() 413 } else if (mPackageInfo == null || mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in shouldShowUninstallForAll() 435 if (mPackageInfo == null) { in refreshUi() 560 mPackageInfo = activity.getPackageManager().getPackageInfo( in retrieveAppEntry() 571 mPackageInfo = null; in retrieveAppEntry() 654 && TextUtils.equals(mPackageInfo.overlayTarget, packageName)) {
|
D | DrawOverlayDetails.java | 65 mPackageInfo = null; in onCreate() 83 if (mPackageInfo == null) { in onCreateView() 115 mPackageInfo.applicationInfo.uid, mPackageName, newState in setCanDrawOverlay() 135 if (mPackageInfo == null) { in refreshUi() 140 mPackageInfo.applicationInfo.uid); in refreshUi()
|
/packages/apps/Settings/src/com/android/settings/applications/appinfo/ |
D | AppButtonsPreferenceController.java | 95 PackageInfo mPackageInfo; field in AppButtonsPreferenceController 215 if (mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in onClick() 353 mPackageInfo = mPm.getPackageInfo(mAppEntry.info.packageName, in retrieveAppEntry() 362 mPackageInfo = null; in retrieveAppEntry() 365 mPackageInfo = null; in retrieveAppEntry() 382 if ((mPackageInfo.applicationInfo.flags & ApplicationInfo.FLAG_INSTALLED) == 0 in updateUninstallButton() 391 if (isBundled && mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in updateUninstallButton() 398 if (Utils.isProfileOrDeviceOwner(mUserManager, mDpm, mPackageInfo.packageName)) { in updateUninstallButton() 419 if (enabled && mHomePackages.contains(mPackageInfo.packageName)) { in updateUninstallButton() 432 enabled = !mPackageInfo.packageName.equals(currentDefaultHome.getPackageName()); in updateUninstallButton() [all …]
|
D | AppInfoDashboardFragment.java | 107 private PackageInfo mPackageInfo; field in AppInfoDashboardFragment 245 if (mPackageInfo == null) { in createPreferenceControllers() 296 return mPackageInfo; in getPackageInfo() 316 if (mPackageInfo == null) { in ensurePackageInfoAvailable() 413 } else if (mPackageInfo == null || mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in shouldShowUninstallForAll() 435 if (mPackageInfo == null) { in refreshUi() 560 mPackageInfo = activity.getPackageManager().getPackageInfo( in retrieveAppEntry() 571 mPackageInfo = null; in retrieveAppEntry() 654 && TextUtils.equals(mPackageInfo.overlayTarget, packageName)) {
|
D | DrawOverlayDetails.java | 65 mPackageInfo = null; in onCreate() 83 if (mPackageInfo == null) { in onCreateView() 115 mPackageInfo.applicationInfo.uid, mPackageName, newState in setCanDrawOverlay() 135 if (mPackageInfo == null) { in refreshUi() 140 mPackageInfo.applicationInfo.uid); in refreshUi()
|
D | ExternalSourcesDetails.java | 109 mPackageInfo.applicationInfo.uid, mPackageName, in setCanInstallApps() 112 killApp(mPackageInfo.applicationInfo.uid); in setCanInstallApps() 125 if (mPackageInfo == null || mPackageInfo.applicationInfo == null) { in refreshUi() 144 mPackageInfo.applicationInfo.uid); in refreshUi()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/ |
D | VerifyPackageTaskTest.java | 73 @Mock private PackageInfo mPackageInfo; field in VerifyPackageTaskTest 84 mPackageInfo.packageName = TEST_PACKAGE_NAME; in setUp() 85 mPackageInfo.signatures = TEST_SIGNATURES; in setUp() 89 .thenReturn(mPackageInfo); in setUp() 93 when(mUtils.findDeviceAdminInPackageInfo(TEST_PACKAGE_NAME, null, mPackageInfo)) in setUp() 113 when(mUtils.findDeviceAdminInPackageInfo(TEST_PACKAGE_NAME, null, mPackageInfo)) in testMissingDeviceAdminComponent() 169 mPackageInfo.signatures = null; in testSignatureHash_noSignature()
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/ |
D | NotificationMultiChannelAppRow.java | 35 private final PackageInfo mPackageInfo; field in NotificationMultiChannelAppRow 41 mPackageInfo = packageInfo; in NotificationMultiChannelAppRow() 47 mPackageInfo.applicationInfo.packageName, mPackageInfo.applicationInfo.uid); in call() 50 mContext.getSystemService(RoleManager.class), mPackageInfo); in call()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/television/ |
D | AllAppPermissionsFragment.java | 61 private PackageInfo mPackageInfo; field in AllAppPermissionsFragment 85 mPackageInfo = getActivity().getPackageManager().getPackageInfo(pkg, in onCreate() 91 mAppPermissions = new AppPermissions(getActivity(), mPackageInfo, false, in onCreate() 134 ApplicationInfo appInfo = mPackageInfo.applicationInfo; in updateUi() 141 .setData(Uri.fromParts("package", mPackageInfo.packageName, null)); in updateUi() 145 if (mPackageInfo.requestedPermissions != null) { in updateUi() 146 for (int i = 0; i < mPackageInfo.requestedPermissions.length; i++) { in updateUi() 149 perm = pm.getPermissionInfo(mPackageInfo.requestedPermissions[i], 0); in updateUi() 152 + mPackageInfo.requestedPermissions[i], e); in updateUi()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/ |
D | NotificationMultiChannelAppRowTest.java | 47 private PackageInfo mPackageInfo; field in NotificationMultiChannelAppRowTest 54 mPackageInfo = new PackageInfo(); in setUp() 55 mPackageInfo.applicationInfo = new ApplicationInfo(); in setUp() 56 mPackageInfo.applicationInfo.packageName = "com.android.test"; in setUp() 58 mNotificationBackend, mPackageInfo); in setUp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/vpn2/ |
D | AppDialogFragmentTest.java | 39 private PackageInfo mPackageInfo; field in AppDialogFragmentTest 44 mPackageInfo = new PackageInfo(); in setUp() 50 .show(mParent, mPackageInfo, "label", false /* manage */, false /* connected */); in notManagingOrConnected_shouldNotShow() 58 .show(mParent, mPackageInfo, "label", false /* manage */, true /* connected */); in notManagingAndConnected_showShow()
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/ |
D | VersionPreferenceController.java | 32 private PackageInfo mPackageInfo; field in VersionPreferenceController 46 mPackageInfo = packageInfo; in setPackageInfo() 51 if (mPackageInfo == null) { in checkInitialized() 60 R.string.application_version_label, mPackageInfo.versionName)); in updateState()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | AppInfoWithHeaderTest.java | 137 mAppInfoWithHeader.mPackageInfo); in noExtraUserHandleInIntent_retrieveAppEntryWithMyUserId() 142 assertThat(mAppInfoWithHeader.mPackageInfo).isNotNull(); in noExtraUserHandleInIntent_retrieveAppEntryWithMyUserId() 164 mAppInfoWithHeader.mPackageInfo); in extraUserHandleInIntent_retrieveAppEntryWithMyUserId() 169 assertThat(mAppInfoWithHeader.mPackageInfo).isNotNull(); in extraUserHandleInIntent_retrieveAppEntryWithMyUserId() 185 mPackageInfo = new PackageInfo(); in TestFragment() 186 mPackageInfo.applicationInfo = new ApplicationInfo(); in TestFragment()
|