This repository has been archived by the owner on Apr 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adds AIDL interface for FusedLocationProviderService * Use service context looper when registering for location manager updates * Delivers location updates via AIDL callback interface * Notifies location availability changes via AIDL callback * Shutdown location updates if all listeners have been removed * Move fused location provider service into its own process * Migrates remaining logic for tracking location updates from service to client manager
- Loading branch information
1 parent
482adae
commit 422e770
Showing
19 changed files
with
580 additions
and
1,097 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,5 +48,6 @@ | |
</intent-filter> | ||
</service> | ||
|
||
|
||
</application> | ||
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
lost/src/main/aidl/com/mapzen/android/lost/api/LocationAvailability.aidl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package com.mapzen.android.lost.api; | ||
|
||
parcelable LocationAvailability; |
3 changes: 3 additions & 0 deletions
3
lost/src/main/aidl/com/mapzen/android/lost/api/LocationRequest.aidl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package com.mapzen.android.lost.api; | ||
|
||
parcelable LocationRequest; |
10 changes: 10 additions & 0 deletions
10
lost/src/main/aidl/com/mapzen/android/lost/internal/IFusedLocationProviderCallback.aidl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.mapzen.android.lost.internal; | ||
|
||
import com.mapzen.android.lost.api.LocationAvailability; | ||
|
||
interface IFusedLocationProviderCallback { | ||
|
||
void onLocationChanged(in Location location); | ||
|
||
void onLocationAvailabilityChanged(in LocationAvailability locationAvailability); | ||
} |
24 changes: 24 additions & 0 deletions
24
lost/src/main/aidl/com/mapzen/android/lost/internal/IFusedLocationProviderService.aidl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.mapzen.android.lost.internal; | ||
|
||
import com.mapzen.android.lost.api.LocationAvailability; | ||
import com.mapzen.android.lost.api.LocationRequest; | ||
import com.mapzen.android.lost.internal.IFusedLocationProviderCallback; | ||
|
||
interface IFusedLocationProviderService { | ||
|
||
void init(in IFusedLocationProviderCallback callback); | ||
|
||
Location getLastLocation(); | ||
|
||
LocationAvailability getLocationAvailability(); | ||
|
||
void requestLocationUpdates(in LocationRequest request); | ||
|
||
void removeLocationUpdates(); | ||
|
||
void setMockMode(boolean isMockMode); | ||
|
||
void setMockLocation(in Location mockLocation); | ||
|
||
void setMockTrace(String path, String filename); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.