/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/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/ |
D | AppPermissions.java | 61 private PackageInfo mPackageInfo; field in AppPermissions 71 mPackageInfo = packageInfo; in AppPermissions() 80 return mPackageInfo; in getPackageInfo() 113 mPackageInfo = mContext.createPackageContextAsUser(mPackageInfo.packageName, 0, in loadPackageInfo() 114 UserHandle.getUserHandleForUid(mPackageInfo.applicationInfo.uid)) in loadPackageInfo() 115 .getPackageManager().getPackageInfo(mPackageInfo.packageName, in loadPackageInfo() 144 if (mPackageInfo.requestedPermissions != null) { in loadPermissionGroups() 145 for (String requestedPerm : mPackageInfo.requestedPermissions) { in loadPermissionGroups() 147 AppPermissionGroup group = AppPermissionGroup.create(mContext, mPackageInfo, in loadPermissionGroups()
|
D | AppPermissionGroup.java | 105 private final PackageInfo mPackageInfo; field in AppPermissionGroup 453 mPackageInfo = packageInfo; in AppPermissionGroup() 551 return mPackageInfo; 755 if (LocationUtils.isLocationGroupAndProvider(mContext, mName, mPackageInfo.packageName)) { 761 mContext, mName, mPackageInfo.packageName)) { 800 int currentMode = mAppOps.unsafeCheckOpRaw(op, uid, mPackageInfo.packageName); 880 mActivityManager.killUid(mPackageInfo.applicationInfo.uid, reason); 889 POST_NOTIFICATIONS, mPackageInfo.packageName, mUserHandle); 1396 return mPackageInfo.applicationInfo.uid 1397 - another.mPackageInfo.applicationInfo.uid; [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | MediaManagementAppsDetailsTest.java | 48 private PackageInfo mPackageInfo; field in MediaManagementAppsDetailsTest 71 ReflectionHelpers.setField(mFragment, "mPackageInfo", mPackageInfo); in refreshUi_noApplicationInfo_returnFalse() 78 ReflectionHelpers.setField(mFragment, "mPackageInfo", mPackageInfo); in refreshUi_hasApplicationInfo_returnTrue() 79 mPackageInfo.applicationInfo = new ApplicationInfo(); in refreshUi_hasApplicationInfo_returnTrue() 107 ReflectionHelpers.setField(mFragment, "mPackageInfo", mPackageInfo); in assert_refreshUi_switchPreferenceSetEnabled() 108 mPackageInfo.applicationInfo = new ApplicationInfo(); in assert_refreshUi_switchPreferenceSetEnabled() 118 ReflectionHelpers.setField(mFragment, "mPackageInfo", mPackageInfo); in assert_refreshUi_switchPreferenceSetChecked() 119 mPackageInfo.applicationInfo = new ApplicationInfo(); in assert_refreshUi_switchPreferenceSetChecked()
|
D | AlarmsAndRemindersDetailsTest.java | 46 private PackageInfo mPackageInfo; field in AlarmsAndRemindersDetailsTest 72 ReflectionHelpers.setField(mFragment, "mPackageInfo", mPackageInfo); in refreshUi_noApplicationInfo_shouldReturnFalseAndNoCrash() 82 ReflectionHelpers.setField(mFragment, "mPackageInfo", mPackageInfo); in refreshUi_hasApplicationInfo_shouldReturnTrue() 83 mPackageInfo.applicationInfo = new ApplicationInfo(); in refreshUi_hasApplicationInfo_shouldReturnTrue() 94 ReflectionHelpers.setField(mFragment, "mPackageInfo", mPackageInfo); in refreshUi_switchPreferenceEnabled() 95 mPackageInfo.applicationInfo = new ApplicationInfo(); in refreshUi_switchPreferenceEnabled() 111 ReflectionHelpers.setField(mFragment, "mPackageInfo", mPackageInfo); in refreshUi_switchPreferenceChecked() 112 mPackageInfo.applicationInfo = new ApplicationInfo(); in refreshUi_switchPreferenceChecked()
|
D | ExternalSourcesDetailsTest.java | 62 private PackageInfo mPackageInfo; field in ExternalSourcesDetailsTest 85 ReflectionHelpers.setField(mFragment, "mPackageInfo", mPackageInfo); in refreshUi_noApplicationInfo_shouldReturnFalseAndNoCrash() 95 ReflectionHelpers.setField(mFragment, "mPackageInfo", mPackageInfo); in refreshUi_hasApplicationInfo_shouldReturnTrue() 96 mPackageInfo.applicationInfo = new ApplicationInfo(); in refreshUi_hasApplicationInfo_shouldReturnTrue() 118 ReflectionHelpers.setField(fragment, "mPackageInfo", mPackageInfo); in refreshUi_userRestrictionsUnknownSources_disablesSwitchPreference() 119 mPackageInfo.applicationInfo = new ApplicationInfo(); in refreshUi_userRestrictionsUnknownSources_disablesSwitchPreference() 157 ReflectionHelpers.setField(fragment, "mPackageInfo", mPackageInfo); in refreshUi_userRestrictionsUnknownSourcesGlobally_disablesSwitchPreference() 158 mPackageInfo.applicationInfo = new ApplicationInfo(); in refreshUi_userRestrictionsUnknownSourcesGlobally_disablesSwitchPreference() 196 ReflectionHelpers.setField(fragment, "mPackageInfo", mPackageInfo); in refreshUi_bothUnknownSourcesUserRestrictions_disableSwitchPreference() 197 mPackageInfo.applicationInfo = new ApplicationInfo(); in refreshUi_bothUnknownSourcesUserRestrictions_disableSwitchPreference()
|
D | AppButtonsPreferenceControllerTest.java | 120 private PackageInfo mPackageInfo; field in AppButtonsPreferenceControllerTest 151 mPackageInfo.packageName = PACKAGE_NAME; in setUp() 152 mPackageInfo.applicationInfo = mAppInfo; in setUp() 156 mController.mPackageInfo = mPackageInfo; in setUp() 189 doReturn(mPackageInfo).when(mPackageManger).getPackageInfo(anyString(), anyInt()); in retrieveAppEntry_hasAppEntry_notNull() 194 assertThat(mController.mPackageInfo).isNotNull(); in retrieveAppEntry_hasAppEntry_notNull() 200 doReturn(mPackageInfo).when(mPackageManger).getPackageInfo(anyString(), anyInt()); in retrieveAppEntry_noAppEntry_null() 205 assertThat(mController.mPackageInfo).isNull(); in retrieveAppEntry_noAppEntry_null() 218 assertThat(mController.mPackageInfo).isNull(); in retrieveAppEntry_throwException_null() 483 doReturn(mPackageInfo).when(mPackageManger).getPackageInfo(anyString(), anyInt()); in refreshUi_buttonPreferenceNull_shouldNotCrash()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/ |
D | AutoGrantPermissionsNotifier.java | 90 private final @NonNull PackageInfo mPackageInfo; field in AutoGrantPermissionsNotifier 98 mPackageInfo = packageInfo; in AutoGrantPermissionsNotifier() 99 UserHandle callingUser = getUserHandleForUid(mPackageInfo.applicationInfo.uid); in AutoGrantPermissionsNotifier() 138 CharSequence pkgLabel = pm.getApplicationLabel(mPackageInfo.applicationInfo); in notifyOfAutoGrantPermissions() 144 pm.getApplicationIcon(mPackageInfo.applicationInfo)); in notifyOfAutoGrantPermissions() 154 int packageBasedRequestCode = mPackageInfo.packageName.hashCode(); in notifyOfAutoGrantPermissions() 188 mPackageInfo.packageName, PERMISSION_GRANTED_BY_ADMIN_NOTIFICATION_ID); in notifyOfAutoGrantPermissions() 189 notificationManager.notify(mPackageInfo.packageName, in notifyOfAutoGrantPermissions() 218 UserHandle callingUser = getUserHandleForUid(mPackageInfo.applicationInfo.uid); in getSettingsPermissionIntent() 223 .putExtra(EXTRA_PACKAGE_NAME, mPackageInfo.packageName) in getSettingsPermissionIntent()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | AppInfoWithHeader.java | 45 if (mPackageInfo == null) return; in onActivityCreated() 50 .setIcon(Utils.getBadgedIcon(getContext(), mPackageInfo.applicationInfo)) in onActivityCreated() 51 .setLabel(mPackageInfo.applicationInfo.loadLabel(mPm)) in onActivityCreated() 52 .setSummary(mPackageInfo) in onActivityCreated() 53 .setIsInstantApp(AppUtils.isInstant(mPackageInfo.applicationInfo)) in onActivityCreated() 55 .setUid(mPackageInfo.applicationInfo.uid) in onActivityCreated()
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/ |
D | ApplicationDetailsFragment.java | 43 private PackageInfo mPackageInfo; field in ApplicationDetailsFragment 81 R.string.pk_application_details_notifications).setPackageInfo(mPackageInfo); in onAttach() 89 .setPackageInfo(mPackageInfo); in onAttach() 94 R.string.pk_application_details_version).setPackageInfo(mPackageInfo); in onAttach() 101 mPackageInfo = mPm.getPackageInfo(mPackageName, in retrieveAppEntry() 106 mPackageInfo = null; in retrieveAppEntry() 109 mPackageInfo = null; in retrieveAppEntry()
|
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/src/com/android/settings/vpn2/ |
D | AppDialogFragment.java | 48 private PackageInfo mPackageInfo; field in AppDialogFragment 96 mPackageInfo = getArguments().getParcelable(ARG_PACKAGE); in onCreate() 112 return new AppDialog(getActivity(), this, mPackageInfo, label); in onCreateDialog() 149 mPackageInfo.packageName, userId, VpnManager.TYPE_VPN_NONE); in onForget() 162 if (mPackageInfo.packageName.equals(VpnUtils.getConnectedPackage(mVpnManager, userId))) { in onDisconnect() 165 mVpnManager.prepareVpn(mPackageInfo.packageName, VpnConfig.LEGACY_VPN, userId); in onDisconnect() 174 return mPackageInfo.packageName.equals(mDevicePolicyManager.getAlwaysOnVpnPackage()); in isUiRestricted() 178 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/specialaccess/notificationaccess/ |
D | HeaderPreferenceController.java | 45 private PackageInfo mPackageInfo; field in HeaderPreferenceController 63 mPackageInfo = packageInfo; in setPackageInfo() 114 .getBadgedIcon(mPackageInfo.applicationInfo)) in displayPreference() 115 .setLabel(mPackageInfo.applicationInfo.loadLabel(mPm)) in displayPreference() 119 .setIsInstantApp(AppUtils.isInstant(mPackageInfo.applicationInfo)) in displayPreference() 120 .setPackageName(mPackageInfo.packageName) in displayPreference() 121 .setUid(mPackageInfo.applicationInfo.uid) in displayPreference()
|
/packages/apps/Settings/src/com/android/settings/applications/appinfo/ |
D | AppButtonsPreferenceController.java | 101 PackageInfo mPackageInfo; field in AppButtonsPreferenceController 223 if (mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in onClick() 372 mPackageInfo = mPm.getPackageInfo(mAppEntry.info.packageName, in retrieveAppEntry() 381 mPackageInfo = null; in retrieveAppEntry() 384 mPackageInfo = null; in retrieveAppEntry() 401 if ((mPackageInfo.applicationInfo.flags & ApplicationInfo.FLAG_INSTALLED) == 0 in updateUninstallButton() 410 if (isBundled && mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in updateUninstallButton() 417 if (isSystemPackage(mActivity.getResources(), mPm, mPackageInfo)) { in updateUninstallButton() 418 if (Utils.isProfileOrDeviceOwner(mUserManager, mDpm, mPackageInfo.packageName)) { in updateUninstallButton() 424 if (Utils.isProfileOrDeviceOwner(mDpm, mPackageInfo.packageName, mUserId)) { in updateUninstallButton() [all …]
|
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 | MediaManagementAppsDetails.java | 78 mAppOpsManager.setUidMode(AppOpsManager.OP_MANAGE_MEDIA, mPackageInfo.applicationInfo.uid, in setCanManageMedia() 93 if (mPackageInfo == null || mPackageInfo.applicationInfo == null) { in refreshUi() 98 mPackageInfo.applicationInfo.uid); in refreshUi()
|
D | AppInfoDashboardFragment.java | 120 private PackageInfo mPackageInfo; field in AppInfoDashboardFragment 295 if (mPackageInfo == null) { in createPreferenceControllers() 347 return mPackageInfo; in getPackageInfo() 367 if (mPackageInfo == null) { in ensurePackageInfoAvailable() 541 } else if (mPackageInfo == null || mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in shouldShowUninstallForAll() 563 if (mPackageInfo == null) { in refreshUi() 708 mPackageInfo = activity.getPackageManager().getPackageInfo( in retrieveAppEntry() 719 mPackageInfo = null; in retrieveAppEntry() 802 && TextUtils.equals(mPackageInfo.overlayTarget, packageName)) {
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/ |
D | VerifyAdminPackageTaskTest.java | 77 @Mock private PackageInfo mPackageInfo; field in VerifyAdminPackageTaskTest 90 mPackageInfo.packageName = TEST_PACKAGE_NAME; in setUp() 91 mPackageInfo.signatures = TEST_SIGNATURES; in setUp() 95 .thenReturn(mPackageInfo); in setUp() 99 when(mUtils.findDeviceAdminInPackageInfo(TEST_PACKAGE_NAME, null, mPackageInfo)) in setUp() 121 when(mUtils.findDeviceAdminInPackageInfo(TEST_PACKAGE_NAME, null, mPackageInfo)) in testMissingDeviceAdminComponent() 177 mPackageInfo.signatures = null; in testSignatureHash_noSignature()
|
D | VerifyRoleHolderPackageTaskTest.java | 74 @Mock private PackageInfo mPackageInfo; field in VerifyRoleHolderPackageTaskTest 87 mPackageInfo.packageName = TEST_PACKAGE_NAME; in setUp() 88 mPackageInfo.signatures = TEST_SIGNATURES; in setUp() 92 .thenReturn(mPackageInfo); in setUp() 157 mPackageInfo.signatures = null; in testSignatureHash_noSignature()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/television/ |
D | AllAppPermissionsFragment.java | 63 private PackageInfo mPackageInfo; field in AllAppPermissionsFragment 87 mPackageInfo = getActivity().getPackageManager().getPackageInfo(pkg, in onCreate() 93 mAppPermissions = new AppPermissions(getActivity(), mPackageInfo, false, in onCreate() 136 ApplicationInfo appInfo = mPackageInfo.applicationInfo; in updateUi() 143 .setData(Uri.fromParts("package", mPackageInfo.packageName, null)); in updateUi() 147 if (mPackageInfo.requestedPermissions != null) { in updateUi() 148 for (int i = 0; i < mPackageInfo.requestedPermissions.length; i++) { in updateUi() 151 perm = pm.getPermissionInfo(mPackageInfo.requestedPermissions[i], 0); in updateUi() 154 + mPackageInfo.requestedPermissions[i], e); in updateUi()
|
/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/tests/robotests/src/com/android/car/settings/applications/ |
D | VersionPreferenceControllerTest.java | 46 private PackageInfo mPackageInfo; field in VersionPreferenceControllerTest 57 mPackageInfo = new PackageInfo(); in setUp() 58 mPackageInfo.versionName = TEST_VERSION_NAME; in setUp() 69 mController.setPackageInfo(mPackageInfo); in testRefreshUi_hasPackageInfo_setTitle()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | AppInfoWithHeaderTest.java | 138 mAppInfoWithHeader.mPackageInfo); in noExtraUserHandleInIntent_retrieveAppEntryWithMyUserId() 143 assertThat(mAppInfoWithHeader.mPackageInfo).isNotNull(); in noExtraUserHandleInIntent_retrieveAppEntryWithMyUserId() 165 mAppInfoWithHeader.mPackageInfo); in extraUserHandleInIntent_retrieveAppEntryWithMyUserId() 170 assertThat(mAppInfoWithHeader.mPackageInfo).isNotNull(); in extraUserHandleInIntent_retrieveAppEntryWithMyUserId() 186 mPackageInfo = new PackageInfo(); in TestFragment() 187 mPackageInfo.applicationInfo = new ApplicationInfo(); in TestFragment()
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | ChangeWifiStateDetails.java | 91 mPackageInfo.applicationInfo.uid, mPackageName, newState in setCanChangeWifiState() 104 if (mPackageInfo == null || mPackageInfo.applicationInfo == null) { in refreshUi() 108 mPackageInfo.applicationInfo.uid); in refreshUi()
|