Fix RcsManager and add empty RcsThread class

This change fixes the RcsManager setup and adds an empty RcsThread class. Please see go/rcs-in-telephony-doc for details.

Test: Builds fine
Bug: 109759350
Change-Id: Ie3fe476ab11d515ffab6dcc6ccf5ec801a4c9057
This commit is contained in:
Sahin Caliskan
2018-10-31 13:23:29 -07:00
parent 71aebf05f0
commit 9458ebccfc
10 changed files with 185 additions and 4 deletions

View File

@@ -152,6 +152,7 @@ import android.telephony.SubscriptionManager;
import android.telephony.TelephonyManager;
import android.telephony.euicc.EuiccCardManager;
import android.telephony.euicc.EuiccManager;
import android.telephony.rcs.RcsManager;
import android.util.ArrayMap;
import android.util.Log;
import android.view.ContextThemeWrapper;
@@ -546,6 +547,14 @@ final class SystemServiceRegistry {
return new SubscriptionManager(ctx.getOuterContext());
}});
registerService(Context.TELEPHONY_RCS_SERVICE, RcsManager.class,
new CachedServiceFetcher<RcsManager>() {
@Override
public RcsManager createService(ContextImpl ctx) {
return new RcsManager();
}
});
registerService(Context.CARRIER_CONFIG_SERVICE, CarrierConfigManager.class,
new CachedServiceFetcher<CarrierConfigManager>() {
@Override

View File

@@ -4366,6 +4366,13 @@ public abstract class Context {
*/
public static final String APP_BINDING_SERVICE = "app_binding";
/**
* Use with {@link #getSystemService(String)} to retrieve an
* {@link android.telephony.rcs.RcsManager}.
* @hide
*/
public static final String TELEPHONY_RCS_SERVICE = "ircs";
/**
* Determine whether the given permission is allowed for a particular
* process and user ID running in the system.