/tools/acloud/public/ |
D | config_test.py | 120 cfg = config.AcloudConfigManager.LoadConfigFromProtocolBuffer( 122 self.assertEqual(cfg.service_account_name, 124 self.assertEqual(cfg.service_account_private_key_path, 126 self.assertEqual(cfg.service_account_json_private_key_path, 128 self.assertEqual(cfg.project, "fake-project") 129 self.assertEqual(cfg.zone, "us-central1-f") 130 self.assertEqual(cfg.machine_type, "n1-standard-1") 131 self.assertEqual(cfg.network, "default") 132 self.assertEqual(cfg.ssh_private_key_path, "/path/to/ssh/key") 133 self.assertEqual(cfg.storage_bucket_name, "fake_bucket") [all …]
|
D | device_driver_test.py | 35 cfg = mock.MagicMock() 36 cfg.service_account_name = "fake@service.com" 37 cfg.service_account_private_key_path = "/fake/path/to/key" 38 cfg.zone = "fake_zone" 39 cfg.disk_image_name = "fake_image.tar.gz" 40 cfg.disk_image_mime_type = "fake/type" 41 cfg.storage_bucket_name = "fake_bucket" 42 cfg.extra_data_disk_size_gb = 4 43 cfg.precreated_data_image_map = { 47 cfg.extra_scopes = None [all …]
|
D | device_driver.py | 58 def __init__(self, cfg, devices=None): argument 60 self._cfg = cfg 61 credentials = auth.CreateCredentials(cfg) 66 cfg, credentials) 337 def CreateGCETypeAVD(cfg, argument 373 credentials = auth.CreateCredentials(cfg) 374 compute_client = android_compute_client.AndroidComputeClient(cfg, 377 common_operations.CreateSshKeyPairIfNecessary(cfg) 378 device_pool = AndroidVirtualDevicePool(cfg) 386 extra_data_disk_size_gb=cfg.extra_data_disk_size_gb, [all …]
|
/tools/asuite/aidegen/lib/ |
D | config_unittest.py | 63 cfg = config.AidegenConfig() 64 cfg._load_aidegen_config() 68 cfg = config.AidegenConfig() 69 cfg._load_aidegen_config() 81 cfg = config.AidegenConfig() 84 cfg._load_aidegen_config() 89 cfg._load_aidegen_config() 99 cfg = config.AidegenConfig() 100 cfg._save_aidegen_config() 111 cfg = config.AidegenConfig() [all …]
|
/tools/acloud/list/ |
D | list.py | 94 def GetRemoteInstances(cfg): argument 105 credentials = auth.CreateCredentials(cfg) 106 compute_client = gcompute_client.ComputeClient(cfg, credentials) 171 def GetInstances(cfg): argument 180 return GetRemoteInstances(cfg) + GetLocalInstances() 198 def ChooseInstances(cfg, select_all_instances=False): argument 212 instances = GetInstances(cfg) 218 def ChooseOneRemoteInstance(cfg): argument 233 instances_list = GetCFRemoteInstances(cfg) 275 def GetInstancesFromInstanceNames(cfg, instance_names): argument [all …]
|
D | list_test.py | 40 cfg = mock.MagicMock() 49 instances_list = list_instance.GetInstancesFromInstanceNames(cfg, instance_names) 54 instances_list = list_instance.GetInstancesFromInstanceNames(cfg, instance_names) 65 cfg=cfg, 70 cfg = mock.MagicMock() 76 self.assertEqual(list_instance.ChooseOneRemoteInstance(cfg), expected_instance) 81 list_instance.ChooseOneRemoteInstance(cfg) 89 self.assertEqual(list_instance.ChooseOneRemoteInstance(cfg), expected_instance)
|
/tools/acloud/public/actions/ |
D | create_cuttlefish_action_test.py | 81 cfg = mock.MagicMock() 82 cfg.service_account_name = "fake@service.com" 83 cfg.service_account_private_key_path = "/fake/path/to/key" 84 cfg.zone = "fake_zone" 85 cfg.disk_image_name = "fake_image.tar.gz" 86 cfg.disk_image_mime_type = "fake/type" 87 cfg.ssh_private_key_path = "" 88 cfg.ssh_public_key_path = "" 89 cfg.stable_host_image_name = self.STABLE_HOST_IMAGE_NAME 90 cfg.stable_host_image_project = self.STABLE_HOST_IMAGE_PROJECT [all …]
|
D | common_operations_test.py | 80 cfg = mock.MagicMock() 81 cfg.service_account_name = "fake@service.com" 82 cfg.service_account_private_key_path = "/fake/path/to/key" 83 cfg.zone = "fake_zone" 84 cfg.disk_image_name = "fake_image.tar.gz" 85 cfg.disk_image_mime_type = "fake/type" 86 cfg.ssh_private_key_path = "" 87 cfg.ssh_public_key_path = "" 88 return cfg 99 cfg = self._CreateCfg() [all …]
|
D | create_cuttlefish_action.py | 54 def __init__(self, cfg, build_target, build_id, branch=None, argument 61 self.credentials = auth.CreateCredentials(cfg) 63 if cfg.enable_multi_stage: 65 cfg, self.credentials, boot_timeout_secs, ins_timeout_secs, 69 cfg, self.credentials) 73 self._cfg = cfg 78 self._blank_data_disk_size_gb = cfg.extra_data_disk_size_gb 79 self._extra_scopes = cfg.extra_scopes 89 kernel_build_target or cfg.kernel_build_target, kernel_build_id, 185 def CreateDevices(cfg, argument [all …]
|
D | common_operations.py | 37 def CreateSshKeyPairIfNecessary(cfg): argument 46 if not cfg.ssh_public_key_path: 54 elif cfg.ssh_public_key_path and not cfg.ssh_private_key_path: 60 elif cfg.ssh_public_key_path and cfg.ssh_private_key_path: 61 utils.CreateSshKeyPairIfNotExist(cfg.ssh_private_key_path, 62 cfg.ssh_public_key_path) 168 def CreateDevices(command, cfg, device_factory, num, avd_type, argument 203 CreateSshKeyPairIfNecessary(cfg) 237 rsa_key_file=cfg.ssh_private_key_path, 242 extra_args_ssh_tunnel=cfg.extra_args_ssh_tunnel)
|
D | create_goldfish_action_test.py | 72 self.avd_spec.cfg = self._CreateCfg() 83 cfg = mock.MagicMock() 84 cfg.service_account_name = "fake@service.com" 85 cfg.service_account_private_key_path = "/fake/path/to/key" 86 cfg.zone = "fake_zone" 87 cfg.ssh_private_key_path = "" 88 cfg.ssh_public_key_path = "" 89 cfg.stable_goldfish_host_image_name = self.GOLDFISH_HOST_IMAGE_NAME 90 cfg.stable_goldfish_host_image_project = self.GOLDFISH_HOST_IMAGE_PROJECT 91 cfg.emulator_build_target = self.EMULATOR_BUILD_TARGET [all …]
|
D | remote_instance_cf_device_factory.py | 57 self._cfg = avd_spec.cfg 61 self.credentials = auth.CreateCredentials(avd_spec.cfg) 64 acloud_config=avd_spec.cfg, 157 cfg = self._avd_spec.cfg 164 cfg, build_target, build_id, remote_image, extract_path, decompress=True) 168 cfg, build_target, build_id, constants.CVD_HOST_PACKAGE,
|
/tools/acloud/delete/ |
D | delete.py | 47 def DeleteInstances(cfg, instances_to_delete): argument 83 return DeleteRemoteInstances(cfg, remote_instance_list, delete_report) 91 def DeleteRemoteInstances(cfg, instances_to_delete, delete_report=None): argument 105 if not cfg.SupportRemoteInstance(): 119 cfg, instances_to_delete, delete_report) 181 def CleanUpRemoteHost(cfg, remote_host, host_user, argument 196 credentials = auth.CreateCredentials(cfg) 198 acloud_config=cfg, 204 host_ssh_private_key_path or cfg.ssh_private_key_path)) 219 def DeleteInstanceByNames(cfg, instances): argument [all …]
|
D | delete_test.py | 102 cfg = mock.Mock() 107 delete.DeleteInstanceByNames(cfg, instances) 113 delete.DeleteInstanceByNames(cfg, instances)
|
/tools/acloud/create/ |
D | cheeps_remote_image_remote_instance.py | 50 avd_spec.cfg.project, avd_spec.remote_image[constants.BUILD_ID]) 52 device_factory = CheepsDeviceFactory(avd_spec.cfg, avd_spec) 56 cfg=avd_spec.cfg, 81 def __init__(self, cfg, avd_spec=None): argument 88 self.credentials = auth.CreateCredentials(cfg) 91 cfg, self.credentials) 94 self._cfg = cfg
|
D | cheeps_remote_image_remote_instance_test.py | 59 cfg = mock.MagicMock() 60 cfg.service_account_name = "fake@service.com" 61 cfg.service_account_private_key_path = "/fake/path/to/key" 62 cfg.zone = "fake_zone" 63 cfg.ssh_private_key_path = "" 64 cfg.ssh_public_key_path = "" 65 cfg.stable_cheeps_host_image_name = self.CHEEPS_HOST_IMAGE_NAME 66 cfg.stable_cheeps_host_image_project = self.CHEEPS_HOST_IMAGE_PROJECT 67 return cfg 72 avd_spec.cfg = self._CreateCfg()
|
D | remote_image_local_instance.py | 65 cfg = avd_spec.cfg 84 cfg, build_target, build_id, artifact, extract_path, decompress=True)
|
/tools/acloud/reconnect/ |
D | reconnect.py | 62 def AddPublicSshRsaToInstance(cfg, user, instance_name): argument 72 credentials = auth.CreateCredentials(cfg) 74 cfg, credentials) 77 cfg.ssh_public_key_path, 158 cfg = config.GetAcloudConfig(args) 163 cfg, args.instance_names) 165 instances_to_reconnect = list_instance.ChooseInstances(cfg, args.all) 176 AddPublicSshRsaToInstance(cfg, constants.GCE_USER, instance.name) 177 ReconnectInstance(cfg.ssh_private_key_path, 180 cfg.extra_args_ssh_tunnel,
|
/tools/test/connectivity/acts/framework/acts/test_utils/tel/ |
D | twilio_client.py | 56 cfg = yaml.load(cfg_file) 57 self.__account_sid = cfg[ACCOUNT_SID_KEY] 58 self.__auth_token = cfg[AUTH_TOKEN_KEY] 59 self.__phone_number = cfg[PHONE_NUMBER_KEY] 60 self.urls = cfg[URLS_KEY]
|
/tools/acloud/pull/ |
D | pull.py | 44 def PullFileFromInstance(cfg, instance, file_name=None, no_prompts=False): argument 62 ssh_private_key_path=cfg.ssh_private_key_path, 63 extra_args_ssh_tunnel=cfg.extra_args_ssh_tunnel) 216 cfg = config.GetAcloudConfig(args) 219 cfg, [args.instance_name]) 220 return PullFileFromInstance(cfg, instance[0], args.file_name, args.no_prompt) 221 return PullFileFromInstance(cfg, 222 list_instances.ChooseOneRemoteInstance(cfg),
|
/tools/acloud/setup/ |
D | gcp_setup_runner.py | 256 cfg = config_mgr.Load() 258 self.project = cfg.project 259 self.zone = cfg.zone 260 self.ssh_private_key_path = cfg.ssh_private_key_path 261 self.ssh_public_key_path = cfg.ssh_public_key_path 262 self.stable_host_image_name = cfg.stable_host_image_name 263 self.client_id = cfg.client_id 264 self.client_secret = cfg.client_secret 265 self.service_account_name = cfg.service_account_name 266 self.service_account_private_key_path = cfg.service_account_private_key_path [all …]
|
D | gcp_setup_runner_test.py | 76 cfg = config.AcloudConfigManager.LoadConfigFromProtocolBuffer( 78 self.assertEqual(cfg.project, "test_project") 79 self.assertEqual(cfg.ssh_private_key_path, "") 83 cfg = config.AcloudConfigManager.LoadConfigFromProtocolBuffer( 85 self.assertEqual(cfg.project, "test_project") 86 self.assertEqual(cfg.ssh_private_key_path, "test_path") 92 cfg = config.AcloudConfigManager.LoadConfigFromProtocolBuffer( 94 self.assertEqual(cfg.project, "test_project")
|
/tools/acloud/public/acloud_kernel/ |
D | acloud_kernel.py | 78 cfg = config_mgr.Load() 79 cfg.OverrideWithArgs(args) 81 k_swapper = kernel_swapper.KernelSwapper(cfg, args.instance_name)
|
D | kernel_swapper.py | 51 def __init__(self, cfg, instance_name): argument 58 credentials = auth.CreateCredentials(cfg) 60 cfg, credentials)
|
/tools/test/graphicsbenchmark/apps/sample_app/src/cpp/ |
D | renderer.cpp | 86 auto& cfg = supportedConfigs[i]; in initDisplay() local 88 if (eglGetConfigAttrib(display, cfg, EGL_RED_SIZE, &r) && in initDisplay() 89 eglGetConfigAttrib(display, cfg, EGL_GREEN_SIZE, &g) && in initDisplay() 90 eglGetConfigAttrib(display, cfg, EGL_BLUE_SIZE, &b) && in initDisplay() 91 eglGetConfigAttrib(display, cfg, EGL_DEPTH_SIZE, &d) && in initDisplay()
|