/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/account/ |
D | AccountUtilTest.java | 34 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 …]
|
D | BUILD | 30 "//java/com/google/android/libraries/mobiledatadownload/account:AccountUtil",
|
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/account/ |
D | AccountUtil.java | 24 public final class AccountUtil { class 28 private AccountUtil() {} in AccountUtil() method in AccountUtil
|
D | BUILD | 25 name = "AccountUtil", 26 srcs = ["AccountUtil.java"],
|
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/foreground/ |
D | ForegroundDownloadKey.java | 22 import com.google.android.libraries.mobiledatadownload.account.AccountUtil; 70 .putUnencodedChars(AccountUtil.serialize(account.get())); in ofFileGroup()
|
D | BUILD | 35 "//java/com/google/android/libraries/mobiledatadownload/account:AccountUtil",
|
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/ |
D | MobileDataDownloadTest.java | 44 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 …]
|
D | DownloadFileGroupCancellationIntegrationTest.java | 28 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");
|
D | MobileDataDownloadIsolatedStructuresIntegrationTest.java | 29 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");
|
D | BUILD | 35 "//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",
|
D | DownloadFileGroupIntegrationTest.java | 34 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");
|
D | MobileDataDownloadIntegrationTest.java | 39 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/ |
D | FakeMobileDataDownload.java | 37 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()));
|
D | BUILD | 204 "//java/com/google/android/libraries/mobiledatadownload/account:AccountUtil",
|
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/ |
D | MobileDataDownloadImpl.java | 36 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 …]
|
D | BUILD | 55 "//java/com/google/android/libraries/mobiledatadownload/account:AccountUtil",
|
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/internal/ |
D | MddIsolatedStructuresTest.java | 36 import com.google.android.libraries.mobiledatadownload.account.AccountUtil; 81 AccountUtil.serialize(new Account("com.google", "test1")); 83 AccountUtil.serialize(new Account("com.google", "test2"));
|
D | BUILD | 113 "//java/com/google/android/libraries/mobiledatadownload/account:AccountUtil", 336 "//java/com/google/android/libraries/mobiledatadownload/account:AccountUtil",
|
D | FileGroupManagerTest.java | 62 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/ |
D | BUILD | 138 "//java/com/google/android/libraries/mobiledatadownload/account:AccountUtil",
|
D | FileGroupManager.java | 43 import com.google.android.libraries.mobiledatadownload.account.AccountUtil; 2910 serializedAccounts.add(AccountUtil.serialize(account));
|