Home
last modified time | relevance | path

Searched refs:os (Results 1 – 25 of 283) sorted by relevance

12345678910>>...12

/system/bt/test/
Drun_host_unit_tests.py18 import os
45 if not os.path.isdir(dir):
61 value = os.environ.get('ANDROID_BUILD_TOP')
64 current_path = os.path.abspath(os.getcwd())
65 while current_path and os.path.isdir(current_path):
66 soong_ui_bash_path = os.path.join(current_path, SOONG_UI_BASH)
67 if os.path.isfile(soong_ui_bash_path):
75 parent_path = os.path.abspath(os.path.join(current_path, os.pardir))
88 value = os.environ.get('ANDROID_HOST_OUT')
91 value = get_output_from_command((os.path.join(ANDROID_BUILD_TOP,
[all …]
Dgen_coverage.py21 import os
153 os.path.join(test_name, "index.html") + "\'>" + test_name +
178 source_file = os.path.join(os.path.join(WORKING_DIR, tests[0]['test_name']), "style.css")
179 dest_file = os.path.join(WORKING_DIR, "style.css")
183 f = open(os.path.join(WORKING_DIR, "index.html"), "w")
191 test_cmd = os.path.join(os.path.join(test_root, test_name), test_name)
192 if not os.path.isfile(test_cmd):
197 profraw_path = os.path.join(WORKING_DIR, os.path.join(test_name, profraw_file_name))
207 if not os.path.isfile(profraw_path):
216 cmd.append(os.path.join(get_android_root_or_die(), LLVM_MERGE + " merge "))
[all …]
/system/update_engine/payload_generator/
Dannotated_operation.cc31 void OutputExtents(std::ostream* os, in OutputExtents() argument
34 *os << " (" << extent.start_block() << ", " << extent.num_blocks() << ")"; in OutputExtents()
53 std::ostream& operator<<(std::ostream& os, const AnnotatedOperation& aop) { in operator <<() argument
58 os << InstallOperationTypeName(aop.op.type()) << " " << aop.op.data_length(); in operator <<()
60 os << " @" << aop.op.data_offset(); in operator <<()
62 os << std::endl << " name: " << aop.name; in operator <<()
65 os << std::endl << " src:"; in operator <<()
66 OutputExtents(&os, aop.op.src_extents()); in operator <<()
69 os << std::endl << " dst:"; in operator <<()
70 OutputExtents(&os, aop.op.dst_extents()); in operator <<()
[all …]
/system/iorap/include/binder/
Dapp_launch_event.h303 inline std::ostream& operator<<(std::ostream& os, const AppLaunchEvent::Type& type) {
306 os << "kUninitialized";
309 os << "kIntentStarted";
312 os << "kIntentFailed";
315 os << "kActivityLaunched";
318 os << "kActivityLaunchCancelled";
321 os << "kActivityLaunchFinished";
324 os << "(unknown)";
326 return os;
329 inline std::ostream& operator<<(std::ostream& os, const AppLaunchEvent::Temperature& type) {
[all …]
/system/extras/simpleperf/scripts/
Dbinary_cache_builder.py24 import os
25 import os.path
41 if not os.path.isdir(self.binary_cache_dir):
42 os.makedirs(self.binary_cache_dir)
103 for root, _, files in os.walk(symfs_dir):
108 build_id = self._read_build_id(os.path.join(root, filename))
114 self._copy_to_binary_cache(os.path.join(root, filename),
122 target_file = target_file.replace('/', os.sep)
123 target_file = os.path.join(self.binary_cache_dir, target_file)
127 target_dir = os.path.dirname(target_file)
[all …]
Dupdate.py20 import os
26 THIS_DIR = os.path.realpath(os.path.dirname(__file__))
120 if os.path.exists(install_dir):
126 if os.path.exists(install_dir):
140 install_path = os.path.join(install_dir, entry.install_path)
144 exe_stat = os.stat(name)
145 os.chmod(name, exe_stat.st_mode | stat.S_IEXEC)
148 dirname = os.path.dirname(install_path)
149 if not os.path.isdir(dirname):
150 os.makedirs(dirname)
[all …]
Dutils.py24 import os
25 import os.path
33 return os.path.dirname(os.path.realpath(__file__))
90 arch_dir = os.path.join(get_script_dir(), "bin", "android", arch)
91 if not os.path.isdir(arch_dir):
93 binary_path = os.path.join(arch_dir, binary_name)
94 if not os.path.isfile(binary_path):
100 dirname = os.path.join(get_script_dir(), 'bin')
106 dirname = os.path.join(dirname, 'windows')
110 dirname = os.path.join(dirname, 'darwin')
[all …]
/system/bt/include/hardware/avrcp/
Davrcp_logging_helper.h50 inline std::ostream& operator<<(std::ostream& os, const CType& type) {
51 return os << CTypeText(type);
65 inline std::ostream& operator<<(std::ostream& os, const Opcode& opcode) {
66 return os << OpcodeText(opcode);
84 inline std::ostream& operator<<(std::ostream& os, const CommandPdu& pdu) {
85 return os << CommandPduText(pdu);
96 inline std::ostream& operator<<(std::ostream& os, const PacketType& type) {
97 return os << PacketTypeText(type);
109 inline std::ostream& operator<<(std::ostream& os, const Capability& cap) {
110 return os << CapabilityText(cap);
[all …]
/system/apex/apexer/
Dapexer.py27 import os
74 apexer_path_in_environ = "APEXER_TOOL_PATH" in os.environ
76 … default=os.environ['APEXER_TOOL_PATH'].split(":") if apexer_path_in_environ else None,
87 binary_path = os.path.join(path, binary)
88 if os.path.exists(binary_path):
94 env.update(os.environ.copy())
113 for dirpath, _, filenames in os.walk(dir_name):
114 size += RoundUp(os.path.getsize(dirpath), BLOCK_SIZE)
116 size += RoundUp(os.path.getsize(os.path.join(dirpath, f)), BLOCK_SIZE)
121 for root, dirs, files in os.walk(dir_name):
[all …]
/system/bt/tools/scripts/
Ddump_metrics_ascii.py18 import os
30 if 'PROTOC' in os.environ and os.path.exists(os.environ['PROTOC']):
31 protoc = os.environ['PROTOC']
44 if not os.path.exists(proto_path):
48 if not os.path.exists(output_dir):
49 os.mkdirs(output_dir)
50 elif not os.path.isdir(output_dir):
54 input_dir = os.path.dirname(proto_path)
55 output_filename = os.path.basename(proto_path).replace('.proto', '_pb2.py')
56 output_path = os.path.join(output_dir, output_filename)
[all …]
/system/libvintf/include/vintf/
Dparse_string.h31 std::ostream &operator<<(std::ostream &os, HalFormat hf);
32 std::ostream &operator<<(std::ostream &os, Transport tr);
33 std::ostream &operator<<(std::ostream &os, Arch ar);
34 std::ostream &operator<<(std::ostream &os, KernelConfigType il);
35 std::ostream &operator<<(std::ostream &os, Tristate tr);
36 std::ostream &operator<<(std::ostream &os, SchemaType ksv);
37 std::ostream& operator<<(std::ostream& os, XmlSchemaFormat f);
38 std::ostream& operator<<(std::ostream& os, Level l);
39 std::ostream& operator<<(std::ostream& os, KernelSepolicyVersion v);
40 std::ostream &operator<<(std::ostream &os, const ManifestHal &hal);
[all …]
/system/timezone/distro/tools/
Dcreate-distro.py22 import os
27 sys.path.append('%s/external/icu/tools' % os.environ.get('ANDROID_BUILD_TOP'))
33 timezone_dir = os.path.realpath('%s/system/timezone' % android_build_top)
57 original_cwd = os.getcwd()
60 working_dir = os.getcwd()
75 os.chdir(original_cwd)
97 tzdata_file = os.path.abspath(args.tzdata)
98 icu_file = os.path.abspath(args.icu)
99 tzlookup_file = os.path.abspath(args.tzlookup)
100 output_distro_dir = os.path.abspath(args.output_distro_dir)
[all …]
/system/ca-certificates/google/
Dextract_from_pem.py18 import os
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/apex/apexd/
Dapexd_test_utils.h114 inline void PrintTo(const ApexSessionInfo& session, std::ostream* os) { in PrintTo() argument
115 *os << "apex_session: {\n"; in PrintTo()
116 *os << " sessionId : " << session.sessionId << "\n"; in PrintTo()
117 *os << " isUnknown : " << session.isUnknown << "\n"; in PrintTo()
118 *os << " isVerified : " << session.isVerified << "\n"; in PrintTo()
119 *os << " isStaged : " << session.isStaged << "\n"; in PrintTo()
120 *os << " isActivated : " << session.isActivated << "\n"; in PrintTo()
121 *os << " isActivationFailed : " << session.isActivationFailed << "\n"; in PrintTo()
122 *os << " isSuccess : " << session.isSuccess << "\n"; in PrintTo()
123 *os << " isRolledBack : " << session.isRolledBack << "\n"; in PrintTo()
[all …]
/system/extras/verity/fec/tests/
Dfec.py16 import os
28 f = os.open(image, os.O_WRONLY)
29 os.lseek(f, offset, os.SEEK_SET)
30 os.write(f, os.urandom(length))
31 os.close(f)
34 size = os.stat(image).st_size
/system/nfc/src/gki/ulinux/
Dgki_ulinux.cc91 p_pthread_info->task_id, gki_cb.os.thread_id[p_pthread_info->task_id], in gki_task_entry()
94 gki_cb.os.thread_id[p_pthread_info->task_id] = thread_id; in gki_task_entry()
100 gki_cb.os.thread_id[p_pthread_info->task_id] = 0; in gki_task_entry()
132 p_os = &gki_cb.os; in GKI_init()
210 pthread_mutex_init(&gki_cb.os.thread_evt_mutex[task_id], nullptr); in GKI_create_task()
211 pthread_cond_init(&gki_cb.os.thread_evt_cond[task_id], &attr); in GKI_create_task()
212 pthread_mutex_init(&gki_cb.os.thread_timeout_mutex[task_id], nullptr); in GKI_create_task()
213 pthread_cond_init(&gki_cb.os.thread_timeout_cond[task_id], &attr); in GKI_create_task()
237 ret = pthread_create(&gki_cb.os.thread_id[task_id], &attr1, gki_task_entry, in GKI_create_task()
246 if (pthread_getschedparam(gki_cb.os.thread_id[task_id], &policy, &param) == in GKI_create_task()
[all …]
/system/libvintf/
Dparse_string.cpp48 std::ostream &operator<<(std::ostream &os, const std::vector<T> objs) { in operator <<() argument
52 os << ","; in operator <<()
54 os << v; in operator <<()
57 return os; in operator <<()
90 std::ostream &operator<<(std::ostream &os, ENUM hf) { \
91 return os << g##ENUM##Strings.at(static_cast<size_t>(hf)); \
102 std::ostream &operator<<(std::ostream &os, const KernelConfigTypedValue &kctv) { in operator <<() argument
105 return os << kctv.mStringValue; in operator <<()
107 return os << to_string(kctv.mIntegerValue); in operator <<()
109 return os << to_string(kctv.mRangeValue.first) << "-" in operator <<()
[all …]
/system/core/fs_mgr/libfs_avb/
Dtypes.cpp42 std::ostream& operator<<(std::ostream& os, VBMetaVerifyResult result) { in operator <<() argument
43 os << VBMetaVerifyResultToString(result); in operator <<()
44 return os; in operator <<()
69 std::ostream& operator<<(std::ostream& os, AvbHandleStatus status) { in operator <<() argument
70 os << AvbHandleStatusToString(status); in operator <<()
71 return os; in operator <<()
/system/extras/systrace_analysis/
Danalyze_trace.py19 import os
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):
/system/sepolicy/build/
Dfile_utils.py18 import os
25 if os.path.exists(file_path):
28 parent_dir = os.path.dirname(file_path)
29 if parent_dir and not os.path.exists(parent_dir):
30 os.makedirs(parent_dir)
/system/timezone/
Ddownload-iana-data.py22 import os
27 sys.path.append('%s/external/icu/tools' % os.environ.get('ANDROID_BUILD_TOP'))
33 iana_data_dir = os.path.realpath('%s/system/timezone/input_data/iana' % android_build_top)
85 local_iana_tar_filename = os.path.basename(local_iana_tar_file)
109 os.remove(local_iana_tar_file)
112 if os.path.exists(local_signature_file):
113 os.remove(local_signature_file)
Dupdate-tzdata.py22 import os
29 sys.path.append('%s/external/icu/tools' % os.environ.get('ANDROID_BUILD_TOP'))
37 timezone_dir = os.path.realpath('%s/system/timezone' % android_build_top)
42 zone_compactor_dir = os.path.realpath('%s/system/timezone/zone_compactor' % android_build_top)
45 timezone_input_tools_dir = os.path.realpath('%s/input_tools' % timezone_dir)
46 timezone_input_data_dir = os.path.realpath('%s/input_data' % timezone_dir)
62 if not os.path.exists(zic_input_file):
112 iana_tar_filename = os.path.basename(iana_tar_file)
119 if not os.path.exists(dir):
120 os.mkdir(dir)
[all …]
/system/core/fastboot/fuzzy_fastboot/
Dextensions.h60 friend ::std::ostream& operator<<(::std::ostream& os, const GetVar& self) {
61 return os << "<regex='" << self.regex_str << "' line_num=" << self.line_num << ">";
72 friend ::std::ostream& operator<<(::std::ostream& os, const PartitionInfo& pinfo) {
73 return os << "<hashable=" << pinfo.hashable << " slots=" << pinfo.slots
84 friend ::std::ostream& operator<<(::std::ostream& os, const PackedInfoTest& pinfo) {
85 return os << "<"
110 friend ::std::ostream& operator<<(::std::ostream& os, const CommandTest& self) {
111 return os << "test: " << self.name << " (line: " << self.line_num << ")";
/system/bt/build/toolchain/clang/
Dget_clang_suffix.py1 import os
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/tools/aidl/tests/
Dtest_data_string_constants.cpp52 private static final java.lang.String DESCRIPTOR = "android.os.IStringConstants";
169 IMPLEMENT_META_INTERFACE(StringConstants, "android.os.IStringConstants")
254 private static final java.lang.String DESCRIPTOR = "android.os.IStringConstants";
398 IMPLEMENT_META_INTERFACE(StringConstants, "android.os.IStringConstants")

12345678910>>...12