/system/bt/gd/cert/ |
D | bluetooth_packets_python3_setup.py | 27 import os 31 ANDROID_BUILD_TOP = os.getenv("ANDROID_BUILD_TOP") 32 PYBIND11_INCLUDE_DIR = os.path.join(ANDROID_BUILD_TOP, "external/python/pybind11/include") 33 GD_DIR = os.path.join(ANDROID_BUILD_TOP, "system/bt/gd") 34 BT_PACKETS_GEN_DIR = os.path.join(ANDROID_BUILD_TOP, 36 BT_PACKETS_PY3_GEN_DIR = os.path.join(ANDROID_BUILD_TOP, 40 os.path.join(GD_DIR, "l2cap/fcs.cc"), 41 os.path.join(GD_DIR, "packet/bit_inserter.cc"), 42 os.path.join(GD_DIR, "packet/byte_inserter.cc"), 43 os.path.join(GD_DIR, "packet/byte_observer.cc"), [all …]
|
/system/bt/test/ |
D | run_host_unit_tests.py | 18 import os 46 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): 72 parent_path = os.path.abspath(os.path.join(current_path, os.pardir)) 85 value = os.environ.get('ANDROID_HOST_OUT') 88 …value = get_output_from_command((os.path.join(ANDROID_BUILD_TOP, SOONG_UI_BASH), '--dumpvar-mode',… [all …]
|
D | gen_coverage.py | 21 import os 156 …f.write("<tr class='light-row'><td><pre><a href=\'" + os.path.join(test_name, "index.html") + "\'>… 181 source_file = os.path.join(os.path.join(WORKING_DIR, tests[0]['test_name']), "style.css") 182 dest_file = os.path.join(WORKING_DIR, "style.css") 186 f = open(os.path.join(WORKING_DIR, "index.html"), "w") 194 test_cmd = os.path.join(os.path.join(test_root, test_name), test_name) 195 if not os.path.isfile(test_cmd): 200 profraw_path = os.path.join(WORKING_DIR, os.path.join(test_name, profraw_file_name)) 210 if not os.path.isfile(profraw_path): 220 cmd.append(os.path.join(get_android_root_or_die(), LLVM_MERGE + " merge ")) [all …]
|
/system/apex/apexd/ |
D | apexd_test_utils.h | 106 inline void PrintTo(const ApexSessionInfo& session, std::ostream* os) { in PrintTo() argument 107 *os << "apex_session: {\n"; in PrintTo() 108 *os << " sessionId : " << session.sessionId << "\n"; in PrintTo() 109 *os << " isUnknown : " << session.isUnknown << "\n"; in PrintTo() 110 *os << " isVerified : " << session.isVerified << "\n"; in PrintTo() 111 *os << " isStaged : " << session.isStaged << "\n"; in PrintTo() 112 *os << " isActivated : " << session.isActivated << "\n"; in PrintTo() 113 *os << " isActivationFailed : " << session.isActivationFailed << "\n"; in PrintTo() 114 *os << " isSuccess : " << session.isSuccess << "\n"; in PrintTo() 115 *os << " isReverted : " << session.isReverted << "\n"; in PrintTo() [all …]
|
/system/apex/apexer/ |
D | apexer_test.py | 21 import os 38 TEST_PRIVATE_KEY = os.path.join("testdata", "com.android.example.apex.pem") 39 TEST_X509_KEY = os.path.join("testdata", "com.android.example.apex.x509.pem") 40 TEST_PK8_KEY = os.path.join("testdata", "com.android.example.apex.pk8") 41 TEST_AVB_PUBLIC_KEY = os.path.join("testdata", "com.android.example.apex.avbpubkey") 74 host_build_top = os.environ.get("ANDROID_BUILD_TOP") 76 host_command_dir = os.path.join(host_build_top, "out/soong/host/linux-x86/bin") 77 args[0] = os.path.join(host_command_dir, args[0]) 129 current_dir = os.path.dirname(os.path.realpath(__file__)) 168 if os.path.isdir(i): [all …]
|
/system/update_engine/payload_generator/ |
D | annotated_operation.cc | 31 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/ |
D | app_launch_event.h | 303 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/update_engine/ |
D | dynamic_partition_test_utils.h | 68 inline std::ostream& operator<<(std::ostream& os, const std::map<U, V>& param) { 69 os << "{"; 73 os << ", "; 74 os << pair.first << ":" << pair.second; 77 return os << "}"; 81 inline void VectorToStream(std::ostream& os, const V& param) { in VectorToStream() argument 82 os << "["; in VectorToStream() 86 os << ", "; in VectorToStream() 87 os << e; in VectorToStream() 90 os << "]"; in VectorToStream() [all …]
|
/system/extras/simpleperf/scripts/ |
D | binary_cache_builder.py | 24 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)) 112 self._copy_to_binary_cache(os.path.join(root, filename), 120 target_file = target_file.replace('/', os.sep) 121 target_file = os.path.join(self.binary_cache_dir, target_file) 125 target_dir = os.path.dirname(target_file) [all …]
|
D | update.py | 20 import os 25 THIS_DIR = os.path.realpath(os.path.dirname(__file__)) 135 if os.path.exists(install_dir): 141 if os.path.exists(install_dir): 155 install_path = os.path.join(install_dir, entry.install_path) 159 name = os.path.basename(name) 160 exe_stat = os.stat(name) 161 os.chmod(name, exe_stat.st_mode | stat.S_IEXEC) 164 dirname = os.path.dirname(install_path) 165 if not os.path.isdir(dirname): [all …]
|
/system/timezone/distro/tools/ |
D | create-distro.py | 22 import os 27 sys.path.append('%s/external/icu/tools' % os.environ.get('ANDROID_BUILD_TOP')) 30 sys.path.append('%s/system/timezone' % os.environ.get('ANDROID_BUILD_TOP')) 35 timezone_dir = os.path.realpath('%s/system/timezone' % android_build_top) 50 original_cwd = os.getcwd() 53 working_dir = os.getcwd() 69 os.chdir(original_cwd) 93 tzdata_file = os.path.abspath(args.tzdata) 94 icu_file = os.path.abspath(args.icu) 95 tzlookup_file = os.path.abspath(args.tzlookup) [all …]
|
/system/bt/include/hardware/avrcp/ |
D | avrcp_logging_helper.h | 50 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/bt/tools/scripts/ |
D | dump_metrics_ascii.py | 18 import os 31 if 'PROTOC' in os.environ and os.path.exists(os.environ['PROTOC']): 32 protoc = os.environ['PROTOC'] 43 if not os.path.exists(proto_path): 47 if not os.path.exists(output_dir): 48 os.mkdirs(output_dir) 49 elif not os.path.isdir(output_dir): 52 input_dir = os.path.dirname(proto_path) 53 output_filename = os.path.basename(proto_path).replace('.proto', '_pb2.py') 54 output_path = os.path.join(output_dir, output_filename) [all …]
|
D | yapf_checker.py | 18 import os 37 if COMMIT_ID_ENV_KEY not in os.environ: 41 if ANDROID_BUILD_TOP_KEY not in os.environ: 46 commit_id = os.environ[COMMIT_ID_ENV_KEY] 49 full_files = [os.path.abspath(f) for f in files if f.endswith('.py')] 54 yapf_dir = os.path.join(os.environ[ANDROID_BUILD_TOP_KEY], DEFAULT_YAPF_DIR) 55 yapf_binary = os.path.join(yapf_dir, 'yapf') 60 environment = os.environ.copy()
|
/system/timezone/debug_tools/host/ |
D | dump-tzdata.py | 22 import os 26 sys.path.append('%s/external/icu/tools' % os.environ.get('ANDROID_BUILD_TOP')) 29 sys.path.append('%s/system/timezone' % os.environ.get('ANDROID_BUILD_TOP')) 35 timezone_dir = os.path.realpath('%s/system/timezone' % android_build_top) 40 debug_tools_dir = os.path.realpath('%s/system/timezone/debug_tools/host' % android_build_top) 59 if not os.path.isfile(file): 76 if not os.path.exists(output_dir): 78 os.mkdir(output_dir) 89 if not os.path.exists(csvs_dir): 90 os.mkdir(csvs_dir)
|
D | visualize_zone_trees.py | 23 import os 27 sys.path.append('%s/external/icu/tools' % os.environ.get('ANDROID_BUILD_TOP')) 30 sys.path.append('%s/system/timezone' % os.environ.get('ANDROID_BUILD_TOP')) 36 timezone_dir = os.path.realpath('%s/system/timezone' % android_build_top) 41 debug_tools_dir = os.path.realpath('%s/system/timezone/debug_tools/host' % android_build_top) 59 if not os.path.isfile(file): 79 if not os.path.exists(output_dir): 81 os.mkdir(output_dir)
|
/system/bt/gd/common/ |
D | bidi_queue.h | 28 class BidiQueueEnd : public ::bluetooth::os::IQueueEnqueue<TENQUEUE>, public ::bluetooth::os::IQueu… 33 …BidiQueueEnd(::bluetooth::os::IQueueEnqueue<TENQUEUE>* tx, ::bluetooth::os::IQueueDequeue<TDEQUEUE… in BidiQueueEnd() 36 void RegisterEnqueue(::bluetooth::os::Handler* handler, EnqueueCallback callback) override { in RegisterEnqueue() 44 void RegisterDequeue(::bluetooth::os::Handler* handler, DequeueCallback callback) override { in RegisterDequeue() 57 ::bluetooth::os::IQueueEnqueue<TENQUEUE>* tx_; 58 ::bluetooth::os::IQueueDequeue<TDEQUEUE>* rx_; 79 ::bluetooth::os::Queue<TUP> up_queue_; 80 ::bluetooth::os::Queue<TDOWN> down_queue_;
|
/system/libvintf/include/vintf/ |
D | parse_string.h | 31 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/ca-certificates/google/ |
D | extract_from_pem.py | 18 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/bt/gd/ |
D | setup.py | 19 import os 41 completed_process = subprocess.run(cmd, cwd=os.getcwd()) 46 acts_framework_dir = os.path.abspath('acts_framework') 47 acts_setup_bin = os.path.join(acts_framework_dir, 'setup.py') 54 if os.path.basename(file) in host_executables: 55 current_mode = os.stat(file).st_mode 57 os.chmod(file, new_mode) 87 our_dir = os.path.dirname(__file__) 90 os.chdir(our_dir)
|
/system/bt/gd/l2cap/classic/internal/ |
D | signalling_manager_test.cc | 38 static void SyncHandler(os::Handler* handler) { in SyncHandler() 47 thread_ = new os::Thread("test_thread", os::Thread::Priority::NORMAL); in SetUp() 48 l2cap_handler_ = new os::Handler(thread_); in SetUp() 57 os::Thread* thread_ = nullptr; 58 os::Handler* l2cap_handler_ = nullptr;
|
/system/extras/verity/fec/tests/ |
D | fec.py | 16 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/timezone/ |
D | tzdatautil.py | 17 import os 25 for filename in os.listdir(dir_name): 39 old_cwd = os.getcwd() 40 os.chdir(android_build_top) 42 os.chdir(old_cwd)
|
/system/nfc/src/gki/ulinux/ |
D | gki_ulinux.cc | 91 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() 130 p_os = &gki_cb.os; in GKI_init() 208 pthread_mutex_init(&gki_cb.os.thread_evt_mutex[task_id], nullptr); in GKI_create_task() 209 pthread_cond_init(&gki_cb.os.thread_evt_cond[task_id], &attr); in GKI_create_task() 210 pthread_mutex_init(&gki_cb.os.thread_timeout_mutex[task_id], nullptr); in GKI_create_task() 211 pthread_cond_init(&gki_cb.os.thread_timeout_cond[task_id], &attr); in GKI_create_task() 235 ret = pthread_create(&gki_cb.os.thread_id[task_id], &attr1, gki_task_entry, in GKI_create_task() 244 if (pthread_getschedparam(gki_cb.os.thread_id[task_id], &policy, ¶m) == in GKI_create_task() [all …]
|
/system/libvintf/ |
D | parse_string.cpp | 48 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) { 105 return os << kctv.mStringValue; 107 return os << to_string(kctv.mIntegerValue); 109 return os << to_string(kctv.mRangeValue.first) << "-" [all …]
|