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 | 
|---|
| Fields | |
|---|---|
| 
    public
    static
    final
    Creator<CarOccupantZoneManager.OccupantZoneInfo> | CREATOR
 | 
| 
    public
    
    final
    int | occupantTypeRepresents type of passenger
  | 
| 
    public
    
    final
    int | seatRepresents seat assigned for the occupant. | 
| 
    public
    
    
    int | zoneIdThis 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 | |
|---|---|
Fields
occupantType
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
seat
public final int seat
Represents seat assigned for the occupant. In some system, this can have value of
 VehicleAreaSeat.SEAT_UNKNOWN.
 
 Value is VehicleAreaSeat.SEAT_UNKNOWN, VehicleAreaSeat.SEAT_ROW_1_LEFT, VehicleAreaSeat.SEAT_ROW_1_CENTER, VehicleAreaSeat.SEAT_ROW_1_RIGHT, VehicleAreaSeat.SEAT_ROW_2_LEFT, VehicleAreaSeat.SEAT_ROW_2_CENTER, VehicleAreaSeat.SEAT_ROW_2_RIGHT, VehicleAreaSeat.SEAT_ROW_3_LEFT, VehicleAreaSeat.SEAT_ROW_3_CENTER, or VehicleAreaSeat.SEAT_ROW_3_RIGHT
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 | 
