Add sync to IEmailService.
This supports the EasService design.
Yes, I just removed a startSync function from this interface last month. No,
I didn't quite know at the time that I'd be adding one back. :)
Change-Id: I19d9c7838473d8982560764fdba0056cba03d132
(cherry picked from commit 4a5b11d650
)
This commit is contained in:
parent
70cb2878d7
commit
8103f960d0
@ -330,6 +330,10 @@ public class EmailServiceProxy extends ServiceProxy implements IEmailService {
|
||||
}, "sendMail");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void sync(final long accountId, final boolean updateFolderList,
|
||||
final int mailboxType, final long[] folders) {}
|
||||
|
||||
@Override
|
||||
public IBinder asBinder() {
|
||||
return null;
|
||||
|
@ -21,6 +21,7 @@ import com.android.emailcommon.provider.HostAuth;
|
||||
import com.android.emailcommon.provider.Account;
|
||||
import com.android.emailcommon.service.IEmailServiceCallback;
|
||||
import com.android.emailcommon.service.SearchParams;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
interface IEmailService {
|
||||
@ -31,6 +32,8 @@ interface IEmailService {
|
||||
boolean background);
|
||||
oneway void updateFolderList(long accountId);
|
||||
|
||||
void sync(long accountId, boolean updateFolderList, int mailboxType, in long[] foldersToSync);
|
||||
|
||||
// Push-related functionality.
|
||||
|
||||
// Notify the service that the push configuration has changed for an account.
|
||||
|
@ -394,6 +394,10 @@ public abstract class EmailServiceStub extends IEmailService.Stub implements IEm
|
||||
LogUtils.e(Logging.LOG_TAG, "pushModify invalid for account type for %d", accountId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void sync(final long accountId, final boolean updateFolderList,
|
||||
final int mailboxType, final long[] folders) {}
|
||||
|
||||
@Override
|
||||
public void sendMail(long accountId) throws RemoteException {
|
||||
sendMailImpl(mContext, accountId);
|
||||
|
@ -47,7 +47,6 @@ import android.provider.SyncStateContract;
|
||||
import android.text.TextUtils;
|
||||
|
||||
import com.android.email.R;
|
||||
import com.android.emailcommon.Api;
|
||||
import com.android.emailcommon.Logging;
|
||||
import com.android.emailcommon.provider.Account;
|
||||
import com.android.emailcommon.provider.EmailContent;
|
||||
@ -698,5 +697,11 @@ public class EmailServiceUtils {
|
||||
@Override
|
||||
public void pushModify(long accountId) throws RemoteException {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void sync(final long accountId, final boolean updateFolderList,
|
||||
final int mailboxType, final long[] folders) {
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user