Home
last modified time | relevance | path

Searched refs:canTakeScreenshotLocked (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAbstractAccessibilityServiceConnectionTest.java709 when(mMockSecurityPolicy.canTakeScreenshotLocked(mServiceConnection)).thenReturn(false); in takeScreenshot_withoutCapability_throwSecurityException()
717 when(mMockSecurityPolicy.canTakeScreenshotLocked(mServiceConnection)).thenReturn(true); in takeScreenshot_NoA11yAccess_returnErrorCode()
731 when(mMockSecurityPolicy.canTakeScreenshotLocked(mServiceConnection)).thenReturn(true); in takeScreenshot_invalidDisplay_returnErrorCode()
DAccessibilitySecurityPolicyTest.java415 assertTrue(mA11ySecurityPolicy.canTakeScreenshotLocked(mMockA11yServiceConnection)); in canTakeScreenshot_hasCapability_returnTrue()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilitySecurityPolicy.java345 public boolean canTakeScreenshotLocked( in canTakeScreenshotLocked() method in AccessibilitySecurityPolicy
DAbstractAccessibilityServiceConnection.java997 if (!mSecurityPolicy.canTakeScreenshotLocked(this)) { in takeScreenshot()