HomeSort by relevance Sort by last modified time
    Searched refs:accountId (Results 1 - 25 of 82) sorted by null

1 2 3 4

  /frameworks/base/drm/java/android/drm/
ProcessedData.java 36 * @param accountId Account ID of the user.
38 /* package */ ProcessedData(byte[] data, String accountId) {
40 mAccountId = accountId;
47 * @param accountId Account ID of the user.
50 /* package */ ProcessedData(byte[] data, String accountId, String subscriptionId) {
52 mAccountId = accountId;
DrmRights.java 62 * @param accountId Account ID of the user.
64 public DrmRights(String rightsFilePath, String mimeType, String accountId) {
67 mAccountId = accountId;
75 * @param accountId Account ID of the user.
79 String rightsFilePath, String mimeType, String accountId, String subscriptionId) {
82 mAccountId = accountId;
  /packages/apps/Email/emailcommon/src/com/android/emailcommon/service/
IAccountService.aidl 22 oneway void notifyLoginFailed(long accountId, String reason);
23 oneway void notifyLoginSucceeded(long accountId);
27 int getAccountColor(long accountId);
IPolicyService.aidl 22 void setAccountHoldFlag(long accountId, boolean newState);
23 void setAccountPolicy(long accountId, in Policy policy, String securityKey);
IEmailService.aidl 36 oneway void updateFolderList(long accountId);
38 boolean createFolder(long accountId, String name);
39 boolean deleteFolder(long accountId, String name);
40 boolean renameFolder(long accountId, String oldName, String newName);
44 oneway void hostChanged(long accountId);
57 int searchMessages(long accountId, in SearchParams params, long destMailboxId);
59 void sendMail(long accountId);
AccountServiceProxy.java 46 public void notifyLoginFailed(final long accountId, final String reason) {
50 mService.notifyLoginFailed(accountId, reason);
56 public void notifyLoginSucceeded(final long accountId) {
60 mService.notifyLoginSucceeded(accountId);
79 public int getAccountColor(final long accountId) {
83 mReturn = mService.getAccountColor(accountId);
EmailServiceProxy.java 250 * @param accountId the id of the account whose folder list is to be updated
253 public void updateFolderList(final long accountId) throws RemoteException {
257 mService.updateFolderList(accountId);
283 * @param accountId the id of the account whose host information has changed
286 public void hostChanged(final long accountId) throws RemoteException {
290 mService.hostChanged(accountId);
330 * @param accountId the account in which the folder is to be created
334 public boolean createFolder(long accountId, String name) throws RemoteException {
341 * @param accountId the account in which the folder resides
345 public boolean deleteFolder(long accountId, String name) throws RemoteException
    [all...]
PolicyServiceProxy.java 71 public void setAccountPolicy(final long accountId, final Policy policy,
76 mService.setAccountPolicy(accountId, policy, securityKey);
127 public static void setAccountPolicy(Context context, long accountId, Policy policy,
130 new PolicyServiceProxy(context).setAccountPolicy(accountId, policy, securityKey);
  /packages/apps/Email/tests/src/com/android/email/activity/
MailboxFinderTest.java 108 private long createMailbox(long accountId, int mailboxType) {
111 box.mAccountKey = accountId;
122 private void createAndStartFinder(final long accountId, final int mailboxType)
127 mMailboxFinder = new MailboxFinder(mProviderContext, accountId, mailboxType,
152 final long accountId = createAccount(true);
154 createAndStartFinder(accountId, Mailbox.TYPE_INBOX);
186 final long accountId = createAccount(false);
187 final long mailboxId = createMailbox(accountId, Mailbox.TYPE_INBOX);
189 createAndStartFinder(accountId, Mailbox.TYPE_INBOX);
198 assertEquals(accountId, mCallback.mAccountId)
    [all...]
MessagesAdapterTests.java 53 private long createMailbox(long accountId, int type) {
54 Mailbox box = ProviderTestUtils.setupMailbox("name", accountId, false, mProviderContext);
60 private MessagesAdapter.MessagesCursor getLoaderResult(long accountId, long mailboxId) {
64 MessageListContext.forMailbox(accountId, mailboxId)));
71 final long accountId = createAccount(false);
72 final long mailboxId = createMailbox(accountId, Mailbox.TYPE_MAIL);
74 MessagesAdapter.MessagesCursor result = getLoaderResult(accountId, mailboxId);
76 assertEquals(accountId, result.mAccount.mId);
86 final long accountId = createAccount(true);
87 final long mailboxId = createMailbox(accountId, Mailbox.TYPE_MAIL)
    [all...]
  /packages/apps/Email/src/com/android/email/
ResourceHelper.java 59 /* package */ int getAccountColorIndex(long accountId) {
62 return Math.abs((int) ((accountId - 1) % mAccountColors.length));
68 public int getAccountColor(long accountId) {
69 return mAccountColors[getAccountColorIndex(accountId)];
76 public int getAccountColorId(long accountId) {
77 return mAccountColorArray.getResourceId(getAccountColorIndex(accountId),
84 public Paint getAccountColorPaint(long accountId) {
85 return mAccountColorPaints[getAccountColorIndex(accountId)];
NotificationController.java 124 * @param accountId The id of the account this notification is being built for.
135 private NotificationCompat.Builder createBaseAccountNotificationBuilder(long accountId,
158 Account account = Account.restoreAccountWithId(mContext, accountId);
168 * @param accountId The account id this notification is being built for.
175 private void showNotification(long accountId, String ticker, String title,
177 final NotificationCompat.Builder builder = createBaseAccountNotificationBuilder(accountId,
249 for (final Long accountId : sRefreshAccountSet) {
250 refreshNotificationsForAccountInternal(context, accountId);
263 * @param accountId The ID of the account to register the observer for. May be
267 private void registerMessageNotification(final long accountId) {
    [all...]
  /packages/apps/Email/tests/src/com/android/email/
ResourceHelperTest.java 35 for (long accountId = -1; accountId < 100; accountId++) {
37 Integer color = mResourceHelper.getAccountColor(accountId);
38 Paint paint = mResourceHelper.getAccountColorPaint(accountId);
MessageListContextTests.java 27 long accountId = 123;
29 MessageListContext original = MessageListContext.forMailbox(accountId, mailboxId);
41 long accountId = 123;
44 MessageListContext original = MessageListContext.forSearch(accountId, mailboxId, params);
  /frameworks/av/drm/common/
DrmRights.cpp 23 const String8& accountId, const String8& subscriptionId) :
25 mAccountId(accountId),
36 const String8& accountId, const String8& subscriptionId) :
39 mAccountId(accountId),
  /packages/apps/Exchange/tests/src/com/android/exchange/provider/
EmailContentSetupUtils.java 54 public static Mailbox setupMailbox(String name, long accountId, boolean saveIt,
56 return setupMailbox(name, accountId, saveIt, context, Mailbox.TYPE_MAIL, null);
59 public static Mailbox setupMailbox(String name, long accountId, boolean saveIt,
61 return setupMailbox(name, accountId, saveIt, context, type, null);
64 public static Mailbox setupMailbox(String name, long accountId, boolean saveIt,
69 box.mAccountKey = accountId;
86 public static Message setupMessage(String name, long accountId, long mailboxId,
89 return setupMessage(name, accountId, mailboxId, addBody, saveIt, context, true, true);
95 public static Message setupMessage(String name, long accountId, long mailboxId,
101 message.mAccountKey = accountId;
    [all...]
  /packages/apps/Email/src/com/android/email/service/
AccountService.java 44 public void notifyLoginFailed(long accountId, String reason) {
46 nc.showLoginFailedNotification(accountId, reason);
50 public void notifyLoginSucceeded(long accountId) {
51 NotificationController.getInstance(mContext).cancelLoginFailedNotification(accountId);
60 public int getAccountColor(long accountId) {
61 return ResourceHelper.getInstance(mContext).getAccountColor(accountId);
PolicyService.java 50 public void setAccountHoldFlag(long accountId, boolean newState) {
51 SecurityPolicy.setAccountHoldFlag(mContext, accountId, newState);
67 public void setAccountPolicy(long accountId, Policy policy, String securityKey) {
69 mSecurityPolicy.setAccountPolicy(accountId, policy, securityKey);
  /frameworks/av/include/drm/
DrmRights.h 40 * @param[in] accountId Account Id of the user
45 const String8& accountId = String8("_NO_USER"),
53 * @param[in] accountId Account Id of the user
58 const String8& accountId = String8("_NO_USER"),
  /packages/apps/Email/src/com/android/email/provider/
WidgetProvider.java 92 long accountId = loadAccountIdPref(context, widgetId);
95 if (accountId == Account.NO_ACCOUNT || mailboxId == Mailbox.NO_MAILBOX) {
96 LogUtils.d(LOG_TAG, "Couldn't load account or mailbox. accountId: %d" +
97 " mailboxId: %d widgetId %d", accountId, mailboxId, widgetId);
101 accountId = migrateLegacyWidgetAccountId(accountId);
102 mailboxId = migrateLegacyWidgetMailboxId(mailboxId, accountId);
105 final com.android.mail.providers.Account uiAccount = getAccount(context, accountId);
122 private static long migrateLegacyWidgetAccountId(long accountId) {
123 if (accountId == Account.ACCOUNT_ID_COMBINED_VIEW)
    [all...]
  /packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
AttachmentUtilities.java 143 public static Uri getAttachmentUri(long accountId, long id) {
148 .appendPath(Long.toString(accountId))
161 public static File getAttachmentFilename(Context context, long accountId, long attachmentId) {
162 return new File(getAttachmentDirectory(context, accountId), Long.toString(attachmentId));
172 public static File getAttachmentDirectory(Context context, long accountId) {
173 return context.getDatabasePath(accountId + ".db_att");
285 * @param accountId the account for the message
288 public static void deleteAllAttachmentFiles(Context context, long accountId, long messageId) {
295 File attachmentFile = getAttachmentFilename(context, accountId, attachmentId);
310 * @param accountId the account for the messag
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/providers/protos/mock/
MockUiProvider.java 68 private static void initializeAccount(int accountId,
71 createFolderDetailsMap(0, accountId, "zero", true, 0, 2);
75 final Map<String, Object> accountDetailsMap = createAccountDetailsMap(accountId,
81 createFolderDetailsMap(2, accountId, "two", 2, 2);
87 ImmutableList.of(createFolderDetailsMap(10, accountId, "zeroChild0", 0, 0),
88 createFolderDetailsMap(11, accountId, "zeroChild1", 0, 0)));
93 conversations.add(createConversationDetailsMap(accountId, name.hashCode(),
100 createMessageDetailsMap(accountId, "zeroConv0".hashCode(), "zeroConv0", 1, false);
107 createMessageDetailsMap(accountId, "zeroConv1".hashCode(), "zeroConv1", 1, false);
110 createMessageDetailsMap(accountId, "zeroConv1a".hashCode(), "zeroConv1a", 2, false)
    [all...]
  /packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
Account.java 234 public static boolean isNormalAccount(long accountId) {
235 return (accountId > 0L) && (accountId != ACCOUNT_ID_COMBINED_VIEW);
472 public static boolean supportsServerSearch(Context context, long accountId) {
473 Account account = Account.restoreAccountWithId(context, accountId);
558 final long accountId = cursor.getLong(Account.ID_PROJECTION_COLUMN);
560 if (accountId == lastUsedAccountId) {
561 return accountId;
565 firstAccount = accountId;
581 * @param accountId the id of the account to be examine
    [all...]
MessageChangeLogTable.java 73 * @param accountId The account we want to update.
77 final String accountId) {
79 args[0] = accountId;
100 * @param accountId The account we want to update.
104 final String[] projection, final String accountId) {
105 final String[] args = { accountId, STATUS_PROCESSING_STRING };
194 * @param accountId The account we're interested in.
198 final String[] projection, final long accountId) {
199 final String accountIdString = String.valueOf(accountId);
MailboxUtilities.java 164 private static void setAccountSyncAdapterFlag(Context context, long accountId, boolean start) {
165 Account account = Account.restoreAccountWithId(context, accountId);
178 * @param accountId the account that is starting to change its mailbox list
180 public static void startMailboxChanges(Context context, long accountId) {
181 setAccountSyncAdapterFlag(context, accountId, true);
187 * @param accountId the account that is finished with changes to its mailbox list
189 public static void endMailboxChanges(Context context, long accountId) {
190 setAccountSyncAdapterFlag(context, accountId, false);
197 * @param accountId the account whose mailboxes are to be checked
200 public static void checkMailboxConsistency(Context context, long accountId) {
    [all...]

Completed in 575 milliseconds

1 2 3 4