1/*
2 * Copyright (C) 2016 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package com.android.settings.fuelgauge;
18
19import android.content.Intent;
20import com.android.internal.os.BatterySipper;
21
22/**
23 * Feature Provider used in power usage
24 */
25public interface PowerUsageFeatureProvider {
26    /**
27     * Check whether location setting is enabled
28     */
29    boolean isLocationSettingEnabled(String[] packages);
30
31    /**
32     * Check whether additional battery info feature is enabled.
33     */
34    boolean isAdditionalBatteryInfoEnabled();
35
36    /**
37     * Gets an {@link Intent} to show additional battery info.
38     */
39    Intent getAdditionalBatteryInfoIntent();
40
41    /**
42     * Check whether advanced ui is enabled
43     */
44    boolean isAdvancedUiEnabled();
45
46    /**
47     * Check whether it is type service
48     */
49    boolean isTypeService(BatterySipper sipper);
50
51    /**
52     * Check whether it is type system
53     */
54    boolean isTypeSystem(BatterySipper sipper);
55
56    /**
57     * Check whether the toggle for power accounting is enabled
58     */
59    boolean isPowerAccountingToggleEnabled();
60}
61