Unify logging

* Add TAG for every class and use it.

Change-Id: If30dcf43ca087c5f601a58ead3a912e20e7d92dd
diff --git a/app/src/main/java/masquerade/substratum/utils/IOUtils.java b/app/src/main/java/masquerade/substratum/utils/IOUtils.java
index e982128..6f856ad 100644
--- a/app/src/main/java/masquerade/substratum/utils/IOUtils.java
+++ b/app/src/main/java/masquerade/substratum/utils/IOUtils.java
@@ -35,6 +35,7 @@
 import java.util.zip.ZipInputStream;
 
 public class IOUtils {
+    private static final String TAG = IOUtils.class.getSimpleName();
     public static final String SYSTEM_THEME_PATH = "/data/system/theme";
     public static final String SYSTEM_THEME_FONT_PATH = SYSTEM_THEME_PATH + File.separator
             + "fonts";
@@ -98,7 +99,7 @@
         try {
             deleteRecursive(new File(SYSTEM_THEME_FONT_PATH));
         } catch (Exception e) {
-            Log.e("DeleteThemedAudio", "", e);
+            Log.e(TAG, "", e);
         }
     }
 
@@ -106,14 +107,14 @@
         try {
             deleteRecursive(new File(SYSTEM_THEME_AUDIO_PATH));
         } catch (Exception e) {
-            Log.e("DeleteThemedAudio", "", e);
+            Log.e(TAG, "", e);
         }
     }
 
     public static void copyFolder(File source, File dest) {
         if (!dest.exists()) {
             boolean created = dest.mkdirs();
-            if (!created) Log.e("CopyFolder", "Could not create destination folder...");
+            if (!created) Log.e(TAG, "Could not create destination folder...");
         }
         File[] files = source.listFiles();
         for (File file : files) {
@@ -126,7 +127,7 @@
                     copyFolder(file, newFile);
                 }
             } catch (Exception e) {
-                Log.e("CopyFolder", "", e);
+                Log.e(TAG, "", e);
             }
         }
     }
@@ -155,7 +156,7 @@
                 }
             }
         } catch (Exception e) {
-            Log.e("unzip", "", e);
+            Log.e(TAG, "", e);
         }
     }
 
@@ -163,7 +164,7 @@
         try {
             bufferedCopy(new FileInputStream(source), new FileOutputStream(dest));
         } catch (Exception e) {
-            Log.e("BufferedCopy", "", e);
+            Log.e(TAG, "", e);
         }
     }
 
@@ -171,7 +172,7 @@
         try {
             bufferedCopy(new FileInputStream(source), new FileOutputStream(dest));
         } catch (Exception e) {
-            Log.e("BufferedCopy", "", e);
+            Log.e(TAG, "", e);
         }
     }
 
@@ -188,7 +189,7 @@
             in.close();
             out.close();
         } catch (Exception e) {
-            Log.e("BufferedCopy", "", e);
+            Log.e(TAG, "", e);
         }
     }
 
@@ -198,7 +199,7 @@
                 deleteRecursive(child);
 
         boolean deleted = fileOrDirectory.delete();
-        if (!deleted) Log.e("DeleteRecursive", "Could not delete file or directory - \'" +
+        if (!deleted) Log.e(TAG, "Could not delete file or directory - \'" +
                 fileOrDirectory.getName() + "\'");
     }
 
diff --git a/app/src/main/java/masquerade/substratum/utils/SoundUtils.java b/app/src/main/java/masquerade/substratum/utils/SoundUtils.java
index 967cef5..5d613a9 100644
--- a/app/src/main/java/masquerade/substratum/utils/SoundUtils.java
+++ b/app/src/main/java/masquerade/substratum/utils/SoundUtils.java
@@ -36,6 +36,7 @@
 import java.util.Arrays;
 
 public class SoundUtils {
+    private static final String TAG = SoundUtils.class.getSimpleName();
     private static final String SYSTEM_MEDIA_PATH = "/system/media/audio";
     private static final String SYSTEM_ALARMS_PATH =
             SYSTEM_MEDIA_PATH + File.separator + "alarms";
@@ -164,14 +165,14 @@
         if (c != null && c.getCount() > 0) {
             c.moveToFirst();
             long id = c.getLong(0);
-            Log.e("ContentResolver", id + "");
+            Log.e(TAG, id + "");
             c.close();
             newUri = Uri.withAppendedPath(Uri.parse(MEDIA_CONTENT_URI), "" + id);
             try {
                 context.getContentResolver().update(uri, values,
                         MediaStore.MediaColumns._ID + "=" + id, null);
             } catch (Exception e) {
-                Log.d("SoundsHandler", "The content provider does not need to be updated.");
+                Log.d(TAG, "The content provider does not need to be updated.");
             }
         }
         if (newUri == null)
@@ -179,7 +180,7 @@
         try {
             RingtoneManager.setActualDefaultRingtoneUri(context, type, newUri);
         } catch (Exception e) {
-            Log.e("SetUIAudible", "", e);
+            Log.e(TAG, "", e);
             return false;
         }
         return true;