Lines Matching refs:error
125 KeyValueStore(CellularCapabilityGSM::*get)(Error* error)) { in HelpRegisterConstDerivedKeyValueStore() argument
169 void CellularCapabilityGSM::StartModem(Error* error, in StartModem() argument
299 Error* error, in Connect() argument
305 simple_proxy_->Connect(properties, error, cb, kTimeoutConnect); in Connect()
309 const Error& error) { in OnConnectReply() argument
315 } else if (error.IsFailure()) { in OnConnectReply()
321 if (error.type() == Error::kInvalidApn && !apn_try_list_.empty()) { in OnConnectReply()
327 Error error; in OnConnectReply() local
328 Connect(props, &error, callback); in OnConnectReply()
336 callback.Run(error); in OnConnectReply()
347 Error error; in GetIMEI() local
351 card_proxy_->GetIMEI(&error, cb, kTimeoutDefault); in GetIMEI()
352 if (error.IsFailure()) in GetIMEI()
353 callback.Run(error); in GetIMEI()
356 callback.Run(error); in GetIMEI()
364 Error error; in GetIMSI() local
369 card_proxy_->GetIMSI(&error, cb, kTimeoutDefault); in GetIMSI()
370 if (error.IsFailure()) { in GetIMSI()
372 callback.Run(error); in GetIMSI()
376 callback.Run(error); in GetIMSI()
384 Error error; in GetSPN() local
389 card_proxy_->GetSPN(&error, cb, kTimeoutDefault); in GetSPN()
390 if (error.IsFailure()) in GetSPN()
391 callback.Run(error); in GetSPN()
394 callback.Run(error); in GetSPN()
402 Error error; in GetMSISDN() local
408 card_proxy_->GetMSISDN(&error, cb, kTimeoutDefault); in GetMSISDN()
409 if (error.IsFailure()) in GetMSISDN()
410 callback.Run(error); in GetMSISDN()
413 callback.Run(error); in GetMSISDN()
454 Error error; in Register() local
457 network_proxy_->Register(cellular()->selected_network(), &error, cb, in Register()
459 if (error.IsFailure()) in Register()
460 callback.Run(error); in Register()
465 Error* error, in RegisterOnNetwork() argument
468 CHECK(error); in RegisterOnNetwork()
472 network_proxy_->Register(network_id, error, cb, kTimeoutRegister); in RegisterOnNetwork()
476 const Error& error) { in OnRegisterReply() argument
477 SLOG(this, 2) << __func__ << "(" << error << ")"; in OnRegisterReply()
479 if (error.IsSuccess()) { in OnRegisterReply()
482 callback.Run(error); in OnRegisterReply()
494 callback.Run(error); in OnRegisterReply()
514 Error* error, const ResultCallback& callback) { in RequirePIN() argument
515 CHECK(error); in RequirePIN()
516 card_proxy_->EnablePIN(pin, require, error, callback, kTimeoutDefault); in RequirePIN()
520 Error* error, in EnterPIN() argument
522 CHECK(error); in EnterPIN()
523 card_proxy_->SendPIN(pin, error, callback, kTimeoutDefault); in EnterPIN()
528 Error* error, in UnblockPIN() argument
530 CHECK(error); in UnblockPIN()
531 card_proxy_->SendPUK(unblock_code, pin, error, callback, kTimeoutDefault); in UnblockPIN()
536 Error* error, const ResultCallback& callback) { in ChangePIN() argument
537 CHECK(error); in ChangePIN()
538 card_proxy_->ChangePIN(old_pin, new_pin, error, callback, kTimeoutDefault); in ChangePIN()
541 void CellularCapabilityGSM::Scan(Error* error, in Scan() argument
545 network_proxy_->Scan(error, cb, kTimeoutScan); in Scan()
551 const Error& error) { in OnScanReply() argument
555 callback.Run(found_networks, error); in OnScanReply()
729 const Error& error) { in OnGetRegistrationInfoReply() argument
730 if (error.IsSuccess()) in OnGetRegistrationInfoReply()
735 const Error& error) { in OnGetSignalQualityReply() argument
736 if (error.IsSuccess()) in OnGetSignalQualityReply()
742 const Error& error) { in OnGetIMEIReply() argument
743 if (error.IsSuccess()) { in OnGetIMEIReply()
747 SLOG(this, 2) << "GetIMEI failed - " << error; in OnGetIMEIReply()
749 callback.Run(error); in OnGetIMEIReply()
754 const Error& error) { in OnGetIMSIReply() argument
755 if (error.IsSuccess()) { in OnGetIMSIReply()
763 callback.Run(error); in OnGetIMSIReply()
767 callback.Run(error); in OnGetIMSIReply()
771 SLOG(this, 2) << "GetIMSI failed - " << error << ". Retrying"; in OnGetIMSIReply()
779 LOG(INFO) << "GetIMSI failed - " << error; in OnGetIMSIReply()
781 callback.Run(error); in OnGetIMSIReply()
788 const Error& error) { in OnGetSPNReply() argument
789 if (error.IsSuccess()) { in OnGetSPNReply()
794 SLOG(this, 2) << "GetSPN failed - " << error; in OnGetSPNReply()
796 callback.Run(error); in OnGetSPNReply()
801 const Error& error) { in OnGetMSISDNReply() argument
802 if (error.IsSuccess()) { in OnGetMSISDNReply()
806 SLOG(this, 2) << "GetMSISDN failed - " << error; in OnGetMSISDNReply()
808 callback.Run(error); in OnGetMSISDNReply()