Home
last modified time | relevance | path

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

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DPreferencesHelperTest.java2218 assertFalse(mHelper.isDelegateAllowed("does not exist", -1, "whatever", 0)); in testIsDelegateAllowed_noSource()
2225 assertFalse(mHelper.isDelegateAllowed(PKG_O, UID_O, "whatever", 0)); in testIsDelegateAllowed_noDelegate()
2233 assertFalse(mHelper.isDelegateAllowed(PKG_O, UID_O, "other", 53)); in testIsDelegateAllowed_delegateDisabledByApp()
2241 assertFalse(mHelper.isDelegateAllowed(PKG_O, UID_O, "banana", 27)); in testIsDelegateAllowed_wrongDelegate()
2249 assertFalse(mHelper.isDelegateAllowed(PKG_O, UID_O, "other", 53)); in testIsDelegateAllowed_delegateDisabledByUser()
2256 assertTrue(mHelper.isDelegateAllowed(PKG_O, UID_O, "other", 53)); in testIsDelegateAllowed()
DNotificationManagerServiceTest.java3959 when(mPreferencesHelper.isDelegateAllowed(anyString(), anyInt(), anyString(), anyInt())) in testResolveNotificationUid_delegateAllowed()
/frameworks/base/services/core/java/com/android/server/notification/
DPreferencesHelper.java1397 public boolean isDelegateAllowed(String sourcePkg, int sourceUid, in isDelegateAllowed() method in PreferencesHelper
DNotificationManagerService.java2694 return mPreferencesHelper.isDelegateAllowed(
5173 || mPreferencesHelper.isDelegateAllowed(