Lines Matching refs:mConfig

592         GnssConfig mConfig;  in gnssUpdateConfigCommand()  member
603 mConfig(config), in gnssUpdateConfigCommand()
617 if (mConfig.flags & GNSS_CONFIG_FLAGS_GPS_LOCK_VALID_BIT) { in gnssUpdateConfigCommand()
618 uint32_t newGpsLock = mAdapter.convertGpsLock(mConfig.gpsLock); in gnssUpdateConfigCommand()
621 err = mApi.setGpsLock(mConfig.gpsLock); in gnssUpdateConfigCommand()
627 if (mConfig.flags & GNSS_CONFIG_FLAGS_SUPL_VERSION_VALID_BIT) { in gnssUpdateConfigCommand()
628 uint32_t newSuplVersion = mAdapter.convertSuplVersion(mConfig.suplVersion); in gnssUpdateConfigCommand()
631 err = mApi.setSUPLVersion(mConfig.suplVersion); in gnssUpdateConfigCommand()
639 if (mConfig.flags & GNSS_CONFIG_FLAGS_SET_ASSISTANCE_DATA_VALID_BIT) { in gnssUpdateConfigCommand()
640 if (GNSS_ASSISTANCE_TYPE_SUPL == mConfig.assistanceServer.type) { in gnssUpdateConfigCommand()
644 if (NULL == mConfig.assistanceServer.hostName || in gnssUpdateConfigCommand()
646 mConfig.assistanceServer.hostName, in gnssUpdateConfigCommand()
650 mConfig.assistanceServer.hostName, in gnssUpdateConfigCommand()
651 mConfig.assistanceServer.port); in gnssUpdateConfigCommand()
659 } else if (GNSS_ASSISTANCE_TYPE_C2K == mConfig.assistanceServer.type) { in gnssUpdateConfigCommand()
661 if (!mAdapter.resolveInAddress(mConfig.assistanceServer.hostName, &addr)) { in gnssUpdateConfigCommand()
663 __func__, mConfig.assistanceServer.hostName); in gnssUpdateConfigCommand()
667 err = mApi.setServer(ip, mConfig.assistanceServer.port, in gnssUpdateConfigCommand()
672 __func__, mConfig.assistanceServer.type); in gnssUpdateConfigCommand()
679 if (mConfig.flags & GNSS_CONFIG_FLAGS_LPP_PROFILE_VALID_BIT) { in gnssUpdateConfigCommand()
680 uint32_t newLppProfile = mAdapter.convertLppProfile(mConfig.lppProfile); in gnssUpdateConfigCommand()
683 err = mApi.setLPPConfig(mConfig.lppProfile); in gnssUpdateConfigCommand()
691 if (mConfig.flags & GNSS_CONFIG_FLAGS_LPPE_CONTROL_PLANE_VALID_BIT) { in gnssUpdateConfigCommand()
693 mAdapter.convertLppeCp(mConfig.lppeControlPlaneMask); in gnssUpdateConfigCommand()
696 err = mApi.setLPPeProtocolCp(mConfig.lppeControlPlaneMask); in gnssUpdateConfigCommand()
704 if (mConfig.flags & GNSS_CONFIG_FLAGS_LPPE_USER_PLANE_VALID_BIT) { in gnssUpdateConfigCommand()
706 mAdapter.convertLppeUp(mConfig.lppeUserPlaneMask); in gnssUpdateConfigCommand()
709 err = mApi.setLPPeProtocolUp(mConfig.lppeUserPlaneMask); in gnssUpdateConfigCommand()
717 if (mConfig.flags & GNSS_CONFIG_FLAGS_AGLONASS_POSITION_PROTOCOL_VALID_BIT) { in gnssUpdateConfigCommand()
719 mAdapter.convertAGloProt(mConfig.aGlonassPositionProtocolMask); in gnssUpdateConfigCommand()
722 err = mApi.setAGLONASSProtocol(mConfig.aGlonassPositionProtocolMask); in gnssUpdateConfigCommand()
730 if (mConfig.flags & GNSS_CONFIG_FLAGS_EM_PDN_FOR_EM_SUPL_VALID_BIT) { in gnssUpdateConfigCommand()
731 uint32_t newEP4ES = mAdapter.convertEP4ES(mConfig.emergencyPdnForEmergencySupl); in gnssUpdateConfigCommand()
740 if (mConfig.flags & GNSS_CONFIG_FLAGS_SUPL_EM_SERVICES_BIT) { in gnssUpdateConfigCommand()
741 uint32_t newSuplEs = mAdapter.convertSuplEs(mConfig.suplEmergencyServices); in gnssUpdateConfigCommand()
750 if (mConfig.flags & GNSS_CONFIG_FLAGS_SUPL_MODE_BIT) { in gnssUpdateConfigCommand()
751 uint32_t newSuplMode = mAdapter.convertSuplMode(mConfig.suplModeMask); in gnssUpdateConfigCommand()