Searched refs:callDetail (Results 1 – 5 of 5) sorted by relevance
47 public static CallDetail fromTelecomCallDetail(@Nullable Call.Details callDetail) { in fromTelecomCallDetail() argument48 return new CallDetail(getNumber(callDetail), getDisconnectCause(callDetail), in fromTelecomCallDetail()49 getGatewayInfoOriginalAddress(callDetail), getConnectTimeMillis(callDetail)); in fromTelecomCallDetail()83 private static String getNumber(Call.Details callDetail) { in getNumber() argument85 if (callDetail == null) { in getNumber()89 GatewayInfo gatewayInfo = callDetail.getGatewayInfo(); in getNumber()92 } else if (callDetail.getHandle() != null) { in getNumber()93 number = callDetail.getHandle().getSchemeSpecificPart(); in getNumber()99 private static CharSequence getDisconnectCause(Call.Details callDetail) { in getDisconnectCause() argument100 DisconnectCause cause = callDetail == null ? null : callDetail.getDisconnectCause(); in getDisconnectCause()[all …]
151 CallDetail callDetail = mInCallViewModel.getPrimaryCallDetail().getValue(); in testGetPrimaryCallDetail() local152 assertThat(callDetail.getNumber()).isEqualTo(NUMBER); in testGetPrimaryCallDetail()153 assertThat(callDetail.getConnectTimeMillis()).isEqualTo(CONNECT_TIME_MILLIS); in testGetPrimaryCallDetail()154 assertThat(callDetail.getDisconnectCause()).isEqualTo(LABEL); in testGetPrimaryCallDetail()155 assertThat(callDetail.getGatewayInfoOriginalAddress()).isEqualTo(GATEWAY_ADDRESS); in testGetPrimaryCallDetail()
86 protected void bindUserProfileView(@Nullable CallDetail callDetail) { in bindUserProfileView() argument87 L.i(TAG, "bindUserProfileView: %s", callDetail); in bindUserProfileView()88 if (callDetail == null) { in bindUserProfileView()92 String number = callDetail.getNumber(); in bindUserProfileView()
82 private void updateProfile(@Nullable CallDetail callDetail) { in updateProfile() argument83 if (callDetail == null) { in updateProfile()91 String number = callDetail.getNumber(); in updateProfile()
117 CallDetail callDetail = CallDetail.fromTelecomCallDetail(call.getDetails()); in showInCallNotification() local118 String number = callDetail.getNumber(); in showInCallNotification()