Home | History | Annotate | Download | only in exchange

Lines Matching defs:mailboxId

274         public void syncMailboxStatus(long mailboxId, int statusCode, int progress)
278 cb.syncMailboxStatus(mailboxId, statusCode, progress);
303 public void startSync(long mailboxId) throws RemoteException {
307 Mailbox m = Mailbox.restoreMailboxWithId(syncManager, mailboxId);
316 cv, WHERE_MAILBOX_KEY, new String[] {Long.toString(mailboxId)});
318 syncManager.mSyncErrorMap.remove(mailboxId);
326 startManualSync(mailboxId, SyncManager.SYNC_SERVICE_START_SYNC, null);
329 public void stopSync(long mailboxId) throws RemoteException {
330 stopManualSync(mailboxId);
350 for (long mailboxId: syncErrorMap.keySet()) {
351 SyncError error = syncErrorMap.get(mailboxId);
353 Mailbox m = Mailbox.restoreMailboxWithId(syncManager, mailboxId);
357 deletedMailboxes.add(mailboxId);
363 for (long mailboxId: deletedMailboxes) {
364 syncErrorMap.remove(mailboxId);
881 for (long mailboxId : mSyncErrorMap.keySet()) {
882 Mailbox m = Mailbox.restoreMailboxWithId(this, mailboxId);
884 log("Mailbox " + mailboxId + " no longer exists");
886 SyncError error = mSyncErrorMap.get(mailboxId);
912 for (long mailboxId: mSyncErrorMap.keySet()) {
914 Mailbox m = Mailbox.restoreMailboxWithId(context, mailboxId);
916 releaseList.add(mailboxId);
921 SyncError error = mSyncErrorMap.get(mailboxId);
923 releaseList.add(mailboxId);
926 for (long mailboxId: releaseList) {
927 mSyncErrorMap.remove(mailboxId);
1500 long mailboxId =
1503 if (mailboxId != Mailbox.NO_MAILBOX) {
1509 Mailbox mailbox = Mailbox.restoreMailboxWithId(this, mailboxId);
1533 mResolver.update(ContentUris.withAppendedId(Mailbox.CONTENT_URI, mailboxId),
1709 for (long mailboxId: mServiceMap.keySet()) {
1710 Mailbox m = Mailbox.restoreMailboxWithId(this, mailboxId);
1716 AbstractSyncService svc = mServiceMap.get(mailboxId);
1750 for (Long mailboxId : mServiceMap.keySet()) {
1751 toStop.add(mailboxId);
1755 for (Long mailboxId : toStop) {
1756 AbstractSyncService svc = mServiceMap.get(mailboxId);
1764 releaseWakeLock(mailboxId);
1941 private void releaseMailbox(long mailboxId) {
1942 mServiceMap.remove(mailboxId);
1943 releaseWakeLock(mailboxId);
1950 for (long mailboxId: mServiceMap.keySet()) {
1951 Mailbox m = Mailbox.restoreMailboxWithId(this, mailboxId);
1953 deletedMailboxes.add(mailboxId);
1957 for (Long mailboxId: deletedMailboxes) {
1958 AbstractSyncService svc = mServiceMap.get(mailboxId);
1960 releaseMailbox(mailboxId);
1966 stopManualSync(mailboxId);
1969 releaseMailbox(mailboxId);
2136 static public void serviceRequest(long mailboxId, int reason) {
2137 serviceRequest(mailboxId, 5*SECONDS, reason);
2140 static public void serviceRequest(long mailboxId, long ms, int reason) {
2143 Mailbox m = Mailbox.restoreMailboxWithId(syncManager, mailboxId);
2150 AbstractSyncService service = syncManager.mServiceMap.get(mailboxId);
2155 startManualSync(mailboxId, reason, null);
2162 static public void serviceRequestImmediate(long mailboxId) {
2165 AbstractSyncService service = syncManager.mServiceMap.get(mailboxId);
2168 Mailbox m = Mailbox.restoreMailboxWithId(syncManager, mailboxId);
2184 long mailboxId = msg.mMailboxKey;
2185 AbstractSyncService service = syncManager.mServiceMap.get(mailboxId);
2188 service = startManualSync(mailboxId, SYNC_SERVICE_PART_REQUEST, req);
2199 * @param mailboxId
2202 static public int pingStatus(long mailboxId) {
2206 mailboxId) != null) {
2210 SyncError error = syncManager.mSyncErrorMap.get(mailboxId);
2221 static public AbstractSyncService startManualSync(long mailboxId, int reason, Request req) {
2225 if (syncManager.mServiceMap.get(mailboxId) == null) {
2226 syncManager.mSyncErrorMap.remove(mailboxId);
2227 Mailbox m = Mailbox.restoreMailboxWithId(syncManager, mailboxId);
2234 return syncManager.mServiceMap.get(mailboxId);
2238 static private void stopManualSync(long mailboxId) {
2242 AbstractSyncService svc = syncManager.mServiceMap.get(mailboxId);
2247 syncManager.releaseWakeLock(mailboxId);
2285 * @param mailboxId the id of the mailbox
2287 static public void removeFromSyncErrorMap(long mailboxId) {
2291 syncManager.mSyncErrorMap.remove(mailboxId);
2305 long mailboxId = svc.mMailboxId;
2307 SyncError syncError = errorMap.get(mailboxId);
2308 syncManager.releaseMailbox(mailboxId);
2315 errorMap.remove(mailboxId);
2323 Mailbox m = Mailbox.restoreMailboxWithId(syncManager, mailboxId);
2329 errorMap.put(mailboxId, syncManager.new SyncError(exitStatus, false));
2337 errorMap.put(mailboxId, syncManager.new SyncError(exitStatus, true));