global: Prefix tags with WireGuard/

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2018-01-08 20:29:51 +01:00
parent 31ba7e6593
commit 7645ea15c4
11 changed files with 11 additions and 11 deletions

View File

@ -9,7 +9,7 @@ import com.wireguard.android.model.TunnelManager;
import com.wireguard.android.util.ExceptionLoggers; import com.wireguard.android.util.ExceptionLoggers;
public class BootShutdownReceiver extends BroadcastReceiver { public class BootShutdownReceiver extends BroadcastReceiver {
private static final String TAG = BootShutdownReceiver.class.getSimpleName(); private static final String TAG = "WireGuard/" + BootShutdownReceiver.class.getSimpleName();
@Override @Override
public void onReceive(final Context context, final Intent intent) { public void onReceive(final Context context, final Intent intent) {

View File

@ -26,7 +26,7 @@ import java.util.Objects;
@TargetApi(Build.VERSION_CODES.N) @TargetApi(Build.VERSION_CODES.N)
public class QuickTileService extends TileService { public class QuickTileService extends TileService {
private static final String TAG = QuickTileService.class.getSimpleName(); private static final String TAG = "WireGuard/" + QuickTileService.class.getSimpleName();
private final OnStateChangedCallback onStateChangedCallback = new OnStateChangedCallback(); private final OnStateChangedCallback onStateChangedCallback = new OnStateChangedCallback();
private final OnTunnelChangedCallback onTunnelChangedCallback = new OnTunnelChangedCallback(); private final OnTunnelChangedCallback onTunnelChangedCallback = new OnTunnelChangedCallback();
private Tunnel tunnel; private Tunnel tunnel;

View File

@ -24,7 +24,7 @@ import java9.util.stream.Stream;
public class MainActivity extends BaseActivity { public class MainActivity extends BaseActivity {
private static final String KEY_STATE = "fragment_state"; private static final String KEY_STATE = "fragment_state";
private static final String TAG = MainActivity.class.getSimpleName(); private static final String TAG = "WireGuard/" + MainActivity.class.getSimpleName();
private State state = State.EMPTY; private State state = State.EMPTY;
private boolean moveToState(final State nextState) { private boolean moveToState(final State nextState) {

View File

@ -25,7 +25,7 @@ import java9.util.stream.Stream;
*/ */
public final class WgQuickBackend implements Backend { public final class WgQuickBackend implements Backend {
private static final String TAG = WgQuickBackend.class.getSimpleName(); private static final String TAG = "WireGuard/" + WgQuickBackend.class.getSimpleName();
private final Context context; private final Context context;
private final RootShell rootShell; private final RootShell rootShell;

View File

@ -21,7 +21,7 @@ import java9.util.stream.Stream;
*/ */
public final class FileConfigStore implements ConfigStore { public final class FileConfigStore implements ConfigStore {
private static final String TAG = FileConfigStore.class.getSimpleName(); private static final String TAG = "WireGuard/" + FileConfigStore.class.getSimpleName();
private final Context context; private final Context context;

View File

@ -26,7 +26,7 @@ import com.wireguard.android.util.RootShell;
*/ */
public final class TunnelController { public final class TunnelController {
private static final String TAG = TunnelController.class.getSimpleName(); private static final String TAG = "WireGuard/" + TunnelController.class.getSimpleName();
private TunnelController() { private TunnelController() {
// Prevent instantiation. // Prevent instantiation.

View File

@ -33,7 +33,7 @@ public class TunnelEditorFragment extends BaseFragment {
private static final String KEY_LOCAL_CONFIG = "local_config"; private static final String KEY_LOCAL_CONFIG = "local_config";
private static final String KEY_LOCAL_NAME = "local_name"; private static final String KEY_LOCAL_NAME = "local_name";
private static final String KEY_ORIGINAL_NAME = "original_name"; private static final String KEY_ORIGINAL_NAME = "original_name";
private static final String TAG = TunnelEditorFragment.class.getSimpleName(); private static final String TAG = "WireGuard/" + TunnelEditorFragment.class.getSimpleName();
private final ObservableField<String> localName = new ObservableField<>(""); private final ObservableField<String> localName = new ObservableField<>("");
private TunnelEditorFragmentBinding binding; private TunnelEditorFragmentBinding binding;

View File

@ -53,7 +53,7 @@ import java9.util.stream.StreamSupport;
public class TunnelListFragment extends BaseFragment { public class TunnelListFragment extends BaseFragment {
private static final int REQUEST_IMPORT = 1; private static final int REQUEST_IMPORT = 1;
private static final String TAG = TunnelListFragment.class.getSimpleName(); private static final String TAG = "WireGuard/" + TunnelListFragment.class.getSimpleName();
private final MultiChoiceModeListener actionModeListener = new ActionModeListener(); private final MultiChoiceModeListener actionModeListener = new ActionModeListener();
private final ListViewCallbacks listViewCallbacks = new ListViewCallbacks(); private final ListViewCallbacks listViewCallbacks = new ListViewCallbacks();

View File

@ -39,7 +39,7 @@ public final class TunnelManager extends BaseObservable {
private static final String KEY_LAST_USED_TUNNEL = "last_used_tunnel"; private static final String KEY_LAST_USED_TUNNEL = "last_used_tunnel";
private static final String KEY_RESTORE_ON_BOOT = "restore_on_boot"; private static final String KEY_RESTORE_ON_BOOT = "restore_on_boot";
private static final String KEY_RUNNING_TUNNELS = "enabled_configs"; private static final String KEY_RUNNING_TUNNELS = "enabled_configs";
private static final String TAG = TunnelManager.class.getSimpleName(); private static final String TAG = "WireGuard/" + TunnelManager.class.getSimpleName();
private final AsyncWorker asyncWorker; private final AsyncWorker asyncWorker;
private final Backend backend; private final Backend backend;

View File

@ -14,7 +14,7 @@ public enum ExceptionLoggers implements BiConsumer<Object, Throwable> {
D(Log.DEBUG), D(Log.DEBUG),
E(Log.ERROR); E(Log.ERROR);
private static final String TAG = ExceptionLoggers.class.getSimpleName(); private static final String TAG = "WireGuard/" + ExceptionLoggers.class.getSimpleName();
private final int priority; private final int priority;

View File

@ -33,7 +33,7 @@ public class RootShell {
* Setup commands that are run at the beginning of each root shell. The trap command ensures * Setup commands that are run at the beginning of each root shell. The trap command ensures
* access to the return value of the last command, since su itself always exits with 0. * access to the return value of the last command, since su itself always exits with 0.
*/ */
private static final String TAG = "WireGuard/RootShell"; private static final String TAG = "WireGuard/" + RootShell.class.getSimpleName();
private static final String[][] libraryNamedExecutables = { private static final String[][] libraryNamedExecutables = {
{"libwg.so", "wg"}, {"libwg.so", "wg"},
{"libwg-quick.so", "wg-quick"} {"libwg-quick.so", "wg-quick"}