Ejemplo n.º 1
0
  private void doStartHAR() {
    // On har-start, load indices
    staticIPS.tryLoad(new File(getFilesDir(), PPSOptions.HELSINKIIPPS_INDEX_FILE));

    isHAR = true;
    connectorThread.addConsumer(waitingPipeline);
    connectorThread.addConsumer(ppsPipeline);
    connectorThread.addConsumer(harPipeline);
  }
Ejemplo n.º 2
0
  private void doStopHAR() {
    connectorThread.removeConsumer(harPipeline);
    connectorThread.removeConsumer(ppsPipeline);
    connectorThread.removeConsumer(waitingPipeline);

    isHAR = false;

    // On har-stop, save indices
    staticIPS.trySave(new File(getFilesDir(), PPSOptions.HELSINKIIPPS_INDEX_FILE));
  }