/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/appop/src/android/app/appops/cts/ |
D | HistoricalAppopsTest.kt | 46 private val uid = Process.myUid() in <lambda>() constant in android.app.appops.cts.HistoricalAppopsTest 125 var firstOps = getHistoricalOpsFromDiskRaw(uid, packageName, null /*opNames*/, in <lambda>() 132 var secondOps = getHistoricalOpsFromDiskRaw(uid, packageName, null /*opNames*/, in <lambda>() 139 var allOps = getHistoricalOpsFromDiskRaw(uid, packageName, null /*opNames*/, in <lambda>() 149 firstOps = getHistoricalOpsFromDiskRaw(uid, packageName, null /*opNames*/, in <lambda>() 154 secondOps = getHistoricalOpsFromDiskRaw(uid, packageName, null /*opNames*/, in <lambda>() 159 allOps = getHistoricalOpsFromDiskRaw(uid, packageName, null /*opNames*/, in <lambda>() 169 firstOps = getHistoricalOpsFromDiskRaw(uid, packageName, null /*opNames*/, in <lambda>() 174 secondOps = getHistoricalOpsFromDiskRaw(uid, packageName, null /*opNames*/, in <lambda>() 179 allOps = getHistoricalOpsFromDiskRaw(uid, packageName, null /*opNames*/, in <lambda>() [all …]
|
D | DiscreteAppopsTest.kt | 82 private val uid = context.packageManager.getPackageUid(PACKAGE_NAME, 0) in <lambda>() constant in android.app.appops.cts.DiscreteAppopsTest 100 appOpsManager.noteOp(OPSTR_FINE_LOCATION, uid, PACKAGE_NAME, null, null) in <lambda>() 190 noteOp(OPSTR_CAMERA, uid, PACKAGE_NAME, null, null) in <lambda>() 203 assertThat(uidOps.uid).isEqualTo(uid) in <lambda>() 227 assertThat(uidOps.uid).isEqualTo(uid) in <lambda>() 251 assertThat(uidOps.uid).isEqualTo(uid) in <lambda>() 268 noteOp(OPSTR_CAMERA, uid, PACKAGE_NAME, null, null) in <lambda>() 269 noteOp(OPSTR_CAMERA, uid, PACKAGE_NAME, null, null) in <lambda>() 280 assertThat(uidOps.uid).isEqualTo(uid) in <lambda>() 304 noteOp(OPSTR_CAMERA, uid, PACKAGE_NAME) in <lambda>() [all …]
|
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/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/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/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/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/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/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/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/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/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/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 …]
|
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/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/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/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/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()
|
/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()
|
/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()
|