/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/tests/app/src/android/app/cts/android/app/cts/tools/ |
D | UidImportanceListener.java | 31 public UidImportanceListener(int uid) { in UidImportanceListener() argument 32 mUid = uid; in UidImportanceListener() 36 public void onUidImportance(int uid, int importance) { in onUidImportance() argument 38 Log.d("XXXXX", "Got importance for uid " + uid + ": " + importance); in onUidImportance() 39 if (uid == mUid) { in onUidImportance()
|
D | ServiceProcessController.java | 79 mUidForegroundListener = new UidImportanceListener(appInfo.uid); in ServiceProcessController() 82 mUidGoneListener = new UidImportanceListener(appInfo.uid); in ServiceProcessController()
|
/cts/hostsidetests/incident/src/com/android/server/cts/ |
D | PowerIncidentTest.java | 57 final PowerServiceDumpProto.UidProto uid = dump.getUids(0); in testPowerServiceDump() local 58 assertEquals(uid.getUid(), SYSTEM_UID); in testPowerServiceDump() 59 assertEquals(uid.getUidString(), Integer.toString(SYSTEM_UID)); in testPowerServiceDump() 60 assertTrue(uid.getIsActive()); in testPowerServiceDump() 61 assertFalse(uid.getIsProcessStateUnknown()); in testPowerServiceDump() 65 .contains(uid.getProcessState().getValueDescriptor())); in testPowerServiceDump()
|
D | BatteryStatsValidationTest.java | 473 int uid = Integer.parseInt(uidLineParts[2].trim()); in getUid() local 474 assertTrue(uid > 10000); in getUid() 475 return uid; in getUid() 484 int uid = getUid(); in assertValueRange() local 485 long value = getLongValue(uid, tag, optionalAfterTag, index); in assertValueRange() 494 private long getLongValue(int uid, String tag, String optionalAfterTag, int index) in getLongValue() argument 504 if (line.contains(uid + ",l," + tag + "," + optionalAfterTag) in getLongValue() 506 line.contains(uid + ",l," + tag + ",\"" + optionalAfterTag))) { in getLongValue()
|
D | PackageIncidentTest.java | 59 final int uid = Integer.parseInt(matcher.group(1)); in testPackageServiceDump() local 86 assertEquals(testPackage.getUid(), uid); in testPackageServiceDump() local
|
/cts/hostsidetests/appsecurity/test-apps/MultiUserStorageApp/src/com/android/cts/multiuserstorageapp/ |
D | MultiUserStorageTest.java | 69 final int uid = android.os.Process.myUid(); in testWriteIsolatedStorage() local 71 writeInt(buildApiPath(FILE_SINGLETON), uid); in testWriteIsolatedStorage() local 72 writeInt(buildApiPath(FILE_MY_UID), uid); in testWriteIsolatedStorage() local 80 writeInt(new File(path, FILE_SINGLETON), uid); in testWriteIsolatedStorage() 85 final int uid = android.os.Process.myUid(); in testReadIsolatedStorage() local 89 assertEquals("Failed to read singleton file from API path", uid, in testReadIsolatedStorage() 91 assertEquals("Failed to read singleton file from env path", uid, in testReadIsolatedStorage() 93 assertEquals("Failed to read singleton file from raw path", uid, in testReadIsolatedStorage() 96 assertEquals("Failed to read UID file from API path", uid, in testReadIsolatedStorage() 104 assertEquals("Unexpected value in singleton file at " + path, uid, in testReadIsolatedStorage()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | ListeningPortsTest.java | 209 String addrUid = entry.localAddress.getHostAddress() + ' ' + entry.uid; in assertNoAccessibleListeningPorts() 210 String addrPortUid = addrPort + ' ' + entry.uid; in assertNoAccessibleListeningPorts() 221 + entry.port + ", UID=" + entry.uid in assertNoAccessibleListeningPorts() 222 + " " + uidToPackage(entry.uid) + " in " in assertNoAccessibleListeningPorts() 231 private String uidToPackage(int uid) { in uidToPackage() argument 233 String[] packages = pm.getPackagesForUid(uid); in uidToPackage() 297 private final int uid; field in ListeningPortsTest.ParsedProcEntry 299 private ParsedProcEntry(InetAddress addr, int port, String state, int uid) { in ParsedProcEntry() argument 303 this.uid = uid; in ParsedProcEntry() 338 int uid = Integer.parseInt(fields[7]); in parse() local [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
D | BleClientService.java | 539 private void writeCharacteristic(UUID uid, String writeValue) { in writeCharacteristic() argument 540 BluetoothGattCharacteristic characteristic = getCharacteristic(uid); in writeCharacteristic() 553 private void writeDescriptor(UUID uid, String writeValue) { in writeDescriptor() argument 554 BluetoothGattDescriptor descriptor = getDescriptor(uid); in writeDescriptor() 614 private void setNotification(UUID uid, boolean enable) { in setNotification() argument 615 BluetoothGattCharacteristic characteristic = getCharacteristic(uid); in setNotification() 831 private BluetoothGattDescriptor getDescriptor(UUID uid) { in getDescriptor() argument 836 descriptor = characteristic.getDescriptor(uid); in getDescriptor() 979 final UUID uid = characteristic.getUuid(); 989 notifyError("Failed to write characteristic: " + status + " : " + uid); [all …]
|
D | BleEncryptedClientService.java | 240 private BluetoothGattDescriptor getDescriptor(UUID uid) { in getDescriptor() argument 245 descriptor = characteristic.getDescriptor(uid); in getDescriptor() 380 UUID uid = characteristic.getUuid(); 382 …d(TAG, "onCharacteristicWrite: characteristic.val=" + value + " status=" + status + " uid=" + uid); 385 if (uid.equals(CHARACTERISTIC_ENCRYPTED_WRITE_UUID)) { 417 UUID uid = characteristic.getUuid(); 421 if (uid.equals(CHARACTERISTIC_ENCRYPTED_READ_UUID)) { 464 UUID uid = descriptor.getUuid(); 466 if (uid.equals(DESCRIPTOR_ENCRYPTED_READ_UUID)) { 487 if (uid.equals(DESCRIPTOR_ENCRYPTED_READ_UUID)) { [all …]
|
/cts/hostsidetests/net/src/com/android/cts/net/ |
D | HostsideRestrictBackgroundNetworkTests.java | 268 private void assertRestrictBackgroundWhitelist(int uid, boolean expected) throws Exception { in assertRestrictBackgroundWhitelist() argument 273 actual = output.contains(Integer.toString(uid)); in assertRestrictBackgroundWhitelist() 277 Log.v(TAG, "whitelist check for uid " + uid + " doesn't match yet (expected " in assertRestrictBackgroundWhitelist() 281 fail("whitelist check for uid " + uid + " failed: expected " in assertRestrictBackgroundWhitelist() 310 protected void addRestrictBackgroundWhitelist(int uid) throws Exception { in addRestrictBackgroundWhitelist() argument 311 runCommand("cmd netpolicy add restrict-background-whitelist " + uid); in addRestrictBackgroundWhitelist() 312 assertRestrictBackgroundWhitelist(uid, true); in addRestrictBackgroundWhitelist()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | InputBindingTest.java | 43 int uid = 1; in testInputBinding() local 45 InputBinding inputBinding = new InputBinding(bic, binder, uid, pid); in testInputBinding() 49 assertEquals(uid, inputBinding.getUid()); in testInputBinding() 59 assertEquals(uid, target.getUid()); in testInputBinding()
|
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/ |
D | DataSaverModeTest.java | 204 int uid = -1; in testGetRestrictBackgroundStatus_requiredWhitelistedPackages() local 206 uid = getUid(packageName); in testGetRestrictBackgroundStatus_requiredWhitelistedPackages() 207 assertRestrictBackgroundWhitelist(uid, true); in testGetRestrictBackgroundStatus_requiredWhitelistedPackages() 210 if (uid > 0) { in testGetRestrictBackgroundStatus_requiredWhitelistedPackages() 211 error.append(" (uid ").append(uid).append(")"); in testGetRestrictBackgroundStatus_requiredWhitelistedPackages()
|
D | AbstractRestrictBackgroundNetworkTestCase.java | 629 protected void addRestrictBackgroundWhitelist(int uid) throws Exception { in addRestrictBackgroundWhitelist() argument 630 executeShellCommand("cmd netpolicy add restrict-background-whitelist " + uid); in addRestrictBackgroundWhitelist() 631 assertRestrictBackgroundWhitelist(uid, true); in addRestrictBackgroundWhitelist() 634 assertRestrictBackgroundBlacklist(uid, false); in addRestrictBackgroundWhitelist() 637 protected void removeRestrictBackgroundWhitelist(int uid) throws Exception { in removeRestrictBackgroundWhitelist() argument 638 executeShellCommand("cmd netpolicy remove restrict-background-whitelist " + uid); in removeRestrictBackgroundWhitelist() 639 assertRestrictBackgroundWhitelist(uid, false); in removeRestrictBackgroundWhitelist() 642 protected void assertRestrictBackgroundWhitelist(int uid, boolean expected) throws Exception { in assertRestrictBackgroundWhitelist() argument 643 assertRestrictBackground("restrict-background-whitelist", uid, expected); in assertRestrictBackgroundWhitelist() 646 protected void addRestrictBackgroundBlacklist(int uid) throws Exception { in addRestrictBackgroundBlacklist() argument [all …]
|
/cts/hostsidetests/dumpsys/src/android/dumpsys/cts/ |
D | ProcessStatsDumpsysTest.java | 387 final String uid = String.valueOf(helperAppUid); in checkWithProcStatsApp() local 414 "pkgproc,com.android.server.cts.procstatshelper,$U,32123,,".replace("$U", uid), in checkWithProcStatsApp() 430 + "com.android.server.cts.procstatshelper:proc2,").replace("$U", uid), in checkWithProcStatsApp() 447 + ".ProcStatsHelperServiceMain,").replace("$U", uid), in checkWithProcStatsApp() 454 + ".ProcStatsHelperServiceMain,").replace("$U", uid), in checkWithProcStatsApp() 467 + ".ProcStatsHelperServiceSub,").replace("$U", uid), in checkWithProcStatsApp() 474 + ".ProcStatsHelperServiceSub,").replace("$U", uid), in checkWithProcStatsApp()
|
/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/common/device-side/util/src/com/android/compatibility/common/util/ |
D | FileUtils.java | 66 public int uid; field in FileUtils.FileStatus 99 public native static String getUserName(int uid); in getUserName() argument
|
/cts/hostsidetests/appsecurity/test-apps/StorageStatsApp/src/com/android/cts/storagestatsapp/ |
D | StorageStatsTest.java | 109 final int uid = android.os.Process.myUid(); in testVerifyStats() local 110 final UserHandle user = UserHandle.getUserHandleForUid(uid); in testVerifyStats() 112 final StorageStats beforeApp = stats.queryStatsForUid(UUID_DEFAULT, uid); in testVerifyStats() 117 final StorageStats afterApp = stats.queryStatsForUid(UUID_DEFAULT, uid); in testVerifyStats() 140 final StorageStats as = stats.queryStatsForUid(UUID_DEFAULT, a.uid); in testVerifyStatsMultiple() 141 final StorageStats bs = stats.queryStatsForUid(UUID_DEFAULT, b.uid); in testVerifyStatsMultiple() 166 final int uid = android.os.Process.myUid(); in testVerifyStatsExternal() local 167 final UserHandle user = UserHandle.getUserHandleForUid(uid); in testVerifyStatsExternal()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | BaseDeviceOwnerTest.java | 54 public String onChoosePrivateKeyAlias(Context context, Intent intent, int uid, Uri uri, in onChoosePrivateKeyAlias() argument 56 if (uid != Process.myUid() || uri == null) { in onChoosePrivateKeyAlias()
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | AttestationApplicationId.java | 42 int uid = context.getApplicationInfo().uid; in AttestationApplicationId() local 43 String[] packageNames = pm.getPackagesForUid(uid); in AttestationApplicationId()
|
/cts/hostsidetests/appsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/ |
D | StorageTest.java | 122 UserHandle.getUserHandleForUid(ai.uid)); in testVerifySpaceApi() 123 final StorageStats ustats = stats.queryStatsForUid(ai.storageUuid, ai.uid); in testVerifySpaceApi() 131 UserHandle.getUserHandleForUid(ai.uid)); in testVerifySpaceApi() 136 stats.queryStatsForUid(ai.storageUuid, ai.uid); in testVerifySpaceApi()
|
/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()
|