Home
last modified time | relevance | path

Searched refs:newIntent (Results 1 – 11 of 11) sorted by relevance

/cts/tests/framework/base/windowmanager/backgroundactivity/AppA/src/android/server/wm/backgroundactivity/appa/
DSendPendingIntentReceiver.java46 Intent newIntent = new Intent(); in onReceive() local
47 newIntent.setComponent(APP_A_START_ACTIVITY_RECEIVER); in onReceive()
48 newIntent.putExtra(START_ACTIVITY_DELAY_MS_EXTRA, startActivityDelayMs); in onReceive()
50 newIntent, PendingIntent.FLAG_UPDATE_CURRENT); in onReceive()
53 Intent newIntent = new Intent(); in onReceive() local
54 newIntent.setComponent(APP_A_BACKGROUND_ACTIVITY); in onReceive()
55 newIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in onReceive()
58 newIntent, PendingIntent.FLAG_UPDATE_CURRENT); in onReceive()
DForegroundActivity.java47 final Intent newIntent = new Intent(); in onCreate() local
48 newIntent.setClass(this, BackgroundActivity.class); in onCreate()
50 newIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in onCreate()
53 startActivity(newIntent); in onCreate()
57 startActivity(newIntent); in onCreate()
65 Intent newIntent = new Intent(); in onCreate() local
66 newIntent.setClass(this, SecondBackgroundActivity.class); in onCreate()
67 startActivity(newIntent); in onCreate()
DStartBackgroundActivityReceiver.java45 Intent newIntent = new Intent(context, BackgroundActivity.class); in startActivityNow() local
46 newIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in startActivityNow()
47 context.startActivity(newIntent); in startActivityNow()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DActivityLauncher.java142 final Intent newIntent = new Intent().setComponent(TextUtils.isEmpty(targetComponent) in launchActivityFromExtras() local
146 newIntent.addFlags(FLAG_ACTIVITY_NEW_TASK | FLAG_ACTIVITY_LAUNCH_ADJACENT); in launchActivityFromExtras()
151 newIntent.setData(data); in launchActivityFromExtras()
155 newIntent.addFlags(FLAG_ACTIVITY_MULTIPLE_TASK); in launchActivityFromExtras()
158 newIntent.addFlags(FLAG_ACTIVITY_NEW_TASK); in launchActivityFromExtras()
162 newIntent.addFlags(FLAG_ACTIVITY_REORDER_TO_FRONT); in launchActivityFromExtras()
167 newIntent.putExtras(intentExtras); in launchActivityFromExtras()
176 newIntent.addFlags(FLAG_ACTIVITY_NEW_TASK | FLAG_ACTIVITY_MULTIPLE_TASK); in launchActivityFromExtras()
180 launchInjector.setupIntent(newIntent); in launchActivityFromExtras()
191 newIntent.addFlags(intentFlags); in launchActivityFromExtras()
[all …]
/cts/hostsidetests/appsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/
DUtilsProvider.java68 final Intent newIntent = intent.getParcelableExtra(EXTRA_INTENT); in call() local
69 newIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in call()
70 context.startActivity(newIntent); in call()
73 final Intent newIntent = intent.getParcelableExtra(EXTRA_INTENT); in call() local
74 context.startService(newIntent); in call()
/cts/tests/fragment/src/android/fragment/cts/
DNewIntentActivity.java26 public final CountDownLatch newIntent = new CountDownLatch(1); field in NewIntentActivity
49 newIntent.countDown(); in onNewIntent()
DFragmentTransactionTest.java390 assertTrue(newIntentActivity.newIntent.await(1, TimeUnit.SECONDS)); in newIntentUnlocks()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DVpnTestActivity.java95 Intent newIntent = VpnService.prepare(this); in testVpnEstablishFails() local
96 if (newIntent != null) { in testVpnEstablishFails()
97 startActivityForResult(newIntent, REQUEST_VPN_CODE); in testVpnEstablishFails()
/cts/tests/framework/base/windowmanager/src/android/server/wm/lifecycle/
DActivityLifecycleTopResumedStateTests.java383 final Intent newIntent = new Intent(mContext, SingleTopActivity.class); in testTopPositionNewIntent() local
384 newIntent.addFlags(FLAG_ACTIVITY_NEW_TASK); in testTopPositionNewIntent()
385 mTargetContext.startActivity(newIntent); in testTopPositionNewIntent()
406 final Intent newIntent = new Intent(mContext, SingleTopActivity.class); in testTopPositionNewIntentForStopped() local
407 newIntent.addFlags(FLAG_ACTIVITY_NEW_TASK | FLAG_ACTIVITY_CLEAR_TOP); in testTopPositionNewIntentForStopped()
408 mTargetContext.startActivity(newIntent); in testTopPositionNewIntentForStopped()
440 final Intent newIntent = new Intent(mContext, SingleTopActivity.class); in testTopPositionNewIntentForPaused() local
441 newIntent.addFlags(FLAG_ACTIVITY_NEW_TASK | FLAG_ACTIVITY_CLEAR_TOP); in testTopPositionNewIntentForPaused()
442 mTargetContext.startActivity(newIntent); in testTopPositionNewIntentForPaused()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBleScannerService.java188 Intent newIntent = new Intent(BLE_PRIVACY_NEW_MAC_RECEIVE); in onScanResult() local
189 sendBroadcast(newIntent); in onScanResult()
/cts/tests/tests/content/src/android/content/cts/
DClipboardManagerTest.java101 ClipData intentData = ClipData.newIntent("IntentLabel", intent); in testSetPrimaryClip_intent()