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()
77 free(argv0); in ExecuteBinary()
99 execvp(argv0[0], const_cast<char* const*>(argv0)); in ExecuteBinary()
103 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.h47 void setArgv0(const char* argv0, bool setProcName = false);
/frameworks/base/core/jni/
DAndroidRuntime.cpp344 void AndroidRuntime::setArgv0(const char* argv0, bool setProcName) { in setArgv0() argument
348 int len = strlen(argv0); in setArgv0()
350 pthread_setname_np(pthread_self(), argv0); in setArgv0()
352 pthread_setname_np(pthread_self(), argv0 + len - 15); in setArgv0()
358 strlcpy(mArgBlockStart, argv0, mArgBlockLength); in setArgv0()