Home
last modified time | relevance | path

Searched refs:mStateConditions (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/core/java/com/android/server/policy/
DDeviceStateProviderImpl.java297 private final SparseArray<BooleanSupplier> mStateConditions = new SparseArray<>(); field in DeviceStateProviderImpl
379 mStateConditions.put(state, FALSE_BOOLEAN_SUPPLIER); in setStateConditions()
381 mStateConditions.put(state, TRUE_BOOLEAN_SUPPLIER); in setStateConditions()
433 mStateConditions.put(state, new AndBooleanSupplier(suppliers)); in setStateConditions()
436 mStateConditions.put(state, suppliers.get(0)); in setStateConditions()
439 mStateConditions.put(state, TRUE_BOOLEAN_SUPPLIER); in setStateConditions()
444 mStateConditions.put(state, FALSE_BOOLEAN_SUPPLIER); in setStateConditions()
538 conditionSatisfied = mStateConditions.get(state).getAsBoolean(); in notifyDeviceStateChangedIfNeeded()
/frameworks/base/services/foldables/devicestateprovider/src/com/android/server/policy/
DFoldableDeviceStateProvider.java85 private final SparseArray<BooleanSupplier> mStateConditions = new SparseArray<>(); field in FoldableDeviceStateProvider
204 if (mStateConditions.get(configuration.mDeviceState.getIdentifier()) != null) { in assertUniqueDeviceStateIdentifier()
212 mStateConditions.put(configuration.mDeviceState.getIdentifier(), () -> in initialiseStateConditions()
292 conditionSatisfied = mStateConditions.get(state).getAsBoolean(); in notifyDeviceStateChangedIfNeeded()