/** Vul de parameters hashmap met de nodige parameters. */ private void getAllParams() { parameters.clear(); // Deviceparameters DeviceInfoBuffer deviceInfo = networkController.getDeviceInfo(); addToParams("screenHeight", "" + deviceInfo.getScreenHeight()); addToParams("screenWidth", "" + deviceInfo.getScreenWidth()); addToParams("internalMemorySize", "" + deviceInfo.getTotalInternalMemorySize()); addToParams("RAM", "" + deviceInfo.getTotalRamMemory()); addToParams("Android_release", Build.VERSION.RELEASE); addToParams("Android_SDK", "" + Build.VERSION.SDK_INT); // Networkparameters QosBuffer qos = networkController.getQosInfo(); Map<String, String> v = qos.getValues(); for (String key : v.keySet()) { addToParams(key, v.get(key)); } // Locationparameters LocationBuffer lb = networkController.getLocationInfo(); addToParams("speed", "" + lb.getSpeed()); // Toestelbelasting DeviceLoadBuffer dl = networkController.getDeviceLoad(); addToParams("averageCPU", "" + dl.getAverageCpuUsage()); addToParams("isLowOnMemory", "" + dl.isLowOnMemory()); // Speler addToParams("VideoQuality", spelerController.getPlayQuality()); AnalyseData data = spelerController.getCurrentAnalyseData(); // Kan null zijn door youtube-methode te gebruiken if (data != null) { addToParams("analyseData_mobileNetworkGeneration", "" + data.getMobileNetworkGeneration()); addToParams("analyseData_locationSpeedExceeded", "" + data.isLocationSpeedExceeded()); } // Indien een goede telefoon gebruikt werd zal de buffer ook opgeslaan worden addToParams("Bufferedpercentage", "" + spelerController.getBufferedPercentage() * 100); }