Lines Matching defs:COMPOSE
17 package com.android.mail.compose;
91 import com.android.mail.compose.AttachmentsView.AttachmentAddedOrDeletedListener;
92 import com.android.mail.compose.AttachmentsView.AttachmentFailureException;
93 import com.android.mail.compose.FromAddressSpinner.OnAccountChangedListener;
94 import com.android.mail.compose.QuotedTextView.RespondInlineListener;
154 public static final int COMPOSE = -1;
160 // Integer extra holding one of the above compose action
380 public static void compose(Context launcher, Account account) {
381 launch(launcher, account, null, COMPOSE, null, null, null, null, null /* extraValues */);
388 launch(launcher, account, null, COMPOSE, toAddress, null, null, null,
397 launch(launcher, account, null, COMPOSE, null, null, null, subject, extraValues);
493 if (action == COMPOSE) {
515 // Change the title for accessibility so we announce "Compose" instead
518 setContentView(R.layout.compose);
543 action = savedState.getInt(EXTRA_ACTION, COMPOSE);
564 action = intent.getIntExtra(EXTRA_ACTION, COMPOSE);
575 "notification_action", "compose", getActionString(action), 0);
691 case UIProvider.DraftType.COMPOSE:
693 action = COMPOSE;
802 // This is the Account attached to the widget compose intent.
859 // used to open the draft message in Compose.
898 case UIProvider.DraftType.COMPOSE:
900 action = COMPOSE;
911 case COMPOSE:
974 // When the user exits the compose view, see if this draft needs saving.
981 // because that method can be invoked many times in a single compose session.)
1041 // We have no accounts so there is nothing to compose, and therefore, nothing to save.
1111 int mode = ComposeActivity.COMPOSE;
1209 if (action == EDIT_DRAFT && mDraft.draftType == UIProvider.DraftType.COMPOSE) {
1210 action = COMPOSE;
1347 mScrollView = (ScrollView) findViewById(R.id.compose);
1493 if (mComposeMode == ComposeActivity.COMPOSE) {
1782 * Initialize the compose view from a String representing a mailTo uri.
1999 * Add attachment and update the compose area appropriately.
2253 if (action == ComposeActivity.COMPOSE) {
2370 * 1) If a user launches compose from within gmail, save is disabled
2378 * 3) If a user launches compose from another application and something
2418 "compose", 0);
3196 // is given to text/html in the compose window if it exists. In the future, we
3197 // should calculate the index for both since the user could choose to compose
3220 LogUtils.i(LOG_TAG, "[compose] SendOrSaveMessage [%s] posted (isSave: %s) - " +
3254 case ComposeActivity.COMPOSE:
3255 draftType = DraftType.COMPOSE;
3280 // Check if user is a monkey. Monkeys can compose and hit send
3452 case COMPOSE:
3481 if (mComposeMode == COMPOSE) {
3511 compose mode.
3945 findViewById(R.id.compose).setVisibility(View.VISIBLE);