DeviceTypes


public class DeviceTypes
extends Object

java.lang.Object
   ↳ android.service.controls.DeviceTypes


Device types for Control. Each Control declares a type for the device they represent. This type will be used to determine icons and colors.

The type of the device may change on status updates of the Control. For example, a device of TYPE_OUTLET could be determined by the ControlsProviderService to be a TYPE_COFFEE_MAKER and change the type for that Control, therefore possibly changing icon and color.

In case the device type is not know by the application but the basic function is, or there is no provided type, one of the generic types (those starting with TYPE_GENERIC) can be used. These will provide an identifiable icon based on the basic function of the device.

Summary

Constants

int TYPE_AC_HEATER

Value is one of the following:

int TYPE_AC_UNIT

Value is one of the following:

int TYPE_AIR_FRESHENER

Value is one of the following:

int TYPE_AIR_PURIFIER

Value is one of the following:

int TYPE_AWNING

Value is one of the following:

int TYPE_BLINDS

Value is one of the following:

int TYPE_CAMERA

Value is one of the following:

int TYPE_CLOSET

Value is one of the following:

int TYPE_COFFEE_MAKER

Value is one of the following:

int TYPE_CURTAIN

Value is one of the following:

int TYPE_DEHUMIDIFIER

Value is one of the following:

int TYPE_DISHWASHER

Value is one of the following:

int TYPE_DISPLAY

Value is one of the following:

int TYPE_DOOR

Value is one of the following:

int TYPE_DOORBELL

Value is one of the following:

int TYPE_DRAWER

Value is one of the following:

int TYPE_DRYER

Value is one of the following:

int TYPE_FAN

Value is one of the following:

int TYPE_GARAGE

Value is one of the following:

int TYPE_GATE

Value is one of the following:

int TYPE_GENERIC_ARM_DISARM

Value is one of the following:

int TYPE_GENERIC_LOCK_UNLOCK

Value is one of the following:

int TYPE_GENERIC_ON_OFF

Value is one of the following:

int TYPE_GENERIC_OPEN_CLOSE

Value is one of the following:

int TYPE_GENERIC_START_STOP

Value is one of the following:

int TYPE_GENERIC_TEMP_SETTING

Value is one of the following:

int TYPE_GENERIC_VIEWSTREAM

Value is one of the following:

int TYPE_HEATER

Value is one of the following:

int TYPE_HOOD

Value is one of the following:

int TYPE_HUMIDIFIER

Value is one of the following:

int TYPE_KETTLE

Value is one of the following:

int TYPE_LIGHT

Value is one of the following:

int TYPE_LOCK

Value is one of the following:

int TYPE_MICROWAVE

Value is one of the following:

int TYPE_MOP

Value is one of the following:

int TYPE_MOWER

Value is one of the following:

int TYPE_MULTICOOKER

Value is one of the following:

int TYPE_OUTLET

Value is one of the following:

int TYPE_PERGOLA

Value is one of the following:

int TYPE_RADIATOR

Value is one of the following:

int TYPE_REFRIGERATOR

Value is one of the following:

int TYPE_REMOTE_CONTROL

Value is one of the following:

int TYPE_ROUTINE

Value is one of the following:

int TYPE_SECURITY_SYSTEM

Value is one of the following:

int TYPE_SET_TOP

Value is one of the following:

int TYPE_SHOWER

Value is one of the following:

int TYPE_SHUTTER

Value is one of the following:

int TYPE_SPRINKLER

Value is one of the following:

int TYPE_STANDMIXER

Value is one of the following:

int TYPE_STYLER

Value is one of the following:

int TYPE_SWITCH

Value is one of the following:

int TYPE_THERMOSTAT

Value is one of the following:

int TYPE_TV

Value is one of the following:

int TYPE_UNKNOWN

Value is one of the following:

int TYPE_VACUUM

Value is one of the following:

int TYPE_VALVE

Value is one of the following:

int TYPE_WASHER

Value is one of the following:

int TYPE_WATER_HEATER

Value is one of the following:

int TYPE_WINDOW

Value is one of the following:

Public methods

static boolean validDeviceType(int deviceType)

Inherited methods

Constants

TYPE_AC_HEATER

public static final int TYPE_AC_HEATER

Value is one of the following:

TYPE_AC_UNIT

public static final int TYPE_AC_UNIT

Value is one of the following:

TYPE_AIR_FRESHENER

public static final int TYPE_AIR_FRESHENER

Value is one of the following:

TYPE_AIR_PURIFIER

public static final int TYPE_AIR_PURIFIER

Value is one of the following:

TYPE_AWNING

public static final int TYPE_AWNING

Value is one of the following:

TYPE_BLINDS

public static final int TYPE_BLINDS

Value is one of the following:

TYPE_CAMERA

public static final int TYPE_CAMERA

Value is one of the following:

TYPE_CLOSET

public static final int TYPE_CLOSET

Value is one of the following:

TYPE_COFFEE_MAKER

public static final int TYPE_COFFEE_MAKER

Value is one of the following:

TYPE_CURTAIN

public static final int TYPE_CURTAIN

Value is one of the following:

TYPE_DEHUMIDIFIER

public static final int TYPE_DEHUMIDIFIER

Value is one of the following:

TYPE_DISHWASHER

public static final int TYPE_DISHWASHER

Value is one of the following:

TYPE_DISPLAY

public static final int TYPE_DISPLAY

Value is one of the following:

TYPE_DOOR

public static final int TYPE_DOOR

Value is one of the following:

TYPE_DOORBELL

public static final int TYPE_DOORBELL

Value is one of the following:

TYPE_DRAWER

public static final int TYPE_DRAWER

Value is one of the following:

TYPE_DRYER

public static final int TYPE_DRYER

Value is one of the following:

TYPE_FAN

public static final int TYPE_FAN

Value is one of the following:

TYPE_GARAGE

public static final int TYPE_GARAGE

Value is one of the following:

TYPE_GATE

public static final int TYPE_GATE

Value is one of the following:

TYPE_GENERIC_ARM_DISARM

public static final int TYPE_GENERIC_ARM_DISARM

Value is one of the following:

TYPE_GENERIC_LOCK_UNLOCK

public static final int TYPE_GENERIC_LOCK_UNLOCK

Value is one of the following:

TYPE_GENERIC_ON_OFF

public static final int TYPE_GENERIC_ON_OFF

Value is one of the following:

TYPE_GENERIC_OPEN_CLOSE

public static final int TYPE_GENERIC_OPEN_CLOSE

Value is one of the following:

TYPE_GENERIC_START_STOP

public static final int TYPE_GENERIC_START_STOP

Value is one of the following:

TYPE_GENERIC_TEMP_SETTING

public static final int TYPE_GENERIC_TEMP_SETTING

Value is one of the following:

TYPE_GENERIC_VIEWSTREAM

public static final int TYPE_GENERIC_VIEWSTREAM

Value is one of the following:

TYPE_HEATER

public static final int TYPE_HEATER

Value is one of the following:

TYPE_HOOD

public static final int TYPE_HOOD

Value is one of the following:

TYPE_HUMIDIFIER

public static final int TYPE_HUMIDIFIER

Value is one of the following:

TYPE_KETTLE

public static final int TYPE_KETTLE

Value is one of the following:

TYPE_LIGHT

public static final int TYPE_LIGHT

Value is one of the following:

TYPE_LOCK

public static final int TYPE_LOCK

Value is one of the following:

TYPE_MICROWAVE

public static final int TYPE_MICROWAVE

Value is one of the following:

TYPE_MOP

public static final int TYPE_MOP

Value is one of the following:

TYPE_MOWER

public static final int TYPE_MOWER

Value is one of the following:

TYPE_MULTICOOKER

public static final int TYPE_MULTICOOKER

Value is one of the following:

TYPE_OUTLET

public static final int TYPE_OUTLET

Value is one of the following:

TYPE_PERGOLA

public static final int TYPE_PERGOLA

Value is one of the following:

TYPE_RADIATOR

public static final int TYPE_RADIATOR

Value is one of the following:

TYPE_REFRIGERATOR

public static final int TYPE_REFRIGERATOR

Value is one of the following:

TYPE_REMOTE_CONTROL

public static final int TYPE_REMOTE_CONTROL

Value is one of the following:

TYPE_ROUTINE

public static final int TYPE_ROUTINE

Value is one of the following:

TYPE_SECURITY_SYSTEM

public static final int TYPE_SECURITY_SYSTEM

Value is one of the following:

TYPE_SET_TOP

public static final int TYPE_SET_TOP

Value is one of the following:

TYPE_SHOWER

public static final int TYPE_SHOWER

Value is one of the following:

TYPE_SHUTTER

public static final int TYPE_SHUTTER

Value is one of the following:

TYPE_SPRINKLER

public static final int TYPE_SPRINKLER

Value is one of the following:

TYPE_STANDMIXER

public static final int TYPE_STANDMIXER

Value is one of the following:

TYPE_STYLER

public static final int TYPE_STYLER

Value is one of the following:

TYPE_SWITCH

public static final int TYPE_SWITCH

Value is one of the following:

TYPE_THERMOSTAT

public static final int TYPE_THERMOSTAT

Value is one of the following:

TYPE_TV

public static final int TYPE_TV

Value is one of the following:

TYPE_UNKNOWN

public static final int TYPE_UNKNOWN

Value is one of the following:

TYPE_VACUUM

public static final int TYPE_VACUUM

Value is one of the following:

TYPE_VALVE

public static final int TYPE_VALVE

Value is one of the following:

TYPE_WASHER

public static final int TYPE_WASHER

Value is one of the following:

TYPE_WATER_HEATER

public static final int TYPE_WATER_HEATER

Value is one of the following:

TYPE_WINDOW

public static final int TYPE_WINDOW

Value is one of the following:

Public methods

validDeviceType

public static boolean validDeviceType (int deviceType)

Parameters
deviceType int

Returns
boolean