Java Code Examples for org.chromium.sync.signin.AccountManagerHelper#getAccountFromName()
The following examples show how to use
org.chromium.sync.signin.AccountManagerHelper#getAccountFromName() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: OAuth2TokenService.java From delion with Apache License 2.0 | 5 votes |
private static Account getAccountOrNullFromUsername(Context context, String username) { if (username == null) { Log.e(TAG, "Username is null"); return null; } AccountManagerHelper accountManagerHelper = AccountManagerHelper.get(context); Account account = accountManagerHelper.getAccountFromName(username); if (account == null) { Log.e(TAG, "Account not found for provided username."); return null; } return account; }
Example 2
Source File: OAuth2TokenService.java From android-chromium with BSD 2-Clause "Simplified" License | 5 votes |
private static Account getAccountOrNullFromUsername(Context context, String username) { if (username == null) { Log.e(TAG, "Username is null"); return null; } AccountManagerHelper accountManagerHelper = AccountManagerHelper.get(context); Account account = accountManagerHelper.getAccountFromName(username); if (account == null) { Log.e(TAG, "Account not found for provided username."); return null; } return account; }
Example 3
Source File: OAuth2TokenService.java From android-chromium with BSD 2-Clause "Simplified" License | 5 votes |
private static Account getAccountOrNullFromUsername(Context context, String username) { if (username == null) { Log.e(TAG, "Username is null"); return null; } AccountManagerHelper accountManagerHelper = AccountManagerHelper.get(context); Account account = accountManagerHelper.getAccountFromName(username); if (account == null) { Log.e(TAG, "Account not found for provided username."); return null; } return account; }