summaryrefslogtreecommitdiffstats
path: root/src/com/cyanogenmod/eleven/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/cyanogenmod/eleven/utils')
-rw-r--r--src/com/cyanogenmod/eleven/utils/ApolloUtils.java18
-rw-r--r--src/com/cyanogenmod/eleven/utils/BitmapUtils.java6
-rw-r--r--src/com/cyanogenmod/eleven/utils/Lists.java4
-rw-r--r--src/com/cyanogenmod/eleven/utils/NavUtils.java14
-rw-r--r--src/com/cyanogenmod/eleven/utils/PlaylistPopupMenuHelper.java2
-rw-r--r--src/com/cyanogenmod/eleven/utils/PreferenceUtils.java30
-rw-r--r--src/com/cyanogenmod/eleven/utils/SortOrder.java2
-rw-r--r--src/com/cyanogenmod/eleven/utils/SrtParser.java1
8 files changed, 38 insertions, 39 deletions
diff --git a/src/com/cyanogenmod/eleven/utils/ApolloUtils.java b/src/com/cyanogenmod/eleven/utils/ApolloUtils.java
index 35f58ae..534358c 100644
--- a/src/com/cyanogenmod/eleven/utils/ApolloUtils.java
+++ b/src/com/cyanogenmod/eleven/utils/ApolloUtils.java
@@ -42,7 +42,7 @@ import java.util.concurrent.ThreadPoolExecutor;
/**
* Mostly general and UI helpers.
- *
+ *
* @author Andrew Neal (andrewdneal@gmail.com)
*/
public final class ApolloUtils {
@@ -80,7 +80,7 @@ public final class ApolloUtils {
/**
* Used to determine if the device is a tablet or not
- *
+ *
* @param context The {@link Context} to use.
* @return True if the device is a tablet, false otherwise.
*/
@@ -91,7 +91,7 @@ public final class ApolloUtils {
/**
* Used to determine if the device is currently in landscape mode
- *
+ *
* @param context The {@link Context} to use.
* @return True if the device is in landscape mode, false otherwise.
*/
@@ -102,7 +102,7 @@ public final class ApolloUtils {
/**
* Execute an {@link AsyncTask} on a thread pool
- *
+ *
* @param forceSerial True to force the task to run in serial order
* @param task Task to execute
* @param args Optional arguments to pass to
@@ -126,7 +126,7 @@ public final class ApolloUtils {
/**
* Used to determine if there is an active data connection and what type of
* connection it is if there is one
- *
+ *
* @param context The {@link Context} to use
* @return True if there is an active data connection, false otherwise.
* Also, if the user has checked to only download via Wi-Fi in the
@@ -179,7 +179,7 @@ public final class ApolloUtils {
/**
* Display a {@link Toast} letting the user know what an item does when long
* pressed.
- *
+ *
* @param view The {@link View} to copy the content description from.
*/
public static void showCheatSheet(final View view) {
@@ -217,7 +217,7 @@ public final class ApolloUtils {
/**
* Calculate whether a color is light or dark, based on a commonly known
* brightness formula.
- *
+ *
* @see {@literal http://en.wikipedia.org/wiki/HSV_color_space%23Lightness}
*/
public static final boolean isColorDark(final int color) {
@@ -226,7 +226,7 @@ public final class ApolloUtils {
/**
* Runs a piece of code after the next layout run
- *
+ *
* @param view The {@link View} used.
* @param runnable The {@link Runnable} used after the next layout run
*/
@@ -246,7 +246,7 @@ public final class ApolloUtils {
/**
* Creates a new instance of the {@link ImageCache} and {@link ImageFetcher}
- *
+ *
* @param activity The {@link Activity} to use.
* @return A new {@link ImageFetcher} used to fetch images asynchronously.
*/
diff --git a/src/com/cyanogenmod/eleven/utils/BitmapUtils.java b/src/com/cyanogenmod/eleven/utils/BitmapUtils.java
index 71ebe3c..3e02549 100644
--- a/src/com/cyanogenmod/eleven/utils/BitmapUtils.java
+++ b/src/com/cyanogenmod/eleven/utils/BitmapUtils.java
@@ -19,7 +19,7 @@ import android.graphics.Paint;
/**
* {@link Bitmap} specific helpers.
- *
+ *
* @author Andrew Neal (andrewdneal@gmail.com)
*/
public final class BitmapUtils {
@@ -33,7 +33,7 @@ public final class BitmapUtils {
/**
* Takes a bitmap and creates a new slightly blurry version of it.
- *
+ *
* @param sentBitmap The {@link Bitmap} to blur.
* @return A blurred version of the given {@link Bitmap}.
*/
@@ -266,7 +266,7 @@ public final class BitmapUtils {
/**
* This is only used when the launcher shortcut is created.
- *
+ *
* @param bitmap The artist, album, genre, or playlist image that's going to
* be cropped.
* @param size The new size.
diff --git a/src/com/cyanogenmod/eleven/utils/Lists.java b/src/com/cyanogenmod/eleven/utils/Lists.java
index 7e4f670..46bc773 100644
--- a/src/com/cyanogenmod/eleven/utils/Lists.java
+++ b/src/com/cyanogenmod/eleven/utils/Lists.java
@@ -30,7 +30,7 @@ public final class Lists {
* <p>
* <b>Note:</b> if you only need an <i>immutable</i> empty List, use
* {@link Collections#emptyList} instead.
- *
+ *
* @return a newly-created, initially-empty {@code ArrayList}
*/
public static final <E> ArrayList<E> newArrayList() {
@@ -42,7 +42,7 @@ public final class Lists {
* <p>
* <b>Note:</b> if you only need an <i>immutable</i> empty List, use
* {@link Collections#emptyList} instead.
- *
+ *
* @return a newly-created, initially-empty {@code LinkedList}
*/
public static final <E> LinkedList<E> newLinkedList() {
diff --git a/src/com/cyanogenmod/eleven/utils/NavUtils.java b/src/com/cyanogenmod/eleven/utils/NavUtils.java
index 0e74f47..31fa5b9 100644
--- a/src/com/cyanogenmod/eleven/utils/NavUtils.java
+++ b/src/com/cyanogenmod/eleven/utils/NavUtils.java
@@ -35,14 +35,14 @@ import java.util.List;
/**
* Various navigation helpers.
- *
+ *
* @author Andrew Neal (andrewdneal@gmail.com)
*/
public final class NavUtils {
/**
* Opens the profile of an artist.
- *
+ *
* @param context The {@link Activity} to use.
* @param artistName The name of the artist
*/
@@ -62,7 +62,7 @@ public final class NavUtils {
/**
* Opens the profile of an album.
- *
+ *
* @param context The {@link Activity} to use.
* @param albumName The name of the album
* @param artistName The name of the album artist
@@ -127,7 +127,7 @@ public final class NavUtils {
/**
* Opens the sound effects panel or DSP manager in CM
- *
+ *
* @param context The {@link Activity} to use.
* @param requestCode The request code passed into startActivityForResult
*/
@@ -152,7 +152,7 @@ public final class NavUtils {
/**
* Opens to {@link SettingsActivity}.
- *
+ *
* @param activity The {@link Activity} to use.
*/
public static void openSettings(final Activity activity) {
@@ -162,7 +162,7 @@ public final class NavUtils {
/**
* Opens to {@link com.cyanogenmod.eleven.ui.activities.SearchActivity}.
- *
+ *
* @param activity The {@link Activity} to use.
* @param query The search query.
*/
@@ -176,7 +176,7 @@ public final class NavUtils {
/**
* Opens to {@link com.cyanogenmod.eleven.ui.activities.HomeActivity}.
- *
+ *
* @param activity The {@link Activity} to use.
*/
public static void goHome(final Activity activity, final int browseIndex) {
diff --git a/src/com/cyanogenmod/eleven/utils/PlaylistPopupMenuHelper.java b/src/com/cyanogenmod/eleven/utils/PlaylistPopupMenuHelper.java
index 9da5703..a3fd6d0 100644
--- a/src/com/cyanogenmod/eleven/utils/PlaylistPopupMenuHelper.java
+++ b/src/com/cyanogenmod/eleven/utils/PlaylistPopupMenuHelper.java
@@ -83,7 +83,7 @@ public abstract class PlaylistPopupMenuHelper extends PopupMenuHelper {
/**
* Create a new {@link AlertDialog} for easy playlist deletion
- *
+ *
* @param playlistName The title of the playlist being deleted
* @param playlistId The ID of the playlist being deleted
* @return A new {@link AlertDialog} used to delete playlists
diff --git a/src/com/cyanogenmod/eleven/utils/PreferenceUtils.java b/src/com/cyanogenmod/eleven/utils/PreferenceUtils.java
index 7f4fd12..e3e868f 100644
--- a/src/com/cyanogenmod/eleven/utils/PreferenceUtils.java
+++ b/src/com/cyanogenmod/eleven/utils/PreferenceUtils.java
@@ -28,7 +28,7 @@ import com.cyanogenmod.eleven.ui.fragments.phone.MusicBrowserPhoneFragment;
/**
* A collection of helpers designed to get and set various preferences across
* Apollo.
- *
+ *
* @author Andrew Neal (andrewdneal@gmail.com)
*/
public final class PreferenceUtils {
@@ -90,7 +90,7 @@ public final class PreferenceUtils {
/**
* Constructor for <code>PreferenceUtils</code>
- *
+ *
* @param context The {@link Context} to use.
*/
public PreferenceUtils(final Context context) {
@@ -110,7 +110,7 @@ public final class PreferenceUtils {
/**
* Saves the current page the user is on when they close the app.
- *
+ *
* @param value The last page the pager was on when the onDestroy is called
* in {@link MusicBrowserPhoneFragment}.
*/
@@ -126,7 +126,7 @@ public final class PreferenceUtils {
}
}, (Void[])null);
}
-
+
/**
* Set the listener for preference change
* @param listener
@@ -137,7 +137,7 @@ public final class PreferenceUtils {
/**
* Returns the last page the user was on when the app was exited.
- *
+ *
* @return The page to start on when the app is opened.
*/
public final int getStartPage() {
@@ -146,7 +146,7 @@ public final class PreferenceUtils {
/**
* Sets the new theme color.
- *
+ *
* @param value The new theme color to use.
*/
public void setDefaultThemeColor(final int value) {
@@ -164,7 +164,7 @@ public final class PreferenceUtils {
/**
* Returns the current theme color.
- *
+ *
* @param context The {@link Context} to use.
* @return The default theme color.
*/
@@ -199,7 +199,7 @@ public final class PreferenceUtils {
/**
* Saves the sort order for a list.
- *
+ *
* @param key Which sort order to change
* @param value The new sort order
*/
@@ -218,7 +218,7 @@ public final class PreferenceUtils {
/**
* Sets the sort order for the artist list.
- *
+ *
* @param value The new sort order
*/
public void setArtistSortOrder(final String value) {
@@ -234,7 +234,7 @@ public final class PreferenceUtils {
/**
* Sets the sort order for the artist song list.
- *
+ *
* @param value The new sort order
*/
public void setArtistSongSortOrder(final String value) {
@@ -252,7 +252,7 @@ public final class PreferenceUtils {
/**
* Sets the sort order for the artist album list.
- *
+ *
* @param value The new sort order
*/
public void setArtistAlbumSortOrder(final String value) {
@@ -270,7 +270,7 @@ public final class PreferenceUtils {
/**
* Sets the sort order for the album list.
- *
+ *
* @param value The new sort order
*/
public void setAlbumSortOrder(final String value) {
@@ -286,7 +286,7 @@ public final class PreferenceUtils {
/**
* Sets the sort order for the album song list.
- *
+ *
* @param value The new sort order
*/
public void setAlbumSongSortOrder(final String value) {
@@ -304,7 +304,7 @@ public final class PreferenceUtils {
/**
* Sets the sort order for the song list.
- *
+ *
* @param value The new sort order
*/
public void setSongSortOrder(final String value) {
@@ -337,7 +337,7 @@ public final class PreferenceUtils {
public boolean getShowVisualizer() {
return mPreferences.getBoolean(SHOW_VISUALIZER, true);
}
-
+
public boolean getShakeToPlay() {
return mPreferences.getBoolean(SHAKE_TO_PLAY, false);
}
diff --git a/src/com/cyanogenmod/eleven/utils/SortOrder.java b/src/com/cyanogenmod/eleven/utils/SortOrder.java
index 3c9fe83..6352a43 100644
--- a/src/com/cyanogenmod/eleven/utils/SortOrder.java
+++ b/src/com/cyanogenmod/eleven/utils/SortOrder.java
@@ -17,7 +17,7 @@ import android.provider.MediaStore;
/**
* Holds all of the sort orders for each list type.
- *
+ *
* @author Andrew Neal (andrewdneal@gmail.com)
*/
public final class SortOrder {
diff --git a/src/com/cyanogenmod/eleven/utils/SrtParser.java b/src/com/cyanogenmod/eleven/utils/SrtParser.java
index e5d7f38..bace32a 100644
--- a/src/com/cyanogenmod/eleven/utils/SrtParser.java
+++ b/src/com/cyanogenmod/eleven/utils/SrtParser.java
@@ -135,4 +135,3 @@ public class SrtParser {
return hours * 60 * 60 * 1000 + minutes * 60 * 1000 + seconds * 1000 + millies;
}
}
-