fix ContextWrapperTest#testSendOrderedBroadcast1

- set priority as in document

Bug: 6303255
Change-Id: I7e2a109064cb0caf19bcc8f6ef292710cd1b4780
diff --git a/tests/tests/content/src/android/content/cts/ContextWrapperTest.java b/tests/tests/content/src/android/content/cts/ContextWrapperTest.java
index 39c460c..59fae2f 100644
--- a/tests/tests/content/src/android/content/cts/ContextWrapperTest.java
+++ b/tests/tests/content/src/android/content/cts/ContextWrapperTest.java
@@ -150,9 +150,11 @@
         final LowPriorityBroadcastReceiver lowPriorityReceiver =
             new LowPriorityBroadcastReceiver();
 
-        final IntentFilter filter = new IntentFilter(ResultReceiver.MOCK_ACTION);
-        registerBroadcastReceiver(highPriorityReceiver, filter);
-        registerBroadcastReceiver(lowPriorityReceiver, filter);
+        final IntentFilter filterHighPriority = new IntentFilter(ResultReceiver.MOCK_ACTION);
+        filterHighPriority.setPriority(1);
+        final IntentFilter filterLowPriority = new IntentFilter(ResultReceiver.MOCK_ACTION);
+        registerBroadcastReceiver(highPriorityReceiver, filterHighPriority);
+        registerBroadcastReceiver(lowPriorityReceiver, filterLowPriority);
 
         final Intent broadcastIntent = new Intent(ResultReceiver.MOCK_ACTION);
         mContextWrapper.sendOrderedBroadcast(broadcastIntent, null);