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

Commit 14e5e1d3 authored by Suprabh Shukla's avatar Suprabh Shukla
Browse files

Renaming string constants for intent action in tests

Test: forrest --extra_args='--class \
com.android.server.job.BackgroundRestrictionsTest' \
test FrameworksServicesTests

Change-Id: Icf111bafe807143027ce68fcfcef727ad34bc941
parent 5affd4f9
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -32,7 +32,6 @@ import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.pm.PackageManager;
import android.os.IDeviceIdleController;
import android.os.RemoteException;
import android.os.ServiceManager;
@@ -182,7 +181,7 @@ public class BackgroundRestrictionsTest {
        }
    }

    private void setAppOpsModeAllowed(boolean allow) throws PackageManager.NameNotFoundException {
    private void setAppOpsModeAllowed(boolean allow) {
        mAppOpsManager.setMode(AppOpsManager.OP_RUN_ANY_IN_BACKGROUND, mTestPackageUid,
                TEST_APP_PACKAGE, allow ? AppOpsManager.MODE_ALLOWED : AppOpsManager.MODE_IGNORED);
    }
+2 −2
Original line number Diff line number Diff line
@@ -30,9 +30,9 @@ public class TestJobActivity extends Activity {
    public static final String EXTRA_JOB_ID_KEY =
            "com.android.servicestests.apps.jobtestapp.extra.JOB_ID";
    public static final String ACTION_START_JOB =
            "com.android.servicestests.apps.jobtestapp.extra.START_JOB";
            "com.android.servicestests.apps.jobtestapp.action.START_JOB";
    public static final String ACTION_CANCEL_JOBS =
            "com.android.servicestests.apps.jobtestapp.extra.CANCEL_JOBS";
            "com.android.servicestests.apps.jobtestapp.action.CANCEL_JOBS";
    public static final int JOB_INITIAL_BACKOFF = 10_000;
    public static final int JOB_MINIMUM_LATENCY = 5_000;