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)
Tracking
(firefox49 fixed)
RESOLVED
FIXED
mozilla49
| Tracking | Status | |
|---|---|---|
| firefox49 | --- | fixed |
People
(Reporter: vng, Assigned: vng)
Details
Attachments
(1 file, 2 obsolete files)
|
2.54 KB,
patch
|
hschlichting
:
superreview+
|
Details | Diff | Splinter Review |
This is a port of the bug from https://github.com/mozilla/MozStumbler/issues/1792
and patch from https://github.com/mozilla/MozStumbler/pull/1793
| Assignee | ||
Updated•10 years ago
|
Assignee: nobody → vng
| Assignee | ||
Comment 1•10 years ago
|
||
This is a port of the patch from https://github.com/mozilla/MozStumbler/pull/1793/files
Attachment #8752373 -
Flags: superreview?(hschlichting)
Attachment #8752373 -
Flags: review?(michelangelo)
| Assignee | ||
Updated•10 years ago
|
Target Milestone: --- → mozilla49
| Assignee | ||
Comment 2•10 years ago
|
||
This patch is required to fix a bug introduced in bug1259598
| Assignee | ||
Comment 3•10 years ago
|
||
This patch is required to fix a bug introduced in bug1259598
Comment 4•10 years ago
|
||
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 5•10 years ago
|
||
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-
| Assignee | ||
Comment 6•10 years ago
|
||
| Assignee | ||
Updated•10 years ago
|
Attachment #8752373 -
Attachment is obsolete: true
| Assignee | ||
Comment 7•10 years ago
|
||
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 8•10 years ago
|
||
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-
| Assignee | ||
Comment 9•10 years ago
|
||
Attachment #8754031 -
Attachment is obsolete: true
Attachment #8754031 -
Flags: superreview?(hschlichting)
| Assignee | ||
Updated•10 years ago
|
Attachment #8754521 -
Flags: superreview?(hschlichting)
| Assignee | ||
Comment 10•10 years ago
|
||
Treeherder results of the try build: https://treeherder.mozilla.org/#/jobs?repo=try&revision=359f128849e8
Comment 11•10 years ago
|
||
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+
| Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 12•10 years ago
|
||
Keywords: checkin-needed
Comment 13•10 years ago
|
||
| bugherder | ||
You need to log in
before you can comment on or make changes to this bug.
Description
•