Home
last modified time | relevance | path

Searched refs:uid (Results 1 – 22 of 22) sorted by relevance

/cts/tests/tests/app/src/android/app/cts/
DActivityManagerProcessErrorStateInfoTest.java43 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/
DMultiUserStorageTest.java64 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/
DListeningPortsTest.java194 + 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/
DInputBindingTest.java33 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/
DFileUtils.java56 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/
DBaseDeviceOwnerTest.java39 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/
DProcessTest.java40 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/
DFileUtils.java67 public int uid; field in FileUtils.FileStatus
121 public native static String getUserName(int uid); in getUserName() argument
DFileSystemPermissionTest.java299 String actualOwner = FileUtils.getUserName(status.uid); in assertFileOwnedBy()
1004 if (status.uid == 2000) { in getAllInsecureDevicesInDirAndSubdir()
/cts/libs/deviceutil/src/android/cts/util/
DFileUtils.java66 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/
DApplicationInfoTest.java68 assertEquals(mApplicationInfo.uid, info.uid); in testWriteToParcel()
DPackageManagerTest.java117 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()
DPackageInfoTest.java99 assertEquals(expected.uid, actual.uid); in checkAppInfo()
DProviderInfoTest.java41 List<ProviderInfo> providers = pm.queryContentProviders(PACKAGE_NAME, appInfo.uid, 0); in testProviderInfo()
/cts/apps/CtsVerifier/jni/verifier/
Dcom_android_cts_verifier_os_FileUtils.cpp78 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/
Dandroid_cts_FileUtils.cpp81 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/
DWorkSourceTest.java50 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/
DProtocolParamsReaderActivity.java45 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/
Dandroid_permission_cts_FileUtils.cpp84 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/
DCreatePrivateDataTest.java85 dataOut.writeInt(getContext().getApplicationInfo().uid); in testCreatePrivateData()
177 final int ownAppUid = getContext().getApplicationInfo().uid; in accessOwnTrafficStats()
/cts/tests/tests/net/src/android/net/cts/
DTrafficStatsTest.java85 final int ownAppUid = getContext().getApplicationInfo().uid; in accessOwnTrafficStats()
/cts/tests/tests/provider/src/android/provider/cts/
DCalendarTest.java3254 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()