Home
last modified time | relevance | path

Searched refs:sTestApis (Results 1 – 7 of 7) sorted by relevance

/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/settings/
DGlobalSettings.java38 private static final TestApis sTestApis = new TestApis(); field in GlobalSettings
51 try (PermissionContext p = sTestApis.permissions().withPermission( in putInt()
67 if (user.equals(sTestApis.users().instrumented())) { in putInt()
72 putInt(sTestApis.context().androidContextAsUser(user).getContentResolver(), key, value); in putInt()
81 try (PermissionContext p = sTestApis.permissions().withPermission(WRITE_SECURE_SETTINGS)) { in putInt()
83 sTestApis.context().instrumentedContext().getContentResolver(), key, value); in putInt()
93 try (PermissionContext p = sTestApis.permissions().withPermission( in putString()
109 if (user.equals(sTestApis.users().instrumented())) { in putString()
114 putString(sTestApis.context().androidContextAsUser(user).getContentResolver(), key, value); in putString()
123 try (PermissionContext p = sTestApis.permissions().withPermission(WRITE_SECURE_SETTINGS)) { in putString()
[all …]
DSecureSettings.java38 private static final TestApis sTestApis = new TestApis(); field in SecureSettings
51 try (PermissionContext p = sTestApis.permissions().withPermission( in putInt()
67 if (user.equals(sTestApis.users().instrumented())) { in putInt()
72 putInt(sTestApis.context().androidContextAsUser(user).getContentResolver(), key, value); in putInt()
81 try (PermissionContext p = sTestApis.permissions().withPermission( in putInt()
84 sTestApis.context().instrumentedContext().getContentResolver(), key, value); in putInt()
95 sTestApis.permissions().withPermission(INTERACT_ACROSS_USERS_FULL)) { in getInt()
107 sTestApis.permissions().withPermission(INTERACT_ACROSS_USERS_FULL)) { in getInt()
134 if (user.equals(sTestApis.users().instrumented())) { in getInt()
137 return getInt(sTestApis.context().androidContextAsUser(user).getContentResolver(), key); in getInt()
[all …]
/cts/hostsidetests/devicepolicy/app/CrossProfileTestApps/CrossProfileAppsTest/src/com/android/cts/crossprofileappstest/
DCrossProfileAppsPermissionToInteractTest.java64 private static final TestApis sTestApis = new TestApis(); field in CrossProfileAppsPermissionToInteractTest
101 try (PermissionContext p = sTestApis.permissions().withPermission( in testCanInteractAcrossProfiles_withCrossProfilesPermission_returnsTrue()
114 try (PermissionContext p = sTestApis.permissions().withPermission( in testCanInteractAcrossProfiles_withCrossUsersPermission_returnsTrue()
127 try (PermissionContext p = sTestApis.permissions().withPermission( in testCanInteractAcrossProfiles_withCrossUsersFullPermission_returnsTrue()
206 try (PermissionContext p = sTestApis.permissions().withPermission( in setAppOpOnCurrentProfile()
218 try (PermissionContext p = sTestApis.permissions().withPermission( in setAppOpOnAllProfiles()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/
DShellCommandUtils.java50 private static final TestApis sTestApis = new TestApis(); field in ShellCommandUtils
57 sTestApis.context().instrumentedContext().getContentResolver(), in shouldLog()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DCameraPolicyTest.java63 private static final TestApis sTestApis = new TestApis(); field in CameraPolicyTest
64 private static final Context sContext = sTestApis.context().instrumentedContext();
DDelegationScopesTest.java79 private static final TestApis sTestApis = new TestApis(); field in DelegationScopesTest
80 private static final UserReference sUser = sTestApis.users().instrumented();
/cts/tests/tests/content/src/android/content/cts/
DContentProviderTest.java77 private static final TestApis sTestApis = new TestApis(); field in ContentProviderTest
343 sTestApis.context().androidContextAsUser(sDeviceState.workProfile()) in createContentUriForUser_returnsCorrectUri()