/packages/apps/Exchange/tests/src/com/android/exchange/provider/ |
D | MailboxUtilitiesTests.java | 66 if (mAccount != null && mAccount.mId > 0) { in tearDown() 68 ContentUris.withAppendedId(Account.CONTENT_URI, mAccount.mId), null, null); in tearDown() 75 Mailbox box1 = EmailContentSetupUtils.setupMailbox("box1", mAccount.mId, true, in brokentestSetupParentKeyAndFlag() 77 Mailbox box2 = EmailContentSetupUtils.setupMailbox("box2", mAccount.mId, true, in brokentestSetupParentKeyAndFlag() 79 Mailbox box3 = EmailContentSetupUtils.setupMailbox("box3", mAccount.mId, true, in brokentestSetupParentKeyAndFlag() 81 Mailbox box4 = EmailContentSetupUtils.setupMailbox("box4", mAccount.mId, true, in brokentestSetupParentKeyAndFlag() 83 Mailbox box5 = EmailContentSetupUtils.setupMailbox("box5", mAccount.mId, true, in brokentestSetupParentKeyAndFlag() 91 String accountSelector = MailboxColumns.ACCOUNT_KEY + " IN (" + mAccount.mId + ")"; in brokentestSetupParentKeyAndFlag() 95 box1 = Mailbox.restoreMailboxWithId(mProviderContext, box1.mId); in brokentestSetupParentKeyAndFlag() 96 box2 = Mailbox.restoreMailboxWithId(mProviderContext, box2.mId); in brokentestSetupParentKeyAndFlag() [all …]
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
D | ProviderTests.java | 172 b.mId, in createMessage() 193 long account1Id = account1.mId; in testAccountSave() 212 long account1Id = account1.mId; in testAccountSaveHostAuth() 318 return Account.CONTENT_URI.buildUpon().appendEncodedPath("" + account.mId).build(); in getEclairStyleShortcutUri() 332 assertEquals("eas", Account.getProtocol(mMockContext, account1.mId)); in testGetProtocol() 338 assertNull(Account.getProtocol(mMockContext, account2.mId)); in testGetProtocol() 348 assertTrue(Account.isValidId(mMockContext, account1.mId)); in testAccountIsValidId() 349 assertTrue(Account.isValidId(mMockContext, account2.mId)); in testAccountIsValidId() 409 long account1Id = account1.mId; in testMessageSave() 411 long box1Id = box1.mId; in testMessageSave() [all …]
|
D | AttachmentProviderTests.java | 94 Uri attachment1Uri = AttachmentUtilities.getAttachmentUri(account1.mId, in testQuery() 96 Uri attachment2Uri = AttachmentUtilities.getAttachmentUri(account1.mId, in testQuery() 98 Uri attachment3Uri = AttachmentUtilities.getAttachmentUri(account1.mId, in testQuery() 110 AttachmentUtilities.getAttachmentUri(account1.mId, attachment1Id).toString()); in testQuery() 117 AttachmentUtilities.getAttachmentUri(account1.mId, attachment2Id).toString()); in testQuery() 124 AttachmentUtilities.getAttachmentUri(account1.mId, attachment3Id).toString()); in testQuery() 129 attachment2Uri = AttachmentUtilities.getAttachmentUri(account1.mId, attachment2Id); in testQuery() 145 attachment3Uri = AttachmentUtilities.getAttachmentUri(account1.mId, attachment3Id); in testQuery() 162 Message m = ProviderTestUtils.setupMessage("1", b.mAccountKey, b.mId, true, false, c, false, in createMessage() 176 "box1", a1.mId, true, mMockContext, Mailbox.TYPE_INBOX); in testInboxQuery() [all …]
|
D | PolicyTests.java | 84 assertEquals(account1.mId, Policy.getAccountIdWithPolicyKey(mMockContext, in testGetAccountIdWithPolicyKey() 86 assertEquals(account2.mId, Policy.getAccountIdWithPolicyKey(mMockContext, in testGetAccountIdWithPolicyKey() 120 att.mAccountKey = acct.mId; in setupSimpleAttachment() 128 Mailbox box = ProviderTestUtils.setupMailbox("box1", acct.mId, true, mMockContext); in testSetAttachmentFlagsForNewPolicy() 129 Message msg1 = ProviderTestUtils.setupMessage("message1", acct.mId, box.mId, false, false, in testSetAttachmentFlagsForNewPolicy() 138 Message msg2 = ProviderTestUtils.setupMessage("message2", acct.mId, box.mId, false, false, in testSetAttachmentFlagsForNewPolicy() 166 att2 = Attachment.restoreAttachmentWithId(mMockContext, att2.mId); in testSetAttachmentFlagsForNewPolicy() 168 att3 = Attachment.restoreAttachmentWithId(mMockContext, att3.mId); in testSetAttachmentFlagsForNewPolicy() 179 att4 = Attachment.restoreAttachmentWithId(mMockContext, att4.mId); in testSetAttachmentFlagsForNewPolicy()
|
/packages/apps/Email/tests/src/com/android/emailcommon/provider/ |
D | MailboxTests.java | 83 "1", b.mAccountKey, b.mId, true, false, c, starred, read); in createMessage() 100 long account1Id = account1.mId; in testSave() 102 long box1Id = box1.mId; in testSave() 116 long account1Id = account1.mId; in testDelete() 118 long box1Id = box1.mId; in testDelete() 120 long box2Id = box2.mId; in testDelete() 150 Mailbox bi = ProviderTestUtils.setupMailbox("b1", a.mId, true, c, Mailbox.TYPE_INBOX); in testGetMailboxType() 151 Mailbox bm = ProviderTestUtils.setupMailbox("b2", a.mId, true, c, Mailbox.TYPE_MAIL); in testGetMailboxType() 153 assertEquals(Mailbox.TYPE_INBOX, Mailbox.getMailboxType(c, bi.mId)); in testGetMailboxType() 154 assertEquals(Mailbox.TYPE_MAIL, Mailbox.getMailboxType(c, bm.mId)); in testGetMailboxType() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppService.java | 475 mShares.get(arrayPos).mId + " @ " + arrayPos); in run() 503 arrayId = mShares.get(arrayPos).mId; in run() 588 Log.v(TAG, "ID : " + info.mId); in insertShare() 609 Constants.updateShareStatus(this, info.mId, BluetoothShare.STATUS_UNKNOWN_ERROR); in insertShare() 627 Log.e(TAG, "Can't open file for OUTBOUND info " + info.mId); in insertShare() 628 Constants.updateShareStatus(this, info.mId, BluetoothShare.STATUS_BAD_REQUEST); in insertShare() 635 newBatch.mId = mBatchId; in insertShare() 639 if (V) Log.v(TAG, "Service create new Batch " + newBatch.mId in insertShare() 640 + " for OUTBOUND info " + info.mId); in insertShare() 643 if (V) Log.v(TAG, "Service create new Batch " + newBatch.mId in insertShare() [all …]
|
D | BluetoothOppTransfer.java | 124 return mBatch.mId; in getBatchId() 175 if (V) Log.v(TAG, "receive MSG_SHARE_COMPLETE for info " + info.mId); in handleMessage() 181 if (V) Log.v(TAG, "continue session for info " + mCurrentShare.mId + in handleMessage() 182 " from batch " + mBatch.mId); in handleMessage() 186 if (V) Log.v(TAG, "Batch " + mBatch.mId + " is done"); in handleMessage() 197 if (V) Log.v(TAG, "receive MSG_SESSION_COMPLETE for batch " + mBatch.mId); in handleMessage() 207 if (V) Log.v(TAG, "receive MSG_SESSION_ERROR for batch " + mBatch.mId); in handleMessage() 216 if (V) Log.v(TAG, "receive MSG_SHARE_INTERRUPTED for batch " + mBatch.mId); in handleMessage() 240 if (V) Log.v(TAG, "receive MSG_CONNECT_TIMEOUT for batch " + mBatch.mId); in handleMessage() 264 nm.cancel(mCurrentShare.mId); in handleMessage() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
D | ActionBatch.java | 117 mWordList.mId, mWordList.mVersion); in execute() 124 MetadataDbHelper.markEntryAsAvailable(db, mWordList.mId, mWordList.mVersion); in execute() 127 Log.e(TAG, "Unexpected state of the word list '" + mWordList.mId + "' : " + status in execute() 173 mWordList.mId, mWordList.mVersion); in execute() 240 mWordList.mId, mWordList.mVersion); in execute() 244 Log.e(TAG, "Unexpected state of the word list '" + mWordList.mId + " : " + status in execute() 248 MetadataDbHelper.markEntryAsEnabled(db, mWordList.mId, mWordList.mVersion); in execute() 275 mWordList.mId, mWordList.mVersion); in execute() 279 MetadataDbHelper.markEntryAsDisabled(db, mWordList.mId, mWordList.mVersion); in execute() 282 Log.e(TAG, "Unexpected state of the word list '" + mWordList.mId + "' : " in execute() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapEmailSettingsItem.java | 35 private String mId; field in BluetoothMapEmailSettingsItem 44 this.mId = id; in BluetoothMapEmailSettingsItem() 51 if(mId != null) { in getAccountId() 52 return Long.parseLong(mId); in getAccountId() 60 if(!other.mId.equals(this.mId)){ in compareTo() 61 if(V) Log.d(TAG, "Wrong id : " + this.mId + " vs " + other.mId); in compareTo() 87 result = prime * result + ((mId == null) ? 0 : mId.hashCode()); in hashCode() 105 if (mId == null) { in equals() 106 if (other.mId != null) in equals() 108 } else if (!mId.equals(other.mId)) in equals() [all …]
|
/packages/apps/Email/tests/src/com/android/email/ |
D | SecurityPolicyTests.java | 219 assertEquals(account.mPolicyKey, policy.mId); in assertAccountPolicyConsistent() 222 Policy.getAccountIdWithPolicyKey(mMockContext, policy.mId)); in assertAccountPolicyConsistent() 236 long accountId = account.mId; in testSettingAccountPolicy() 241 long oldKey = assertAccountPolicyConsistent(account.mId, 0); in testSettingAccountPolicy() 246 oldKey = assertAccountPolicyConsistent(account.mId, oldKey); in testSettingAccountPolicy() 283 Account a2a = Account.restoreAccountWithId(mMockContext, a2.mId); in testSetClearHoldFlag() 291 Account a2b = Account.restoreAccountWithId(mMockContext, a2.mId); in testSetClearHoldFlag() 319 Account a1a = Account.restoreAccountWithId(mMockContext, a1.mId); in testDisableAdmin() 322 Account a2a = Account.restoreAccountWithId(mMockContext, a2.mId); in testDisableAdmin() 325 Account a3a = Account.restoreAccountWithId(mMockContext, a3.mId); in testDisableAdmin() [all …]
|
/packages/apps/Email/src/com/android/email/service/ |
D | ImapService.java | 174 nc.cancelLoginFailedNotification(account.mId); in synchronizeMailboxSynchronous() 181 nc.showLoginFailedNotificationSynchronous(account.mId, true /* incoming */); in synchronizeMailboxSynchronous() 217 final long mId; field in ImapService.LocalMessageInfo 226 mId = c.getLong(COLUMN_ID); in LocalMessageInfo() 316 context, localMessageInfo.mId); in downloadFlagAndEnvelope() 323 message, account.mId, mailbox.mId); in downloadFlagAndEnvelope() 328 unseenMessages.add(localMessage.mId); in downloadFlagAndEnvelope() 406 new String[] {String.valueOf(account.mId), String.valueOf(mailbox.mId)}, in synchronizeMailboxGeneric() 562 String.valueOf(account.mId), in synchronizeMailboxGeneric() 563 String.valueOf(mailbox.mId), in synchronizeMailboxGeneric() [all …]
|
D | AttachmentService.java | 200 mAttachmentId = attachment.mId; in DownloadRequest() 204 mMessageId = msg.mId; in DownloadRequest() 675 debugTrace("Attempting to download attachment #%d again.", attachment.mId); in run() 748 debugTrace("onChange() for Attachment: #%d", att.mId); in onChange() 749 DownloadRequest req = mDownloadQueue.findRequestById(att.mId); in onChange() 753 att.mId); in onChange() 762 if (mDownloadsInProgress.containsKey(att.mId)) { in onChange() 763 debugTrace("Attachment #%d was already in the queue", att.mId); in onChange() 768 LogUtils.d(LOG_TAG, "Attachment #%d is a new download request", att.mId); in onChange() 772 LogUtils.w(LOG_TAG, "Attachment #%d is not eligible for download", att.mId); in onChange() [all …]
|
D | Pop3Service.java | 114 nc.cancelLoginFailedNotification(account.mId); in synchronizeMailboxSynchronous() 121 nc.showLoginFailedNotificationSynchronous(account.mId, true /* incoming */); in synchronizeMailboxSynchronous() 143 final long mId; field in Pop3Service.LocalMessageInfo 148 mId = c.getLong(COLUMN_ID); in LocalMessageInfo() 247 String.valueOf(mailbox.mId) in synchronizePop3Mailbox() 272 String[] accountIdArgs = new String[] { Long.toString(account.mId) }; in synchronizePop3Mailbox() 273 long trashMailboxId = Mailbox.findMailboxOfType(context, account.mId, Mailbox.TYPE_TRASH); in synchronizePop3Mailbox() 392 new String[] {Long.toString(account.mId)}, null); in synchronizePop3Mailbox() 402 resolver.update(ContentUris.withAppendedId(Attachment.CONTENT_URI, att.mId), in synchronizePop3Mailbox() 409 Uri attUri = ContentUris.withAppendedId(Attachment.CONTENT_URI, att.mId); in synchronizePop3Mailbox() [all …]
|
D | EmailServiceStub.java | 104 EmailServiceUtils.getServiceInfoForAccount(mContext, account.mId); in requestSync() 301 inboxId = mailbox.mId; in updateFolderList() 319 new String[] { String.valueOf(account.mId) }, in updateFolderList() 429 final long outboxId = Mailbox.findMailboxOfType(context, account.mId, Mailbox.TYPE_OUTBOX); in sendMailImpl() 450 moveToSentValues.put(MessageColumns.MAILBOX_KEY, sentFolder.mId); in sendMailImpl() 475 nc.showLoginFailedNotificationSynchronous(account.mId, in sendMailImpl() 484 AttachmentUtilities.deleteAllCachedAttachmentFiles(context, account.mId, messageId); in sendMailImpl() 491 AttachmentUtilities.deleteAllAttachmentFiles(context, account.mId, in sendMailImpl() 502 AttachmentUtilities.deleteAllAttachmentFiles(context, account.mId, in sendMailImpl() 510 nc.cancelLoginFailedNotification(account.mId); in sendMailImpl() [all …]
|
/packages/apps/Calendar/tests/src/com/android/calendar/ |
D | AsyncQueryServiceTest.java | 67 private static int mId = 0; field in AsyncQueryServiceTest 113 work[index].token = ++mId; in testQuery() 114 work[index].cookie = ++mId; in testQuery() 142 work[index].token = ++mId; in testInsert() 143 work[index].cookie = ++mId; in testInsert() 146 work[index].values.put("key", ++mId); in testInsert() 149 work[index].result = Uri.parse(AUTHORITY_URI + "Result=" + ++mId); in testInsert() 168 work[index].token = ++mId; in testUpdate() 169 work[index].cookie = ++mId; in testUpdate() 170 work[index].uri = Uri.parse(AUTHORITY_URI + ++mId); in testUpdate() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/provider/ |
D | AlarmInstance.java | 98 if (instance.mId != INVALID_ID) { in createContentValues() 99 values.put(_ID, instance.mId); in createContentValues() 219 instance.mId = otherInstances.mId; in addInstance() 227 instance.mId = getId(uri); in addInstance() 232 if (instance.mId == INVALID_ID) return false; in updateInstance() 234 long rowsUpdated = contentResolver.update(getUri(instance.mId), values, null, null); in updateInstance() 245 public long mId; field in AlarmInstance 263 mId = INVALID_ID; in AlarmInstance() 272 mId = c.getLong(ID_INDEX); in AlarmInstance() 381 return mId == other.mId; in equals() [all …]
|
/packages/apps/Exchange/src/com/android/exchange/eas/ |
D | EasConnectionCache.java | 90 LogUtils.d(Eas.LOG_TAG, "Creating new connection manager for HostAuth %d", hostAuth.mId); in createConnectionManager() 113 EmailClientConnectionManager connectionManager = mConnectionMap.get(hostAuth.mId); in getCachedConnectionManager() 116 final long lifetime = now - mConnectionCreationTimes.get(hostAuth.mId); in getCachedConnectionManager() 119 hostAuth.mId); in getCachedConnectionManager() 126 mConnectionMap.put(hostAuth.mId, connectionManager); in getCachedConnectionManager() 127 mConnectionCreationTimes.put(hostAuth.mId, now); in getCachedConnectionManager() 130 hostAuth.mId); in getCachedConnectionManager() 163 LogUtils.d(Eas.LOG_TAG, "Uncaching connection manager for HostAuth %d", hostAuth.mId); in uncacheConnectionManager() 164 EmailClientConnectionManager connectionManager = mConnectionMap.get(hostAuth.mId); in uncacheConnectionManager() 168 mConnectionMap.remove(hostAuth.mId); in uncacheConnectionManager() [all …]
|
D | EasFullSyncOperation.java | 187 c = Mailbox.getMailboxIdsForSync(mContext.getContentResolver(), mAccount.mId); in performOperation() 191 mAccount.mId, mailboxType); in performOperation() 220 if (mailbox.mAccountKey != mAccount.mId) { in syncMailbox() 252 return syncOutbox(mailbox.mId); in syncMailbox() 256 mailbox.mId, EmailServiceStatus.IN_PROGRESS, 0, in syncMailbox() 260 LogUtils.d(TAG, "IEmailService.syncMailbox account %d", mAccount.mId); in syncMailbox() 266 mailbox.mId, EmailServiceStatus.SUCCESS, 0, in syncMailbox() 279 LogUtils.d(TAG, "syncOutbox %d", mAccount.mId); in syncOutbox() 291 if (Utility.hasUnloadedAttachments(mContext, message.mId)) { in syncOutbox()
|
/packages/apps/Email/src/com/android/email/ |
D | AttachmentInfo.java | 75 public final long mId; field in AttachmentInfo 92 this(context, attachment.mId, attachment.mSize, attachment.mFileName, attachment.mMimeType, in AttachmentInfo() 103 this(context, info.mId, info.mSize, info.mName, info.mContentType, info.mAccountKey, in AttachmentInfo() 112 mId = id; in AttachmentInfo() 210 Uri contentUri = AttachmentUtilities.getAttachmentUri(accountId, mId); in getUriForIntent() 229 return (int) (mId ^ (mId >>> 32)); in hashCode() 242 return ((AttachmentInfo) o).mId == mId; in equals() 247 return "{Attachment " + mId + ":" + mName + "," + mContentType + "," + mSize + "}"; in toString()
|
D | NotificationController.java | 329 "uiaccount", account.mId), UIProvider.ACCOUNTS_PROJECTION, null, null, null); in setupSoundAndVibration() 372 LogUtils.e(LOG_TAG, "Null uiAccount for account id %d", account.mId); in setupSoundAndVibration() 497 Intent intent = AccountSecurity.actionUpdateSecurityIntent(mContext, account.mId, true); in showSecurityNeededNotification() 502 showNotification(account.mId, ticker, title, accountName, intent, in showSecurityNeededNotification() 503 (int)(NOTIFICATION_ID_BASE_SECURITY_NEEDED + account.mId)); in showSecurityNeededNotification() 518 showNotification(account.mId, ticker, title, accountName, intent, in showSecurityChangedNotification() 519 (int)(NOTIFICATION_ID_BASE_SECURITY_CHANGED + account.mId)); in showSecurityChangedNotification() 534 showNotification(account.mId, ticker, title, accountName, intent, in showSecurityUnsupportedNotification() 535 (int)(NOTIFICATION_ID_BASE_SECURITY_NEEDED + account.mId)); in showSecurityUnsupportedNotification() 566 = EmailServiceUtils.getServiceInfoForAccount(context, account.mId); in cancelNotifications() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmStateManager.java | 200 Intent intent = AlarmInstance.createIntent(context, AlarmStateManager.class, instance.mId); in createStateChangeIntent() 221 LogUtils.v("Scheduling state change " + newState + " to instance " + instance.mId + in scheduleInstanceStateChange() 243 LogUtils.v("Canceling instance " + instance.mId + " timers"); in cancelScheduledInstance() 264 LogUtils.v("Setting silent state to instance " + instance.mId); in setSilentState() 286 LogUtils.v("Setting low notification state to instance " + instance.mId); in setLowNotificationState() 308 LogUtils.v("Setting hide notification state to instance " + instance.mId); in setHideNotificationState() 330 LogUtils.v("Setting high notification state to instance " + instance.mId); in setHighNotificationState() 352 LogUtils.v("Setting fire state to instance " + instance.mId); in setFiredState() 391 LogUtils.v("Setting snoozed state to instance " + instance.mId + " for " in setSnoozeState() 431 LogUtils.v("Setting missed state to instance " + instance.mId); in setMissedState() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/ |
D | MainKeyboardAccessibilityDelegate.java | 85 mLastKeyboardMode = keyboard.mId.mMode; in setKeyboard() 93 if (lastKeyboard == null || !keyboard.mId.mSubtype.equals(lastKeyboard.mId.mSubtype)) { in setKeyboard() 98 if (keyboard.mId.mMode != lastKeyboardMode) { in setKeyboard() 103 if (keyboard.mId.mElementId != lastKeyboard.mId.mElementId) { in setKeyboard() 124 keyboard.mId.mSubtype); in announceKeyboardLanguage() 136 final int modeTextResId = KEYBOARD_MODE_RES_IDS.get(keyboard.mId.mMode); in announceKeyboardMode() 152 final int lastElementId = lastKeyboard.mId.mElementId; in announceKeyboardType() 154 switch (keyboard.mId.mElementId) { in announceKeyboardType()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | Keyboard.java | 50 public final KeyboardId mId; field in Keyboard 92 mId = params.mId; in Keyboard() 111 mProximityInfo = new ProximityInfo(params.mId.mLocale.toString(), in Keyboard() 119 mId = keyboard.mId; in Keyboard() 149 mId.mElementId == KeyboardId.ELEMENT_ALPHABET in hasProximityCharsCorrection() 150 || mId.mElementId == KeyboardId.ELEMENT_ALPHABET_AUTOMATIC_SHIFTED); in hasProximityCharsCorrection() 205 return mId.toString(); in toString()
|
/packages/apps/Email/src/com/android/email/provider/ |
D | ContentCache.java | 220 LogUtils.d(mLogTag, "============ Removing token for: " + token.mId); in remove() 222 LogUtils.d(mLogTag, "============ No token found for: " + token.mId); in remove() 232 LogUtils.d(mLogTag, "============ Taking token for: " + token.mId); in add() 244 private final String mId; field in ContentCache.CacheToken 248 mId = id; in CacheToken() 252 return mId; in getId() 265 return ((token instanceof CacheToken) && ((CacheToken)token).mId.equals(mId)); in equals() 270 return mId.hashCode(); in hashCode() 286 private final String mId; field in ContentCache.CachedCursor 297 mId = id; in CachedCursor() [all …]
|
D | Utilities.java | 69 String.valueOf(account.mId), in copyOneMessageToProvider() 70 String.valueOf(folder.mId), in copyOneMessageToProvider() 81 localMessage.mMailboxKey = folder.mId; in copyOneMessageToProvider() 82 localMessage.mAccountKey = account.mId; in copyOneMessageToProvider() 105 if (localMessage.mId != EmailContent.Message.NO_MESSAGE) { in copyOneMessageToProvider() 106 body = EmailContent.Body.restoreBodyWithMessageId(context, localMessage.mId); in copyOneMessageToProvider() 132 body.mMessageKey = localMessage.mId; in copyOneMessageToProvider() 162 att.mMessageKey = localMessage.mId; in copyOneMessageToProvider() 176 localMessage.mId); in copyOneMessageToProvider()
|