Home
last modified time | relevance | path

Searched refs:PowerPolicyListener (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Car/Settings/src/com/android/car/settings/location/
DLocationStateListenerBasePreferenceController.java35 import com.android.car.settings.common.PowerPolicyListener;
86 PowerPolicyListener mPowerPolicyListener;
159 private void setPowerPolicyListener(PowerPolicyListener listener) { in setPowerPolicyListener()
168 setPowerPolicyListener(new PowerPolicyListener(getContext(), LOCATION, in addDefaultPowerPolicyListener()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DPowerPolicyListener.java37 public final class PowerPolicyListener { class
39 private static final Logger LOG = new Logger(PowerPolicyListener.class);
62 public PowerPolicyListener(Context context, int component, PolicyChangeHandler handler) { in PowerPolicyListener() method in PowerPolicyListener
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiStateSwitchPreferenceController.java31 import com.android.car.settings.common.PowerPolicyListener;
40 final PowerPolicyListener mPowerPolicyListener;
49 mPowerPolicyListener = new PowerPolicyListener(context, WIFI, isOn -> { in WifiStateSwitchPreferenceController()
/packages/services/Car/tests/carservice_test/src/com/android/car/power/
DCarPowerManagementTest.java332 PowerPolicyListener powerPolicyListener = new PowerPolicyListener(POWER_POLICY_S2R); in testSleepEntry()
395 PowerPolicyListener powerPolicyListener = new PowerPolicyListener(POWER_POLICY_S2R); in testUnallowedPowerStateEventAtSuspend()
607 PowerPolicyListener wifiOffListener = new PowerPolicyListener(policyIdWifiOff); in testApplyPowerPolicy_vhalPropertyUpdated()
608 PowerPolicyListener wifiOnListener = new PowerPolicyListener(policyIdWifiOn); in testApplyPowerPolicy_vhalPropertyUpdated()
975 private static final class PowerPolicyListener extends ICarPowerPolicyListener.Stub { class in CarPowerManagementTest
979 private PowerPolicyListener(String policyId) { in PowerPolicyListener() method in CarPowerManagementTest.PowerPolicyListener
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothStateSwitchPreferenceController.java40 import com.android.car.settings.common.PowerPolicyListener;
68 final PowerPolicyListener mPowerPolicyListener;
76 mPowerPolicyListener = new PowerPolicyListener(context, BLUETOOTH, in BluetoothStateSwitchPreferenceController()