use of com.android.internal.policy.IShortcutService in project android_frameworks_base by DirtyUnicorns.
the class PhoneWindowManager method registerShortcutKey.
@Override
public void registerShortcutKey(long shortcutCode, IShortcutService shortcutService) throws RemoteException {
synchronized (mLock) {
IShortcutService service = mShortcutKeyServices.get(shortcutCode);
if (service != null && service.asBinder().pingBinder()) {
throw new RemoteException("Key already exists.");
}
mShortcutKeyServices.put(shortcutCode, shortcutService);
}
}
Aggregations