PrimaryCallReceiver.java revision 78a5e6b9c1595c81f72d7a822617cb78db224e48
1package com.android.server.telecom.components; 2 3import com.android.server.telecom.TelecomSystem; 4import com.android.server.telecom.UserCallIntentProcessor; 5 6import android.content.BroadcastReceiver; 7import android.content.Context; 8import android.content.Intent; 9 10/** 11 * Single point of entry for all outgoing and incoming calls. {@link UserCallIntentProcessor} serves 12 * as a trampoline that captures call intents for individual users and forwards it to 13 * the {@link PrimaryCallReceiver} which interacts with the rest of Telecom, both of which run only as 14 * the primary user. 15 */ 16public class PrimaryCallReceiver extends BroadcastReceiver implements TelecomSystem.Component { 17 18 @Override 19 public void onReceive(Context context, Intent intent) { 20 getTelecomSystem().getCallIntentProcessor().processIntent(intent); 21 } 22 23 @Override 24 public TelecomSystem getTelecomSystem() { 25 return TelecomSystem.getInstance(); 26 } 27} 28