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));
}
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));
}
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);
}
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);
}
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();
}
}
Aggregations