Package-Server:
Server-Type: snapshot
InstallManager-Version: 2.3.0
-Distribution: tizen_2.2
+Distribution: develop
Release-note: https://developer.tizen.org
import org.tizen.installmanager.core.InstallManager;
import org.tizen.installmanager.core.InstallManagerConstants;
import org.tizen.installmanager.core.Options;
+import org.tizen.installmanager.core.Performance;
import org.tizen.installmanager.lib.Downloader;
import org.tizen.installmanager.lib.ErrorController;
import org.tizen.installmanager.lib.IFileSystemInformation;
* @return
*/
private static boolean initInstallManager() {
+ Performance.setInitializeStartTime();
ErrorController.setInstallationSuccess(true);
controller = new ViewController();
if (controller.init()) {
+ Performance.setInitializeEndTime();
return true;
} else {
Log.err("InstallManager init fail.");
import org.tizen.installmanager.core.Config;
import org.tizen.installmanager.core.IMExitException;
+import org.tizen.installmanager.core.Performance;
import org.tizen.installmanager.lib.Log;
import org.tizen.installmanager.lib.Platform;
import org.tizen.installmanager.pkg.lib.PackageManager;
System.out.println("******* Start SDK uninstallation *******");
System.out.println("****************************************");
+ Performance.setRemovalStartTime();
ViewController controller = new ViewController();
controller.init();
if (size == 1 && pkg.getPackageName().equals(ESSENTIAL_COMPONENT)) {
if (controller.uninstall(pm.getInstalledMetaNames(), null)) {
clearTargetDir();
+ Performance.setRemovalEndTime();
return true;
} else {
return false;
}
} else {
+ Performance.setRemovalEndTime();
return true;
}
} else {
private static Date installationStartTime = null;
private static Date installationEndTime = null;
- //uninstallation time
- private static Date uninstallStartTime = null;
- private static Date uninstallEndTime = null;
+ //removal time
+ private static Date removalStartTime = null;
+ private static Date removalEndTime = null;
//information
public static long sdkPackageSize = 0;
installationEndTime = new Date();
}
- public static void setUninstallStartTime() {
- uninstallStartTime = new Date();
+ public static void setRemovalStartTime() {
+ removalStartTime = new Date();
}
- public static void setUninstallEndTime() {
- uninstallEndTime = new Date();
+ public static void setRemovalEndTime() {
+ removalEndTime = new Date();
}
public static void printToLogFile() {
out.write("The installation time\t: " + getInstallationTime() + "sec");
out.write("(" + getBitPerSecond(sdkPackageSize, getInstallationTime())+ "b/s)");
out.newLine();
- out.write("The removal time\t: " + getUninstallTime() + "sec");
- out.write("(" + getBitPerSecond(sdkPackageSize, getUninstallTime())+ "b/s)");
+ out.write("The removal time\t: " + getRemovalTime() + "sec");
+ out.write("(" + getBitPerSecond(sdkPackageSize, getRemovalTime())+ "b/s)");
out.newLine();
out.write("The install-manager start time\t: " + imStartTime);
out.newLine();
return interval;
}
- private static long getUninstallTime() {
- if (uninstallStartTime == null || uninstallEndTime == null) {
+ private static long getRemovalTime() {
+ if (removalStartTime == null || removalEndTime == null) {
return 0;
}
- long interval = (uninstallEndTime.getTime() - uninstallStartTime.getTime())/1000;
+ long interval = (removalEndTime.getTime() - removalStartTime.getTime())/1000;
return interval;
}
Log.log("Fail to command line remove.");
System.out.println("Fail to remove.");
}
+ if (Options.doTest) {
+ Performance.printTestResult();
+ }
+
System.exit(0);
} else if (Options.showVersion) {
showInstallManagerVersion();
Log.log("ViewController Uninstall Start => " + uninstallList);
//performance measurement
- Performance.setUninstallStartTime();
+ Performance.setRemovalStartTime();
if (packageManager == null || uninstallList.size() == 0) {
Log.err("ViewController.uninstall() uninstalllist does not exist. => " + uninstallList);
ErrorController.setError(ErrorCode.UNKNOWN_ERROR);
- Performance.setUninstallEndTime();
+ Performance.setRemovalEndTime();
return false;
}
uninstallAll(monitor);
//performance measurement
- Performance.setUninstallEndTime();
+ Performance.setRemovalEndTime();
return true;
} else {
boolean result = uninstallPackages(removablePackages, monitor);
//performance measurement
- Performance.setUninstallEndTime();
+ Performance.setRemovalEndTime();
return result;
}
}
Source: install-manager
-Version: 2.2.40
+Version: 2.2.41
Maintainer: Shihyun Kim<shihyun.kim@samsung.com>, Yongsung Kim<yongsung1.kim@samsung.com>
Package: install-manager