/external/libchrome/base/process/ |
process.h | 10 #include "base/process/process_handle.h" 20 // Provides a move-only encapsulation of a process. 22 // This object is not tied to the lifetime of the underlying process: the 23 // process may be killed and this object may still around, and it will still 26 // Windows: The underlying ProcessHandle will be valid after the process dies 27 // and can be used to gather some information about that process, but most 31 // the process dies, and it may be reused by the system, which means that it may 32 // end up pointing to the wrong process. 33 class BASE_EXPORT Process { 35 explicit Process(ProcessHandle handle = kNullProcessHandle) [all...] |
process_posix.cc | 5 #include "base/process/process.h" 15 #include "base/process/kill.h" 31 // than |wait| for the process to exit. The child process may 37 // When a child process terminates a SIGCHLD signal is sent to the parent. 41 // Our strategy is to call waitpid() once up front to check if the process 63 // If the process hasn't exited yet, then sleep and try again. 71 // Sleep for a bit while we wait for the process to finish. 114 // If the process wasn't found, it must be dead [all...] |
kill.cc | 5 #include "base/process/kill.h" 7 #include "base/process/process_iterator.h" 17 Process process = Process::Open(entry->pid()); local 18 result &= process.Terminate(exit_code, true);
|
/frameworks/base/core/tests/coretests/src/android/os/ |
ProcessTest.java | 20 import android.os.Process; 32 assertEquals(android.os.Process.SYSTEM_UID, Process.getUidForName("system")); 33 assertEquals(Process.BLUETOOTH_UID, Process.getUidForName("bluetooth")); 34 assertEquals(Process.FIRST_APPLICATION_UID, Process.getUidForName("u0_a0")); 35 assertEquals(UserHandle.getUid(1, Process.SYSTEM_UID), Process.getUidForName("u1_system")); 36 assertEquals(UserHandle.getUid(2, Process.FIRST_ISOLATED_UID) [all...] |
BinderThreadPriorityTest.java | 78 mSavedPriority = Process.getThreadPriority(Process.myTid()); 79 Process.setThreadPriority(mSavedPriority); // To realign priority & cgroup, if needed 88 Process.setThreadPriority(Process.THREAD_PRIORITY_BACKGROUND); 89 Process.setThreadPriority(mSavedPriority); 90 assertEquals(mSavedPriority, Process.getThreadPriority(Process.myTid())); 98 String fn = "/proc/" + Process.myPid() + "/task/" + Process.myTid() + "/cgroup" [all...] |
/external/deqp/framework/delibs/decpp/ |
deProcess.cpp | 31 Process::Process (void) 38 Process::~Process (void) 43 void Process::start (const char* commandLine, const char* workingDirectory) 49 void Process::waitForFinish (void) 55 void Process::terminate (void) 61 void Process::kill (void) 67 void Process::closeStdIn (void) 73 void Process::closeStdOut (void [all...] |
deProcess.hpp | 41 class Process 44 Process (void); 45 ~Process (void); 65 Process (const Process& other); 66 Process& operator= (const Process& other);
|
/frameworks/base/services/core/java/com/android/server/os/ |
SchedulingPolicyService.java | 22 import android.os.Process; 53 prio > PRIORITY_MAX || Process.getThreadGroupLeader(tid) != pid) { 56 if (Binder.getCallingUid() != Process.BLUETOOTH_UID) { 59 Process.setThreadGroup(tid, !isForApp ? 60 Process.THREAD_GROUP_AUDIO_SYS : Process.THREAD_GROUP_AUDIO_APP); 68 Process.setThreadScheduler(tid, Process.SCHED_FIFO | Process.SCHED_RESET_ON_FORK, 79 if (Binder.getCallingPid() == Process.myPid()) [all...] |
/prebuilts/ndk/r13/sources/third_party/shaderc/third_party/spirv-tools/source/opt/ |
passes.h | 37 // A pass. All analysis and transformation is done via the Process() method. 44 virtual bool Process(ir::Module* module) = 0; 50 bool Process(ir::Module*) override { return false; } 58 bool Process(ir::Module* module) override;
|
/cts/tests/tests/os/src/android/os/cts/ |
ProcessTest.java | 24 import android.os.Process; 105 int myTid = Process.myTid(); 107 int priority = Process.getThreadPriority(myTid); 109 && priority <= Process.THREAD_PRIORITY_LOWEST); 111 Process.setThreadPriority(Process.THREAD_PRIORITY_AUDIO); 112 assertEquals(Process.THREAD_PRIORITY_AUDIO, Process.getThreadPriority(myTid)); 114 Process.setThreadPriority(myTid, Process.THREAD_PRIORITY_LOWEST) [all...] |
CtsRemoteService.java | 22 import android.os.Process; 29 android.util.Log.d("Process test stub", "CtsRemoteServiceProcessPid:" + Process.myPid()); 34 return Process.myPid(); 38 return Process.getElapsedCpuTime();
|
/cts/tests/tests/permission2/src/android/permission2/cts/ |
PermissionMaxSdkVersionTest.java | 20 import android.os.Process; 40 Process.myPid(), Process.myUid()); 53 Process.myPid(), Process.myUid());
|
/frameworks/base/core/java/com/android/internal/os/ |
KernelWakelockReader.java | 18 import android.os.Process; 36 Process.PROC_TAB_TERM|Process.PROC_OUT_STRING| // 0: name 37 Process.PROC_QUOTES, 38 Process.PROC_TAB_TERM|Process.PROC_OUT_LONG, // 1: count 39 Process.PROC_TAB_TERM, 40 Process.PROC_TAB_TERM, 41 Process.PROC_TAB_TERM, 42 Process.PROC_TAB_TERM|Process.PROC_OUT_LONG, // 5: totalTim [all...] |
/cts/tests/app/app/src/android/app/stubs/ |
StubRemoteService.java | 22 import android.os.Process; 29 android.util.Log.d("Process test stub", "StubRemoteServiceProcessPid:" + Process.myPid()); 34 return Process.myPid(); 38 return Process.getElapsedCpuTime();
|
/external/libchrome/base/test/ |
multiprocess_test.h | 11 #include "base/process/launch.h" 12 #include "base/process/process.h" 35 // // Start a child process and run |a_test_func|. 36 // base::Process test_child_process = 40 // // Do stuff involving |test_child_process| and the child process.... 51 // // Code here runs in a child process.... 55 // Spawns a child process and executes the function |procname| declared using 60 Process SpawnMultiProcessTestChild( 66 // may add any flags needed for your child process [all...] |
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/ |
PriorityThreadFactory.java | 19 import android.os.Process; 34 * For values, see {@link Process}. 44 Process.setThreadPriority(mPriority);
|
/cts/tests/tests/tv/src/android/media/tv/cts/ |
FaultyTvInputService.java | 21 import android.os.Process; 48 Process.killProcess(Process.myPid()); 71 Process.killProcess(Process.myPid());
|
/external/llvm/unittests/Support/ |
ProcessTest.cpp | 10 #include "llvm/Support/Process.h" 23 const unsigned r1 = Process::GetRandomNumber(); 24 const unsigned r2 = Process::GetRandomNumber(); 36 Optional<std::string> val(Process::GetEnv("__LLVM_TEST_ENVIRON_VAR__")); 43 Process::GetEnv("__LLVM_TEST_ENVIRON_NO_SUCH_VAR__")); 51 Optional<std::string> val(Process::GetEnv("__LLVM_TEST_ENVIRON_VAR__"));
|
/frameworks/base/services/core/java/com/android/server/ |
UiThread.java | 21 import android.os.Process; 35 super("android.ui", Process.THREAD_PRIORITY_FOREGROUND, false /*allowIo*/); 41 Process.setThreadGroup(Process.myTid(), Process.THREAD_GROUP_TOP_APP);
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
RemoteSubActivityScreen.java | 23 import android.os.Process; 35 // We are running in a remote process, so want to have the sub-activity 36 // sending the result back in the original process. 43 //Log.i("foo", "RemoteSubActivityScreen pid=" + Process.myPid() 47 // After finishing initialization, kill the process! But only if 53 Process.killProcess(Process.myPid());
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
SysuiRestartReceiver.java | 21 import android.os.Process; 34 Process.killProcess(Process.myPid());
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
ClipDataJobTest.java | 25 import android.os.Process; 67 getContext().checkUriPermission(mFirstUri, Process.myPid(), 68 Process.myUid(), Intent.FLAG_GRANT_READ_URI_PERMISSION)); 70 getContext().checkUriPermission(mFirstUri, Process.myPid(), 71 Process.myUid(), Intent.FLAG_GRANT_WRITE_URI_PERMISSION)); 82 getContext().checkUriPermission(mFirstUri, Process.myPid(), 83 Process.myUid(), Intent.FLAG_GRANT_READ_URI_PERMISSION)); 85 getContext().checkUriPermission(mFirstUri, Process.myPid(), 86 Process.myUid(), Intent.FLAG_GRANT_WRITE_URI_PERMISSION)); 125 getContext().checkUriPermission(mFirstUri, Process.myPid() [all...] |
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Rsa2048Sha256Sign/ |
Rsa2048Sha256GenerateKeys.py | 74 Process = subprocess.Popen('%s version' % (OpenSslCommand), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
79 Version = Process.communicate()
80 if Process.returncode <> 0:
82 sys.exit(Process.returncode)
101 Process = subprocess.Popen('%s genrsa -out %s 2048' % (OpenSslCommand, Item.name), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
102 Process.communicate()
103 if Process.returncode <> 0:
105 sys.exit(Process.returncode)
123 Process = subprocess.Popen('%s rsa -in %s -modulus -noout' % (OpenSslCommand, Item), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
124 PublicKeyHexString = Process.communicate()[0].split('=')[1].strip() [all...] |
/frameworks/base/core/java/android/os/ |
UserHandle.java | 48 * user, but if this is calling from a user process then we will send it 53 * user, but if this is calling from a user process then we will send it 118 return appId >= Process.FIRST_ISOLATED_UID && appId <= Process.LAST_ISOLATED_UID; 128 return appId >= Process.FIRST_APPLICATION_UID && appId <= Process.LAST_APPLICATION_UID; 192 return getUid(userId, Process.SHARED_USER_GID); 200 return Process.FIRST_SHARED_APPLICATION_GID + (id % PER_USER_RANGE) 201 - Process.FIRST_APPLICATION_UID; 209 final int appId = getAppId(gid) + Process.FIRST_APPLICATION_UI [all...] |
/external/libchrome/sandbox/linux/services/ |
namespace_sandbox.h | 15 #include "base/process/launch.h" 16 #include "base/process/process.h" 21 // Helper class for starting a process inside a new user, PID, and network 25 // A typical use for "A" launching a sandboxed process "B" would be: 26 // 1. A sets up a command line and launch options for process B. 53 // Launch a new process inside its own user/PID/network namespaces (depending 60 static base::Process LaunchProcess(const base::CommandLine& cmdline, 62 static base::Process LaunchProcess(const std::vector<std::string>& argv, 67 static base::Process LaunchProcessWithOptions [all...] |