Loading keystore/java/android/security/IKeyChainAliasCallback.aidl +1 −1 Original line number Diff line number Diff line Loading @@ -20,7 +20,7 @@ package android.security; * * @hide */ interface IKeyChainAliasCallback { oneway interface IKeyChainAliasCallback { void alias(String alias); } services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java +9 −13 Original line number Diff line number Diff line Loading @@ -4851,19 +4851,15 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { private void sendPrivateKeyAliasResponse(final String alias, final IBinder responseBinder) { final IKeyChainAliasCallback keyChainAliasResponse = IKeyChainAliasCallback.Stub.asInterface(responseBinder); new AsyncTask<Void, Void, Void>() { @Override protected Void doInBackground(Void... unused) { // Send the response. It's OK to do this from the main thread because IKeyChainAliasCallback // is oneway, which means it won't block if the recipient lives in another process. try { keyChainAliasResponse.alias(alias); } catch (Exception e) { // Catch everything (not just RemoteException): caller could throw a // RuntimeException back across processes. // Caller could throw RuntimeException or RemoteException back across processes. Catch // everything just to be sure. Log.e(LOG_TAG, "error while responding to callback", e); } return null; } }.execute(); } /** Loading Loading
keystore/java/android/security/IKeyChainAliasCallback.aidl +1 −1 Original line number Diff line number Diff line Loading @@ -20,7 +20,7 @@ package android.security; * * @hide */ interface IKeyChainAliasCallback { oneway interface IKeyChainAliasCallback { void alias(String alias); }
services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java +9 −13 Original line number Diff line number Diff line Loading @@ -4851,19 +4851,15 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { private void sendPrivateKeyAliasResponse(final String alias, final IBinder responseBinder) { final IKeyChainAliasCallback keyChainAliasResponse = IKeyChainAliasCallback.Stub.asInterface(responseBinder); new AsyncTask<Void, Void, Void>() { @Override protected Void doInBackground(Void... unused) { // Send the response. It's OK to do this from the main thread because IKeyChainAliasCallback // is oneway, which means it won't block if the recipient lives in another process. try { keyChainAliasResponse.alias(alias); } catch (Exception e) { // Catch everything (not just RemoteException): caller could throw a // RuntimeException back across processes. // Caller could throw RuntimeException or RemoteException back across processes. Catch // everything just to be sure. Log.e(LOG_TAG, "error while responding to callback", e); } return null; } }.execute(); } /** Loading