[android] LocationComponent max fps javadoc

This commit is contained in:
Łukasz Paczos
2019-01-29 14:30:25 +01:00
committed by Łukasz Paczos
parent f897f128e6
commit d8bd594687
4 changed files with 53 additions and 6 deletions

View File

@@ -346,7 +346,8 @@ public class LocationCameraControllerTest {
camera.setCameraMode(TRACKING_COMPASS);
float compassBearing = 5f;
getAnimationListener(ANIMATOR_CAMERA_COMPASS_BEARING, camera.getAnimationListeners()).onNewAnimationValue(compassBearing);
getAnimationListener(ANIMATOR_CAMERA_COMPASS_BEARING, camera.getAnimationListeners())
.onNewAnimationValue(compassBearing);
verify(mapboxMap).moveCamera(any(CameraUpdate.class));
}
@@ -359,7 +360,8 @@ public class LocationCameraControllerTest {
camera.setCameraMode(NONE_COMPASS);
float compassBearing = 5f;
getAnimationListener(ANIMATOR_CAMERA_COMPASS_BEARING, camera.getAnimationListeners()).onNewAnimationValue(compassBearing);
getAnimationListener(ANIMATOR_CAMERA_COMPASS_BEARING, camera.getAnimationListeners())
.onNewAnimationValue(compassBearing);
verify(mapboxMap).moveCamera(any(CameraUpdate.class));
}

View File

@@ -518,7 +518,8 @@ public class LocationLayerControllerTest {
layer.setRenderMode(RenderMode.COMPASS);
float compassBearing = 2f;
getAnimationListener(ANIMATOR_LAYER_COMPASS_BEARING, layer.getAnimationListeners()).onNewAnimationValue(compassBearing);
getAnimationListener(ANIMATOR_LAYER_COMPASS_BEARING, layer.getAnimationListeners())
.onNewAnimationValue(compassBearing);
verify(locationFeature).addNumberProperty(PROPERTY_COMPASS_BEARING, compassBearing);
}
@@ -561,7 +562,8 @@ public class LocationLayerControllerTest {
layer.setRenderMode(RenderMode.NORMAL);
float accuracyRadiusValue = 2f;
getAnimationListener(ANIMATOR_LAYER_ACCURACY, layer.getAnimationListeners()).onNewAnimationValue(accuracyRadiusValue);
getAnimationListener(ANIMATOR_LAYER_ACCURACY, layer.getAnimationListeners())
.onNewAnimationValue(accuracyRadiusValue);
verify(locationFeature).addNumberProperty(PROPERTY_ACCURACY_RADIUS, accuracyRadiusValue);
}
@@ -584,7 +586,8 @@ public class LocationLayerControllerTest {
float accuracyRadiusValue = 2f;
assertNull(getAnimationListener(ANIMATOR_LAYER_ACCURACY, layer.getAnimationListeners()));
verify(locationFeature, times(0)).addNumberProperty(PROPERTY_ACCURACY_RADIUS, accuracyRadiusValue);
verify(locationFeature, times(0))
.addNumberProperty(PROPERTY_ACCURACY_RADIUS, accuracyRadiusValue);
}
private LayerFeatureProvider buildFeatureProvider(@NonNull LocationComponentOptions options) {