Merge "Migrate service-statsd off IoUtils" into rvc-dev am: 037d723a02 am: 247ff0cd15 am: 9f93dc00e2

Change-Id: I8fba4533880e7ff7cec0bf6341ab480dd2363bc7
This commit is contained in:
Anton Hansson
2020-03-20 10:29:17 +00:00
committed by Automerger Merge Worker

View File

@@ -30,6 +30,7 @@ import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.os.Binder;
import android.os.Bundle;
import android.os.FileUtils;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.IBinder;
@@ -47,8 +48,6 @@ import android.util.proto.ProtoOutputStream;
import com.android.internal.annotations.GuardedBy;
import libcore.io.IoUtils;
import java.io.File;
import java.io.FileDescriptor;
import java.io.FileOutputStream;
@@ -226,7 +225,7 @@ public class StatsCompanionService extends IStatsCompanionService.Stub {
Log.d(TAG, "Sent data for " + numRecords + " apps");
}
} finally {
IoUtils.closeQuietly(fout);
FileUtils.closeQuietly(fout);
backgroundThread.quit();
backgroundThread.interrupt();
}