Home
last modified time | relevance | path

Searched refs:shouldBlockScreenCaptureForApp (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSensitiveContentPackagesTest.java71 private boolean shouldBlockScreenCaptureForApp(String pkg, int uid, IBinder windowToken) { in shouldBlockScreenCaptureForApp() method in SensitiveContentPackagesTest
72 return mSensitiveContentPackages.shouldBlockScreenCaptureForApp(pkg, uid, windowToken); in shouldBlockScreenCaptureForApp()
87 assertTrue(shouldBlockScreenCaptureForApp(APP_PKG_1, APP_UID_1, WINDOW_TOKEN_1)); in shouldBlockScreenCaptureForNotificationApps()
88 assertTrue(shouldBlockScreenCaptureForApp(APP_PKG_1, APP_UID_1, WINDOW_TOKEN_2)); in shouldBlockScreenCaptureForNotificationApps()
89 assertFalse(shouldBlockScreenCaptureForApp(APP_PKG_1, APP_UID_2, WINDOW_TOKEN_2)); in shouldBlockScreenCaptureForNotificationApps()
90 assertTrue(shouldBlockScreenCaptureForApp(APP_PKG_2, APP_UID_2, WINDOW_TOKEN_1)); in shouldBlockScreenCaptureForNotificationApps()
91 assertTrue(shouldBlockScreenCaptureForApp(APP_PKG_2, APP_UID_2, WINDOW_TOKEN_2)); in shouldBlockScreenCaptureForNotificationApps()
92 assertFalse(shouldBlockScreenCaptureForApp(APP_PKG_2, APP_UID_1, WINDOW_TOKEN_2)); in shouldBlockScreenCaptureForNotificationApps()
106 assertTrue(shouldBlockScreenCaptureForApp(APP_PKG_1, APP_UID_1, WINDOW_TOKEN_1)); in shouldBlockScreenCaptureForSensitiveContentOnScreenApps()
107 assertFalse(shouldBlockScreenCaptureForApp(APP_PKG_1, APP_UID_1, WINDOW_TOKEN_2)); in shouldBlockScreenCaptureForSensitiveContentOnScreenApps()
[all …]
DWindowManagerServiceTests.java956 .shouldBlockScreenCaptureForApp(testPackage, ownerId1, new Binder())); in shouldBlockScreenCaptureForNotificationApps()
958 .shouldBlockScreenCaptureForApp(testPackage, ownerId2, new Binder())); in shouldBlockScreenCaptureForNotificationApps()
976 .shouldBlockScreenCaptureForApp(testPackage, ownerId1, windowClientToken)); in shouldBlockScreenCaptureForSensitiveContentOnScreenApps()
978 .shouldBlockScreenCaptureForApp(testPackage, ownerId1, new Binder())); in shouldBlockScreenCaptureForSensitiveContentOnScreenApps()
1000 .shouldBlockScreenCaptureForApp(testPackage, ownerId1, windowClientToken)); in shouldBlockScreenCaptureForApps()
1002 .shouldBlockScreenCaptureForApp(testPackage, ownerId1, new Binder())); in shouldBlockScreenCaptureForApps()
1004 .shouldBlockScreenCaptureForApp(testPackage, ownerId2, new Binder())); in shouldBlockScreenCaptureForApps()
/frameworks/base/services/core/java/com/android/server/wm/
DSensitiveContentPackages.java43 public boolean shouldBlockScreenCaptureForApp(String pkg, int uid, IBinder windowToken) { in shouldBlockScreenCaptureForApp() method in SensitiveContentPackages
DWindowManagerService.java8740 && mSensitiveContentPackages.shouldBlockScreenCaptureForApp( in shouldInvalidateSnapshot()
10198 if (mSensitiveContentPackages.shouldBlockScreenCaptureForApp(w.getOwningPackage(), uid, in showToastIfBlockingScreenCapture()
10210 .shouldBlockScreenCaptureForApp(w.getOwningPackage(), uid, null)) { in showToastIfBlockingScreenCapture()
DWindowState.java1939 if (mWmService.mSensitiveContentPackages.shouldBlockScreenCaptureForApp( in isSecureLocked()