Search in sources :

Example 6 with IShortcutService

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);
    }
}
Also used : IShortcutService(com.android.internal.policy.IShortcutService) RemoteException(android.os.RemoteException)

Aggregations

RemoteException (android.os.RemoteException)6 IShortcutService (com.android.internal.policy.IShortcutService)6 ActivityNotFoundException (android.content.ActivityNotFoundException)3 Intent (android.content.Intent)3 IDeviceIdleController (android.os.IDeviceIdleController)3 RecognizerIntent (android.speech.RecognizerIntent)3 IWindowManager (android.view.IWindowManager)3 KeyCharacterMap (android.view.KeyCharacterMap)3 WindowManager (android.view.WindowManager)3 LayoutParams (android.view.WindowManager.LayoutParams)3 IStatusBarService (com.android.internal.statusbar.IStatusBarService)3 CameraAccessException (android.hardware.camera2.CameraAccessException)1 TelecomManager (android.telecom.TelecomManager)1 IOException (java.io.IOException)1