public static int getTypeIdentifier(int resId) {
    return (resId & 0x00FF0000) >>> 16;
  }
@Test
  public void testGetTypeIdentifier() {
    assertThat(ResourceIds.getTypeIdentifier(0x01019876)).isEqualTo(0x01);
    assertThat(ResourceIds.getTypeIdentifier(0x7F781234)).isEqualTo(0x78);
  }