Lines Matching refs:type
116 * @throws IllegalArgumentException if its type is used by DTMF.
123 if (codec.type == mDtmfType) {
124 throw new IllegalArgumentException("The type is used by DTMF");
130 * Returns the RTP payload type for dual-tone multi-frequency (DTMF) digits,
140 * Sets the RTP payload type for dual-tone multi-frequency (DTMF) digits.
143 * RTP payload type for DTMF is assigned dynamically, so it must be in the
145 * the previous assigned type. This method cannot be called when the stream
148 * @param type The RTP payload type to be used or {@code -1} to disable it.
149 * @throws IllegalArgumentException if the type is invalid or used by codec.
153 public void setDtmfType(int type) {
157 if (type != -1) {
158 if (type < 96 || type > 127) {
159 throw new IllegalArgumentException("Invalid type");
161 if (mCodec != null && type == mCodec.type) {
162 throw new IllegalArgumentException("The type is used by codec");
165 mDtmfType = type;