Home | History | Annotate | Download | only in components

Lines Matching defs:intent

21 import android.content.Intent;
71 * @param intent The intent.
77 * and we can skip the re-broadcast of the intent to Telecom.
78 * When {@code false}, we need to re-broadcast the intent to Telcom
82 public void processIntent(Intent intent, String callingPackageName,
89 String action = intent.getAction();
91 if (Intent.ACTION_CALL.equals(action) ||
92 Intent.ACTION_CALL_PRIVILEGED.equals(action) ||
93 Intent.ACTION_CALL_EMERGENCY.equals(action)) {
94 processOutgoingCallIntent(intent, callingPackageName, canCallNonEmergency,
99 private void processOutgoingCallIntent(Intent intent, String callingPackageName,
101 Uri handle = intent.getData();
133 final Intent adminSupportIntent = dpm.createAdminSupportIntent(
151 int videoState = intent.getIntExtra(
156 intent.putExtra(CallIntentProcessor.KEY_IS_PRIVILEGED_DIALER,
159 // Save the user handle of current user before forwarding the intent to primary user.
160 intent.putExtra(CallIntentProcessor.KEY_INITIATING_USER, mUserHandle);
162 sendIntentToDestination(intent, isLocalInvocation);
192 * Potentially trampolines the intent to the broadcast receiver that runs only as the primary
193 * user. If the caller is local to the Telecom service, we send the intent to Telecom without
196 private boolean sendIntentToDestination(Intent intent, boolean isLocalInvocation) {
197 intent.putExtra(CallIntentProcessor.KEY_IS_INCOMING_CALL, false);
198 intent.setFlags(Intent.FLAG_RECEIVER_FOREGROUND);
199 intent.setClass(mContext, PrimaryCallReceiver.class);
202 // bother trampolining the intent, just sent it directly to the call intent processor.
203 // TODO: We should not be using an intent here; this whole flows needs cleanup.
204 Log.i(this, "sendIntentToDestination: send intent to Telecom directly.");
206 TelecomSystem.getInstance().getCallIntentProcessor().processIntent(intent);
212 mContext.sendBroadcastAsUser(intent, UserHandle.SYSTEM);
218 final Intent intent = new Intent(context, ErrorDialogActivity.class);
219 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
220 intent.putExtra(ErrorDialogActivity.ERROR_MESSAGE_ID_EXTRA, stringId);
221 context.startActivityAsUser(intent, UserHandle.CURRENT);