Loading services/profcollect/src/com/android/server/profcollect/ProfcollectForwardingService.java +12 −8 Original line number Diff line number Diff line Loading @@ -35,6 +35,7 @@ import android.provider.DeviceConfig; import android.util.Log; import com.android.internal.R; import com.android.internal.os.BackgroundThread; import com.android.server.IoThread; import com.android.server.LocalServices; import com.android.server.SystemService; Loading Loading @@ -146,7 +147,7 @@ public final class ProfcollectForwardingService extends SystemService { connectNativeService(); break; default: throw new AssertionError("Unknown message: " + message.toString()); throw new AssertionError("Unknown message: " + message); } } } Loading Loading @@ -190,11 +191,14 @@ public final class ProfcollectForwardingService extends SystemService { Log.d(LOG_TAG, "Starting background process job"); } BackgroundThread.get().getThreadHandler().post( () -> { try { sSelfService.mIProfcollect.process(false); sSelfService.mIProfcollect.process(); } catch (RemoteException e) { Log.e(LOG_TAG, e.getMessage()); } }); return true; } Loading Loading @@ -301,7 +305,7 @@ public final class ProfcollectForwardingService extends SystemService { } Context context = getContext(); new Thread(() -> { BackgroundThread.get().getThreadHandler().post(() -> { try { // Prepare profile report String reportName = mIProfcollect.report() + ".zip"; Loading @@ -321,6 +325,6 @@ public final class ProfcollectForwardingService extends SystemService { } catch (RemoteException e) { Log.e(LOG_TAG, e.getMessage()); } }).start(); }); } } Loading
services/profcollect/src/com/android/server/profcollect/ProfcollectForwardingService.java +12 −8 Original line number Diff line number Diff line Loading @@ -35,6 +35,7 @@ import android.provider.DeviceConfig; import android.util.Log; import com.android.internal.R; import com.android.internal.os.BackgroundThread; import com.android.server.IoThread; import com.android.server.LocalServices; import com.android.server.SystemService; Loading Loading @@ -146,7 +147,7 @@ public final class ProfcollectForwardingService extends SystemService { connectNativeService(); break; default: throw new AssertionError("Unknown message: " + message.toString()); throw new AssertionError("Unknown message: " + message); } } } Loading Loading @@ -190,11 +191,14 @@ public final class ProfcollectForwardingService extends SystemService { Log.d(LOG_TAG, "Starting background process job"); } BackgroundThread.get().getThreadHandler().post( () -> { try { sSelfService.mIProfcollect.process(false); sSelfService.mIProfcollect.process(); } catch (RemoteException e) { Log.e(LOG_TAG, e.getMessage()); } }); return true; } Loading Loading @@ -301,7 +305,7 @@ public final class ProfcollectForwardingService extends SystemService { } Context context = getContext(); new Thread(() -> { BackgroundThread.get().getThreadHandler().post(() -> { try { // Prepare profile report String reportName = mIProfcollect.report() + ".zip"; Loading @@ -321,6 +325,6 @@ public final class ProfcollectForwardingService extends SystemService { } catch (RemoteException e) { Log.e(LOG_TAG, e.getMessage()); } }).start(); }); } }