1a74b9caa2fb6435f1c01c5e8766b89235c4e3d5akeunyoung/* 2a74b9caa2fb6435f1c01c5e8766b89235c4e3d5akeunyoung * Copyright (C) 2015 The Android Open Source Project 3a74b9caa2fb6435f1c01c5e8766b89235c4e3d5akeunyoung * 4a74b9caa2fb6435f1c01c5e8766b89235c4e3d5akeunyoung * Licensed under the Apache License, Version 2.0 (the "License"); 5a74b9caa2fb6435f1c01c5e8766b89235c4e3d5akeunyoung * you may not use this file except in compliance with the License. 6a74b9caa2fb6435f1c01c5e8766b89235c4e3d5akeunyoung * You may obtain a copy of the License at 7a74b9caa2fb6435f1c01c5e8766b89235c4e3d5akeunyoung * 8a74b9caa2fb6435f1c01c5e8766b89235c4e3d5akeunyoung * http://www.apache.org/licenses/LICENSE-2.0 9a74b9caa2fb6435f1c01c5e8766b89235c4e3d5akeunyoung * 10a74b9caa2fb6435f1c01c5e8766b89235c4e3d5akeunyoung * Unless required by applicable law or agreed to in writing, software 11a74b9caa2fb6435f1c01c5e8766b89235c4e3d5akeunyoung * distributed under the License is distributed on an "AS IS" BASIS, 12a74b9caa2fb6435f1c01c5e8766b89235c4e3d5akeunyoung * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13a74b9caa2fb6435f1c01c5e8766b89235c4e3d5akeunyoung * See the License for the specific language governing permissions and 14a74b9caa2fb6435f1c01c5e8766b89235c4e3d5akeunyoung * limitations under the License. 15a74b9caa2fb6435f1c01c5e8766b89235c4e3d5akeunyoung */ 16a74b9caa2fb6435f1c01c5e8766b89235c4e3d5akeunyoung 17e54ac276796c6535558f8444d882adecd19ce2bdKeun-young Parkpackage android.car; 18a74b9caa2fb6435f1c01c5e8766b89235c4e3d5akeunyoung 1946371473c416415fb6bcb8db85686669c3d65af6Vitalii Tomkivimport android.car.IAppFocusListener; 20d15d88777f07265b258f637e4967942d98bd6333Vitalii Tomkivimport android.car.IAppFocusOwnershipCallback; 21e4c90c4a615a4d5411a0cc49b75e002a305c858fkeunyoung 22e54ac276796c6535558f8444d882adecd19ce2bdKeun-young Park/** @hide */ 2346371473c416415fb6bcb8db85686669c3d65af6Vitalii Tomkivinterface IAppFocus { 24d72b53500006e84b0c69e650878267c693c164a3Jason Tholstrup void registerFocusListener(IAppFocusListener callback, int appType) = 0; 25d72b53500006e84b0c69e650878267c693c164a3Jason Tholstrup void unregisterFocusListener(IAppFocusListener callback, int appType) = 1; 2646371473c416415fb6bcb8db85686669c3d65af6Vitalii Tomkiv int[] getActiveAppTypes() = 2; 27d72b53500006e84b0c69e650878267c693c164a3Jason Tholstrup /** callback used as a token */ 28d15d88777f07265b258f637e4967942d98bd6333Vitalii Tomkiv boolean isOwningFocus(IAppFocusOwnershipCallback callback, int appType) = 3; 29d72b53500006e84b0c69e650878267c693c164a3Jason Tholstrup /** callback used as a token */ 30d15d88777f07265b258f637e4967942d98bd6333Vitalii Tomkiv int requestAppFocus(IAppFocusOwnershipCallback callback, int appType) = 4; 31d72b53500006e84b0c69e650878267c693c164a3Jason Tholstrup /** callback used as a token */ 32d15d88777f07265b258f637e4967942d98bd6333Vitalii Tomkiv void abandonAppFocus(IAppFocusOwnershipCallback callback, int appType) = 5; 33e4c90c4a615a4d5411a0cc49b75e002a305c858fkeunyoung} 34