Home
last modified time | relevance | path

Searched refs:cfg (Results 1 – 25 of 38) sorted by relevance

12

/tools/acloud/public/
Dconfig_test.py117 cfg = config.AcloudConfigManager.LoadConfigFromProtocolBuffer(
119 self.assertEqual(cfg.service_account_name,
121 self.assertEqual(cfg.service_account_private_key_path,
123 self.assertEqual(cfg.service_account_json_private_key_path,
125 self.assertEqual(cfg.project, "fake-project")
126 self.assertEqual(cfg.zone, "us-central1-f")
127 self.assertEqual(cfg.machine_type, "n1-standard-1")
128 self.assertEqual(cfg.network, "default")
129 self.assertEqual(cfg.ssh_private_key_path, "/path/to/ssh/key")
130 self.assertEqual(cfg.storage_bucket_name, "fake_bucket")
[all …]
Ddevice_driver_test.py39 cfg = mock.MagicMock()
40 cfg.service_account_name = "fake@service.com"
41 cfg.service_account_private_key_path = "/fake/path/to/key"
42 cfg.zone = "fake_zone"
43 cfg.disk_image_name = "fake_image.tar.gz"
44 cfg.disk_image_mime_type = "fake/type"
45 cfg.storage_bucket_name = "fake_bucket"
46 cfg.extra_data_disk_size_gb = 4
47 cfg.precreated_data_image_map = {
51 cfg.extra_scopes = None
[all …]
Ddevice_driver.py61 def __init__(self, cfg, devices=None): argument
63 self._cfg = cfg
64 credentials = auth.CreateCredentials(cfg)
69 cfg, credentials)
339 def CreateAndroidVirtualDevices(cfg, argument
377 credentials = auth.CreateCredentials(cfg)
378 compute_client = android_compute_client.AndroidComputeClient(cfg,
381 common_operations.CreateSshKeyPairIfNecessary(cfg)
382 device_pool = AndroidVirtualDevicePool(cfg)
390 extra_data_disk_size_gb=cfg.extra_data_disk_size_gb,
[all …]
Dacloud_main.py355 cfg = config.GetAcloudConfig(args)
365 cfg=cfg,
377 cfg=cfg,
391 report = device_driver.Cleanup(cfg, args.expiration_mins)
/tools/acloud/public/actions/
Dcreate_goldfish_action.py62 cfg, argument
82 self.credentials = auth.CreateCredentials(cfg)
85 cfg, self.credentials)
89 self._cfg = cfg
96 self._blank_data_disk_size_gb = cfg.extra_data_disk_size_gb
97 self._extra_scopes = cfg.extra_scopes
161 def _FetchBuildIdFromFile(cfg, build_target, build_id, pattern, filename): argument
178 auth.CreateCredentials(cfg))
191 cfg=None, argument
224 cfg = avd_spec.cfg
[all …]
Dcreate_cuttlefish_action_test.py73 cfg = mock.MagicMock()
74 cfg.service_account_name = "fake@service.com"
75 cfg.service_account_private_key_path = "/fake/path/to/key"
76 cfg.zone = "fake_zone"
77 cfg.disk_image_name = "fake_image.tar.gz"
78 cfg.disk_image_mime_type = "fake/type"
79 cfg.ssh_private_key_path = ""
80 cfg.ssh_public_key_path = ""
81 cfg.stable_host_image_name = self.STABLE_HOST_IMAGE_NAME
82 cfg.stable_host_image_project = self.STABLE_HOST_IMAGE_PROJECT
[all …]
Dcreate_goldfish_action_test.py69 self.avd_spec.cfg = self._CreateCfg()
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.ssh_private_key_path = ""
85 cfg.ssh_public_key_path = ""
86 cfg.stable_goldfish_host_image_name = self.GOLDFISH_HOST_IMAGE_NAME
87 cfg.stable_goldfish_host_image_project = self.GOLDFISH_HOST_IMAGE_PROJECT
88 cfg.emulator_build_target = self.EMULATOR_TARGET
[all …]
Dcommon_operations_test.py80 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 …]
Dcreate_cuttlefish_action.py54 def __init__(self, cfg, build_target, build_id, kernel_build_id=None, argument
57 self.credentials = auth.CreateCredentials(cfg)
60 cfg, self.credentials)
64 self._cfg = cfg
68 self._blank_data_disk_size_gb = cfg.extra_data_disk_size_gb
71 self._kernel_build_target = cfg.kernel_build_target
72 self._extra_scopes = cfg.extra_scopes
132 cfg=None, argument
163 cfg = avd_spec.cfg
175 "autoconnect: %s, report_internal_ip: %s", cfg.project, build_target,
[all …]
Dcommon_operations.py38 def CreateSshKeyPairIfNecessary(cfg): argument
47 if not cfg.ssh_public_key_path:
55 elif cfg.ssh_public_key_path and not cfg.ssh_private_key_path:
61 elif cfg.ssh_public_key_path and cfg.ssh_private_key_path:
62 utils.CreateSshKeyPairIfNotExist(cfg.ssh_private_key_path,
63 cfg.ssh_public_key_path)
241 def CreateDevices(command, cfg, device_factory, num, avd_type, argument
270 CreateSshKeyPairIfNecessary(cfg)
304 ip, cfg.ssh_private_key_path,
/tools/acloud/list/
Dlist.py90 def GetRemoteInstances(cfg): argument
101 credentials = auth.CreateCredentials(cfg)
102 compute_client = gcompute_client.ComputeClient(cfg, credentials)
104 all_instances = compute_client.ListInstances(cfg.zone,
107 cfg.zone, filter_item, all_instances)
112 def GetInstances(cfg): argument
121 instances_list = GetRemoteInstances(cfg)
129 def ChooseInstances(cfg, select_all_instances=False): argument
143 instances_list = GetInstances(cfg)
153 def GetInstancesFromInstanceNames(cfg, instance_names): argument
[all …]
Dlist_test.py36 cfg = mock.MagicMock()
45 instances_list = list_instance.GetInstancesFromInstanceNames(cfg, instance_names)
50 instances_list = list_instance.GetInstancesFromInstanceNames(cfg, instance_names)
61 cfg=cfg,
67 cfg = mock.MagicMock()
75 list_instance.GetInstanceFromAdbPort(cfg, 1111))
78 list_instance.GetInstanceFromAdbPort(cfg, 2222)
/tools/acloud/reconnect/
Dreconnect.py62 def AddPublicSshRsaToInstance(cfg, user, instance_name): argument
72 credentials = auth.CreateCredentials(cfg)
74 cfg, credentials)
76 cfg.zone,
78 cfg.ssh_public_key_path,
117 cfg = config.GetAcloudConfig(args)
122 cfg, args.instance_names)
124 instances_to_reconnect = list_instance.ChooseInstances(cfg, args.all)
126 AddPublicSshRsaToInstance(cfg, getpass.getuser(), instance.name)
127 ReconnectInstance(cfg.ssh_private_key_path, instance)
/tools/acloud/create/
Dcheeps_remote_image_remote_instance_test.py49 cfg = mock.MagicMock()
50 cfg.service_account_name = "fake@service.com"
51 cfg.service_account_private_key_path = "/fake/path/to/key"
52 cfg.zone = "fake_zone"
53 cfg.ssh_private_key_path = ""
54 cfg.ssh_public_key_path = ""
55 cfg.stable_cheeps_host_image_name = self.CHEEPS_HOST_IMAGE_NAME
56 cfg.stable_cheeps_host_image_project = self.CHEEPS_HOST_IMAGE_PROJECT
57 return cfg
72 avd_spec.cfg = self._CreateCfg()
Dcheeps_remote_image_remote_instance.py49 avd_spec.cfg.project, build_id)
51 device_factory = CheepsDeviceFactory(avd_spec.cfg, build_id, avd_spec)
55 cfg=avd_spec.cfg,
79 def __init__(self, cfg, build_id, avd_spec=None): argument
87 self.credentials = auth.CreateCredentials(cfg)
90 cfg, self.credentials)
93 self._cfg = cfg
Dremote_image_local_instance.py110 cfg = avd_spec.cfg
124 self._DownloadRemoteImage(cfg, build_target, build_id, extract_path)
131 def _DownloadRemoteImage(cfg, build_target, build_id, extract_path): argument
145 auth.CreateCredentials(cfg))
Dlocal_image_remote_instance.py69 self._cfg = avd_spec.cfg
73 self.credentials = auth.CreateCredentials(avd_spec.cfg)
75 avd_spec.cfg, self.credentials)
287 "create_cf", avd_spec.cfg, device_factory, avd_spec.num,
Dremote_image_local_instance_test.py73 avd_spec.cfg = mock.MagicMock()
82 avd_spec.cfg,
93 avd_spec.cfg = mock.MagicMock()
101 avd_spec.cfg,
/tools/acloud/delete/
Ddelete.py87 def DeleteInstances(cfg, instances_to_delete): argument
116 return DeleteRemoteInstances(cfg, remote_instance_list, delete_report)
124 def DeleteRemoteInstances(cfg, instances_to_delete, delete_report=None): argument
145 cfg, instances_to_delete, delete_report)
193 cfg = config.GetAcloudConfig(args)
197 return DeleteRemoteInstances(cfg, remote_instances_to_delete)
207 cfg, list_instances.GetInstanceFromAdbPort(cfg, args.adb_port))
211 return DeleteInstances(cfg, list_instances.ChooseInstances(cfg, args.all))
/tools/acloud/setup/
Dgcp_setup_runner.py197 cfg = config_mgr.Load()
199 self.project = cfg.project
200 self.zone = cfg.zone
201 self.storage_bucket_name = cfg.storage_bucket_name
202 self.ssh_private_key_path = cfg.ssh_private_key_path
203 self.ssh_public_key_path = cfg.ssh_public_key_path
204 self.stable_host_image_name = cfg.stable_host_image_name
205 self.client_id = cfg.client_id
206 self.client_secret = cfg.client_secret
207 self.service_account_name = cfg.service_account_name
[all …]
Dgcp_setup_runner_test.py73 cfg = config.AcloudConfigManager.LoadConfigFromProtocolBuffer(
75 self.assertEqual(cfg.project, "test_project")
76 self.assertEqual(cfg.ssh_private_key_path, "")
80 cfg = config.AcloudConfigManager.LoadConfigFromProtocolBuffer(
82 self.assertEqual(cfg.project, "test_project")
83 self.assertEqual(cfg.ssh_private_key_path, "test_path")
/tools/test/connectivity/acts/framework/acts/test_utils/tel/
Dtwilio_client.py56 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/test/graphicsbenchmark/apps/sample_app/src/cpp/
Drenderer.cpp86 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()
/tools/acloud/public/acloud_kernel/
Dacloud_kernel.py77 cfg = config_mgr.Load()
78 cfg.OverrideWithArgs(args)
80 k_swapper = kernel_swapper.KernelSwapper(cfg, args.instance_name)
Dkernel_swapper.py50 def __init__(self, cfg, instance_name): argument
57 credentials = auth.CreateCredentials(cfg)
59 cfg, credentials)

12