Searched refs:sw (Results 1 – 7 of 7) sorted by relevance
/hardware/libhardware/tests/input/evdev/ |
D | InputMocks.h | 59 virtual bool hasSwitch(int32_t sw) const override { return mSwitches.count(sw); } in hasSwitch() argument 78 void addSwitch(int32_t sw) { mSwitches.insert(sw); } in addSwitch() argument 83 virtual int32_t getSwitchState(int32_t sw) const override { return 0; } in getSwitchState() argument
|
/hardware/libhardware/modules/input/evdev/ |
D | InputHub.cpp | 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()
|
D | InputHub.h | 87 virtual bool hasSwitch(int32_t sw) const = 0; 96 virtual int32_t getSwitchState(int32_t sw) const = 0;
|
/hardware/nxp/secure_element/ls_client/src/ |
D | LsLib.cpp | 980 char sw[2]; in LSC_ProcessResp() local 981 sw[0] = RecvData[recvlen - 2]; in LSC_ProcessResp() 982 sw[1] = RecvData[recvlen - 1]; in LSC_ProcessResp() 984 sw[0], sw[1]); in LSC_ProcessResp() 988 if (sw[0] != 0x63) { in LSC_ProcessResp() 989 gsLsExecuteResp[2] = sw[0]; in LSC_ProcessResp() 990 gsLsExecuteResp[3] = sw[1]; in LSC_ProcessResp() 994 if ((recvlen == 0x02) && (sw[0] == 0x90) && (sw[1] == 0x00)) { in LSC_ProcessResp() 996 } else if ((recvlen > 0x02) && (sw[0] == 0x90) && (sw[1] == 0x00)) { in LSC_ProcessResp() 998 } else if ((recvlen > 0x02) && (sw[0] == 0x63) && (sw[1] == 0x10)) { in LSC_ProcessResp() [all …]
|
/hardware/st/secure_element2/secure_element/1.0/ |
D | SecureElement.cpp | 519 int sw; in run_apdu() local 536 sw = (resp[n - 2] << 8) | resp[n - 1]; in run_apdu() 537 printf("%d bytes, SW=0x%04x\n", n - 2, sw); in run_apdu()
|
/hardware/st/secure_element2/secure_element/1.1/ |
D | SecureElement.cpp | 551 int sw; in run_apdu() local 568 sw = (resp[n - 2] << 8) | resp[n - 1]; in run_apdu() 569 printf("%d bytes, SW=0x%04x\n", n - 2, sw); in run_apdu()
|
/hardware/st/secure_element2/secure_element/1.2/ |
D | SecureElement.cpp | 553 int sw; in run_apdu() local 570 sw = (resp[n - 2] << 8) | resp[n - 1]; in run_apdu() 571 printf("%d bytes, SW=0x%04x\n", n - 2, sw); in run_apdu()
|