java类android.accounts.IAccountAuthenticator的实例源码

VAccountManagerService.java 文件源码 项目:VirtualHook 阅读 37 收藏 0 点赞 0 评论 0
public void checkAccount() {
    if (mCurrentAccount >= mAccountsOfType.length) {
        sendResult();
        return;
    }

    final IAccountAuthenticator accountAuthenticator = mAuthenticator;
    if (accountAuthenticator == null) {
        // It is possible that the authenticator has died, which is indicated by
        // mAuthenticator being set to null. If this happens then just abort.
        // There is no need to send back a result or error in this case since
        // that already happened when mAuthenticator was cleared.
        Log.v(TAG, "checkAccount: aborting session since we are no longer"
                + " connected to the authenticator, " + toDebugString());
        return;
    }
    try {
        accountAuthenticator.hasFeatures(this, mAccountsOfType[mCurrentAccount], mFeatures);
    } catch (RemoteException e) {
        onError(AccountManager.ERROR_CODE_REMOTE_EXCEPTION, "remote exception");
    }
}
VAccountManagerService.java 文件源码 项目:TPlayer 阅读 31 收藏 0 点赞 0 评论 0
public void checkAccount() {
    if (mCurrentAccount >= mAccountsOfType.length) {
        sendResult();
        return;
    }

    final IAccountAuthenticator accountAuthenticator = mAuthenticator;
    if (accountAuthenticator == null) {
        // It is possible that the authenticator has died, which is indicated by
        // mAuthenticator being set to null. If this happens then just abort.
        // There is no need to send back a result or error in this case since
        // that already happened when mAuthenticator was cleared.
        Log.v(TAG, "checkAccount: aborting session since we are no longer"
                + " connected to the authenticator, " + toDebugString());
        return;
    }
    try {
        accountAuthenticator.hasFeatures(this, mAccountsOfType[mCurrentAccount], mFeatures);
    } catch (RemoteException e) {
        onError(AccountManager.ERROR_CODE_REMOTE_EXCEPTION, "remote exception");
    }
}
VAccountManagerService.java 文件源码 项目:container 阅读 36 收藏 0 点赞 0 评论 0
public void checkAccount() {
    if (mCurrentAccount >= mAccountsOfType.length) {
        sendResult();
        return;
    }

    final IAccountAuthenticator accountAuthenticator = mAuthenticator;
    if (accountAuthenticator == null) {
        // It is possible that the authenticator has died, which is indicated by
        // mAuthenticator being set to null. If this happens then just abort.
        // There is no need to send back a result or error in this case since
        // that already happened when mAuthenticator was cleared.
        Log.v(TAG, "checkAccount: aborting session since we are no longer"
                      + " connected to the authenticator, " + toDebugString());
        return;
    }
    try {
        accountAuthenticator.hasFeatures(this, mAccountsOfType[mCurrentAccount], mFeatures);
    } catch (RemoteException e) {
        onError(AccountManager.ERROR_CODE_REMOTE_EXCEPTION, "remote exception");
    }
}
VAccountManagerService.java 文件源码 项目:VirtualHook 阅读 30 收藏 0 点赞 0 评论 0
@Override
public void onServiceConnected(ComponentName name, IBinder service) {
    mAuthenticator = IAccountAuthenticator.Stub.asInterface(service);
    try {
        run();
    } catch (RemoteException e) {
        onError(AccountManager.ERROR_CODE_REMOTE_EXCEPTION,
                "remote exception");
    }
}
VAccountManagerService.java 文件源码 项目:TPlayer 阅读 34 收藏 0 点赞 0 评论 0
@Override
public void onServiceConnected(ComponentName name, IBinder service) {
    mAuthenticator = IAccountAuthenticator.Stub.asInterface(service);
    try {
        run();
    } catch (RemoteException e) {
        onError(AccountManager.ERROR_CODE_REMOTE_EXCEPTION,
                "remote exception");
    }
}
VAccountManagerService.java 文件源码 项目:container 阅读 31 收藏 0 点赞 0 评论 0
@Override
public void onServiceConnected(ComponentName name, IBinder service) {
    mAuthenticator = IAccountAuthenticator.Stub.asInterface(service);
    try {
        run();
    } catch (RemoteException e) {
        onError(AccountManager.ERROR_CODE_REMOTE_EXCEPTION,
                "remote exception");
    }
}


问题


面经


文章

微信
公众号

扫码关注公众号