Lines Matching defs:type
28 // Please add newly defined type constants to the end of the list,
57 // Add more type constants here...
60 // We may want to add a user-defined type constant, such as
68 * @param type Type of the event. Must be any of the event types defined above,
72 public DrmInfoEvent(int uniqueId, int type, String message) {
73 super(uniqueId, type, message);
74 checkTypeValidity(type);
81 * @param type Type of the event. Must be any of the event types defined above,
87 public DrmInfoEvent(int uniqueId, int type, String message,
89 super(uniqueId, type, message, attributes);
90 checkTypeValidity(type);
94 * Check the validity of the given type.
95 * To overcome a design flaw, we need also accept the type constants
98 private void checkTypeValidity(int type) {
99 if (type < TYPE_ALREADY_REGISTERED_BY_ANOTHER_ACCOUNT ||
100 type > TYPE_RIGHTS_REMOVED) {
102 if (type != TYPE_ALL_RIGHTS_REMOVED &&
103 type != TYPE_DRM_INFO_PROCESSED) {
104 final String msg = "Unsupported type: " + type;