MCPcopy Create free account
hub / github.com/grpc/grpc-java / getNameForUid

Method getNameForUid

binder/src/main/java/io/grpc/binder/PeerUids.java:63–66  ·  view source on GitHub ↗

Retrieves the "official name" associated with this uid, as specified by PackageManager#getNameForUid(int).

(PackageManager packageManager, PeerUid who)

Source from the content-addressed store, hash-verified

61 * PackageManager#getNameForUid(int)}.
62 */
63 @Nullable
64 public static String getNameForUid(PackageManager packageManager, PeerUid who) {
65 return packageManager.getNameForUid(who.getUid());
66 }
67
68 /**
69 * Retrieves the {@link UserHandle} associated with this uid according to {@link

Callers

nothing calls this directly

Calls 1

getUidMethod · 0.80

Tested by

no test coverage detected