Lines Matching refs:reason
30 * the label and description. It also may contain a reason for the disconnect, which is intended for
35 /** Disconnected because of an unknown or unspecified reason. */
59 /** Disconnected for reason not described by other disconnect codes. */
99 * @param reason The reason for the disconnect.
101 public DisconnectCause(int code, String reason) {
102 this(code, null, null, reason, ToneGenerator.TONE_UNKNOWN);
111 * @param reason The reason for the disconnect.
113 public DisconnectCause(int code, CharSequence label, CharSequence description, String reason) {
114 this(code, label, description, reason, ToneGenerator.TONE_UNKNOWN);
123 * @param reason The reason for the disconnect.
126 public DisconnectCause(int code, CharSequence label, CharSequence description, String reason,
131 mDisconnectReason = reason;
136 * Returns the code for the reason for this disconnect.
145 * Returns a short label which explains the reason for the disconnect cause and is for display
158 * Returns a description which explains the reason for the disconnect cause and is for display
172 * Returns an explanation of the reason for the disconnect. This is not intended for display to
175 * @return The disconnect reason.
196 String reason = source.readString();
198 return new DisconnectCause(code, label, description, reason, tone);
287 String reason = mDisconnectReason == null ? "" : mDisconnectReason;
291 + " Reason: (" + reason + ")"