Home
last modified time | relevance | path

Searched refs:is_root (Results 1 – 21 of 21) sorted by relevance

/third_party/rust/crates/rustix/tests/process/
Did.rs8 assert_eq!(process::getuid().is_root(), libc::getuid() == 0); in test_getuid()
17 assert_eq!(process::getgid().is_root(), libc::getgid() == 0); in test_getgid()
26 assert_eq!(process::geteuid().is_root(), libc::geteuid() == 0); in test_geteuid()
35 assert_eq!(process::getegid().is_root(), libc::getegid() == 0); in test_getegid()
/third_party/protobuf/src/google/protobuf/util/internal/
Djson_objectwriter.cc50 if (element_ && !element_->is_root()) { in ~JsonObjectWriter()
65 if (element() && element()->is_root()) NewLine(); in EndObject()
79 if (element()->is_root()) NewLine(); in EndList()
175 if (not_first || !element()->is_root()) NewLine(); in WritePrefix()
Dstructured_objectwriter.h82 bool is_root() const { return parent_ == nullptr; } in is_root() function
/third_party/skia/tools/skpbench/
D_adb.py36 if not self.is_root():
40 return self.is_root()
42 def is_root(self): member in Adb
D_hardware_pixel.py18 if not self._adb.is_root():
67 if not self._adb.is_root():
D_hardware_nexus_6p.py18 if not self._adb.is_root():
66 if not self._adb.is_root():
D_hardware_pixel_c.py21 if not self._adb.is_root():
58 if not self._adb.is_root():
D_hardware_pixel2.py20 if not self._adb.is_root():
87 if not self._adb.is_root():
D_hardware_android.py23 if not self._adb.is_root() and self._adb.root():
37 if self._adb.is_root():
/third_party/typescript/tests/ts_extra_tests/tool/
Dtest_helper.py67 is_root = True
69 is_root = False
74 if is_root:
/third_party/json/tools/amalgamate/
Damalgamate.py250 if not self.is_root:
254 def __init__(self, file_path, amalgamation, is_root): argument
258 self.is_root = is_root
/third_party/skia/src/codec/
DSkParseEncodedOrigin.cpp12 bool littleEndian, bool is_root, SkEncodedOrigin* orientation) { in parse_encoded_origin() argument
43 } else if (kSubIFDOffsetTag == tag && kSubIFDOffsetType == type && 1 == count && is_root) { in parse_encoded_origin()
/third_party/rust/crates/nix/test/common/
Dmod.rs44 if !Uid::current().is_root() && CtlValue::Int(0) == ctl.value().unwrap()
83 if !Uid::current().is_root() {
/third_party/rust/crates/rustix/src/process/
Did.rs73 pub const fn is_root(self) -> bool { in is_root() method
100 pub const fn is_root(self) -> bool { in is_root() method
/third_party/node/deps/v8/src/handles/
Dglobal-handles.cc686 bool is_root() const { return IsRoot::decode(flags_); } in is_root() function in v8::internal::GlobalHandles::TracedNode
733 void CheckImplFieldsAreCleared() const { DCHECK(is_root()); } in CheckImplFieldsAreCleared()
1272 DCHECK(node->is_root()); in IdentifyWeakUnmodifiedObjects()
1290 if (node->IsInUse() && node->is_root()) { in IterateYoungStrongAndDependentRoots()
1352 DCHECK_IMPLIES(node->is_root(), in IterateYoungWeakObjectsForPhantomHandles()
1363 if (!node->is_root()) { in IterateYoungWeakObjectsForPhantomHandles()
/third_party/libfuse/test/
Dtest_syscalls.c1964 int is_root; in main() local
2016 is_root = (geteuid() == 0); in main()
2073 if(!is_root) { in main()
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/
Dbtree.h682 bool is_root() const { return parent()->leaf(); }
684 assert(parent()->is_root());
1842 while (position == node->finish() && !node->is_root()) {
1866 while (position < node->start() && !node->is_root()) {
/third_party/libabigail/tools/
Dabilint.cc194 is_root() const in is_root() function
/third_party/python/Lib/test/
Dtest_posix.py730 is_root = (uid in (0, 1))
732 is_root = (uid == 0)
733 if is_root:
/third_party/rust/crates/nix/
DCHANGELOG.md476 - Made `Uid::is_root` a `const fn`
791 `Uid::is_root`, `Uid::as_raw`, `Pid::as_raw`, and `PollFd::revents` now take
/third_party/rust/crates/nix/src/
Dunistd.rs94 pub const fn is_root(self) -> bool {