code
stringlengths
3
1.18M
language
stringclasses
1 value
/* * Copyright 2001-2003 Neil Rotstan Copyright (C) 2004 Derek James and Philip * Tucker * * This file is part of JGAP. * * JGAP is free software; you can redistribute it and/or modify it under the * terms of the GNU Lesser Public License as published by the Free Software * Foundation; either version 2.1 of t...
Java
/* * Copyright (C) 2004 Derek James and Philip Tucker * * This file is part of JGAP. * * JGAP is free software; you can redistribute it and/or modify it under the * terms of the GNU Lesser Public License as published by the Free Software * Foundation; either version 2.1 of the License, or (at your option) any ...
Java
/* * Copyright 2001-2003 Neil Rotstan * * This file is part of JGAP. * * JGAP is free software; you can redistribute it and/or modify it under the * terms of the GNU Lesser Public License as published by the Free Software * Foundation; either version 2.1 of the License, or (at your option) any later * version...
Java
/* * Copyright 2001-2003 Neil Rotstan Copyright (C) 2004 Derek James and Philip * Tucker * * This file is part of JGAP. * * JGAP is free software; you can redistribute it and/or modify it under the * terms of the GNU Lesser Public License as published by the Free Software * Foundation; either version 2.1 of t...
Java
/* * Copyright 2001-2003 Neil Rotstan * Copyright (C) 2004 Derek James and Philip Tucker * * This file is part of JGAP. * * JGAP is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser Public License as published by * the Free Software Foundation; either version 2.1 of th...
Java
/* * Copyright (C) 2004 Derek James and Philip Tucker * * This file is part of JGAP. * * JGAP is free software; you can redistribute it and/or modify it under the * terms of the GNU Lesser Public License as published by the Free Software * Foundation; either version 2.1 of the License, or (at your option) any ...
Java
/* * Copyright 2001-2003 Neil Rotstan * Copyright (C) 2004 Derek James and Philip Tucker * * This file is part of JGAP. * * JGAP is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser Public License as published by * the Free Software Foundation; either version 2.1 of th...
Java
/* * Copyright 2001-2003 Neil Rotstan This file is part of JGAP. JGAP is free software; you can * redistribute it and/or modify it under the terms of the GNU Lesser Public License as * published by the Free Software Foundation; either version 2.1 of the License, or (at your * option) any later version. JGAP is dist...
Java
/* * * Copyright 2001-2003 Neil Rotstan * * * * This file is part of JGAP. * * * * JGAP is free software; you can redistribute it and/or modify * * it under the terms of the GNU Lesser Public License as published by * * the Free Software Foundation; either version 2.1 of the License, or * * (a...
Java
/* * Copyright 2001-2003 Neil Rotstan * * This file is part of JGAP. * * JGAP is free software; you can redistribute it and/or modify it under the terms of the GNU * Lesser Public License as published by the Free Software Foundation; either version 2.1 of the * License, or (at your option) any later version. ...
Java
/** * Copyright 2001-2003 Neil Rotstan * * This file is part of JGAP. * * JGAP is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser Public License as published by * the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version....
Java
/* * Copyright 2001-2003 Neil Rotstan * * This file is part of JGAP. * * JGAP is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser Public License as published by * the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. ...
Java
/* * Copyright 2001-2003 Neil Rotstan Copyright (C) 2004 Derek James and Philip Tucker * * This file is part of JGAP. * * JGAP is free software; you can redistribute it and/or modify it under the terms of the GNU * Lesser Public License as published by the Free Software Foundation; either version 2.1 of the * ...
Java
/* * Copyright 2001-2003 Neil Rotstan * * This file is part of JGAP. * * JGAP is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser Public License as published by * the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. ...
Java
/* * Copyright (C) 2004 Derek James and Philip Tucker * * This file is part of JGAP. * * JGAP is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser Public License as published by * the Free Software Foundation; either version 2.1 of the License, or * (at your option) an...
Java
/* * Copyright 2001-2003 Neil Rotstan * * This file is part of JGAP. * * JGAP is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser Public License as published by * the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. ...
Java
/* * Copyright 2001-2003 Neil Rotstan Copyright (C) 2004 Derek James and Philip Tucker * * This file is part of JGAP. * * JGAP is free software; you can redistribute it and/or modify it under the terms of the GNU * Lesser Public License as published by the Free Software Foundation; either version 2.1 of the * ...
Java
/* * Copyright 2001-2003 Neil Rotstan * * This file is part of JGAP. * * JGAP is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser Public License as published by * the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. ...
Java
/* * Copyright 2001-2003 Neil Rotstan Copyright (C) 2004 Derek James and Philip * Tucker * * This file is part of JGAP. * * JGAP is free software; you can redistribute it and/or modify it under the * terms of the GNU Lesser Public License as published by the Free Software * Foundation; either version 2.1 of t...
Java
/* * Copyright (C) 2004 Derek James and Philip Tucker * * This file is part of ANJI (Another NEAT Java Implementation). * * ANJI 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 2 of the...
Java
/* * Copyright 2001-2003 Neil Rotstan Copyright (C) 2004 Derek James and Philip * Tucker * * This file is part of JGAP. * * JGAP is free software; you can redistribute it and/or modify it under the * terms of the GNU Lesser Public License as published by the Free Software * Foundation; either version 2.1 of t...
Java
package com.leo.weibo; import com.weibo.sdk.android.Oauth2AccessToken; import android.content.Context; import android.content.SharedPreferences; import android.content.SharedPreferences.Editor; /** * 该类用于保存Oauth2AccessToken到sharepreference,并提供读取功能 * @author xiaowei6@staff.sina.com.cn * */ public class AccessToken...
Java
package com.leo.weibo; import java.io.IOException; import java.text.SimpleDateFormat; import com.tencent.weibo.api.FriendsAPI; import com.tencent.weibo.api.TAPI; import com.tencent.weibo.constants.OAuthConstants; import com.tencent.weibo.oauthv2.OAuthV2; import com.tencent.weibo.oauthv2.OAuthV2Client; impor...
Java
/* Simple DirectMedia Layer Java source code (C) 2009-2011 Sergii Pylypenko This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any pur...
Java
/* Simple DirectMedia Layer Java source code (C) 2009-2011 Sergii Pylypenko This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any pur...
Java
/* Simple DirectMedia Layer Java source code (C) 2009-2011 Sergii Pylypenko This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any pur...
Java
/* Simple DirectMedia Layer Java source code (C) 2009-2011 Sergii Pylypenko This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any pur...
Java
/* Simple DirectMedia Layer Java source code (C) 2009-2011 Sergii Pylypenko This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any pur...
Java
/* * Copyright (C) 2008 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
/* Simple DirectMedia Layer Java source code (C) 2009-2011 Sergii Pylypenko This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any pur...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.reader.activity; import java.util.ArrayList; import java.util.Set; import android.app.Activity; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice; import android.content.SharedPreferences; import android.os.Bundle; import androi...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.reader.activity; import java.util.List; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.bluetooth.BluetoothAdapter; import android.content.Context; import android.content.Intent; import android.content.Share...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.reader.io; import eu.lighthouselabs.obd.commands.ObdCommand; /** * This class represents a job that ObdGatewayService will have to execute and * maintain until the job is finished. It is, thereby, the application * representation of an ObdCommand instance plu...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.reader.io; import java.io.IOException; import java.util.ArrayList; import java.util.UUID; import java.util.concurrent.BlockingQueue; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.atomic.AtomicBoolean; import android.app.Notificatio...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.reader.io; import android.content.ComponentName; import android.content.ServiceConnection; import android.os.IBinder; import android.util.Log; import eu.lighthouselabs.obd.reader.IPostListener; import eu.lighthouselabs.obd.reader.IPostMonitor; /** * Service con...
Java
package eu.lighthouselabs.obd.reader.drawable; import eu.lighthouselabs.obd.reader.R; import android.content.Context; import android.content.res.Resources; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Typeface; import android.graphics.drawable.D...
Java
package eu.lighthouselabs.obd.reader.drawable; import eu.lighthouselabs.obd.reader.R; import android.content.Context; import android.content.res.Resources; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Typeface; import android.graphics.drawable.D...
Java
package eu.lighthouselabs.obd.reader.drawable; import android.content.Context; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.drawable.Drawable; import android.graphics.drawable.ShapeDrawable; import android.graphics.drawable.shapes.RectShape; import android.util.AttributeSet; i...
Java
package eu.lighthouselabs.obd.reader.network; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.net.URI; import java.net.URISyntaxException; import java.net.URLEncoder; import java.util.Iterator; import java.util.Map; import org.apache.http.client.HttpClient; import org.apache.http....
Java
/* * TODO put header */ package eu.lighthouselabs.obd.reader; import eu.lighthouselabs.obd.reader.io.ObdCommandJob; /** * TODO put description */ public interface IPostMonitor { void setListener(IPostListener callback); boolean isRunning(); void executeQueue(); void addJobToQueue(ObdCommandJob job); }
Java
/* * TODO put header */ package eu.lighthouselabs.obd.reader.config; import java.util.ArrayList; import eu.lighthouselabs.obd.commands.ObdCommand; import eu.lighthouselabs.obd.commands.SpeedObdCommand; import eu.lighthouselabs.obd.commands.control.CommandEquivRatioObdCommand; import eu.lighthouselabs.obd.commands.c...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.reader; import eu.lighthouselabs.obd.reader.io.ObdCommandJob; /** * TODO put description */ public interface IPostListener { void stateUpdate(ObdCommandJob job); }
Java
/* * TODO put header */ package eu.lighthouselabs.obd.enums; /** * All OBD protocols. */ public enum ObdProtocols { /** * Auto select protocol and save. */ AUTO('0'), /** * 41.6 kbaud */ SAE_J1850_PWM('1'), /** * 10.4 kbaud */ SAE_J1850_VPW('2'), /** * 5 baud init */ ISO_9141_2('3'), ...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.enums; /** * TODO put description */ public enum AvailableCommandNames { AIR_INTAKE_TEMP("Air Intake Temperature"), AMBIENT_AIR_TEMP("Ambient Air Temperature"), ENGINE_COOLANT_TEMP("Engine Coolant Temperature"), BAROMETRIC_PRESSURE("Barometric Pressure"), ...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.enums; /** * Select one of the Fuel Trim percentage banks to access. */ public enum FuelTrim { SHORT_TERM_BANK_1(0x06), LONG_TERM_BANK_1(0x07), SHORT_TERM_BANK_2(0x08), LONG_TERM_BANK_2(0x09); private final int value; /** * * @param value */ pr...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.enums; import eu.lighthouselabs.obd.commands.utils.ObdUtils; /** * MODE 1 PID 0x51 will return one of the following values to identify the fuel * type of the vehicle. */ public enum FuelType { GASOLINE(0x01), METHANOL(0x02), ETHANOL(0x03), DIESEL(0x04), ...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands; /** * This interface will define methods for converting to/from imperial units and * from/to metric units. */ public interface SystemOfUnits { float getImperialUnit(); }
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.ArrayList; /** * TODO put description */ public abstract class ObdCommand { protected ArrayList<Integer> buffer = null; protected String cmd = n...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.protocol; import eu.lighthouselabs.obd.commands.ObdCommand; import eu.lighthouselabs.obd.enums.ObdProtocols; /** * Select the protocol to use. */ public class SelectProtocolObdCommand extends ObdCommand { private final ObdProtocols _protocol; /**...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.protocol; import java.io.IOException; import java.io.InputStream; import eu.lighthouselabs.obd.commands.ObdCommand; /** * This method will reset the OBD connection. */ public class ObdResetCommand extends ObdCommand { /** * @param command */ ...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.protocol; import eu.lighthouselabs.obd.commands.ObdCommand; /** * This command will turn-off echo. */ public class EchoOffObdCommand extends ObdCommand { /** * @param command */ public EchoOffObdCommand() { super("AT E0"); } /** * @param...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.protocol; import eu.lighthouselabs.obd.commands.ObdCommand; /** * Turns off line-feed. */ public class LineFeedOffObdCommand extends ObdCommand { /** * @param command */ public LineFeedOffObdCommand() { super("AT L0"); } /** * @param oth...
Java
/* * TODO put description */ package eu.lighthouselabs.obd.commands.protocol; import eu.lighthouselabs.obd.commands.ObdCommand; /** * This will set the value of time in milliseconds (ms) that the OBD interface * will wait for a response from the ECU. If exceeds, the response is "NO DATA". */ public class Timeout...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.fuel; import eu.lighthouselabs.obd.commands.ObdCommand; import eu.lighthouselabs.obd.enums.AvailableCommandNames; /** * Get fuel level in percentage */ public class FuelLevelObdCommand extends ObdCommand { private float fuelLevel = 0f; /** * @p...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.fuel; import eu.lighthouselabs.obd.commands.ObdCommand; import eu.lighthouselabs.obd.enums.AvailableCommandNames; /** * TODO put description */ public class FuelConsumptionObdCommand extends ObdCommand { private float fuelRate = -1.0f; public Fue...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.fuel; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import eu.lighthouselabs.obd.commands.ObdCommand; import eu.lighthouselabs.obd.commands.SpeedObdCommand; import eu.lighthouselabs.obd.enums.AvailableCommandNames;...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.fuel; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import eu.lighthouselabs.obd.commands.ObdCommand; import eu.lighthouselabs.obd.commands.SpeedObdCommand; import eu.lighthouselabs.obd.commands.control.CommandEqu...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.fuel; import eu.lighthouselabs.obd.enums.AvailableCommandNames; import eu.lighthouselabs.obd.enums.FuelType; /** * TODO put description */ public class FuelEconomyWithMAFObdCommand { private int speed = 1; private double maf = 1; private float lt...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.fuel; import eu.lighthouselabs.obd.commands.ObdCommand; import eu.lighthouselabs.obd.commands.utils.ObdUtils; import eu.lighthouselabs.obd.enums.AvailableCommandNames; /** * This command is intended to determine the vehicle fuel type. */ public class...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.fuel; import eu.lighthouselabs.obd.commands.ObdCommand; import eu.lighthouselabs.obd.enums.FuelTrim; /** * Get Fuel Trim. * */ public class FuelTrimObdCommand extends ObdCommand { private float fuelTrimValue = 0.0f; private final FuelTrim bank; ...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.temperature; import eu.lighthouselabs.obd.commands.ObdCommand; import eu.lighthouselabs.obd.commands.SystemOfUnits; /** * TODO * * put description */ public abstract class TemperatureObdCommand extends ObdCommand implements SystemOfUnits { priva...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.temperature; import eu.lighthouselabs.obd.enums.AvailableCommandNames; /** * Ambient Air Temperature. */ public class AmbientAirTemperatureObdCommand extends TemperatureObdCommand { /** * @param cmd */ public AmbientAirTemperatureObdCommand() ...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.temperature; import eu.lighthouselabs.obd.enums.AvailableCommandNames; /** * Engine Coolant Temperature. */ public class EngineCoolantTemperatureObdCommand extends TemperatureObdCommand { /** * */ public EngineCoolantTemperatureObdCommand() { ...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.temperature; import eu.lighthouselabs.obd.enums.AvailableCommandNames; /** * TODO * * put description */ public class AirIntakeTemperatureObdCommand extends TemperatureObdCommand { public AirIntakeTemperatureObdCommand() { super("01 0F"); } ...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.engine; import eu.lighthouselabs.obd.commands.PercentageObdCommand; import eu.lighthouselabs.obd.enums.AvailableCommandNames; /** * Read the throttle position in percentage. */ public class ThrottlePositionObdCommand extends PercentageObdCommand { /...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.engine; import eu.lighthouselabs.obd.commands.ObdCommand; import eu.lighthouselabs.obd.enums.AvailableCommandNames; /** * TODO put description */ public class EngineRuntimeObdCommand extends ObdCommand { /** * Default ctor. */ public EngineRunt...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.engine; import eu.lighthouselabs.obd.commands.ObdCommand; import eu.lighthouselabs.obd.commands.PercentageObdCommand; import eu.lighthouselabs.obd.enums.AvailableCommandNames; /** * Calculated Engine Load value. */ public class EngineLoadObdCommand ex...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.engine; import eu.lighthouselabs.obd.commands.ObdCommand; import eu.lighthouselabs.obd.enums.AvailableCommandNames; /** * Displays the current engine revolutions per minute (RPM). */ public class EngineRPMObdCommand extends ObdCommand { private int...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.engine; import eu.lighthouselabs.obd.commands.ObdCommand; import eu.lighthouselabs.obd.enums.AvailableCommandNames; /** * TODO put description * * Mass Air Flow */ public class MassAirFlowObdCommand extends ObdCommand { private float _maf = -1.0f...
Java
package eu.lighthouselabs.obd.commands.pressure; import eu.lighthouselabs.obd.enums.AvailableCommandNames; public class FuelPressureObdCommand extends PressureObdCommand { public FuelPressureObdCommand() { super("010A"); } public FuelPressureObdCommand(FuelPressureObdCommand other) { super(other); } /** ...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.pressure; import eu.lighthouselabs.obd.enums.AvailableCommandNames; /** * Intake Manifold Pressure */ public class IntakeManifoldPressureObdCommand extends PressureObdCommand { /** * Default ctor. */ public IntakeManifoldPressureObdCommand() {...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.pressure; import eu.lighthouselabs.obd.commands.ObdCommand; import eu.lighthouselabs.obd.commands.SystemOfUnits; /** * TODO put description */ public abstract class PressureObdCommand extends ObdCommand implements SystemOfUnits { protected int te...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.utils; /** * Misc utilities */ public final class ObdUtils { /** * @param an integer value * @return the equivalent FuelType name. */ public final static String getFuelTypeName(int value) { String name = null; switch (value) { case 1: ...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands; import eu.lighthouselabs.obd.enums.AvailableCommandNames; /** * TODO put description * * Current speed. */ public class SpeedObdCommand extends ObdCommand implements SystemOfUnits { private int metricSpeed = 0; /** * Default ctor. */ publ...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.control; import eu.lighthouselabs.obd.commands.ObdCommand; import eu.lighthouselabs.obd.enums.AvailableCommandNames; /** * Fuel systems that use conventional oxygen sensor display the commanded open * loop equivalence ratio while the system is in open...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.control; import eu.lighthouselabs.obd.commands.ObdCommand; import eu.lighthouselabs.obd.enums.AvailableCommandNames; /** * This command will for now read MIL (check engine light) state and number of * diagnostic trouble codes currently flagged in the ...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.control; import eu.lighthouselabs.obd.commands.PercentageObdCommand; import eu.lighthouselabs.obd.enums.AvailableCommandNames; /** * TODO put description * * Timing Advance */ public class TimingAdvanceObdCommand extends PercentageObdCommand { pu...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.control; import eu.lighthouselabs.obd.commands.ObdCommand; import eu.lighthouselabs.obd.enums.AvailableCommandNames; /** * In order to get ECU Trouble Codes, one must first send a DtcNumberObdCommand * and by so, determining the number of error codes ...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.ArrayList; /** * TODO put description */ public class ObdMultiCommand { private ArrayList<ObdCommand> commands; /** * Default ctor. */ pu...
Java
/* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
Java
/* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
Java
/* * Copyright (C) 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Java
/* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
Java
/* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
Java
package org.pocketworkstation.pckeyboard; import android.content.Context; import android.preference.EditTextPreference; import android.util.AttributeSet; public class AutoSummaryEditTextPreference extends EditTextPreference { public AutoSummaryEditTextPreference(Context context) { super(context); } ...
Java
package org.pocketworkstation.pckeyboard; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.util.Log; import android.view.inputmethod.InputMethodManager; public class NotificationReceiver extends BroadcastReceiver { static final String TAG = "PCKe...
Java
/* * Copyright (C) 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Java
/** * */ package org.pocketworkstation.pckeyboard; import android.content.Context; import android.preference.ListPreference; import android.util.AttributeSet; import android.util.Log; public class AutoSummaryListPreference extends ListPreference { private static final String TAG = "HK/AutoSummaryListPreference"...
Java
/* * Copyright (C) 2008-2009 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
Java
/* * Copyright (C) 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Java
/* * Copyright (C) 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Java
/* * Copyright (C) 2008 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
Java
/* * Copyright (C) 2011 Darren Salt * * Licensed under the Apache License, Version 2.0 (the "Licence"); you may * not use this file except in compliance with the Licence. You may obtain * a copy of the Licence at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Java
/* * Copyright (C) 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Java
package org.pocketworkstation.pckeyboard; import java.util.regex.Matcher; import java.util.regex.Pattern; import android.content.Context; import android.content.res.TypedArray; import android.util.AttributeSet; /** * Variant of SeekBarPreference that stores values as string preferences. * * This is for compatibi...
Java
/* * Copyright (C) 2008 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
Java
/* * Copyright (C) 2008 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
Java
/* * Copyright (C) 2008 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
Java
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
Java
/* * Copyright (C) 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Java