mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 00:29:11 +01:00
Use Log.tag where appropriate.
This commit is contained in:
committed by
Alex Hart
parent
2144dc3b67
commit
b053fbc4a7
@@ -17,6 +17,7 @@ import android.os.PowerManager.WakeLock;
|
||||
|
||||
import androidx.core.app.NotificationCompat;
|
||||
|
||||
import org.signal.core.util.logging.Log;
|
||||
import org.thoughtcrime.securesms.MainActivity;
|
||||
import org.thoughtcrime.securesms.R;
|
||||
import org.thoughtcrime.securesms.database.SmsMigrator;
|
||||
@@ -32,7 +33,7 @@ import java.util.concurrent.Executors;
|
||||
public class ApplicationMigrationService extends Service
|
||||
implements SmsMigrator.SmsMigrationProgressListener
|
||||
{
|
||||
private static final String TAG = ApplicationMigrationService.class.getSimpleName();
|
||||
private static final String TAG = Log.tag(ApplicationMigrationService.class);
|
||||
public static final String MIGRATE_DATABASE = "org.thoughtcrime.securesms.ApplicationMigration.MIGRATE_DATABSE";
|
||||
public static final String COMPLETED_ACTION = "org.thoughtcrime.securesms.ApplicationMigrationService.COMPLETED";
|
||||
private static final String PREFERENCES_NAME = "SecureSMS";
|
||||
|
||||
@@ -44,7 +44,7 @@ import java.util.concurrent.ExecutionException;
|
||||
public class DirectShareService extends ChooserTargetService {
|
||||
|
||||
|
||||
private static final String TAG = DirectShareService.class.getSimpleName();
|
||||
private static final String TAG = Log.tag(DirectShareService.class);
|
||||
private static final int MAX_TARGETS = 10;
|
||||
|
||||
@Override
|
||||
|
||||
@@ -16,7 +16,7 @@ import java.util.concurrent.Executors;
|
||||
|
||||
public class ExpiringMessageManager {
|
||||
|
||||
private static final String TAG = ExpiringMessageManager.class.getSimpleName();
|
||||
private static final String TAG = Log.tag(ExpiringMessageManager.class);
|
||||
|
||||
private final TreeSet<ExpiringMessageReference> expiringMessageReferences = new TreeSet<>(new ExpiringMessageComparator());
|
||||
private final Executor executor = Executors.newSingleThreadExecutor();
|
||||
|
||||
@@ -58,7 +58,7 @@ import java.util.concurrent.TimeUnit;
|
||||
|
||||
public class KeyCachingService extends Service {
|
||||
|
||||
private static final String TAG = KeyCachingService.class.getSimpleName();
|
||||
private static final String TAG = Log.tag(KeyCachingService.class);
|
||||
|
||||
public static final int SERVICE_RUNNING_ID = 4141;
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ import org.thoughtcrime.securesms.util.Util;
|
||||
|
||||
public class MmsListener extends BroadcastReceiver {
|
||||
|
||||
private static final String TAG = MmsListener.class.getSimpleName();
|
||||
private static final String TAG = Log.tag(MmsListener.class);
|
||||
|
||||
private boolean isRelevant(Context context, Intent intent) {
|
||||
if (!ApplicationMigrationService.isDatabaseImported(context)) {
|
||||
|
||||
@@ -11,7 +11,7 @@ import org.signal.core.util.logging.Log;
|
||||
|
||||
public abstract class PersistentAlarmManagerListener extends BroadcastReceiver {
|
||||
|
||||
private static final String TAG = PersistentAlarmManagerListener.class.getSimpleName();
|
||||
private static final String TAG = Log.tag(PersistentAlarmManagerListener.class);
|
||||
|
||||
protected abstract long getNextScheduledExecutionTime(Context context);
|
||||
protected abstract long onAlarm(Context context, long scheduledTime);
|
||||
|
||||
@@ -9,7 +9,7 @@ import org.signal.core.util.logging.Log;
|
||||
|
||||
public class PersistentConnectionBootListener extends BroadcastReceiver {
|
||||
|
||||
private static final String TAG = PersistentConnectionBootListener.class.getSimpleName();
|
||||
private static final String TAG = Log.tag(PersistentConnectionBootListener.class);
|
||||
|
||||
@Override
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
|
||||
@@ -18,7 +18,7 @@ import java.net.URLDecoder;
|
||||
|
||||
public class QuickResponseService extends IntentService {
|
||||
|
||||
private static final String TAG = QuickResponseService.class.getSimpleName();
|
||||
private static final String TAG = Log.tag(QuickResponseService.class);
|
||||
|
||||
public QuickResponseService() {
|
||||
super("QuickResponseService");
|
||||
|
||||
@@ -13,7 +13,7 @@ import org.thoughtcrime.securesms.jobs.SmsSentJob;
|
||||
|
||||
public class SmsDeliveryListener extends BroadcastReceiver {
|
||||
|
||||
private static final String TAG = SmsDeliveryListener.class.getSimpleName();
|
||||
private static final String TAG = Log.tag(SmsDeliveryListener.class);
|
||||
|
||||
public static final String SENT_SMS_ACTION = "org.thoughtcrime.securesms.SendReceiveService.SENT_SMS_ACTION";
|
||||
public static final String DELIVERED_SMS_ACTION = "org.thoughtcrime.securesms.SendReceiveService.DELIVERED_SMS_ACTION";
|
||||
|
||||
@@ -29,7 +29,7 @@ import java.security.MessageDigest;
|
||||
|
||||
public class UpdateApkReadyListener extends BroadcastReceiver {
|
||||
|
||||
private static final String TAG = UpdateApkReadyListener.class.getSimpleName();
|
||||
private static final String TAG = Log.tag(UpdateApkReadyListener.class);
|
||||
|
||||
@Override
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
|
||||
@@ -14,7 +14,7 @@ import java.util.concurrent.TimeUnit;
|
||||
|
||||
public class UpdateApkRefreshListener extends PersistentAlarmManagerListener {
|
||||
|
||||
private static final String TAG = UpdateApkRefreshListener.class.getSimpleName();
|
||||
private static final String TAG = Log.tag(UpdateApkRefreshListener.class);
|
||||
|
||||
private static final long INTERVAL = TimeUnit.HOURS.toMillis(6);
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@ public class WebRtcCallService extends Service implements CallManager.Observer,
|
||||
GroupCall.Observer
|
||||
{
|
||||
|
||||
private static final String TAG = WebRtcCallService.class.getSimpleName();
|
||||
private static final String TAG = Log.tag(WebRtcCallService.class);
|
||||
|
||||
public static final String EXTRA_MUTE = "mute_value";
|
||||
public static final String EXTRA_AVAILABLE = "enabled_value";
|
||||
|
||||
Reference in New Issue
Block a user