List of usage examples for android.telecom Connection setCallerDisplayName
public final void setCallerDisplayName(String callerDisplayName, int presentation)
From source file:com.android.server.telecom.testapps.TestConnectionService.java
private void setAddress(Connection connection, Uri address) { connection.setAddress(address, TelecomManager.PRESENTATION_ALLOWED); if ("5551234".equals(address.getSchemeSpecificPart())) { connection.setCallerDisplayName("Hello World", TelecomManager.PRESENTATION_ALLOWED); }//from w w w. java2 s .co m }