Lines Matching refs:string

533 std::pair<uint16_t, uint16_t> ParsePortRange(const std::string& flag) {  in ParsePortRange()
546 std::string StrForInstance(const std::string& prefix, int num) { in StrForInstance()
552 Result<std::string> GetAndroidInfoConfig( in GetAndroidInfoConfig()
553 const std::string& android_info_file_path, const std::string& key) { in GetAndroidInfoConfig()
556 std::string android_info_contents = ReadFile(android_info_file_path); in GetAndroidInfoConfig()
580 std::vector<std::string> boot_image = in ReadGuestConfig()
582 std::vector<std::string> kernel_path = in ReadGuestConfig()
584 std::vector<std::string> system_image_dir = in ReadGuestConfig()
586 std::string kernel_image_path = ""; in ReadGuestConfig()
587 std::string cur_boot_image; in ReadGuestConfig()
588 std::string cur_kernel_path; in ReadGuestConfig()
590 std::string current_path = StringFromEnv("PATH", ""); in ReadGuestConfig()
591 std::string bin_folder = DefaultHostArtifactsPath("bin"); in ReadGuestConfig()
592 std::string new_path = "PATH="; in ReadGuestConfig()
623 std::string ikconfig_path = in ReadGuestConfig()
634 std::string config = ReadFile(ikconfig_path); in ReadGuestConfig()
641 if (config.find("\nCONFIG_ARM=y") != std::string::npos) { in ReadGuestConfig()
643 } else if (config.find("\nCONFIG_ARM64=y") != std::string::npos) { in ReadGuestConfig()
645 } else if (config.find("\nCONFIG_ARCH_RV64I=y") != std::string::npos) { in ReadGuestConfig()
647 } else if (config.find("\nCONFIG_X86_64=y") != std::string::npos) { in ReadGuestConfig()
649 } else if (config.find("\nCONFIG_X86=y") != std::string::npos) { in ReadGuestConfig()
655 config.find("\nCONFIG_BOOT_CONFIG=y") != std::string::npos; in ReadGuestConfig()
661 (config.find("\nCONFIG_CRYPTO_HCTR2=y") != std::string::npos) && in ReadGuestConfig()
669 std::string instance_android_info_txt; in ReadGuestConfig()
699 Result<ProtoType> ParseTextProtoFlagHelper(const std::string& flag_value, in ParseTextProtoFlagHelper()
700 const std::string& flag_name) { in ParseTextProtoFlagHelper()
709 Result<ProtoType> ParseBinProtoFlagHelper(const std::string& flag_value, in ParseBinProtoFlagHelper()
710 const std::string& flag_name) { in ParseBinProtoFlagHelper()
714 std::string serialized = std::string(output.begin(), output.end()); in ParseBinProtoFlagHelper()
757 Result<std::unordered_map<int, std::string>> CreateNumToWebrtcDeviceIdMap( in CreateNumToWebrtcDeviceIdMap()
760 const std::string& webrtc_device_id_flag) { in CreateNumToWebrtcDeviceIdMap()
761 std::unordered_map<int, std::string> output_map; in CreateNumToWebrtcDeviceIdMap()
778 std::vector<std::string> device_ids; in CreateNumToWebrtcDeviceIdMap()
785 CF_EXPECT(device_id.find("{num}") != std::string::npos, in CreateNumToWebrtcDeviceIdMap()
788 device_ids = std::vector<std::string>(instance_nums.size(), tokens.front()); in CreateNumToWebrtcDeviceIdMap()
810 std::map<std::string, std::string> CurrentFlagsToDefaultValue() { in CurrentFlagsToDefaultValue()
811 std::map<std::string, std::string> name_to_default_value; in CurrentFlagsToDefaultValue()
821 const std::string& flag_values, int32_t instances_size, const std::string& flag_name, in GetFlagBoolValueForInstances()
822 std::map<std::string, std::string>& name_to_default_value) { in GetFlagBoolValueForInstances() argument
823 std::vector<std::string> flag_vec = android::base::Split(flag_values, ","); in GetFlagBoolValueForInstances()
827 …std::vector<std::string> default_value_vec = android::base::Split(name_to_default_value[flag_name… in GetFlagBoolValueForInstances()
834 std::string default_value = default_value_vec[0]; in GetFlagBoolValueForInstances()
848 const std::string& flag_values, int32_t instances_size, const std::string& flag_name, in GetFlagIntValueForInstances()
849 std::map<std::string, std::string>& name_to_default_value) { in GetFlagIntValueForInstances() argument
850 std::vector<std::string> flag_vec = android::base::Split(flag_values, ","); in GetFlagIntValueForInstances()
854 …std::vector<std::string> default_value_vec = android::base::Split(name_to_default_value[flag_name… in GetFlagIntValueForInstances()
862 std::string default_value = default_value_vec[0]; in GetFlagIntValueForInstances()
879 Result<std::vector<std::string>> GetFlagStrValueForInstances( in GetFlagStrValueForInstances()
880 const std::string& flag_values, int32_t instances_size, in GetFlagStrValueForInstances()
881 const std::string& flag_name, std::map<std::string, std::string>& name_to_default_value) { in GetFlagStrValueForInstances() argument
882 std::vector<std::string> flag_vec = android::base::Split(flag_values, ","); in GetFlagStrValueForInstances()
883 std::vector<std::string> value_vec(instances_size); in GetFlagStrValueForInstances()
886 …std::vector<std::string> default_value_vec = android::base::Split(name_to_default_value[flag_name… in GetFlagStrValueForInstances()
893 std::string default_value = default_value_vec[0]; in GetFlagStrValueForInstances()
908 const std::map<int, std::string>& calculated_gpu_mode) { in CheckSnapshotCompatible()
946 const std::string& root_dir, in InitializeCuttlefishConfiguration()
954 const std::string snapshot_path = FLAGS_snapshot_path; in InitializeCuttlefishConfiguration()
956 const std::string snapshot_path_config = in InitializeCuttlefishConfiguration()
976 std::vector<std::string> vm_manager_vec = in InitializeCuttlefishConfiguration()
1013 std::set<std::string>(secure_hals_strs.begin(), secure_hals_strs.end())); in InitializeCuttlefishConfiguration()
1057 std::string ap_rootfs_image = ""; in InitializeCuttlefishConfiguration()
1092 std::vector<std::string> gnss_file_paths = in InitializeCuttlefishConfiguration()
1094 std::vector<std::string> fixed_location_file_paths = in InitializeCuttlefishConfiguration()
1106 std::vector<std::string> vsock_guest_group_vec = in InitializeCuttlefishConfiguration()
1112 std::vector<std::string> setupwizard_mode_vec = in InitializeCuttlefishConfiguration()
1114 std::vector<std::string> userdata_format_vec = in InitializeCuttlefishConfiguration()
1141 std::vector<std::string> extra_bootconfig_args_base64_vec = in InitializeCuttlefishConfiguration()
1146 std::vector<std::string> gem5_debug_file_vec = in InitializeCuttlefishConfiguration()
1154 std::vector<std::string> boot_slot_vec = in InitializeCuttlefishConfiguration()
1158 std::vector<std::string> webrtc_assets_dir_vec = in InitializeCuttlefishConfiguration()
1160 std::vector<std::string> tcp_port_range_vec = in InitializeCuttlefishConfiguration()
1162 std::vector<std::string> udp_port_range_vec = in InitializeCuttlefishConfiguration()
1166 std::vector<std::string> vhost_user_vsock_vec = in InitializeCuttlefishConfiguration()
1168 std::vector<std::string> ril_dns_vec = in InitializeCuttlefishConfiguration()
1177 std::vector<std::string> gpu_mode_vec = in InitializeCuttlefishConfiguration()
1179 std::map<int, std::string> calculated_gpu_mode_vec; in InitializeCuttlefishConfiguration()
1180 std::vector<std::string> gpu_vhost_user_mode_vec = in InitializeCuttlefishConfiguration()
1182 std::vector<std::string> gpu_renderer_features_vec = in InitializeCuttlefishConfiguration()
1184 std::vector<std::string> gpu_context_types_vec = in InitializeCuttlefishConfiguration()
1186 std::vector<std::string> guest_vulkan_driver_vec = in InitializeCuttlefishConfiguration()
1188 std::vector<std::string> frames_socket_path_vec = in InitializeCuttlefishConfiguration()
1191 std::vector<std::string> gpu_capture_binary_vec = in InitializeCuttlefishConfiguration()
1195 std::vector<std::string> hwcomposer_vec = in InitializeCuttlefishConfiguration()
1200 std::vector<std::string> crosvm_binary_vec = in InitializeCuttlefishConfiguration()
1202 std::vector<std::string> seccomp_policy_dir_vec = in InitializeCuttlefishConfiguration()
1204 std::vector<std::string> qemu_binary_dir_vec = in InitializeCuttlefishConfiguration()
1208 std::vector<std::string> gem5_binary_dir_vec = in InitializeCuttlefishConfiguration()
1210 std::vector<std::string> gem5_checkpoint_dir_vec = in InitializeCuttlefishConfiguration()
1212 std::vector<std::string> data_policy_vec = in InitializeCuttlefishConfiguration()
1226 const bool restore_from_snapshot = !std::string(FLAGS_snapshot_path).empty(); in InitializeCuttlefishConfiguration()
1227 std::vector<std::string> device_external_network_vec = in InitializeCuttlefishConfiguration()
1232 std::vector<std::string> mcu_config_vec = CF_EXPECT(GET_FLAG_STR_VALUE(mcu_config_path)); in InitializeCuttlefishConfiguration()
1234 std::string default_enable_sandbox = ""; in InitializeCuttlefishConfiguration()
1235 std::string default_enable_virtiofs = ""; in InitializeCuttlefishConfiguration()
1236 std::string comma_str = ""; in InitializeCuttlefishConfiguration()
1295 std::set<std::string> straced_set(straced.begin(), straced.end()); in InitializeCuttlefishConfiguration()
1313 std::string("env-") + std::to_string(instance_nums[0]); in InitializeCuttlefishConfiguration()
1386 std::string decoded_args_str(decoded_args.begin(), decoded_args.end()); in InitializeCuttlefishConfiguration()
1590 const std::string gpu_mode = CF_EXPECT(ConfigureGpuSettings( in InitializeCuttlefishConfiguration()
1672 std::vector<std::string> virtual_disk_paths; in InitializeCuttlefishConfiguration()
1691 const std::string persistent_composite_img_base = in InitializeCuttlefishConfiguration()
1696 const std::string persistent_composite_img_base = in InitializeCuttlefishConfiguration()
1820 std::string file_content; in InitializeCuttlefishConfiguration()
1831 std::vector<std::string> names; in InitializeCuttlefishConfiguration()
1884 std::map<std::string, std::string>& name_to_default_value) { in SetDefaultFlagsForQemu() argument
1888 std::vector<std::string> gpu_mode_vec = in SetDefaultFlagsForQemu()
1892 std::vector<std::string> system_image_dir = in SetDefaultFlagsForQemu()
1894 std::string curr_android_efi_loader = ""; in SetDefaultFlagsForQemu()
1895 std::string default_android_efi_loader = ""; in SetDefaultFlagsForQemu()
1896 std::string default_start_webrtc = ""; in SetDefaultFlagsForQemu()
1929 std::string default_bootloader = DefaultHostArtifactsPath("etc/bootloader_"); in SetDefaultFlagsForQemu()
1957 std::map<std::string, std::string>& name_to_default_value) { in SetDefaultFlagsForCrosvm() argument
1963 std::string default_start_webrtc = ""; in SetDefaultFlagsForCrosvm()
1971 std::vector<std::string> system_image_dir = in SetDefaultFlagsForCrosvm()
1973 std::string curr_android_efi_loader = ""; in SetDefaultFlagsForCrosvm()
1974 std::string cur_bootloader = ""; in SetDefaultFlagsForCrosvm()
1975 std::string default_android_efi_loader = ""; in SetDefaultFlagsForCrosvm()
1976 std::string default_bootloader = ""; in SetDefaultFlagsForCrosvm()
1977 std::string default_enable_sandbox_str = ""; in SetDefaultFlagsForCrosvm()
2111 std::vector<std::string> vm_manager_vec = in GetGuestConfigAndSetDefaults()
2169 std::string GetConfigFilePath(const CuttlefishConfig& config) { in GetConfigFilePath()
2173 std::string GetCuttlefishEnvPath() { in GetCuttlefishEnvPath()
2177 std::string GetSeccompPolicyDir() { in GetSeccompPolicyDir()
2178 static const std::string kSeccompDir = std::string("usr/share/crosvm/") + in GetSeccompPolicyDir()