Home
last modified time | relevance | path

Searched refs:uid (Results 1 – 18 of 18) sorted by relevance

/art/libartservice/service/java/com/android/server/art/
DAidlUtils.java48 int uid, int gid, boolean isOtherReadable, boolean isOtherExecutable) { in buildFsPermission() argument
50 fsPermission.uid = uid; in buildFsPermission()
58 public static FsPermission buildFsPermission(int uid, int gid, boolean isOtherReadable) { in buildFsPermission() argument
59 return buildFsPermission(uid, gid, isOtherReadable, false /* isOtherExecutable */); in buildFsPermission()
147 @NonNull WritableProfilePath finalPath, int uid, int gid, boolean isPublic) { in buildOutputProfile() argument
153 outputProfile.fsPermission = buildFsPermission(uid, gid, isPublic); in buildOutputProfile()
159 @NonNull String profileName, int uid, int gid, boolean isPublic) { in buildOutputProfileForPrimary() argument
162 uid, gid, isPublic); in buildOutputProfileForPrimary()
167 @NonNull String dexPath, int uid, int gid, boolean isPublic) { in buildOutputProfileForSecondary() argument
169 WritableProfilePath.forSecondary(buildSecondaryRefProfilePath(dexPath)), uid, gid, in buildOutputProfileForSecondary()
[all …]
DSecondaryDexopter.java97 int uid = getUid(dexInfo); in getPermissionSettings() local
102 FsPermission dirFsPermission = AidlUtils.buildFsPermission(uid /* uid */, uid /* gid */, in getPermissionSettings()
105 AidlUtils.buildFsPermission(uid /* uid */, uid /* gid */, canBePublic); in getPermissionSettings()
106 SeContext seContext = AidlUtils.buildSeContext(mPkgState.getSeInfo(), uid); in getPermissionSettings()
132 int uid = getUid(dexInfo); in buildOutputProfile() local
133 return AidlUtils.buildOutputProfileForSecondary(dexInfo.dexPath(), uid, uid, isPublic); in buildOutputProfile()
DPrimaryDexUtils.java312 @NonNull PrimaryDexInfo dexInfo, int uid, int gid, boolean isPublic) { in buildOutputProfile() argument
315 pkgState.getPackageName(), profileName, uid, gid, isPublic); in buildOutputProfile()
DArtShellCommand.java754 final int uid = Binder.getCallingUid(); in enforceRootOrShell() local
755 if (uid != Process.ROOT_UID && uid != Process.SHELL_UID) { in enforceRootOrShell()
/art/libartbase/base/
Dsocket_peer_is_trusted.cc39 if (cr.uid != 0 && cr.uid != shell->pw_uid) { in SocketPeerIsTrusted()
40 LOG(ERROR) << "untrusted uid " << cr.uid << " on other end of socket"; in SocketPeerIsTrusted()
/art/libartbase/base/metrics/
Dmetrics_common.cc47 int32_t uid = kInvalidUserId; // Windows does not support getuid(); in CreateDefault() local
49 int32_t uid = static_cast<int32_t>(getuid()); in CreateDefault()
56 .uid = uid, in CreateDefault()
137 os_ << " uid: " << session_data->uid << "\n"; in FormatBeginReport()
195 metadata->InsertNewChildElement("uid")->SetText(session_data->uid); in FormatBeginReport()
Dmetrics_test.cc389 .uid = 50, in TEST()
421 .uid = 15, in TEST()
495 .uid = 456, in TEST()
542 .uid = 345, in TEST()
Dmetrics.h230 int32_t uid; member
/art/artd/
Dfile_utils.cc230 if (fs_permission.uid < 0 && fs_permission.gid < 0) { in Chown()
232 } else if (fs_permission.uid < 0 || fs_permission.gid < 0) { in Chown()
234 fs_permission.uid, in Chown()
237 if (chown(path.c_str(), fs_permission.uid, fs_permission.gid) != 0) { in Chown()
Dartd_test.cc360 .uid = static_cast<int32_t>(st.st_uid), in SetUp()
367 .uid = static_cast<int32_t>(st.st_uid), in SetUp()
1185 output_artifacts_.permissionSettings.fileFsPermission.uid = 12345; in TEST_F()
1206 .uid = 123, .gid = 123, .isOtherReadable = false}; in TEST_F()
1221 .uid = 123, .gid = 456, .isOtherReadable = false}; in TEST_F()
1237 .uid = 12345, .gid = 12345, .isOtherReadable = false}; in TEST_F()
1247 .uid = -1, .gid = -1, .isOtherReadable = false}; in TEST_F()
1317 OutputProfile dst{.profilePath = src, .fsPermission = FsPermission{.uid = -1, .gid = -1}}; in TEST_F()
1352 OutputProfile dst{.profilePath = src, .fsPermission = FsPermission{.uid = -1, .gid = -1}}; in TEST_F()
1372 OutputProfile dst{.profilePath = src, .fsPermission = FsPermission{.uid = -1, .gid = -1}}; in TEST_F()
[all …]
Dartd.cc276 se_context->uid, in Restorecon()
851 if ((fs_permission.uid > 0 && static_cast<uid_t>(fs_permission.uid) != dex_st.st_uid) || in dexopt()
857 fs_permission.uid, in dexopt()
890 NewFile::Create("{}.swap"_format(oat_path), FsPermission{.uid = -1, .gid = -1})); in dexopt()
Dfile_utils_test.cc82 fs_permission_ = FsPermission{.uid = static_cast<int32_t>(st.st_uid), in SetUp()
/art/artd/binder/com/android/server/art/
DFsPermission.aidl30 int uid;
DOutputArtifacts.aidl44 int uid;
/art/runtime/native/
Ddalvik_system_DexFile.cc357 const int uid = getuid(); in isReadOnlyJavaDclChecked() local
364 return uid != 0 && uid != 1000 && uid != 2000; in isReadOnlyJavaDclChecked()
/art/compiler/optimizing/
Dreference_type_propagation_test.cc471 std::uniform_int_distribution<bool> uid(false, true); in TEST_P() local
485 return uid(g); in TEST_P()
/art/runtime/metrics/
Dstatsd.cc379 session_data_.uid, in ReportCounter()
/art/build/boot/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt111 Landroid/system/StructUcred;->uid:I