/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_getscheduler/ |
7-1.c | 27 struct passwd *pw; local 30 while ((pw = getpwent()) != NULL) 31 if (strcmp(pw->pw_name, "root")) 34 if (pw == NULL) { 39 if (seteuid(pw->pw_uid) != 0) { 50 pw->pw_name, (int)geteuid());
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/ |
26-1.c | 26 struct passwd *pw; local 29 while ((pw = getpwent()) != NULL) 30 if (strcmp(pw->pw_name, "root")) 33 if (pw == NULL) { 38 if (seteuid(pw->pw_uid) != 0) { 49 pw->pw_name, (int)geteuid());
|
23-6.c | 28 struct passwd *pw; local 31 while ((pw = getpwent()) != NULL) 32 if (strcmp(pw->pw_name, "root")) 35 if (pw == NULL) { 40 if (setuid(pw->pw_uid) != 0) { 51 pw->pw_name, (int)geteuid(), (int)getuid());
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/ |
3-1.c | 34 struct passwd *pw; local 37 while ((pw = getpwent()) != NULL) 38 if (strcmp(pw->pw_name, "root")) 41 if (pw == NULL) { 46 if (setuid(pw->pw_uid) != 0) { 57 pw->pw_name, (int)getuid(), (int)geteuid());
|
12-1.c | 31 struct passwd *pw; local 34 while ((pw = getpwent()) != NULL) 35 if (strcmp(pw->pw_name, "root")) 38 if (pw == NULL) { 43 if (setuid(pw->pw_uid) != 0) { 54 pw->pw_name, (int)geteuid(), (int)getuid());
|
/frameworks/base/core/java/android/os/ |
TransactionTracker.java | 62 PrintWriter pw = new FastPrintWriter(new FileOutputStream(fd.getFileDescriptor())); local 65 pw.println("Count: " + mTraces.get(trace)); 66 pw.println("Trace: " + trace); 67 pw.println(); 70 pw.flush();
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
IndentingPrintWriterTest.java | 41 final IndentingPrintWriter pw = new IndentingPrintWriter(mWriter, " "); local 43 pw.print("Hello"); 44 pw.increaseIndent(); 45 pw.println(); 46 pw.print("World"); 47 pw.increaseIndent(); 48 pw.println(); 49 pw.print("And"); 50 pw.decreaseIndent(); 51 pw.println() 63 final IndentingPrintWriter pw = new IndentingPrintWriter(mWriter, " "); local 74 final IndentingPrintWriter pw = new IndentingPrintWriter(mWriter, "", 10); local 86 final IndentingPrintWriter pw = new IndentingPrintWriter(mWriter, " ", 10); local 100 final IndentingPrintWriter pw = new IndentingPrintWriter(mWriter, " ", 10); local 111 final IndentingPrintWriter pw = new IndentingPrintWriter(mWriter, " ", 10); local 122 final IndentingPrintWriter pw = new IndentingPrintWriter(mWriter, " ", 10); local [all...] |
/libcore/ojluni/src/main/java/java/util/logging/ |
SimpleFormatter.java | 155 PrintWriter pw = new PrintWriter(sw); local 156 pw.println(); 157 record.getThrown().printStackTrace(pw); 158 pw.close();
|
/external/ltp/testcases/kernel/syscalls/chdir/ |
chdir03.c | 67 struct passwd *pw; local 69 pw = SAFE_GETPWNAM("nobody"); 70 nobody_uid = pw->pw_uid;
|
/external/ltp/testcases/kernel/syscalls/fchdir/ |
fchdir03.c | 60 struct passwd *pw; local 62 pw = SAFE_GETPWNAM("nobody"); 63 SAFE_SETEUID(pw->pw_uid);
|
/external/ltp/testcases/kernel/syscalls/umount/ |
umount03.c | 53 struct passwd *pw; local 59 pw = SAFE_GETPWNAM("nobody"); 60 SAFE_SETEUID(pw->pw_uid);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlockall/ |
15-1.c | 30 struct passwd *pw; local 36 while ((pw = getpwent()) != NULL) 37 if (strcmp(pw->pw_name, "root")) 40 if (pw == NULL) { 50 if (seteuid(pw->pw_uid) != 0) { 61 pw->pw_name, (int)geteuid());
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlockall/speculative/ |
15-1.c | 30 struct passwd *pw; local 36 while ((pw = getpwent()) != NULL) 37 if (strcmp(pw->pw_name, "root")) 40 if (pw == NULL) { 50 if (seteuid(pw->pw_uid) != 0) { 61 pw->pw_name, (int)geteuid());
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_getparam/ |
6-1.c | 35 struct passwd *pw; local 38 while ((pw = getpwent()) != NULL) 39 if (pw->pw_uid != 0) 42 if (pw == NULL) { 47 if (setgid(pw->pw_gid) != 0) { 56 if (setuid(pw->pw_uid) != 0) { 67 pw->pw_name, geteuid(), getuid());
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/ |
20-1.c | 33 struct passwd *pw; local 36 while ((pw = getpwent()) != NULL) 37 if (strcmp(pw->pw_name, "root")) 40 if (pw == NULL) { 45 if (setuid(pw->pw_uid) != 0) { 56 pw->pw_name, (int)geteuid(), (int)getuid());
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/ |
32-1.c | 34 struct passwd *pw; local 37 while ((pw = getpwent()) != NULL) 38 if (strcmp(pw->pw_name, "root")) 41 if (pw == NULL) { 46 if (seteuid(pw->pw_uid) != 0) { 57 pw->pw_name, (int)geteuid());
|
34-1.c | 34 struct passwd *pw; local 37 while ((pw = getpwent()) != NULL) 38 if (strcmp(pw->pw_name, "root")) 41 if (pw == NULL) { 46 if (seteuid(pw->pw_uid) != 0) { 57 pw->pw_name, (int)geteuid());
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_unlink/ |
9-1.c | 39 struct passwd *pw; local 49 while ((pw = getpwent()) != NULL) 50 if (strcmp(pw->pw_name, "root") && pw->pw_uid != getuid()) 53 if (pw == NULL) { 58 if (seteuid(pw->pw_uid) != 0) { 68 printf("Testing with user '%s' (uid: %i)\n", pw->pw_name, pw->pw_uid);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/ |
LeakDetector.java | 105 IndentingPrintWriter pw = new IndentingPrintWriter(w, " "); local 107 pw.println("SYSUI LEAK DETECTOR"); 108 pw.increaseIndent(); 111 pw.println("TrackedCollections:"); 112 pw.increaseIndent(); 113 mTrackedCollections.dump(pw, (col) -> !TrackedObjects.isTrackedObject(col)); 114 pw.decreaseIndent(); 115 pw.println(); 117 pw.println("TrackedObjects:"); 118 pw.increaseIndent() [all...] |
/dalvik/dx/tests/131-perf/ |
ClassGen.java | 28 PrintWriter pw = new PrintWriter(f); local 29 pw.println("class Clazz" + file + " {"); 31 pw.println(" public static int f" + field + ";"); 34 pw.println(" boolean m" + method + "_" + (file%(end/2)) + "() {" 36 pw.println(" int max = Thread.MAX_PRIORITY;"); 37 pw.println(" for (int i = 0; i < max; i++) {"); 38 pw.println(" System.out.println(\"Hello from: \" + Clazz" 41 pw.println(" Thread.dumpStack();"); 42 pw.println(" }"); 43 pw.println(" return Thread.holdsLock(this);") [all...] |
/frameworks/base/services/core/java/com/android/server/content/ |
ContentShellCommand.java | 38 final PrintWriter pw = getOutPrintWriter(); local 47 pw.println("Remote exception: " + e); 59 final PrintWriter pw = getOutPrintWriter(); local 60 pw.println("Content service commands:"); 61 pw.println(" help"); 62 pw.println(" Print this help text."); 63 pw.println(""); 64 pw.println(" reset-today-stats"); 65 pw.println(" Reset 1-day sync stats."); 66 pw.println() [all...] |
/cts/tests/tests/util/src/android/util/cts/ |
PrintWriterPrinterTest.java | 65 PrintWriter pw = new PrintWriter(mFile); local 66 new PrintWriterPrinter(pw); 72 PrintWriter pw = new PrintWriter(mFile); local 73 PrintWriterPrinter printWriterPrinter = new PrintWriterPrinter(pw); 75 pw.flush(); 76 pw.close();
|
/external/jarjar/src/main/com/tonicsystems/jarjar/ |
StringDumper.java | 28 public void run(String classPath, PrintWriter pw) throws IOException { 29 StringReader stringReader = new DumpStringReader(pw); 42 pw.flush(); 53 private final PrintWriter pw; field in class:StringDumper.DumpStringReader 56 public DumpStringReader(PrintWriter pw) { 57 this.pw = pw; 64 pw.println(className.replace('/', '.')); 66 pw.print("\t"); 68 pw.print(line + ": ") [all...] |
/frameworks/base/core/tests/benchmarks/src/android/util/ |
StreamsBenchmark.java | 68 final FastPrintWriter pw = new FastPrintWriter(dummy); local 69 pw.println("Top openSession callers (uid=count):"); 74 pw.print(uid); 75 pw.print("="); 76 pw.println(count); 78 pw.println(); 79 pw.flush(); 92 final FastPrintWriter pw = new FastPrintWriter(dummy); local 93 pw.println("Top openSession callers (uid=count):"); 95 pw.print(uidCalls.first) [all...] |
/external/curl/src/ |
tool_homedir.c | 77 struct passwd *pw = getpwuid(geteuid()); local 79 if(pw) { 80 home = pw->pw_dir;
|