/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/voicesettings/service/src/android/voicesettings/service/ |
D | MainInteractionSession.java | 124 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/ |
D | BluetoothLeScanTest.java | 283 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/ |
D | SimpleActivity.java | 65 final Intent broadcastIntent = new Intent() in onReceive() local 68 sendBroadcast(broadcastIntent); in onReceive()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | ContentCaptureActivity.java | 60 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/ |
D | PackageInstallTest.java | 124 Intent broadcastIntent = new Intent(ACTION_INSTALL_COMMIT); in getCommitCallback() local 128 broadcastIntent, in getCommitCallback()
|
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/ |
D | InputMethodServiceDeviceTest.java | 108 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/ |
D | BasePackageInstallTest.java | 152 Intent broadcastIntent = new Intent(action); in getCommitCallback() local 156 broadcastIntent, in getCommitCallback()
|
/cts/tests/tests/packageinstaller/adminpackageinstaller/src/android/packageinstaller/admin/cts/ |
D | BasePackageInstallTest.java | 194 Intent broadcastIntent = new Intent(action); in getCommitCallback() local 198 broadcastIntent, in getCommitCallback()
|
/cts/hostsidetests/inputmethodservice/common/src/android/inputmethodservice/cts/common/test/ |
D | ShellCommandUtils.java | 173 public static String broadcastIntent(String action, String targetComponent, String... extras) { in broadcastIntent() method in ShellCommandUtils
|
/cts/tests/app/src/android/app/cts/ |
D | ActivityManagerProcessStateTest.java | 744 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/ |
D | ContextTest.java | 518 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/ |
D | InputMethodServiceLifecycleTest.java | 404 shell(ShellCommandUtils.broadcastIntent( in sendTestStartEvent()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageManagerTest.java | 154 Intent broadcastIntent = new Intent(receiverActionName); in testQuery() local 156 broadcastReceivers = mPackageManager.queryBroadcastReceivers(broadcastIntent, 0); in testQuery()
|