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