Home
last modified time | relevance | path

Searched refs:argv0 (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/libs/androidfw/
DPosixUtils.cpp70 char const** argv0 = (char const**)malloc(sizeof(char*) * (argv.size() + 1)); in ExecuteBinary() local
72 argv0[i] = argv[i].c_str(); in ExecuteBinary()
74 argv0[argv.size()] = nullptr; in ExecuteBinary()
78 free(argv0); in ExecuteBinary()
100 execvp(argv0[0], const_cast<char* const*>(argv0)); in ExecuteBinary()
104 free(argv0); in ExecuteBinary()
/frameworks/compile/libbcc/tools/bcc_strip_attr/
Dbcc_strip_attr.cpp96 static inline std::unique_ptr<Module> LoadFile(const char *argv0, in LoadFile() argument
105 Err.print(argv0, errs()); in LoadFile()
/frameworks/base/core/jni/include/android_runtime/
DAndroidRuntime.h45 void setArgv0(const char* argv0, bool setProcName = false);
/frameworks/base/core/jni/
DAndroidRuntime.cpp316 void AndroidRuntime::setArgv0(const char* argv0, bool setProcName) { in setArgv0() argument
320 int len = strlen(argv0); in setArgv0()
322 pthread_setname_np(pthread_self(), argv0); in setArgv0()
324 pthread_setname_np(pthread_self(), argv0 + len - 15); in setArgv0()
330 strlcpy(mArgBlockStart, argv0, mArgBlockLength); in setArgv0()