Home | History | Annotate | Download | only in pseudomodem

Lines Matching refs:pseudomodem

5 # This module helps launch pseudomodem as a subprocess. It helps with the
6 # initial setup of pseudomodem, as well as ensures proper cleanup.
7 # For details about the options accepted by pseudomodem, please check the
8 # |pseudomodem| module.
9 # This module also doubles as the python entry point to run pseudomodem from the
11 # to run pseudomodem from command line.
32 import pseudomodem
77 A context to launch pseudomodem in background.
79 Tests should use |PeudoModemManagerContext| to launch pseudomodem. It is
85 pseudomodem will be launch in a subprocess safely when entering the |with|
106 @param use_pseudomodem: This flag can be used to treat pseudomodem as a
107 no-op. When |True|, pseudomodem is launched as expected. When
108 |False|, this operation is a no-op, and pseudomodem will not be
110 @param flags_map: This is a map of pseudomodem arguments. See
111 |pseudomodem| module for the list of supported arguments. For
112 example, to launch pseudomodem with a modem of family 3GPP, use:
115 @param block_output: If True, output from the pseudomodem process is not
149 """ The command line flags that will be passed to pseudomodem. """
156 Set the command line flags to be passed to pseudomodem.
161 logging.info('Command line flags for pseudomodem set to: |%s|', val)
174 """ Start the context. This launches pseudomodem. """
187 cmd = [os.path.join(toplevel, 'pseudomodem.py')]
192 cmd = cmd + [pseudomodem.EXIT_ERROR_FILE_FLAG,
216 """ Exit the context. This terminates pseudomodem. """
229 'pseudomodem process')
246 Convert the argument map given to the context to flags for pseudomodem.
249 accepted by pseudomodem. The value, if not None, is the value
251 @returns: the list of flags to pass to pseudomodem.
269 are to be instantiated by pseudomodem. The argument must be a list. When
270 running pseudomodem, this list will be unpacked to get the arguments.
312 'It may interfere with pseudomodem.' %
320 Parse the given pseudomodem arguments.
326 pseudomodem.ParseArguments(self.cmd_line_flags)
334 This functions is called by the launched subprocess so that pseudomodem
356 """ Makes sure that pseudomodem in child process is ready. """
372 'pseudomodem did not initialize properly.'))
389 # Set file permissions so that pseudomodem process can read/write it.
411 This is setup while the pseudomodem subprocess is running. A call to
424 error_reason, error_traceback = pseudomodem.ExtractExitError(
426 logging.error('pseudomodem child process quit early!')
431 'pseudomodem quit early! (%s)' %