Bug 775997 - Part 2/2: Android implementation. r=dougt
This commit is contained in:
@@ -91,17 +91,17 @@ public class GeckoAppShell
|
||||
|
||||
public static native void notifySmsReceived(String aSender, String aBody, int aMessageClass, long aTimestamp);
|
||||
public static native int saveMessageInSentbox(String aReceiver, String aBody, long aTimestamp);
|
||||
public static native void notifySmsSent(int aId, String aReceiver, String aBody, long aTimestamp, int aRequestId, long aProcessId);
|
||||
public static native void notifySmsSent(int aId, String aReceiver, String aBody, long aTimestamp, int aRequestId);
|
||||
public static native void notifySmsDelivery(int aId, int aDeliveryStatus, String aReceiver, String aBody, long aTimestamp);
|
||||
public static native void notifySmsSendFailed(int aError, int aRequestId, long aProcessId);
|
||||
public static native void notifyGetSms(int aId, int aDeliveryStatus, String aReceiver, String aSender, String aBody, long aTimestamp, int aRequestId, long aProcessId);
|
||||
public static native void notifyGetSmsFailed(int aError, int aRequestId, long aProcessId);
|
||||
public static native void notifySmsDeleted(boolean aDeleted, int aRequestId, long aProcessId);
|
||||
public static native void notifySmsDeleteFailed(int aError, int aRequestId, long aProcessId);
|
||||
public static native void notifyNoMessageInList(int aRequestId, long aProcessId);
|
||||
public static native void notifyListCreated(int aListId, int aMessageId, int aDeliveryStatus, String aReceiver, String aSender, String aBody, long aTimestamp, int aRequestId, long aProcessId);
|
||||
public static native void notifyGotNextMessage(int aMessageId, int aDeliveryStatus, String aReceiver, String aSender, String aBody, long aTimestamp, int aRequestId, long aProcessId);
|
||||
public static native void notifyReadingMessageListFailed(int aError, int aRequestId, long aProcessId);
|
||||
public static native void notifySmsSendFailed(int aError, int aRequestId);
|
||||
public static native void notifyGetSms(int aId, int aDeliveryStatus, String aReceiver, String aSender, String aBody, long aTimestamp, int aRequestId);
|
||||
public static native void notifyGetSmsFailed(int aError, int aRequestId);
|
||||
public static native void notifySmsDeleted(boolean aDeleted, int aRequestId);
|
||||
public static native void notifySmsDeleteFailed(int aError, int aRequestId);
|
||||
public static native void notifyNoMessageInList(int aRequestId);
|
||||
public static native void notifyListCreated(int aListId, int aMessageId, int aDeliveryStatus, String aReceiver, String aSender, String aBody, long aTimestamp, int aRequestId);
|
||||
public static native void notifyGotNextMessage(int aMessageId, int aDeliveryStatus, String aReceiver, String aSender, String aBody, long aTimestamp, int aRequestId);
|
||||
public static native void notifyReadingMessageListFailed(int aError, int aRequestId);
|
||||
public static native void onSurfaceTextureFrameAvailable(Object surfaceTexture, int id);
|
||||
|
||||
// A looper thread, accessed by GeckoAppShell.getHandler
|
||||
@@ -1700,12 +1700,12 @@ public class GeckoAppShell
|
||||
return SmsManager.getInstance().getNumberOfMessagesForText(aText);
|
||||
}
|
||||
|
||||
public static void sendMessage(String aNumber, String aMessage, int aRequestId, long aProcessId) {
|
||||
public static void sendMessage(String aNumber, String aMessage, int aRequestId) {
|
||||
if (SmsManager.getInstance() == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
SmsManager.getInstance().send(aNumber, aMessage, aRequestId, aProcessId);
|
||||
SmsManager.getInstance().send(aNumber, aMessage, aRequestId);
|
||||
}
|
||||
|
||||
public static int saveSentMessage(String aRecipient, String aBody, long aDate) {
|
||||
@@ -1716,36 +1716,36 @@ public class GeckoAppShell
|
||||
return SmsManager.getInstance().saveSentMessage(aRecipient, aBody, aDate);
|
||||
}
|
||||
|
||||
public static void getMessage(int aMessageId, int aRequestId, long aProcessId) {
|
||||
public static void getMessage(int aMessageId, int aRequestId) {
|
||||
if (SmsManager.getInstance() == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
SmsManager.getInstance().getMessage(aMessageId, aRequestId, aProcessId);
|
||||
SmsManager.getInstance().getMessage(aMessageId, aRequestId);
|
||||
}
|
||||
|
||||
public static void deleteMessage(int aMessageId, int aRequestId, long aProcessId) {
|
||||
public static void deleteMessage(int aMessageId, int aRequestId) {
|
||||
if (SmsManager.getInstance() == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
SmsManager.getInstance().deleteMessage(aMessageId, aRequestId, aProcessId);
|
||||
SmsManager.getInstance().deleteMessage(aMessageId, aRequestId);
|
||||
}
|
||||
|
||||
public static void createMessageList(long aStartDate, long aEndDate, String[] aNumbers, int aNumbersCount, int aDeliveryState, boolean aReverse, int aRequestId, long aProcessId) {
|
||||
public static void createMessageList(long aStartDate, long aEndDate, String[] aNumbers, int aNumbersCount, int aDeliveryState, boolean aReverse, int aRequestId) {
|
||||
if (SmsManager.getInstance() == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
SmsManager.getInstance().createMessageList(aStartDate, aEndDate, aNumbers, aNumbersCount, aDeliveryState, aReverse, aRequestId, aProcessId);
|
||||
SmsManager.getInstance().createMessageList(aStartDate, aEndDate, aNumbers, aNumbersCount, aDeliveryState, aReverse, aRequestId);
|
||||
}
|
||||
|
||||
public static void getNextMessageInList(int aListId, int aRequestId, long aProcessId) {
|
||||
public static void getNextMessageInList(int aListId, int aRequestId) {
|
||||
if (SmsManager.getInstance() == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
SmsManager.getInstance().getNextMessageInList(aListId, aRequestId, aProcessId);
|
||||
SmsManager.getInstance().getNextMessageInList(aListId, aRequestId);
|
||||
}
|
||||
|
||||
public static void clearMessageList(int aListId) {
|
||||
|
||||
Reference in New Issue
Block a user