/packages/modules/Connectivity/thread/tests/unit/src/android/net/thread/ |
D | ThreadNetworkControllerTest.java | 23 import static android.os.Process.SYSTEM_UID; 139 setBinderUid(SYSTEM_UID); in registerStateCallback_callbackIsInvokedWithCallingAppIdentity() 153 assertThat(callbackUid.get()).isNotEqualTo(SYSTEM_UID); in registerStateCallback_callbackIsInvokedWithCallingAppIdentity() 163 setBinderUid(SYSTEM_UID); in registerOperationalDatasetCallback_callbackIsInvokedWithCallingAppIdentity() 194 assertThat(activeCallbackUid.get()).isNotEqualTo(SYSTEM_UID); in registerOperationalDatasetCallback_callbackIsInvokedWithCallingAppIdentity() 196 assertThat(pendingCallbackUid.get()).isNotEqualTo(SYSTEM_UID); in registerOperationalDatasetCallback_callbackIsInvokedWithCallingAppIdentity() 205 setBinderUid(SYSTEM_UID); in createRandomizedDataset_callbackIsInvokedWithCallingAppIdentity() 240 assertThat(successCallbackUid.get()).isNotEqualTo(SYSTEM_UID); in createRandomizedDataset_callbackIsInvokedWithCallingAppIdentity() 242 assertThat(errorCallbackUid.get()).isNotEqualTo(SYSTEM_UID); in createRandomizedDataset_callbackIsInvokedWithCallingAppIdentity() 248 setBinderUid(SYSTEM_UID); in join_callbackIsInvokedWithCallingAppIdentity() [all …]
|
/packages/modules/Connectivity/tests/cts/hostside-network-policy/app/src/com/android/cts/netpolicy/hostside/ |
D | NetworkPolicyManagerTest.java | 22 import static android.os.Process.SYSTEM_UID; 88 assertFalse(isUidNetworkingBlocked(SYSTEM_UID, METERED)); // Match NTWK_ALLOWED_SYSTEM in testIsUidNetworkingBlocked_withSystemUid() 89 assertFalse(isUidNetworkingBlocked(SYSTEM_UID, NON_METERED)); // Match NTWK_ALLOWED_SYSTEM in testIsUidNetworkingBlocked_withSystemUid() 94 assertNetworkingBlockedStatusForUid(SYSTEM_UID, METERED, in testIsUidNetworkingBlocked_withSystemUid() 97 isUidNetworkingBlocked(SYSTEM_UID, NON_METERED)); // Match NTWK_ALLOWED_SYSTEM in testIsUidNetworkingBlocked_withSystemUid()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/ |
D | NetworkStatsObserversTest.java | 165 mUsageCallback, PID_SYSTEM, Process.SYSTEM_UID, PACKAGE_SYSTEM, in testRegister_thresholdTooLow_setsDefaultThreshold() 179 PID_SYSTEM, Process.SYSTEM_UID, PACKAGE_SYSTEM, NetworkStatsAccess.Level.DEVICE); in testRegister_highThreshold_accepted() 191 PID_SYSTEM, Process.SYSTEM_UID, PACKAGE_SYSTEM, NetworkStatsAccess.Level.DEVICE); in testRegister_twoRequests_twoIds() 197 PID_SYSTEM, Process.SYSTEM_UID, PACKAGE_SYSTEM, NetworkStatsAccess.Level.DEVICE); in testRegister_twoRequests_twoIds() 262 PID_SYSTEM, Process.SYSTEM_UID, PACKAGE_SYSTEM, NetworkStatsAccess.Level.DEVICE); in testUnregister_knownRequest_releasesCaller() 269 mStatsObservers.unregister(request, Process.SYSTEM_UID); in testUnregister_knownRequest_releasesCaller() 294 mStatsObservers.unregister(request, Process.SYSTEM_UID); in testUnregister_knownRequest_invalidUid_doesNotUnregister() 314 PID_SYSTEM, Process.SYSTEM_UID, PACKAGE_SYSTEM, NetworkStatsAccess.Level.DEVICE); in testUpdateStats_initialSample_doesNotNotify() 338 PID_SYSTEM, Process.SYSTEM_UID, PACKAGE_SYSTEM, NetworkStatsAccess.Level.DEVICE); in testUpdateStats_belowThreshold_doesNotNotify() 368 PID_SYSTEM, Process.SYSTEM_UID, PACKAGE_SYSTEM, NetworkStatsAccess.Level.DEVICE); in testUpdateStats_deviceAccess_notifies()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | PermissionMonitorTest.java | 41 import static android.os.Process.SYSTEM_UID; 453 PARTITION_SYSTEM, VERSION_P, SYSTEM_PACKAGE1, SYSTEM_UID)); in testHasRestrictedNetworkPermissionSystemUid() 455 PARTITION_SYSTEM, VERSION_P, SYSTEM_PACKAGE1, SYSTEM_UID, CONNECTIVITY_INTERNAL)); in testHasRestrictedNetworkPermissionSystemUid() 457 PARTITION_SYSTEM, VERSION_P, SYSTEM_PACKAGE1, SYSTEM_UID, in testHasRestrictedNetworkPermissionSystemUid() 462 PARTITION_SYSTEM, VERSION_Q, SYSTEM_PACKAGE1, SYSTEM_UID)); in testHasRestrictedNetworkPermissionSystemUid() 464 PARTITION_SYSTEM, VERSION_Q, SYSTEM_PACKAGE1, SYSTEM_UID, CONNECTIVITY_INTERNAL)); in testHasRestrictedNetworkPermissionSystemUid() 466 PARTITION_SYSTEM, VERSION_Q, SYSTEM_PACKAGE1, SYSTEM_UID, in testHasRestrictedNetworkPermissionSystemUid() 524 assertTrue(wouldBeCarryoverPackage(PARTITION_SYSTEM, VERSION_P, SYSTEM_UID)); in testIsCarryoverPackage() 525 assertTrue(wouldBeCarryoverPackage(PARTITION_VENDOR, VERSION_P, SYSTEM_UID)); in testIsCarryoverPackage() 528 assertTrue(wouldBeCarryoverPackage(PARTITION_SYSTEM, VERSION_Q, SYSTEM_UID)); in testIsCarryoverPackage() [all …]
|
/packages/modules/Connectivity/framework-t/src/android/net/ |
D | NetworkStatsAccess.java | 136 || appId == Process.SYSTEM_UID || isNetworkStack) { in checkAccessLevel() 182 return uid == android.os.Process.SYSTEM_UID || uid == UID_REMOVED in isAccessibleToUser() 188 return uid == android.os.Process.SYSTEM_UID || uid == UID_REMOVED in isAccessibleToUser()
|
/packages/modules/NetworkStack/src/com/android/server/util/ |
D | PermissionUtil.java | 47 if (caller == Process.SYSTEM_UID) { in enforceNetworkStackCallingPermission() 121 if (caller != Process.myUid() && caller != Process.SYSTEM_UID && caller != Process.ROOT_UID in checkDumpPermission()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/utils/ |
D | IkeAlarmTest.java | 72 when(mMockDeps.getMyUid()).thenReturn(Process.SYSTEM_UID); in testNewExactAndAllowWhileIdleAlarmWithSystemUid() 80 when(mMockDeps.getMyUid()).thenReturn(Process.SYSTEM_UID + 1); in testNewExactAndAllowWhileIdleAlarmWithNonSystemUid()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/packageinfo/ |
D | PackageInfoFragment.java | 68 private static final String SYSTEM_UID = "android.uid.system"; field in PackageInfoFragment 118 || !packageInfo.sharedUserId.equals(SYSTEM_UID))); in refreshPackages() 122 || !packageInfo.sharedUserId.equals(SYSTEM_UID)); in refreshPackages()
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | ProviderUtil.java | 66 return (uid != Process.SYSTEM_UID in isAccessRestricted() 79 return (uid != Process.SYSTEM_UID && uid != Process.PHONE_UID) || in shouldSetCreator() 92 return (uid != Process.SYSTEM_UID && uid != Process.PHONE_UID) && in shouldRemoveCreator()
|
/packages/modules/Bluetooth/service/src/com/android/server/bluetooth/ |
D | BtPermissionUtils.java | 22 import static android.os.Process.SYSTEM_UID; 152 return callingAppId == Process.SYSTEM_UID; in isCallerSystem() 173 || (ctx.getPackageManager().checkSignatures(uid, SYSTEM_UID) == SIGNATURE_MATCH); in isPrivileged()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | ConnectionFailureNotifier.java | 136 mWifiConfigManager.addOrUpdateNetwork(config, Process.SYSTEM_UID); in showRandomizationSettingsDialog() 145 Process.SYSTEM_UID, null); in showRandomizationSettingsDialog()
|
D | NetworkListStoreData.java | 311 configuration.creatorUid = Process.SYSTEM_UID; in parseNetwork() 313 mContext.getPackageManager().getNameForUid(Process.SYSTEM_UID); in parseNetwork()
|
D | FrameworkFacade.java | 378 if (settingsPackageName == null) return new WorkSource(Process.SYSTEM_UID); in getSettingsWorkSource() 379 return new WorkSource(Process.SYSTEM_UID, settingsPackageName); in getSettingsWorkSource()
|
/packages/modules/RemoteKeyProvisioning/app/tests/avf/src/com/android/avf/rkpdapp/e2etest/ |
D | AvfIntegrationTest.java | 131 mKeyDao.getKeyForClientAndIrpc(SERVICE_NAME, Process.SYSTEM_UID, Process.myUid()); in provisioningSucceeds() 136 SERVICE_NAME, Instant.now(), Process.SYSTEM_UID, Process.myUid()); in provisioningSucceeds()
|
/packages/modules/Connectivity/tests/unit/java/com/android/metrics/ |
D | ConnectivitySampleMetricsTest.kt | 27 import android.os.Process.SYSTEM_UID in <lambda>() 223 fileNetworkRequest(RT_SYSTEM, requestCount, SYSTEM_UID); in testSampleConnectivityState_NetworkRequest() 224 fileNetworkRequest(RT_SYSTEM_ON_BEHALF_OF_APP, requestCount, SYSTEM_UID); in testSampleConnectivityState_NetworkRequest()
|
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/ |
D | UserCredentialsTest.java | 41 Credential c = new Credential(alias, Process.SYSTEM_UID); in testCredentialIsParcelable()
|
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/ |
D | SecureElementPermissionTest.java | 44 List<Integer> specialUids = Arrays.asList(Process.SYSTEM_UID, Process.PHONE_UID); in testSecureElementPrivilegedPermission()
|
/packages/services/Mms/tests/robotests/src/com/android/mms/service/ |
D | MmsServiceRoboTest.java | 57 ShadowBinder.setCallingUid(Process.SYSTEM_UID); in testSendMessage_DoesNotThrowIfSystemUid()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | RequestPermissionActivity.java | 327 if (UserHandle.isSameApp(mCallingUid, Process.SYSTEM_UID) in parseIntent() 332 if (!UserHandle.isSameApp(mCallingUid, Process.SYSTEM_UID) in parseIntent()
|
/packages/modules/AppSearch/framework/java/android/app/appsearch/functions/ |
D | AppFunctionService.java | 75 if (Binder.getCallingUid() != Process.SYSTEM_UID) {
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | WifiPermissionsUtil.java | 1071 return pm.checkSignatures(uid, Process.SYSTEM_UID) == PackageManager.SIGNATURE_MATCH; in isOemPrivilegedAdminNoCache() 1192 if (UserHandle.getAppId(uid) == android.os.Process.SYSTEM_UID in doesUidBelongToUser() 1235 } else if (mContext.getPackageManager().checkSignatures(uid, Process.SYSTEM_UID) in getWifiCallerType() 1356 return mContext.getPackageManager().checkSignatures(uid, Process.SYSTEM_UID) in isSignedWithPlatformKey()
|
/packages/modules/Connectivity/service-t/src/com/android/server/net/ |
D | NetworkStatsObservers.java | 199 if (Process.SYSTEM_UID != callingUid && requestInfo.mCallingUid != callingUid) { in handleUnregister() 293 mStatsObserver.unregister(mRequest, Process.SYSTEM_UID); in binderDied()
|
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/ |
D | BluetoothRequestPermissionActivity.java | 291 if (UserHandle.isSameApp(mCallingUid, Process.SYSTEM_UID) in parseIntent() 296 if (!UserHandle.isSameApp(mCallingUid, Process.SYSTEM_UID) in parseIntent()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/ |
D | BatteryEntryTest.java | 58 private static final int SYSTEM_UID = Process.SYSTEM_UID; field in BatteryEntryTest
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/ |
D | Utils.java | 584 callingUid = android.os.Process.SYSTEM_UID; in getCallingAttributionSource() 777 return UserHandle.getAppId(Process.SYSTEM_UID) == UserHandle.getAppId(callingUid); in checkCallerIsSystem() 786 || (UserHandle.getAppId(Process.SYSTEM_UID) == UserHandle.getAppId(callingUid)); in checkCallerIsSystemOrActiveUser() 837 || (UserHandle.getAppId(Process.SYSTEM_UID) == UserHandle.getAppId(callingUid)); in checkCallerIsSystemOrActiveOrManagedUser()
|