mozilla telemetry remove

v1.6.1
harvey186 2023-12-06 13:48:54 +01:00
parent e252fb7fc6
commit 54f12876ab
51 changed files with 149 additions and 149 deletions

View File

@ -26,7 +26,7 @@ android {
kotlinOptions {
jvmTarget = '1.8'
}
namespace 'org.mozilla.telemetry'
namespace 'org.leos.telemetry'
}
dependencies {

View File

@ -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;

View File

@ -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

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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";

View File

@ -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

View File

@ -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;

View File

@ -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";

View File

@ -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;

View File

@ -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

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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";

View File

@ -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;

View File

@ -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;

View File

@ -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";

View File

@ -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;

View File

@ -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";

View File

@ -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";

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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";

View File

@ -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

View File

@ -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,

View File

@ -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".

View File

@ -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".

View File

@ -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".

View File

@ -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;

View File

@ -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;

View File

@ -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".

View File

@ -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);

View File

@ -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.

View File

@ -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;

View File

@ -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;

View File

@ -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);

View File

@ -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;

View File

@ -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 {

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;