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

Method forCurrentProcess

binder/src/main/java/io/grpc/binder/PeerUid.java:44–46  ·  view source on GitHub ↗

Returns an identifier for the current process.

()

Source from the content-addressed store, hash-verified

42
43 /** Returns an identifier for the current process. */
44 public static PeerUid forCurrentProcess() {
45 return new PeerUid(android.os.Process.myUid());
46 }
47
48 /**
49 * Returns this peer's Android/Linux uid.

Callers 1

testPeerUidIsRecordedMethod · 0.95

Calls

no outgoing calls

Tested by 1

testPeerUidIsRecordedMethod · 0.76