1af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock/*
2af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock * Copyright (C) 2014 The Android Open Source Project
3af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock *
4af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock * Licensed under the Apache License, Version 2.0 (the "License");
5af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock * you may not use this file except in compliance with the License.
6af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock * You may obtain a copy of the License at
7af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock *
8af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock *      http://www.apache.org/licenses/LICENSE-2.0
9af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock *
10af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock * Unless required by applicable law or agreed to in writing, software
11af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock * distributed under the License is distributed on an "AS IS" BASIS,
12af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock * See the License for the specific language governing permissions and
14af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock * limitations under the License.
15af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock */
16af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock
17af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlockpackage com.android.systemui.statusbar.policy;
18af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock
199c7844cb91b43929d0a86b1c90aa1efb37f5463aJason Monkimport com.android.systemui.Dumpable;
208852905b0b3837e326127c6dfef6f699124ce715Jason Monkimport com.android.systemui.statusbar.policy.HotspotController.Callback;
218852905b0b3837e326127c6dfef6f699124ce715Jason Monk
229c7844cb91b43929d0a86b1c90aa1efb37f5463aJason Monkpublic interface HotspotController extends CallbackController<Callback>, Dumpable {
23af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock    boolean isHotspotEnabled();
24e645aee45a7784d772e4bdf846dd2e77335f30f2Jason Monk    boolean isHotspotTransient();
25e645aee45a7784d772e4bdf846dd2e77335f30f2Jason Monk
2651e4dc0a153bd0da197728ce6fe34df662b1cea2Jason Monk    void setHotspotEnabled(boolean enabled);
2728680c61c9b4a617c3a9470e630179b861f0bc20Jason Monk    boolean isHotspotSupported();
28af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock
29af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock    public interface Callback {
3051e4dc0a153bd0da197728ce6fe34df662b1cea2Jason Monk        void onHotspotChanged(boolean enabled);
31af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock    }
32af8d6c44f06d2f8baac2c5774a9efdae3fc36797John Spurlock}
33