Lines Matching refs:status

36  * default behavior if other message creator does not handle the status.
49 Context context, VoicemailStatus status, final VoicemailStatusReader statusReader) {
51 new VoicemailTosMessageCreator(context, status, statusReader).maybeCreateTosMessage();
56 if (Status.CONFIGURATION_STATE_OK == status.configurationState
57 && Status.DATA_CHANNEL_STATE_OK == status.dataChannelState
58 && Status.NOTIFICATION_CHANNEL_STATE_OK == status.notificationChannelState) {
59 return checkQuota(context, status, statusReader);
63 if (Status.CONFIGURATION_STATE_CONFIGURING == status.configurationState
64 && Status.DATA_CHANNEL_STATE_OK == status.dataChannelState
65 && Status.NOTIFICATION_CHANNEL_STATE_OK == status.notificationChannelState) {
72 if (Status.NOTIFICATION_CHANNEL_STATE_NO_CONNECTION == status.notificationChannelState) {
73 return createNoSignalMessage(context, status);
76 if (Status.CONFIGURATION_STATE_FAILED == status.configurationState) {
81 VoicemailErrorMessage.createRetryAction(context, status));
84 if (Status.DATA_CHANNEL_STATE_NO_CONNECTION == status.dataChannelState) {
89 VoicemailErrorMessage.createRetryAction(context, status));
92 if (Status.DATA_CHANNEL_STATE_NO_CONNECTION_CELLULAR_REQUIRED == status.dataChannelState) {
97 VoicemailErrorMessage.createRetryAction(context, status));
100 if (Status.DATA_CHANNEL_STATE_BAD_CONFIGURATION == status.dataChannelState) {
105 VoicemailErrorMessage.createRetryAction(context, status));
108 if (Status.DATA_CHANNEL_STATE_COMMUNICATION_ERROR == status.dataChannelState) {
113 VoicemailErrorMessage.createRetryAction(context, status));
116 if (Status.DATA_CHANNEL_STATE_SERVER_ERROR == status.dataChannelState) {
121 VoicemailErrorMessage.createRetryAction(context, status));
124 if (Status.DATA_CHANNEL_STATE_SERVER_CONNECTION_ERROR == status.dataChannelState) {
129 VoicemailErrorMessage.createRetryAction(context, status));
133 // sometimes give status mixed from multiple SIMs. There's no meaningful message to be displayed
135 LogUtil.e("OmtpVoicemailMessageCreator.create", "Unhandled status: " + status);
141 Context context, VoicemailStatus status, VoicemailStatusReader statusReader) {
142 if (status.quotaOccupied != Status.QUOTA_UNAVAILABLE
143 && status.quotaTotal != Status.QUOTA_UNAVAILABLE) {
144 return createInboxErrorMessage(context, status, statusReader);
152 Context context, VoicemailStatus status, VoicemailStatusReader statusReader) {
154 float voicemailOccupiedFraction = (float) status.quotaOccupied / (float) status.quotaTotal;
162 PhoneAccountHandle phoneAccountHandle = status.getPhoneAccountHandle();
216 status,
240 VoicemailStatus status,
255 status,
269 Context context, VoicemailStatus status) {
273 if (Status.CONFIGURATION_STATE_OK == status.configurationState) {
274 if (Status.DATA_CHANNEL_STATE_NO_CONNECTION_CELLULAR_REQUIRED == status.dataChannelState) {
280 if (status.isAirplaneMode) {
285 actions.add(VoicemailErrorMessage.createSyncAction(context, status));
289 if (status.isAirplaneMode) {
295 actions.add(VoicemailErrorMessage.createRetryAction(context, status));
298 if (status.isAirplaneMode) {