summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2017-09-06 06:02:02 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2017-09-06 06:02:02 +0000
commit5cb1f7f679019436c8dc04d5f1b746563f9be13c (patch)
tree9b5747f8e353da7d9ac1449c07c74a01232bc32e
parente01a735ebcf8d721bb5c0cadd2d1f3cf85bd122b (diff)
parent14e5e1d3a6bcd89730c264aa2e1dd966651eebdf (diff)
Merge "Renaming string constants for intent action in tests"
-rw-r--r--services/tests/servicestests/src/com/android/server/job/BackgroundRestrictionsTest.java3
-rw-r--r--services/tests/servicestests/test-apps/JobTestApp/src/com/android/servicestests/apps/jobtestapp/TestJobActivity.java4
2 files changed, 3 insertions, 4 deletions
diff --git a/services/tests/servicestests/src/com/android/server/job/BackgroundRestrictionsTest.java b/services/tests/servicestests/src/com/android/server/job/BackgroundRestrictionsTest.java
index 70d22745b3dc..a1d8198b2777 100644
--- a/services/tests/servicestests/src/com/android/server/job/BackgroundRestrictionsTest.java
+++ b/services/tests/servicestests/src/com/android/server/job/BackgroundRestrictionsTest.java
@@ -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);
}
diff --git a/services/tests/servicestests/test-apps/JobTestApp/src/com/android/servicestests/apps/jobtestapp/TestJobActivity.java b/services/tests/servicestests/test-apps/JobTestApp/src/com/android/servicestests/apps/jobtestapp/TestJobActivity.java
index 94a85eee29a7..011817e99714 100644
--- a/services/tests/servicestests/test-apps/JobTestApp/src/com/android/servicestests/apps/jobtestapp/TestJobActivity.java
+++ b/services/tests/servicestests/test-apps/JobTestApp/src/com/android/servicestests/apps/jobtestapp/TestJobActivity.java
@@ -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;