Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ public final class PackageUtilities
*/
private static final Set<String> COMPATIBLE_PACKAGES = constructPackageSet();

private PackageUtilities() {
}

/**
* @return a list wrapped in {@link Collections#unmodifiableList(List)} that represents the set of
* Locale-compatible packages.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
import android.os.Bundle;

public final class BundleScrubber {
private BundleScrubber() {
}

public static boolean scrub(final Intent intent) {
if (null == intent) {
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ public class CameraUtils {
private static SharedPreferences.Editor editor;
private static final String sharedPreferencesKey = "LastImage";

private CameraUtils() {
}

public static Camera.Size getBiggestPictureSize(
Camera.Parameters parameters) {
Camera.Size result = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@

public final class FoursquareUtils {

private FoursquareUtils() {
}

public static String encodePostBody(Bundle parameters, String boundary) {
if (parameters == null)
return "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
import java.util.Map;

public class ImageUtils {
private ImageUtils() {
}

public static Bitmap decodeFile(File f, int required_size) {
try {
// Decode image size
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ public class SensorUtil {
public static PackageManager PM;
public static boolean sensor;

private SensorUtil() {
}

public static Boolean isDeviceHasSensor(String sensorType, Context mContext) {

PM = mContext.getPackageManager();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package com.integreight.onesheeld.utils;

public class ArrayUtils {
private ArrayUtils() {
}

public static byte[] copyOfRange(byte[] from, int start, int end) {
int length = end - start;
byte[] result = new byte[length];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

public class BitsUtils {

private BitsUtils() {
}

public static byte setBit(byte b, int bit) {
if (bit < 0 || bit >= 8) return b;
return (byte) (b | (1 << bit));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package com.integreight.onesheeld.utils;

public class CrashlyticsUtils {
private CrashlyticsUtils() {
}

public static void setString(String key, String value) {
try {
com.crashlytics.android.Crashlytics.setString(key, value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,9 @@ public static final class TYPE {
public final static int NOT_CONNECTED_AND_ENABLED = R.drawable.arduino_default_pin;
public final static int DISABLED = R.drawable.arduino_red_pin;
public final static int DUMMY = R.drawable.arduino_dummy_pin;

private TYPE() {
}
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,9 @@ public static final class TYPE {
public final static int NOT_CONNECTED_AND_ENABLED = R.drawable.arduino_default_pin;
public final static int DISABLED = R.drawable.arduino_red_pin;
public final static int DUMMY = R.drawable.arduino_dummy_pin;

private TYPE() {
}
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
*/
public class LockPatternUtils {

private LockPatternUtils() {
}

/**
* Deserialize a pattern.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
*
*/
class AlphaAnimator {


private AlphaAnimator() {
}

public static void fadein(View view, int duration) {
fadein(view, duration, null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ public final class OverscrollHelper {
static final String LOG_TAG = "OverscrollHelper";
static final float DEFAULT_OVERSCROLL_SCALE = 1f;

private OverscrollHelper() {
}

/**
* Helper method for Overscrolling that encapsulates all of the necessary
* function.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ public class Utils {
* Invalid android attribute (temporarily defined, to check android attributes' values)
*/
static final int INVALID_INT_VALUE = -1;

private Utils() {
}

/**
* Delegate warn logs at where some deprecated method has been called
* @param depreacted Deprecated method name
Expand Down