/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/util/src/com/android/cts/util/ |
D | TestResult.java | 72 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/app/test-apps/TestShareIdentityApp/src/android/app/cts/testshareidentity/ |
D | TestShareIdentityActivity.java | 433 Intent broadcastIntent = new Intent(); in testSendBroadcast() local 434 broadcastIntent.putExtra(TEST_ID_KEY, testId); in testSendBroadcast() 436 broadcastIntent.setAction(TEST_BROADCAST_MANIFEST_ACTION); in testSendBroadcast() 437 broadcastIntent.setComponent(SHARED_IDENTITY_RECEIVER); in testSendBroadcast() 439 broadcastIntent.setAction(TEST_BROADCAST_RUNTIME_ACTION); in testSendBroadcast() 445 sendOrderedBroadcast(broadcastIntent, null, broadcastOptions.toBundle()); in testSendBroadcast() 447 sendBroadcast(broadcastIntent, null, broadcastOptions.toBundle()); in testSendBroadcast() 451 sendOrderedBroadcast(broadcastIntent, null); in testSendBroadcast() 453 sendBroadcast(broadcastIntent, null); in testSendBroadcast()
|
/cts/tests/tests/app/test-apps/TestComponentCallerApp/src/android/app/cts/testcomponentcaller/ |
D | TestInitialCallerActivity.java | 135 Intent broadcastIntent = new Intent(); in tryToRetrieveExtraStreamReferrerName() local 136 broadcastIntent.setComponent(TEST_RECEIVER); in tryToRetrieveExtraStreamReferrerName() 137 broadcastIntent.setAction(TEST_RECEIVER_ACTION); in tryToRetrieveExtraStreamReferrerName() 139 broadcastIntent.putExtra(Intent.EXTRA_STREAM, streamString); in tryToRetrieveExtraStreamReferrerName() 140 broadcastIntent.putExtra(Intent.EXTRA_REFERRER_NAME, referrerName); in tryToRetrieveExtraStreamReferrerName() 142 sendBroadcast(broadcastIntent); in tryToRetrieveExtraStreamReferrerName()
|
/cts/hostsidetests/devicepolicy/app/ContentCaptureApp/src/com/android/cts/devicepolicy/contentcaptureapp/ |
D | SimpleActivity.java | 65 final Intent broadcastIntent = new Intent() in onReceive() local 68 sendBroadcast(broadcastIntent); in onReceive()
|
/cts/tests/framework/base/windowmanager/backgroundactivity/src/android/server/wm/ |
D | BackgroundActivityTestBase.java | 224 Intent broadcastIntent = new Intent( in getLaunchActivitiesBroadcast() local 233 broadcastIntent.putExtra(app.FOREGROUND_ACTIVITY_EXTRA.LAUNCH_INTENTS, intents); in getLaunchActivitiesBroadcast() 234 return broadcastIntent; in getLaunchActivitiesBroadcast() 239 Intent broadcastIntent = new Intent( in getLaunchActivitiesBroadcast() local 241 broadcastIntent.putExtra(app.FOREGROUND_ACTIVITY_EXTRA.LAUNCH_PENDING_INTENTS, in getLaunchActivitiesBroadcast() 243 return broadcastIntent; in getLaunchActivitiesBroadcast() 247 Intent broadcastIntent = new Intent( in getLaunchAndFinishActivitiesBroadcast() local 249 broadcastIntent.putExtra(app.FOREGROUND_ACTIVITY_EXTRA.LAUNCH_PENDING_INTENTS, in getLaunchAndFinishActivitiesBroadcast() 251 broadcastIntent.putExtra(app.FOREGROUND_ACTIVITY_EXTRA.LAUNCH_FOR_RESULT_AND_FINISH, true); in getLaunchAndFinishActivitiesBroadcast() 252 return broadcastIntent; in getLaunchAndFinishActivitiesBroadcast()
|
/cts/tests/tests/voicesettings/service/src/android/voicesettings/service/ |
D | MainInteractionSession.java | 127 Intent broadcastIntent = new Intent(BroadcastUtils.BROADCAST_INTENT + in onTaskFinished() local 133 broadcastIntent.putExtras(extras); in onTaskFinished() 135 ", intent = " + broadcastIntent.toString()); in onTaskFinished() 136 mContext.sendBroadcast(broadcastIntent); in onTaskFinished()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | ContentCaptureActivity.java | 61 final Intent broadcastIntent = new Intent().setAction("SimpleActivityReceiver"); in waitContentCaptureEnabled() local 62 sendBroadcast(broadcastIntent); in waitContentCaptureEnabled()
|
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | BluetoothLeScanTest.java | 344 Intent broadcastIntent = new Intent(); in startScanPendingIntent_nullnull() local 345 broadcastIntent.setClass(mContext, BluetoothScanReceiver.class); in startScanPendingIntent_nullnull() 346 PendingIntent pi = PendingIntent.getBroadcast(mContext, 1, broadcastIntent, in startScanPendingIntent_nullnull() 379 Intent broadcastIntent = new Intent(); in startScanPendingIntent() local 380 broadcastIntent.setClass(mContext, BluetoothScanReceiver.class); in startScanPendingIntent() 381 PendingIntent pi = PendingIntent.getBroadcast(mContext, 1, broadcastIntent, in startScanPendingIntent()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/unittests/ |
D | AutofillManagerTest.java | 138 final Intent broadcastIntent = new Intent(actionAutofillStatusActivityFinish); in runQueryAutofillStatusActivityAndVerifyResult() local 139 final PendingIntent pendingIntent = PendingIntent.getBroadcast(sContext, 0, broadcastIntent, in runQueryAutofillStatusActivityAndVerifyResult()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | PackageInstallTest.java | 124 Intent broadcastIntent = new Intent(ACTION_INSTALL_COMMIT) in getCommitCallback() local 129 broadcastIntent, in getCommitCallback()
|
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/ |
D | BasePackageInstallTest.java | 154 Intent broadcastIntent = new Intent(action).setPackage(mContext.getPackageName()); in getCommitCallback() local 158 broadcastIntent, in getCommitCallback()
|
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/ |
D | InputMethodServiceDeviceTest.java | 121 helper.shell(ShellCommandUtils.broadcastIntent( in testSwitchToNextInputMethod() 146 helper.shell(ShellCommandUtils.broadcastIntent( in switchToPreviousInputMethod() 191 helper.shell(ShellCommandUtils.broadcastIntent( in testSwitchToHandwritingInputMethod() 333 helper.shell(ShellCommandUtils.broadcastIntent( in testImeSwitchingWithoutWindowFocusAfterDisplayOffOn()
|
/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/ |
D | TextClassifierServiceSwapTest.java | 242 final Intent broadcastIntent = new Intent(actionQueryActivityFinish); in runQueryTextClassifierServiceActivity() local 247 broadcastIntent, in runQueryTextClassifierServiceActivity()
|
/cts/hostsidetests/inputmethodservice/common/src/android/inputmethodservice/cts/common/test/ |
D | ShellCommandUtils.java | 193 public static String broadcastIntent(String action, String targetComponent, String... extras) { in broadcastIntent() method in ShellCommandUtils
|
/cts/tests/tests/packageinstaller/adminpackageinstaller/src/android/packageinstaller/admin/cts/ |
D | BasePackageInstallTest.java | 242 Intent broadcastIntent = new Intent(action).setPackage(mContext.getPackageName()) in getCommitCallback() local 247 broadcastIntent, in getCommitCallback()
|
/cts/tests/tests/app/src/android/app/cts/ |
D | ShareIdentityTest.java | 1367 Intent broadcastIntent = new Intent(); in onStart() local 1368 broadcastIntent.putExtra(TEST_ID_KEY, testId); in onStart() 1369 broadcastIntent.putExtra(TEST_CASE_KEY, testCase); in onStart() 1370 broadcastIntent.setComponent(TEST_SHARED_IDENTITY_RECEIVER); in onStart() 1371 broadcastIntent.setAction(TEST_SHARED_IDENTITY_RECEIVER_ACTION); in onStart() 1372 sendBroadcast(broadcastIntent); in onStart()
|
/cts/tests/tests/packageinstaller/uninstall/src/android/packageinstaller/uninstall/cts/ |
D | UninstallTest.java | 263 Intent broadcastIntent = new Intent(RECEIVER_ACTION).setPackage(mContext.getPackageName()); in testUninstallApi() local 265 PendingIntent.getBroadcast(mContext, 1, broadcastIntent, in testUninstallApi()
|
/cts/tests/tests/notification/NotificationTrampolineBase/src/com/android/test/notificationtrampoline/ |
D | NotificationTrampolineTestService.java | 118 public void onReceive(Context context, Intent broadcastIntent) { in handleMessage()
|
/cts/tests/app/src/android/app/cts/ |
D | ActivityManagerProcessStateTest.java | 857 final Intent broadcastIntent = new Intent(); in testBackgroundCheckBroadcastService() local 858 broadcastIntent.setFlags(Intent.FLAG_RECEIVER_FOREGROUND); in testBackgroundCheckBroadcastService() 859 broadcastIntent.setClassName(SIMPLE_PACKAGE_NAME, in testBackgroundCheckBroadcastService() 884 broadcastIntent.putExtra("service", mServiceIntent); in testBackgroundCheckBroadcastService() 885 br.sendAndWait(mContext, broadcastIntent, Activity.RESULT_OK, null, null, WAIT_TIME); in testBackgroundCheckBroadcastService() 909 br.sendAndWait(mContext, broadcastIntent, Activity.RESULT_OK, null, null, WAIT_TIME); in testBackgroundCheckBroadcastService() 944 br.sendAndWait(mContext, broadcastIntent, Activity.RESULT_OK, null, null, WAIT_TIME); in testBackgroundCheckBroadcastService() 963 br.sendAndWait(mContext, broadcastIntent, Activity.RESULT_OK, null, null, WAIT_TIME); in testBackgroundCheckBroadcastService()
|
/cts/hostsidetests/inputmethodservice/hostside/src/android/inputmethodservice/cts/hostside/ |
D | InputMethodServiceLifecycleTest.java | 393 shell(ShellCommandUtils.broadcastIntent( in sendTestStartEvent()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContextTest.java | 728 final Intent broadcastIntent = new Intent(ResultReceiver.MOCK_ACTION) in testSendOrderedBroadcast1() local 730 broadcastIntent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND); in testSendOrderedBroadcast1() 731 mContext.sendOrderedBroadcast(broadcastIntent, null); in testSendOrderedBroadcast1()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageManagerTest.java | 420 Intent broadcastIntent = new Intent(RECEIVER_ACTION_NAME); in testQuery() local 422 mPackageManager.queryBroadcastReceivers(broadcastIntent, in testQuery()
|