Searched refs:sw (Results 1 – 4 of 4) sorted by relevance
59 virtual bool hasSwitch(int32_t sw) const override { return mSwitches.count(sw); } in hasSwitch() argument78 void addSwitch(int32_t sw) { mSwitches.insert(sw); } in addSwitch() argument83 virtual int32_t getSwitchState(int32_t sw) const override { return 0; } in getSwitchState() argument
95 virtual bool hasSwitch(int32_t sw) const override;100 virtual int32_t getSwitchState(int32_t sw) const override;296 bool EvdevDeviceNode::hasSwitch(int32_t sw) const { in hasSwitch()297 if (sw >= 0 && sw <= SW_MAX) { in hasSwitch()298 return testBit(sw, mSwBitmask); in hasSwitch()330 int32_t EvdevDeviceNode::getSwitchState(int32_t sw) const { in getSwitchState()331 if (sw >= 0 && sw <= SW_MAX) { in getSwitchState()332 if (testBit(sw, mSwBitmask)) { in getSwitchState()336 return testBit(sw, swState) ? AKEY_STATE_DOWN : AKEY_STATE_UP; in getSwitchState()
87 virtual bool hasSwitch(int32_t sw) const = 0;96 virtual int32_t getSwitchState(int32_t sw) const = 0;
984 char sw[2]; in LSC_ProcessResp() local985 sw[0] = RecvData[recvlen - 2]; in LSC_ProcessResp()986 sw[1] = RecvData[recvlen - 1]; in LSC_ProcessResp()988 sw[0], sw[1]); in LSC_ProcessResp()992 if (sw[0] != 0x63) { in LSC_ProcessResp()993 gsLsExecuteResp[2] = sw[0]; in LSC_ProcessResp()994 gsLsExecuteResp[3] = sw[1]; in LSC_ProcessResp()998 if ((recvlen == 0x02) && (sw[0] == 0x90) && (sw[1] == 0x00)) { in LSC_ProcessResp()1000 } else if ((recvlen > 0x02) && (sw[0] == 0x90) && (sw[1] == 0x00)) { in LSC_ProcessResp()1002 } else if ((recvlen > 0x02) && (sw[0] == 0x63) && (sw[1] == 0x10)) { in LSC_ProcessResp()[all …]