Lines Matching refs:preferred
423 static int query_ctec(ModemInfo *mdm, int *current, int32_t *preferred);
424 static int parse_technology_response(const char *response, int *current, int32_t *preferred);
1439 int32_t preferred; local
1442 preferred = net2pmask[value];
1444 preferred = getPreferredFromBitmap(value, &index);
1446 …GD("requestSetPreferredNetworkType: current: %x. New: %x", PREFERRED_NETWORK(sMdmInfo), preferred);
1458 RLOGD("old != preferred: %d", old != preferred);
1459 if (old != preferred) {
1460 asprintf(&cmd, "AT+CTEC=%d,\"%x\"", current, preferred);
1488 int preferred; local
1491 switch ( query_ctec(sMdmInfo, NULL, &preferred) ) {
1498 if (preferred == net2pmask[i]) {
1502 RLOGE("Unknown preferred mode received from modem: %d", preferred);
1509 i = getBitmapFromPreferred(preferred);
5670 int parse_technology_response( const char *response, int *current, int32_t *preferred ) argument
5701 if (preferred) {
5702 *preferred = pt;
5748 int query_ctec(ModemInfo *mdm __unused, int *current, int32_t *preferred) argument
5754 RLOGD("query_ctec. current: %p, preferred: %p", current, preferred);
5757 res = parse_technology_response(response->p_intermediates->line, current, preferred);
5772 int32_t preferred; local
5774 if (query_ctec(mdm, &tech, &preferred) == 0) {
5776 mdm->preferredNetworkMode = preferred;