ConfirmationDialog: Pass accessibility options and implement isSupported().

Bug: 63928580
Test: Manually tested.
Change-Id: I6a06d10a4cb924c3e57c8e212ba4626cad00f4a1
This commit is contained in:
David Zeuthen
2018-02-26 11:04:18 -05:00
parent c5f5ad103f
commit bbb7f65a23
2 changed files with 46 additions and 6 deletions

View File

@@ -783,6 +783,20 @@ public class KeyStore {
}
}
/**
* Requests keystore to check if the confirmationui HAL is available.
*
* @return whether the confirmationUI HAL is available.
*/
public boolean isConfirmationPromptSupported() {
try {
return mBinder.isConfirmationPromptSupported();
} catch (RemoteException e) {
Log.w(TAG, "Cannot connect to keystore", e);
return false;
}
}
/**
* Returns a {@link KeyStoreException} corresponding to the provided keystore/keymaster error
* code.