CarOccupantZoneManager.OccupantZoneInfo

public static final class CarOccupantZoneManager.OccupantZoneInfo
extends Object implements Parcelable

java.lang.Object
   ↳ android.car.CarOccupantZoneManager.OccupantZoneInfo


Represents an occupant zone in a car.

Each occupant does not necessarily represent single person but it is for mapping to one set of displays. For example, for display located in center rear seat, both left and right side passengers may use it but it is abstracted as a single occupant zone.

Summary

Inherited constants

int CONTENTS_FILE_DESCRIPTOR

int PARCELABLE_ELIDE_DUPLICATES

int PARCELABLE_STABILITY_LOCAL

int PARCELABLE_STABILITY_VINTF

int PARCELABLE_WRITE_RETURN_VALUE

Fields

public static final Creator<CarOccupantZoneManager.OccupantZoneInfo> CREATOR

public final int occupantType

Represents type of passenger
Value is CarOccupantZoneManager.OCCUPANT_TYPE_DRIVER, CarOccupantZoneManager.OCCUPANT_TYPE_FRONT_PASSENGER, or CarOccupantZoneManager.OCCUPANT_TYPE_REAR_PASSENGER

public final int seat

Represents seat assigned for the occupant.

public int zoneId

This is an unique id to distinguish each occupant zone.

Public methods

int describeContents()
boolean equals(Object other)
int hashCode()
String toString()
void writeToParcel(Parcel dest, int flags)

Inherited methods

Object clone()
boolean equals(Object arg0)
void finalize()
final Class<?> getClass()
int hashCode()
final void notify()
final void notifyAll()
String toString()
final void wait(long arg0, int arg1)
final void wait(long arg0)
final void wait()
abstract int describeContents()
default int getStability()
abstract void writeToParcel(Parcel arg0, int arg1)

Fields

CREATOR

public static final Creator<CarOccupantZoneManager.OccupantZoneInfo> CREATOR

zoneId

public int zoneId

This is an unique id to distinguish each occupant zone.

This can be helpful to distinguish different zones when occupantType and seat are the same for multiple occupant / passenger zones.

This id will remain the same for the same zone across configuration changes like user switching or display changes

Public methods

describeContents

public int describeContents ()

Returns
int

equals

public boolean equals (Object other)

Parameters
other Object

Returns
boolean

hashCode

public int hashCode ()

Returns
int

toString

public String toString ()

Returns
String

writeToParcel

public void writeToParcel (Parcel dest, 
                int flags)

Parameters
dest Parcel

flags int