diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2011-03-11 15:46:02 +0000 |
---|---|---|
committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2011-03-11 15:46:02 +0000 |
commit | 78d0fdab9c11e256553c8ad7404856b58a4d3985 (patch) | |
tree | 6bac030200cb3cbbe7e8961b357300f73b878686 | |
parent | 42f69c28c67a9feec5084138b76992af94477432 (diff) | |
download | rockbox-78d0fdab9c11e256553c8ad7404856b58a4d3985.tar.gz rockbox-78d0fdab9c11e256553c8ad7404856b58a4d3985.zip |
Android: get rid of warnings (no functional changes)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29566 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | android/src/org/rockbox/Helper/RunForegroundManager.java | 1 | ||||
-rw-r--r-- | android/src/org/rockbox/RockboxFramebuffer.java | 7 | ||||
-rw-r--r-- | android/src/org/rockbox/RockboxKeyboardInput.java | 1 | ||||
-rw-r--r-- | android/src/org/rockbox/RockboxPCM.java | 3 | ||||
-rw-r--r-- | android/src/org/rockbox/RockboxService.java | 7 | ||||
-rw-r--r-- | android/src/org/rockbox/RockboxYesno.java | 2 |
6 files changed, 1 insertions, 20 deletions
diff --git a/android/src/org/rockbox/Helper/RunForegroundManager.java b/android/src/org/rockbox/Helper/RunForegroundManager.java index 67e1ef4f8f..99287c3c6a 100644 --- a/android/src/org/rockbox/Helper/RunForegroundManager.java +++ b/android/src/org/rockbox/Helper/RunForegroundManager.java | |||
@@ -1,6 +1,5 @@ | |||
1 | package org.rockbox.Helper; | 1 | package org.rockbox.Helper; |
2 | 2 | ||
3 | import java.lang.reflect.InvocationTargetException; | ||
4 | import java.lang.reflect.Method; | 3 | import java.lang.reflect.Method; |
5 | 4 | ||
6 | import org.rockbox.R; | 5 | import org.rockbox.R; |
diff --git a/android/src/org/rockbox/RockboxFramebuffer.java b/android/src/org/rockbox/RockboxFramebuffer.java index a17bc90ab6..6acc5322df 100644 --- a/android/src/org/rockbox/RockboxFramebuffer.java +++ b/android/src/org/rockbox/RockboxFramebuffer.java | |||
@@ -62,7 +62,6 @@ public class RockboxFramebuffer extends SurfaceView | |||
62 | 62 | ||
63 | /* second stage init; called from Rockbox with information about the | 63 | /* second stage init; called from Rockbox with information about the |
64 | * display framebuffer */ | 64 | * display framebuffer */ |
65 | @SuppressWarnings("unused") | ||
66 | private void java_lcd_init(int lcd_width, int lcd_height, ByteBuffer native_fb) | 65 | private void java_lcd_init(int lcd_width, int lcd_height, ByteBuffer native_fb) |
67 | { | 66 | { |
68 | btm = Bitmap.createBitmap(lcd_width, lcd_height, Bitmap.Config.RGB_565); | 67 | btm = Bitmap.createBitmap(lcd_width, lcd_height, Bitmap.Config.RGB_565); |
@@ -70,7 +69,6 @@ public class RockboxFramebuffer extends SurfaceView | |||
70 | setEnabled(true); | 69 | setEnabled(true); |
71 | } | 70 | } |
72 | 71 | ||
73 | @SuppressWarnings("unused") | ||
74 | private void java_lcd_update() | 72 | private void java_lcd_update() |
75 | { | 73 | { |
76 | SurfaceHolder holder = getHolder(); | 74 | SurfaceHolder holder = getHolder(); |
@@ -83,7 +81,6 @@ public class RockboxFramebuffer extends SurfaceView | |||
83 | holder.unlockCanvasAndPost(c); | 81 | holder.unlockCanvasAndPost(c); |
84 | } | 82 | } |
85 | 83 | ||
86 | @SuppressWarnings("unused") | ||
87 | private void java_lcd_update_rect(int x, int y, int width, int height) | 84 | private void java_lcd_update_rect(int x, int y, int width, int height) |
88 | { | 85 | { |
89 | SurfaceHolder holder = getHolder(); | 86 | SurfaceHolder holder = getHolder(); |
@@ -99,7 +96,6 @@ public class RockboxFramebuffer extends SurfaceView | |||
99 | holder.unlockCanvasAndPost(c); | 96 | holder.unlockCanvasAndPost(c); |
100 | } | 97 | } |
101 | 98 | ||
102 | @SuppressWarnings("unused") | ||
103 | private void LOG(CharSequence text) | 99 | private void LOG(CharSequence text) |
104 | { | 100 | { |
105 | Log.d("Rockbox", (String) text); | 101 | Log.d("Rockbox", (String) text); |
@@ -135,13 +131,12 @@ public class RockboxFramebuffer extends SurfaceView | |||
135 | return buttonHandler(keyCode, false); | 131 | return buttonHandler(keyCode, false); |
136 | } | 132 | } |
137 | 133 | ||
138 | @SuppressWarnings("unused") | ||
139 | private int getDpi() | 134 | private int getDpi() |
140 | { | 135 | { |
141 | return metrics.densityDpi; | 136 | return metrics.densityDpi; |
142 | } | 137 | } |
143 | 138 | ||
144 | @SuppressWarnings("unused") | 139 | |
145 | private int getScrollThreshold() | 140 | private int getScrollThreshold() |
146 | { | 141 | { |
147 | return view_config.getScaledTouchSlop(); | 142 | return view_config.getScaledTouchSlop(); |
diff --git a/android/src/org/rockbox/RockboxKeyboardInput.java b/android/src/org/rockbox/RockboxKeyboardInput.java index 9cb5683a57..107b72ddae 100644 --- a/android/src/org/rockbox/RockboxKeyboardInput.java +++ b/android/src/org/rockbox/RockboxKeyboardInput.java | |||
@@ -72,7 +72,6 @@ public class RockboxKeyboardInput | |||
72 | 72 | ||
73 | private native void put_result(boolean accepted, String new_string); | 73 | private native void put_result(boolean accepted, String new_string); |
74 | 74 | ||
75 | @SuppressWarnings("unused") | ||
76 | public boolean is_usable() | 75 | public boolean is_usable() |
77 | { | 76 | { |
78 | return RockboxService.get_instance().get_activity() != null; | 77 | return RockboxService.get_instance().get_activity() != null; |
diff --git a/android/src/org/rockbox/RockboxPCM.java b/android/src/org/rockbox/RockboxPCM.java index 1ff35f7b68..252fcf6802 100644 --- a/android/src/org/rockbox/RockboxPCM.java +++ b/android/src/org/rockbox/RockboxPCM.java | |||
@@ -27,7 +27,6 @@ import android.content.Intent; | |||
27 | import android.media.AudioFormat; | 27 | import android.media.AudioFormat; |
28 | import android.media.AudioManager; | 28 | import android.media.AudioManager; |
29 | import android.media.AudioTrack; | 29 | import android.media.AudioTrack; |
30 | import android.net.Uri; | ||
31 | import android.os.Handler; | 30 | import android.os.Handler; |
32 | import android.os.HandlerThread; | 31 | import android.os.HandlerThread; |
33 | import android.os.Process; | 32 | import android.os.Process; |
@@ -78,7 +77,6 @@ public class RockboxPCM extends AudioTrack | |||
78 | return (frames*4); | 77 | return (frames*4); |
79 | } | 78 | } |
80 | 79 | ||
81 | @SuppressWarnings("unused") | ||
82 | private void play_pause(boolean pause) | 80 | private void play_pause(boolean pause) |
83 | { | 81 | { |
84 | RockboxService service = RockboxService.get_instance(); | 82 | RockboxService service = RockboxService.get_instance(); |
@@ -130,7 +128,6 @@ public class RockboxPCM extends AudioTrack | |||
130 | RockboxService.get_instance().stopForeground(); | 128 | RockboxService.get_instance().stopForeground(); |
131 | } | 129 | } |
132 | 130 | ||
133 | @SuppressWarnings("unused") | ||
134 | private void set_volume(int volume) | 131 | private void set_volume(int volume) |
135 | { | 132 | { |
136 | /* volume comes from 0..-990 from Rockbox */ | 133 | /* volume comes from 0..-990 from Rockbox */ |
diff --git a/android/src/org/rockbox/RockboxService.java b/android/src/org/rockbox/RockboxService.java index c474044c0b..3d7d7908c0 100644 --- a/android/src/org/rockbox/RockboxService.java +++ b/android/src/org/rockbox/RockboxService.java | |||
@@ -24,7 +24,6 @@ package org.rockbox; | |||
24 | import java.io.BufferedInputStream; | 24 | import java.io.BufferedInputStream; |
25 | import java.io.BufferedOutputStream; | 25 | import java.io.BufferedOutputStream; |
26 | import java.io.File; | 26 | import java.io.File; |
27 | import java.io.FileNotFoundException; | ||
28 | import java.io.FileOutputStream; | 27 | import java.io.FileOutputStream; |
29 | import java.io.OutputStreamWriter; | 28 | import java.io.OutputStreamWriter; |
30 | import java.util.Enumeration; | 29 | import java.util.Enumeration; |
@@ -68,7 +67,6 @@ public class RockboxService extends Service | |||
68 | private BroadcastReceiver batt_monitor; | 67 | private BroadcastReceiver batt_monitor; |
69 | private RunForegroundManager fg_runner; | 68 | private RunForegroundManager fg_runner; |
70 | private MediaButtonReceiver mMediaButtonReceiver; | 69 | private MediaButtonReceiver mMediaButtonReceiver; |
71 | @SuppressWarnings("unused") | ||
72 | private int battery_level; | 70 | private int battery_level; |
73 | private ResultReceiver resultReceiver; | 71 | private ResultReceiver resultReceiver; |
74 | 72 | ||
@@ -302,11 +300,6 @@ public class RockboxService extends Service | |||
302 | } | 300 | } |
303 | 301 | ||
304 | 302 | ||
305 | @SuppressWarnings("unused") | ||
306 | /* | ||
307 | * Sets up the battery monitor which receives the battery level | ||
308 | * about each 30 seconds | ||
309 | */ | ||
310 | private void initBatteryMonitor() | 303 | private void initBatteryMonitor() |
311 | { | 304 | { |
312 | itf = new IntentFilter(Intent.ACTION_BATTERY_CHANGED); | 305 | itf = new IntentFilter(Intent.ACTION_BATTERY_CHANGED); |
diff --git a/android/src/org/rockbox/RockboxYesno.java b/android/src/org/rockbox/RockboxYesno.java index df8c54b7d9..f770f1c7e2 100644 --- a/android/src/org/rockbox/RockboxYesno.java +++ b/android/src/org/rockbox/RockboxYesno.java | |||
@@ -27,7 +27,6 @@ import android.content.DialogInterface; | |||
27 | 27 | ||
28 | public class RockboxYesno | 28 | public class RockboxYesno |
29 | { | 29 | { |
30 | @SuppressWarnings("unused") | ||
31 | private void yesno_display(final String text, final String yes, final String no) | 30 | private void yesno_display(final String text, final String yes, final String no) |
32 | { | 31 | { |
33 | final Activity c = RockboxService.get_instance().get_activity(); | 32 | final Activity c = RockboxService.get_instance().get_activity(); |
@@ -59,7 +58,6 @@ public class RockboxYesno | |||
59 | }); | 58 | }); |
60 | } | 59 | } |
61 | 60 | ||
62 | @SuppressWarnings("unused") | ||
63 | private boolean is_usable() | 61 | private boolean is_usable() |
64 | { | 62 | { |
65 | return RockboxService.get_instance().get_activity() != null; | 63 | return RockboxService.get_instance().get_activity() != null; |