Home
last modified time | relevance | path

Searched refs:androidPackage (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/services/permission/java/com/android/server/permission/access/permission/
DAppIdPermissionPolicy.kt182 val androidPackage = packageState.androidPackage ?: return in <lambda>() constant
184 androidPackage.requestedPermissions.forEach { permissionName -> in <lambda>()
191 it.isSystem && permissionName in it.androidPackage!!.requestedPermissions in <lambda>()
237 if (permissionName in packageState.androidPackage!!.requestedPermissions) { in <lambda>()
239 packageState.androidPackage!!.targetSdkVersion in <lambda>()
246 permissionName in it.androidPackage!!.requestedPermissions && in <lambda>()
280 val androidPackage = packageState.androidPackage ?: return in <lambda>() constant
282 androidPackage.requestedPermissions.forEach { permissionName -> in <lambda>()
290 permissionName in it.androidPackage!!.requestedPermissions in <lambda>()
321 val `package` = packageState.androidPackage!! in <lambda>()
[all …]
DAppIdPermissionUpgrade.kt86 packageState.androidPackage!!.requestedPermissions.forEach { permissionName -> in <lambda>()
107 packageState.androidPackage!!.requestedPermissions in <lambda>()
137 packageState.androidPackage!!.requestedPermissions in <lambda>()
162 val androidPackage = packageState.androidPackage!! in <lambda>() constant
163 if (androidPackage.targetSdkVersion < Build.VERSION_CODES.TIRAMISU) { in <lambda>()
166 val requestedPermissionNames = androidPackage.requestedPermissions in <lambda>()
191 packageState.androidPackage!!.requestedPermissions in <lambda>()
234 val androidPackage = packageState.androidPackage!! in <lambda>() constant
235 if (androidPackage.targetSdkVersion < Build.VERSION_CODES.TIRAMISU) { in <lambda>()
238 val requestedPermissionNames = androidPackage.requestedPermissions in <lambda>()
DPermissionService.kt249 val opPackage = snapshot.getPackageState(opPackageName)?.androidPackage in <lambda>()
476 val androidPackage = packageManagerInternal.getPackage(uid) in <lambda>() constant
477 if (androidPackage != null) { in <lambda>()
480 packageManagerInternal.getPackageStateInternal(androidPackage.packageName) in <lambda>()
485 " $androidPackage" in <lambda>()
782 val androidPackage = packageState?.androidPackage in <lambda>() constant
786 if (androidPackage == null) { in <lambda>()
842 if (permissionName !in packageState.androidPackage!!.requestedPermissions) { in <lambda>()
916 val androidPackage = packageState.androidPackage!! in <lambda>() constant
929 if (androidPackage.targetSdkVersion < Build.VERSION_CODES.M) { in <lambda>()
[all …]
DDevicePermissionPolicy.kt130 val androidPackage = packageState.androidPackage ?: return in <lambda>() constant
136 androidPackage.requestedPermissions.forEach { permissionName -> in <lambda>()
140 permissionName in it.androidPackage!!.requestedPermissions in <lambda>()
155 requestedPermissions += it.androidPackage!!.requestedPermissions in <lambda>()
179 packageState.androidPackage != null && predicate(packageState) in <lambda>()
191 if (packageState.androidPackage != null) { in <lambda>()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/
DPackageData.java31 return androidPackage(identifier, BackupStatus.KEY_VALUE_BACKUP); in keyValuePackage()
35 return androidPackage(identifier, BackupStatus.FULL_BACKUP); in fullBackupPackage()
39 public static PackageData androidPackage(int identifier) { in androidPackage() method in PackageData
40 return androidPackage(identifier, BackupStatus.KEY_VALUE_BACKUP); in androidPackage()
98 private static PackageData androidPackage(int identifier, @BackupStatus int backupStatus) { in androidPackage() method in PackageData
/frameworks/base/services/core/java/com/android/server/pm/
DReconcilePackageUtils.java230 for (AndroidPackage androidPackage : sharedUserSetting.getPackages()) { in reconcilePackages()
231 if (androidPackage.getPackageName() != null in reconcilePackages()
232 && !androidPackage.getPackageName().equals( in reconcilePackages()
235 androidPackage.getSigningDetails(), in reconcilePackages()
/frameworks/base/services/tests/PermissionServiceMockingTests/src/com/android/server/permission/test/
DBasePermissionPolicyTest.kt171 whenever(androidPackage).thenReturn(null) in <lambda>()
177 androidPackage: AndroidPackage, in <lambda>()
186 whenever(this.androidPackage).thenReturn(androidPackage) in <lambda>()
187 val packageName = androidPackage.packageName in <lambda>()
/frameworks/base/services/permission/java/com/android/server/permission/access/appop/
DAppIdAppOpUpgrade.kt43 if (permissionName in packageState.androidPackage!!.requestedPermissions) { in MutateStateScope()
/frameworks/base/services/robotests/src/com/android/server/pm/
DCrossProfileAppsServiceImplRoboTest.java651 private void mockCrossProfileAndroidPackage(AndroidPackage androidPackage) { in mockCrossProfileAndroidPackage() argument
653 .thenReturn(androidPackage); in mockCrossProfileAndroidPackage()
655 .thenReturn(androidPackage); in mockCrossProfileAndroidPackage()
657 .thenReturn(androidPackage); in mockCrossProfileAndroidPackage()
659 .thenReturn(androidPackage); in mockCrossProfileAndroidPackage()
661 .thenReturn(androidPackage); in mockCrossProfileAndroidPackage()
/frameworks/base/services/tests/servicestests/src/com/android/server/om/
DOverlayActorEnforcerTests.kt285 val androidPackage = mockThrowOnUnmocked<AndroidPackage> { in <lambda>() constant
289 whenever(this.androidPackage).thenReturn(androidPackage) in <lambda>()
/frameworks/base/services/permission/java/com/android/server/permission/access/
DAccessPolicy.kt142 packageState.androidPackage == null || packageNames.contains(packageName) in <lambda>()
287 if (packageState.androidPackage == null) { in <lambda>()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DPackageArchiverTest.java167 AndroidPackage androidPackage = mock(AndroidPackage.class); in setUp() local
168 when(mCallerPackageState.getAndroidPackage()).thenReturn(androidPackage); in setUp()
169 when(androidPackage.getRequestedPermissions()).thenReturn(Set.of()); in setUp()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityStarterTests.java1300 AndroidPackage androidPackage = mock(AndroidPackage.class); in testStartActivityInner_inTaskFragment_allowedTrustedCertUid() local
1301 doReturn(androidPackage).when(mMockPackageManager).getPackage(eq(12345)); in testStartActivityInner_inTaskFragment_allowedTrustedCertUid()
1307 doReturn(signingDetails).when(androidPackage).getSigningDetails(); in testStartActivityInner_inTaskFragment_allowedTrustedCertUid()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java594 for (AndroidPackage androidPackage : buildInstalledPackageList()) { in callSystemReady()
595 consumer.accept(androidPackage); in callSystemReady()
2709 final AndroidPackage androidPackage = mock(AndroidPackage.class); in createPackageMock() local
2710 when(androidPackage.getUid()).thenReturn(uid); in createPackageMock()
2711 return androidPackage; in createPackageMock()
/frameworks/base/services/core/java/com/android/server/am/
DContentProviderHelper.java1205 final AndroidPackage androidPackage = mService.getPackageManagerInternal() in checkContentProviderUriPermission() local
1207 if (androidPackage == null) { in checkContentProviderUriPermission()
1212 callingUid, androidPackage.getPackageName(), null); in checkContentProviderUriPermission()
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DDataManagerTest.java199 AndroidPackage androidPackage = mock(AndroidPackage.class); in setUp() local
200 when(androidPackage.getPackageName()).thenReturn(TEST_PKG_NAME); in setUp()
203 callback.accept(androidPackage); in setUp()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/alarm/
DAlarmManagerService.java1967 final AndroidPackage androidPackage = mPackageManagerInternal.getPackage(uid); in onUserStarting() local
1969 if (androidPackage != null) { in onUserStarting()
1971 uid, androidPackage.getPackageName()); in onUserStarting()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java5146 packageManagerInternal.forEachInstalledPackage(androidPackage -> {
5147 final int appId = androidPackage.getUid();
5148 if (androidPackage.getSharedUserId() != null) {
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java15938 final AndroidPackage androidPackage = pmInternal.getPackage(packageName); in checkCrossProfilePackagePermissions() local
15939 if (androidPackage == null || !androidPackage.isCrossProfile()) { in checkCrossProfilePackagePermissions()