HomeSort by relevance Sort by last modified time
    Searched refs:modem (Results 1 - 25 of 88) sorted by null

1 2 3 4

  /external/autotest/client/cros/cellular/
modem_utils.py 10 """If a Gobi modem is present, try to clear its fault-injection state."""
14 # Did not find a Gobi modem. Simply return.
17 modem = modem_manager.GetModem(modem_path).GobiModem()
18 if modem:
19 modem.InjectFault('ClearFaults', 1)
mm.py 9 from autotest_lib.client.cros.cellular import modem namespace
30 return modem.ModemManager(provider)
52 a list of (ModemManager object, modem dbus path)
57 raise error.TestError('Cannot connect to the modem manager, is '
68 """Pick a modem.
70 If a machine has a single modem, managed by one of the MMPROVIDERS,
71 return the dbus path and a ModemManager object for that modem.
74 modem_pattern: pattern that should match the modem path
78 (ModemManager, Modem DBUS Path) tuple
90 raise error.TestError('Expected only one modem, got: '
    [all...]
  /system/connectivity/shill/cellular/
modem_manager.cc 20 #include <mm/mm-modem.h>
22 #include "shill/cellular/modem.h"
59 LOG(INFO) << "Modem manager " << service_ << " appeared.";
64 LOG(INFO) << "Modem manager " << service_ << " vanished.";
78 void ModemManager::RecordAddedModem(shared_ptr<Modem> modem) {
79 modems_[modem->path()] = modem;
83 LOG(INFO) << "Remove modem: " << path;
107 LOG(INFO) << "Start watching modem manager service: " << service()
    [all...]
modem_proxy_interface.h 32 const std::string& modem,
36 // These are the methods that a ModemManager.Modem proxy must support. The
modem_manager_1.cc 23 #include "shill/cellular/modem.h"
50 LOG(INFO) << "Start watching modem manager service: " << service();
67 LOG(INFO) << "Stop watching modem manager service: " << service();
99 void ModemManager1::InitModem1(shared_ptr<Modem1> modem,
101 if (modem == nullptr) {
104 modem->CreateDeviceMM1(properties);
115 LOG(ERROR) << "Interfaces added, but not modem interface.";
128 // In theory, a modem could drop, say, 3GPP, but not CDMA. In
130 LOG(ERROR) << "Interfaces removed, but not modem interface";
modem_manager.h 39 class Modem;
43 // Handles a modem manager service and creates and destroys modem instances.
52 // Starts watching for and handling the DBus modem manager service.
55 // Stops watching for the DBus modem manager service and destroys any
62 typedef std::map<std::string, std::shared_ptr<Modem>> Modems;
73 // Connect/Disconnect to a modem manager service.
80 // Put the modem into our modem map
81 void RecordAddedModem(std::shared_ptr<Modem> modem)
    [all...]
  /external/autotest/client/cros/cellular/wardmodem/
modem_configuration.py 20 All modem specific configuration needed by WardModem.
28 def __init__(self, modem=None):
30 @param modem The modem for which the configuration needs to be loaded.
31 |modem| can be None. In that case, only the configuration for
32 the base modem is loaded.
33 Otherwise, |modem| must be a key in |MODEM_CONF_FILE|.
37 if modem and modem not in MODEM_CONF_FILE:
38 raise wme.WardModemSetupException('Unknown modem: |%s|' % modem
    [all...]
  /external/autotest/client/site_tests/network_LTEActivate/
network_LTEActivate.py 36 Makes the modem look like it has been activated to satisfy the test
43 modem = self.test.pseudomm.wait_for_modem(timeout_seconds=LONG_TIMEOUT)
44 modem.iface_properties.Set(mm1_constants.I_MODEM,
47 # Put the modem in the unknown subscription state so that the mdn value is
58 Configures the pseudomodem to run with the test modem, runs the test
67 """ Returns the name of the custom modem to use for this test. """
81 This test verifies that the modem resets after online payment.
94 # 'activating' and the modem should reset immediately.
106 case of a post-payment registration and the modem finally registers
120 # 'activating' and the modem should reset immediately
    [all...]
  /external/autotest/client/site_tests/network_CDMAActivate/
network_CDMAActivate.py 36 Restarts the pseudomodem with the modem object to be used for this
52 modem = self.pseudomm.get_modem()
53 return modem.properties(mm1_constants.I_MODEM_CDMA)['ActivationState']
81 # The modem state should be REGISTERED.
116 'test-modem-class' : 'UnactivatedCdmaModem'}
122 # The modem state should be REGISTERED.
134 # The modem should reset in 5 seconds. Wait 5 more seconds to make sure
149 'test-modem-class' : 'ActivationRetryModem',
150 'test-modem-arg' : [self.NUM_ACTIVATE_RETRIES]}
156 # The modem state should be REGISTERED
    [all...]
  /external/autotest/client/site_tests/network_SwitchCarrier/
network_SwitchCarrier.py 20 self.modem = self.bus.get_object(self.CMM, dev)
54 status = self.modem.GetStatus(dbus_interface=self.IMODEM_SIMPLE)
62 self.modem.SetCarrier(c, dbus_interface=self.IMODEM_GOBI)
67 self.modem = self.bus.get_object(self.CMM, modems[0])
69 self.modem = None
77 self.IMODEM_SIMPLE = self.IMM + '.Modem.Simple'
78 self.IMODEM_GOBI = 'org.chromium.ModemManager.Modem.Gobi'
94 self.device_added(self.modem.__dbus_object_path__) # start test
97 if self.modem and self.to_carrier != carrier:
  /external/autotest/client/cros/
network.py 25 def _Bug24628WorkaroundEnable(modem):
26 """Enables a modem. Try again if a SerialResponseTimeout is received."""
31 modem.Enable(True)
44 # TODO(rochberg): Move modem-specific functions to cellular/cell_utils
67 modem = manager.GetModem(path)
68 version = modem.GetVersion()
70 # modem is connecting or disconnecting. Work around the issue by waiting
73 # on the modem side.
75 lambda: not modem.IsConnectingOrDisconnecting(),
76 exception=utils.TimeoutError('Timed out waiting for modem to '
    [all...]
  /external/autotest/client/cros/networking/
cellular_proxy.py 92 def reset_modem(self, modem, expect_device=True, expect_powered=True,
94 """Reset |modem|.
105 @param modem: DBus object for the modem to reset.
107 the same modem after the reset.
108 @param expect_powered: If True, ensure that the modem is powered on
111 reappeared modem also reappears.
122 logging.info('Resetting modem')
123 # Obtain identifying information about the modem.
124 properties = modem.GetProperties(utf8_strings=True
    [all...]
  /external/autotest/client/cros/cellular/pseudomodem/
testing.py 18 simulate network events (such as SMS) or various other modem configurations
23 def __init__(self, modem, bus):
24 self._modem = modem
45 return { pm_constants.I_TESTING: { 'Modem': self._modem.path } }
65 Sets the VendorPcoInfo to the specified value. If the Modem.Modem3gpp
82 Modem.Modem3gpp properties are currently not exposed (e.g. due to a
86 subscription state when the modem is not registered on the
89 subscription state when the modem is registered on the network.
sim.py 45 Broadband modems usually need a SIM card to operate. Each Modem object will
150 Increments the current index at which this modem is exposed on DBus.
151 E.g. if the current path is org/freedesktop/ModemManager/Modem/0, the
152 path will change to org/freedesktop/ModemManager/Modem/1.
224 def modem(self): member in class:SIM
226 @returns: the modem object that this SIM is currently plugged into.
232 @modem.setter
233 def modem(self, modem): member in class:SIM
235 Assigns a modem object to this SIM, so that the modem knows about it
    [all...]
sms_handler.py 22 as well as notifying the modem when a new SMS is received.
33 def __init__(self, modem, bus=None):
34 self._modem = modem
  /external/autotest/client/site_tests/network_3GModemControl/
network_3GModemControl.py 21 # Number of times and seconds between modem state checks to ensure that the
22 # modem is not in a temporary transition state.
31 """Control the modem mostly using shill Technology interfaces."""
55 """Control the modem using modem manager DBUS interfaces."""
56 def __init__(self, modem, slow_connect):
57 self.modem = modem
61 self.modem.Enable(True)
64 self.modem.Enable(False
    [all...]
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/
TelephonyDevController.java 191 * get total number of registered modem.
202 * get modem at index 'index'.
207 loge("getModem: no registered modem device?!?");
212 loge("getModem: out-of-bounds access for modem device " + index + " max: " + getModemCount());
253 * get modem associated with sim index 'simIndex'.
258 loge("getModemForSim: no registered modem/sim device?!?");
270 for (HardwareConfig modem: mModems) {
271 if (modem.uuid.equals(sim.modemUuid)) {
272 return modem;
281 * get all sim's associated with modem at index 'modemIndex'
298 HardwareConfig modem = getModem(modemIndex); local
    [all...]
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/sysroot/usr/include/linux/
comstats.h 59 unsigned long modem; member in struct:__anon38598
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/linux/
comstats.h 59 unsigned long modem; member in struct:__anon40512
  /hardware/qcom/gps/msm8960/utils/
Android.mk 1 #Compile this library only for builds with the latest modem image
  /hardware/qcom/gps/msmcobalt/utils/platform_lib_abstractions/loc_stub/src/
Android.mk 3 #Compile this library only for builds with the latest modem image
  /external/autotest/client/site_tests/network_3GDisableWhileConnecting/
network_3GDisableWhileConnecting.py 66 logging.info('Modem enabled: %s', enabled)
83 * we wait for the modem to power off, at which point
102 # state change has happened: the modem never got to a different
159 """Tests that disable-while-connecting works at the modem-manager level.
169 the device, also sets a timer that calls GetStatus on the modem.
178 return 'Gobi' in self.test.test_env.modem.path
184 # will always succeed, so we only check it if the modem is a Gobi.
193 self.simple_modem = self.test.test_env.modem.SimpleModem()
195 logging.info('Modem path: %s', self.test.test_env.modem.path
    [all...]
  /external/autotest/client/site_tests/network_3GRecoverFromGobiDesync/
network_3GRecoverFromGobiDesync.py 31 # userlevel UDEV sees the modem come and go
105 """Clock the StartIfReady() state machine when we see a modem added."""
106 logging.info('Modem %s added' % path)
107 self.StartIfReady() # Checks to see if the modem is present
130 raise Exception('Saw modem appear before it disappeared')
174 # Wait for cromo to report that the modem is present.
197 # Check to see if the modem is present and remove that from the
215 """This covers the case where the modem makes an API call that
222 self.test_env.modem.GobiModem().InjectFault('SdkError', 12)
223 self.test_env.modem.SimpleModem().GetStatus(
    [all...]
  /external/autotest/client/site_tests/cellular_OutOfCreditsSubscriptionState/
cellular_OutOfCreditsSubscriptionState.py 23 on the modem subscription state.
29 # Simulate an Altair 3100 modem since that modem supports subscription
32 # TODO(thieule): Set the modem model using the pseudomodem testing
34 self.modem.iface_properties.Set(
44 self.modem.wait_for_states([mm1_constants.MM_MODEM_STATE_REGISTERED,
55 logging.info('Initialize modem with provisioned state')
69 logging.info('Initialize modem with out-of-credits state')
83 logging.info('Initialize modem with provisioned state')
88 logging.info('Mark modem as out-of-credits'
    [all...]
  /external/autotest/client/site_tests/network_3GScanningProperty/files/
modems.py 33 def __init__(self, modem):
34 super(ScanMachine, self).__init__(modem)
63 """ Create a ScanMachine when needed in the modem. """
70 """ 3GPP modem that uses ScanMachine for the Scan call. """

Completed in 412 milliseconds

1 2 3 4