Search in sources :

Example 1 with ITelecomService

use of com.android.internal.telecom.ITelecomService in project android_frameworks_base by ResurrectionRemix.

the class TelecomManager method dumpAnalytics.

/**
     * Dumps telecom analytics for uploading.
     *
     * @return
     * @hide
     */
@SystemApi
@RequiresPermission(Manifest.permission.DUMP)
public TelecomAnalytics dumpAnalytics() {
    ITelecomService service = getTelecomService();
    TelecomAnalytics result = null;
    if (service != null) {
        try {
            result = service.dumpCallAnalytics();
        } catch (RemoteException e) {
            Log.e(TAG, "Error dumping call analytics", e);
        }
    }
    return result;
}
Also used : ITelecomService(com.android.internal.telecom.ITelecomService) RemoteException(android.os.RemoteException) SystemApi(android.annotation.SystemApi) RequiresPermission(android.annotation.RequiresPermission)

Example 2 with ITelecomService

use of com.android.internal.telecom.ITelecomService in project android_frameworks_base by ResurrectionRemix.

the class TelecomManager method createManageBlockedNumbersIntent.

/**
     * Creates the {@link Intent} which can be used with {@link Context#startActivity(Intent)} to
     * launch the activity to manage blocked numbers.
     * <p> The activity will display the UI to manage blocked numbers only if
     * {@link android.provider.BlockedNumberContract#canCurrentUserBlockNumbers(Context)} returns
     * {@code true} for the current user.
     */
public Intent createManageBlockedNumbersIntent() {
    ITelecomService service = getTelecomService();
    Intent result = null;
    if (service != null) {
        try {
            result = service.createManageBlockedNumbersIntent();
        } catch (RemoteException e) {
            Log.e(TAG, "Error calling ITelecomService#createManageBlockedNumbersIntent", e);
        }
    }
    return result;
}
Also used : ITelecomService(com.android.internal.telecom.ITelecomService) Intent(android.content.Intent) RemoteException(android.os.RemoteException)

Example 3 with ITelecomService

use of com.android.internal.telecom.ITelecomService in project android_frameworks_base by DirtyUnicorns.

the class TelecomManager method createManageBlockedNumbersIntent.

/**
     * Creates the {@link Intent} which can be used with {@link Context#startActivity(Intent)} to
     * launch the activity to manage blocked numbers.
     * <p> The activity will display the UI to manage blocked numbers only if
     * {@link android.provider.BlockedNumberContract#canCurrentUserBlockNumbers(Context)} returns
     * {@code true} for the current user.
     */
public Intent createManageBlockedNumbersIntent() {
    ITelecomService service = getTelecomService();
    Intent result = null;
    if (service != null) {
        try {
            result = service.createManageBlockedNumbersIntent();
        } catch (RemoteException e) {
            Log.e(TAG, "Error calling ITelecomService#createManageBlockedNumbersIntent", e);
        }
    }
    return result;
}
Also used : ITelecomService(com.android.internal.telecom.ITelecomService) Intent(android.content.Intent) RemoteException(android.os.RemoteException)

Example 4 with ITelecomService

use of com.android.internal.telecom.ITelecomService in project android_frameworks_base by crdroidandroid.

the class TelecomManager method createManageBlockedNumbersIntent.

/**
     * Creates the {@link Intent} which can be used with {@link Context#startActivity(Intent)} to
     * launch the activity to manage blocked numbers.
     * <p> The activity will display the UI to manage blocked numbers only if
     * {@link android.provider.BlockedNumberContract#canCurrentUserBlockNumbers(Context)} returns
     * {@code true} for the current user.
     */
public Intent createManageBlockedNumbersIntent() {
    ITelecomService service = getTelecomService();
    Intent result = null;
    if (service != null) {
        try {
            result = service.createManageBlockedNumbersIntent();
        } catch (RemoteException e) {
            Log.e(TAG, "Error calling ITelecomService#createManageBlockedNumbersIntent", e);
        }
    }
    return result;
}
Also used : ITelecomService(com.android.internal.telecom.ITelecomService) Intent(android.content.Intent) RemoteException(android.os.RemoteException)

Example 5 with ITelecomService

use of com.android.internal.telecom.ITelecomService in project platform_frameworks_base by android.

the class TelecomManager method createManageBlockedNumbersIntent.

/**
     * Creates the {@link Intent} which can be used with {@link Context#startActivity(Intent)} to
     * launch the activity to manage blocked numbers.
     * <p> The activity will display the UI to manage blocked numbers only if
     * {@link android.provider.BlockedNumberContract#canCurrentUserBlockNumbers(Context)} returns
     * {@code true} for the current user.
     */
public Intent createManageBlockedNumbersIntent() {
    ITelecomService service = getTelecomService();
    Intent result = null;
    if (service != null) {
        try {
            result = service.createManageBlockedNumbersIntent();
        } catch (RemoteException e) {
            Log.e(TAG, "Error calling ITelecomService#createManageBlockedNumbersIntent", e);
        }
    }
    return result;
}
Also used : ITelecomService(com.android.internal.telecom.ITelecomService) Intent(android.content.Intent) RemoteException(android.os.RemoteException)

Aggregations

RemoteException (android.os.RemoteException)8 ITelecomService (com.android.internal.telecom.ITelecomService)8 RequiresPermission (android.annotation.RequiresPermission)4 SystemApi (android.annotation.SystemApi)4 Intent (android.content.Intent)4