mirror of https://github.com/LeOS-GSI/LeOS-Genesis
mozilla telemetry remove
parent
e252fb7fc6
commit
54f12876ab
|
@ -26,7 +26,7 @@ android {
|
|||
kotlinOptions {
|
||||
jvmTarget = '1.8'
|
||||
}
|
||||
namespace 'org.mozilla.telemetry'
|
||||
namespace 'org.leos.telemetry'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
|
|
@ -2,28 +2,28 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry;
|
||||
package org.leos.telemetry;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.annotation.RestrictTo;
|
||||
import androidx.annotation.VisibleForTesting;
|
||||
|
||||
import org.mozilla.telemetry.config.TelemetryConfiguration;
|
||||
import org.mozilla.telemetry.event.TelemetryEvent;
|
||||
import org.mozilla.telemetry.measurement.ClientIdMeasurement;
|
||||
import org.mozilla.telemetry.measurement.DefaultSearchMeasurement;
|
||||
import org.mozilla.telemetry.measurement.EventsMeasurement;
|
||||
import org.mozilla.telemetry.measurement.ExperimentsMapMeasurement;
|
||||
import org.mozilla.telemetry.net.TelemetryClient;
|
||||
import org.mozilla.telemetry.ping.TelemetryCorePingBuilder;
|
||||
import org.mozilla.telemetry.ping.TelemetryEventPingBuilder;
|
||||
import org.mozilla.telemetry.ping.TelemetryMobileEventPingBuilder;
|
||||
import org.mozilla.telemetry.ping.TelemetryPing;
|
||||
import org.mozilla.telemetry.ping.TelemetryPingBuilder;
|
||||
import org.mozilla.telemetry.ping.TelemetryPocketEventPingBuilder;
|
||||
import org.mozilla.telemetry.schedule.TelemetryScheduler;
|
||||
import org.mozilla.telemetry.storage.TelemetryStorage;
|
||||
import org.leos.telemetry.config.TelemetryConfiguration;
|
||||
import org.leos.telemetry.event.TelemetryEvent;
|
||||
import org.leos.telemetry.measurement.ClientIdMeasurement;
|
||||
import org.leos.telemetry.measurement.DefaultSearchMeasurement;
|
||||
import org.leos.telemetry.measurement.EventsMeasurement;
|
||||
import org.leos.telemetry.measurement.ExperimentsMapMeasurement;
|
||||
import org.leos.telemetry.net.TelemetryClient;
|
||||
import org.leos.telemetry.ping.TelemetryCorePingBuilder;
|
||||
import org.leos.telemetry.ping.TelemetryEventPingBuilder;
|
||||
import org.leos.telemetry.ping.TelemetryMobileEventPingBuilder;
|
||||
import org.leos.telemetry.ping.TelemetryPing;
|
||||
import org.leos.telemetry.ping.TelemetryPingBuilder;
|
||||
import org.leos.telemetry.ping.TelemetryPocketEventPingBuilder;
|
||||
import org.leos.telemetry.schedule.TelemetryScheduler;
|
||||
import org.leos.telemetry.storage.TelemetryStorage;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.HashMap;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry;
|
||||
package org.leos.telemetry;
|
||||
|
||||
/**
|
||||
* Holder of a static reference to the Telemetry instance. This is required for background services
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.config;
|
||||
package org.leos.telemetry.config;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.SharedPreferences;
|
||||
|
||||
import org.mozilla.telemetry.measurement.SettingsMeasurement;
|
||||
import org.mozilla.telemetry.util.ContextUtils;
|
||||
import org.leos.telemetry.measurement.SettingsMeasurement;
|
||||
import org.leos.telemetry.util.ContextUtils;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Collections;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.event;
|
||||
package org.leos.telemetry.event;
|
||||
|
||||
import android.os.SystemClock;
|
||||
import androidx.annotation.CheckResult;
|
||||
|
@ -11,8 +11,8 @@ import androidx.annotation.Nullable;
|
|||
import androidx.annotation.RestrictTo;
|
||||
import org.json.JSONArray;
|
||||
import org.json.JSONObject;
|
||||
import org.mozilla.telemetry.TelemetryHolder;
|
||||
import org.mozilla.telemetry.util.StringUtils;
|
||||
import org.leos.telemetry.TelemetryHolder;
|
||||
import org.leos.telemetry.util.StringUtils;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.measurement;
|
||||
package org.leos.telemetry.measurement;
|
||||
|
||||
import android.os.Build;
|
||||
import androidx.annotation.VisibleForTesting;
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.measurement;
|
||||
package org.leos.telemetry.measurement;
|
||||
|
||||
import android.content.SharedPreferences;
|
||||
|
||||
import org.mozilla.telemetry.config.TelemetryConfiguration;
|
||||
import org.leos.telemetry.config.TelemetryConfiguration;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.measurement;
|
||||
package org.leos.telemetry.measurement;
|
||||
|
||||
import java.text.DateFormat;
|
||||
import java.text.SimpleDateFormat;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.measurement;
|
||||
package org.leos.telemetry.measurement;
|
||||
|
||||
import java.text.DateFormat;
|
||||
import java.text.SimpleDateFormat;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.measurement;
|
||||
package org.leos.telemetry.measurement;
|
||||
|
||||
public class CreatedTimestampMeasurement extends TelemetryMeasurement {
|
||||
private static final String FIELD_NAME = "created";
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.measurement;
|
||||
package org.leos.telemetry.measurement;
|
||||
|
||||
/**
|
||||
* The field 'created' from CreatedTimestampMeasurement will be deprecated for the `createdTimestamp` field
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.measurement;
|
||||
package org.leos.telemetry.measurement;
|
||||
|
||||
import org.json.JSONObject;
|
||||
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.measurement;
|
||||
package org.leos.telemetry.measurement;
|
||||
|
||||
import android.os.Build;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.VisibleForTesting;
|
||||
|
||||
import org.mozilla.telemetry.util.StringUtils;
|
||||
import org.leos.telemetry.util.StringUtils;
|
||||
|
||||
public class DeviceMeasurement extends TelemetryMeasurement {
|
||||
private static final String FIELD_NAME = "device";
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.measurement;
|
||||
package org.leos.telemetry.measurement;
|
||||
|
||||
import android.content.SharedPreferences;
|
||||
import androidx.annotation.VisibleForTesting;
|
||||
|
@ -10,9 +10,9 @@ import android.util.Log;
|
|||
|
||||
import org.json.JSONArray;
|
||||
import org.json.JSONException;
|
||||
import org.mozilla.telemetry.config.TelemetryConfiguration;
|
||||
import org.mozilla.telemetry.event.TelemetryEvent;
|
||||
import org.mozilla.telemetry.util.IOUtils;
|
||||
import org.leos.telemetry.config.TelemetryConfiguration;
|
||||
import org.leos.telemetry.event.TelemetryEvent;
|
||||
import org.leos.telemetry.util.IOUtils;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.BufferedWriter;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.measurement
|
||||
package org.leos.telemetry.measurement
|
||||
|
||||
import org.json.JSONObject
|
||||
import kotlin.collections.forEach as withEach
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.measurement;
|
||||
package org.leos.telemetry.measurement;
|
||||
|
||||
import org.json.JSONArray;
|
||||
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.measurement;
|
||||
package org.leos.telemetry.measurement;
|
||||
|
||||
import android.content.SharedPreferences;
|
||||
import androidx.annotation.VisibleForTesting;
|
||||
|
||||
import org.mozilla.telemetry.config.TelemetryConfiguration;
|
||||
import org.leos.telemetry.config.TelemetryConfiguration;
|
||||
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.measurement;
|
||||
package org.leos.telemetry.measurement;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.measurement;
|
||||
package org.leos.telemetry.measurement;
|
||||
|
||||
import org.json.JSONObject;
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.measurement;
|
||||
package org.leos.telemetry.measurement;
|
||||
|
||||
public class OperatingSystemMeasurement extends StaticMeasurement {
|
||||
private static final String FIELD_NAME = "os";
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.measurement;
|
||||
package org.leos.telemetry.measurement;
|
||||
|
||||
import android.os.Build;
|
||||
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.measurement;
|
||||
package org.leos.telemetry.measurement;
|
||||
|
||||
import android.content.SharedPreferences;
|
||||
|
||||
import org.mozilla.telemetry.config.TelemetryConfiguration;
|
||||
import org.leos.telemetry.config.TelemetryConfiguration;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.measurement;
|
||||
package org.leos.telemetry.measurement;
|
||||
|
||||
import org.mozilla.telemetry.config.TelemetryConfiguration;
|
||||
import org.leos.telemetry.config.TelemetryConfiguration;
|
||||
|
||||
public class ProcessStartTimestampMeasurement extends TelemetryMeasurement {
|
||||
private static final String FIELD_NAME = "processStartTimestamp";
|
||||
|
|
|
@ -2,14 +2,14 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.measurement;
|
||||
package org.leos.telemetry.measurement;
|
||||
|
||||
import android.content.SharedPreferences;
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
import org.mozilla.telemetry.config.TelemetryConfiguration;
|
||||
import org.leos.telemetry.config.TelemetryConfiguration;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.HashSet;
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.measurement;
|
||||
package org.leos.telemetry.measurement;
|
||||
|
||||
import android.content.SharedPreferences;
|
||||
|
||||
import org.mozilla.telemetry.config.TelemetryConfiguration;
|
||||
import org.mozilla.telemetry.ping.TelemetryPingBuilder;
|
||||
import org.leos.telemetry.config.TelemetryConfiguration;
|
||||
import org.leos.telemetry.ping.TelemetryPingBuilder;
|
||||
|
||||
public class SequenceMeasurement extends TelemetryMeasurement {
|
||||
private static final String FIELD_NAME = "seq";
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.measurement;
|
||||
package org.leos.telemetry.measurement;
|
||||
|
||||
import android.content.SharedPreferences;
|
||||
|
||||
import org.mozilla.telemetry.config.TelemetryConfiguration;
|
||||
import org.leos.telemetry.config.TelemetryConfiguration;
|
||||
|
||||
public class SessionCountMeasurement extends TelemetryMeasurement {
|
||||
private static final String FIELD_NAME = "sessions";
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.measurement;
|
||||
package org.leos.telemetry.measurement;
|
||||
|
||||
import android.content.SharedPreferences;
|
||||
import androidx.annotation.VisibleForTesting;
|
||||
|
||||
import org.mozilla.telemetry.config.TelemetryConfiguration;
|
||||
import org.leos.telemetry.config.TelemetryConfiguration;
|
||||
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.measurement;
|
||||
package org.leos.telemetry.measurement;
|
||||
|
||||
import android.preference.PreferenceManager;
|
||||
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
import org.mozilla.telemetry.config.TelemetryConfiguration;
|
||||
import org.leos.telemetry.config.TelemetryConfiguration;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.measurement;
|
||||
package org.leos.telemetry.measurement;
|
||||
|
||||
public class StaticMeasurement extends TelemetryMeasurement {
|
||||
private final Object value;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.measurement;
|
||||
package org.leos.telemetry.measurement;
|
||||
|
||||
public abstract class TelemetryMeasurement {
|
||||
private final String fieldName;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.measurement;
|
||||
package org.leos.telemetry.measurement;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.VisibleForTesting;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.measurement;
|
||||
package org.leos.telemetry.measurement;
|
||||
|
||||
public class VersionMeasurement extends StaticMeasurement {
|
||||
private static final String FIELD_NAME = "v";
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.net
|
||||
package org.leos.telemetry.net
|
||||
|
||||
import androidx.annotation.VisibleForTesting
|
||||
import mozilla.components.concept.fetch.Client
|
||||
|
@ -10,7 +10,7 @@ import mozilla.components.concept.fetch.MutableHeaders
|
|||
import mozilla.components.concept.fetch.Request
|
||||
import mozilla.components.concept.fetch.Response
|
||||
import mozilla.components.support.base.log.logger.Logger
|
||||
import org.mozilla.telemetry.config.TelemetryConfiguration
|
||||
import org.leos.telemetry.config.TelemetryConfiguration
|
||||
import java.io.IOException
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Calendar
|
||||
|
|
|
@ -2,23 +2,23 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.ping;
|
||||
package org.leos.telemetry.ping;
|
||||
|
||||
import org.mozilla.telemetry.config.TelemetryConfiguration;
|
||||
import org.mozilla.telemetry.measurement.ArchMeasurement;
|
||||
import org.mozilla.telemetry.measurement.CreatedDateMeasurement;
|
||||
import org.mozilla.telemetry.measurement.DefaultSearchMeasurement;
|
||||
import org.mozilla.telemetry.measurement.DeviceMeasurement;
|
||||
import org.mozilla.telemetry.measurement.ExperimentsMeasurement;
|
||||
import org.mozilla.telemetry.measurement.FirstRunProfileDateMeasurement;
|
||||
import org.mozilla.telemetry.measurement.LocaleMeasurement;
|
||||
import org.mozilla.telemetry.measurement.OperatingSystemMeasurement;
|
||||
import org.mozilla.telemetry.measurement.OperatingSystemVersionMeasurement;
|
||||
import org.mozilla.telemetry.measurement.SearchesMeasurement;
|
||||
import org.mozilla.telemetry.measurement.SequenceMeasurement;
|
||||
import org.mozilla.telemetry.measurement.SessionCountMeasurement;
|
||||
import org.mozilla.telemetry.measurement.SessionDurationMeasurement;
|
||||
import org.mozilla.telemetry.measurement.TimezoneOffsetMeasurement;
|
||||
import org.leos.telemetry.config.TelemetryConfiguration;
|
||||
import org.leos.telemetry.measurement.ArchMeasurement;
|
||||
import org.leos.telemetry.measurement.CreatedDateMeasurement;
|
||||
import org.leos.telemetry.measurement.DefaultSearchMeasurement;
|
||||
import org.leos.telemetry.measurement.DeviceMeasurement;
|
||||
import org.leos.telemetry.measurement.ExperimentsMeasurement;
|
||||
import org.leos.telemetry.measurement.FirstRunProfileDateMeasurement;
|
||||
import org.leos.telemetry.measurement.LocaleMeasurement;
|
||||
import org.leos.telemetry.measurement.OperatingSystemMeasurement;
|
||||
import org.leos.telemetry.measurement.OperatingSystemVersionMeasurement;
|
||||
import org.leos.telemetry.measurement.SearchesMeasurement;
|
||||
import org.leos.telemetry.measurement.SequenceMeasurement;
|
||||
import org.leos.telemetry.measurement.SessionCountMeasurement;
|
||||
import org.leos.telemetry.measurement.SessionDurationMeasurement;
|
||||
import org.leos.telemetry.measurement.TimezoneOffsetMeasurement;
|
||||
|
||||
/**
|
||||
* This mobile-specific ping is intended to provide the most critical data in a concise format,
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.ping;
|
||||
package org.leos.telemetry.ping;
|
||||
|
||||
import org.mozilla.telemetry.config.TelemetryConfiguration;
|
||||
import org.mozilla.telemetry.measurement.*;
|
||||
import org.leos.telemetry.config.TelemetryConfiguration;
|
||||
import org.leos.telemetry.measurement.*;
|
||||
|
||||
/**
|
||||
* A telemetry ping builder for pings of type "focus-event".
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.ping;
|
||||
package org.leos.telemetry.ping;
|
||||
|
||||
import org.mozilla.telemetry.config.TelemetryConfiguration;
|
||||
import org.mozilla.telemetry.measurement.*;
|
||||
import org.leos.telemetry.config.TelemetryConfiguration;
|
||||
import org.leos.telemetry.measurement.*;
|
||||
|
||||
/**
|
||||
* A telemetry ping builder for events of type "mobile-event".
|
||||
|
|
|
@ -2,22 +2,22 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.ping;
|
||||
package org.leos.telemetry.ping;
|
||||
|
||||
import org.json.JSONObject;
|
||||
import org.mozilla.telemetry.config.TelemetryConfiguration;
|
||||
import org.mozilla.telemetry.measurement.ArchMeasurement;
|
||||
import org.mozilla.telemetry.measurement.CreatedDateMeasurementNew;
|
||||
import org.mozilla.telemetry.measurement.CreatedTimestampMeasurementNew;
|
||||
import org.mozilla.telemetry.measurement.DeviceMeasurement;
|
||||
import org.mozilla.telemetry.measurement.FirstRunProfileDateMeasurement;
|
||||
import org.mozilla.telemetry.measurement.LocaleMeasurement;
|
||||
import org.mozilla.telemetry.measurement.MetricsMeasurement;
|
||||
import org.mozilla.telemetry.measurement.OperatingSystemMeasurement;
|
||||
import org.mozilla.telemetry.measurement.OperatingSystemVersionMeasurement;
|
||||
import org.mozilla.telemetry.measurement.ProcessStartTimestampMeasurement;
|
||||
import org.mozilla.telemetry.measurement.SequenceMeasurement;
|
||||
import org.mozilla.telemetry.measurement.TimezoneOffsetMeasurement;
|
||||
import org.leos.telemetry.config.TelemetryConfiguration;
|
||||
import org.leos.telemetry.measurement.ArchMeasurement;
|
||||
import org.leos.telemetry.measurement.CreatedDateMeasurementNew;
|
||||
import org.leos.telemetry.measurement.CreatedTimestampMeasurementNew;
|
||||
import org.leos.telemetry.measurement.DeviceMeasurement;
|
||||
import org.leos.telemetry.measurement.FirstRunProfileDateMeasurement;
|
||||
import org.leos.telemetry.measurement.LocaleMeasurement;
|
||||
import org.leos.telemetry.measurement.MetricsMeasurement;
|
||||
import org.leos.telemetry.measurement.OperatingSystemMeasurement;
|
||||
import org.leos.telemetry.measurement.OperatingSystemVersionMeasurement;
|
||||
import org.leos.telemetry.measurement.ProcessStartTimestampMeasurement;
|
||||
import org.leos.telemetry.measurement.SequenceMeasurement;
|
||||
import org.leos.telemetry.measurement.TimezoneOffsetMeasurement;
|
||||
|
||||
/**
|
||||
* A telemetry ping builder for events of type "mobile-metrics".
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.ping;
|
||||
package org.leos.telemetry.ping;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
|
|
|
@ -2,16 +2,16 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.ping;
|
||||
package org.leos.telemetry.ping;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.RestrictTo;
|
||||
import androidx.annotation.VisibleForTesting;
|
||||
|
||||
import org.mozilla.telemetry.config.TelemetryConfiguration;
|
||||
import org.mozilla.telemetry.measurement.ClientIdMeasurement;
|
||||
import org.mozilla.telemetry.measurement.TelemetryMeasurement;
|
||||
import org.mozilla.telemetry.measurement.VersionMeasurement;
|
||||
import org.leos.telemetry.config.TelemetryConfiguration;
|
||||
import org.leos.telemetry.measurement.ClientIdMeasurement;
|
||||
import org.leos.telemetry.measurement.TelemetryMeasurement;
|
||||
import org.leos.telemetry.measurement.VersionMeasurement;
|
||||
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.LinkedList;
|
||||
|
|
|
@ -2,19 +2,19 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.ping;
|
||||
package org.leos.telemetry.ping;
|
||||
|
||||
import org.mozilla.telemetry.config.TelemetryConfiguration;
|
||||
import org.mozilla.telemetry.measurement.CreatedTimestampMeasurement;
|
||||
import org.mozilla.telemetry.measurement.DeviceMeasurement;
|
||||
import org.mozilla.telemetry.measurement.EventsMeasurement;
|
||||
import org.mozilla.telemetry.measurement.LocaleMeasurement;
|
||||
import org.mozilla.telemetry.measurement.OperatingSystemMeasurement;
|
||||
import org.mozilla.telemetry.measurement.OperatingSystemVersionMeasurement;
|
||||
import org.mozilla.telemetry.measurement.PocketIdMeasurement;
|
||||
import org.mozilla.telemetry.measurement.ProcessStartTimestampMeasurement;
|
||||
import org.mozilla.telemetry.measurement.SequenceMeasurement;
|
||||
import org.mozilla.telemetry.measurement.TimezoneOffsetMeasurement;
|
||||
import org.leos.telemetry.config.TelemetryConfiguration;
|
||||
import org.leos.telemetry.measurement.CreatedTimestampMeasurement;
|
||||
import org.leos.telemetry.measurement.DeviceMeasurement;
|
||||
import org.leos.telemetry.measurement.EventsMeasurement;
|
||||
import org.leos.telemetry.measurement.LocaleMeasurement;
|
||||
import org.leos.telemetry.measurement.OperatingSystemMeasurement;
|
||||
import org.leos.telemetry.measurement.OperatingSystemVersionMeasurement;
|
||||
import org.leos.telemetry.measurement.PocketIdMeasurement;
|
||||
import org.leos.telemetry.measurement.ProcessStartTimestampMeasurement;
|
||||
import org.leos.telemetry.measurement.SequenceMeasurement;
|
||||
import org.leos.telemetry.measurement.TimezoneOffsetMeasurement;
|
||||
|
||||
/**
|
||||
* A telemetry ping builder for events of type "fire-tv-events".
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.schedule;
|
||||
package org.leos.telemetry.schedule;
|
||||
|
||||
import org.mozilla.telemetry.config.TelemetryConfiguration;
|
||||
import org.leos.telemetry.config.TelemetryConfiguration;
|
||||
|
||||
public interface TelemetryScheduler {
|
||||
void scheduleUpload(TelemetryConfiguration configuration);
|
||||
|
|
|
@ -2,15 +2,15 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.schedule.jobscheduler;
|
||||
package org.leos.telemetry.schedule.jobscheduler;
|
||||
|
||||
import android.app.job.JobInfo;
|
||||
import android.app.job.JobScheduler;
|
||||
import android.content.ComponentName;
|
||||
import android.content.Context;
|
||||
|
||||
import org.mozilla.telemetry.config.TelemetryConfiguration;
|
||||
import org.mozilla.telemetry.schedule.TelemetryScheduler;
|
||||
import org.leos.telemetry.config.TelemetryConfiguration;
|
||||
import org.leos.telemetry.schedule.TelemetryScheduler;
|
||||
|
||||
/**
|
||||
* TelemetryScheduler implementation that uses Android's JobScheduler API to schedule ping uploads.
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.schedule.jobscheduler;
|
||||
package org.leos.telemetry.schedule.jobscheduler;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.app.job.JobParameters;
|
||||
|
@ -12,12 +12,12 @@ import android.os.AsyncTask;
|
|||
import androidx.annotation.VisibleForTesting;
|
||||
import android.util.Log;
|
||||
|
||||
import org.mozilla.telemetry.Telemetry;
|
||||
import org.mozilla.telemetry.TelemetryHolder;
|
||||
import org.mozilla.telemetry.config.TelemetryConfiguration;
|
||||
import org.mozilla.telemetry.net.TelemetryClient;
|
||||
import org.mozilla.telemetry.ping.TelemetryPingBuilder;
|
||||
import org.mozilla.telemetry.storage.TelemetryStorage;
|
||||
import org.leos.telemetry.Telemetry;
|
||||
import org.leos.telemetry.TelemetryHolder;
|
||||
import org.leos.telemetry.config.TelemetryConfiguration;
|
||||
import org.leos.telemetry.net.TelemetryClient;
|
||||
import org.leos.telemetry.ping.TelemetryPingBuilder;
|
||||
import org.leos.telemetry.storage.TelemetryStorage;
|
||||
|
||||
import java.util.Calendar;
|
||||
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.serialize;
|
||||
package org.leos.telemetry.serialize;
|
||||
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
import org.mozilla.telemetry.ping.TelemetryPing;
|
||||
import org.leos.telemetry.ping.TelemetryPing;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.serialize;
|
||||
package org.leos.telemetry.serialize;
|
||||
|
||||
import org.mozilla.telemetry.ping.TelemetryPing;
|
||||
import org.leos.telemetry.ping.TelemetryPing;
|
||||
|
||||
public interface TelemetryPingSerializer {
|
||||
String serialize(TelemetryPing ping);
|
||||
|
|
|
@ -2,17 +2,17 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.storage;
|
||||
package org.leos.telemetry.storage;
|
||||
|
||||
import androidx.annotation.RestrictTo;
|
||||
import androidx.annotation.VisibleForTesting;
|
||||
import android.util.Log;
|
||||
|
||||
import org.mozilla.telemetry.config.TelemetryConfiguration;
|
||||
import org.mozilla.telemetry.ping.TelemetryPing;
|
||||
import org.mozilla.telemetry.serialize.TelemetryPingSerializer;
|
||||
import org.mozilla.telemetry.util.FileUtils;
|
||||
import org.mozilla.telemetry.util.IOUtils;
|
||||
import org.leos.telemetry.config.TelemetryConfiguration;
|
||||
import org.leos.telemetry.ping.TelemetryPing;
|
||||
import org.leos.telemetry.serialize.TelemetryPingSerializer;
|
||||
import org.leos.telemetry.util.FileUtils;
|
||||
import org.leos.telemetry.util.IOUtils;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.BufferedWriter;
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.storage;
|
||||
package org.leos.telemetry.storage;
|
||||
|
||||
import org.mozilla.telemetry.ping.TelemetryPing;
|
||||
import org.leos.telemetry.ping.TelemetryPing;
|
||||
|
||||
public interface TelemetryStorage {
|
||||
interface TelemetryStorageCallback {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.util;
|
||||
package org.leos.telemetry.util;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.pm.ApplicationInfo;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.util;
|
||||
package org.leos.telemetry.util;
|
||||
|
||||
import androidx.annotation.RestrictTo;
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.util;
|
||||
package org.leos.telemetry.util;
|
||||
|
||||
import androidx.annotation.RestrictTo;
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.telemetry.util;
|
||||
package org.leos.telemetry.util;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.RestrictTo;
|
||||
|
|
Loading…
Reference in New Issue