Home | History | Annotate | Download | only in reference-ril

Lines Matching defs:preferred

83     // Preferred mode bitmask. This is actually 4 byte-sized bitmasks with different priority values,
91 // a preferred mode of GSM, WCDMA, CDMA, and EvDo in which all are equally preferrable, whereas
92 // 0x00000201 represents a mode with GSM and WCDMA, in which WCDMA is preferred over GSM
251 static int query_ctec(ModemInfo *mdm, int *current, int32_t *preferred);
252 static int parse_technology_response(const char *response, int *current, int32_t *preferred);
922 int32_t preferred = net2pmask[value];
924 RLOGD("requestSetPreferredNetworkType: current: %x. New: %x", PREFERRED_NETWORK(sMdmInfo), preferred);
934 RLOGD("old != preferred: %d", old != preferred);
935 if (old != preferred) {
936 asprintf(&cmd, "AT+CTEC=%d,\"%x\"", current, preferred);
952 case 0: // Both current and preferred were parsed
964 int preferred;
967 switch ( query_ctec(sMdmInfo, NULL, &preferred) ) {
972 case 0: // Both current and preferred were parsed
974 if (preferred == net2pmask[i]) {
979 RLOGE("Unknown preferred mode received from modem: %d", preferred);
2821 * The values read from the response are stored in current and preferred.
2822 * Both current and preferred may be null. The corresponding value is ignored in that case.
2826 * 0 if the response includes both current technology and preferred mode
2828 int parse_technology_response( const char *response, int *current, int32_t *preferred )
2859 if (preferred) {
2860 *preferred = pt;
2894 * and preferred modes. It leaves values in the addresses pointed to by
2895 * current and preferred. If any of those pointers are NULL, the corresponding value
2901 * @preferred A pointer to store the preferred mode returned by the modem. May be null.
2903 * 1 if only the current mode was returned by modem (or failed to parse preferred)
2904 * 0 if both current and preferred were returned correctly
2906 int query_ctec(ModemInfo *mdm __unused, int *current, int32_t *preferred)
2912 RLOGD("query_ctec. current: %p, preferred: %p", current, preferred);
2915 res = parse_technology_response(response->p_intermediates->line, current, preferred);
2930 int32_t preferred;
2932 if (query_ctec(mdm, &tech, &preferred) == 0) {
2934 mdm->preferredNetworkMode = preferred;
3168 case 0: // preferred mode correctly parsed