Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 80061f71 authored by François Degros's avatar François Degros
Browse files

Make some Job methods public

This will allow these methods to be implemented and tested by the
upcoming UnpackJob class. Since UnpackJobTest will be written in Kotlin,
these Job methods need to be public in order to be accessed by this test
class.

Bug: 420540391
Flag: EXEMPT no functional change
Test: atest DocumentsUIGoogleTests:com.android.documentsui.services
Change-Id: Iccafd72b81d53fa096cb4e70075ae787084780e0
parent 3b61c498
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -82,7 +82,7 @@ final class CompressJob extends CopyJob {
    }

    @Override
    Notification getFailureNotification() {
    public Notification getFailureNotification() {
        return getFailureNotification(
                getRes(R.plurals.compress_error_notification_title),
                getRes(R.drawable.ic_menu_compress));
+1 −1
Original line number Diff line number Diff line
@@ -171,7 +171,7 @@ class CopyJob extends ResolvedResourcesJob {
    }

    @Override
    Notification getFailureNotification() {
    public Notification getFailureNotification() {
        return getFailureNotification(
                getRes(R.plurals.copy_error_notification_title), getRes(R.drawable.ic_menu_copy));
    }
+1 −1
Original line number Diff line number Diff line
@@ -88,7 +88,7 @@ final class DeleteJob extends ResolvedResourcesJob {
    }

    @Override
    Notification getFailureNotification() {
    public Notification getFailureNotification() {
        return getFailureNotification(
                getRes(R.plurals.delete_error_notification_title),
                getRes(R.drawable.ic_menu_delete));
+5 −4
Original line number Diff line number Diff line
@@ -185,9 +185,10 @@ abstract public class Job implements Runnable {
    abstract void finish();

    abstract void start();
    abstract Notification getSetupNotification();
    abstract Notification getProgressNotification();
    abstract Notification getFailureNotification();

    public abstract Notification getSetupNotification();
    public abstract Notification getProgressNotification();
    public abstract Notification getFailureNotification();

    /** Must be implemented if hasWarnings() can return true. */
    Notification getWarningNotification() {
@@ -402,7 +403,7 @@ abstract public class Job implements Runnable {
    /**
     * Listener interface employed by the service that owns us as well as tests.
     */
    interface Listener {
    public interface Listener {
        void onStart(Job job);
        void onFinished(Job job);
    }
+1 −1
Original line number Diff line number Diff line
@@ -92,7 +92,7 @@ final class MoveJob extends CopyJob {
    }

    @Override
    Notification getFailureNotification() {
    public Notification getFailureNotification() {
        return getFailureNotification(
                getRes(R.plurals.move_error_notification_title), getRes(R.drawable.ic_menu_copy));
    }
Loading