Clover Coverage Report - Subsonic-Android Coverage Report
Coverage timestamp: ven dic 19 2014 17:57:13 EST
../../../../../img/srcFileCovDistChart0.png 86% of files have more coverage
0   91   1   0
0   49   -   1
1     1  
1    
This report was generated with an evaluation server license. Purchase Clover or configure your license.
 
  Constants       Line # 25 0 1 0% 0.0
 
No Tests
 
1    /*
2    This file is part of Subsonic.
3   
4    Subsonic is free software: you can redistribute it and/or modify
5    it under the terms of the GNU General Public License as published by
6    the Free Software Foundation, either version 3 of the License, or
7    (at your option) any later version.
8   
9    Subsonic is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12    GNU General Public License for more details.
13   
14    You should have received a copy of the GNU General Public License
15    along with Subsonic. If not, see <http://www.gnu.org/licenses/>.
16   
17    Copyright 2009 (C) Sindre Mehus
18    */
19    package net.sourceforge.subsonic.androidapp.util;
20   
21    /**
22    * @author Sindre Mehus
23    * @version $Id$
24    */
 
25    public final class Constants {
26   
27    // Character encoding used throughout.
28    public static final String UTF_8 = "UTF-8";
29   
30    // REST protocol version and client ID.
31    // Note: Keep it as low as possible to maintain compatibility with older servers.
32    public static final String REST_PROTOCOL_VERSION = "1.2.0";
33    public static final String REST_CLIENT_ID = "android";
34   
35    // Names for intent extras.
36    public static final String INTENT_EXTRA_NAME_ID = "subsonic.id";
37    public static final String INTENT_EXTRA_NAME_NAME = "subsonic.name";
38    public static final String INTENT_EXTRA_NAME_ARTIST = "subsonic.artist";
39    public static final String INTENT_EXTRA_NAME_TITLE = "subsonic.title";
40    public static final String INTENT_EXTRA_NAME_AUTOPLAY = "subsonic.playall";
41    public static final String INTENT_EXTRA_NAME_ERROR = "subsonic.error";
42    public static final String INTENT_EXTRA_NAME_QUERY = "subsonic.query";
43    public static final String INTENT_EXTRA_NAME_PLAYLIST_ID = "subsonic.playlist.id";
44    public static final String INTENT_EXTRA_NAME_PLAYLIST_NAME = "subsonic.playlist.name";
45    public static final String INTENT_EXTRA_NAME_ALBUM_LIST_TYPE = "subsonic.albumlisttype";
46    public static final String INTENT_EXTRA_NAME_ALBUM_LIST_SIZE = "subsonic.albumlistsize";
47    public static final String INTENT_EXTRA_NAME_ALBUM_LIST_OFFSET = "subsonic.albumlistoffset";
48    public static final String INTENT_EXTRA_NAME_SHUFFLE = "subsonic.shuffle";
49    public static final String INTENT_EXTRA_NAME_REFRESH = "subsonic.refresh";
50    public static final String INTENT_EXTRA_REQUEST_SEARCH = "subsonic.requestsearch";
51    public static final String INTENT_EXTRA_NAME_EXIT = "subsonic.exit" ;
52   
53    // Notification IDs.
54    public static final int NOTIFICATION_ID_PLAYING = 100;
55    public static final int NOTIFICATION_ID_ERROR = 101;
56   
57    // Preferences keys.
58    public static final String PREFERENCES_KEY_SERVER_INSTANCE = "serverInstanceId";
59    public static final String PREFERENCES_KEY_SERVER_NAME = "serverName";
60    public static final String PREFERENCES_KEY_SERVER_URL = "serverUrl";
61    public static final String PREFERENCES_KEY_MUSIC_FOLDER_ID = "musicFolderId";
62    public static final String PREFERENCES_KEY_USERNAME = "username";
63    public static final String PREFERENCES_KEY_PASSWORD = "password";
64    public static final String PREFERENCES_KEY_INSTALL_TIME = "installTime";
65    public static final String PREFERENCES_KEY_THEME = "theme";
66    public static final String PREFERENCES_KEY_MAX_BITRATE_WIFI = "maxBitrateWifi";
67    public static final String PREFERENCES_KEY_MAX_BITRATE_MOBILE = "maxBitrateMobile";
68    public static final String PREFERENCES_KEY_CACHE_SIZE = "cacheSize";
69    public static final String PREFERENCES_KEY_CACHE_LOCATION = "cacheLocation";
70    public static final String PREFERENCES_KEY_PRELOAD_COUNT = "preloadCount";
71    public static final String PREFERENCES_KEY_HIDE_MEDIA = "hideMedia";
72    public static final String PREFERENCES_KEY_MEDIA_BUTTONS = "mediaButtons";
73    public static final String PREFERENCES_KEY_SCREEN_LIT_ON_DOWNLOAD = "screenLitOnDownload";
74    public static final String PREFERENCES_KEY_SCROBBLE = "scrobble";
75    public static final String PREFERENCES_KEY_REPEAT_MODE = "repeatMode";
76    public static final String PREFERENCES_KEY_WIFI_REQUIRED_FOR_DOWNLOAD = "wifiRequiredForDownload";
77   
78    // Name of the preferences file.
79    public static final String PREFERENCES_FILE_NAME = "net.sourceforge.subsonic.androidapp_preferences";
80   
81    // Number of free trial days for non-licensed servers.
82    public static final int FREE_TRIAL_DAYS = 30;
83   
84    // URL for project donations.
85    public static final String DONATION_URL = "http://subsonic.org/pages/android-donation.jsp";
86   
87    public static final String ALBUM_ART_FILE = "folder.jpeg";
88   
 
89  0 toggle private Constants() {
90    }
91    }