Home
last modified time | relevance | path

Searched refs:permissionIndex (Results 1 – 2 of 2) sorted by relevance

/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/
DSessionParamsPermissionStateTest.kt252 val permissionIndex = packageInfo.requestedPermissions!!.indexOfFirst { it == name } in <lambda>() constant
255 assertThat(permissionIndex).isEqualTo(-1) in <lambda>()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/
DClientTest.java1193 final int permissionIndex = Arrays.asList(packageInfo.requestedPermissions).indexOf( in isPermissionGrantedInPackageInfo() local
1195 assertThat(permissionIndex, is(not(-1))); in isPermissionGrantedInPackageInfo()
1196 return (packageInfo.requestedPermissionsFlags[permissionIndex] in isPermissionGrantedInPackageInfo()