Home
last modified time | relevance | path

Searched refs:DraftMessageData (Results 1 – 20 of 20) sorted by relevance

/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DComposeMessageView.java48 import com.android.messaging.datamodel.data.DraftMessageData;
49 import com.android.messaging.datamodel.data.DraftMessageData.CheckDraftForSendTask;
50 import com.android.messaging.datamodel.data.DraftMessageData.CheckDraftTaskCallback;
51 import com.android.messaging.datamodel.data.DraftMessageData.DraftMessageDataListener;
83 DraftMessageData.DraftMessageSubscriptionDataProvider {
124 private final Binding<DraftMessageData> mBinding;
166 public void bind(final DraftMessageData data, final IComposeMessageViewHost host) { in bind()
339 ImmutableBindingRef<DraftMessageData> getDraftDataModel() { in getDraftDataModel()
390 public void onDraftChecked(DraftMessageData data, int result) { in sendMessageInternal()
471 public void onDraftChanged(final DraftMessageData data, final int changeFlags) { in onDraftChanged()
[all …]
DConversationInputManager.java30 import com.android.messaging.datamodel.data.DraftMessageData;
31 import com.android.messaging.datamodel.data.DraftMessageData.DraftMessageSubscriptionDataProvider;
89 private final ImmutableBindingRef<DraftMessageData> mDraftDataModel;
124 final BindingBase<DraftMessageData> draftDataModel, in ConversationInputManager()
DConversationFragment.java77 import com.android.messaging.datamodel.data.DraftMessageData;
78 import com.android.messaging.datamodel.data.DraftMessageData.DraftMessageDataListener;
206 private ImmutableBindingRef<DraftMessageData> mDraftMessageDataModel;
1638 public void onDraftChanged(final DraftMessageData data, final int changeFlags) { in onDraftChanged()
1643 (DraftMessageData.WIDGET_CHANGED | DraftMessageData.ATTACHMENTS_CHANGED)) { in onDraftChanged()
1649 public void onDraftAttachmentLimitReached(final DraftMessageData data) { in onDraftAttachmentLimitReached()
1660 return DraftMessageData.ATTACHMENTS_CHANGED; in getAttachmentsClearedFlags()
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DDraftMessageData.java49 public class DraftMessageData extends BindableData implements ReadDraftDataActionListener { class
56 void onDraftChanged(DraftMessageData data, int changeFlags); in onDraftChanged()
59 void onDraftAttachmentLimitReached(DraftMessageData data); in onDraftAttachmentLimitReached()
118 public DraftMessageData(final String conversationId) { in DraftMessageData() method in DraftMessageData
393 final BindingBase<DraftMessageData> binding) { in addPendingAttachment()
543 public boolean loadFromStorage(final BindingBase<DraftMessageData> binding, in loadFromStorage()
568 public void saveToStorage(final BindingBase<DraftMessageData> binding) { in saveToStorage()
573 private void saveToStorageInternal(final BindingBase<DraftMessageData> binding) { in saveToStorageInternal()
592 public MessageData prepareMessageForSending(final BindingBase<DraftMessageData> binding) { in prepareMessageForSending()
700 final CheckDraftTaskCallback callback, final Binding<DraftMessageData> binding) { in checkDraftForAction()
[all …]
DPendingAttachmentData.java93 public void loadAttachmentForDraft(final DraftMessageData draftMessageData, in loadAttachmentForDraft()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/conversation/
DComposeMessageViewTest.java34 import com.android.messaging.datamodel.data.DraftMessageData;
35 import com.android.messaging.datamodel.data.DraftMessageData.CheckDraftForSendTask;
36 import com.android.messaging.datamodel.data.DraftMessageData.CheckDraftTaskCallback;
60 @Mock protected DraftMessageData mockDraftMessageData;
111 Matchers.<BindingBase<DraftMessageData>>any())) in testSend()
124 Mockito.<Binding<DraftMessageData>>any()); in testSend()
136 view.onDraftChanged(mockDraftMessageData, DraftMessageData.ALL_CHANGED); in testSend()
162 Matchers.<BindingBase<DraftMessageData>>any())) in testNotDefaultSms()
176 view.onDraftChanged(mockDraftMessageData, DraftMessageData.ALL_CHANGED); in testNotDefaultSms()
DConversationInputManagerTest.java30 import com.android.messaging.datamodel.data.DraftMessageData;
52 @Mock protected DraftMessageData mockDraftMessageData;
87 final Binding<DraftMessageData> draftBinding = BindingBase.createBinding(this); in initNewInputManager()
DConversationFragmentTest.java31 import com.android.messaging.datamodel.data.DraftMessageData;
55 @Mock protected DraftMessageData mockDraftMessageData;
/packages/apps/Messaging/src/com/android/messaging/ui/attachmentchooser/
DAttachmentChooserFragment.java37 import com.android.messaging.datamodel.data.DraftMessageData;
38 import com.android.messaging.datamodel.data.DraftMessageData.DraftMessageDataListener;
59 Binding<DraftMessageData> mBinding = BindingBase.createBinding(this);
118 public void onDraftChanged(final DraftMessageData data, final int changeFlags) { in onDraftChanged()
120 if ((changeFlags & DraftMessageData.ATTACHMENTS_CHANGED) == in onDraftChanged()
121 DraftMessageData.ATTACHMENTS_CHANGED) { in onDraftChanged()
127 public void onDraftAttachmentLimitReached(final DraftMessageData data) { in onDraftAttachmentLimitReached()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DGalleryGridView.java33 import com.android.messaging.datamodel.data.DraftMessageData;
36 import com.android.messaging.datamodel.data.DraftMessageData.DraftMessageDataListener;
70 private ImmutableBindingRef<DraftMessageData> mDraftMessageDataModel;
81 public void setDraftMessageDataModel(final BindingBase<DraftMessageData> dataModel) { in setDraftMessageDataModel()
184 public void onDraftChanged(final DraftMessageData data, final int changeFlags) { in onDraftChanged()
188 if ((changeFlags & DraftMessageData.ATTACHMENTS_CHANGED) == in onDraftChanged()
189 DraftMessageData.ATTACHMENTS_CHANGED) { in onDraftChanged()
195 public void onDraftAttachmentLimitReached(final DraftMessageData data) { in onDraftAttachmentLimitReached()
DMediaPicker.java44 import com.android.messaging.datamodel.data.DraftMessageData;
48 import com.android.messaging.datamodel.data.DraftMessageData.DraftMessageSubscriptionDataProvider;
169 private ImmutableBindingRef<DraftMessageData> mDraftMessageDataModel;
329 public void setDraftMessageDataModel(final BindingBase<DraftMessageData> draftBinding) { in setDraftMessageDataModel()
333 public ImmutableBindingRef<DraftMessageData> getDraftMessageDataModel() { in getDraftMessageDataModel()
DMediaChooser.java33 import com.android.messaging.datamodel.data.DraftMessageData.DraftMessageSubscriptionDataProvider;
DAudioRecordView.java36 import com.android.messaging.datamodel.data.DraftMessageData.DraftMessageSubscriptionDataProvider;
DCameraManager.java40 import com.android.messaging.datamodel.data.DraftMessageData.DraftMessageSubscriptionDataProvider;
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/
DFakeDataModel.java35 import com.android.messaging.datamodel.data.DraftMessageData;
64 private DraftMessageData mDraftMessageData;
125 public FakeDataModel withDraftMessageData(final DraftMessageData draftMessageData) { in withDraftMessageData()
213 public DraftMessageData createDraftMessageData(String conversationId) { in createDraftMessageData()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/
DMediaPickerTest.java29 import com.android.messaging.datamodel.data.DraftMessageData;
39 @Mock protected DraftMessageData mMockDraftMessageData;
73 final Binding<DraftMessageData> draftBinding = BindingBase.createBinding(this); in initFragment()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/attachmentchooser/
DAttachmentChooserFragmentTest.java26 import com.android.messaging.datamodel.data.DraftMessageData;
57 @Mock protected DraftMessageData mockDraftMessageData;
133 fragment.onDraftChanged(mockDraftMessageData, DraftMessageData.ALL_CHANGED); in loadWith()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DDataModelImpl.java37 import com.android.messaging.datamodel.data.DraftMessageData;
163 public DraftMessageData createDraftMessageData(String conversationId) { in createDraftMessageData()
164 return new DraftMessageData(conversationId); in createDraftMessageData()
DDataModel.java37 import com.android.messaging.datamodel.data.DraftMessageData;
111 public abstract DraftMessageData createDraftMessageData(String conversationId); in createDraftMessageData()
/packages/apps/Messaging/src/com/android/messaging/ui/
DAttachmentPreview.java34 import com.android.messaging.datamodel.data.DraftMessageData;
148 public boolean onAttachmentsChanged(final DraftMessageData draftMessageData) { in onAttachmentsChanged()