/device/google/cuttlefish/host/libs/config/ |
D | kernel_args.cpp | 51 auto instance = config.ForDefaultInstance(); in KernelCommandLineFromConfig() local 60 kernel_cmdline.push_back(concat("androidboot.serialno=", instance.serial_number())); in KernelCommandLineFromConfig() 86 if (config.enable_tombstone_receiver() && instance.tombstone_receiver_port()) { in KernelCommandLineFromConfig() 88 …kernel_cmdline.push_back(concat("androidboot.vsock_tombstone_port=", instance.tombstone_receiver_p… in KernelCommandLineFromConfig() 93 if (instance.config_server_port()) { in KernelCommandLineFromConfig() 94 …kernel_cmdline.push_back(concat("androidboot.cuttlefish_config_server_port=", instance.config_serv… in KernelCommandLineFromConfig() 97 if (config.tpm_binary() != "" && instance.tpm_port()) { in KernelCommandLineFromConfig() 98 kernel_cmdline.push_back(concat("androidboot.tpm_vsock_port=", instance.tpm_port())); in KernelCommandLineFromConfig() 101 if (instance.keyboard_server_port()) { in KernelCommandLineFromConfig() 102 …kernel_cmdline.push_back(concat("androidboot.vsock_keyboard_port=", instance.keyboard_server_port(… in KernelCommandLineFromConfig() [all …]
|
D | logging.cpp | 34 auto instance = config->ForDefaultInstance(); in DefaultSubprocessLogging() local 37 SetLogger(LogToFiles({instance.launcher_log_path()})); in DefaultSubprocessLogging() 39 SetLogger(LogToStderrAndFiles({instance.launcher_log_path()})); in DefaultSubprocessLogging()
|
/device/linaro/dragonboard/qcom/qrtr/src/ |
D | lookup.c | 95 static const char *diag_instance_str(unsigned int instance) in diag_instance_str() argument 97 switch (instance) { in diag_instance_str() 107 static int get_diag_instance_info(char *str, size_t size, unsigned int instance) in get_diag_instance_info() argument 110 diag_instance_base_str(instance >> 6), in get_diag_instance_info() 111 diag_instance_str(instance & 0x3f)); in get_diag_instance_info() 133 unsigned int instance; in main() local 154 case 3: pkt.server.instance = read_num_le(argv[2], &rc); in main() 198 if (!pkt.server.service && !pkt.server.instance && in main() 203 version = le32_to_cpu(pkt.server.instance) & 0xff; in main() 204 instance = le32_to_cpu(pkt.server.instance) >> 8; in main() [all …]
|
D | ns.c | 55 unsigned int instance; member 61 unsigned int instance; member 69 unsigned int instance; member 124 if (!ifilter && f->instance) in server_match() 126 return (srv->instance & ifilter) == f->instance; in server_match() 163 srv->service, srv->instance, srv->node, srv->port); in service_announce_new() 167 cmsg.server.instance = cpu_to_le32(srv->instance); in service_announce_new() 187 srv->service, srv->instance, srv->node, srv->port); in service_announce_del() 191 cmsg.server.instance = cpu_to_le32(srv->instance); in service_announce_del() 212 pkt.server.instance = cpu_to_le32(srv->instance); in lookup_notify() [all …]
|
/device/google/cuttlefish/host/commands/stop_cvd/ |
D | main.cc | 84 … const cuttlefish::CuttlefishConfig::InstanceSpecific instance) { in PathsForInstance() argument 88 instance.instance_dir(), in PathsForInstance() 89 instance.PerInstancePath("*"), in PathsForInstance() 90 instance.PerInstancePath("tombstones"), in PathsForInstance() 91 instance.PerInstancePath("tombstones/*"), in PathsForInstance() 92 instance.instance_internal_dir(), in PathsForInstance() 93 instance.PerInstanceInternalPath("*"), in PathsForInstance() 94 instance.PerInstancePath(cuttlefish::kSharedDirName), in PathsForInstance() 95 instance.PerInstancePath(cuttlefish::kSharedDirName) + "/*", in PathsForInstance() 145 bool CleanStopInstance(const cuttlefish::CuttlefishConfig::InstanceSpecific& instance) { in CleanStopInstance() argument [all …]
|
/device/linaro/dragonboard/qcom/qrtr/ |
D | qrtr.py | 24 def _lookup_list_add(self, ptr, srv, instance, node, port): argument 25 res = qrtr.Result(srv, instance, (node, port)) 28 def lookup(self, srv, instance=0, ifilter=0): argument 30 err = _qrtr.qrtr_lookup(self.sock, srv, instance, ifilter, 36 def publish(self, service, version, instance): argument 37 err = _qrtr.qrtr_publish(self.sock, service, version, instance) 40 self.service = (service, version, instance) 42 def new_server(self, service, version, instance): argument 43 err = _qrtr.qrtr_new_server(self.sock, service, version, instance) 46 self.service = (service, version, instance) [all …]
|
/device/google/cuttlefish/host/libs/vm_manager/ |
D | qemu_manager.cpp | 115 auto instance = config_->ForDefaultInstance(); in StartCommands() local 129 auto access_kregistry_size_bytes = cuttlefish::FileSize(instance.access_kregistry_path()); in StartCommands() 131 LOG(FATAL) << instance.access_kregistry_path() << " file size (" in StartCommands() 136 auto pstore_size_bytes = cuttlefish::FileSize(instance.pstore_path()); in StartCommands() 138 LOG(FATAL) << instance.pstore_path() << " file size (" in StartCommands() 145 qemu_cmd.AddParameter("guest=", instance.instance_name(), ",debug-threads=on"); in StartCommands() 167 qemu_cmd.AddParameter(instance.uuid()); in StartCommands() 200 instance.console_path(), ",server,nowait"); in StartCommands() 204 instance.kernel_log_pipe_name(), ",append=on"); in StartCommands() 218 instance.kernel_log_pipe_name(), ",append=on"); in StartCommands() [all …]
|
D | crosvm_manager.cpp | 148 auto instance = config_->ForDefaultInstance(); in StartCommands() local 172 crosvm_cmd.AddParameter("--wayland-sock=", instance.frames_socket_path()); in StartCommands() 181 for (const auto& disk : instance.virtual_disk_paths()) { in StartCommands() 187 crosvm_cmd.AddParameter("--single-touch=", instance.touch_socket_path(), in StartCommands() 189 crosvm_cmd.AddParameter("--keyboard=", instance.keyboard_socket_path()); in StartCommands() 192 auto wifi_tap = AddTapFdParameter(&crosvm_cmd, instance.wifi_tap_name()); in StartCommands() 193 AddTapFdParameter(&crosvm_cmd, instance.mobile_tap_name()); in StartCommands() 195 crosvm_cmd.AddParameter("--rw-pmem-device=", instance.access_kregistry_path()); in StartCommands() 196 crosvm_cmd.AddParameter("--pstore=path=", instance.pstore_path(), ",size=", in StartCommands() 197 cuttlefish::FileSize(instance.pstore_path())); in StartCommands() [all …]
|
/device/google/cuttlefish/host/commands/run_cvd/ |
D | launch.cc | 23 auto instance = config.ForDefaultInstance(); in GetAdbConnectorTcpArg() local 24 return std::string{"127.0.0.1:"} + std::to_string(instance.host_port()); in GetAdbConnectorTcpArg() 28 auto instance = config.ForDefaultInstance(); in GetAdbConnectorVsockArg() local 29 return std::string{"vsock:"} + std::to_string(instance.vsock_guest_cid()) + in GetAdbConnectorVsockArg() 38 auto instance = config.ForDefaultInstance(); in AdbVsockTunnelEnabled() local 39 return instance.vsock_guest_cid() > 2 && in AdbVsockTunnelEnabled() 44 auto instance = config.ForDefaultInstance(); in AdbVsockHalfTunnelEnabled() local 45 return instance.vsock_guest_cid() > 2 && in AdbVsockHalfTunnelEnabled() 87 auto instance = config.ForDefaultInstance(); in CreateStreamerServers() local 91 touch_server = cuttlefish::SharedFD::VsockServer(instance.touch_server_port(), in CreateStreamerServers() [all …]
|
D | main.cc | 164 auto instance = config.ForDefaultInstance(); in WriteCuttlefishEnvironment() local 166 instance.PerInstancePath(".") + "\"\n"; in WriteCuttlefishEnvironment() 167 config_env += "export ANDROID_SERIAL=" + instance.adb_ip_and_port() + "\n"; in WriteCuttlefishEnvironment() 175 auto instance = config.ForDefaultInstance(); in DaemonizeLauncher() local 212 auto log_path = instance.launcher_log_path(); in DaemonizeLauncher() 268 auto instance = config->ForDefaultInstance(); in PowerwashFiles() local 271 auto kernel_log_pipe = instance.kernel_log_pipe_name(); in PowerwashFiles() 274 auto console_in_pipe = instance.console_in_pipe_name(); in PowerwashFiles() 277 auto console_out_pipe = instance.console_out_pipe_name(); in PowerwashFiles() 280 auto logcat_pipe = instance.logcat_pipe_name(); in PowerwashFiles() [all …]
|
/device/linaro/dragonboard/qcom/qrtr/lib/ |
D | qrtr.c | 97 int qrtr_new_server(int sock, uint32_t service, uint16_t version, uint16_t instance) in qrtr_new_server() argument 109 pkt.server.instance = cpu_to_le32(instance << 8 | version); in qrtr_new_server() 114 int qrtr_remove_server(int sock, uint32_t service, uint16_t version, uint16_t instance) in qrtr_remove_server() argument 126 pkt.server.instance = cpu_to_le32(instance << 8 | version); in qrtr_remove_server() 133 int qrtr_publish(int sock, uint32_t service, uint16_t version, uint16_t instance) in qrtr_publish() argument 135 return qrtr_new_server(sock, service, version, instance); in qrtr_publish() 138 int qrtr_bye(int sock, uint32_t service, uint16_t version, uint16_t instance) in qrtr_bye() argument 140 return qrtr_remove_server(sock, service, version, instance); in qrtr_bye() 143 int qrtr_new_lookup(int sock, uint32_t service, uint16_t version, uint16_t instance) in qrtr_new_lookup() argument 155 pkt.server.instance = cpu_to_le32(instance << 8 | version); in qrtr_new_lookup() [all …]
|
D | libqrtr.h | 35 unsigned int instance; member 129 int qrtr_new_server(int sock, uint32_t service, uint16_t version, uint16_t instance); 130 int qrtr_remove_server(int sock, uint32_t service, uint16_t version, uint16_t instance); 132 int qrtr_publish(int sock, uint32_t service, uint16_t version, uint16_t instance); 133 int qrtr_bye(int sock, uint32_t service, uint16_t version, uint16_t instance); 135 int qrtr_new_lookup(int sock, uint32_t service, uint16_t version, uint16_t instance); 136 int qrtr_remove_lookup(int sock, uint32_t service, uint16_t version, uint16_t instance); 177 __le32 instance; member
|
/device/google/cuttlefish/host/commands/assemble_cvd/ |
D | flags.cc | 513 auto instance = tmp_config_obj.ForInstance(num); in InitializeCuttlefishConfiguration() local 517 instance.set_instance_dir(FLAGS_instance_dir + "." + std::to_string(num)); in InitializeCuttlefishConfiguration() 519 instance.set_serial_number(RandomSerialNumber("CFCVD" + std::to_string(num))); in InitializeCuttlefishConfiguration() 521 instance.set_serial_number(FLAGS_serial_number + std::to_string(num)); in InitializeCuttlefishConfiguration() 524 instance.set_mobile_bridge_name(StrForInstance("cvd-mbr-", num)); in InitializeCuttlefishConfiguration() 525 instance.set_mobile_tap_name(StrForInstance("cvd-mtap-", num)); in InitializeCuttlefishConfiguration() 527 instance.set_wifi_tap_name(StrForInstance("cvd-wtap-", num)); in InitializeCuttlefishConfiguration() 529 instance.set_vsock_guest_cid(3 + num - 1); in InitializeCuttlefishConfiguration() 531 instance.set_uuid(FLAGS_uuid); in InitializeCuttlefishConfiguration() 533 instance.set_vnc_server_port(6444 + num - 1); in InitializeCuttlefishConfiguration() [all …]
|
D | disk_flags.cc | 383 for (const auto& instance : config->Instances()) { in CreateDynamicDiskFiles() local 384 if (!cuttlefish::FileExists(instance.access_kregistry_path())) { in CreateDynamicDiskFiles() 385 CreateBlankImage(instance.access_kregistry_path(), 2 /* mb */, "none"); in CreateDynamicDiskFiles() 388 if (!cuttlefish::FileExists(instance.pstore_path())) { in CreateDynamicDiskFiles() 389 CreateBlankImage(instance.pstore_path(), 2 /* mb */, "none"); in CreateDynamicDiskFiles() 392 if (!cuttlefish::FileExists(instance.sdcard_path())) { in CreateDynamicDiskFiles() 393 CreateBlankImage(instance.sdcard_path(), in CreateDynamicDiskFiles() 426 for (auto instance : config->Instances()) { in CreateDynamicDiskFiles() local 427 auto overlay_path = instance.PerInstancePath("overlay.img"); in CreateDynamicDiskFiles() 438 CreateBlankImage(instance.access_kregistry_path(), 2 /* mb */, "none"); in CreateDynamicDiskFiles() [all …]
|
/device/google/cuttlefish/host/commands/metrics/ |
D | metrics.cc | 34 auto instance = config->ForDefaultInstance(); in main() local 35 auto metrics_log_path = instance.PerInstancePath("metrics.log"); in main() 39 cuttlefish::LogToFiles({metrics_log_path, instance.launcher_log_path()})); in main() 43 {metrics_log_path, instance.launcher_log_path()})); in main()
|
/device/google/cuttlefish/host/commands/modem_simulator/ |
D | cf_device_config.cpp | 30 auto instance = config->ForDefaultInstance(); in host_port() local 31 auto host_port = instance.host_port(); in host_port() 40 auto instance = config->ForDefaultInstance(); in PerInstancePath() local 41 return instance.PerInstancePath(file_name); in PerInstancePath()
|
D | nvram_config.cpp | 136 auto instance = ForInstance(num); in InitDefaultNvramConfig() local 137 instance.set_modem_technoloy(kDefaultModemTechnoloy); in InitDefaultNvramConfig() 138 instance.set_network_selection_mode(kDefaultNetworkSelectionMode); in InitDefaultNvramConfig() 139 instance.set_preferred_network_mode(kDefaultPreferredNetworkMode); in InitDefaultNvramConfig() 140 instance.set_emergency_mode(kDefaultEmergencyMode); in InitDefaultNvramConfig()
|
D | main.cpp | 63 auto instance = config->ForDefaultInstance(); in main() local 65 auto modem_log_path = instance.PerInstancePath("modem_simulator.log"); in main() 68 auto log_path = instance.launcher_log_path(); in main() 114 ss << instance.host_port(); in main()
|
/device/google/cuttlefish/host/commands/log_tee/ |
D | log_tee.cpp | 37 auto instance = config->ForDefaultInstance(); in main() local 41 cuttlefish::LogToFiles({instance.launcher_log_path()})); in main() 44 cuttlefish::LogToStderrAndFiles({instance.launcher_log_path()})); in main()
|
/device/google/cuttlefish/host/commands/logcat_receiver/ |
D | main.cpp | 40 auto instance = config->ForDefaultInstance(); in main() local 50 auto log_name = instance.logcat_pipe_name(); in main() 62 auto path = instance.logcat_path(); in main()
|
/device/generic/goldfish-opengl/system/vulkan/ |
D | goldfish_vulkan.cpp | 65 VkInstance* instance) { in CreateInstance() argument 69 *instance = reinterpret_cast<VkInstance>(dispatch); in CreateInstance() 73 void DestroyInstance(VkInstance instance, in DestroyInstance() argument 76 auto dispatch = reinterpret_cast<hwvulkan_dispatch_t*>(instance); in DestroyInstance() 241 PFN_vkVoidFunction GetInstanceProcAddr(VkInstance instance, in GetInstanceProcAddr() argument 655 PFN_vkVoidFunction GetInstanceProcAddr(VkInstance instance, const char* name) { in GetInstanceProcAddr() argument 661 return vkstubhal::GetInstanceProcAddr(instance, name); in GetInstanceProcAddr() 673 …return (PFN_vkVoidFunction)(goldfish_vk::goldfish_vulkan_get_instance_proc_address(instance, name)… in GetInstanceProcAddr() 740 PFN_vkVoidFunction GetInstanceProcAddr(VkInstance instance, const char* name) { in GetInstanceProcAddr() argument 742 return vkstubhal::GetInstanceProcAddr(instance, name); in GetInstanceProcAddr() [all …]
|
D | func_table.cpp | 63 VkInstance instance, in entry_vkDestroyInstance() argument 68 vkEnc->vkDestroyInstance(instance, pAllocator); in entry_vkDestroyInstance() 71 VkInstance instance, in entry_vkEnumeratePhysicalDevices() argument 79 …lt_return = resources->on_vkEnumeratePhysicalDevices(vkEnc, VK_SUCCESS, instance, pPhysicalDeviceC… in entry_vkEnumeratePhysicalDevices() 140 VkInstance instance, in entry_vkGetInstanceProcAddr() argument 146 vkGetInstanceProcAddr_PFN_vkVoidFunction_return = vkEnc->vkGetInstanceProcAddr(instance, pName); in entry_vkGetInstanceProcAddr() 1708 VkInstance instance, in entry_vkEnumeratePhysicalDeviceGroups() argument 1715 …alDeviceGroups_VkResult_return = vkEnc->vkEnumeratePhysicalDeviceGroups(instance, pPhysicalDeviceG… in entry_vkEnumeratePhysicalDeviceGroups() 2087 VkInstance instance, in entry_vkDestroySurfaceKHR() argument 2093 vkEnc->vkDestroySurfaceKHR(instance, surface, pAllocator); in entry_vkDestroySurfaceKHR() [all …]
|
/device/google/cuttlefish/guest/hals/camera/ |
D | GrallocModule.h | 27 static GrallocModule instance; in getInstance() local 28 return instance; in getInstance()
|
/device/google/cuttlefish/host/commands/kernel_log_monitor/ |
D | main.cc | 71 auto instance = config->ForDefaultInstance(); in main() local 83 auto log_name = instance.kernel_log_pipe_name(); in main() 95 monitor::KernelLogServer klog{pipe, instance.PerInstancePath("kernel.log"), in main()
|
/device/google/cuttlefish/tools/play_audio/ |
D | README.md | 3 Audio receiver for a cuttlefish instance. A binary to play audio from a remote 20 Use ssh port forwarding to forward `7444` from a running instance. Then run the
|