Lines Matching defs:id
396 private static String getName(Map<Integer,String> nameMap, long id) {
398 if ((id >>> 32) == 0) {
399 name = nameMap.get(Integer.valueOf((int)id));
402 name = "Unknown 0x" + toFullHexString(id);
415 public static String getMechanismName(long id) {
416 return getName(mechNames, id);
423 public static String getKeyName(long id) {
424 return getName(keyNames, id);
431 public static String getAttributeName(long id) {
432 return getName(attributeNames, id);
439 public static String getObjectClassName(long id) {
440 return getName(objectClassNames, id);
579 Map<String,Integer> idMap, long id, String name) {
580 if ((id >>> 32) != 0) {
581 throw new AssertionError("Id has high bits set: " + id + ", " + name);
583 Integer intId = Integer.valueOf((int)id);
585 throw new AssertionError("Duplicate id: " + id + ", " + name);
588 throw new AssertionError("Duplicate name: " + id + ", " + name);
592 private static void addMech(long id, String name) {
593 addMapping(mechNames, mechIds, id, name);
596 private static void addKeyType(long id, String name) {
597 addMapping(keyNames, keyIds, id, name);
600 private static void addAttribute(long id, String name) {
601 addMapping(attributeNames, attributeIds, id, name);
604 private static void addObjectClass(long id, String name) {
605 addMapping(objectClassNames, objectClassIds, id, name);