/cts/tests/tests/app/src/android/app/cts/ |
D | ActivityManagerProcessErrorStateInfoTest.java | 43 int uid = 3; in testWriteToParcel() local 51 mErrorStateInfo.uid = uid; in testWriteToParcel() 65 assertEquals(uid, values.uid); in testWriteToParcel() 77 int uid = 3; in testReadFromParcel() local 85 mErrorStateInfo.uid = uid; in testReadFromParcel() 99 assertEquals(uid, values.uid); in testReadFromParcel()
|
/cts/hostsidetests/appsecurity/test-apps/MultiUserStorageApp/src/com/android/cts/multiuserstorageapp/ |
D | MultiUserStorageTest.java | 64 final int uid = android.os.Process.myUid(); in testWriteIsolatedStorage() local 66 writeInt(buildApiPath(FILE_SINGLETON), uid); in testWriteIsolatedStorage() local 67 writeInt(buildApiPath(FILE_MY_UID), uid); in testWriteIsolatedStorage() local 75 writeInt(new File(path, FILE_SINGLETON), uid); in testWriteIsolatedStorage() 80 final int uid = android.os.Process.myUid(); in testReadIsolatedStorage() local 84 assertEquals("Failed to read singleton file from API path", uid, in testReadIsolatedStorage() 86 assertEquals("Failed to read singleton file from env path", uid, in testReadIsolatedStorage() 88 assertEquals("Failed to read singleton file from raw path", uid, in testReadIsolatedStorage() 91 assertEquals("Failed to read UID file from API path", uid, in testReadIsolatedStorage() 99 assertEquals("Unexpected value in singleton file at " + path, uid, in testReadIsolatedStorage()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | ListeningPortsTest.java | 194 + entry.port + ", UID=" + entry.uid in assertNoAccessibleListeningPorts() 195 + " " + uidToPackage(entry.uid) + " in " in assertNoAccessibleListeningPorts() 204 private String uidToPackage(int uid) { in uidToPackage() argument 206 String[] packages = pm.getPackagesForUid(uid); in uidToPackage() 243 private final int uid; field in ListeningPortsTest.ParsedProcEntry 245 private ParsedProcEntry(InetAddress addr, int port, String state, int uid) { in ParsedProcEntry() argument 249 this.uid = uid; in ParsedProcEntry() 284 int uid = Integer.parseInt(fields[7]); in parse() local 288 retval.add(new ParsedProcEntry(localIp, localPort, state, uid)); in parse()
|
/cts/tests/tests/view/src/android/view/inputmethod/cts/ |
D | InputBindingTest.java | 33 int uid = 1; in testInputBinding() local 35 InputBinding inputBinding = new InputBinding(bic, binder, uid, pid); in testInputBinding() 39 assertEquals(uid, inputBinding.getUid()); in testInputBinding() 49 assertEquals(uid, target.getUid()); in testInputBinding()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/os/ |
D | FileUtils.java | 56 private int uid; field in FileUtils.FileStatus 68 return uid; in getUid() 108 public native static String getUserName(int uid); in getUserName() argument
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | BaseDeviceOwnerTest.java | 39 public String onChoosePrivateKeyAlias(Context context, Intent intent, int uid, Uri uri, in onChoosePrivateKeyAlias() argument 41 if (uid != Process.myUid() || uri == null) { in onChoosePrivateKeyAlias()
|
/cts/tests/ProcessTest/src/com/android/cts/process/ |
D | ProcessTest.java | 40 PackageManager.GET_META_DATA).uid; in testUid() 42 PackageManager.GET_META_DATA).uid; in testUid() 44 PackageManager.GET_META_DATA).uid; in testUid()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | FileUtils.java | 67 public int uid; field in FileUtils.FileStatus 121 public native static String getUserName(int uid); in getUserName() argument
|
D | FileSystemPermissionTest.java | 299 String actualOwner = FileUtils.getUserName(status.uid); in assertFileOwnedBy() 1004 if (status.uid == 2000) { in getAllInsecureDevicesInDirAndSubdir()
|
/cts/libs/deviceutil/src/android/cts/util/ |
D | FileUtils.java | 66 public int uid; field in FileUtils.FileStatus 99 public native static String getUserName(int uid); in getUserName() argument
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | ApplicationInfoTest.java | 68 assertEquals(mApplicationInfo.uid, info.uid); in testWriteToParcel()
|
D | PackageManagerTest.java | 117 appInfo.uid, 0); in testQuery() 223 checkPackagesNameForUid(PACKAGE_NAME, mPackageManager.getPackagesForUid(appInfo.uid)); in testGetInfo() 224 assertEquals(PACKAGE_NAME, mPackageManager.getNameForUid(appInfo.uid)); in testGetInfo() 267 private void checkPackagesNameForUid(String expectedName, String[] uid) { in checkPackagesNameForUid() argument 269 for (int i = 0; i < uid.length; i++) { in checkPackagesNameForUid() 270 if (uid[i].equals(expectedName)) { in checkPackagesNameForUid()
|
D | PackageInfoTest.java | 99 assertEquals(expected.uid, actual.uid); in checkAppInfo()
|
D | ProviderInfoTest.java | 41 List<ProviderInfo> providers = pm.queryContentProviders(PACKAGE_NAME, appInfo.uid, 0); in testProviderInfo()
|
/cts/apps/CtsVerifier/jni/verifier/ |
D | com_android_cts_verifier_os_FileUtils.cpp | 78 jint uid) in com_android_cts_verifier_os_FileUtils_getUserName() argument 80 struct passwd *pwd = getpwuid(uid); in com_android_cts_verifier_os_FileUtils_getUserName()
|
/cts/libs/deviceutil/jni/ |
D | android_cts_FileUtils.cpp | 81 jint uid) in android_cts_FileUtils_getUserName() argument 83 struct passwd *pwd = getpwuid(uid); in android_cts_FileUtils_getUserName()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | WorkSourceTest.java | 50 private WorkSource wsNew(int uid) throws IllegalArgumentException, in wsNew() argument 52 mConstructWSArgs[0] = uid; in wsNew() 76 private boolean wsAdd(WorkSource ws, int uid) throws IllegalArgumentException, in wsAdd() argument 78 mAddUidArgs[0] = uid; in wsAdd() 82 private boolean wsAdd(WorkSource ws, int uid, String name) throws IllegalArgumentException, in wsAdd() argument 84 mAddUidNameArgs[0] = uid; in wsAdd()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/ |
D | ProtocolParamsReaderActivity.java | 45 public boolean parseProtocolParameters(StringBuilder sb, byte[] uid, in parseProtocolParameters() argument 50 sb.append("UID: " + HceUtils.getHexBytes(null, uid) + "\n\n"); in parseProtocolParameters()
|
/cts/tests/tests/permission/jni/ |
D | android_permission_cts_FileUtils.cpp | 84 jobject /* thiz */, jint uid) in android_permission_cts_FileUtils_getUserName() argument 86 struct passwd *pwd = getpwuid(uid); in android_permission_cts_FileUtils_getUserName()
|
/cts/hostsidetests/appsecurity/test-apps/AppWithData/src/com/android/cts/appwithdata/ |
D | CreatePrivateDataTest.java | 85 dataOut.writeInt(getContext().getApplicationInfo().uid); in testCreatePrivateData() 177 final int ownAppUid = getContext().getApplicationInfo().uid; in accessOwnTrafficStats()
|
/cts/tests/tests/net/src/android/net/cts/ |
D | TrafficStatsTest.java | 85 final int ownAppUid = getContext().getApplicationInfo().uid; in accessOwnTrafficStats()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | CalendarTest.java | 3254 final String uid = "uid_123"; in testEventsUid2445() local 3269 values.put(Events.UID_2445, uid); in testEventsUid2445() 3274 assertEquals("Column uid_2445 has unexpected value.", uid, cursor.getString(0)); in testEventsUid2445()
|