Source:
<code>public MLSJSONObject toMLSGeosubmit() throws JSONException { <START> ISystemClock clock = (ISystemClock) ServiceLocator.getInstance().getService(ISystemClock.class); <END> MLSJSONObject headerFields = new MLSJSONObject(); headerFields.put(DataStorageConstants.ReportsColumns.LAT, Math.floor(mGpsPosition.getLatitude() * 1.0E6) / 1.0E6); headerFields.put(DataStorageConstants.ReportsColumns.LON, Math.floor(mGpsPosition.getLongitude() * 1.0E6) / 1.0E6); headerFields.put(DataStorageConstants.ReportsColumns.TIME, mGpsPosition.getTime()); if (mCellData.size() > 0) { JSONArray cellJSON = new JSONArray(); for (CellInfo c : mCellData.values()) { JSONObject obj = c.toJSONObject(); cellJSON.put(obj); } headerFields.put(DataStorageConstants.ReportsColumns.CELL, cellJSON); } if (mWifiData.size() > 0) { JSONArray wifis = new JSONArray(); for (ScanResult scanResult : mWifiData.values()) { JSONObject wifiEntry = new JSONObject(); wifiEntry.put("macAddress", scanResult.BSSID); if (scanResult.frequency != 0) { wifiEntry.put("frequency", scanResult.frequency); } if (scanResult.level != 0) { wifiEntry.put("signalStrength", scanResult.level); } long gpsTimeSinceBootInMS = (mGpsPosition.getElapsedRealtimeNanos()/1000000); long wifiTimeSinceBootInMS = (scanResult.timestamp / 1000); long ageMS = wifiTimeSinceBootInMS - gpsTimeSinceBootInMS; wifiEntry.put("age", ageMS); wifis.put(wifiEntry); } headerFields.put(DataStorageConstants.ReportsColumns.WIFI, wifis); } if (mGpsPosition.hasAltitude()) { headerFields.put(DataStorageConstants.ReportsColumns.ALTITUDE, (float) mGpsPosition.getAltitude()); } if (mGpsPosition.hasAccuracy()) { headerFields.put(DataStorageConstants.ReportsColumns.ACCURACY, mGpsPosition.getAccuracy()); } return headerFields; }</code><technical_language>This in modified code</technical_language>

Target:
public MLSJSONObject toMLSGeosubmit() throws JSONException { MLSJSONObject headerFields = new MLSJSONObject(); headerFields.put(DataStorageConstants.ReportsColumns.LAT, Math.floor(mGpsPosition.getLatitude() * 1.0E6) / 1.0E6); headerFields.put(DataStorageConstants.ReportsColumns.LON, Math.floor(mGpsPosition.getLongitude() * 1.0E6) / 1.0E6); headerFields.put(DataStorageConstants.ReportsColumns.TIME, mGpsPosition.getTime()); if (mCellData.size() > 0) { JSONArray cellJSON = new JSONArray(); for (CellInfo c : mCellData.values()) { JSONObject obj = c.toJSONObject(); cellJSON.put(obj); } headerFields.put(DataStorageConstants.ReportsColumns.CELL, cellJSON); } if (mWifiData.size() > 0) { JSONArray wifis = new JSONArray(); long gpsTimeSinceBootInMS = (mGpsPosition.getElapsedRealtimeNanos()/1000000); for (ScanResult scanResult : mWifiData.values()) { JSONObject wifiEntry = new JSONObject(); wifiEntry.put("macAddress", scanResult.BSSID); if (scanResult.frequency != 0) { wifiEntry.put("frequency", scanResult.frequency); } if (scanResult.level != 0) { wifiEntry.put("signalStrength", scanResult.level); } long wifiTimeSinceBootInMS = (scanResult.timestamp / 1000); long ageMS = wifiTimeSinceBootInMS - gpsTimeSinceBootInMS; wifiEntry.put("age", ageMS); wifis.put(wifiEntry); } headerFields.put(DataStorageConstants.ReportsColumns.WIFI, wifis); } if (mGpsPosition.hasAltitude()) { headerFields.put(DataStorageConstants.ReportsColumns.ALTITUDE, (float) mGpsPosition.getAltitude()); } if (mGpsPosition.hasAccuracy()) { headerFields.put(DataStorageConstants.ReportsColumns.ACCURACY, mGpsPosition.getAccuracy()); } return headerFields; }