Android Open Source - Android-Apps F Series Buttons






From Project

Back to project page Android-Apps.

License

The source code is released under:

Apache License

If you think the Android project Android-Apps listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/*
 *  Copyright (C) 2011  Tom Quist//ww w . j  a va  2  s.c om
 *
 *  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 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You can get the GNU General Public License at
 *  http://www.gnu.org/licenses/gpl.html
 */
package com.kniezrec.voiceremote2;

import static de.quist.samy.remocon.Key.KEY_0;
import static de.quist.samy.remocon.Key.KEY_1;
import static de.quist.samy.remocon.Key.KEY_2;
import static de.quist.samy.remocon.Key.KEY_3;
import static de.quist.samy.remocon.Key.KEY_4;
import static de.quist.samy.remocon.Key.KEY_5;
import static de.quist.samy.remocon.Key.KEY_6;
import static de.quist.samy.remocon.Key.KEY_7;
import static de.quist.samy.remocon.Key.KEY_8;
import static de.quist.samy.remocon.Key.KEY_9;
import static de.quist.samy.remocon.Key.KEY_CHDOWN;
import static de.quist.samy.remocon.Key.KEY_CHUP;
import static de.quist.samy.remocon.Key.KEY_CH_LIST;
import static de.quist.samy.remocon.Key.KEY_DOWN;
import static de.quist.samy.remocon.Key.KEY_ENTER;
import static de.quist.samy.remocon.Key.KEY_EXIT;
import static de.quist.samy.remocon.Key.KEY_INFO;
import static de.quist.samy.remocon.Key.KEY_LEFT;
import static de.quist.samy.remocon.Key.KEY_MENU;
import static de.quist.samy.remocon.Key.KEY_MUTE;
import static de.quist.samy.remocon.Key.KEY_PAUSE;
import static de.quist.samy.remocon.Key.KEY_PLAY;
import static de.quist.samy.remocon.Key.KEY_POWEROFF;
import static de.quist.samy.remocon.Key.KEY_RIGHT;
import static de.quist.samy.remocon.Key.KEY_STOP;
import static de.quist.samy.remocon.Key.KEY_TTX_MIX;
import static de.quist.samy.remocon.Key.KEY_UP;
import static de.quist.samy.remocon.Key.KEY_VOLDOWN;
import static de.quist.samy.remocon.Key.KEY_VOLUP;
import static de.quist.samy.remocon.Key.KEY_W_LINK;
import android.util.SparseArray;
import de.quist.samy.remocon.Key;

public abstract class FSeriesButtons {

  public static final SparseArray<Key> MAPPINGS = new SparseArray<Key>();

  static {
    MAPPINGS.put(Commands.BTN_POWER_OFF, KEY_POWEROFF);
    MAPPINGS.put(Commands.BTN_1, KEY_1);
    MAPPINGS.put(Commands.BTN_2, KEY_2);
    MAPPINGS.put(Commands.BTN_3, KEY_3);
    MAPPINGS.put(Commands.BTN_4, KEY_4);
    MAPPINGS.put(Commands.BTN_5, KEY_5);
    MAPPINGS.put(Commands.BTN_6, KEY_6);
    MAPPINGS.put(Commands.BTN_7, KEY_7);
    MAPPINGS.put(Commands.BTN_8, KEY_8);
    MAPPINGS.put(Commands.BTN_9, KEY_9);
    MAPPINGS.put(Commands.BTN_0, KEY_0);
    MAPPINGS.put(Commands.BTN_VOLUME_UP, KEY_VOLUP);
    MAPPINGS.put(Commands.BTN_VOLUME_DOWN, KEY_VOLDOWN);
    MAPPINGS.put(Commands.BTN_CHANNEL_UP, KEY_CHUP);
    MAPPINGS.put(Commands.BTN_CHANNEL_DOWN, KEY_CHDOWN);
    MAPPINGS.put(Commands.BTN_MUTE, KEY_MUTE);
    MAPPINGS.put(Commands.BTN_INFO, KEY_INFO);
    MAPPINGS.put(Commands.BTN_ENTER, KEY_ENTER);
    MAPPINGS.put(Commands.BTN_UP, KEY_UP);
    MAPPINGS.put(Commands.BTN_MENU, KEY_MENU);
    MAPPINGS.put(Commands.BTN_DOWN, KEY_DOWN);
    MAPPINGS.put(Commands.BTN_LEFT, KEY_LEFT);
    MAPPINGS.put(Commands.BTN_RIGHT, KEY_RIGHT);
    MAPPINGS.put(Commands.BTN_EXIT, KEY_EXIT);
    MAPPINGS.put(Commands.BTN_TELETEXT, KEY_TTX_MIX);
    MAPPINGS.put(Commands.BTN_CHANNEL_LIST, KEY_CH_LIST);
    MAPPINGS.put(Commands.BTN_PAUSE, KEY_PAUSE);
    MAPPINGS.put(Commands.BTN_PLAY, KEY_PLAY);
    MAPPINGS.put(Commands.BTN_STOP, KEY_STOP);
    MAPPINGS.put(Commands.BTN_INTERNET, KEY_W_LINK);
    MAPPINGS.put(Commands.BTN_TOOLS, Key.KEY_TOOLS);
    MAPPINGS.put(Commands.BTN_SOURCE, Key.KEY_SOURCE);
    MAPPINGS.put(Commands.BTN_S_HDMI1, Key.KEY_HDMI);
    MAPPINGS.put(Commands.BTN_RETURN, Key.KEY_RETURN);
  }

}




Java Source Code List

com.kniezrec.remoterecorder.Communication.java
com.kniezrec.remoterecorder.MainServiceConnection.java
com.kniezrec.remoterecorder.MainService.java
com.kniezrec.remoterecorder.RequestType.java
com.kniezrec.remoterecorder.Request.java
com.kniezrec.voiceremote2.BSeriesKeyCodeSenderFactory.java
com.kniezrec.voiceremote2.BSeriesSender.java
com.kniezrec.voiceremote2.CSeriesButtons.java
com.kniezrec.voiceremote2.CSeriesKeyCodeSenderFactory.java
com.kniezrec.voiceremote2.CSeriesSender.java
com.kniezrec.voiceremote2.CommandsFragment.java
com.kniezrec.voiceremote2.Commands.java
com.kniezrec.voiceremote2.Discovery.java
com.kniezrec.voiceremote2.FSeriesButtons.java
com.kniezrec.voiceremote2.Group.java
com.kniezrec.voiceremote2.HelpFragment.java
com.kniezrec.voiceremote2.HostnamePreference.java
com.kniezrec.voiceremote2.KeyCodeSender.java
com.kniezrec.voiceremote2.ListActionsFragment.java
com.kniezrec.voiceremote2.MainActivity.java
com.kniezrec.voiceremote2.MainFragment.java
com.kniezrec.voiceremote2.Mapper.java
com.kniezrec.voiceremote2.MyExpandableListAdapter.java
com.kniezrec.voiceremote2.NewActionEdit.java
com.kniezrec.voiceremote2.NewActionSingleEdit.java
com.kniezrec.voiceremote2.NewAction.java
com.kniezrec.voiceremote2.RemoteButton.java
com.kniezrec.voiceremote2.SenderFactory.java
com.kniezrec.voiceremote2.Sender.java
com.kniezrec.voiceremote2.SettingsActivity.java
com.kniezrec.voiceremote2.TextSender.java
com.kniezrec.voiceremotefree.BSeriesKeyCodeSenderFactory.java
com.kniezrec.voiceremotefree.BSeriesSender.java
com.kniezrec.voiceremotefree.CSeriesButtons.java
com.kniezrec.voiceremotefree.CSeriesKeyCodeSenderFactory.java
com.kniezrec.voiceremotefree.CSeriesSender.java
com.kniezrec.voiceremotefree.Commands.java
com.kniezrec.voiceremotefree.Discovery.java
com.kniezrec.voiceremotefree.FSeriesButtons.java
com.kniezrec.voiceremotefree.HelpActivity.java
com.kniezrec.voiceremotefree.HostnamePreference.java
com.kniezrec.voiceremotefree.KeyCodeSender.java
com.kniezrec.voiceremotefree.ListActionsActivity.java
com.kniezrec.voiceremotefree.MainActivity.java
com.kniezrec.voiceremotefree.Mapper.java
com.kniezrec.voiceremotefree.NewActionEdit.java
com.kniezrec.voiceremotefree.NewActionSingleEdit.java
com.kniezrec.voiceremotefree.NewAction.java
com.kniezrec.voiceremotefree.RemoteButton.java
com.kniezrec.voiceremotefree.SenderFactory.java
com.kniezrec.voiceremotefree.Sender.java
com.kniezrec.voiceremotefree.Setings.java
com.kniezrec.voiceremotefree.SettingsActivity.java
com.kniezrec.voiceremotefree.TextSender.java
com.kniezrec.xbmcgear.connection.AndroidApplication.java
com.kniezrec.xbmcgear.connection.Connection.java
com.kniezrec.xbmcgear.connection.GearJSON.java
com.kniezrec.xbmcgear.connection.JSONRPCRequest.java
com.kniezrec.xbmcgear.connection.JSONRequestFactory.java
com.kniezrec.xbmcgear.connection.NSDResolve.java
com.kniezrec.xbmcgear.connection.NSDSearch.java
com.kniezrec.xbmcgear.connection.ProviderConnection.java
com.kniezrec.xbmcgear.connection.ProviderService.java
com.kniezrec.xbmcgear.connection.ResponseParser.java
com.kniezrec.xbmcgear.connection.WakeOnLan.java
com.kniezrec.xbmcgear.player.Kodi.java
com.kniezrec.xbmcgear.player.Player.java
com.kniezrec.xbmcgear.player.Playlist.java
com.kniezrec.xbmcgear.player.Song.java
com.kniezrec.xbmcgear.player.Video.java
com.kniezrec.xbmcgear.preferences.HostTable.java
com.kniezrec.xbmcgear.preferences.Host.java
com.kniezrec.xbmcgear.preferences.HostsDataSource.java
com.kniezrec.xbmcgear.preferences.HostsDatabaseHelper.java
com.kniezrec.xbmcgear.preferences.SharedPreferencesUtil.java
com.kniezrec.xbmcgear.presentation.AnimationManager.java
com.kniezrec.xbmcgear.presentation.AutoConfigurationActivity.java
com.kniezrec.xbmcgear.presentation.HostSetActivity.java
com.kniezrec.xbmcgear.presentation.InstanceActivity.java
com.kniezrec.xbmcgear.presentation.MainActivity.java
com.kniezrec.xbmcgear.presentation.StyleDialogFragment.java
com.kniezrec.xbmcgear.presentation.ViewMode.java
com.uraroji.garage.android.lame.SimpleLame.java
com.uraroji.garage.android.mp3recvoice.RecMicToMp3.java
de.quist.samy.remocon.Base64.java
de.quist.samy.remocon.Base64.java
de.quist.samy.remocon.ConnectionDeniedException.java
de.quist.samy.remocon.ConnectionDeniedException.java
de.quist.samy.remocon.Key.java
de.quist.samy.remocon.Key.java
de.quist.samy.remocon.Loggable.java
de.quist.samy.remocon.Loggable.java
de.quist.samy.remocon.RemoteReader.java
de.quist.samy.remocon.RemoteReader.java
de.quist.samy.remocon.RemoteSession.java
de.quist.samy.remocon.RemoteSession.java