Home
last modified time | relevance | path

Searched refs:accounts (Results 1 – 4 of 4) sorted by relevance

/platform_testing/libraries/system-helpers/account-helper/src/android/system/helpers/
DAccountHelper.java19 import android.accounts.Account;
20 import android.accounts.AccountManager;
86 Account[] accounts = AccountManager.get(mContext).getAccounts(); in getRegisteredGoogleAccountOnDevice() local
87 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()
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/
DAuptTestCase.java19 import android.accounts.Account;
20 import android.accounts.AccountManager;
195 Account[] accounts = AccountManager.get(getInstrumentation().getContext()).getAccounts(); in getRegisteredEmailAccount() local
196 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()
/platform_testing/libraries/app-helpers/core/src/android/platform/helpers/
DAbstractStandardAppHelper2.java24 import android.accounts.Account;
25 import android.accounts.AccountManager;
449 Account[] accounts = AccountManager.get(context).getAccounts(); in hasRegisteredGoogleAccount() local
450 for (int i = 0; i < accounts.length; ++i) { in hasRegisteredGoogleAccount()
451 if (accounts[i].type.equals("com.google")) { in hasRegisteredGoogleAccount()
DAbstractStandardAppHelper.java24 import android.accounts.Account;
25 import android.accounts.AccountManager;
490 Account[] accounts = AccountManager.get(context).getAccounts(); in hasRegisteredGoogleAccount() local
491 for (int i = 0; i < accounts.length; ++i) { in hasRegisteredGoogleAccount()
492 if (accounts[i].type.equals("com.google")) { in hasRegisteredGoogleAccount()