Change IEmailService.sync to have two different forms
Change-Id: Id8e770154d6116b02746cbdfb8c7cdc9358398de
This commit is contained in:
parent
92a059ece4
commit
163323294e
|
@ -25,7 +25,9 @@ import android.os.RemoteException;
|
||||||
import com.android.emailcommon.Device;
|
import com.android.emailcommon.Device;
|
||||||
import com.android.emailcommon.TempDirectory;
|
import com.android.emailcommon.TempDirectory;
|
||||||
import com.android.emailcommon.mail.MessagingException;
|
import com.android.emailcommon.mail.MessagingException;
|
||||||
|
import com.android.emailcommon.provider.Account;
|
||||||
import com.android.emailcommon.provider.HostAuth;
|
import com.android.emailcommon.provider.HostAuth;
|
||||||
|
import com.android.emailcommon.provider.Mailbox;
|
||||||
import com.android.emailcommon.provider.Policy;
|
import com.android.emailcommon.provider.Policy;
|
||||||
import com.android.mail.utils.LogUtils;
|
import com.android.mail.utils.LogUtils;
|
||||||
|
|
||||||
|
@ -330,9 +332,13 @@ public class EmailServiceProxy extends ServiceProxy implements IEmailService {
|
||||||
}, "sendMail");
|
}, "sendMail");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void sync(final long accountId, final boolean updateFolderList,
|
public void syncFolders(final long accountId, final boolean updateFolderList,
|
||||||
final int mailboxType, final long[] folders) {}
|
final long[] folders) {}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void syncMailboxType(final long accountId, final boolean updateFolderList,
|
||||||
|
final int mailboxType) {}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IBinder asBinder() {
|
public IBinder asBinder() {
|
||||||
|
|
|
@ -32,7 +32,9 @@ interface IEmailService {
|
||||||
boolean background);
|
boolean background);
|
||||||
oneway void updateFolderList(long accountId);
|
oneway void updateFolderList(long accountId);
|
||||||
|
|
||||||
void sync(long accountId, boolean updateFolderList, int mailboxType, in long[] foldersToSync);
|
void syncFolders(long accountId, boolean updateFolderList, in long[] foldersToSync);
|
||||||
|
|
||||||
|
void syncMailboxType(long accountId, boolean updateFolderList, int mailboxType);
|
||||||
|
|
||||||
// Push-related functionality.
|
// Push-related functionality.
|
||||||
|
|
||||||
|
@ -43,6 +45,7 @@ interface IEmailService {
|
||||||
// TODO: Decouple this call from HostAuth (i.e. use a dedicated data structure, or just pass
|
// TODO: Decouple this call from HostAuth (i.e. use a dedicated data structure, or just pass
|
||||||
// the necessary strings directly).
|
// the necessary strings directly).
|
||||||
Bundle validate(in HostAuth hostauth);
|
Bundle validate(in HostAuth hostauth);
|
||||||
|
|
||||||
int searchMessages(long accountId, in SearchParams params, long destMailboxId);
|
int searchMessages(long accountId, in SearchParams params, long destMailboxId);
|
||||||
|
|
||||||
// PIM functionality (not strictly EAS specific).
|
// PIM functionality (not strictly EAS specific).
|
||||||
|
|
|
@ -398,8 +398,12 @@ public abstract class EmailServiceStub extends IEmailService.Stub implements IEm
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void sync(final long accountId, final boolean updateFolderList,
|
public void syncFolders(final long accountId, final boolean updateFolderList,
|
||||||
final int mailboxType, final long[] folders) {}
|
final long[] folders) {}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void syncMailboxType(final long accountId, final boolean updateFolderList,
|
||||||
|
final int mailboxType) {}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void sendMail(long accountId) throws RemoteException {
|
public void sendMail(long accountId) throws RemoteException {
|
||||||
|
|
|
@ -698,8 +698,13 @@ public class EmailServiceUtils {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void sync(final long accountId, final boolean updateFolderList,
|
public void syncFolders(final long accountId, final boolean updateFolderList,
|
||||||
final int mailboxType, final long[] folders) {
|
final long[] folders) {
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void syncMailboxType(final long accountId, final boolean updateFolderList,
|
||||||
|
final int mailboxType) {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue