/packages/modules/StatsD/statsd/tests/ |
D | statsd_test_util_test.cpp | 35 PackageInfo packageInfo = buildPackageInfo(appName, uid, version, versionString, in TEST() local 40 EXPECT_THAT(packageInfo.version(), Eq(version)); in TEST() 41 EXPECT_THAT(packageInfo.uid(), Eq(uid)); in TEST() 42 EXPECT_THAT(packageInfo.deleted(), Eq(false)); in TEST() 58 PackageInfo packageInfo = buildPackageInfo(appName, uid, version, versionString, in TEST_P() local 63 EXPECT_THAT(packageInfo.has_truncated_certificate_hash(), !certHash.empty()); in TEST_P() 65 EXPECT_THAT(packageInfo.truncated_certificate_hash(), Eq(expectedCertHash)); in TEST_P() 69 PackageInfo packageInfo = buildPackageInfo(appName, uid, version, versionString, in TEST() local 74 EXPECT_TRUE(packageInfo.has_name_hash()); in TEST() 75 EXPECT_THAT(packageInfo.name_hash(), Eq(Hash64(appName))); in TEST() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/specialaccess/ |
D | AppStateAppOpsBridgeTest.java | 113 PackageInfo packageInfo = createPackageInfo(packageName, USER_ID1); in androidPackagesIgnored() local 114 addPackageWithPermission(packageInfo, AppOpsManager.MODE_ALLOWED); in androidPackagesIgnored() 115 ApplicationsState.AppEntry entry = createAppEntry(packageInfo); in androidPackagesIgnored() 125 PackageInfo packageInfo = createPackageInfo(packageName, USER_ID1); in selfPackageIgnored() local 126 addPackageWithPermission(packageInfo, AppOpsManager.MODE_ALLOWED); in selfPackageIgnored() 127 ApplicationsState.AppEntry entry = createAppEntry(packageInfo); in selfPackageIgnored() 137 PackageInfo packageInfo = createPackageInfo(packageName, USER_ID1); in packagesNotRequestingPermissionIgnored() local 138 packageInfo.requestedPermissions = null; in packagesNotRequestingPermissionIgnored() 139 mPackages.add(packageInfo); in packagesNotRequestingPermissionIgnored() 140 when(mMockIPackageManager.isPackageAvailable(packageInfo.packageName, USER_ID1)) in packagesNotRequestingPermissionIgnored() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/ |
D | FullStoragePermissionAppsLiveData.kt | 69 for (packageInfo in userPackages) { in loadDataAndPostValue() method 71 getFullStorageStateForPackage(appOpsManager, packageInfo, user) ?: continue in loadDataAndPostValue() 90 packageInfo: LightPackageInfo, in getFullStorageStateForPackage() 93 val sdk = packageInfo.targetSdkVersion in getFullStorageStateForPackage() 94 val user = userHandle ?: UserHandle.getUserHandleForUid(packageInfo.uid) in getFullStorageStateForPackage() 97 packageInfo.packageName, in getFullStorageStateForPackage() 106 packageInfo.uid, in getFullStorageStateForPackage() 107 packageInfo.packageName in getFullStorageStateForPackage() 111 packageInfo.packageName, in getFullStorageStateForPackage() 117 if (MANAGE_EXTERNAL_STORAGE in packageInfo.requestedPermissions) { in getFullStorageStateForPackage() [all …]
|
D | UserPackageInfosLiveData.kt | 54 for (packageInfo in value ?: emptyList()) { in <lambda>() method 55 PermissionListenerMultiplexer.removeCallback(packageInfo.uid, this) in <lambda>() 61 for (packageInfo in value ?: emptyList()) { in <lambda>() method 62 PermissionListenerMultiplexer.removeCallback(packageInfo.uid, this) in <lambda>() 64 for (packageInfo in newValue ?: emptyList()) { in <lambda>() method 65 PermissionListenerMultiplexer.addCallback(packageInfo.uid, this) in <lambda>() 98 postValue(packageInfos.map { packageInfo -> LightPackageInfo(packageInfo) }) in <lambda>() method 106 for (packageInfo in value ?: emptyList()) { in <lambda>() method 107 PermissionListenerMultiplexer.addCallback(packageInfo.uid, this) in <lambda>() 114 for (packageInfo in value ?: emptyList()) { in <lambda>() method [all …]
|
D | LightPackageInfoLiveData.kt | 74 newValue?.let { packageInfo -> in <lambda>() method 75 if (packageInfo.uid != uid) { in <lambda>() 76 uid = packageInfo.uid in <lambda>() 81 packageInfo.uid, in <lambda>() 182 val packageInfo = userPackagesLiveData.value!!.find { it.packageName == packageName } in <lambda>() constant 183 if (packageInfo != null) { in <lambda>() 192 packageInfo.deviceId = deviceId in <lambda>() 193 packageInfo.requestedPermissionsFlags = in <lambda>() 195 packageInfo.requestedPermissions, in <lambda>() 196 packageInfo.requestedPermissionsFlags, in <lambda>() [all …]
|
D | LightAppPermGroupLiveData.kt | 91 addSource(packageInfoLiveData) { packageInfo -> in <lambda>() method 92 if (packageInfo == null && packageInfoLiveData.isInitialized) { in <lambda>() 104 val packageInfo = packageInfoLiveData.value ?: return in <lambda>() constant 109 packageInfo.targetSdkVersion < Build.VERSION_CODES.M && in <lambda>() 112 value = LightAppPermGroup(packageInfo, permGroup.groupInfo, emptyMap()) in <lambda>() 121 LightPermission(packageInfo, permInfo, permState, foregroundPerms) in <lambda>() 138 val hasInstallToRuntimeSplit = hasInstallToRuntimeSplit(packageInfo, permissionMap) in <lambda>() 141 packageInfo, in <lambda>() 156 packageInfo: LightPackageInfo, in <lambda>() 186 if (packageInfo.targetSdkVersion < spi.targetSdk) { in <lambda>()
|
D | PermStateLiveData.kt | 82 val packageInfo = packageInfoLiveData.value in <lambda>() constant 84 if (packageInfo == null || permissionGroup == null) { in <lambda>() 90 for ((index, permissionName) in packageInfo.requestedPermissions.withIndex()) { in <lambda>() 92 val packageFlags = packageInfo.requestedPermissionsFlags[index] in <lambda>() 113 private fun checkForUidUpdate(packageInfo: LightPackageInfo?) { in <lambda>() 114 if (packageInfo == null) { in <lambda>() 118 uid = packageInfo.uid in <lambda>() 120 PermissionListenerMultiplexer.addOrReplaceCallback(registeredUid, packageInfo.uid, this) in <lambda>()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/packageinfo/ |
D | PackageInfoFragment.java | 111 for (PackageInfo packageInfo : packages) { in refreshPackages() 112 Log.d(TAG, "checking package: " + packageInfo); in refreshPackages() 117 Log.d(TAG, "sharedUid flagged: " + (packageInfo.sharedUserId == null in refreshPackages() 118 || !packageInfo.sharedUserId.equals(SYSTEM_UID))); in refreshPackages() 121 toDenyList &= (packageInfo.sharedUserId == null in refreshPackages() 122 || !packageInfo.sharedUserId.equals(SYSTEM_UID)); in refreshPackages() 126 if (mFilterPermissions && packageInfo.requestedPermissions != null) { in refreshPackages() 128 for (String info : Arrays.asList(packageInfo.requestedPermissions)) { in refreshPackages() 133 toDenyList &= !(Arrays.asList(packageInfo.requestedPermissions).stream().anyMatch( in refreshPackages() 138 if (mFilterServices && packageInfo.services != null) { in refreshPackages() [all …]
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/appsindexer/ |
D | AppsIndexerImpl.java | 84 for (PackageInfo packageInfo : packageInfos) { in doUpdate() 85 currentAppIds.add(packageInfo.packageName); in doUpdate() 88 if (packageInfo.lastUpdateTime > mostRecentAppUpdatedTimestampMillis) { in doUpdate() 89 mostRecentAppUpdatedTimestampMillis = packageInfo.lastUpdateTime; in doUpdate() 92 Long storedUpdateTime = appUpdatedTimestamps.get(packageInfo.packageName); in doUpdate() 94 if (storedUpdateTime == null || packageInfo.lastUpdateTime != storedUpdateTime) { in doUpdate() 96 packagesToBeAddedOrUpdated.put(packageInfo, launchablePackages.get(packageInfo)); in doUpdate() 107 for (PackageInfo packageInfo : packageInfos) { in doUpdate() 110 byte[] certificate = AppsUtil.getCertificate(packageInfo); in doUpdate() 112 Log.e(TAG, "Certificate not found for package: " + packageInfo.packageName); in doUpdate() [all …]
|
D | AppsUtil.java | 148 PackageInfo packageInfo = packageInfos.get(i); in getLaunchablePackages() local 149 ResolveInfo resolveInfo = packageNameToLauncher.get(packageInfo.packageName); in getLaunchablePackages() 152 launchablePackages.put(packageInfo, resolveInfo); in getLaunchablePackages() 187 public static byte[] getCertificate(@NonNull PackageInfo packageInfo) { in getCertificate() argument 188 Objects.requireNonNull(packageInfo); in getCertificate() 189 if (packageInfo.signingInfo == null) { in getCertificate() 191 Log.d(TAG, "Signing info not found for package: " + packageInfo.packageName); in getCertificate() 201 Signature[] signatures = packageInfo.signingInfo.getSigningCertificateHistory(); in getCertificate() 218 @NonNull PackageInfo packageInfo, in createMobileApplication() argument 221 Objects.requireNonNull(packageInfo); in createMobileApplication() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/ |
D | NotificationsPreferenceControllerTest.java | 136 PackageInfo packageInfo = new PackageInfo(); in onCreate_noNotificationPermission_isNotEnabled() local 137 packageInfo.requestedPermissions = new String[] {}; in onCreate_noNotificationPermission_isNotEnabled() 139 eq(PackageManager.GET_PERMISSIONS), anyInt())).thenReturn(packageInfo); in onCreate_noNotificationPermission_isNotEnabled() 150 PackageInfo packageInfo = new PackageInfo(); in onCreate_systemFixedFlag_isNotEnabled() local 151 packageInfo.requestedPermissions = new String[] {Manifest.permission.POST_NOTIFICATIONS}; in onCreate_systemFixedFlag_isNotEnabled() 153 eq(PackageManager.GET_PERMISSIONS), anyInt())).thenReturn(packageInfo); in onCreate_systemFixedFlag_isNotEnabled() 167 PackageInfo packageInfo = new PackageInfo(); in onCreate_policyFixedFlag_isNotEnabled() local 168 packageInfo.requestedPermissions = new String[] {Manifest.permission.POST_NOTIFICATIONS}; in onCreate_policyFixedFlag_isNotEnabled() 170 eq(PackageManager.GET_PERMISSIONS), anyInt())).thenReturn(packageInfo); in onCreate_policyFixedFlag_isNotEnabled() 184 PackageInfo packageInfo = new PackageInfo(); in onCreate_hasPermissions_isEnabled() local [all …]
|
/packages/apps/Car/Notification/src/com/android/car/notification/ |
D | NotificationUtils.java | 91 PackageInfo packageInfo = getPackageInfo(context, statusBarNotification); in isSystemApp() local 92 if (packageInfo == null) return false; in isSystemApp() 94 return packageInfo.applicationInfo.isSystemApp(); in isSystemApp() 102 PackageInfo packageInfo = getPackageInfo(context, statusBarNotification); in isSignedWithPlatformKey() local 103 if (packageInfo == null) return false; in isSignedWithPlatformKey() 105 return packageInfo.applicationInfo.isSignedWithPlatformKey(); in isSignedWithPlatformKey() 178 PackageInfo packageInfo = getPackageInfo(context, alertEntry.getStatusBarNotification()); in isSystemPrivilegedOrPlatformKeyInner() local 179 if (packageInfo == null) return false; in isSystemPrivilegedOrPlatformKeyInner() 183 (!checkForPrivilegedApp) || packageInfo.applicationInfo.isPrivilegedApp(); in isSystemPrivilegedOrPlatformKeyInner() 185 return (packageInfo.applicationInfo.isSignedWithPlatformKey() || in isSystemPrivilegedOrPlatformKeyInner() [all …]
|
/packages/services/Car/cpp/watchdog/server/tests/ |
D | PackageInfoTestUtils.cpp | 32 PackageInfo packageInfo; in constructPackageInfo() local 33 packageInfo.packageIdentifier.name = packageName; in constructPackageInfo() 34 packageInfo.packageIdentifier.uid = uid; in constructPackageInfo() 35 packageInfo.uidType = uidType; in constructPackageInfo() 36 packageInfo.componentType = componentType; in constructPackageInfo() 37 packageInfo.appCategoryType = appCategoryType; in constructPackageInfo() 38 packageInfo.sharedUidPackages = sharedUidPackages; in constructPackageInfo() 39 return packageInfo; in constructPackageInfo()
|
/packages/services/Car/service/src/com/android/car/watchdog/ |
D | PackageInfoHandler.java | 145 public String getNameForPackage(android.content.pm.PackageInfo packageInfo) { in getNameForPackage() argument 147 String genericPackageName = mGenericPackageNameByPackage.get(packageInfo.packageName); in getNameForPackage() 151 if (packageInfo.sharedUserId != null) { in getNameForPackage() 152 populateSharedPackagesLocked(packageInfo.applicationInfo.uid, in getNameForPackage() 153 SHARED_PACKAGE_PREFIX + packageInfo.sharedUserId); in getNameForPackage() 154 return SHARED_PACKAGE_PREFIX + packageInfo.sharedUserId; in getNameForPackage() 156 mGenericPackageNameByPackage.put(packageInfo.packageName, packageInfo.packageName); in getNameForPackage() 157 return packageInfo.packageName; in getNameForPackage() 220 PackageInfo packageInfo = new PackageInfo(); in getPackageInfo() local 221 packageInfo.packageIdentifier = new PackageIdentifier(); in getPackageInfo() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/specialaccess/ |
D | AppStateAppOpsBridge.java | 104 for (PackageInfo packageInfo : packageInfos) { in getPackageToStateMapsByProfileId() 106 packageInfo.packageName, in getPackageToStateMapsByProfileId() 108 if (shouldIgnorePackage(packageInfo) || !isAvailable) { in getPackageToStateMapsByProfileId() 109 LOG.d("Ignoring " + packageInfo.packageName + " isAvailable=" in getPackageToStateMapsByProfileId() 113 PermissionState newEntry = getPermissionState(packageInfo); in getPackageToStateMapsByProfileId() 114 newEntry.mRequestedPermissions = packageInfo.requestedPermissions; in getPackageToStateMapsByProfileId() 115 entriesForProfile.put(packageInfo.packageName, newEntry); in getPackageToStateMapsByProfileId() 125 private PermissionState getPermissionState(PackageInfo packageInfo) { in getPermissionState() argument 126 String[] requestedPermissions = packageInfo.requestedPermissions; in getPermissionState() 127 int[] permissionFlags = packageInfo.requestedPermissionsFlags; in getPermissionState() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/privacy/ |
D | PermissionUtils.java | 123 for (PackageInfo packageInfo : packages) { in getPackagesWithPermissionGroup() 125 if (packageNameToInfo.containsKey(packageInfo.packageName)) { in getPackagesWithPermissionGroup() 129 getPermissionState(context, packageInfo, permissionName, userHandle); in getPackagesWithPermissionGroup() 143 packageNameToInfo.put(packageInfo.packageName, packageInfo); in getPackagesWithPermissionGroup() 149 private static PermissionState getPermissionState(Context context, PackageInfo packageInfo, in getPermissionState() argument 152 packageInfo.packageName, userHandle); in getPermissionState() 153 String[] requestedPermissions = packageInfo.requestedPermissions; in getPermissionState() 159 int[] requestedPermissionsFlags = packageInfo.requestedPermissionsFlags; in getPermissionState() 164 LOG.e("Failed to get application info for " + packageInfo.packageName); in getPermissionState() 183 boolean supportsRuntime = packageInfo.applicationInfo.targetSdkVersion in getPermissionState() [all …]
|
/packages/services/Car/cpp/watchdog/server/src/ |
D | PackageInfoResolver.cpp | 80 PackageInfo packageInfo; in getPackageInfoForNativeUid() local 86 packageInfo.packageIdentifier.name = packageName; in getPackageInfoForNativeUid() 87 packageInfo.packageIdentifier.uid = uid; in getPackageInfoForNativeUid() 88 packageInfo.uidType = UidType::NATIVE; in getPackageInfoForNativeUid() 89 packageInfo.componentType = in getPackageInfoForNativeUid() 91 packageInfo.appCategoryType = ApplicationCategoryType::OTHERS; in getPackageInfoForNativeUid() 92 packageInfo.sharedUidPackages = {}; in getPackageInfoForNativeUid() 94 return packageInfo; in getPackageInfoForNativeUid() 185 for (auto& packageInfo : packageInfos) { in updatePackageInfos() local 186 const auto& id = packageInfo.packageIdentifier; in updatePackageInfos() [all …]
|
/packages/modules/NeuralNetworks/runtime/ |
D | AppInfoFetcher.cpp | 48 ANeuralNetworks_PackageInfo packageInfo; in fetchAppPackageLocationInfo() local 49 if (!ANeuralNetworks_fetch_PackageInfo(uid, &packageInfo)) { in fetchAppPackageLocationInfo() 52 appInfo->appPackageName = packageInfo.appPackageName; in fetchAppPackageLocationInfo() 53 appInfo->appIsSystemApp = packageInfo.appIsSystemApp; in fetchAppPackageLocationInfo() 54 appInfo->appIsOnVendorImage = packageInfo.appIsOnVendorImage; in fetchAppPackageLocationInfo() 55 appInfo->appIsOnProductImage = packageInfo.appIsOnProductImage; in fetchAppPackageLocationInfo() 57 ANeuralNetworks_free_PackageInfo(&packageInfo); in fetchAppPackageLocationInfo()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | AppInstallerInfoPreferenceControllerTest.java | 107 final PackageInfo packageInfo = mock(PackageInfo.class); in updateState_shouldSetSummary() local 108 packageInfo.applicationInfo = mAppInfo; in updateState_shouldSetSummary() 109 when(mFragment.getPackageInfo()).thenReturn(packageInfo); in updateState_shouldSetSummary() 118 final PackageInfo packageInfo = mock(PackageInfo.class); in updateState_noAppStoreLink_shouldDisablePreference() local 119 packageInfo.applicationInfo = mAppInfo; in updateState_noAppStoreLink_shouldDisablePreference() 120 when(mFragment.getPackageInfo()).thenReturn(packageInfo); in updateState_noAppStoreLink_shouldDisablePreference() 130 final PackageInfo packageInfo = mock(PackageInfo.class); in updateState_hasAppStoreLink_shouldSetPreferenceIntent() local 131 packageInfo.applicationInfo = mAppInfo; in updateState_hasAppStoreLink_shouldSetPreferenceIntent() 132 when(mFragment.getPackageInfo()).thenReturn(packageInfo); in updateState_hasAppStoreLink_shouldSetPreferenceIntent() 159 final PackageInfo packageInfo = new PackageInfo(); in mockMainlineModule() local [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/notifications/ |
D | NotificationsAppListPreferenceControllerTest.java | 178 PackageInfo packageInfo = new PackageInfo(); in onCreate_noNotificationPermission_isNotEnabled() local 179 packageInfo.requestedPermissions = new String[] {}; in onCreate_noNotificationPermission_isNotEnabled() 181 eq(PackageManager.GET_PERMISSIONS), anyInt())).thenReturn(packageInfo); in onCreate_noNotificationPermission_isNotEnabled() 193 PackageInfo packageInfo = new PackageInfo(); in onCreate_systemFixedFlag_isNotEnabled() local 194 packageInfo.requestedPermissions = new String[] {Manifest.permission.POST_NOTIFICATIONS}; in onCreate_systemFixedFlag_isNotEnabled() 196 eq(PackageManager.GET_PERMISSIONS), anyInt())).thenReturn(packageInfo); in onCreate_systemFixedFlag_isNotEnabled() 211 PackageInfo packageInfo = new PackageInfo(); in onCreate_policyFixedFlag_isNotEnabled() local 212 packageInfo.requestedPermissions = new String[] {Manifest.permission.POST_NOTIFICATIONS}; in onCreate_policyFixedFlag_isNotEnabled() 214 eq(PackageManager.GET_PERMISSIONS), anyInt())).thenReturn(packageInfo); in onCreate_policyFixedFlag_isNotEnabled() 240 PackageInfo packageInfo = new PackageInfo(); in onCreate_targetSdkBelow33_systemFixedFlag_isNotEnabled() local [all …]
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/ |
D | UtilsTest.java | 312 PackageInfo packageInfo = setUpPackage(TEST_PACKAGE_NAME_1, TEST_DEVICE_ADMIN_NAME); in testFindDeviceAdminInPackageInfo_Success() local 316 mUtils.findDeviceAdminInPackageInfo(TEST_PACKAGE_NAME_1, null, packageInfo)); in testFindDeviceAdminInPackageInfo_Success() 321 PackageInfo packageInfo = setUpPackage(TEST_PACKAGE_NAME_1, TEST_DEVICE_ADMIN_NAME); in testFindDeviceAdminInPackageInfo_PackageNameMismatch() local 324 assertNull(mUtils.findDeviceAdminInPackageInfo(TEST_PACKAGE_NAME_2, null, packageInfo)); in testFindDeviceAdminInPackageInfo_PackageNameMismatch() 329 PackageInfo packageInfo = setUpPackage(TEST_PACKAGE_NAME_1); in testFindDeviceAdminInPackageInfo_NoAdmin() local 332 assertNull(mUtils.findDeviceAdminInPackageInfo(TEST_PACKAGE_NAME_1, null, packageInfo)); in testFindDeviceAdminInPackageInfo_NoAdmin() 337 PackageInfo packageInfo = setUpPackage(TEST_PACKAGE_NAME_1, TEST_DEVICE_ADMIN_NAME, in testFindDeviceAdminInPackageInfo_TwoAdmins() local 341 assertNull(mUtils.findDeviceAdminInPackageInfo(TEST_PACKAGE_NAME_1, null, packageInfo)); in testFindDeviceAdminInPackageInfo_TwoAdmins() 346 PackageInfo packageInfo = setUpPackage(TEST_PACKAGE_NAME_1, TEST_DEVICE_ADMIN_NAME, in testFindDeviceAdminInPackageInfo_TwoAdminsWithComponentName() local 351 TEST_PACKAGE_NAME_1, TEST_COMPONENT_NAME, packageInfo)); in testFindDeviceAdminInPackageInfo_TwoAdminsWithComponentName() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/livedatatypes/ |
D | LightAppPermGroup.kt | 39 val packageInfo: LightPackageInfo, in <lambda>() constant in com.android.permissioncontroller.permission.model.livedatatypes.LightAppPermGroup 56 val packageName = packageInfo.packageName in <lambda>() 62 val userHandle: UserHandle = UserHandle.getUserHandleForUid(packageInfo.uid) in <lambda>() 65 val deviceId = packageInfo.deviceId in <lambda>() 81 packageInfo, in <lambda>() 88 packageInfo, in <lambda>() 115 val supportsRuntimePerms = packageInfo.targetSdkVersion >= Build.VERSION_CODES.M in <lambda>() 168 private val packageInfo: LightPackageInfo, in <lambda>() constant in com.android.permissioncontroller.permission.model.livedatatypes.LightAppPermGroup.AppPermSubGroup 229 (!packageInfo.isInstantApp || hasInstantPerm) && in <lambda>() 230 (packageInfo.targetSdkVersion >= Build.VERSION_CODES.M || hasPreRuntimePerm) in <lambda>()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/location/ |
D | LocationInfotainmentAppsPreferenceControllerTest.java | 153 PackageInfo packageInfo = new PackageInfo(); in refreshUi_permissionNotGranted_hideApp() local 154 packageInfo.packageName = PACKAGE_NAME; in refreshUi_permissionNotGranted_hideApp() 155 packageInfo.applicationInfo = appInfo; in refreshUi_permissionNotGranted_hideApp() 156 packageInfo.requestedPermissions = in refreshUi_permissionNotGranted_hideApp() 158 packageInfo.requestedPermissionsFlags = new int[] {0}; in refreshUi_permissionNotGranted_hideApp() 161 .thenReturn(List.of(packageInfo)); in refreshUi_permissionNotGranted_hideApp() 186 PackageInfo packageInfo = new PackageInfo(); in initializePreference() local 187 packageInfo.packageName = PACKAGE_NAME; in initializePreference() 188 packageInfo.applicationInfo = appInfo; in initializePreference() 189 packageInfo.requestedPermissions = in initializePreference() [all …]
|
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/ |
D | PackageInfoCompat.java | 29 public PackageInfoCompat(PackageInfo packageInfo) { in PackageInfoCompat() argument 30 mPackageInfo = packageInfo; in PackageInfoCompat() 31 this.mRequiredAccountType = packageInfo.requiredAccountType; in PackageInfoCompat() 32 this.restrictedAccountType = packageInfo.restrictedAccountType; in PackageInfoCompat() 33 this.mRequiredForAllUsers = packageInfo.requiredForAllUsers; in PackageInfoCompat()
|
/packages/modules/Permission/tests/cts/permissionpolicy/src/android/permissionpolicy/cts/ |
D | SignaturePermissionAllowlistConfigTest.kt | 43 for (packageInfo in getPlatformSignedNonSystemPackageInfos()) { in <lambda>() constant 44 val permissionNames = allowlist[packageInfo.packageName] in <lambda>() 45 packageInfo.requestedPermissions?.forEach { permissionName -> in <lambda>() 48 unallowlistedPackageAndPermissions.getOrPut(packageInfo.packageName) { in <lambda>() 98 for (packageInfo in getPlatformSignedNonSystemPackageInfos()) { in <lambda>() constant 99 packageInfo.requestedPermissions?.forEachIndexed { index, permissionName -> in <lambda>() 100 val permissionFlags = packageInfo.requestedPermissionsFlags!![index] in <lambda>() 103 deniedPackageAndPermissions.getOrPut(packageInfo.packageName) { in <lambda>()
|