Home
last modified time | relevance | path

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

/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DNearbyAppStreamingPolicyTest.java91 int originalPolicy = dpm.getNearbyAppStreamingPolicy(); in setNearbyAppStreamingPolicy_policyApplied_works() local
99 dpm.setNearbyAppStreamingPolicy(originalPolicy); in setNearbyAppStreamingPolicy_policyApplied_works()
108 int originalPolicy = dpm.getNearbyAppStreamingPolicy(); in setNearbyAppStreamingPolicy_policyApplied_otherUsersUnaffected() local
116 dpm.setNearbyAppStreamingPolicy(originalPolicy); in setNearbyAppStreamingPolicy_policyApplied_otherUsersUnaffected()
133 int originalPolicy = dpm.getNearbyAppStreamingPolicy(); in setNearbyAppStreamingPolicy_setEnabled_doesNotApply() local
141 dpm.setNearbyAppStreamingPolicy(originalPolicy); in setNearbyAppStreamingPolicy_setEnabled_doesNotApply()
DNearbyNotificationStreamingPolicyTest.java89 int originalPolicy = dpm.getNearbyNotificationStreamingPolicy(); in setNearbyNotificationStreamingPolicy_policyApplied_works() local
97 dpm.setNearbyNotificationStreamingPolicy(originalPolicy); in setNearbyNotificationStreamingPolicy_policyApplied_works()
106 int originalPolicy = dpm.getNearbyNotificationStreamingPolicy(); in setNearbyNotificationStreamingPolicy_policyApplied_otherUsersUnaffected() local
114 dpm.setNearbyNotificationStreamingPolicy(originalPolicy); in setNearbyNotificationStreamingPolicy_policyApplied_otherUsersUnaffected()
132 int originalPolicy = dpm.getNearbyNotificationStreamingPolicy(); in setNearbyNotificationStreamingPolicy_setEnabled_doesNotApply() local
141 dpm.setNearbyNotificationStreamingPolicy(originalPolicy); in setNearbyNotificationStreamingPolicy_setEnabled_doesNotApply()
DSystemUpdateTest.java69 SystemUpdatePolicy originalPolicy = sDeviceState.dpc() in setSystemUpdatePolicy_policyIsSet() local
81 sDeviceState.dpc().componentName(), originalPolicy); in setSystemUpdatePolicy_policyIsSet() local
90 SystemUpdatePolicy originalPolicy = in setSystemUpdatePolicy_doesNotApply_policyIsNotSet() local
101 sDeviceState.dpc().componentName(), originalPolicy); in setSystemUpdatePolicy_doesNotApply_policyIsNotSet() local
DContentProtectionPolicyTest.kt81 val originalPolicy = remoteDpm.getContentProtectionPolicy(componentName) in setContentProtectionPolicy_enabled_policySet() constant
90 remoteDpm.setContentProtectionPolicy(componentName, originalPolicy) in setContentProtectionPolicy_enabled_policySet()
106 val originalPolicy = remoteDpm.getContentProtectionPolicy(componentName) in setContentProtectionPolicy_disabled_policySet() constant
115 remoteDpm.setContentProtectionPolicy(componentName, originalPolicy) in setContentProtectionPolicy_disabled_policySet()
/cts/tests/tests/nativemedia/aaudio/jni/
Dtest_aaudio_mmap.cpp65 aaudio_policy_t originalPolicy = AAudioExtensions::getInstance().getMMapPolicy(); in TEST_F() local
68 AAudioExtensions::getInstance().setMMapPolicy(originalPolicy); in TEST_F()
Dtest_aaudio_callback.cpp162 aaudio_policy_t originalPolicy = AAUDIO_POLICY_AUTO; in createAndVerifyHonoringMMap() local
167 originalPolicy = AAudioExtensions::getInstance().getMMapPolicy(); in createAndVerifyHonoringMMap()
175 AAudioExtensions::getInstance().setMMapPolicy(originalPolicy); in createAndVerifyHonoringMMap()
/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapTest.java2832 StrictMode.ThreadPolicy originalPolicy = StrictMode.getThreadPolicy(); in strictModeTest() local
2841 StrictMode.setThreadPolicy(originalPolicy); in strictModeTest()