Home
last modified time | relevance | path

Searched refs:SYSTEM_UID (Results 1 – 25 of 120) sorted by relevance

12345

/packages/modules/Connectivity/thread/tests/unit/src/android/net/thread/
DThreadNetworkControllerTest.java23 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/
DNetworkPolicyManagerTest.java22 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/
DNetworkStatsObserversTest.java165 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/
DPermissionMonitorTest.java41 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/
DNetworkStatsAccess.java136 || 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/
DPermissionUtil.java47 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/
DIkeAlarmTest.java72 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/
DPackageInfoFragment.java68 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/
DProviderUtil.java66 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/
DBtPermissionUtils.java22 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/
DConnectionFailureNotifier.java136 mWifiConfigManager.addOrUpdateNetwork(config, Process.SYSTEM_UID); in showRandomizationSettingsDialog()
145 Process.SYSTEM_UID, null); in showRandomizationSettingsDialog()
DNetworkListStoreData.java311 configuration.creatorUid = Process.SYSTEM_UID; in parseNetwork()
313 mContext.getPackageManager().getNameForUid(Process.SYSTEM_UID); in parseNetwork()
DFrameworkFacade.java378 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/
DAvfIntegrationTest.java131 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/
DConnectivitySampleMetricsTest.kt27 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/
DUserCredentialsTest.java41 Credential c = new Credential(alias, Process.SYSTEM_UID); in testCredentialIsParcelable()
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DSecureElementPermissionTest.java44 List<Integer> specialUids = Arrays.asList(Process.SYSTEM_UID, Process.PHONE_UID); in testSecureElementPrivilegedPermission()
/packages/services/Mms/tests/robotests/src/com/android/mms/service/
DMmsServiceRoboTest.java57 ShadowBinder.setCallingUid(Process.SYSTEM_UID); in testSendMessage_DoesNotThrowIfSystemUid()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DRequestPermissionActivity.java327 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/
DAppFunctionService.java75 if (Binder.getCallingUid() != Process.SYSTEM_UID) {
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java1071 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/
DNetworkStatsObservers.java199 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/
DBluetoothRequestPermissionActivity.java291 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/
DBatteryEntryTest.java58 private static final int SYSTEM_UID = Process.SYSTEM_UID; field in BatteryEntryTest
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/
DUtils.java584 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()

12345