Home
last modified time | relevance | path

Searched refs:accountId (Results 1 – 25 of 77) sorted by relevance

1234

/packages/apps/Bluetooth/lib/mapapi/com/android/bluetooth/mapapi/
DBluetoothMapIMProvider.java103 protected void onAccountChanged(String accountId) { in onAccountChanged() argument
109 if(accountId == null){ in onAccountChanged()
112 newUri = BluetoothMapContract.buildAccountUriwithId(mAuthority, accountId); in onAccountChanged()
115 if(D) Log.d(TAG,"onAccountChanged() accountId = " + accountId + " URI: " + newUri); in onAccountChanged()
127 protected void onMessageChanged(String accountId, String messageId) { in onMessageChanged() argument
133 if(accountId == null){ in onMessageChanged()
138 newUri = BluetoothMapContract.buildMessageUri(mAuthority,accountId); in onMessageChanged()
140 newUri = BluetoothMapContract.buildMessageUriWithId(mAuthority,accountId, in onMessageChanged()
144 if(D) Log.d(TAG,"onMessageChanged() accountId = " + accountId in onMessageChanged()
158 protected void onContactChanged(String accountId, String contactId) { in onContactChanged() argument
[all …]
DBluetoothMapEmailProvider.java77 abstract protected void WriteMessageToStream(long accountId, long messageId, in WriteMessageToStream() argument
147 long accountId = Long.valueOf(getAccountId(uri)); in readDataFromPipe() local
148 UpdateMimeMessageFromStream(fIn, accountId, messageId); in readDataFromPipe()
175 abstract protected void UpdateMimeMessageFromStream(FileInputStream input, long accountId, in UpdateMimeMessageFromStream() argument
197 long accountId = Long.parseLong(getAccountId(uri)); in writeDataToPipe() local
210 WriteMessageToStream(accountId, messageId, includeAttachments, download, fout); in writeDataToPipe()
237 protected void onAccountChanged(String accountId) { in onAccountChanged() argument
243 if(accountId == null){ in onAccountChanged()
246 newUri = BluetoothMapContract.buildAccountUriwithId(mAuthority, accountId); in onAccountChanged()
248 if(D) Log.d(TAG,"onAccountChanged() accountId = " + accountId + " URI: " + newUri); in onAccountChanged()
[all …]
DBluetoothMapContract.java172 public static Uri buildAccountUriwithId(String authority, String accountId) { in buildAccountUriwithId() argument
176 .appendPath(accountId) in buildAccountUriwithId()
194 public static Uri buildMessageUri(String authority, String accountId) { in buildMessageUri() argument
197 .appendPath(accountId) in buildMessageUri()
206 public static Uri buildMessageUriWithId(String authority, String accountId,String messageId) { in buildMessageUriWithId() argument
209 .appendPath(accountId) in buildMessageUriWithId()
219 public static Uri buildFolderUri(String authority, String accountId) { in buildFolderUri() argument
222 .appendPath(accountId) in buildFolderUri()
232 public static Uri buildConversationUri(String authority, String accountId) { in buildConversationUri() argument
235 .appendPath(accountId) in buildConversationUri()
[all …]
/packages/apps/Email/src/com/android/email/
DEmailNotificationController.java131 private NotificationCompat.Builder createBaseAccountNotificationBuilder(long accountId, in createBaseAccountNotificationBuilder() argument
153 Account account = Account.restoreAccountWithId(mContext, accountId); in createBaseAccountNotificationBuilder()
170 private void showNotification(long accountId, String ticker, String title, in showNotification() argument
172 final NotificationCompat.Builder builder = createBaseAccountNotificationBuilder(accountId, in showNotification()
245 for (final Long accountId : sRefreshAccountSet) { in ensureHandlerExists()
246 refreshNotificationsForAccountInternal(context, accountId); in ensureHandlerExists()
263 private void registerMessageNotification(final long accountId) { in registerMessageNotification() argument
265 if (accountId == Account.ACCOUNT_ID_COMBINED_VIEW) { in registerMessageNotification()
278 ContentObserver obs = mNotificationMap.get(accountId); in registerMessageNotification()
280 LogUtils.i(LOG_TAG, "Registering for notifications for account " + accountId); in registerMessageNotification()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/
DRawContactMatcher.java168 private MatchScore getMatchingScore(long rawContactId, long contactId, long accountId) { in getMatchingScore() argument
173 matchingScore.reset(rawContactId, contactId, accountId); in getMatchingScore()
175 matchingScore = new MatchScore(rawContactId, contactId, accountId); in getMatchingScore()
191 public void matchName(long rawContactId, long contactId, long accountId, int in matchName() argument
199 updatePrimaryScore(rawContactId, contactId, accountId, maxScore); in matchName()
239 updatePrimaryScore(rawContactId, contactId, accountId, score); in matchName()
242 public void matchIdentity(long rawContactId, long contactId, long accountId) { in matchIdentity() argument
243 updateSecondaryScore(rawContactId, contactId, accountId, IDENTITY_MATCH_SCORE); in matchIdentity()
246 public void updateScoreWithPhoneNumberMatch(long rawContactId, long contactId, long accountId) { in updateScoreWithPhoneNumberMatch() argument
247 updateSecondaryScore(rawContactId, contactId, accountId, PHONE_MATCH_SCORE); in updateScoreWithPhoneNumberMatch()
[all …]
DMatchScore.java38 public MatchScore(long rawContactId, long contactId, long accountId) { in MatchScore() argument
41 this.mAccountId = accountId; in MatchScore()
50 public void reset(long rawContactId, long contactId, long accountId) { in reset() argument
53 this.mAccountId = accountId; in reset()
/packages/apps/UnifiedEmail/src/com/android/mail/providers/protos/mock/
DMockUiProvider.java68 private static void initializeAccount(int accountId, in initializeAccount() argument
71 createFolderDetailsMap(0, accountId, "zero", true, 0, 2); in initializeAccount()
75 final Map<String, Object> accountDetailsMap = createAccountDetailsMap(accountId, in initializeAccount()
81 createFolderDetailsMap(2, accountId, "two", 2, 2); in initializeAccount()
87 ImmutableList.of(createFolderDetailsMap(10, accountId, "zeroChild0", 0, 0), in initializeAccount()
88 createFolderDetailsMap(11, accountId, "zeroChild1", 0, 0))); in initializeAccount()
93 conversations.add(createConversationDetailsMap(accountId, name.hashCode(), in initializeAccount()
100 createMessageDetailsMap(accountId, "zeroConv0".hashCode(), "zeroConv0", 1, false); in initializeAccount()
107 createMessageDetailsMap(accountId, "zeroConv1".hashCode(), "zeroConv1", 1, false); in initializeAccount()
110 createMessageDetailsMap(accountId, "zeroConv1a".hashCode(), "zeroConv1a", 2, false); in initializeAccount()
[all …]
/packages/apps/Email/provider_src/com/android/email/provider/
DWidgetProvider.java92 long accountId = loadAccountIdPref(context, widgetId); in migrateLegacyWidgetInformation() local
95 if (accountId == Account.NO_ACCOUNT || mailboxId == Mailbox.NO_MAILBOX) { in migrateLegacyWidgetInformation()
97 " mailboxId: %d widgetId %d", accountId, mailboxId, widgetId); in migrateLegacyWidgetInformation()
101 accountId = migrateLegacyWidgetAccountId(accountId); in migrateLegacyWidgetInformation()
102 mailboxId = migrateLegacyWidgetMailboxId(mailboxId, accountId); in migrateLegacyWidgetInformation()
105 final com.android.mail.providers.Account uiAccount = getAccount(context, accountId); in migrateLegacyWidgetInformation()
122 private static long migrateLegacyWidgetAccountId(long accountId) { in migrateLegacyWidgetAccountId() argument
123 if (accountId == Account.ACCOUNT_ID_COMBINED_VIEW) { in migrateLegacyWidgetAccountId()
126 return accountId; in migrateLegacyWidgetAccountId()
133 private static long migrateLegacyWidgetMailboxId(long mailboxId, long accountId) { in migrateLegacyWidgetMailboxId() argument
[all …]
DEmailProvider.java718 final long accountId; in delete() local
720 accountId = Mailbox.getAccountIdForMailbox(context, id); in delete()
722 accountId = Account.NO_ACCOUNT; in delete()
731 notifyUIFolder(id, accountId); in delete()
960 final Long accountId = in insert() local
962 if (accountId != null && accountId > 0) { in insert()
963 notifyUI(UIPROVIDER_ACCOUNT_NOTIFIER, accountId); in insert()
964 notifyUI(UIPROVIDER_FOLDERLIST_NOTIFIER, accountId); in insert()
1888 final ContentValues values, final String accountId) { in restartPushForMailbox() argument
1891 return restartPush(context, db, accountId); in restartPushForMailbox()
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DAttachmentUtilities.java141 public static Uri getAttachmentUri(long accountId, long id) { in getAttachmentUri() argument
146 .appendPath(Long.toString(accountId)) in getAttachmentUri()
153 public static Uri getAttachmentThumbnailUri(long accountId, long id, long width, long height) { in getAttachmentThumbnailUri() argument
158 .appendPath(Long.toString(accountId)) in getAttachmentThumbnailUri()
173 public static File getAttachmentFilename(Context context, long accountId, long attachmentId) { in getAttachmentFilename() argument
174 return new File(getAttachmentDirectory(context, accountId), Long.toString(attachmentId)); in getAttachmentFilename()
184 public static File getAttachmentDirectory(Context context, long accountId) { in getAttachmentDirectory() argument
185 return context.getDatabasePath(accountId + ".db_att"); in getAttachmentDirectory()
300 public static void deleteAllAttachmentFiles(Context context, long accountId, long messageId) { in deleteAllAttachmentFiles() argument
307 File attachmentFile = getAttachmentFilename(context, accountId, attachmentId); in deleteAllAttachmentFiles()
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/
DEmailServiceProxy.java117 public void loadAttachment(final IEmailServiceCallback cb, final long accountId, in loadAttachment() argument
124 mService.loadAttachment(cb, accountId, attachmentId, background); in loadAttachment()
208 public void updateFolderList(final long accountId) throws RemoteException { in updateFolderList() argument
212 mService.updateFolderList(accountId); in updateFolderList()
287 public int searchMessages(final long accountId, final SearchParams searchParams, in searchMessages() argument
292 mReturn = mService.searchMessages(accountId, searchParams, destMailboxId); in searchMessages()
309 public void sendMail(final long accountId) throws RemoteException { in sendMail() argument
313 mService.sendMail(accountId); in sendMail()
324 public void pushModify(final long accountId) throws RemoteException { in pushModify() argument
328 mService.pushModify(accountId); in pushModify()
[all …]
DIEmailService.aidl30 oneway void loadAttachment(IEmailServiceCallback cb, long accountId, long attachmentId, in loadAttachment() argument
33 void updateFolderList(long accountId); in updateFolderList() argument
37 void sendMail(long accountId); in sendMail() argument
39 int sync(long accountId, inout Bundle syncExtras); in sync() argument
44 void pushModify(long accountId); in pushModify() argument
49 int searchMessages(long accountId, in SearchParams params, long destMailboxId); in searchMessages() argument
DPolicyServiceProxy.java71 public void setAccountPolicy(final long accountId, final Policy policy, in setAccountPolicy() argument
73 setAccountPolicy2(accountId, policy, securityKey, true /* notify */); in setAccountPolicy()
77 public void setAccountPolicy2(final long accountId, final Policy policy, in setAccountPolicy2() argument
82 mService.setAccountPolicy2(accountId, policy, securityKey, notify); in setAccountPolicy2()
151 public static void setAccountPolicy(Context context, long accountId, Policy policy, in setAccountPolicy() argument
153 setAccountPolicy2(context, accountId, policy, securityKey, true /* notify */); in setAccountPolicy()
156 public static void setAccountPolicy2(Context context, long accountId, Policy policy, in setAccountPolicy2() argument
159 new PolicyServiceProxy(context).setAccountPolicy2(accountId, policy, securityKey, in setAccountPolicy2()
/packages/apps/Email/provider_src/com/android/email/
DResourceHelper.java59 /* package */ int getAccountColorIndex(long accountId) { in getAccountColorIndex() argument
62 return Math.abs((int) ((accountId - 1) % mAccountColors.length)); in getAccountColorIndex()
68 public int getAccountColor(long accountId) { in getAccountColor() argument
69 return mAccountColors[getAccountColorIndex(accountId)]; in getAccountColor()
76 public int getAccountColorId(long accountId) { in getAccountColorId() argument
77 return mAccountColorArray.getResourceId(getAccountColorIndex(accountId), in getAccountColorId()
84 public Paint getAccountColorPaint(long accountId) { in getAccountColorPaint() argument
85 return mAccountColorPaints[getAccountColorIndex(accountId)]; in getAccountColorPaint()
DNotificationController.java28 void showLoginFailedNotificationSynchronous(long accountId, boolean incoming); in showLoginFailedNotificationSynchronous() argument
29 void cancelLoginFailedNotification(long accountId); in cancelLoginFailedNotification() argument
36 void showPasswordExpiringNotificationSynchronous(long accountId); in showPasswordExpiringNotificationSynchronous() argument
37 void showPasswordExpiredNotificationSynchronous(long accountId); in showPasswordExpiredNotificationSynchronous() argument
/packages/apps/Email/provider_src/com/android/email/service/
DEmailServiceStub.java123 public void loadAttachment(final IEmailServiceCallback cb, final long accountId, in loadAttachment() argument
285 public void updateFolderList(final long accountId) throws RemoteException { in updateFolderList() argument
286 final Account account = Account.restoreAccountWithId(mContext, accountId); in updateFolderList()
288 LogUtils.e(LogUtils.TAG, "Account %d not found in updateFolderList", accountId); in updateFolderList()
300 if (Mailbox.findMailboxOfType(mContext, accountId, type) == Mailbox.NO_MAILBOX) { in updateFolderList()
301 final Mailbox mailbox = Mailbox.newSystemMailbox(mContext, accountId, type); in updateFolderList()
352 mContext, accountId, mailboxId); in updateFolderList()
405 public int searchMessages(final long accountId, final SearchParams params, in searchMessages() argument
413 public void pushModify(final long accountId) throws RemoteException { in pushModify() argument
414 LogUtils.e(Logging.LOG_TAG, "pushModify invalid for account type for %d", accountId); in pushModify()
[all …]
DPolicyService.java53 public void setAccountHoldFlag(long accountId, boolean newState) {
54 SecurityPolicy.setAccountHoldFlag(mContext, accountId, newState);
70 public void setAccountPolicy(long accountId, Policy policy, String securityKey) {
71 setAccountPolicy2(accountId, policy, securityKey, true /* notify */);
75 public void setAccountPolicy2(long accountId, Policy policy, String securityKey,
78 mSecurityPolicy.setAccountPolicy(accountId, policy, securityKey, notify);
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
DMailboxUtilities.java165 private static void setAccountSyncAdapterFlag(Context context, long accountId, boolean start) { in setAccountSyncAdapterFlag() argument
166 Account account = Account.restoreAccountWithId(context, accountId); in setAccountSyncAdapterFlag()
181 public static void startMailboxChanges(Context context, long accountId) { in startMailboxChanges() argument
182 setAccountSyncAdapterFlag(context, accountId, true); in startMailboxChanges()
190 public static void endMailboxChanges(Context context, long accountId) { in endMailboxChanges() argument
191 setAccountSyncAdapterFlag(context, accountId, false); in endMailboxChanges()
201 public static void checkMailboxConsistency(Context context, long accountId) { in checkMailboxConsistency() argument
204 Account account = Account.restoreAccountWithId(context, accountId); in checkMailboxConsistency()
218 endMailboxChanges(context, accountId); in checkMailboxConsistency()
248 public static void setupHierarchicalNames(Context context, long accountId) { in setupHierarchicalNames() argument
[all …]
DMessageChangeLogTable.java77 final String accountId) { in startProcessing() argument
79 args[0] = accountId; in startProcessing()
104 final String[] projection, final String accountId) { in getRowsToProcess() argument
105 final String[] args = { accountId, STATUS_PROCESSING_STRING }; in getRowsToProcess()
198 final String[] projection, final long accountId) { in getCursor() argument
199 final String accountIdString = String.valueOf(accountId); in getCursor()
DAccount.java484 final long accountId = cursor.getLong(Account.ID_PROJECTION_COLUMN); in getDefaultAccountId() local
486 if (accountId == lastUsedAccountId) { in getDefaultAccountId()
487 return accountId; in getDefaultAccountId()
491 firstAccount = accountId; in getDefaultAccountId()
510 public static String getProtocol(Context context, long accountId) { in getProtocol() argument
511 Account account = Account.restoreAccountWithId(context, accountId); in getProtocol()
559 long accountId = getAccountIdForMessageId(context, messageId); in getAccountForMessageId() local
560 if (accountId != -1) { in getAccountForMessageId()
561 return Account.restoreAccountWithId(context, accountId); in getAccountForMessageId()
569 public static boolean isValidId(Context context, long accountId) { in isValidId() argument
[all …]
DMailbox.java467 public static Mailbox newSystemMailbox(Context context, long accountId, int mailboxType) { in newSystemMailbox() argument
493 box.mAccountKey = accountId; in newSystemMailbox()
512 public static Mailbox restoreMailboxForPath(Context context, long accountId, String path) { in restoreMailboxForPath() argument
517 new String[] { path, Long.toString(accountId) }, in restoreMailboxForPath()
540 public static Mailbox getMailboxForPath(Context context, long accountId, String path) { in getMailboxForPath() argument
541 Mailbox mailbox = restoreMailboxForPath(context, accountId, path); in getMailboxForPath()
665 public static long findMailboxOfType(Context context, long accountId, int type) { in findMailboxOfType() argument
666 final String[] bindArguments = new String[] {Long.toString(type), Long.toString(accountId)}; in findMailboxOfType()
675 public static Mailbox restoreMailboxOfType(Context context, long accountId, int type) { in restoreMailboxOfType() argument
676 final long mailboxId = findMailboxOfType(context, accountId, type); in restoreMailboxOfType()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
DContactAggregator2.java92 long rawContactId, long accountId, long currentContactId, in aggregateContact() argument
186 reAggregateRawContacts(txContext, db, currentContactId, rawContactId, accountId, in aggregateContact()
313 long currentCidForRawContact, long rawContactId, long accountId, in reAggregateRawContacts() argument
324 rawContactsToAccounts.put(rawContactId, accountId); in reAggregateRawContacts()
525 long accountId = -1; in updateMatchScoresBasedOnExceptions() local
530 accountId = c.getLong(AggregateExceptionQuery.ACCOUNT_ID2); in updateMatchScoresBasedOnExceptions()
536 accountId = c.getLong(AggregateExceptionQuery.ACCOUNT_ID1); in updateMatchScoresBasedOnExceptions()
541 matcher.keepIn(rId, contactId, accountId); in updateMatchScoresBasedOnExceptions()
543 matcher.keepOut(rId, contactId, accountId); in updateMatchScoresBasedOnExceptions()
569 final long accountId = c.getLong(IdentityLookupMatchQuery.ACCOUNT_ID); in updateMatchScoresBasedOnIdentityMatch() local
[all …]
/packages/apps/Email/provider_src/com/android/email/activity/setup/
DAccountSecurity.java94 public static Uri getUpdateSecurityUri(final long accountId, final boolean showDialog) { in getUpdateSecurityUri() argument
97 IntentUtilities.setAccountId(baseUri, accountId); in getUpdateSecurityUri()
113 public static Intent actionUpdateSecurityIntent(Context context, long accountId, in actionUpdateSecurityIntent() argument
116 intent.putExtra(EXTRA_ACCOUNT_ID, accountId); in actionUpdateSecurityIntent()
126 public static Intent actionDevicePasswordExpirationIntent(Context context, long accountId, in actionDevicePasswordExpirationIntent() argument
129 intent.putExtra(EXTRA_ACCOUNT_ID, accountId); in actionDevicePasswordExpirationIntent()
141 final long accountId; in onCreate() local
147 accountId = IntentUtilities.getAccountIdFromIntent(i); in onCreate()
148 extras.putLong(EXTRA_ACCOUNT_ID, accountId); in onCreate()
156 accountId = i.getLongExtra(EXTRA_ACCOUNT_ID, -1); in onCreate()
[all …]
/packages/apps/Email/tests/src/com/android/email/
DResourceHelperTest.java37 for (long accountId = -1; accountId < 100; accountId++) { in brokentestGetAccountColor()
39 Integer color = mResourceHelper.getAccountColor(accountId); in brokentestGetAccountColor()
40 Paint paint = mResourceHelper.getAccountColorPaint(accountId); in brokentestGetAccountColor()
/packages/apps/Email/tests/src/com/android/email/provider/
DProviderTestUtils.java75 public static void deleteAccount(Context context, long accountId) { in deleteAccount() argument
77 Account.CONTENT_URI, accountId), null, null); in deleteAccount()
83 public static HostAuth setupHostAuth(String name, long accountId, boolean saveIt, in setupHostAuth() argument
112 public static Mailbox setupMailbox(String name, long accountId, boolean saveIt, in setupMailbox() argument
114 return setupMailbox(name, accountId, saveIt, context, Mailbox.TYPE_MAIL); in setupMailbox()
116 public static Mailbox setupMailbox(String name, long accountId, boolean saveIt, in setupMailbox() argument
118 return setupMailbox(name, accountId, saveIt, context, type, '/'); in setupMailbox()
120 public static Mailbox setupMailbox(String name, long accountId, boolean saveIt, in setupMailbox() argument
133 box.mAccountKey = accountId; in setupMailbox()
152 public static Message setupMessage(String name, long accountId, long mailboxId, in setupMessage() argument
[all …]

1234