Home
last modified time | relevance | path

Searched refs:mDeviceStates (Results 1 – 4 of 4) sorted by relevance

/frameworks/native/services/inputflinger/dispatcher/
DTouchedWindow.cpp42 for (const auto& [_, state] : mDeviceStates) { in hasHoveringPointers()
51 const auto stateIt = mDeviceStates.find(deviceId); in hasHoveringPointers()
52 if (stateIt == mDeviceStates.end()) { in hasHoveringPointers()
61 auto stateIt = mDeviceStates.find(deviceId); in clearHoveringPointers()
62 if (stateIt == mDeviceStates.end()) { in clearHoveringPointers()
68 mDeviceStates.erase(stateIt); in clearHoveringPointers()
73 const auto stateIt = mDeviceStates.find(deviceId); in hasHoveringPointer()
74 if (stateIt == mDeviceStates.end()) { in hasHoveringPointer()
82 std::vector<PointerProperties>& hoveringPointers = mDeviceStates[deviceId].hoveringPointers; in addHoveringPointer()
95 std::vector<PointerProperties>& touchingPointers = mDeviceStates[deviceId].touchingPointers; in addTouchingPointers()
[all …]
DTouchedWindow.h86 std::map<DeviceId, DeviceState> mDeviceStates; member
/frameworks/base/services/core/java/com/android/server/devicestate/
DDeviceStateManagerService.java138 private SparseArray<DeviceState> mDeviceStates = new SparseArray<>(); field in DeviceStateManagerService
373 List<DeviceState> supportedStates = new ArrayList<>(mDeviceStates.size()); in getSupportedStatesLocked()
374 for (int i = 0; i < mDeviceStates.size(); i++) { in getSupportedStatesLocked()
375 supportedStates.add(i, mDeviceStates.valueAt(i)); in getSupportedStatesLocked()
382 int[] supportedStates = new int[mDeviceStates.size()]; in getSupportedStateIdentifiersLocked()
384 supportedStates[i] = mDeviceStates.valueAt(i).getIdentifier(); in getSupportedStateIdentifiersLocked()
445 mDeviceStates.clear(); in updateSupportedStates()
451 mDeviceStates.put(state.getIdentifier(), state); in updateSupportedStates()
477 mRearDisplayState = mDeviceStates.get(rearDisplayIdentifier); in setRearDisplayStateLocked()
486 return mDeviceStates.contains(identifier); in isSupportedStateLocked()
[all …]
/frameworks/base/services/core/java/com/android/server/power/stats/
DPowerComponentAggregatedPowerStats.java63 private final int[] mDeviceStates; field in PowerComponentAggregatedPowerStats
88 mDeviceStates = new int[mDeviceStateConfig.length]; in PowerComponentAggregatedPowerStats()
117 mDeviceStates[stateId] = state; in setState()
247 uidStats.states[stateId] = mDeviceStates[deviceStateId]; in getUidStats()
326 int state = mDeviceStates[stateId]; in createDeviceStats()