forked from len0rd/rockbox
Android: get rid of warnings (no functional changes)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29566 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
42f69c28c6
commit
78d0fdab9c
6 changed files with 1 additions and 20 deletions
|
@ -1,6 +1,5 @@
|
|||
package org.rockbox.Helper;
|
||||
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
import org.rockbox.R;
|
||||
|
|
|
@ -62,7 +62,6 @@ public class RockboxFramebuffer extends SurfaceView
|
|||
|
||||
/* second stage init; called from Rockbox with information about the
|
||||
* display framebuffer */
|
||||
@SuppressWarnings("unused")
|
||||
private void java_lcd_init(int lcd_width, int lcd_height, ByteBuffer native_fb)
|
||||
{
|
||||
btm = Bitmap.createBitmap(lcd_width, lcd_height, Bitmap.Config.RGB_565);
|
||||
|
@ -70,7 +69,6 @@ public class RockboxFramebuffer extends SurfaceView
|
|||
setEnabled(true);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private void java_lcd_update()
|
||||
{
|
||||
SurfaceHolder holder = getHolder();
|
||||
|
@ -83,7 +81,6 @@ public class RockboxFramebuffer extends SurfaceView
|
|||
holder.unlockCanvasAndPost(c);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private void java_lcd_update_rect(int x, int y, int width, int height)
|
||||
{
|
||||
SurfaceHolder holder = getHolder();
|
||||
|
@ -99,7 +96,6 @@ public class RockboxFramebuffer extends SurfaceView
|
|||
holder.unlockCanvasAndPost(c);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private void LOG(CharSequence text)
|
||||
{
|
||||
Log.d("Rockbox", (String) text);
|
||||
|
@ -135,13 +131,12 @@ public class RockboxFramebuffer extends SurfaceView
|
|||
return buttonHandler(keyCode, false);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private int getDpi()
|
||||
{
|
||||
return metrics.densityDpi;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
|
||||
private int getScrollThreshold()
|
||||
{
|
||||
return view_config.getScaledTouchSlop();
|
||||
|
|
|
@ -72,7 +72,6 @@ public class RockboxKeyboardInput
|
|||
|
||||
private native void put_result(boolean accepted, String new_string);
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public boolean is_usable()
|
||||
{
|
||||
return RockboxService.get_instance().get_activity() != null;
|
||||
|
|
|
@ -27,7 +27,6 @@ import android.content.Intent;
|
|||
import android.media.AudioFormat;
|
||||
import android.media.AudioManager;
|
||||
import android.media.AudioTrack;
|
||||
import android.net.Uri;
|
||||
import android.os.Handler;
|
||||
import android.os.HandlerThread;
|
||||
import android.os.Process;
|
||||
|
@ -78,7 +77,6 @@ public class RockboxPCM extends AudioTrack
|
|||
return (frames*4);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private void play_pause(boolean pause)
|
||||
{
|
||||
RockboxService service = RockboxService.get_instance();
|
||||
|
@ -130,7 +128,6 @@ public class RockboxPCM extends AudioTrack
|
|||
RockboxService.get_instance().stopForeground();
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private void set_volume(int volume)
|
||||
{
|
||||
/* volume comes from 0..-990 from Rockbox */
|
||||
|
|
|
@ -24,7 +24,6 @@ package org.rockbox;
|
|||
import java.io.BufferedInputStream;
|
||||
import java.io.BufferedOutputStream;
|
||||
import java.io.File;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.OutputStreamWriter;
|
||||
import java.util.Enumeration;
|
||||
|
@ -68,7 +67,6 @@ public class RockboxService extends Service
|
|||
private BroadcastReceiver batt_monitor;
|
||||
private RunForegroundManager fg_runner;
|
||||
private MediaButtonReceiver mMediaButtonReceiver;
|
||||
@SuppressWarnings("unused")
|
||||
private int battery_level;
|
||||
private ResultReceiver resultReceiver;
|
||||
|
||||
|
@ -302,11 +300,6 @@ public class RockboxService extends Service
|
|||
}
|
||||
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
/*
|
||||
* Sets up the battery monitor which receives the battery level
|
||||
* about each 30 seconds
|
||||
*/
|
||||
private void initBatteryMonitor()
|
||||
{
|
||||
itf = new IntentFilter(Intent.ACTION_BATTERY_CHANGED);
|
||||
|
|
|
@ -27,7 +27,6 @@ import android.content.DialogInterface;
|
|||
|
||||
public class RockboxYesno
|
||||
{
|
||||
@SuppressWarnings("unused")
|
||||
private void yesno_display(final String text, final String yes, final String no)
|
||||
{
|
||||
final Activity c = RockboxService.get_instance().get_activity();
|
||||
|
@ -59,7 +58,6 @@ public class RockboxYesno
|
|||
});
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private boolean is_usable()
|
||||
{
|
||||
return RockboxService.get_instance().get_activity() != null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue