Home
last modified time | relevance | path

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

1234

/packages/apps/Bluetooth/lib/mapapi/com/android/bluetooth/mapapi/
DBluetoothMapIMProvider.java97 protected void onAccountChanged(String accountId) { in onAccountChanged() argument
103 if(accountId == null){ in onAccountChanged()
106 newUri = BluetoothMapContract.buildAccountUriwithId(mAuthority, accountId); in onAccountChanged()
109 if(D) Log.d(TAG,"onAccountChanged() accountId = " + accountId + " URI: " + newUri); in onAccountChanged()
121 protected void onMessageChanged(String accountId, String messageId) { in onMessageChanged() argument
127 if(accountId == null){ in onMessageChanged()
132 newUri = BluetoothMapContract.buildMessageUri(mAuthority,accountId); in onMessageChanged()
134 newUri = BluetoothMapContract.buildMessageUriWithId(mAuthority,accountId, in onMessageChanged()
138 if(D) Log.d(TAG,"onMessageChanged() accountId = " + accountId in onMessageChanged()
152 protected void onContactChanged(String accountId, String contactId) { in onContactChanged() argument
[all …]
DBluetoothMapEmailProvider.java75 abstract protected void WriteMessageToStream(long accountId, long messageId, in WriteMessageToStream() argument
145 long accountId = Long.valueOf(getAccountId(uri)); in readDataFromPipe() local
146 UpdateMimeMessageFromStream(fIn, accountId, messageId); in readDataFromPipe()
173 abstract protected void UpdateMimeMessageFromStream(FileInputStream input, long accountId, in UpdateMimeMessageFromStream() argument
195 long accountId = Long.parseLong(getAccountId(uri)); in writeDataToPipe() local
208 WriteMessageToStream(accountId, messageId, includeAttachments, download, fout); in writeDataToPipe()
235 protected void onAccountChanged(String accountId) { in onAccountChanged() argument
241 if(accountId == null){ in onAccountChanged()
244 newUri = BluetoothMapContract.buildAccountUriwithId(mAuthority, accountId); in onAccountChanged()
246 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/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/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 …]
/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 …]
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()
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
/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/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/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/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()
DSecurityPolicy.java458 public static void setAccountHoldFlag(Context context, long accountId, boolean newState) { in setAccountHoldFlag() argument
459 Account account = Account.restoreAccountWithId(context, accountId); in setAccountHoldFlag()
498 public void policiesRequired(long accountId) { in policiesRequired() argument
499 Account account = Account.restoreAccountWithId(mContext, accountId); in policiesRequired()
597 public void setAccountPolicy(long accountId, Policy policy, String securityKey, in setAccountPolicy() argument
599 Account account = Account.restoreAccountWithId(mContext, accountId); in setAccountPolicy()
638 Uri uri = EmailProvider.uiUri("uiaccountdata", accountId); in setAccountPolicy()
727 long accountId = c.getLong(EmailContent.ID_PROJECTION_COLUMN); in deleteSecuredAccounts() local
728 Uri uri = EmailProvider.uiUri("uiaccount", accountId); in deleteSecuredAccounts()
817 long accountId = Policy.getAccountIdWithPolicyKey(context, policyId);
[all …]
/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 …]
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 …]
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()
/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 …]
/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/providers/ContactsProvider/src/com/android/providers/contacts/
DDataRowHandlerForGroupMembership.java207 final long accountId = accountIdOrNull;
218 if (entry.accountId == accountId) {
224 entry.accountId = accountId;
232 new String[]{sourceId, Long.toString(accountId)}, null, null, null);
239 groupValues.put(GroupsColumns.ACCOUNT_ID, accountId);

1234