Home
last modified time | relevance | path

Searched refs:occupantRole (Results 1 – 6 of 6) sorted by relevance

/hardware/interfaces/automotive/occupant_awareness/aidl/mock/
DOccupantAwareness.cpp68 ScopedAStatus OccupantAwareness::getCapabilityForRole(Role occupantRole, int32_t* capabilities) { in getCapabilityForRole() argument
69 if (!isValidRole(occupantRole)) { in getCapabilityForRole()
73 int intVal = static_cast<int>(occupantRole); in getCapabilityForRole()
76 if (occupantRole != Role::DRIVER) { in getCapabilityForRole()
87 ScopedAStatus OccupantAwareness::getState(Role occupantRole, int detectionCapability, in getState() argument
89 if (!isValidRole(occupantRole)) { in getState()
98 int roleVal = static_cast<int>(occupantRole); in getState()
134 bool OccupantAwareness::isValidRole(Role occupantRole) { in isValidRole() argument
135 int intVal = static_cast<int>(occupantRole); in isValidRole()
137 return (occupantRole != Role::INVALID) && ((intVal & (~allOccupants)) == 0); in isValidRole()
/hardware/interfaces/automotive/occupant_awareness/aidl/default/
DOccupantAwareness.cpp58 ScopedAStatus OccupantAwareness::getCapabilityForRole(Role occupantRole, int32_t* capabilities) { in getCapabilityForRole() argument
59 if (!isValidRole(occupantRole)) { in getCapabilityForRole()
68 ScopedAStatus OccupantAwareness::getState(Role occupantRole, int detectionCapability, in getState() argument
70 if (!isValidRole(occupantRole)) { in getState()
101 bool OccupantAwareness::isValidRole(Role occupantRole) { in isValidRole() argument
102 int intVal = static_cast<int>(occupantRole); in isValidRole()
104 return (occupantRole != Role::INVALID) && ((intVal & (~allOccupants)) == 0); in isValidRole()
DOccupantAwareness.h45 ndk::ScopedAStatus getCapabilityForRole(Role occupantRole, int32_t* capabilities) override;
46 ndk::ScopedAStatus getState(Role occupantRole, int detectionCapability,
53 bool isValidRole(Role occupantRole);
/hardware/interfaces/automotive/occupant_awareness/aidl/android/hardware/automotive/occupant_awareness/
DIOccupantAwareness.aidl64 int getCapabilityForRole(in Role occupantRole); in getCapabilityForRole() argument
73 OccupantAwarenessStatus getState(in Role occupantRole, in int detectionCapability); in getState() argument
/hardware/interfaces/automotive/occupant_awareness/aidl/aidl_api/android.hardware.automotive.occupant_awareness/current/android/hardware/automotive/occupant_awareness/
DIOccupantAwareness.aidl23 int getCapabilityForRole(in android.hardware.automotive.occupant_awareness.Role occupantRole); in getCapabilityForRole() argument
24 …tatus getState(in android.hardware.automotive.occupant_awareness.Role occupantRole, in int detecti… in getState() argument
/hardware/interfaces/automotive/occupant_awareness/aidl/aidl_api/android.hardware.automotive.occupant_awareness/1/android/hardware/automotive/occupant_awareness/
DIOccupantAwareness.aidl23 int getCapabilityForRole(in android.hardware.automotive.occupant_awareness.Role occupantRole); in getCapabilityForRole() argument
24 …tatus getState(in android.hardware.automotive.occupant_awareness.Role occupantRole, in int detecti… in getState() argument