michael@0: /* -*- Mode: Java; c-basic-offset: 4; tab-width: 20; indent-tabs-mode: nil; -*- michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: package org.mozilla.gecko.health; michael@0: michael@0: import android.content.SharedPreferences; michael@0: michael@0: import org.json.JSONObject; michael@0: michael@0: /** michael@0: * StubbedHealthRecorder is an implementation of HealthRecorder that does (you guessed it!) michael@0: * nothing. michael@0: */ michael@0: public class StubbedHealthRecorder implements HealthRecorder { michael@0: public boolean isEnabled() { return false; } michael@0: michael@0: public void setCurrentSession(SessionInformation session) { } michael@0: public void checkForOrphanSessions() { } michael@0: michael@0: public void recordGeckoStartupTime(long duration) { } michael@0: public void recordJavaStartupTime(long duration) { } michael@0: public void recordSearch(final String engineID, final String location) { } michael@0: public void recordSessionEnd(String reason, SharedPreferences.Editor editor) { } michael@0: public void recordSessionEnd(String reason, SharedPreferences.Editor editor, final int environment) { } michael@0: michael@0: public void onAppLocaleChanged(String to) { } michael@0: public void onAddonChanged(String id, JSONObject json) { } michael@0: public void onAddonUninstalling(String id) { } michael@0: public void onEnvironmentChanged() { } michael@0: public void onEnvironmentChanged(final boolean startNewSession, final String sessionEndReason) { } michael@0: michael@0: public void close() { } michael@0: }