Example usage for android.telecom TelecomManager PRESENTATION_RESTRICTED

List of usage examples for android.telecom TelecomManager PRESENTATION_RESTRICTED

Introduction

In this page you can find the example usage for android.telecom TelecomManager PRESENTATION_RESTRICTED.

Prototype

int PRESENTATION_RESTRICTED

To view the source code for android.telecom TelecomManager PRESENTATION_RESTRICTED.

Click Source Link

Document

Indicates that the address or number of a call is blocked by the other party.

Usage

From source file:com.android.incallui.ContactInfoCache.java

/**
 * Gets name strings based on some special presentation modes.
 *///from  w w w  .  ja  v a 2s .  c o m
private static String getPresentationString(Context context, int presentation) {
    String name = context.getString(R.string.unknown);
    if (presentation == TelecomManager.PRESENTATION_RESTRICTED) {
        name = context.getString(R.string.private_num);
    } else if (presentation == TelecomManager.PRESENTATION_PAYPHONE) {
        name = context.getString(R.string.payphone);
    }
    return name;
}