Searched refs:accounts (Results 1 – 4 of 4) sorted by relevance
19 import android.accounts.Account;20 import android.accounts.AccountManager;86 Account[] accounts = AccountManager.get(mContext).getAccounts(); in getRegisteredGoogleAccountOnDevice() local87 Assert.assertTrue("Device doesn't have any account registered", accounts.length >= 1); in getRegisteredGoogleAccountOnDevice()88 for (int i = 0; i < accounts.length; ++i) { in getRegisteredGoogleAccountOnDevice()89 if (accounts[i].type.equals("com.google")) { in getRegisteredGoogleAccountOnDevice()90 return accounts[i].name; in getRegisteredGoogleAccountOnDevice()
19 import android.accounts.Account;20 import android.accounts.AccountManager;195 Account[] accounts = AccountManager.get(getInstrumentation().getContext()).getAccounts(); in getRegisteredEmailAccount() local196 Assert.assertTrue("Device doesn't have any account registered", accounts.length >= 1); in getRegisteredEmailAccount()197 for(int i =0; i < accounts.length; ++i) { in getRegisteredEmailAccount()198 if(accounts[i].type.equals("com.google")) { in getRegisteredEmailAccount()199 return accounts[i].name; in getRegisteredEmailAccount()
24 import android.accounts.Account;25 import android.accounts.AccountManager;449 Account[] accounts = AccountManager.get(context).getAccounts(); in hasRegisteredGoogleAccount() local450 for (int i = 0; i < accounts.length; ++i) { in hasRegisteredGoogleAccount()451 if (accounts[i].type.equals("com.google")) { in hasRegisteredGoogleAccount()
24 import android.accounts.Account;25 import android.accounts.AccountManager;490 Account[] accounts = AccountManager.get(context).getAccounts(); in hasRegisteredGoogleAccount() local491 for (int i = 0; i < accounts.length; ++i) { in hasRegisteredGoogleAccount()492 if (accounts[i].type.equals("com.google")) { in hasRegisteredGoogleAccount()