• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Copyright (C) 2007 The Android Open Source Project
2 **
3 ** This software is licensed under the terms of the GNU General Public
4 ** License version 2, as published by the Free Software Foundation, and
5 ** may be copied, distributed, and modified under those terms.
6 **
7 ** This program is distributed in the hope that it will be useful,
8 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
9 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10 ** GNU General Public License for more details.
11 */
12 
13 #include "android/android.h"
14 
15 /* see http://en.wikipedia.org/wiki/List_of_device_bandwidths or a complete list */
16 const NetworkSpeed  android_netspeeds[] = {
17     { "gsm", "GSM/CSD", 14400, 14400 },
18     { "hscsd", "HSCSD", 14400, 43200 },
19     { "gprs", "GPRS", 40000, 80000 },
20     { "edge", "EDGE/EGPRS", 118400, 236800 },
21     { "umts", "UMTS/3G", 128000, 1920000 },
22     { "hsdpa", "HSDPA", 348000, 14400000 },
23     { "full", "no limit", 0, 0 },
24     { NULL, NULL, 0, 0 }
25 };
26 const size_t android_netspeeds_count =
27     sizeof(android_netspeeds) / sizeof(android_netspeeds[0]);
28 
29 const NetworkLatency  android_netdelays[] = {
30     /* FIXME: these numbers are totally imaginary */
31     { "gprs", "GPRS", 150, 550 },
32     { "edge", "EDGE/EGPRS", 80, 400 },
33     { "umts", "UMTS/3G", 35, 200 },
34     { "none", "no latency", 0, 0 },
35     { NULL, NULL, 0, 0 }
36 };
37 const size_t android_netdelays_count =
38     sizeof(android_netdelays) / sizeof(android_netdelays[0]);
39 
40