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.java2239 assertFalse(mHelper.isDelegateAllowed("does not exist", -1, "whatever", 0)); in testIsDelegateAllowed_noSource()
2246 assertFalse(mHelper.isDelegateAllowed(PKG_O, UID_O, "whatever", 0)); in testIsDelegateAllowed_noDelegate()
2254 assertFalse(mHelper.isDelegateAllowed(PKG_O, UID_O, "other", 53)); in testIsDelegateAllowed_delegateDisabledByApp()
2262 assertFalse(mHelper.isDelegateAllowed(PKG_O, UID_O, "banana", 27)); in testIsDelegateAllowed_wrongDelegate()
2270 assertFalse(mHelper.isDelegateAllowed(PKG_O, UID_O, "other", 53)); in testIsDelegateAllowed_delegateDisabledByUser()
2277 assertTrue(mHelper.isDelegateAllowed(PKG_O, UID_O, "other", 53)); in testIsDelegateAllowed()
DNotificationManagerServiceTest.java3877 when(mPreferencesHelper.isDelegateAllowed(anyString(), anyInt(), anyString(), anyInt())) in testResolveNotificationUid_delegateAllowed()
/frameworks/base/services/core/java/com/android/server/notification/
DPreferencesHelper.java1381 public boolean isDelegateAllowed(String sourcePkg, int sourceUid, in isDelegateAllowed() method in PreferencesHelper
DNotificationManagerService.java2605 return mPreferencesHelper.isDelegateAllowed(
4970 || mPreferencesHelper.isDelegateAllowed(