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.java731 when(mMockSecurityPolicy.canTakeScreenshotLocked(mServiceConnection)).thenReturn(false); in takeScreenshot_withoutCapability_throwSecurityException()
739 when(mMockSecurityPolicy.canTakeScreenshotLocked(mServiceConnection)).thenReturn(true); in takeScreenshot_NoA11yAccess_returnErrorCode()
753 when(mMockSecurityPolicy.canTakeScreenshotLocked(mServiceConnection)).thenReturn(true); in takeScreenshot_invalidDisplay_returnErrorCode()
DAccessibilitySecurityPolicyTest.java447 assertTrue(mA11ySecurityPolicy.canTakeScreenshotLocked(mMockA11yServiceConnection)); in canTakeScreenshot_hasCapability_returnTrue()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilitySecurityPolicy.java392 public boolean canTakeScreenshotLocked( in canTakeScreenshotLocked() method in AccessibilitySecurityPolicy
DAbstractAccessibilityServiceConnection.java1421 if (!mSecurityPolicy.canTakeScreenshotLocked(this)) { in takeScreenshotOfWindow()
1474 if (!mSecurityPolicy.canTakeScreenshotLocked(this)) { in takeScreenshot()