resources/src/main/java/org/robolectric/res/android/ResTable_config.java
public final Map<Type, String> toStringParts() {
    Map<Type, String> result = new LinkedHashMap<>();  // Preserve order for #toString().
    result.put(Type.MCC, mcc != 0 ? "mcc" + mcc : "");
    result.put(Type.MNC, mnc != 0 ? "mnc" + mnc : "");
    result.put(Type.LANGUAGE_STRING, languageString());
    result.put(Type.LOCALE_SCRIPT_STRING, localeScriptString());
    result.put(Type.REGION_STRING, !regionString().isEmpty() ? "r" + regionString() : "");
    result.put(Type.LOCALE_VARIANT_STRING, localeVariantString());
    result.put(Type.SCREEN_LAYOUT_DIRECTION,
        getOrDefault(SCREENLAYOUT_LAYOUTDIR_VALUES, screenLayoutDirection(), ""));
    result.put(Type.SMALLEST_SCREEN_WIDTH_DP,
        smallestScreenWidthDp != 0 ? "sw" + smallestScreenWidthDp + "dp" : "");
    result.put(Type.SCREEN_WIDTH_DP, screenWidthDp != 0 ? "w" + screenWidthDp + "dp" : "");
    result.put(Type.SCREEN_HEIGHT_DP, screenHeightDp != 0 ? "h" + screenHeightDp + "dp" : "");
    result.put(Type.SCREEN_LAYOUT_SIZE,
        getOrDefault(SCREENLAYOUT_SIZE_VALUES, screenLayoutSize(), ""));
    result.put(Type.SCREEN_LAYOUT_LONG,
        getOrDefault(SCREENLAYOUT_LONG_VALUES, screenLayoutLong(), ""));
    result.put(Type.SCREEN_LAYOUT_ROUND,
        getOrDefault(SCREENLAYOUT_ROUND_VALUES, screenLayoutRound(), ""));
    result.put(Type.COLOR_MODE_HDR, getOrDefault(COLOR_MODE_HDR_VALUES, colorModeHdr(), ""));
    result.put(
        Type.COLOR_MODE_WIDE_COLOR_GAMUT,
        getOrDefault(COLOR_MODE_WIDE_COLOR_GAMUT_VALUES, colorModeWideColorGamut(), ""));
    result.put(Type.ORIENTATION, getOrDefault(ORIENTATION_VALUES, orientation, ""));
    result.put(Type.UI_MODE_TYPE, getOrDefault(UI_MODE_TYPE_VALUES, uiModeType(), ""));
    result.put(Type.UI_MODE_NIGHT, getOrDefault(UI_MODE_NIGHT_VALUES, uiModeNight(), ""));
    result.put(Type.DENSITY_DPI, getOrDefault(DENSITY_DPI_VALUES, density, density + "dpi"));
    result.put(Type.TOUCHSCREEN, getOrDefault(TOUCHSCREEN_VALUES, touchscreen, ""));
    result.put(Type.KEYBOARD_HIDDEN, getOrDefault(KEYBOARDHIDDEN_VALUES, keyboardHidden(), ""));
    result.put(Type.KEYBOARD, getOrDefault(KEYBOARD_VALUES, keyboard, ""));
    result.put(Type.NAVIGATION_HIDDEN,
        getOrDefault(NAVIGATIONHIDDEN_VALUES, navigationHidden(), ""));
    result.put(Type.NAVIGATION, getOrDefault(NAVIGATION_VALUES, navigation, ""));
    result.put(Type.SCREEN_SIZE,
        screenWidth != 0 || screenHeight != 0 ? screenWidth + "x" + screenHeight : "");

    String sdkVersion = "";
    if (this.sdkVersion != 0) {
      sdkVersion = "v" + this.sdkVersion;
      if (minorVersion != 0) {
        sdkVersion += "." + minorVersion;
      }
    }
    result.put(Type.SDK_VERSION, sdkVersion);
    return result;
  }
public final Map<Type, String> toStringParts() {
    Map<Type, String> result = new LinkedHashMap<>();  // Preserve order for #toString().
    result.put(Type.MCC, mcc != 0 ? "mcc" + mcc : "");
    result.put(Type.MNC, mnc != 0 ? "mnc" + mnc : "");
    result.put(Type.LANGUAGE_STRING, languageString());
    result.put(Type.LOCALE_SCRIPT_STRING, localeScriptString());
    result.put(Type.REGION_STRING, !regionString().isEmpty() ? "r" + regionString() : "");
    result.put(Type.LOCALE_VARIANT_STRING, localeVariantString());
    result.put(Type.SCREEN_LAYOUT_DIRECTION,
        getOrDefault(SCREENLAYOUT_LAYOUTDIR_VALUES, screenLayoutDirection(), ""));
    result.put(Type.SMALLEST_SCREEN_WIDTH_DP,
        smallestScreenWidthDp != 0 ? "sw" + smallestScreenWidthDp + "dp" : "");
    result.put(Type.SCREEN_WIDTH_DP, screenWidthDp != 0 ? "w" + screenWidthDp + "dp" : "");
    result.put(Type.SCREEN_HEIGHT_DP, screenHeightDp != 0 ? "h" + screenHeightDp + "dp" : "");
    result.put(Type.SCREEN_LAYOUT_SIZE,
        getOrDefault(SCREENLAYOUT_SIZE_VALUES, screenLayoutSize(), ""));
    result.put(Type.SCREEN_LAYOUT_LONG,
        getOrDefault(SCREENLAYOUT_LONG_VALUES, screenLayoutLong(), ""));
    result.put(Type.SCREEN_LAYOUT_ROUND,
        getOrDefault(SCREENLAYOUT_ROUND_VALUES, screenLayoutRound(), ""));
    result.put(Type.COLOR_MODE_HDR, getOrDefault(COLOR_MODE_HDR_VALUES, colorModeHdr(), ""));
    result.put(
        Type.COLOR_MODE_WIDE_COLOR_GAMUT,
        getOrDefault(COLOR_MODE_WIDE_COLOR_GAMUT_VALUES, colorModeWideColorGamut(), ""));
    result.put(Type.ORIENTATION, getOrDefault(ORIENTATION_VALUES, orientation, ""));
    result.put(Type.UI_MODE_TYPE, getOrDefault(UI_MODE_TYPE_VALUES, uiModeType(), ""));
    result.put(Type.UI_MODE_NIGHT, getOrDefault(UI_MODE_NIGHT_VALUES, uiModeNight(), ""));
    result.put(Type.DENSITY_DPI, getOrDefault(DENSITY_DPI_VALUES, density, density + "dpi"));
    result.put(Type.TOUCHSCREEN, getOrDefault(TOUCHSCREEN_VALUES, touchscreen, ""));
    result.put(Type.KEYBOARD_HIDDEN, getOrDefault(KEYBOARDHIDDEN_VALUES, keyboardHidden(), ""));
    result.put(Type.KEYBOARD, getOrDefault(KEYBOARD_VALUES, keyboard, ""));
    result.put(Type.NAVIGATION_HIDDEN,
        getOrDefault(NAVIGATIONHIDDEN_VALUES, navigationHidden(), ""));
    result.put(Type.NAVIGATION, getOrDefault(NAVIGATION_VALUES, navigation, ""));
    result.put(Type.SCREEN_SIZE,
        screenWidth != 0 || screenHeight != 0 ? screenWidth + "x" + screenHeight : "");

    String sdkVersion = "";
    if (this.sdkVersion != 0) {
      sdkVersion = "v" + this.sdkVersion;
      if (minorVersion != 0) {
        sdkVersion += "." + minorVersion;
      }
    }
    result.put(Type.SDK_VERSION, sdkVersion);
    return result;
  }
public final Map < Type , String > toStringParts ( ) { Map < Type , String > result = new LinkedHashMap <> ( ) ; // Preserve order for #toString(). result . put ( Type . MCC , mcc != 0 ? "mcc" + mcc : "" ) ; result . put ( Type . MNC , mnc != 0 ? "mnc" + mnc : "" ) ; result . put ( Type . LANGUAGE_STRING , languageString ( ) ) ; result . put ( Type . LOCALE_SCRIPT_STRING , localeScriptString ( ) ) ; result . put ( Type . REGION_STRING , ! regionString ( ) . isEmpty ( ) ? "r" + regionString ( ) : "" ) ; result . put ( Type . LOCALE_VARIANT_STRING , localeVariantString ( ) ) ; result . put ( Type . SCREEN_LAYOUT_DIRECTION , getOrDefault ( SCREENLAYOUT_LAYOUTDIR_VALUES , screenLayoutDirection ( ) , "" ) ) ; result . put ( Type . SMALLEST_SCREEN_WIDTH_DP , smallestScreenWidthDp != 0 ? "sw" + smallestScreenWidthDp + "dp" : "" ) ; result . put ( Type . SCREEN_WIDTH_DP , screenWidthDp != 0 ? "w" + screenWidthDp + "dp" : "" ) ; result . put ( Type . SCREEN_HEIGHT_DP , screenHeightDp != 0 ? "h" + screenHeightDp + "dp" : "" ) ; result . put ( Type . SCREEN_LAYOUT_SIZE , getOrDefault ( SCREENLAYOUT_SIZE_VALUES , screenLayoutSize ( ) , "" ) ) ; result . put ( Type . SCREEN_LAYOUT_LONG , getOrDefault ( SCREENLAYOUT_LONG_VALUES , screenLayoutLong ( ) , "" ) ) ; result . put ( Type . SCREEN_LAYOUT_ROUND , getOrDefault ( SCREENLAYOUT_ROUND_VALUES , screenLayoutRound ( ) , "" ) ) ; result . put ( Type . COLOR_MODE_HDR , getOrDefault ( COLOR_MODE_HDR_VALUES , colorModeHdr ( ) , "" ) ) ; result . put ( Type . COLOR_MODE_WIDE_COLOR_GAMUT , getOrDefault ( COLOR_MODE_WIDE_COLOR_GAMUT_VALUES , colorModeWideColorGamut ( ) , "" ) ) ; result . put ( Type . ORIENTATION , getOrDefault ( ORIENTATION_VALUES , orientation , "" ) ) ; result . put ( Type . UI_MODE_TYPE , getOrDefault ( UI_MODE_TYPE_VALUES , uiModeType ( ) , "" ) ) ; result . put ( Type . UI_MODE_NIGHT , getOrDefault ( UI_MODE_NIGHT_VALUES , uiModeNight ( ) , "" ) ) ; result . put ( Type . DENSITY_DPI , getOrDefault ( DENSITY_DPI_VALUES , density , density + "dpi" ) ) ; result . put ( Type . TOUCHSCREEN , getOrDefault ( TOUCHSCREEN_VALUES , touchscreen , "" ) ) ; result . put ( Type . KEYBOARD_HIDDEN , getOrDefault ( KEYBOARDHIDDEN_VALUES , keyboardHidden ( ) , "" ) ) ; result . put ( Type . KEYBOARD , getOrDefault ( KEYBOARD_VALUES , keyboard , "" ) ) ; result . put ( Type . NAVIGATION_HIDDEN , getOrDefault ( NAVIGATIONHIDDEN_VALUES , navigationHidden ( ) , "" ) ) ; result . put ( Type . NAVIGATION , getOrDefault ( NAVIGATION_VALUES , navigation , "" ) ) ; result . put ( Type . SCREEN_SIZE , screenWidth != 0 || screenHeight != 0 ? screenWidth + "x" + screenHeight : "" ) ; String sdkVersion = "" ; if ( this . sdkVersion != 0 ) { sdkVersion = "v" + this . sdkVersion ; if ( minorVersion != 0 ) { sdkVersion += "." + minorVersion ; } } result . put ( Type . SDK_VERSION , sdkVersion ) ; return result ; }
Returns a map of the configuration parts for {@link #toString}.

If a configuration part is not defined for this {@link ResTable_config}, its value
will be the empty string.
Returns a map of the configuration parts for { @link #toString } .