Search in sources :

Example 11 with TrustManager

use of android.app.trust.TrustManager in project android_packages_apps_Settings by DirtyUnicorns.

the class ConfirmDeviceCredentialBaseFragment method onAuthenticated.

@Override
public void onAuthenticated() {
    // Check whether we are still active.
    if (getActivity() != null && getActivity().isResumed()) {
        TrustManager trustManager = (TrustManager) getActivity().getSystemService(Context.TRUST_SERVICE);
        trustManager.setDeviceLockedForUser(mEffectiveUserId, false);
        authenticationSucceeded();
        checkForPendingIntent();
    }
}
Also used : TrustManager(android.app.trust.TrustManager)

Example 12 with TrustManager

use of android.app.trust.TrustManager in project android_packages_apps_Settings by crdroidandroid.

the class ConfirmDeviceCredentialBaseFragment method onAuthenticated.

@Override
public void onAuthenticated() {
    // Check whether we are still active.
    if (getActivity() != null && getActivity().isResumed()) {
        TrustManager trustManager = (TrustManager) getActivity().getSystemService(Context.TRUST_SERVICE);
        trustManager.setDeviceLockedForUser(mEffectiveUserId, false);
        authenticationSucceeded();
        checkForPendingIntent();
    }
}
Also used : TrustManager(android.app.trust.TrustManager)

Aggregations

TrustManager (android.app.trust.TrustManager)12 GateKeeperResponse (android.service.gatekeeper.GateKeeperResponse)5 VerifyCredentialResponse (com.android.internal.widget.VerifyCredentialResponse)5