Home
last modified time | relevance | path

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

/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DUninstallerActivity.java336 Intent newIntent = new Intent(Intent.ACTION_VIEW); in startUninstallProgress() local
337 newIntent.putExtra(Intent.EXTRA_USER, mDialogInfo.user); in startUninstallProgress()
338 newIntent.putExtra(Intent.EXTRA_UNINSTALL_ALL_USERS, mDialogInfo.allUsers); in startUninstallProgress()
339 newIntent.putExtra(PackageInstaller.EXTRA_CALLBACK, mDialogInfo.callback); in startUninstallProgress()
340 newIntent.putExtra(PackageUtil.INTENT_ATTR_APPLICATION_INFO, mDialogInfo.appInfo); in startUninstallProgress()
343 newIntent.putExtra(Intent.EXTRA_RETURN_RESULT, true); in startUninstallProgress()
344 newIntent.addFlags(Intent.FLAG_ACTIVITY_FORWARD_RESULT); in startUninstallProgress()
347 newIntent.setClass(this, UninstallAppProgress.class); in startUninstallProgress()
348 startActivity(newIntent); in startUninstallProgress()
350 Intent newIntent = new Intent(this, UninstallUninstalling.class); in startUninstallProgress() local
[all …]
DPackageInstallerActivity.java704 Intent newIntent = new Intent(); in startInstall() local
705 newIntent.putExtra(PackageUtil.INTENT_ATTR_APPLICATION_INFO, in startInstall()
707 newIntent.setData(mPackageURI); in startInstall()
708 newIntent.setClass(this, InstallInstalling.class); in startInstall()
710 newIntent.putExtra(Intent.EXTRA_ORIGINATING_URI, mOriginatingURI); in startInstall()
713 newIntent.putExtra(Intent.EXTRA_REFERRER, mReferrerURI); in startInstall()
716 newIntent.putExtra(Intent.EXTRA_ORIGINATING_UID, mOriginatingUid); in startInstall()
719 newIntent.putExtra(Intent.EXTRA_INSTALLER_PACKAGE_NAME, in startInstall()
723 newIntent.putExtra(Intent.EXTRA_RETURN_RESULT, true); in startInstall()
726 newIntent.putExtra(EXTRA_STAGED_SESSION_ID, stagedSessionId); in startInstall()
[all …]
/frameworks/base/core/java/com/android/internal/app/
DIntentForwarderActivity.java163 final Intent newIntent = canForward(intentReceived, getUserId(), targetUserId, in onCreate() local
166 if (newIntent == null) { in onCreate()
173 newIntent.prepareToLeaveUser(callingUserId); in onCreate()
175 mInjector.resolveActivityAsUser(newIntent, MATCH_DEFAULT_ONLY, targetUserId); in onCreate()
178 buildAndExecuteForPrivateProfile(intentReceived, className, newIntent, callingUserId, in onCreate()
181 buildAndExecute(targetResolveInfoFuture, intentReceived, className, newIntent, in onCreate()
188 Intent intentReceived, String className, Intent newIntent, int callingUserId, in buildAndExecute() argument
193 launchResolverActivityWithCorrectTab(intentReceived, className, newIntent, in buildAndExecute()
197 startActivityAsCaller(newIntent, targetUserId); in buildAndExecute()
208 maybeShowUserConsentMiniResolver(result, newIntent, managedProfile); in buildAndExecute()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/activity/
DRemoteReceiver.java35 Intent newIntent = new Intent(intent); in onReceive() local
36 newIntent.setAction(LaunchpadActivity.BROADCAST_REMOTE); in onReceive()
37 context.sendOrderedBroadcast(newIntent, null); in onReceive()
DLocalReceiver.java63 Intent newIntent = new Intent(intent); in onReceive() local
64 newIntent.setAction(LaunchpadActivity.BROADCAST_LOCAL); in onReceive()
65 context.sendOrderedBroadcast(newIntent, null); in onReceive()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageMonitorCallbackHelper.java255 Intent newIntent = intent; in doNotifyCallbacks() local
269 newIntent = new Intent(newIntent); in doNotifyCallbacks()
270 newIntent.replaceExtras(filteredExtras); in doNotifyCallbacks()
273 invokeCallback(callback, newIntent); in doNotifyCallbacks()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarRemoteInputCallback.java236 final Intent newIntent = mKeyguardManager.createConfirmDeviceCredentialIntent(null, in startWorkChallengeIfNecessary() local
238 if (newIntent == null) { in startWorkChallengeIfNecessary()
253 newIntent.putExtra( in startWorkChallengeIfNecessary()
257 ActivityManager.getService().startConfirmDeviceCredentialIntent(newIntent, in startWorkChallengeIfNecessary()
/frameworks/base/services/core/java/com/android/server/wm/
DActivityStartInterceptor.java437 final Intent newIntent = km.createConfirmDeviceCredentialIntent(null, null, userId, in interceptWithConfirmCredentialsIfNeeded() local
439 if (newIntent == null) { in interceptWithConfirmCredentialsIfNeeded()
442 newIntent.setFlags(FLAG_ACTIVITY_NEW_TASK | FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS | in interceptWithConfirmCredentialsIfNeeded()
444 newIntent.putExtra(EXTRA_PACKAGE_NAME, aInfo.packageName); in interceptWithConfirmCredentialsIfNeeded()
445 newIntent.putExtra(EXTRA_INTENT, target); in interceptWithConfirmCredentialsIfNeeded()
446 return newIntent; in interceptWithConfirmCredentialsIfNeeded()
DActivityStarter.java875 final Intent newIntent = new Intent(); in resolveToHeavyWeightSwitcherIfNeeded() local
878 newIntent.putExtra(HeavyWeightSwitcherActivity.KEY_HAS_RESULT, true); in resolveToHeavyWeightSwitcherIfNeeded()
880 newIntent.putExtra(HeavyWeightSwitcherActivity.KEY_INTENT, new IntentSender(target)); in resolveToHeavyWeightSwitcherIfNeeded()
881 heavy.updateIntentForHeavyWeightActivity(newIntent); in resolveToHeavyWeightSwitcherIfNeeded()
882 newIntent.putExtra(HeavyWeightSwitcherActivity.KEY_NEW_APP, in resolveToHeavyWeightSwitcherIfNeeded()
884 newIntent.setFlags(mRequest.intent.getFlags()); in resolveToHeavyWeightSwitcherIfNeeded()
885 newIntent.setClassName("android" /* packageName */, in resolveToHeavyWeightSwitcherIfNeeded()
887 mRequest.intent = newIntent; in resolveToHeavyWeightSwitcherIfNeeded()
1244 Intent newIntent = new Intent(Intent.ACTION_REVIEW_PERMISSIONS); in executeRequest() local
1261 newIntent.setFlags(flags); in executeRequest()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DBroadcastRecord.java498 private BroadcastRecord(BroadcastRecord from, Intent newIntent) { in BroadcastRecord() argument
499 intent = Objects.requireNonNull(newIntent); in BroadcastRecord()
500 targetComp = newIntent.getComponent(); in BroadcastRecord()
696 Intent newIntent = null; in getReceiverIntent() local
706 newIntent = new Intent(intent); in getReceiverIntent()
707 newIntent.replaceExtras(filteredExtras); in getReceiverIntent()
712 if (newIntent == null) { in getReceiverIntent()
713 newIntent = new Intent(intent); in getReceiverIntent()
715 newIntent.setComponent(((ResolveInfo) receiver).activityInfo.getComponentName()); in getReceiverIntent()
717 return (newIntent != null) ? newIntent : intent; in getReceiverIntent()
DAppRestrictionController.java2514 final Intent newIntent = new Intent(ACTION_SHOW_FOREGROUND_SERVICE_MANAGER);
2515 newIntent.addFlags(Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND);
2517 mContext.sendBroadcastAsUser(newIntent, UserHandle.SYSTEM);
/frameworks/base/services/core/java/com/android/server/audio/
DBtHelper.java223 Intent newIntent = new Intent(AudioManager.ACTION_SCO_AUDIO_STATE_CHANGED); in onSystemReady() local
224 newIntent.putExtra(AudioManager.EXTRA_SCO_AUDIO_STATE, in onSystemReady()
226 sendStickyBroadcastToAll(newIntent); in onSystemReady()
474 Intent newIntent = new Intent(AudioManager.ACTION_SCO_AUDIO_STATE_CHANGED); in onScoAudioStateChanged() local
475 newIntent.putExtra(AudioManager.EXTRA_SCO_AUDIO_STATE, scoAudioState); in onScoAudioStateChanged()
476 sendStickyBroadcastToAll(newIntent); in onScoAudioStateChanged()
564 Intent newIntent = new Intent(AudioManager.ACTION_SCO_AUDIO_STATE_UPDATED); in onBroadcastScoConnectionState() local
565 newIntent.putExtra(AudioManager.EXTRA_SCO_AUDIO_STATE, state); in onBroadcastScoConnectionState()
566 newIntent.putExtra(AudioManager.EXTRA_SCO_AUDIO_PREVIOUS_STATE, in onBroadcastScoConnectionState()
568 sendStickyBroadcastToAll(newIntent); in onBroadcastScoConnectionState()
/frameworks/base/core/java/android/app/
DRemoteInput.java463 intent.setClipData(ClipData.newIntent(RESULTS_CLIP_LABEL, clipDataIntent)); in addResultsToIntent()
499 intent.setClipData(ClipData.newIntent(RESULTS_CLIP_LABEL, clipDataIntent)); in addDataResultToIntent()
521 intent.setClipData(ClipData.newIntent(RESULTS_CLIP_LABEL, clipDataIntent)); in setResultsSource()
DActivity.java1173 public void setIntent(Intent newIntent) { in setIntent() argument
1174 internalSetIntent(newIntent, /* newCaller */ null); in setIntent()
1218 public void setIntent(@Nullable Intent newIntent, @Nullable ComponentCaller newCaller) { in setIntent() argument
1219 internalSetIntent(newIntent, newCaller); in setIntent()
1222 private void internalSetIntent(Intent newIntent, ComponentCaller newCaller) { in internalSetIntent() argument
1223 mIntent = newIntent; in internalSetIntent()
DInstrumentation.java1666 Intent newIntent = intent != null ? new Intent(intent) : null; in internalCallActivityOnNewIntent() local
1667 callActivityOnNewIntent(activity, newIntent, caller); in internalCallActivityOnNewIntent()
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
DMusicFxHelperTest.java92 private Intent newIntent(String action, String packageName, int sessionId) { in newIntent() method in MusicFxHelperTest
122 Intent intent = newIntent(AudioEffect.ACTION_OPEN_AUDIO_EFFECT_CONTROL_SESSION, in openSessionWithResList()
151 Intent intent = newIntent(AudioEffect.ACTION_CLOSE_AUDIO_EFFECT_CONTROL_SESSION, in closeSessionWithResList()
208 Intent intent = newIntent(AudioEffect.ACTION_OPEN_AUDIO_EFFECT_CONTROL_SESSION, null, 1); in testBroadcastIntentWithPackage()
215 intent = newIntent(AudioEffect.ACTION_CLOSE_AUDIO_EFFECT_CONTROL_SESSION, null, 1); in testBroadcastIntentWithPackage()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DAdminSecondaryLockScreenController.java125 Intent newIntent = mUpdateMonitor.getSecondaryLockscreenRequirement(userId);
126 if (newIntent == null) {
/frameworks/base/core/java/android/content/
DClipData.java984 static public ClipData newIntent(CharSequence label, Intent intent) { in newIntent() method in ClipData
/frameworks/opt/telephony/src/java/com/android/internal/telephony/satellite/
DSatelliteController.java4802 Intent newIntent = new Intent(Intent.ACTION_VIEW); in showSatelliteSystemNotification()
4803 newIntent.setData(Uri.parse("sms:")); in showSatelliteSystemNotification()
4804 return newIntent; in showSatelliteSystemNotification()
/frameworks/base/boot/
Dboot-image-profile.txt3557 HSPLandroid/content/ClipData;->newIntent(Ljava/lang/CharSequence;Landroid/content/Intent;)Landroid/…
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt6781 …method public static android.content.ClipData newIntent(java.lang.CharSequence, android.content.In…
/frameworks/base/config/
Dboot-image-profile.txt3560 HSPLandroid/content/ClipData;->newIntent(Ljava/lang/CharSequence;Landroid/content/Intent;)Landroid/…
/frameworks/base/core/api/
Dcurrent.txt10065 method public static android.content.ClipData newIntent(CharSequence, android.content.Intent);