in packages/@fbcmobile-signalscan/android/src/main/java/com/fbc/signalscan/CellScanResultsModule.java [410:429]
private static WritableMap setWCDMAInfo(CellInfoWcdma cell) {
WritableMap fields = Arguments.createMap();
fields.putString(CELL_FIELD_TYPE, WCDMA);
final CellSignalStrengthWcdma wcdma = cell.getCellSignalStrength();
final CellIdentityWcdma identityWcdma = cell.getCellIdentity();
fields.putString(CELL_FIELD_ID, Integer.toString(identityWcdma.getCid()));
fields.putInt(CELL_FIELD_DBM, wcdma.getDbm() != Integer.MAX_VALUE ? wcdma.getDbm() : 0);
fields.putString(CELL_FIELD_LAC, Integer.toString(identityWcdma.getLac()));
fields.putString(CELL_FIELD_MCC, Integer.toString(identityWcdma.getMcc()));
fields.putString(CELL_FIELD_MNC, Integer.toString(identityWcdma.getMnc()));
fields.putString(CELL_FIELD_PSC, Integer.toString(identityWcdma.getPsc()));
if (Build.VERSION.SDK_INT >= 24) {
fields.putInt(CELL_FIELD_UARFCN, identityWcdma.getUarfcn());
}
if (Build.VERSION.SDK_INT >= 28) {
fields.putString(CELL_FIELD_MCC, identityWcdma.getMccString());
fields.putString(CELL_FIELD_MNC, identityWcdma.getMncString());
}
return fields;
}