Home
last modified time | relevance | path

Searched refs:AID_ROOT (Results 1 – 20 of 20) sorted by relevance

/frameworks/native/services/surfaceflinger/tests/
DCredentials_test.cpp39 seteuid(AID_ROOT); in SetUp()
49 seteuid(AID_ROOT); in TearDown()
109 seteuid(AID_ROOT); in setGraphicsUID()
117 seteuid(AID_ROOT); in setSystemUID()
126 seteuid(AID_ROOT); in setBinUID()
138 seteuid(AID_ROOT); in checkWithPrivileges()
312 seteuid(AID_ROOT); in TEST_F()
320 seteuid(AID_ROOT); in TEST_F()
/frameworks/base/cmds/idmap2/tests/
DFileUtilsTests.cpp90 ASSERT_TRUE(UidHasWriteAccessToPath(AID_ROOT, tmp_path)); in TEST()
91 ASSERT_TRUE(UidHasWriteAccessToPath(AID_ROOT, cache_path)); in TEST()
92 ASSERT_TRUE(UidHasWriteAccessToPath(AID_ROOT, sneaky_cache_path)); in TEST()
DIdmap2BinaryTests.cpp74 if (uid != AID_ROOT && uid != AID_SYSTEM) { \
/frameworks/av/media/utils/include/mediautils/
DServiceUtilities.h52 return uid == AID_AUDIOSERVER || uid == AID_ROOT; in isAudioServerOrRootUid()
64 return multiuser_get_app_id(uid) == AID_SYSTEM || uid == AID_AUDIOSERVER || uid == AID_ROOT; in isAudioServerOrSystemServerOrRootUid()
/frameworks/base/cmds/incidentd/src/
DIncidentService.cpp66 if (callingUid == AID_ROOT || callingUid == AID_SHELL) { in checkIncidentPermissions()
97 if (callingUid != AID_SHELL && callingUid != AID_ROOT) { in checkIncidentPermissions()
106 if (callingUid != AID_SHELL && callingUid != AID_ROOT && callingUid != AID_STATSD && in checkIncidentPermissions()
312 if (caller != AID_ROOT && caller != AID_SHELL) { in reportIncidentToDumpstate()
/frameworks/native/services/vr/performanced/
Dperformance_service.cpp134 CheckAnd<SameProcess, CheckOr<UserId<AID_ROOT, AID_SYSTEM, AID_GRAPHICS>, in PerformanceService()
137 CheckAnd<SameProcess, CheckOr<UserId<AID_ROOT, AID_SYSTEM, AID_AUDIO>, in PerformanceService()
140 CheckOr<Trusted, UserId<AID_ROOT, AID_SYSTEM>, GroupId<AID_SYSTEM>>; in PerformanceService()
Dperformance_service_tests.cpp263 ASSERT_EQ(AID_ROOT, original_uid) in TEST()
/frameworks/base/cmds/app_process/
Dapp_main.cpp157 result = chown(dalvikCacheDir, AID_ROOT, AID_ROOT); in maybeCreateDalvikCache()
/frameworks/base/core/java/android/os/
DUserHandle.java117 public static final int AID_ROOT = android.os.Process.ROOT_UID; field in UserHandle
277 } else if (appId >= AID_ROOT && appId <= AID_APP_START) { in getSharedAppGid()
/frameworks/native/services/inputflinger/
DInputManager.cpp126 if (uid != AID_SHELL && uid != AID_ROOT) { in registerInputChannel()
/frameworks/base/cmds/idmap2/libidmap2/
DFileUtils.cpp100 return uid == AID_ROOT || uid == AID_SYSTEM; in UidHasWriteAccessToPath()
/frameworks/native/libs/vr/libvrflinger/
Ddisplay_service.cpp278 const bool trusted = user_id == AID_ROOT || IsTrustedUid(user_id); in OnSetupGlobalBuffer()
292 const bool trusted = (user_id == AID_ROOT) || IsTrustedUid(user_id); in OnDeleteGlobalBuffer()
Ddisplay_manager_service.cpp46 const bool trusted = user_id == AID_ROOT || IsTrustedUid(user_id); in OnChannelOpen()
Ddisplay_surface.cpp470 const bool trusted = user_id == AID_ROOT || IsTrustedUid(user_id); in Create()
/frameworks/base/cmds/statsd/src/
DStatsService.cpp76 if (uid == expectedUid || uid == AID_ROOT) { in checkUid()
89 if (uid == AID_ROOT || uid == AID_SYSTEM || uid == AID_SHELL) { in checkDumpAndUsageStats()
353 if (uid != AID_ROOT && uid != AID_SHELL) { in command()
958 || (callingUid == AID_ROOT && goodUid == AID_SHELL); // ROOT can impersonate SHELL. in getUidFromString()
1306 if (uid != AID_ROOT && uid != AID_SYSTEM && uid != AID_SHELL) { in sendBinaryPushStateChangedAtom()
1402 if (uid != AID_ROOT && uid != AID_SYSTEM && uid != AID_SHELL) { in sendWatchdogRollbackOccurredAtom()
Dstats_log_util.cpp418 uid != AID_ROOT) { in TimeUnitToBucketSizeInMillisGuardrailed()
/frameworks/native/cmds/rawbu/
Dbackup.cpp662 if (getuid() != AID_ROOT) { in main()
/frameworks/native/libs/binder/ndk/
Dibinder.cpp189 if (uid != AID_ROOT && uid != AID_SHELL) { in onTransact()
/frameworks/native/cmds/installd/
DInstalldNativeService.cpp155 if (uid == expectedUid || uid == AID_ROOT) { in checkUid()
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.cpp5261 if (uid == AID_ROOT || uid == AID_GRAPHICS || uid == AID_SYSTEM || uid == AID_SHELL) { in CheckTransactCodeCredentials()