Exemplo n.º 1
0
 private static void mockLocationOff() {
   ManageLocationUpdates.traceLocUpdates("Mock locations off.");
   Tracer.setFlag(CpControl.MOCKLOCATION_FLAG, false);
   DirectionInfo.i().setLocation(null);
   LocationUtils.setLocationLed();
   LocationUtils.setBearingLed();
 }
Exemplo n.º 2
0
 @SuppressWarnings("UnusedParameters")
 private static void mockLocationOn(View topView, MockLoc _mockLocation) {
   mockLocation = _mockLocation;
   ManageLocationUpdates.traceLocUpdates(
       String.format("Mock locations on: %s.", mockLocation.toString()));
   Tracer.setFlag(CpControl.MOCKLOCATION_FLAG, true);
   DirectionInfo.i().setLocation(null);
   LocationUtils.setLocationLed();
   LocationUtils.setBearingLed();
   ScreenList.refreshListScreen();
 }