Home
last modified time | relevance | path

Searched refs:LocalCallingIdentity (Results 1 – 2 of 2) sorted by relevance

/packages/providers/MediaProvider/src/com/android/providers/media/
DLocalCallingIdentity.java42 public class LocalCallingIdentity { class
47 private LocalCallingIdentity(int pid, int uid, String packageNameUnchecked) { in LocalCallingIdentity() method in LocalCallingIdentity
53 public static LocalCallingIdentity fromBinder(ContentProvider provider) { in fromBinder()
58 return new LocalCallingIdentity(Binder.getCallingPid(), Binder.getCallingUid(), in fromBinder()
62 public static LocalCallingIdentity fromExternal(int uid, String packageName) { in fromExternal()
63 return new LocalCallingIdentity(-1, uid, packageName); in fromExternal()
66 public static LocalCallingIdentity fromSelf() { in fromSelf()
67 final LocalCallingIdentity ident = new LocalCallingIdentity( in fromSelf()
DMediaProvider.java30 import static com.android.providers.media.LocalCallingIdentity.PERMISSION_IS_LEGACY;
31 import static com.android.providers.media.LocalCallingIdentity.PERMISSION_IS_REDACTION_NEEDED;
32 import static com.android.providers.media.LocalCallingIdentity.PERMISSION_IS_SYSTEM;
33 import static com.android.providers.media.LocalCallingIdentity.PERMISSION_READ_AUDIO;
34 import static com.android.providers.media.LocalCallingIdentity.PERMISSION_READ_IMAGES;
35 import static com.android.providers.media.LocalCallingIdentity.PERMISSION_READ_VIDEO;
36 import static com.android.providers.media.LocalCallingIdentity.PERMISSION_WRITE_AUDIO;
37 import static com.android.providers.media.LocalCallingIdentity.PERMISSION_WRITE_IMAGES;
38 import static com.android.providers.media.LocalCallingIdentity.PERMISSION_WRITE_VIDEO;
291 private final SparseArray<LocalCallingIdentity> mCachedCallingIdentity = new SparseArray<>();
[all …]