private static Bundle getCellLocationInternal(VCell cell) { if (cell != null) { Bundle cellData = new Bundle(); if (cell.type == 2) { try { CdmaCellLocation cellLoc = new CdmaCellLocation(); cellLoc.setCellLocationData(cell.baseStationId, Integer.MAX_VALUE, Integer.MAX_VALUE, cell.systemId, cell.networkId); cellLoc.fillInNotifierBundle(cellData); } catch (Throwable e) { cellData.putInt("baseStationId", cell.baseStationId); cellData.putInt("baseStationLatitude", Integer.MAX_VALUE); cellData.putInt("baseStationLongitude", Integer.MAX_VALUE); cellData.putInt("systemId", cell.systemId); cellData.putInt("networkId", cell.networkId); } } else { try { GsmCellLocation cellLoc = new GsmCellLocation(); cellLoc.setLacAndCid(cell.lac, cell.cid); cellLoc.fillInNotifierBundle(cellData); } catch (Throwable e) { cellData.putInt("lac", cell.lac); cellData.putInt("cid", cell.cid); cellData.putInt("psc", cell.psc); } } return cellData; } return null; }
private static Bundle getCellLocationInternal(VCell cell) { if (cell != null) { Bundle cellData = new Bundle(); if (cell.type == 2) { try { CdmaCellLocation cellLoc = new CdmaCellLocation(); cellLoc.setCellLocationData(cell.baseStationId, Integer.MAX_VALUE, Integer.MAX_VALUE, cell.systemId, cell.networkId); cellLoc.fillInNotifierBundle(cellData); } catch (Throwable e) { cellData.putInt("baseStationId", cell.baseStationId); cellData.putInt("baseStationLatitude", Integer.MAX_VALUE); cellData.putInt("baseStationLongitude", Integer.MAX_VALUE); cellData.putInt("systemId", cell.systemId); cellData.putInt("networkId", cell.networkId); } } else { try { GsmCellLocation cellLoc = new GsmCellLocation(); cellLoc.setLacAndCid(cell.lac, cell.cid); cellLoc.fillInNotifierBundle(cellData); } catch (Throwable e) { cellData.putInt("lac", cell.lac); cellData.putInt("cid", cell.cid); cellData.putInt("psc", cell.psc); } } return cellData; } return null; }
private static Bundle getCellLocationInternal(VCell cell) { if (cell != null) { Bundle cellData = new Bundle(); if (cell.type == 2) { try { CdmaCellLocation cellLoc = new CdmaCellLocation(); cellLoc.setCellLocationData(cell.baseStationId, Integer.MAX_VALUE, Integer.MAX_VALUE, cell.systemId, cell.networkId); cellLoc.fillInNotifierBundle(cellData); } catch (Throwable e) { cellData.putInt("baseStationId", cell.baseStationId); cellData.putInt("baseStationLatitude", Integer.MAX_VALUE); cellData.putInt("baseStationLongitude", Integer.MAX_VALUE); cellData.putInt("systemId", cell.systemId); cellData.putInt("networkId", cell.networkId); } } else { try { GsmCellLocation cellLoc = new GsmCellLocation(); cellLoc.setLacAndCid(cell.lac, cell.cid); cellLoc.fillInNotifierBundle(cellData); } catch (Throwable e) { cellData.putInt("lac", cell.lac); cellData.putInt("cid", cell.cid); cellData.putInt("psc", cell.psc); } } return cellData; } return null; }