Home
last modified time | relevance | path

Searched refs:broadcastIntent (Results 1 – 14 of 14) sorted by relevance

/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/util/src/com/android/cts/util/
DTestResult.java72 final Intent broadcastIntent = new Intent(ACTION_START_ACTIVITY); in broadcast() local
73 broadcastIntent.addCategory(Intent.CATEGORY_DEFAULT); in broadcast()
74 broadcastIntent.addFlags(Intent.FLAG_RECEIVER_VISIBLE_TO_INSTANT_APPS); in broadcast()
75 broadcastIntent.putExtra(EXTRA_TEST_RESULT, this); in broadcast()
76 context.sendBroadcast(broadcastIntent); in broadcast()
80 final Intent broadcastIntent = new Intent(Intent.ACTION_VIEW); in startActivity() local
81 broadcastIntent.addCategory(Intent.CATEGORY_BROWSABLE); in startActivity()
82 broadcastIntent.putExtra(EXTRA_TEST_RESULT, this); in startActivity()
83 broadcastIntent.setData(uri); in startActivity()
84 context.startActivity(broadcastIntent); in startActivity()
/cts/tests/tests/voicesettings/service/src/android/voicesettings/service/
DMainInteractionSession.java124 Intent broadcastIntent = new Intent(BroadcastUtils.BROADCAST_INTENT + in onTaskFinished() local
130 broadcastIntent.putExtras(extras); in onTaskFinished()
132 ", intent = " + broadcastIntent.toString()); in onTaskFinished()
133 mContext.sendBroadcast(broadcastIntent); in onTaskFinished()
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DBluetoothLeScanTest.java283 Intent broadcastIntent = new Intent(); in testStartScanPendingIntent_nullnull() local
284 broadcastIntent.setClass(mContext, BluetoothScanReceiver.class); in testStartScanPendingIntent_nullnull()
285 PendingIntent pi = PendingIntent.getBroadcast(mContext, 1, broadcastIntent, 0); in testStartScanPendingIntent_nullnull()
313 Intent broadcastIntent = new Intent(); in testStartScanPendingIntent() local
314 broadcastIntent.setClass(mContext, BluetoothScanReceiver.class); in testStartScanPendingIntent()
315 PendingIntent pi = PendingIntent.getBroadcast(mContext, 1, broadcastIntent, 0); in testStartScanPendingIntent()
/cts/hostsidetests/devicepolicy/app/ContentCaptureApp/src/com/android/cts/devicepolicy/contentcaptureapp/
DSimpleActivity.java65 final Intent broadcastIntent = new Intent() in onReceive() local
68 sendBroadcast(broadcastIntent); in onReceive()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DContentCaptureActivity.java60 final Intent broadcastIntent = new Intent().setAction("SimpleActivityReceiver"); in waitContentCaptureEnabled() local
61 sendBroadcast(broadcastIntent); in waitContentCaptureEnabled()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DPackageInstallTest.java124 Intent broadcastIntent = new Intent(ACTION_INSTALL_COMMIT); in getCommitCallback() local
128 broadcastIntent, in getCommitCallback()
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/
DInputMethodServiceDeviceTest.java108 helper.shell(ShellCommandUtils.broadcastIntent( in testSwitchIme1ToIme2()
148 helper.shell(ShellCommandUtils.broadcastIntent( in testSwitchInputMethod()
179 helper.shell(ShellCommandUtils.broadcastIntent( in testSwitchToNextInputMethod()
204 helper.shell(ShellCommandUtils.broadcastIntent( in switchToPreviousInputMethod()
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/
DBasePackageInstallTest.java152 Intent broadcastIntent = new Intent(action); in getCommitCallback() local
156 broadcastIntent, in getCommitCallback()
/cts/tests/tests/packageinstaller/adminpackageinstaller/src/android/packageinstaller/admin/cts/
DBasePackageInstallTest.java194 Intent broadcastIntent = new Intent(action); in getCommitCallback() local
198 broadcastIntent, in getCommitCallback()
/cts/hostsidetests/inputmethodservice/common/src/android/inputmethodservice/cts/common/test/
DShellCommandUtils.java173 public static String broadcastIntent(String action, String targetComponent, String... extras) { in broadcastIntent() method in ShellCommandUtils
/cts/tests/app/src/android/app/cts/
DActivityManagerProcessStateTest.java744 final Intent broadcastIntent = new Intent(); in testBackgroundCheckBroadcastService() local
745 broadcastIntent.setFlags(Intent.FLAG_RECEIVER_FOREGROUND); in testBackgroundCheckBroadcastService()
746 broadcastIntent.setClassName(SIMPLE_PACKAGE_NAME, in testBackgroundCheckBroadcastService()
769 broadcastIntent.putExtra("service", mServiceIntent); in testBackgroundCheckBroadcastService()
770 br.sendAndWait(mContext, broadcastIntent, Activity.RESULT_OK, null, null, WAIT_TIME); in testBackgroundCheckBroadcastService()
791 br.sendAndWait(mContext, broadcastIntent, Activity.RESULT_OK, null, null, WAIT_TIME); in testBackgroundCheckBroadcastService()
826 br.sendAndWait(mContext, broadcastIntent, Activity.RESULT_OK, null, null, WAIT_TIME); in testBackgroundCheckBroadcastService()
845 br.sendAndWait(mContext, broadcastIntent, Activity.RESULT_OK, null, null, WAIT_TIME); in testBackgroundCheckBroadcastService()
/cts/tests/tests/content/src/android/content/cts/
DContextTest.java518 final Intent broadcastIntent = new Intent(ResultReceiver.MOCK_ACTION); in testSendOrderedBroadcast1() local
519 broadcastIntent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND); in testSendOrderedBroadcast1()
520 mContext.sendOrderedBroadcast(broadcastIntent, null); in testSendOrderedBroadcast1()
/cts/hostsidetests/inputmethodservice/hostside/src/android/inputmethodservice/cts/hostside/
DInputMethodServiceLifecycleTest.java404 shell(ShellCommandUtils.broadcastIntent( in sendTestStartEvent()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerTest.java154 Intent broadcastIntent = new Intent(receiverActionName); in testQuery() local
156 broadcastReceivers = mPackageManager.queryBroadcastReceivers(broadcastIntent, 0); in testQuery()