text
stringlengths
3
1.18M
/* * Copyright (C) 2010 Stewart Gateley <birbeck@gmail.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any late...
package com.android.zweibo.db; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import com.android.zweibo.bean.Common; public class DBHelper extends SQLiteOpenHelper{ public DBHelper(Context context) { super(context, Common.DB_NAME, n...
package com.android.zweibo.adapter; import java.util.List; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.ListAdapter; import android.widget.TextView;...
package com.android.zweibo.adapter; import java.text.SimpleDateFormat; import java.util.Date; import java.util.List; import weibo4android.Status; import weibo4android.Weibo; import weibo4android.WeiboException; import android.content.Context; import android.text.Html; import android.view.LayoutInflater; import androi...
package com.android.zweibo.util; import android.content.Context; import android.content.SharedPreferences; import android.content.SharedPreferences.Editor; import com.android.zweibo.bean.Common; import com.android.zweibo.bean.UserInfo; public class SharedPreferenceUtil { /** * 保存用户登录信息 * @param con...
package com.android.zweibo.util; import java.util.regex.Matcher; import java.util.regex.Pattern; public class JavaScriptInterface { public static String PIN; public void getPin(String html) { System.out.println("html----" + html); String pin = null; Pattern pattern = Pattern.compile("[0-9]{6}"); Matche...
package com.android.zweibo.util; import weibo4android.Weibo; import weibo4android.WeiboException; import weibo4android.http.AccessToken; import weibo4android.http.RequestToken; /** * 授权认证工具类 * @author zxf * */ public class AuthUtil { private static Weibo weibo; private static RequestToken requestToken; static...
package com.android.zweibo.util; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; public class MD5Util { /** * 16进制字符集 */ private static final char HEX_DIGITS[] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'}; private ...
package com.android.zweibo.bean; public final class Common { public final static int ACCOUNT_ADD = 1; //添加帐号 public final static int USER_LOGIN = 2; //用户登录 public final static int AUTHORIZE = 3; //授权认证 public final static int DIALOG_CLOSE = 4; //关闭对话框 public final static int ACCESS_TOKEN = 5; //获取accessTo...
package com.android.zweibo.bean; import java.util.Map; public class Task { private int taskID; private Map<String,Object> taskParam; public Task(int taskID, Map<String, Object> taskParam) { super(); this.taskID = taskID; this.taskParam = taskParam; } public int getTaskID() { return taskID; } publ...
package com.android.zweibo.bean; import android.graphics.drawable.Drawable; public class UserInfo { private Long id; private String userId; private String userName; private String token; private String tokenSecret; private String isDefault; private Drawable userIcon; public static final String TB_NAME...
package com.android.zweibo.logic; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; import java.util.Queue; import weibo4android.Paging; import weibo4android.Status; import weibo4android.User; import weibo4android.Weibo; import weibo4android.WeiboException; import weibo4android.http.Acce...
package com.android.zweibo.logic; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.util.ArrayList; import java.util.List; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import an...
package com.android.zweibo.imgcache; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.lang.ref.SoftReference; import java.net.HttpURLConnection; import java....
package com.android.zweibo.imgcache; import com.android.zweibo.app.WeiboApplication; import android.graphics.Bitmap; import android.widget.ImageView; public class SimpleImageLoder { /** * 显示图片 * @param view * @param url */ public static void showImage(ImageView view, String url) { view.setTag(url); ...
package com.android.zweibo.imgcache; import java.lang.Thread.State; import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.BlockingQueue; import com.android.zweibo.app.WeiboApplication; import android.graphics.Bitmap; public class ImageLoader { private final static int MESSAGE_ID = 1; publi...
package com.android.zweibo.imgcache; import android.graphics.Bitmap; public interface ImageLoaderCallBack { public void refesh(String url,Bitmap bitmap); }
package com.android.zweibo.ui; import java.util.HashMap; import java.util.List; import java.util.Map; import android.app.Activity; import android.app.Dialog; import android.app.ProgressDialog; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.Window; import android...
package com.android.zweibo.ui; import java.util.HashMap; import java.util.Map; import weibo4android.http.AccessToken; import android.app.Activity; import android.app.ProgressDialog; import android.content.Intent; import android.graphics.drawable.BitmapDrawable; import android.os.Bundle; import android.widget.Toast; ...
package com.android.zweibo.ui; import java.util.List; import weibo4android.Status; import com.android.zweibo.adapter.WBStatusAdapter; import com.android.zweibo.bean.Common; import com.android.zweibo.bean.Task; import com.android.zweibo.logic.MainService; import android.app.Activity; import android.os.Bundle; import...
package com.android.zweibo.ui; import android.app.Activity; import android.app.ProgressDialog; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.webkit.WebChromeClient; import android.webkit.WebView; import android.webkit.WebViewClient; import com.android.zweibo.bean.C...
package com.android.zweibo.ui; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.Window; import android.view.View.OnClickListener; import android.widget.Button; public class AuthActivity extends Activity { private Button authButton; ...
package com.android.zweibo.ui; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.Window; import android.view.WindowManager; import android.view.animation.AlphaAnimation; import android.view.animation.Animation; import android.view.animation.Animation.AnimationLis...
package com.android.zweibo.ui; public interface IWeiboActivity { /** * 初始化 */ public void init(); /** * 刷新 */ public void refresh(Object...objects); }
package com.android.zweibo.ui; import android.app.TabActivity; import android.content.Intent; import android.os.Bundle; import android.widget.RadioGroup; import android.widget.TabHost; import android.widget.RadioGroup.OnCheckedChangeListener; import android.widget.TabHost.TabSpec; /** * * @author zxf * */ public ...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and ...
package weibo4android; import java.util.ArrayList; import java.util.List; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.NodeList; import weibo4android.http.Response; import weibo4android.org.json.JSONArray; import weibo4android.org.json.JSONException; import weibo4android.or...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and ...
package weibo4android; import java.net.MalformedURLException; import java.net.URL; import java.util.ArrayList; import java.util.Date; import java.util.List; import weibo4android.http.Response; import weibo4android.org.json.JSONArray; import weibo4android.org.json.JSONException; import weibo4android.org.jso...
package weibo4android.org.json; /* Copyright (c) 2002 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, m...
package weibo4android.org.json; /* Copyright (c) 2002 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, m...
package weibo4android.org.json; /* Copyright (c) 2002 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, m...
package weibo4android.org.json; /* Copyright (c) 2002 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, m...
package weibo4android.org.json; /* Copyright (c) 2002 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, m...
package weibo4android.org.json; import java.io.BufferedReader; import java.io.IOException; import java.io.Reader; import java.io.StringReader; /* Copyright (c) 2002 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software...
package weibo4android.org.json; import java.util.Collection; import java.util.Iterator; import java.util.Map; import java.io.StringWriter; /** * Test class. This file is not formally a member of the org.json library. * It is just a casual test tool. */ public class Test { /** * Entry point. * @param...
package weibo4android.org.json; /* Copyright (c) 2008 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, m...
package weibo4android.org.json; /* Copyright (c) 2006 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, m...
package weibo4android.org.json; /** * The JSONException is thrown by the JSON.org classes then things are amiss. * @author JSON.org * @version 2008-09-18 */ public class JSONException extends Exception { private Throwable cause; /** * Constructs a JSONException with an explanatory message. * @pa...
package weibo4android.org.json; /** * The <code>JSONString</code> interface allows a <code>toJSONString()</code> * method so that a class can change the behavior of * <code>JSONObject.toString()</code>, <code>JSONArray.toString()</code>, * and <code>JSONWriter.value(</code>Object<code>)</code>. The * <code>toJS...
package weibo4android.org.json; /* Copyright (c) 2002 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, m...
package weibo4android.org.json; /* Copyright (c) 2002 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, m...
package weibo4android.org.json; /* Copyright (c) 2002 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, m...
package weibo4android.org.json; /* Copyright (c) 2002 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, m...
package weibo4android.org.json; import java.io.IOException; import java.io.Writer; /* Copyright (c) 2006 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including w...
package weibo4android; import java.util.ArrayList; import java.util.List; import weibo4android.http.Response; import weibo4android.org.json.JSONArray; import weibo4android.org.json.JSONException; import weibo4android.org.json.JSONObject; /** * 话题 * * @author SinaWeibo * @since Weibo4J 1.2.0 */ public class User...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and ...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and ...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and ...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and ...
/** * */ package weibo4android; import java.util.ArrayList; import java.util.List; import weibo4android.http.Response; import weibo4android.org.json.JSONArray; import weibo4android.org.json.JSONException; import weibo4android.org.json.JSONObject; /** * @author sinaWeibo * */ public class Count...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and ...
package weibo4android.http; import java.io.File; public class FileType { /** * * @param file */ public String getMIMEType(File file) { String type="*/*"; String fName=file.getName(); int dotIndex = fName.lastIndexOf("."); if(dotIndex < 0){ return type; } String end=fName.subst...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and ...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and ...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and ...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and ...
/** * */ package weibo4android.http; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import weibo4android.Constants; /** * 临时存储上传图片的内容,格式,文件信息等 * * @author * */ public class ImageItem { /** * detect bytes's image type ...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and ...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and ...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and ...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and ...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and ...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and ...
/* * UserObjectWapper.java created on 2010-7-28 上午08:48:35 by bwl (Liu Daoru) */ package weibo4android; import java.io.Serializable; import java.util.List; /** * 对User对象列表进行的包装,以支持cursor相关信息传递 * @author sinaWeibo */ public class UserWapper implements Serializable { private static final long ser...
package weibo4android; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.NodeList; import weibo4android.http.Response; import weibo4android.org.json.JSONArray; import weibo4android.org.json.JSONException; import weibo4android.org.json.JSONObject; import java.util.ArrayList; import java.util...
package weibo4android.util; ///////////////////////////////////////////////////////// //Bare Bones Browser Launch // //Version 1.5 (December 10, 2005) // //By Dem Pilafian // //Supports: Mac OS X, GNU/Linux, Unix, Windows XP ...
package weibo4android.util; import android.text.SpannableString; import android.text.Spanned; import android.text.method.LinkMovementMethod; import android.text.style.URLSpan; import android.widget.TextView; public class TextAutoLink { //加入话题 好友 URL的连结 public static char strarray[]; public static ...
package weibo4android.util; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import java.net.URLEncoder; import java.util.BitSet; /** * @author yuanming * */ public class URLEncodeUtils { static BitSet dontNeedEncoding; static { /* * The list of characters that are not encoded has ...
/* Copyright (c) 2007-2009 All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following dis...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and ...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and ...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and ...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and ...
package weibo4android; /** * @author sinaWeibo * */ public enum Gender { MALE, FEMALE; public static String valueOf(Gender gender) { int ordinal= gender.ordinal(); if(ordinal==0) return "m"; return "f"; } }
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and ...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and ...
package weibo4android; import java.util.ArrayList; import java.util.List; import weibo4android.http.Response; import weibo4android.org.json.JSONArray; import weibo4android.org.json.JSONException; import weibo4android.org.json.JSONObject; /** * @author sinaWeibo * */ public class Emotion extends Weib...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and ...
package weibo4android; public class Constants { public static final String WEI_BO_ADDRESS = "http://t.sina.com.cn/"; public static final String X_AUTH_MODE = "client_auth"; public static final String UPLOAD_MODE = "pic"; }
package com.qyx.ui; import android.app.Activity; import android.os.Bundle; public class LoginActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout...
package com.android.zmusic.interfaces; import android.view.View; public interface IOnSliderHandleViewClickListener { void onViewClick(View view); }
package com.android.zmusic.interfaces; public interface IOnServiceConnectComplete { public void OnServiceConnectComplete() ; }
package com.android.zmusic.service; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.ServiceConnection; import android.os.IBinder; import com.android.zmusic.interfaces.IOnServiceConnectComplete; import com.android.zmusic.myaidl.IMusicConnect; ...
package com.android.zmusic.adapter; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.TextView; import com.android.zmusic.musicplay.MenuItemData; import ...
package com.android.zmusic.adapter; import java.util.List; import com.android.zmusic.musicplay.MusicData; import com.android.zmusic.musicplay.MusicPlayState; import com.android.zmusic.ui.R; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; im...
package com.android.zmusic.musicplay; public class MusicPlayMode { //单曲循环 public final static int MP3_SINGLE_LOOP_PLAY = 0; //顺序播放 public final static int MP3_ORDER_PLAY = 1; //列表循环 public final static int MP3_LIST_LOOP_PLAY = 2; //随机播放 public final static int MP3_RANDOM_PLAY = 3; }
package com.android.zmusic.musicplay; import android.os.Bundle; import android.os.Parcel; import android.os.Parcelable; public class MusicData implements Parcelable { public final static String KEY_MUSIC_DATA = "MusicData"; private final static String KEY_MUSIC_NAME = "MusicName"; private final static Strin...
package com.android.zmusic.musicplay; public class MusicPlayState { public final static int MP3_NOFILE = -1; //无音乐文件 public final static int MP3_INVALID = 0; //当前的文件无效 public final static int MP3_PREPARED = 1; //准备就绪 public final static int MP3_PLAYING = 2 ; //音乐播放中 ...
package com.android.zmusic.musicplay; import java.util.ArrayList; import java.util.List; import java.util.Random; import android.content.Context; import android.content.Intent; import android.media.MediaPlayer; import android.media.MediaPlayer.OnCompletionListener; import android.media.MediaPlayer.OnErrorListener; im...
package com.android.zmusic.musicplay; import android.graphics.drawable.Drawable; import android.graphics.drawable.LevelListDrawable; public class MenuItemData { private LevelListDrawable mLevellistDrawable; private String[] mTitleID; private int mCount; public MenuItemData(LevelListDrawable mLevellistDr...
package com.android.zmusic.ui; import com.android.zmusic.interfaces.IOnSliderHandleViewClickListener; import android.content.Context; import android.graphics.Rect; import android.util.AttributeSet; import android.view.MotionEvent; import android.view.View; import android.widget.SlidingDrawer; public class MySlidingD...
package com.android.zmusic.ui; import java.util.ArrayList; import java.util.List; import android.app.Activity; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.database.Cursor; import android.graphics.drawable....
package eu.lighthouselabs.obd.reader.config; import java.util.ArrayList; import eu.lighthouselabs.obd.reader.command.AirIntakeTempObdCommand; import eu.lighthouselabs.obd.reader.command.CommandEquivRatioObdCommand; import eu.lighthouselabs.obd.reader.command.DtcNumberObdCommand; import eu.lighthouselabs.obd.reader.co...
package eu.lighthouselabs.obd.reader.command; public class ThrottleObdCommand extends IntObdCommand { public ThrottleObdCommand(String cmd, String desc, String resType) { super(cmd,desc,resType,resType); } public ThrottleObdCommand() { super("0111","Throttle Position","%","%"); } public ThrottleObdCommand(Th...
package eu.lighthouselabs.obd.reader.command; public class AverageFuelEconomyObdCommand extends ObdCommand { public static final String FUEL_ECONOMY_KEY = "Fuel Economy"; public static final String AVG_FUEL_ECONOMY_KEY = "Fuel Economy Average"; public static final String AVG_FUEL_ECONOMY_COUNT_KEY = "Average Fuel ...
package eu.lighthouselabs.obd.reader.command; public class TempObdCommand extends IntObdCommand{ public TempObdCommand(String cmd, String desc, String resType, String impType) { super(cmd, desc, resType, impType); } public TempObdCommand(TempObdCommand other) { super(other); } protected int transform(int b) ...
package eu.lighthouselabs.obd.reader.command; public class AirIntakeTempObdCommand extends TempObdCommand{ public AirIntakeTempObdCommand() { super("010F","Air Intake Temp","C","F"); } public AirIntakeTempObdCommand(AirIntakeTempObdCommand other) { super(other); } }
package eu.lighthouselabs.obd.reader.command; public class CommandEquivRatioObdCommand extends ObdCommand { private double ratio = 1.0; public CommandEquivRatioObdCommand() { super("0144","Command Equivalence Ratio","",""); } public CommandEquivRatioObdCommand(String cmd, String desc, String resType, String imp...
package eu.lighthouselabs.obd.reader.command; import eu.lighthouselabs.obd.reader.config.ObdConfig; public class EngineRPMObdCommand extends IntObdCommand{ public EngineRPMObdCommand() { super("010C",ObdConfig.RPM,"RPM","RPM"); } public EngineRPMObdCommand(EngineRPMObdCommand other) { super(other); } public...