Code examples for Account

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
49:	Account a2 = new Account("name_b", "type_b"); 
50:	Robolectric.shadowOf(am).addAccount(a2); 
-
53:	assertThat(am.getAccounts()[1]).isSameAs(a2); 
Full Snippet Info
8
CodeRank
142:	final Account account2 = new Account("b@example.com", "example.type.2"); 
-
179:	engine.setIsSyncable(account2, 0, authority1, 1); 
180:	engine.setSyncAutomatically(account2, 0, authority1, true); 
-
185:	engine.setIsSyncable(account2, 0, authority2, 0); 
186:	engine.setSyncAutomatically(account2, 0, authority2, true); 
-
207:	syncs = engine.getPeriodicSyncs(account2, 0, authority1); 
-
212:	assertEquals(true, engine.getSyncAutomatically(account2, 0, authority1)); 
-
214:	assertEquals(true, engine.getSyncAutomatically(account2, 0, authority2)); 
-
217:	assertEquals(1, engine.getIsSyncable(account2, 0, authority1)); 
-
219:	assertEquals(0, engine.getIsSyncable(account2, 0, authority2)); 
Full Snippet Info
8
CodeRank
36:	GitHubAccount account = new GitHubAccount(new Account("m", "t"), 
Full Snippet Info
8
CodeRank
45:	Account account = new Account("name", "type"); 
46:	assertThat(account.toString()).isEqualTo("Account {name=name, type=type}"); 
Full Snippet Info
7
CodeRank
18:	Account a = new Account("a", "b"); 
-
22:	assertThat(sync.account).isSameAs(a); 
Full Snippet Info
7
CodeRank
97:	Account account = new Account("accountName", "accountType"); 
98:	long groupId = createGroup(account, "sid", "def", 
-
100:	long contactId2 = queryContactId(createRawContactWithName("Helen", "Parr", 
Full Snippet Info
7
CodeRank
39:	super.setAccount(new android.accounts.Account(account.name, "unknown")); 
Full Snippet Info
6
CodeRank
256:	setAccount(new Account(name, type), false); 
Full Snippet Info
6
CodeRank
56:	final Account account = new Account(options.getString(OPTIONS_USERNAME), 
-
58:	AccountManager.get(EasTestAuthenticatorService.this).addAccountExplicitly( 
Full Snippet Info
7
CodeRank
80:	Uri uri = Uri.parse(AccountUtils.constructFullURLForAccount(context, account)); 
-
84:	String password = AccountManager.get(context).getPassword(account); 
Full Snippet Info
6
CodeRank