Added video streaming behaviour.
Improved Throughput calculations(Is using native calculations). Some other fixes
This commit is contained in:
parent
257bd59cdb
commit
9cdcd46ed5
9 changed files with 104 additions and 12 deletions
|
|
@ -4,6 +4,8 @@ import android.app.ActionBar;
|
|||
import android.content.Intent;
|
||||
import android.content.SharedPreferences;
|
||||
import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
|
||||
import android.content.pm.ApplicationInfo;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
import android.preference.PreferenceManager;
|
||||
|
|
@ -41,11 +43,14 @@ public class MainActivity extends FragmentActivity implements OnSharedPreference
|
|||
|
||||
private static UeControlExecutor currentExecutor;
|
||||
private static CSVWriter csvLogger;
|
||||
private static int uid;
|
||||
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
// Get UID
|
||||
uid = getApplicationInfo().uid;
|
||||
|
||||
// Setup Debugging
|
||||
setupDebugLogging();
|
||||
|
|
@ -172,6 +177,9 @@ public class MainActivity extends FragmentActivity implements OnSharedPreference
|
|||
|
||||
csvLogger.write(currentExecutor.getRunningBehaviour().getName(), downThroughput, upThroughput);
|
||||
}
|
||||
public static int getUID(){
|
||||
return uid;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue