Search in sources :

Example 56 with SomeArgs

use of com.android.internal.os.SomeArgs in project android_frameworks_base by AOSPA.

the class RecentsImplProxy method showRecents.

@Override
public void showRecents(boolean triggeredFromAltTab, boolean draggingInRecents, boolean animate, boolean reloadTasks, boolean fromHome, int growTarget) throws RemoteException {
    SomeArgs args = SomeArgs.obtain();
    args.argi1 = triggeredFromAltTab ? 1 : 0;
    args.argi2 = draggingInRecents ? 1 : 0;
    args.argi3 = animate ? 1 : 0;
    args.argi4 = reloadTasks ? 1 : 0;
    args.argi5 = fromHome ? 1 : 0;
    args.argi6 = growTarget;
    mHandler.sendMessage(mHandler.obtainMessage(MSG_SHOW_RECENTS, args));
}
Also used : SomeArgs(com.android.internal.os.SomeArgs)

Example 57 with SomeArgs

use of com.android.internal.os.SomeArgs in project android_frameworks_base by AOSPA.

the class RecentsImplProxy method toggleRecents.

@Override
public void toggleRecents(int growTarget) throws RemoteException {
    SomeArgs args = SomeArgs.obtain();
    args.argi1 = growTarget;
    mHandler.sendMessage(mHandler.obtainMessage(MSG_TOGGLE_RECENTS, args));
}
Also used : SomeArgs(com.android.internal.os.SomeArgs)

Example 58 with SomeArgs

use of com.android.internal.os.SomeArgs in project android_frameworks_base by crdroidandroid.

the class ViewRootImpl method dispatchInputEvent.

public void dispatchInputEvent(InputEvent event, InputEventReceiver receiver) {
    SomeArgs args = SomeArgs.obtain();
    args.arg1 = event;
    args.arg2 = receiver;
    Message msg = mHandler.obtainMessage(MSG_DISPATCH_INPUT_EVENT, args);
    msg.setAsynchronous(true);
    mHandler.sendMessage(msg);
}
Also used : Message(android.os.Message) SomeArgs(com.android.internal.os.SomeArgs)

Example 59 with SomeArgs

use of com.android.internal.os.SomeArgs in project android_frameworks_base by crdroidandroid.

the class RuntimePermissionPresenter method getAppPermissions.

/**
     * Gets the runtime permissions for an app.
     *
     * @param packageName The package for which to query.
     * @param callback Callback to receive the result.
     * @param handler Handler on which to invoke the callback.
     */
public void getAppPermissions(@NonNull String packageName, @NonNull OnResultCallback callback, @Nullable Handler handler) {
    SomeArgs args = SomeArgs.obtain();
    args.arg1 = packageName;
    args.arg2 = callback;
    args.arg3 = handler;
    Message message = mRemoteService.obtainMessage(RemoteService.MSG_GET_APP_PERMISSIONS, args);
    mRemoteService.processMessage(message);
}
Also used : Message(android.os.Message) SomeArgs(com.android.internal.os.SomeArgs)

Example 60 with SomeArgs

use of com.android.internal.os.SomeArgs in project android_frameworks_base by crdroidandroid.

the class CommandQueue method setSystemUiVisibility.

public void setSystemUiVisibility(int vis, int fullscreenStackVis, int dockedStackVis, int mask, Rect fullscreenStackBounds, Rect dockedStackBounds) {
    synchronized (mLock) {
        // Don't coalesce these, since it might have one time flags set such as
        // STATUS_BAR_UNHIDE which might get lost.
        SomeArgs args = SomeArgs.obtain();
        args.argi1 = vis;
        args.argi2 = fullscreenStackVis;
        args.argi3 = dockedStackVis;
        args.argi4 = mask;
        args.arg1 = fullscreenStackBounds;
        args.arg2 = dockedStackBounds;
        mHandler.obtainMessage(MSG_SET_SYSTEMUI_VISIBILITY, args).sendToTarget();
    }
}
Also used : SomeArgs(com.android.internal.os.SomeArgs)

Aggregations

SomeArgs (com.android.internal.os.SomeArgs)187 Message (android.os.Message)67 Point (android.graphics.Point)46 RemoteException (android.os.RemoteException)42 IAccessibilityInteractionConnectionCallback (android.view.accessibility.IAccessibilityInteractionConnectionCallback)36 AccessibilityNodeInfo (android.view.accessibility.AccessibilityNodeInfo)30 Region (android.graphics.Region)25 AccessibilityNodeProvider (android.view.accessibility.AccessibilityNodeProvider)18 IInputMethod (com.android.internal.view.IInputMethod)12 InputChannel (android.view.InputChannel)11 EditorInfo (android.view.inputmethod.EditorInfo)11 IInputContext (com.android.internal.view.IInputContext)11 Rect (android.graphics.Rect)7 Configuration (android.content.res.Configuration)6 Bundle (android.os.Bundle)6 IBinder (android.os.IBinder)6 InputBinding (android.view.inputmethod.InputBinding)6 InputConnection (android.view.inputmethod.InputConnection)6 InputMethod (android.view.inputmethod.InputMethod)6 IInputMethodClient (com.android.internal.view.IInputMethodClient)6