/external/python/jinja/tests/ |
D | test_imports.py | 12 def test_env(): function 27 def test_context_imports(self, test_env): argument 28 t = test_env.from_string('{% import "module" as m %}{{ m.test() }}') 30 t = test_env.from_string( 34 t = test_env.from_string( 38 t = test_env.from_string('{% from "module" import test %}{{ test() }}') 40 t = test_env.from_string( 44 t = test_env.from_string( 49 def test_import_needs_name(self, test_env): argument 50 test_env.from_string('{% from "foo" import bar %}') [all …]
|
/external/autotest/client/site_tests/cellular_Smoke/ |
D | cellular_Smoke.py | 39 old_modem_info = self.test_env.modem.GetModemProperties() 42 device = self.test_env.shill.find_cellular_device_object() 46 service = self.test_env.shill.wait_for_cellular_service_object() 51 self.test_env.shill.connect_service_synchronous( 54 state = self.test_env.shill.get_dbus_property( 67 interface = self.test_env.shill.get_dbus_property( 86 self.test_env.shill.disconnect_service_synchronous( 91 new_modem_info = self.test_env.modem.GetModemProperties() 102 def run_once(self, test_env, connect_count=5, sleep_kludge=5, argument 104 with test_env, shill_context.ServiceAutoConnectContext( [all …]
|
D | control.pseudomodem | 30 test_env = test_environment.CellularPseudoMMTestEnvironment( 32 job.run_test('cellular_Smoke', tag='pseudomodem_3GPP', test_env=test_env) 35 test_env = test_environment.CellularPseudoMMTestEnvironment( 37 job.run_test('cellular_Smoke', tag='pseudomodem_CDMA', test_env=test_env)
|
/external/autotest/client/site_tests/cellular_SafetyDance/ |
D | cellular_SafetyDance.py | 42 self.test_env.shill.manager.EnableTechnology('cellular')) 47 self.test_env.shill.manager.DisableTechnology('cellular')) 60 return not self.test_env.shill.find_cellular_service_object() 66 service = self.test_env.shill.wait_for_cellular_service_object( 72 self.test_env.shill.connect_service_synchronous( 82 service = self.test_env.shill.wait_for_cellular_service_object( 88 self.test_env.shill.disconnect_service_synchronous( 114 self.device = self.test_env.shill.find_cellular_device_object() 125 def run_once(self, test_env, ops=30, seed=None): argument 126 self.test_env = test_env [all …]
|
D | control.pseudomodem | 27 test_env = test_environment.CellularPseudoMMTestEnvironment( 29 job.run_test('cellular_SafetyDance', test_env=test_env, tag='pseudomodem_3GPP') 32 test_env = test_environment.CellularPseudoMMTestEnvironment( 34 job.run_test('cellular_SafetyDance', test_env=test_env, tag='pseudomodem_CDMA')
|
/external/autotest/client/site_tests/cellular_SIMLocking/ |
D | cellular_SIMLocking.py | 63 if e.get_dbus_name() == self.test_env.shill.ERROR_INCORRECT_PIN: 76 if e.get_dbus_name() == self.test_env.shill.ERROR_INCORRECT_PIN: 87 self.test_env.shill.DEVICE_PROPERTY_SIM_LOCK_STATUS, 91 return self.test_env.shill.dbus2primitive(sim_lock_status) 98 self.test_env.shill.PROPERTY_KEY_SIM_LOCK_ENABLED, 110 self.test_env.shill.PROPERTY_KEY_SIM_LOCK_TYPE, 115 return lock_type == self.test_env.shill.VALUE_SIM_LOCK_TYPE_PIN 122 self.test_env.shill.PROPERTY_KEY_SIM_LOCK_TYPE, 127 return lock_type == self.test_env.shill.VALUE_SIM_LOCK_TYPE_PUK 134 self.test_env.shill.PROPERTY_KEY_SIM_LOCK_RETRIES_LEFT, [all …]
|
/external/autotest/client/site_tests/cellular_DisableWhileConnecting/ |
D | control.pseudomodem | 26 test_env = test_environment.CellularPseudoMMTestEnvironment( 29 test_env=test_env, 36 test_env = test_environment.CellularPseudoMMTestEnvironment( 39 test_env=test_env, 47 test_env = test_environment.CellularPseudoMMTestEnvironment( 50 test_env=test_env, 57 test_env = test_environment.CellularPseudoMMTestEnvironment( 60 test_env=test_env,
|
D | cellular_DisableWhileConnecting.py | 110 self.test.test_env.shill.find_cellular_device_object() 115 self.test.test_env.shill.find_cellular_service_object() 117 self.test.test_env.bus.add_signal_receiver( 156 return self.test.test_env.shill.get_dbus_property( 181 return 'Gobi' in self.test.test_env.modem.path 196 self.simple_modem = self.test.test_env.modem.SimpleModem() 198 logging.info('Modem path: %s', self.test.test_env.modem.path) 205 service = self.test.test_env.shill.wait_for_cellular_service_object() 211 gobi_modem = self.test.test_env.modem.GobiModem() 249 return self.test.test_env.modem.GetModemProperties().get('Enabled', -1) [all …]
|
D | control | 26 test_env = test_environment.CellularOTATestEnvironment() 28 test_env=test_env, 38 test_env = test_environment.CellularOTATestEnvironment() 40 test_env=test_env,
|
/external/autotest/client/site_tests/cellular_ModemControl/ |
D | cellular_ModemControl.py | 193 state = self.test_env.shill.get_dbus_property( 204 state = self.test_env.shill.get_dbus_property( 222 lambda: not self.test_env.modem.IsConnectingOrDisconnecting(), 236 lambda: self.CompareModemPowerState(self.test_env.modem, False), 242 lambda: not self.test_env.shill.find_cellular_service_object(), 259 lambda: self.CompareModemPowerState(self.test_env.modem, True), 266 service = self.test_env.shill.wait_for_cellular_service_object() 283 self.test_env.shill.find_cellular_service_object(), 307 technology_family = self.test_env.modem.GetCurrentTechnologyFamily() 357 service = self.test_env.shill.find_cellular_service_object() [all …]
|
D | control.pseudomodem | 29 test_env = test_environment.CellularPseudoMMTestEnvironment( 31 job.run_test('cellular_ModemControl', test_env=test_env, autoconnect=False, 33 job.run_test('cellular_ModemControl', test_env=test_env, autoconnect=True, 37 test_env = test_environment.CellularPseudoMMTestEnvironment( 39 job.run_test('cellular_ModemControl', test_env=test_env, autoconnect=False, 41 job.run_test('cellular_ModemControl', test_env=test_env, autoconnect=True,
|
D | control | 27 test_env = test_environment.CellularOTATestEnvironment() 28 job.run_test('cellular_ModemControl', test_env=test_env, autoconnect=False, 30 job.run_test('cellular_ModemControl', test_env=test_env, autoconnect=True,
|
D | control.att | 28 test_env = test_environment.CellularOTATestEnvironment() 29 job.run_test('cellular_ModemControl', test_env=test_env, autoconnect=False, 31 job.run_test('cellular_ModemControl', test_env=test_env, autoconnect=True,
|
D | control.verizon | 28 test_env = test_environment.CellularOTATestEnvironment() 29 job.run_test('cellular_ModemControl', test_env=test_env, autoconnect=False, 31 job.run_test('cellular_ModemControl', test_env=test_env, autoconnect=True,
|
D | control.tmobile | 28 test_env = test_environment.CellularOTATestEnvironment() 29 job.run_test('cellular_ModemControl', test_env=test_env, autoconnect=False, 31 job.run_test('cellular_ModemControl', test_env=test_env, autoconnect=True,
|
D | control.sprint | 28 test_env = test_environment.CellularOTATestEnvironment() 29 job.run_test('cellular_ModemControl', test_env=test_env, autoconnect=False, 31 job.run_test('cellular_ModemControl', test_env=test_env, autoconnect=True,
|
/external/autotest/client/site_tests/cellular_DisconnectFailure/ |
D | cellular_DisconnectFailure.py | 157 service = self.test_env.shill.find_cellular_service_object() 168 service = self.test_env.shill.find_cellular_service_object() 181 self.test_env = test_environment.CellularPseudoMMTestEnvironment( 186 with self.test_env: 211 service = self.test_env.shill.find_cellular_service_object() 212 self.test_env.shill.connect_service_synchronous( 216 self.test_env.shill.disconnect_service_synchronous( 237 service = self.test_env.shill.find_cellular_service_object() 238 self.test_env.shill.connect_service_synchronous( 242 self.test_env.shill.disconnect_service_synchronous( [all …]
|
/external/autotest/client/site_tests/cellular_OutOfCreditsSubscriptionState/ |
D | cellular_OutOfCreditsSubscriptionState.py | 31 self.test_env.shill.disable_modem_for_test_setup() 40 self.test_env.shill.manager.EnableTechnology( 59 self.test_env.shill.wait_for_cellular_service_object() 73 self.test_env.shill.wait_for_cellular_service_object() 86 self.test_env.shill.wait_for_cellular_service_object() 104 self.test_env = test_environment.CellularPseudoMMTestEnvironment( 106 with self.test_env, shill_context.ServiceAutoConnectContext( 107 self.test_env.shill.wait_for_cellular_service_object, False):
|
/external/autotest/server/cros/ |
D | resource_monitor_unittest.py | 30 def _initialize(self, test_env): argument 40 self.test_env = test_env 64 self.test_env.assertFalse(self.top_is_running, 66 self.test_env.assertFalse(self.top_output_file_is_open, 69 self.test_env.assertIsNone(self.top_output_file_path, 99 self.test_env.assertEqual(pid_to_kill, HostMock.TOP_PID, 102 self.test_env.assertTrue(self.top_is_running, 124 self.test_env.assertEqual(file_to_rm, self.top_output_file_path, 126 self.test_env.assertFalse(self.top_output_file_is_open, 129 self.test_env.assertFalse(self.top_is_running, [all …]
|
/external/autotest/client/site_tests/cellular_StressEnable/ |
D | control.pseudomodem | 24 test_env = test_environment.CellularPseudoMMTestEnvironment( 27 test_env=test_env) 30 test_env = test_environment.CellularPseudoMMTestEnvironment( 33 test_env=test_env)
|
/external/autotest/client/site_tests/cellular_DeferredRegistration/ |
D | cellular_DeferredRegistration.py | 31 service = self.test_env.shill.find_cellular_service_object() 32 self.test_env.shill.connect_service_synchronous( 34 timeout_seconds=self.test_env.shill.SERVICE_CONNECT_TIMEOUT) 52 if self.test_env.shill.find_cellular_service_object() is None: 64 if self.test_env.shill.find_cellular_service_object() is not None: 75 pseudomm_args=({'family': '3GPP'},)) as self.test_env:
|
/external/autotest/client/cros/ |
D | webstore_test.py | 103 def _get_chrome_flags(test_env): argument 108 if test_env == TestEnv.prod: 115 }[test_env] 120 }[test_env] 138 def initialize(self, test_env=TestEnv.sandbox, argument 151 self.test_env = test_env 152 self._chrome_flags = _get_chrome_flags(test_env) 162 }[test_env] 203 TestEnv.to_string[self.test_env])
|
/external/autotest/client/site_tests/cellular_ConnectFailure/ |
D | cellular_ConnectFailure.py | 75 service = self.test_env.shill.find_cellular_service_object() 82 _, state, _ = self.test_env.shill.wait_for_property_in( 93 def run_once(self, test_env, connect_count=4): argument 94 with test_env: 95 self.test_env = test_env
|
D | control.pseudomodem | 32 test_env = test_environment.CellularPseudoMMTestEnvironment( 37 test_env=test_env) 40 test_env = test_environment.CellularPseudoMMTestEnvironment( 45 test_env=test_env)
|
/external/autotest/client/site_tests/cellular_ServiceName/ |
D | cellular_ServiceName.py | 95 self.test_env.shill.wait_for_cellular_service_object() 112 self.test_env = test_environment.CellularPseudoMMTestEnvironment( 116 with self.test_env: 130 self.test_env = test_environment.CellularPseudoMMTestEnvironment( 135 with self.test_env: 144 self.test_env = test_environment.CellularPseudoMMTestEnvironment( 148 with self.test_env:
|