private void setDefaultDetails(PhoneCallDetails details) {
   details.callTypes = new int[] {Calls.INCOMING_TYPE};
   details.countryIso = TEST_COUNTRY_ISO;
   details.date = TEST_DATE;
   details.duration = TEST_DURATION;
   details.geocode = TEST_GEOCODE;
 }
 /** Sets the phone call details with default values and the given number. */
 private void setPhoneCallDetailsWithNumberAndGeocode(
     String number, String formattedNumber, String geocodedLocation) {
   PhoneCallDetails details =
       getPhoneCallDetails(number, Calls.PRESENTATION_ALLOWED, formattedNumber);
   details.geocode = geocodedLocation;
   mHelper.setPhoneCallDetails(mViews, details);
 }
  /** Tests a case where the video call feature is not present. */
  public void testSetPhoneCallDetails_NoVideo() {
    PhoneCallDetails details = getPhoneCallDetails();
    details.features = 0;
    mHelper.setPhoneCallDetails(mViews, details);

    assertIsVideoCall(false);
  }
  /** Tests a case where the video call feature is present. */
  public void testSetPhoneCallDetails_Video() {
    PhoneCallDetails details = getPhoneCallDetails();
    details.features = Calls.FEATURES_VIDEO;
    mHelper.setPhoneCallDetails(mViews, details);

    assertIsVideoCall(true);
  }
 private void setCallDetailsHeader(String name) {
   PhoneCallDetails details = getPhoneCallDetails();
   details.name = name;
   mHelper.setCallDetailsHeader(mNameView, details);
 }
 /** Sets the phone call details with default values and the given call types using icons. */
 private void setPhoneCallDetailsWithCallTypeIcons(int... callTypes) {
   PhoneCallDetails details = getPhoneCallDetails();
   details.callTypes = callTypes;
   mHelper.setPhoneCallDetails(mViews, details);
 }
 /** Sets the phone call details with default values and the given date. */
 private void setPhoneCallDetailsWithDate(long date) {
   PhoneCallDetails details = getPhoneCallDetails();
   details.date = date;
   mHelper.setPhoneCallDetails(mViews, details);
 }
 /** Sets the phone call details with default values and the given number. */
 private void setPhoneCallDetailsWithNumber(
     String number, int presentation, String formattedNumber) {
   PhoneCallDetails details = getPhoneCallDetails(number, presentation, formattedNumber);
   details.callTypes = new int[] {Calls.VOICEMAIL_TYPE};
   mHelper.setPhoneCallDetails(mViews, details);
 }