Searched refs:hasUserSelectedAccess (Results 1 – 3 of 3) sorted by relevance
/packages/providers/MediaProvider/tests/src/com/android/providers/media/ |
D | AccessCheckerTest.java | 32 import static com.android.providers.media.AccessChecker.hasUserSelectedAccess; 214 .that(hasUserSelectedAccess(hasNoPerms, collection, false)).isFalse(); in testHasUserSelectedAccess_noPerms() 225 .that(hasUserSelectedAccess(hasNoPerms, collection, true)).isFalse(); in testHasUserSelectedAccess_noPerms() 242 .that(hasUserSelectedAccess(userSelectPerms, collection, false)).isTrue(); in testHasUserSelectedAccess_userSelectedPerms() 247 .that(hasUserSelectedAccess(userSelectPerms, AUDIO_MEDIA, false)).isFalse(); in testHasUserSelectedAccess_userSelectedPerms() 257 .that(hasUserSelectedAccess(userSelectPerms, collection, true)).isFalse(); in testHasUserSelectedAccess_userSelectedPerms()
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | AccessChecker.java | 148 public static boolean hasUserSelectedAccess(@NonNull LocalCallingIdentity callingIdentity, in hasUserSelectedAccess() method in AccessChecker
|
D | MediaProvider.java | 64 import static com.android.providers.media.AccessChecker.hasUserSelectedAccess; 6302 && hasUserSelectedAccess(mCallingIdentity.get(), uriType, forWrite)) {
|