Home
last modified time | relevance | path

Searched refs:getUidForName (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/os/
DProcessTest.java32 assertEquals(android.os.Process.SYSTEM_UID, Process.getUidForName("system")); in testProcessGetUidFromName()
33 assertEquals(Process.BLUETOOTH_UID, Process.getUidForName("bluetooth")); in testProcessGetUidFromName()
34 assertEquals(Process.FIRST_APPLICATION_UID, Process.getUidForName("u0_a0")); in testProcessGetUidFromName()
35 assertEquals(UserHandle.getUid(1, Process.SYSTEM_UID), Process.getUidForName("u1_system")); in testProcessGetUidFromName()
37 Process.getUidForName("u2_i0")); in testProcessGetUidFromName()
39 Process.getUidForName("u3_a100")); in testProcessGetUidFromName()
45 assertEquals(-1, Process.getUidForName("u2a_foo")); in testProcessGetUidFromNameFailure()
46 assertEquals(-1, Process.getUidForName("u1_abcdef")); in testProcessGetUidFromNameFailure()
47 assertEquals(-1, Process.getUidForName("u23")); in testProcessGetUidFromNameFailure()
48 assertEquals(-1, Process.getUidForName("u2_i34a")); in testProcessGetUidFromNameFailure()
[all …]
/frameworks/base/core/java/android/os/
DProcess.java581 public static final native int getUidForName(String name); in getUidForName() method in Process
/frameworks/base/core/java/com/android/server/
DSystemConfig.java370 int uid = Process.getUidForName(uidStr); in readPermissionsFromXml()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt22187 method public static final int getUidForName(java.lang.String);
/frameworks/base/api/
Dcurrent.txt31288 method public static final int getUidForName(java.lang.String);
Dsystem-current.txt34039 method public static final int getUidForName(java.lang.String);