Merge "Fix non-protected broadcast NO_ACTION" into sc-v2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
2aa3d92490
@@ -31,7 +31,6 @@ import org.junit.Before
|
|||||||
import org.junit.Rule
|
import org.junit.Rule
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import org.junit.runner.RunWith
|
import org.junit.runner.RunWith
|
||||||
import java.lang.Exception
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* UsbPermissionActivityTest
|
* UsbPermissionActivityTest
|
||||||
@@ -54,7 +53,9 @@ class UsbPermissionActivityTest : SysuiTestCase() {
|
|||||||
putExtra(Intent.EXTRA_INTENT, PendingIntent.getBroadcast(
|
putExtra(Intent.EXTRA_INTENT, PendingIntent.getBroadcast(
|
||||||
mContext,
|
mContext,
|
||||||
334,
|
334,
|
||||||
Intent("NO_ACTION"),
|
Intent("NO_ACTION").apply {
|
||||||
|
setPackage("com.android.systemui.tests")
|
||||||
|
},
|
||||||
PendingIntent.FLAG_MUTABLE))
|
PendingIntent.FLAG_MUTABLE))
|
||||||
putExtra(UsbManager.EXTRA_ACCESSORY, UsbAccessory(
|
putExtra(UsbManager.EXTRA_ACCESSORY, UsbAccessory(
|
||||||
"manufacturer",
|
"manufacturer",
|
||||||
|
|||||||
Reference in New Issue
Block a user