private static WritableMap setLTEInfo()

in packages/@fbcmobile-signalscan/android/src/main/java/com/fbc/signalscan/CellScanResultsModule.java [387:407]


  private static WritableMap setLTEInfo(CellInfoLte cell) {
    WritableMap fields = Arguments.createMap();
    fields.putString(CELL_FIELD_TYPE, LTE);
    final CellSignalStrengthLte lte = cell.getCellSignalStrength();
    final CellIdentityLte identityLte = cell.getCellIdentity();
    fields.putString(CELL_FIELD_ID, Integer.toString(identityLte.getCi()));
    fields.putInt(CELL_FIELD_DBM, lte.getDbm() != Integer.MAX_VALUE ? lte.getDbm() : 0);
    fields.putString(CELL_FIELD_PCI, Integer.toString(identityLte.getPci()));
    fields.putString(CELL_FIELD_TAC, Integer.toString(identityLte.getTac()));
    fields.putInt(CELL_FIELD_TIMING_ADVANCE, lte.getTimingAdvance());
    fields.putString(CELL_FIELD_MCC, Integer.toString(identityLte.getMcc()));
    fields.putString(CELL_FIELD_MNC, Integer.toString(identityLte.getMnc()));
    if (Build.VERSION.SDK_INT >= 24) {
      fields.putInt(CELL_FIELD_EARFCN, identityLte.getEarfcn());
    }
    if (Build.VERSION.SDK_INT >= 28) {
      fields.putString(CELL_FIELD_MCC, identityLte.getMccString());
      fields.putString(CELL_FIELD_MNC, identityLte.getMncString());
    }
    return fields;
  }