/cts/tools/release-parser/tests/resources/ |
D | platform.xml.pb.txt | 211 name: "uid" 218 name: "uid" 225 name: "uid" 232 name: "uid" 239 name: "uid" 246 name: "uid" 253 name: "uid" 260 name: "uid" 267 name: "uid" 274 name: "uid" [all …]
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | SipProfileTest.java | 46 int uid = 0; in testSetCallingUid() local 47 sipProfile.setCallingUid(uid); in testSetCallingUid() 48 assertEquals(uid, sipProfile.getCallingUid()); in testSetCallingUid() 49 uid = 1; in testSetCallingUid() 50 sipProfile.setCallingUid(uid); in testSetCallingUid() 51 assertEquals(uid, sipProfile.getCallingUid()); in testSetCallingUid()
|
/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/app/src/android/app/cts/android/app/cts/tools/ |
D | UidImportanceListener.java | 35 public UidImportanceListener(Context context, int uid, int cutPoint) { in UidImportanceListener() argument 36 this(context, uid, cutPoint, 5*1000); in UidImportanceListener() 39 public UidImportanceListener(Context context, int uid, int cutPoint, long defaultWaitTime) { in UidImportanceListener() argument 41 mUid = uid; in UidImportanceListener() 47 public void onUidImportance(int uid, int importance) { in onUidImportance() argument 49 Log.d("XXXXX", "Got importance for uid " + uid + " (cut " + mCutPoint in onUidImportance() 51 if (uid == mUid) { in onUidImportance()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioRecordAppOpTest.java | 61 final int uid = Process.myUid(); in testRecordAppOps() local 66 public void onOpActiveChanged(String op, int uid, String packageName, boolean active) { in testRecordAppOps() 67 mockListener.onOpActiveChanged(op, uid, packageName, active); in testRecordAppOps() 86 uid, packageName)).isFalse(); in testRecordAppOps() 99 eq(uid), eq(packageName), eq(true)); in testRecordAppOps() 103 uid, packageName)).isTrue(); in testRecordAppOps() 117 eq(uid), eq(packageName), eq(false)); in testRecordAppOps() 121 uid, packageName)).isFalse(); in testRecordAppOps()
|
/cts/tests/tests/externalservice/src/android/externalservice/cts/ |
D | ExternalServiceTest.java | 146 assertFalse(id.uid == 0 || id.pid == 0); in testBindExternalService() 147 assertNotEquals(Process.myUid(), id.uid); in testBindExternalService() 169 assertFalse(creatorId.uid == 0 || creatorId.pid == 0); in testBindExternalServiceWithRunningOwn() 203 assertFalse(creatorServiceId.uid == 0 || creatorId.pid == 0); in testBindExternalServiceWithRunningOwn() 215 assertFalse(serviceId.uid == 0 || serviceId.pid == 0); in testBindExternalServiceWithRunningOwn() 222 assertNotEquals(myUid, creatorId.uid); in testBindExternalServiceWithRunningOwn() 223 assertNotEquals(myUid, creatorServiceId.uid); in testBindExternalServiceWithRunningOwn() 224 assertNotEquals(myUid, serviceId.uid); in testBindExternalServiceWithRunningOwn() 229 assertNotEquals(creatorId.uid, creatorServiceId.uid); in testBindExternalServiceWithRunningOwn() 230 assertNotEquals(creatorId.uid, serviceId.uid); in testBindExternalServiceWithRunningOwn() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/ListeningPortsApp/src/android/appsecurity/cts/listeningports/ |
D | ListeningPortsTest.java | 113 String addrUid = entry.localAddress.getHostAddress() + ' ' + entry.uid; in testNoAccessibleListeningPorts() 114 String addrPortUid = addrPort + ' ' + entry.uid; in testNoAccessibleListeningPorts() 123 int appId = UserHandle.getAppId(entry.uid); in testNoAccessibleListeningPorts() 130 + entry.port + ", UID=" + entry.uid in testNoAccessibleListeningPorts() 131 + " " + uidToPackage(entry.uid); in testNoAccessibleListeningPorts() 139 private String uidToPackage(int uid) { in uidToPackage() argument 141 String[] packages = pm.getPackagesForUid(uid); in uidToPackage() 205 private final int uid; field in ListeningPortsTest.ParsedProcEntry 207 private ParsedProcEntry(InetAddress addr, int port, String state, int uid) { in ParsedProcEntry() argument 211 this.uid = uid; in ParsedProcEntry() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/AppAccessData/src/com/android/cts/appaccessdata/ |
D | AccessPrivateDataTest.java | 154 .getApplicationInfo().uid; in testAccessPrivateTrafficStats() 174 final int uid = android.os.Process.myUid(); in testTrafficStatsStatsUidSelf() local 175 final long rxb = TrafficStats.getUidRxBytes(uid); in testTrafficStatsStatsUidSelf() 176 final long rxp = TrafficStats.getUidRxPackets(uid); in testTrafficStatsStatsUidSelf() 177 final long txb = TrafficStats.getUidTxBytes(uid); in testTrafficStatsStatsUidSelf() 178 final long txp = TrafficStats.getUidTxPackets(uid); in testTrafficStatsStatsUidSelf() 209 assertEquals(rxb, TrafficStats.getUidRxBytes(uid)); in testTrafficStatsStatsUidSelf() 210 assertEquals(rxp, TrafficStats.getUidRxPackets(uid)); in testTrafficStatsStatsUidSelf() 211 assertEquals(txb, TrafficStats.getUidTxBytes(uid)); in testTrafficStatsStatsUidSelf() 212 assertEquals(txp, TrafficStats.getUidTxPackets(uid)); in testTrafficStatsStatsUidSelf()
|
/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/hostsidetests/appsecurity/test-apps/KeyRotationTest/src/android/appsecurity/cts/keyrotationtest/service/ |
D | SignatureQueryService.java | 305 int uid; in verifyHasSigningCertificate() local 308 uid = applicationInfo.uid; in verifyHasSigningCertificate() 319 uid, signature, PackageManager.CERT_INPUT_SHA256)) { in verifyHasSigningCertificate() 354 int uid; in verifyCheckSignatures() local 358 uid = applicationInfo.uid; in verifyCheckSignatures() 365 companionUid = applicationInfo.uid; in verifyCheckSignatures() 373 if (packageManager.checkSignatures(uid, companionUid) in verifyCheckSignatures()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | AlertWindowsAppOpsTests.java | 84 final int uid = Process.myUid(); in testSystemAlertWindowAppOpsInitiallyAllowed() local 99 assertFalse(appOpsManager.isOpActive(OPSTR_SYSTEM_ALERT_WINDOW, uid, packageName)); in testSystemAlertWindowAppOpsInitiallyAllowed() 108 eq(uid), eq(packageName), isNull(), eq(true), anyInt(), anyInt()); in testSystemAlertWindowAppOpsInitiallyAllowed() 112 uid, packageName)); in testSystemAlertWindowAppOpsInitiallyAllowed() 124 eq(uid), eq(packageName), isNull(), eq(false), anyInt(), anyInt()); in testSystemAlertWindowAppOpsInitiallyAllowed() 127 assertFalse(appOpsManager.isOpActive(OPSTR_SYSTEM_ALERT_WINDOW, uid, packageName)); in testSystemAlertWindowAppOpsInitiallyAllowed() 145 assertTrue(appOpsManager.isOpActive(OPSTR_SYSTEM_ALERT_WINDOW, uid, packageName)); in testSystemAlertWindowAppOpsInitiallyAllowed()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/memory/ |
D | ProcessMemoryStatsTests.java | 77 int uid = DeviceUtils.getStatsdTestAppUid(getDevice()); in testProcessMemoryState() local 81 if (state.getUid() != uid) { in testProcessMemoryState() 93 assertWithMessage(String.format("Did not find a matching atom for uid %d", uid)) in testProcessMemoryState() 114 int uid = DeviceUtils.getStatsdTestAppUid(getDevice()); in testProcessMemoryHighWaterMark() local 120 if (state.getUid() == uid) { in testProcessMemoryHighWaterMark() 132 assertWithMessage(String.format("Did not find a matching atom for test app uid=%d", uid)) in testProcessMemoryHighWaterMark() 154 int uid = DeviceUtils.getStatsdTestAppUid(getDevice()); in testProcessMemorySnapshot() local 160 if (snapshot.getUid() == uid) { in testProcessMemorySnapshot() 177 assertWithMessage(String.format("Did not find a matching atom for test app uid=%d", uid)) in testProcessMemorySnapshot()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | InputBindingTest.java | 44 int uid = 1; in testInputBinding() local 46 InputBinding inputBinding = new InputBinding(bic, binder, uid, pid); in testInputBinding() 50 assertEquals(uid, inputBinding.getUid()); in testInputBinding() 60 assertEquals(uid, target.getUid()); in testInputBinding()
|
/cts/tests/tests/externalservice/common/src/android/externalservice/common/ |
D | RunningServiceInfo.java | 28 public int uid; field in RunningServiceInfo 43 dest.writeInt(uid); in writeToParcel() 54 info.uid = source.readInt();
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
D | BleClientService.java | 563 private void writeCharacteristic(UUID uid, String writeValue) { in writeCharacteristic() argument 564 BluetoothGattCharacteristic characteristic = getCharacteristic(uid); in writeCharacteristic() 577 private void writeDescriptor(UUID uid, String writeValue) { in writeDescriptor() argument 578 BluetoothGattDescriptor descriptor = getDescriptor(uid); in writeDescriptor() 670 private void setNotification(UUID uid, boolean enable) { in setNotification() argument 671 BluetoothGattCharacteristic characteristic = getCharacteristic(uid); in setNotification() 893 private BluetoothGattDescriptor getDescriptor(UUID uid) { in getDescriptor() argument 898 descriptor = characteristic.getDescriptor(uid); in getDescriptor() 1041 final UUID uid = characteristic.getUuid(); 1053 notifyError("Failed to write characteristic: " + status + " : " + uid); [all …]
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | AppIdleStatePermissionTest.java | 55 int uid = pm.getApplicationInfo(pkg.packageName, 0).uid; in testChangeAppIdleStatePermission() local 56 if (UserHandle.isApp(uid)) { in testChangeAppIdleStatePermission()
|
D | ShellPermissionTest.java | 69 int uid = UserHandle.getUid(UserHandle.myUserId(), UserHandle.getAppId(Process.SHELL_UID)); in testBlacklistedPermissions() local 70 final String[] pkgs = pm.getPackagesForUid(uid); in testBlacklistedPermissions() 72 + UserHandle.myUserId() + " uid: " + uid + " pkgs.length: " + pkgs.length); in testBlacklistedPermissions() 82 + uid); in testBlacklistedPermissions()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/ |
D | ProcessReference.java | 30 ProcessReference(Package pkg, int pid, int uid, UserReference user) { in ProcessReference() argument 36 mUid = uid; in ProcessReference() 57 public int uid() { in uid() method in ProcessReference
|
/cts/tests/appsearch/src/com/android/cts/appsearch/app/ |
D | AppSearchSessionPlatformCtsTest.java | 78 int uid = android.os.Process.myUid(); in testStorageAttributedToSelf_withDocument() local 81 StorageStats beforeStatsForUid = storageStatsManager.queryStatsForUid(UUID_DEFAULT, uid); in testStorageAttributedToSelf_withDocument() 102 StorageStats afterStatsForUid = storageStatsManager.queryStatsForUid(UUID_DEFAULT, uid); in testStorageAttributedToSelf_withDocument() 116 int uid = android.os.Process.myUid(); in testStorageAttributedToSelf_withoutDocument() local 119 StorageStats beforeStatsForUid = storageStatsManager.queryStatsForUid(UUID_DEFAULT, uid); in testStorageAttributedToSelf_withoutDocument() 127 StorageStats afterStatsForUid = storageStatsManager.queryStatsForUid(UUID_DEFAULT, uid); in testStorageAttributedToSelf_withoutDocument()
|
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/events/deviceadminreceivers/ |
D | DeviceAdminChoosePrivateKeyAliasEvent.java | 144 Intent intent, int uid, Uri uri, String alias) { in logger() argument 146 deviceAdminReceiver, context, intent, uid, uri, alias); in logger() 154 int uid, Uri uri, String alias) { in DeviceAdminChoosePrivateKeyAliasEventLogger() argument 157 mEvent.mUid = uid; in DeviceAdminChoosePrivateKeyAliasEventLogger() 191 public DeviceAdminChoosePrivateKeyAliasEventLogger setUid(int uid) { in setUid() argument 192 mEvent.mUid = uid; in setUid() 235 public int uid() { in uid() method in DeviceAdminChoosePrivateKeyAliasEvent
|
/cts/tests/tests/appop/src/android/app/appops/cts/ |
D | AttributionTest.kt | 78 val uid = context.packageManager.getPackageUid(PKG, 0) in manifestReceiverTagging() constant 86 appOpsManager.noteOp(OPSTR_READ_CONTACTS, uid, PKG, ATTRIBUTION_1, null) in manifestReceiverTagging() 87 appOpsManager.noteOp(OPSTR_READ_CONTACTS, uid, PKG, ATTRIBUTION_2, null) in manifestReceiverTagging() 88 appOpsManager.noteOp(OPSTR_READ_CONTACTS, uid, PKG, ATTRIBUTION_3, null) in manifestReceiverTagging() 92 val before = getOpEntry(uid, PKG, OPSTR_READ_CONTACTS)!! in manifestReceiverTagging() 98 val after = getOpEntry(uid, PKG, OPSTR_READ_CONTACTS)!! in manifestReceiverTagging()
|
/cts/hostsidetests/appsecurity/test-apps/AppWithData/src/com/android/cts/appwithdata/ |
D | MyProvider.java | 83 final int uid = Os.getuid(); in call() local 84 Log.v(TAG, "My UID is " + uid); in call() 85 TrafficStats.setThreadStatsUid(uid); in call() 86 if (TrafficStats.getThreadStatsUid() != uid) { in call()
|
/cts/hostsidetests/incident/src/com/android/server/cts/ |
D | BatteryStatsValidationTest.java | 265 int uid = Integer.parseInt(uidLineParts[2].trim()); in getUid() local 266 assertTrue(uid > 10000); in getUid() 267 return uid; in getUid() 280 int uid = getUid(); in assertValueRange() local 281 long value = getLongValue(uid, tag, optionalAfterTag, index); in assertValueRange() 289 private long getLongValue(int uid, String tag, String optionalAfterTag, int index) in getLongValue() argument 299 if (line.contains(uid + ",l," + tag + "," + optionalAfterTag) in getLongValue() 301 line.contains(uid + ",l," + tag + ",\"" + optionalAfterTag))) { in getLongValue()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/notification/ |
D | NotificationStatsTests.java | 79 int uid = DeviceUtils.getStatsdTestAppUid(getDevice()); in testNotificationPackagePreferenceExtraction() local 85 if (pref.getUid() == uid) { in testNotificationPackagePreferenceExtraction() 114 int uid = DeviceUtils.getStatsdTestAppUid(getDevice()); in testNotificationChannelPreferencesExtraction() local 123 if (uid == pref.getUid() && pref.getChannelId().equals("StatsdCtsChannel")) { in testNotificationChannelPreferencesExtraction() 153 int uid = DeviceUtils.getStatsdTestAppUid(getDevice()); in testNotificationChannelGroupPreferencesExtraction() local 161 if (uid == pref.getUid() && pref.getGroupId().equals("StatsdCtsGroup")) { in testNotificationChannelGroupPreferencesExtraction()
|
/cts/tests/tests/nativemedia/resourceobserver/src/ |
D | ResourceObserverNativeTest.cpp | 53 int32_t uid; member 62 MediaObservableEvent event, int32_t uid, int32_t pid, in onStatusChanged() 64 LOG(INFO) << ::aidl::android::media::toString(event) << ", uid: " << uid in onStatusChanged() 69 mLastEvent.uid = uid; in onStatusChanged() 146 EXPECT_EQ(event.uid, getuid()); in verifyEvent()
|