Home
last modified time | relevance | path

Searched refs:AccountUtil (Results 1 – 21 of 21) sorted by relevance

/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/account/
DAccountUtilTest.java34 Account account = AccountUtil.create(name, type); in createAccount()
47 assertThat(AccountUtil.create("" /* name */, type)).isNull(); in createAccount_emptyField()
48 assertThat(AccountUtil.create(null /* name */, type)).isNull(); in createAccount_emptyField()
49 assertThat(AccountUtil.create(name, "" /* type */)).isNull(); in createAccount_emptyField()
50 assertThat(AccountUtil.create(name, null /* type */)).isNull(); in createAccount_emptyField()
59 assertThat(AccountUtil.create("prefix:suffix" /* name */, type)).isNull(); in createAccount_containDelimiter()
60 assertThat(AccountUtil.create(name, "prefix:suffix" /* type */)).isNull(); in createAccount_containDelimiter()
69 assertThat(AccountUtil.create("prefix|suffix" /* name */, type)).isNull(); in createAccount_containSplitChar()
70 assertThat(AccountUtil.create(name, "prefix|suffix" /* type */)).isNull(); in createAccount_containSplitChar()
79 String serialized = AccountUtil.serialize(account); in serializeAccount()
[all …]
DBUILD30 "//java/com/google/android/libraries/mobiledatadownload/account:AccountUtil",
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/account/
DAccountUtil.java24 public final class AccountUtil { class
28 private AccountUtil() {} in AccountUtil() method in AccountUtil
DBUILD25 name = "AccountUtil",
26 srcs = ["AccountUtil.java"],
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/foreground/
DForegroundDownloadKey.java22 import com.google.android.libraries.mobiledatadownload.account.AccountUtil;
70 .putUnencodedChars(AccountUtil.serialize(account.get())); in ofFileGroup()
DBUILD35 "//java/com/google/android/libraries/mobiledatadownload/account:AccountUtil",
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/
DMobileDataDownloadTest.java44 import com.google.android.libraries.mobiledatadownload.account.AccountUtil;
224 Account account = AccountUtil.create("account-name", "account-type"); in buildGetFileGroupsByFilterRequest()
247 Account account = AccountUtil.create("account-name", "account-type"); in buildGetFileGroupsByFilterRequest_groupWithNoAccountOnly()
386 Account account = AccountUtil.create("account-name", "account-type"); in addFileGroupWithFileGroupKey()
399 .setAccount(AccountUtil.serialize(account)) in addFileGroupWithFileGroupKey()
430 Account account = AccountUtil.create("account-name", "account-type"); in addFileGroupWithFileGroupKey_onFailure()
443 .setAccount(AccountUtil.serialize(account)) in addFileGroupWithFileGroupKey_onFailure()
599 Account account = AccountUtil.create("account-name", "account-type"); in removeFileGroup_withAccount_returnsTrue()
612 .setAccount(AccountUtil.serialize(account)) in removeFileGroup_withAccount_returnsTrue()
814 Account account1 = AccountUtil.create("account-name", "account-type"); in removeFileGroupsByFilter_withAccountSpecified_removesMatchingAccountGroups()
[all …]
DDownloadFileGroupCancellationIntegrationTest.java28 import com.google.android.libraries.mobiledatadownload.account.AccountUtil;
89 private static final Account ACCOUNT_1 = AccountUtil.create("account-name-1", "account-type");
90 private static final Account ACCOUNT_2 = AccountUtil.create("account-name-2", "account-type");
DMobileDataDownloadIsolatedStructuresIntegrationTest.java29 import com.google.android.libraries.mobiledatadownload.account.AccountUtil;
77 private static final Account ACCOUNT_1 = AccountUtil.create("account-name-1", "account-type");
78 private static final Account ACCOUNT_2 = AccountUtil.create("account-name-2", "account-type");
DBUILD35 "//java/com/google/android/libraries/mobiledatadownload/account:AccountUtil",
116 "//java/com/google/android/libraries/mobiledatadownload/account:AccountUtil",
166 "//java/com/google/android/libraries/mobiledatadownload/account:AccountUtil",
209 "//java/com/google/android/libraries/mobiledatadownload/account:AccountUtil",
252 "//java/com/google/android/libraries/mobiledatadownload/account:AccountUtil",
DDownloadFileGroupIntegrationTest.java34 import com.google.android.libraries.mobiledatadownload.account.AccountUtil;
118 private static final Account ACCOUNT_1 = AccountUtil.create("account-name-1", "account-type");
119 private static final Account ACCOUNT_2 = AccountUtil.create("account-name-2", "account-type");
DMobileDataDownloadIntegrationTest.java39 import com.google.android.libraries.mobiledatadownload.account.AccountUtil;
350 Account account = AccountUtil.create("name", "google"); in remove_withAccount_fileGroupRemains()
438 Account account = AccountUtil.create("name", "google"); in removeFileGroupsByFilter_whenAccountSpecified_removesMatchingAccountDependentGroups()
521 Account account = AccountUtil.create("name", "google"); in removeFileGroupsByFilter_whenAccountNotSpecified_removesMatchingAccountIndependentGroups()
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/testing/
DFakeMobileDataDownload.java37 import com.google.android.libraries.mobiledatadownload.account.AccountUtil;
261 groupKeyBuilder.setAccount(AccountUtil.serialize(accountOptional.get())); in setThrowableOnFileGroup()
310 AccountUtil.serialize(addFileGroupRequest.accountOptional().get())); in toClientFileGroup()
393 AccountUtil.serialize(getFileGroupRequest.accountOptional().get())); in getFileGroup()
437 AccountUtil.serialize(getFileGroupsByFilterRequest.accountOptional().get()));
527 AccountUtil.serialize(downloadFileGroupRequest.accountOptional().get()));
DBUILD204 "//java/com/google/android/libraries/mobiledatadownload/account:AccountUtil",
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/
DMobileDataDownloadImpl.java36 import com.google.android.libraries.mobiledatadownload.account.AccountUtil;
341 AccountUtil.serialize(addFileGroupRequest.accountOptional().get())); in addFileGroupHelper()
370 AccountUtil.serialize(removeFileGroupRequest.accountOptional().get())); in removeFileGroup()
435 && !AccountUtil.serialize(accountOptional.get())
533 groupKeyBuilder.setAccount(AccountUtil.serialize(accountOptional.get()));
780 && !AccountUtil.serialize(getFileGroupsByFilterRequest.accountOptional().get())
811 groupKeyBuilder.setAccount(AccountUtil.serialize(importFilesRequest.accountOptional().get()));
881 AccountUtil.serialize(downloadFileGroupRequest.accountOptional().get()));
939 ? AccountUtil.serialize(
1087 AccountUtil.serialize(downloadFileGroupRequest.accountOptional().get()));
[all …]
DBUILD55 "//java/com/google/android/libraries/mobiledatadownload/account:AccountUtil",
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/internal/
DMddIsolatedStructuresTest.java36 import com.google.android.libraries.mobiledatadownload.account.AccountUtil;
81 AccountUtil.serialize(new Account("com.google", "test1"));
83 AccountUtil.serialize(new Account("com.google", "test2"));
DBUILD113 "//java/com/google/android/libraries/mobiledatadownload/account:AccountUtil",
336 "//java/com/google/android/libraries/mobiledatadownload/account:AccountUtil",
DFileGroupManagerTest.java62 import com.google.android.libraries.mobiledatadownload.account.AccountUtil;
6546 .setAccount(AccountUtil.serialize(account1)) in testDeleteRemovedAccountGroups_noRemovedAccounts()
6554 .setAccount(AccountUtil.serialize(account2)) in testDeleteRemovedAccountGroups_noRemovedAccounts()
6588 .setAccount(AccountUtil.serialize(account1)) in testDeleteRemovedAccountGroups_removedAccounts()
6596 .setAccount(AccountUtil.serialize(account2)) in testDeleteRemovedAccountGroups_removedAccounts()
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/internal/
DBUILD138 "//java/com/google/android/libraries/mobiledatadownload/account:AccountUtil",
DFileGroupManager.java43 import com.google.android.libraries.mobiledatadownload.account.AccountUtil;
2910 serializedAccounts.add(AccountUtil.serialize(account));