Searched defs:os (Results 1 - 25 of 52) sorted by path

123

/system/bt/build/toolchain/clang/
H A Dget_clang_suffix.py1 import os namespace
7 for p in os.environ["PATH"].split(os.pathsep):
8 clang_path = os.path.join(p, cmd)
9 if os.path.exists(clang_path):
/system/ca-certificates/google/
H A Dextract_from_pem.py18 import os namespace
35 file_path = os.path.join(output_dir, '%s.%d' % (base_name, i))
36 while os.path.exists(file_path):
42 file_path = os.path.join(output_dir, '%s.%d' % (base_name, i))
66 assert os.path.isdir(args.output_dir) and os.path.isfile(args.pem_file)
71 for existing_file in os.listdir(args.output_dir):
72 os.remove(os.path.join(args.output_dir, existing_file))
/system/connectivity/wifilogd/
H A Dcommand_processor.cpp128 std::unique_ptr<Os> os)
129 : current_log_buffer_(buffer_size_bytes), os_(std::move(os)) {}
127 CommandProcessor(size_t buffer_size_bytes, std::unique_ptr<Os> os) argument
H A Dmain_loop.cpp41 MainLoop::MainLoop(const std::string& socket_name, std::unique_ptr<Os> os, argument
43 : os_(std::move(os)), command_processor_(std::move(command_processor)) {
/system/connectivity/wifilogd/tests/
H A Dmain_loop_unittest.cpp126 auto os = std::make_unique<StrictMock<MockOs>>(); local
128 ON_CALL(*os, GetControlSocket(kFakeSocketName))
131 MainLoop(kFakeSocketName, std::move(os), std::move(command_processor)),
H A Dos_unittest.cpp26 #include "wifilogd/os.h"
31 inline void PrintTo(const timespec& ts, ::std::ostream* os) { argument
32 *os << "[secs:" << ts.tv_sec << " "
74 virtual void DescribeTo(::std::ostream* os) const {
75 *os << "equals ";
76 PrintTo(expected_, os);
/system/core/adb/
H A Dtest_adb.py25 import os namespace
149 linger_format = 'hh' if os.name == 'nt' else 'ii'
H A Dtest_device.py22 import os namespace
81 self.android_serial = os.getenv('ANDROID_SERIAL')
82 if 'ANDROID_SERIAL' in os.environ:
83 del os.environ['ANDROID_SERIAL']
87 os.environ['ANDROID_SERIAL'] = self.android_serial
89 if 'ANDROID_SERIAL' in os.environ:
90 del os.environ['ANDROID_SERIAL']
101 os.environ['ANDROID_SERIAL'] = 'foo'
108 os.environ['ANDROID_SERIAL'] = 'bar'
117 os
[all...]
/system/core/init/
H A Ddescriptors.cpp42 std::ostream& operator<<(std::ostream& os, const DescriptorInfo& info) { argument
43 return os << " descriptors " << info.name_ << " " << info.type_ << " " << std::oct << info.perm_;
H A Dperfboot.py47 import os namespace
54 sys.path.append(os.path.dirname(os.path.dirname(__file__)))
407 parser.add_argument('-s', '--serial', default=os.getenv('ANDROID_SERIAL'),
422 for apk in glob.glob(os.path.join(apk_dir, '*.apk')):
H A Dutil.cpp420 std::ostream& operator<<(std::ostream& os, const Timer& t) { argument
421 os << t.duration_s() << " seconds";
422 return os;
/system/core/libpixelflinger/codeflinger/
H A DMIPSAssembler.cpp1290 char *os = s; local
1308 strcpy(os, temp);
/system/core/toolbox/
H A Dgenerate-input.h-labels.py20 import os namespace
/system/extras/pagecache/
H A Dpagecache.py6 import os namespace
257 if datafile is not None and os.path.isfile(datafile):
384 if not os.path.isfile(options.trace_file):
/system/extras/simpleperf/
H A Dread_elf.cpp46 std::ostream& operator<<(std::ostream& os, const ElfStatus& status) { argument
49 os << "No error";
52 os << "File not found";
55 os << "Read failed";
58 os << "Malformed file";
61 os << "No symbol table";
64 os << "No build id";
67 os << "Build id mismatch";
70 os << "Section not found";
73 return os;
[all...]
/system/extras/simpleperf/runtest/
H A Druntest.py28 import os namespace
29 import os.path namespace
336 self._download(os.environ['OUT'] + '/system/xbin/' + perf_path, self.tmpdir)
338 self._download(os.environ['OUT'] + '/system/' + lib + '/libsimpleperf_inplace_sampler.so',
356 self._download(os.environ['OUT'] + '/system/bin/' + test_executable_name +
576 tests = load_config_file(os.path.dirname(os.path.realpath(__file__)) + \
/system/extras/simpleperf/scripts/
H A Dannotate.py23 import os namespace
24 import os.path namespace
151 index = max(file.rfind('/'), file.rfind(os.sep))
192 dso_path = os.path.join(self.symfs_dir, dso[1:])
193 if os.path.isfile(dso_path):
195 if os.path.isfile(dso):
273 if symfs_dir and not os.path.isdir(symfs_dir):
276 if kallsyms and not os.path.isfile(kallsyms):
280 if not os.path.isdir(dir):
299 if os
[all...]
H A Dapp_profiler.py26 import os namespace
27 import os.path namespace
55 if native_lib_dir and not os.path.isdir(native_lib_dir):
58 if apk_file_path and not os.path.isfile(apk_file_path):
217 for root, _, files in os.walk(self.config['native_lib_dir']):
221 path = os.path.join(root, file)
H A Dbinary_cache_builder.py24 import os namespace
25 import os.path namespace
46 if not os.path.isfile(self.perf_data_path):
50 if not os.path.isdir(symfs_dir):
55 if not os.path.isdir(self.binary_cache_dir):
56 os.makedirs(self.binary_cache_dir)
114 for root, _, files in os.walk(symfs_dir):
118 build_id = self._read_build_id(os.path.join(root, file))
124 self._copy_to_binary_cache(os.path.join(root, file),
131 target_file = target_file.replace('/', os
[all...]
H A Dpprof_proto_generator.py29 import os namespace
30 import os.path namespace
H A Dreport.py27 import os.path namespace
280 if len(sys.argv) == 2 and os.path.isfile(sys.argv[1]):
H A Dsimpleperf_report_lib.py24 import os namespace
173 libwinpthread_path = os.path.join(get_script_dir(), "libwinpthread-1.dll")
174 if os.path.exists(libwinpthread_path):
254 self.perf_data_path = os.path.join(os.path.dirname(get_script_dir()),
256 if not os.path.isfile(self.perf_data_path):
307 subprocess.check_call(['python', os.path.realpath(__file__), '--test-one'])
308 subprocess.check_call(['python3', os.path.realpath(__file__), '--test-one'])
H A Dupdate.py20 import os namespace
26 THIS_DIR = os.path.realpath(os.path.dirname(__file__))
104 if os.path.exists(install_dir):
110 if os.path.exists(install_dir):
124 install_path = os.path.join(install_dir, entry.install_path)
128 exe_stat = os.stat(name)
129 os.chmod(name, exe_stat.st_mode | stat.S_IEXEC)
132 dir = os.path.dirname(install_path)
133 if not os
[all...]
H A Dutils.py23 import os.path namespace
28 return os.path.dirname(os.path.realpath(__file__))
54 arch_dir = os.path.join(get_script_dir(), "bin", "android", arch)
55 if not os.path.isdir(arch_dir):
57 binary_path = os.path.join(arch_dir, binary_name)
58 if not os.path.isfile(binary_path):
64 dir = os.path.join(get_script_dir(), 'bin')
68 dir = os.path.join(dir, 'windows')
72 dir = os
[all...]
/system/extras/systrace_analysis/
H A Danalyze_trace.py19 import os namespace
30 this_script_path = os.path.dirname(os.path.realpath(__file__))
33 chromium_trace_path = os.path.normpath(this_script_path + '/../../../external/chromium-trace')
34 if not os.path.exists(chromium_trace_path):
38 if not os.path.exists(vinn_path):

Completed in 412 milliseconds

123