Home
last modified time | relevance | path

Searched refs:mId (Results 1 – 25 of 164) sorted by relevance

1234567

/packages/apps/Email/tests/src/com/android/emailcommon/provider/
DMailboxTests.java83 "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/Email/tests/src/com/android/email/provider/
DProviderTests.java172 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 …]
DAttachmentProviderTests.java94 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 …]
DPolicyTests.java84 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/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapAccountItem.java35 private final String mId; field in BluetoothMapAccountItem
49 this.mId = id; in BluetoothMapAccountItem()
71 if(mId != null) { in getAccountId()
72 return Long.parseLong(mId); in getAccountId()
96 if(!other.mId.equals(this.mId)){ in compareTo()
97 if(V) Log.d(TAG, "Wrong id : " + this.mId + " vs " + other.mId); in compareTo()
129 result = prime * result + ((mId == null) ? 0 : mId.hashCode()); in hashCode()
147 if (mId == null) { in equals()
148 if (other.mId != null) in equals()
150 } else if (!mId.equals(other.mId)) in equals()
[all …]
DMapContact.java25 private final long mId; field in MapContact
28 mId = id; in MapContact()
41 return mId; in getId()
45 if(mId > 0) { in getXBtUidString()
46 return BluetoothMapUtils.getLongLongAsString(mId, 0); in getXBtUidString()
52 if(mId > 0) { in getXBtUid()
53 return new SignedLongLong(mId, 0); in getXBtUid()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DActionBatch.java115 mWordList.mId, mWordList.mVersion); in execute()
122 MetadataDbHelper.markEntryAsAvailable(db, mWordList.mId, mWordList.mVersion); in execute()
126 Log.e(TAG, "Unexpected state of the word list '" + mWordList.mId + "' : " + status in execute()
149 mWordList.mId, mWordList.mVersion); in execute()
226 mWordList.mId, mWordList.mVersion); in execute()
230 Log.e(TAG, "Unexpected state of the word list '" + mWordList.mId + " : " + status in execute()
234 MetadataDbHelper.markEntryAsEnabled(db, mWordList.mId, mWordList.mVersion); in execute()
261 mWordList.mId, mWordList.mVersion); in execute()
265 MetadataDbHelper.markEntryAsDisabled(db, mWordList.mId, mWordList.mVersion); in execute()
268 Log.e(TAG, "Unexpected state of the word list '" + mWordList.mId + "' : " in execute()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppService.java475 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 …]
DBluetoothOppTransfer.java126 return mBatch.mId; in getBatchId()
177 if (V) Log.v(TAG, "receive MSG_SHARE_COMPLETE for info " + info.mId); in handleMessage()
183 if (V) Log.v(TAG, "continue session for info " + mCurrentShare.mId + in handleMessage()
184 " from batch " + mBatch.mId); in handleMessage()
188 if (V) Log.v(TAG, "Batch " + mBatch.mId + " is done"); in handleMessage()
199 if (V) Log.v(TAG, "receive MSG_SESSION_COMPLETE for batch " + mBatch.mId); in handleMessage()
209 if (V) Log.v(TAG, "receive MSG_SESSION_ERROR for batch " + mBatch.mId); in handleMessage()
218 if (V) Log.v(TAG, "receive MSG_SHARE_INTERRUPTED for batch " + mBatch.mId); in handleMessage()
242 if (V) Log.v(TAG, "receive MSG_CONNECT_TIMEOUT for batch " + mBatch.mId); in handleMessage()
266 nm.cancel(mCurrentShare.mId); in handleMessage()
[all …]
DBluetoothOppBatch.java66 public int mId; field in BluetoothOppBatch
115 if (V) Log.v(TAG, "New Batch created for info " + info.mId); in BluetoothOppBatch()
128 mListener.onShareAdded(info.mId); in addShare()
147 mListener.onShareDeleted(info.mId); in deleteShare()
159 if (V) Log.v(TAG, "batch " + this.mId + " is canceled"); in cancelBatch()
172 if (V) Log.v(TAG, "Cancel batch for info " + info.mId); in cancelBatch()
174 Constants.updateShareStatus(mContext, info.mId, BluetoothShare.STATUS_CANCELED); in cancelBatch()
/packages/apps/DeskClock/src/com/android/deskclock/provider/
DAlarmInstance.java99 if (instance.mId != INVALID_ID) { in createContentValues()
100 values.put(_ID, instance.mId); in createContentValues()
242 instance.mId = otherInstances.mId; in addInstance()
250 instance.mId = getId(uri); in addInstance()
255 if (instance.mId == INVALID_ID) return false; in updateInstance()
257 long rowsUpdated = contentResolver.update(getUri(instance.mId), values, null, null); in updateInstance()
277 if (instance.mId != instanceId) { in deleteOtherInstances()
279 deleteInstance(contentResolver, instance.mId); in deleteOtherInstances()
285 public long mId; field in AlarmInstance
303 mId = INVALID_ID; in AlarmInstance()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/data/
DTimer.java78 private final int mId; field in Timer
103 mId = id; in Timer()
113 public int getId() { return mId; } in getId()
166 return new Timer(mId, RUNNING, mLength, mTotalLength, now(), mRemainingTime, mLabel, in start()
181 return new Timer(mId, PAUSED, mLength, mTotalLength, Long.MIN_VALUE, remainingTime, mLabel, in pause()
193 return new Timer(mId, EXPIRED, mLength, mTotalLength, mLastStartTime, mRemainingTime, in expire()
205 return new Timer(mId, RESET, mLength, mLength, Long.MIN_VALUE, mLength, mLabel, in reset()
217 return new Timer(mId, mState, mLength, mTotalLength, mLastStartTime, mRemainingTime, label, in setLabel()
247 return new Timer(mId, state, mLength, totalLength, lastStartTime, remainingTime, mLabel, in addMinute()
258 return mId == timer.mId; in equals()
[all …]
/packages/apps/Email/tests/src/com/android/email/
DSecurityPolicyTests.java219 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/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DAbstractPublicApiTest.java47 final long mId; field in AbstractPublicApiTest.Download
50 this.mId = downloadId; in Download()
62 Cursor cursor = mManager.query(new DownloadManager.Query().setFilterById(mId)); in getStatusIfExists()
78 Cursor cursor = mManager.query(new DownloadManager.Query().setFilterById(mId)); in getStringField()
89 Cursor cursor = mManager.query(new DownloadManager.Query().setFilterById(mId)); in getLongField()
100 ParcelFileDescriptor downloadedFile = mManager.openDownloadedFile(mId); in getRawContents()
118 startDownload(mId); in runUntilStatus()
124 startDownload(mId); in runUntilStatus()
172 startDownload(mId); in runUntilProgress()
178 Cursor cursor = mManager.query(new DownloadManager.Query().setFilterById(mId)); in runUntilProgress()
/packages/apps/Email/provider_src/com/android/email/
DAttachmentInfo.java75 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()
/packages/apps/TV/src/com/android/tv/data/
DChannel.java121 channel.mId = cursor.getLong(index++); in fromCursor()
152 private long mId; field in Channel
184 return mId; in getId()
191 return TvContract.buildChannelUri(mId); in getUri()
273 return mId == other.mId && TextUtils.equals(mInputId, other.mInputId) in equals()
279 return Objects.hash(mId, mInputId, mIsPassthrough); in hashCode()
305 && Objects.equals(mId, other.mId) in hasSameReadOnlyInfo()
324 + "id=" + mId in toString()
342 mId = other.mId; in copyFrom()
387 return channel != null && (channel.mId != INVALID_ID || channel.mIsPassthrough); in isValid()
[all …]
/packages/apps/Calendar/tests/src/com/android/calendar/
DAsyncQueryServiceTest.java67 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/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
DMainKeyboardAccessibilityDelegate.java85 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()
126 keyboard.mId.mSubtype.getRawSubtype()); in announceKeyboardLanguage()
138 final int modeTextResId = KEYBOARD_MODE_RES_IDS.get(keyboard.mId.mMode); in announceKeyboardMode()
154 final int lastElementId = lastKeyboard.mId.mElementId; in announceKeyboardType()
156 switch (keyboard.mId.mElementId) { in announceKeyboardType()
/packages/apps/Email/provider_src/com/android/email/service/
DPop3Service.java117 nc.cancelLoginFailedNotification(account.mId); in synchronizeMailboxSynchronous()
125 nc.showLoginFailedNotificationSynchronous(account.mId, true /* incoming */); in synchronizeMailboxSynchronous()
147 final long mId; field in Pop3Service.LocalMessageInfo
152 mId = c.getLong(COLUMN_ID); in LocalMessageInfo()
251 String.valueOf(mailbox.mId) in synchronizePop3Mailbox()
276 String[] accountIdArgs = new String[] { Long.toString(account.mId) }; in synchronizePop3Mailbox()
277 long trashMailboxId = Mailbox.findMailboxOfType(context, account.mId, Mailbox.TYPE_TRASH); in synchronizePop3Mailbox()
396 new String[] {Long.toString(account.mId)}, null); in synchronizePop3Mailbox()
406 resolver.update(ContentUris.withAppendedId(Attachment.CONTENT_URI, att.mId), in synchronizePop3Mailbox()
413 Uri attUri = ContentUris.withAppendedId(Attachment.CONTENT_URI, att.mId); in synchronizePop3Mailbox()
[all …]
DAttachmentService.java202 mAttachmentId = attachment.mId; in DownloadRequest()
206 mMessageId = msg.mId; in DownloadRequest()
677 debugTrace("Attempting to download attachment #%d again.", attachment.mId); in run()
750 debugTrace("onChange() for Attachment: #%d", att.mId); in onChange()
751 DownloadRequest req = mDownloadQueue.findRequestById(att.mId); in onChange()
755 att.mId); in onChange()
764 if (mDownloadsInProgress.containsKey(att.mId)) { in onChange()
765 debugTrace("Attachment #%d was already in the queue", att.mId); in onChange()
770 LogUtils.d(LOG_TAG, "Attachment #%d is a new download request", att.mId); in onChange()
774 LogUtils.w(LOG_TAG, "Attachment #%d is not eligible for download", att.mId); in onChange()
[all …]
DImapService.java176 nc.cancelLoginFailedNotification(account.mId); in synchronizeMailboxSynchronous()
183 nc.showLoginFailedNotificationSynchronous(account.mId, true /* incoming */); in synchronizeMailboxSynchronous()
219 final long mId; field in ImapService.LocalMessageInfo
228 mId = c.getLong(COLUMN_ID); in LocalMessageInfo()
318 context, localMessageInfo.mId); in downloadFlagAndEnvelope()
325 message, account.mId, mailbox.mId); in downloadFlagAndEnvelope()
330 unseenMessages.add(localMessage.mId); in downloadFlagAndEnvelope()
408 new String[] {String.valueOf(account.mId), String.valueOf(mailbox.mId)}, in synchronizeMailboxGeneric()
564 String.valueOf(account.mId), in synchronizeMailboxGeneric()
565 String.valueOf(mailbox.mId), in synchronizeMailboxGeneric()
[all …]
/packages/apps/TV/tests/unit/src/com/android/tv/dvr/ui/
DSortedArrayAdapterTest.java118 return "TestData[" + mId + "]{" + mText + '}'; in toString()
125 private final long mId; field in SortedArrayAdapterTest.TestData
129 this.mId = id; in TestData()
138 return mId == that.mId && Objects.equals(mText, that.mText); in equals()
143 return Objects.hash(mId, mText); in hashCode()
162 return item.mId; in getId()
/packages/apps/Email/provider_src/com/android/email/provider/
DUtilities.java69 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()
/packages/apps/TV/src/com/android/tv/dvr/
DScheduledRecording.java59 value = Long.compare(lhs.mId, rhs.mId);
92 private long mId = ID_NOT_SET; field in ScheduledRecording.Builder
105 mId = id; in setId()
150 return new ScheduledRecording(mId, mPriority, mChannelId, mProgramId, mType, mStartTime, in build()
160 .setId(orig.mId).setChannelId(orig.mChannelId) in buildFrom()
236 private final long mId; field in ScheduledRecording
263 mId = id; in ScheduledRecording()
334 return mId; in getId()
401 return "ScheduledRecording[" + mId in toString()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKeyboard.java54 public final KeyboardId mId; field in Keyboard
104 mId = params.mId; in Keyboard()
132 mId = keyboard.mId; in Keyboard()
163 mId.mElementId == KeyboardId.ELEMENT_ALPHABET in hasProximityCharsCorrection()
164 || mId.mElementId == KeyboardId.ELEMENT_ALPHABET_AUTOMATIC_SHIFTED); in hasProximityCharsCorrection()
227 return mId.toString(); in toString()

1234567