/cts/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/tests/tests/externalservice/src/android/externalservice/cts/ |
D | ExternalServiceTest.java | 145 assertFalse(id.uid == 0 || id.pid == 0); in testBindExternalService() 146 assertNotEquals(Process.myUid(), id.uid); in testBindExternalService() 167 assertFalse(creatorId.uid == 0 || creatorId.pid == 0); in testBindExternalServiceWithRunningOwn() 201 assertFalse(creatorServiceId.uid == 0 || creatorId.pid == 0); in testBindExternalServiceWithRunningOwn() 213 assertFalse(serviceId.uid == 0 || serviceId.pid == 0); in testBindExternalServiceWithRunningOwn() 220 assertNotEquals(myUid, creatorId.uid); in testBindExternalServiceWithRunningOwn() 221 assertNotEquals(myUid, creatorServiceId.uid); in testBindExternalServiceWithRunningOwn() 222 assertNotEquals(myUid, serviceId.uid); in testBindExternalServiceWithRunningOwn() 227 assertNotEquals(creatorId.uid, creatorServiceId.uid); in testBindExternalServiceWithRunningOwn() 228 assertNotEquals(creatorId.uid, serviceId.uid); in testBindExternalServiceWithRunningOwn() [all …]
|
/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 | 207 String addrUid = entry.localAddress.getHostAddress() + ' ' + entry.uid; in assertNoAccessibleListeningPorts() 208 String addrPortUid = addrPort + ' ' + entry.uid; in assertNoAccessibleListeningPorts() 219 + entry.port + ", UID=" + entry.uid in assertNoAccessibleListeningPorts() 220 + " " + uidToPackage(entry.uid) + " in " in assertNoAccessibleListeningPorts() 229 private String uidToPackage(int uid) { in uidToPackage() argument 231 String[] packages = pm.getPackagesForUid(uid); in uidToPackage() 295 private final int uid; field in ListeningPortsTest.ParsedProcEntry 297 private ParsedProcEntry(InetAddress addr, int port, String state, int uid) { in ParsedProcEntry() argument 301 this.uid = uid; in ParsedProcEntry() 336 int uid = Integer.parseInt(fields[7]); in parse() local [all …]
|
/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/hostsidetests/net/src/com/android/cts/net/ |
D | HostsideRestrictBackgroundNetworkTests.java | 242 private void assertRestrictBackgroundWhitelist(int uid, boolean expected) throws Exception { in assertRestrictBackgroundWhitelist() argument 247 actual = output.contains(Integer.toString(uid)); in assertRestrictBackgroundWhitelist() 251 Log.v(TAG, "whitelist check for uid " + uid + " doesn't match yet (expected " in assertRestrictBackgroundWhitelist() 255 fail("whitelist check for uid " + uid + " failed: expected " in assertRestrictBackgroundWhitelist() 284 protected void addRestrictBackgroundWhitelist(int uid) throws Exception { in addRestrictBackgroundWhitelist() argument 285 runCommand("cmd netpolicy add restrict-background-whitelist " + uid); in addRestrictBackgroundWhitelist() 286 assertRestrictBackgroundWhitelist(uid, true); in addRestrictBackgroundWhitelist()
|
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/ |
D | DataSaverModeTest.java | 155 int uid = -1; in testGetRestrictBackgroundStatus_requiredWhitelistedPackages() local 157 uid = getUid(packageName); in testGetRestrictBackgroundStatus_requiredWhitelistedPackages() 158 assertRestrictBackgroundWhitelist(uid, true); in testGetRestrictBackgroundStatus_requiredWhitelistedPackages() 161 if (uid > 0) { in testGetRestrictBackgroundStatus_requiredWhitelistedPackages() 162 error.append(" (uid ").append(uid).append(")"); in testGetRestrictBackgroundStatus_requiredWhitelistedPackages()
|
D | AbstractRestrictBackgroundNetworkTestCase.java | 513 protected void addRestrictBackgroundWhitelist(int uid) throws Exception { in addRestrictBackgroundWhitelist() argument 514 executeShellCommand("cmd netpolicy add restrict-background-whitelist " + uid); in addRestrictBackgroundWhitelist() 515 assertRestrictBackgroundWhitelist(uid, true); in addRestrictBackgroundWhitelist() 518 protected void removeRestrictBackgroundWhitelist(int uid) throws Exception { in removeRestrictBackgroundWhitelist() argument 519 executeShellCommand("cmd netpolicy remove restrict-background-whitelist " + uid); in removeRestrictBackgroundWhitelist() 520 assertRestrictBackgroundWhitelist(uid, false); in removeRestrictBackgroundWhitelist() 523 protected void assertRestrictBackgroundWhitelist(int uid, boolean expected) throws Exception { in assertRestrictBackgroundWhitelist() argument 524 assertRestrictBackground("restrict-background-whitelist", uid, expected); in assertRestrictBackgroundWhitelist() 527 protected void addRestrictBackgroundBlacklist(int uid) throws Exception { in addRestrictBackgroundBlacklist() argument 528 executeShellCommand("cmd netpolicy add restrict-background-blacklist " + uid); in addRestrictBackgroundBlacklist() [all …]
|
/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
|
/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 | 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 | ApplicationInfoTest.java | 68 assertEquals(mApplicationInfo.uid, info.uid); in testWriteToParcel()
|
D | PackageInfoTest.java | 99 assertEquals(expected.uid, actual.uid); in checkAppInfo()
|
D | ProviderInfoTest.java | 44 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 | 84 dataOut.writeInt(getContext().getApplicationInfo().uid); in testCreatePrivateData() 173 final int ownAppUid = getContext().getApplicationInfo().uid; in accessOwnTrafficStats()
|
/cts/hostsidetests/appsecurity/test-apps/AppAccessData/src/com/android/cts/appaccessdata/ |
D | AccessPrivateDataTest.java | 105 .getApplicationInfo().uid; in accessPrivateTrafficStats()
|
/cts/tests/tests/net/src/android/net/cts/ |
D | TrafficStatsTest.java | 85 final int ownAppUid = getContext().getApplicationInfo().uid; in accessOwnTrafficStats()
|