Skip to content

Commit

Permalink
Updated some comments and added javadocs
Browse files Browse the repository at this point in the history
git-svn-id: https://android-motion-detection.googlecode.com/svn/trunk@24 996b93ed-3e4d-4b21-1044-74bd19560d1d
  • Loading branch information
[email protected] committed Dec 15, 2011
1 parent c345666 commit 69bb1c6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions create_javadocs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#1/bin/bash

javadoc -author -linkoffline http://d.android.com/reference file:/usr/local/android-sdk-linux_86/docs/reference -classpath /usr/local/android-sdk-linux_86/platforms/android-4/android.jar -d javadocs/ -sourcepath `find . -name *.java`
2 changes: 1 addition & 1 deletion src/com/jwetherell/motion_detection/data/GlobalData.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @author Justin Wetherell <[email protected]>
*/
public class GlobalData {
public abstract class GlobalData {
private GlobalData() { };

private static final AtomicBoolean phoneInMotion = new AtomicBoolean(false);
Expand Down
4 changes: 3 additions & 1 deletion src/com/jwetherell/motion_detection/data/Preferences.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
*
* @author Justin Wetherell <[email protected]>
*/
public class Preferences {
public abstract class Preferences {
private Preferences() { }

//Which motion detection to use
public static boolean USE_RGB = true;
public static boolean USE_LUMA = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ private ImageProcessing() { }
/**
* Get RGB values from pixel.
* @param pixel Integer representation of a pixel.
* @return
* @return float array of a,r,g,b values.
*/
public static float[] getARGB(int pixel) {
int a = (pixel >> 24) & 0xff;
Expand Down Expand Up @@ -212,7 +212,7 @@ public static Bitmap rotate(Bitmap bmp, int degrees) {

/**
* Rotate the given image in byte array format by the given degrees.
* @param bmp Bitmap to rotate.
* @param data Bitmap to rotate in byte array form.
* @param degrees Degrees to rotate.
* @return Byte array format of an image which was rotated.
*/
Expand Down

0 comments on commit 69bb1c6

Please sign in to comment.