Loading core/java/android/app/ActivityTaskManager.java +0 −19 Original line number Original line Diff line number Diff line Loading @@ -30,7 +30,6 @@ import android.os.IBinder; import android.os.RemoteException; import android.os.RemoteException; import android.os.ServiceManager; import android.os.ServiceManager; import android.util.Singleton; import android.util.Singleton; import android.window.ITaskOrganizerController; import java.util.List; import java.util.List; Loading Loading @@ -159,24 +158,6 @@ public class ActivityTaskManager { } } }; }; /** @hide */ @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public static ITaskOrganizerController getTaskOrganizerController() { return ITaskOrganizerControllerSingleton.get(); } private static final Singleton<ITaskOrganizerController> ITaskOrganizerControllerSingleton = new Singleton<ITaskOrganizerController>() { @Override protected ITaskOrganizerController create() { try { return getService().getTaskOrganizerController(); } catch (RemoteException e) { return null; } } }; /** /** * Sets the windowing mode for a specific task. Only works on tasks of type * Sets the windowing mode for a specific task. Only works on tasks of type * {@link WindowConfiguration#ACTIVITY_TYPE_STANDARD} * {@link WindowConfiguration#ACTIVITY_TYPE_STANDARD} Loading core/java/android/app/IActivityTaskManager.aidl +3 −6 Original line number Original line Diff line number Diff line Loading @@ -29,7 +29,6 @@ import android.app.IProcessObserver; import android.app.IRequestFinishCallback; import android.app.IRequestFinishCallback; import android.app.IServiceConnection; import android.app.IServiceConnection; import android.app.IStopUserCallback; import android.app.IStopUserCallback; import android.window.ITaskOrganizerController; import android.app.ITaskStackListener; import android.app.ITaskStackListener; import android.app.IUiAutomationConnection; import android.app.IUiAutomationConnection; import android.app.IUidObserver; import android.app.IUidObserver; Loading Loading @@ -69,9 +68,9 @@ import android.os.StrictMode; import android.os.WorkSource; import android.os.WorkSource; import android.service.voice.IVoiceInteractionSession; import android.service.voice.IVoiceInteractionSession; import android.view.IRecentsAnimationRunner; import android.view.IRecentsAnimationRunner; import android.window.ITaskOrganizer; import android.view.RemoteAnimationDefinition; import android.view.RemoteAnimationDefinition; import android.view.RemoteAnimationAdapter; import android.view.RemoteAnimationAdapter; import android.window.IWindowOrganizerController; import com.android.internal.app.IVoiceInteractor; import com.android.internal.app.IVoiceInteractor; import com.android.internal.os.IResultReceiver; import com.android.internal.os.IResultReceiver; import com.android.internal.policy.IKeyguardDismissCallback; import com.android.internal.policy.IKeyguardDismissCallback; Loading Loading @@ -340,10 +339,8 @@ interface IActivityTaskManager { in Rect tempDockedTaskInsetBounds, in Rect tempDockedTaskInsetBounds, in Rect tempOtherTaskBounds, in Rect tempOtherTaskInsetBounds); in Rect tempOtherTaskBounds, in Rect tempOtherTaskInsetBounds); /** /** Returns an interface enabling the management of window organizers. */ * Returns an interface enabling the management of task organizers. IWindowOrganizerController getWindowOrganizerController(); */ ITaskOrganizerController getTaskOrganizerController(); /** /** * Sets whether we are currently in an interactive split screen resize operation where we * Sets whether we are currently in an interactive split screen resize operation where we Loading core/java/android/window/ITaskOrganizer.aidl +15 −22 Original line number Original line Diff line number Diff line /* //device/java/android/android/view/ITaskOrganizer.aidl /* ** * Copyright (C) 2019 The Android Open Source Project ** Copyright 2019, The Android Open Source Project * ** * Licensed under the Apache License, Version 2.0 (the "License"); ** Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. ** you may not use this file except in compliance with the License. * You may obtain a copy of the License at ** You may obtain a copy of the License at * ** * http://www.apache.org/licenses/LICENSE-2.0 ** http://www.apache.org/licenses/LICENSE-2.0 * ** * Unless required by applicable law or agreed to in writing, software ** Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, ** distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and ** See the License for the specific language governing permissions and * limitations under the License. ** limitations under the License. */ */ package android.window; package android.window; Loading @@ -29,12 +28,6 @@ oneway interface ITaskOrganizer { void taskAppeared(in ActivityManager.RunningTaskInfo taskInfo); void taskAppeared(in ActivityManager.RunningTaskInfo taskInfo); void taskVanished(in ActivityManager.RunningTaskInfo taskInfo); void taskVanished(in ActivityManager.RunningTaskInfo taskInfo); /** * Called upon completion of * ActivityTaskManagerService#applyTaskOrganizerTransaction */ void transactionReady(int id, in SurfaceControl.Transaction t); /** /** * Will fire when core attributes of a Task's info change. Relevant properties include the * Will fire when core attributes of a Task's info change. Relevant properties include the * {@link WindowConfiguration.ActivityType} and whether it is resizable. * {@link WindowConfiguration.ActivityType} and whether it is resizable. Loading core/java/android/window/ITaskOrganizerController.aidl +0 −14 Original line number Original line Diff line number Diff line Loading @@ -36,20 +36,6 @@ interface ITaskOrganizerController { */ */ void unregisterTaskOrganizer(ITaskOrganizer organizer); void unregisterTaskOrganizer(ITaskOrganizer organizer); /** * Apply multiple WindowContainer operations at once. * @param organizer If non-null this transaction will use the synchronization * scheme described in BLASTSyncEngine.java. The SurfaceControl transaction * containing the effects of this WindowContainer transaction will be passed * to the organizers Transaction ready callback. If null the transaction * will apply with non particular synchronization constraints (other than * it will all apply at once). * @return If organizer was non-null returns an ID for the sync operation which will * later be passed to transactionReady. This lets TaskOrganizer implementations * differentiate overlapping sync operations. */ int applyContainerTransaction(in WindowContainerTransaction t, ITaskOrganizer organizer); /** Creates a persistent root task in WM for a particular windowing-mode. */ /** Creates a persistent root task in WM for a particular windowing-mode. */ ActivityManager.RunningTaskInfo createRootTask(int displayId, int windowingMode); ActivityManager.RunningTaskInfo createRootTask(int displayId, int windowingMode); Loading core/java/android/window/IWindowContainerTransactionCallback.aidl 0 → 100644 +28 −0 Original line number Original line Diff line number Diff line /* * Copyright (C) 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package android.window; import android.view.SurfaceControl; /** * See WindowOrganizer#applyTransaction. * {@hide} */ oneway interface IWindowContainerTransactionCallback { /** Called upon completion of WindowOrganizer#applyTransaction */ void transactionReady(int id, in SurfaceControl.Transaction t); } Loading
core/java/android/app/ActivityTaskManager.java +0 −19 Original line number Original line Diff line number Diff line Loading @@ -30,7 +30,6 @@ import android.os.IBinder; import android.os.RemoteException; import android.os.RemoteException; import android.os.ServiceManager; import android.os.ServiceManager; import android.util.Singleton; import android.util.Singleton; import android.window.ITaskOrganizerController; import java.util.List; import java.util.List; Loading Loading @@ -159,24 +158,6 @@ public class ActivityTaskManager { } } }; }; /** @hide */ @RequiresPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS) public static ITaskOrganizerController getTaskOrganizerController() { return ITaskOrganizerControllerSingleton.get(); } private static final Singleton<ITaskOrganizerController> ITaskOrganizerControllerSingleton = new Singleton<ITaskOrganizerController>() { @Override protected ITaskOrganizerController create() { try { return getService().getTaskOrganizerController(); } catch (RemoteException e) { return null; } } }; /** /** * Sets the windowing mode for a specific task. Only works on tasks of type * Sets the windowing mode for a specific task. Only works on tasks of type * {@link WindowConfiguration#ACTIVITY_TYPE_STANDARD} * {@link WindowConfiguration#ACTIVITY_TYPE_STANDARD} Loading
core/java/android/app/IActivityTaskManager.aidl +3 −6 Original line number Original line Diff line number Diff line Loading @@ -29,7 +29,6 @@ import android.app.IProcessObserver; import android.app.IRequestFinishCallback; import android.app.IRequestFinishCallback; import android.app.IServiceConnection; import android.app.IServiceConnection; import android.app.IStopUserCallback; import android.app.IStopUserCallback; import android.window.ITaskOrganizerController; import android.app.ITaskStackListener; import android.app.ITaskStackListener; import android.app.IUiAutomationConnection; import android.app.IUiAutomationConnection; import android.app.IUidObserver; import android.app.IUidObserver; Loading Loading @@ -69,9 +68,9 @@ import android.os.StrictMode; import android.os.WorkSource; import android.os.WorkSource; import android.service.voice.IVoiceInteractionSession; import android.service.voice.IVoiceInteractionSession; import android.view.IRecentsAnimationRunner; import android.view.IRecentsAnimationRunner; import android.window.ITaskOrganizer; import android.view.RemoteAnimationDefinition; import android.view.RemoteAnimationDefinition; import android.view.RemoteAnimationAdapter; import android.view.RemoteAnimationAdapter; import android.window.IWindowOrganizerController; import com.android.internal.app.IVoiceInteractor; import com.android.internal.app.IVoiceInteractor; import com.android.internal.os.IResultReceiver; import com.android.internal.os.IResultReceiver; import com.android.internal.policy.IKeyguardDismissCallback; import com.android.internal.policy.IKeyguardDismissCallback; Loading Loading @@ -340,10 +339,8 @@ interface IActivityTaskManager { in Rect tempDockedTaskInsetBounds, in Rect tempDockedTaskInsetBounds, in Rect tempOtherTaskBounds, in Rect tempOtherTaskInsetBounds); in Rect tempOtherTaskBounds, in Rect tempOtherTaskInsetBounds); /** /** Returns an interface enabling the management of window organizers. */ * Returns an interface enabling the management of task organizers. IWindowOrganizerController getWindowOrganizerController(); */ ITaskOrganizerController getTaskOrganizerController(); /** /** * Sets whether we are currently in an interactive split screen resize operation where we * Sets whether we are currently in an interactive split screen resize operation where we Loading
core/java/android/window/ITaskOrganizer.aidl +15 −22 Original line number Original line Diff line number Diff line /* //device/java/android/android/view/ITaskOrganizer.aidl /* ** * Copyright (C) 2019 The Android Open Source Project ** Copyright 2019, The Android Open Source Project * ** * Licensed under the Apache License, Version 2.0 (the "License"); ** Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. ** you may not use this file except in compliance with the License. * You may obtain a copy of the License at ** You may obtain a copy of the License at * ** * http://www.apache.org/licenses/LICENSE-2.0 ** http://www.apache.org/licenses/LICENSE-2.0 * ** * Unless required by applicable law or agreed to in writing, software ** Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, ** distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and ** See the License for the specific language governing permissions and * limitations under the License. ** limitations under the License. */ */ package android.window; package android.window; Loading @@ -29,12 +28,6 @@ oneway interface ITaskOrganizer { void taskAppeared(in ActivityManager.RunningTaskInfo taskInfo); void taskAppeared(in ActivityManager.RunningTaskInfo taskInfo); void taskVanished(in ActivityManager.RunningTaskInfo taskInfo); void taskVanished(in ActivityManager.RunningTaskInfo taskInfo); /** * Called upon completion of * ActivityTaskManagerService#applyTaskOrganizerTransaction */ void transactionReady(int id, in SurfaceControl.Transaction t); /** /** * Will fire when core attributes of a Task's info change. Relevant properties include the * Will fire when core attributes of a Task's info change. Relevant properties include the * {@link WindowConfiguration.ActivityType} and whether it is resizable. * {@link WindowConfiguration.ActivityType} and whether it is resizable. Loading
core/java/android/window/ITaskOrganizerController.aidl +0 −14 Original line number Original line Diff line number Diff line Loading @@ -36,20 +36,6 @@ interface ITaskOrganizerController { */ */ void unregisterTaskOrganizer(ITaskOrganizer organizer); void unregisterTaskOrganizer(ITaskOrganizer organizer); /** * Apply multiple WindowContainer operations at once. * @param organizer If non-null this transaction will use the synchronization * scheme described in BLASTSyncEngine.java. The SurfaceControl transaction * containing the effects of this WindowContainer transaction will be passed * to the organizers Transaction ready callback. If null the transaction * will apply with non particular synchronization constraints (other than * it will all apply at once). * @return If organizer was non-null returns an ID for the sync operation which will * later be passed to transactionReady. This lets TaskOrganizer implementations * differentiate overlapping sync operations. */ int applyContainerTransaction(in WindowContainerTransaction t, ITaskOrganizer organizer); /** Creates a persistent root task in WM for a particular windowing-mode. */ /** Creates a persistent root task in WM for a particular windowing-mode. */ ActivityManager.RunningTaskInfo createRootTask(int displayId, int windowingMode); ActivityManager.RunningTaskInfo createRootTask(int displayId, int windowingMode); Loading
core/java/android/window/IWindowContainerTransactionCallback.aidl 0 → 100644 +28 −0 Original line number Original line Diff line number Diff line /* * Copyright (C) 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package android.window; import android.view.SurfaceControl; /** * See WindowOrganizer#applyTransaction. * {@hide} */ oneway interface IWindowContainerTransactionCallback { /** Called upon completion of WindowOrganizer#applyTransaction */ void transactionReady(int id, in SurfaceControl.Transaction t); }