Home
last modified time | relevance | path

Searched refs:ReadDraftDataAction (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DReadDraftDataAction.java33 public class ReadDraftDataAction extends Action implements Parcelable { class
40 abstract void onReadDraftDataSucceeded(final ReadDraftDataAction action, in onReadDraftDataSucceeded()
44 abstract void onReadDraftDataFailed(final ReadDraftDataAction action, final Object data); in onReadDraftDataFailed()
55 final ReadDraftDataAction action = new ReadDraftDataAction(conversationId, in readDraftData()
64 private ReadDraftDataAction(final String conversationId, final MessageData incomingDraft, in ReadDraftDataAction() method in ReadDraftDataAction
131 mListener.onReadDraftDataFailed((ReadDraftDataAction) action, data); in onActionSucceeded()
133 mListener.onReadDraftDataSucceeded((ReadDraftDataAction) action, data, in onActionSucceeded()
145 private ReadDraftDataAction(final Parcel in) { in ReadDraftDataAction() method in ReadDraftDataAction
149 public static final Parcelable.Creator<ReadDraftDataAction> CREATOR
150 = new Parcelable.Creator<ReadDraftDataAction>() {
[all …]
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
DReadWriteDraftMessageActionTest.java40 import com.android.messaging.datamodel.action.ReadDraftDataAction.ReadDraftDataActionListener;
144 ReadDraftDataAction.readDraftData(conversationId, null, data, mockListener); in testReadDraft()
148 calls.get(0).action instanceof ReadDraftDataAction); in testReadDraft()
154 assertTrue(result instanceof ReadDraftDataAction.DraftData); in testReadDraft()
155 final ReadDraftDataAction.DraftData draft = (ReadDraftDataAction.DraftData) result; in testReadDraft()
203 ReadDraftDataAction.readDraftData(conversationId, null, data, mockListener); in testReadDraftForNewConversation()
207 calls.get(0).action instanceof ReadDraftDataAction); in testReadDraftForNewConversation()
213 assertTrue(result instanceof ReadDraftDataAction.DraftData); in testReadDraftForNewConversation()
214 final ReadDraftDataAction.DraftData draft = (ReadDraftDataAction.DraftData) result; in testReadDraftForNewConversation()
256 ReadDraftDataAction.readDraftData(conversationId, null, data, in testWriteAndReadDraft()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DDraftMessageData.java23 import com.android.messaging.datamodel.action.ReadDraftDataAction;
24 import com.android.messaging.datamodel.action.ReadDraftDataAction.ReadDraftDataActionListener;
25 import com.android.messaging.datamodel.action.ReadDraftDataAction.ReadDraftDataActionMonitor;
555 mMonitor = ReadDraftDataAction.readDraftData(mConversationId, in loadFromStorage()
610 public void onReadDraftDataSucceeded(final ReadDraftDataAction action, final Object data, in onReadDraftDataSucceeded()
630 public void onReadDraftDataFailed(final ReadDraftDataAction action, final Object data) { in onReadDraftDataFailed()