Methods Summary |
---|
private void | checkPermissions()
mContext.enforceCallingPermission(
mPermissionId,
String.format(
"Permission '%s' not granted to access FusedLocationHardware",
mPermissionId));
|
public int | getSupportedBatchSize()
checkPermissions();
return mLocationHardware.getSupportedBatchSize();
|
public void | injectDeviceContext(int deviceEnabledContext)
checkPermissions();
mLocationHardware.injectDeviceContext(deviceEnabledContext);
|
public void | injectDiagnosticData(java.lang.String data)
checkPermissions();
mLocationHardware.injectDiagnosticData(data);
|
public void | registerSink(android.hardware.location.IFusedLocationHardwareSink eventSink)
checkPermissions();
mLocationHardware.registerSink(eventSink);
|
public void | requestBatchOfLocations(int batchSizeRequested)
checkPermissions();
mLocationHardware.requestBatchOfLocations(batchSizeRequested);
|
public void | startBatching(int id, android.location.FusedBatchOptions batchOptions)
checkPermissions();
mLocationHardware.startBatching(id, batchOptions);
|
public void | stopBatching(int id)
checkPermissions();
mLocationHardware.stopBatching(id);
|
public boolean | supportsDeviceContextInjection()
checkPermissions();
return mLocationHardware.supportsDeviceContextInjection();
|
public boolean | supportsDiagnosticDataInjection()
checkPermissions();
return mLocationHardware.supportsDiagnosticDataInjection();
|
public void | unregisterSink(android.hardware.location.IFusedLocationHardwareSink eventSink)
checkPermissions();
mLocationHardware.unregisterSink(eventSink);
|
public void | updateBatchingOptions(int id, android.location.FusedBatchOptions batchoOptions)
checkPermissions();
mLocationHardware.updateBatchingOptions(id, batchoOptions);
|