Searched refs:isConsentGranted (Results 1 – 4 of 4) sorted by relevance
191 verify(mMockContentProtectionConsentManager).isConsentGranted(USER_ID); in getOptions_contentCaptureDisabled_contentProtectionDisabled()197 when(mMockContentProtectionConsentManager.isConsentGranted(USER_ID)).thenReturn(true); in getOptions_contentCaptureDisabled_contentProtectionEnabled()229 verify(mMockContentProtectionConsentManager).isConsentGranted(USER_ID); in getOptions_contentCaptureEnabled_contentProtectionDisabled()235 when(mMockContentProtectionConsentManager.isConsentGranted(USER_ID)).thenReturn(true); in getOptions_contentCaptureEnabled_contentProtectionEnabled()263 verify(mMockContentProtectionConsentManager).isConsentGranted(USER_ID); in isWhitelisted_packageName_contentCaptureDisabled_contentProtectionNotGranted()269 when(mMockContentProtectionConsentManager.isConsentGranted(USER_ID)).thenReturn(true); in isWhitelisted_packageName_contentCaptureDisabled_contentProtectionDisabled()307 verify(mMockContentProtectionConsentManager, never()).isConsentGranted(anyInt()); in isWhitelisted_packageName_contentCaptureEnabled_contentProtectionNotChecked()321 verify(mMockContentProtectionConsentManager).isConsentGranted(USER_ID); in isWhitelisted_componentName_contentCaptureDisabled_contentProtectionNotGranted()365 verify(mMockContentProtectionConsentManager, never()).isConsentGranted(anyInt()); in isWhitelisted_componentName_contentCaptureEnabled_contentProtectionNotChecked()376 verify(mMockContentProtectionConsentManager, never()).isConsentGranted(anyInt()); in isContentProtectionReceiverEnabled_withoutManagers()[all …]
101 boolean actual = manager.isConsentGranted(TEST_USER_ID); in isConsentGranted_packageVerifierNotGranted()111 boolean actual = manager.isConsentGranted(TEST_USER_ID); in isConsentGranted_packageVerifierGranted_userNotManaged()123 boolean actual = manager.isConsentGranted(TEST_USER_ID); in isConsentGranted_packageVerifierGranted_userManaged()133 boolean actual = manager.isConsentGranted(TEST_USER_ID); in isConsentGranted_packageVerifierDefault()142 boolean firstActual = manager.isConsentGranted(TEST_USER_ID); in contentObserver()149 boolean secondActual = manager.isConsentGranted(TEST_USER_ID); in contentObserver()
72 public boolean isConsentGranted(@UserIdInt int userId) { in isConsentGranted() method in ContentProtectionConsentManager
1330 return mContentProtectionConsentManager.isConsentGranted(userId) in isContentProtectionReceiverEnabled()