Lines Matching refs:station
36 * This class provider interface to compute station and frequency, get project
42 // FM station variables
45 // maximum station frequency
47 // minimum station frequency
49 // station step
72 * @param station The FM station
77 public static boolean isValidStation(int station) {
78 boolean isValid = (station >= LOWEST_STATION && station <= HIGHEST_STATION);
83 * Compute increase station frequency
85 * @param station The station frequency
87 * @return station The frequency after increased
89 public static int computeIncreaseStation(int station) {
90 int result = station + STEP;
98 * Compute decrease station frequency
100 * @param station The station frequency
102 * @return station The frequency after decreased
104 public static int computeDecreaseStation(int station) {
105 int result = station - STEP;
113 * Compute station value with given frequency
115 * @param frequency The station frequency
117 * @return station The result value
124 * Compute frequency value with given station
126 * @param station The station value
128 * @return station The frequency
130 public static float computeFrequency(int station) {
131 return (float) station / CONVERT_RATE;
135 * According station to get frequency string
137 * @param station for 100KZ, range 875-1080
141 public static String formatStation(int station) {
142 float frequency = (float) station / CONVERT_RATE;
256 * check it is the first time enter into station list page