Closed Bug 1272057 Opened 10 years ago Closed 10 years ago

API17 guard is required to use Location::getElapsedRealtimeNanos()

Categories

(Cloud Services :: Server: Location, defect)

Unspecified
Android
defect
Not set
normal

Tracking

(firefox49 fixed)

RESOLVED FIXED
mozilla49
Tracking Status
firefox49 --- fixed

People

(Reporter: vng, Assigned: vng)

Details

Attachments

(1 file, 2 obsolete files)

Assignee: nobody → vng
Attached patch bug1272057.patch (obsolete) — Splinter Review
Attachment #8752373 - Flags: superreview?(hschlichting)
Attachment #8752373 - Flags: review?(michelangelo)
Target Milestone: --- → mozilla49
This patch is required to fix a bug introduced in bug1259598
This patch is required to fix a bug introduced in bug1259598
Comment on attachment 8752373 [details] [diff] [review] bug1272057.patch Review of attachment 8752373 [details] [diff] [review]: ----------------------------------------------------------------- You got the wrong commits into this patch again, this includes offline geo code.
Attachment #8752373 - Flags: superreview?(hschlichting) → superreview-
Comment on attachment 8752373 [details] [diff] [review] bug1272057.patch Review of attachment 8752373 [details] [diff] [review]: ----------------------------------------------------------------- Yep, as above. Please clean-up the dom/geo code from all those watchpoints, thanks!:)
Attachment #8752373 - Flags: review?(michelangelo) → review-
Attached patch Diff from the try server (obsolete) — Splinter Review
Attachment #8752373 - Attachment is obsolete: true
Comment on attachment 8754031 [details] [diff] [review] Diff from the try server This diff comes from the try server.
Attachment #8754031 - Flags: superreview?(hschlichting)
Attachment #8754031 - Flags: review?(michelangelo)
Comment on attachment 8754031 [details] [diff] [review] Diff from the try server Review of attachment 8754031 [details] [diff] [review]: ----------------------------------------------------------------- Please double-check the patch as I'm not really sure it builds...:) Other than those two nits, r=me. ::: mobile/android/stumbler/java/org/mozilla/mozstumbler/service/stumblerthread/datahandling/StumblerBundle.java @@ +154,5 @@ > > + long gpsTimeSinceBootInMS = 0; > + > + if (Build.VERSION.SDK_INT >= 17) { > + gpsTimeSinceBootInMS = mGpsPosition.getElapsedRealtimeNanos()/1000000); I think you may want to double-check this. ;) Also a nit: it'd look more consistent with the surrounding code to surround the / operator with a space. @@ +165,5 @@ > wifiEntry.put("signal", s.level); > > + if (Build.VERSION.SDK_INT >= 17) { > + long wifiTimeSinceBootInMS = (s.timestamp / 1000); > + long ageMS = wifiTimeSinceBootInMS - gpsTimeSinceBootInMS; nit: spacing.
Attachment #8754031 - Flags: review?(michelangelo) → review-
Attachment #8754031 - Attachment is obsolete: true
Attachment #8754031 - Flags: superreview?(hschlichting)
Attachment #8754521 - Flags: superreview?(hschlichting)
Comment on attachment 8754521 [details] [diff] [review] Finally. a proper patch. Review of attachment 8754521 [details] [diff] [review]: ----------------------------------------------------------------- Finally ;)
Attachment #8754521 - Flags: superreview?(hschlichting) → superreview+
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: