Home
last modified time | relevance | path

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

/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DStatsdAppSecurityAtomTest.java81 AtomsProto.RoleHolder roleHolder = atom.getRoleHolder(); in testRoleHolder() local
83 assertThat(roleHolder.getPackageName()).isNotNull(); in testRoleHolder()
84 assertThat(roleHolder.getRole()).isNotNull(); in testRoleHolder()
87 if (roleHolder.getPackageName().equals("")) { in testRoleHolder()
88 assertThat(roleHolder.getUid()).isEqualTo(-1); in testRoleHolder()
90 assertThat(roleHolder.getUid()).isAtLeast(0); in testRoleHolder()
93 if (roleHolder.getPackageName().equals(STATSD_APP_PKG)) { in testRoleHolder()
94 assertThat(getAppId(roleHolder.getUid())).isEqualTo(testAppId); in testRoleHolder()
95 assertThat(roleHolder.getPackageName()).isEqualTo(STATSD_APP_PKG); in testRoleHolder()
96 assertThat(roleHolder.getRole()).isEqualTo(callScreenAppRole); in testRoleHolder()
/cts/tests/tests/nfc/src/android/nfc/cts/
DWalletRoleTestUtils.java141 static void runWithRole(Context context, String roleHolder, Runnable runnable) { in runWithRole() argument
166 Assert.assertTrue(setDefaultWalletRoleHolder(context, roleHolder)); in runWithRole()