目录

DataType

Class Info

public class DataType

Data types defined by Health Service Kit. Each data type has a unique name.

Each data type has its own meaning. For example, DT_CONTINUOUS_STEPS_DELTA indicates the number of steps taken since the last reading. For details about the data type names, attributes, and value ranges, see Overview.

Public Field Summary

Qualifier and Type

Field and Description

static final DataType

DT_CONTINUOUS_STEPS_DELTA

Steps taken since the last reading.

static final DataType

DT_CONTINUOUS_STEPS_TOTAL

Total number of steps. This data type applies only to data query scenarios.

static final DataType

DT_INSTANTANEOUS_STEPS_RATE

Step cadence.

static final DataType

DT_CONTINUOUS_STEPS_RATE_STATISTIC

Step cadence statistics.

static final DataType

DT_CONTINUOUS_CALORIES_BURNT

Total calories burned within a period of time.

static final DataType

DT_INSTANTANEOUS_POWER_SAMPLE

Instantaneous power generated when performing an activity.

static final DataType

DT_INSTANTANEOUS_HEART_RATE

Heart rate.

static final DataType

DT_INSTANTANEOUS_LOCATION_SAMPLE

Location information.

static final DataType

DT_CONTINUOUS_DISTANCE_DELTA

Distance covered since the last reading.

static final DataType

DT_CONTINUOUS_DISTANCE_TOTAL

Total distance covered.

static final DataType

DT_CONTINUOUS_CALORIES_BURNT_TOTAL

Total calories.

static final DataType

DT_INSTANTANEOUS_SPEED

Instantaneous speed.

static final DataType

DT_INSTANTANEOUS_WHEEL_ROTATION

Instantaneous measurement of the rotational speed of the bicycle wheel per minute.

static final DataType

DT_INSTANTANEOUS_HEIGHT

Height.

static final DataType

DT_INSTANTANEOUS_BODY_WEIGHT

Weight.

static final DataType

DT_INSTANTANEOUS_NUTRITION_FACTS

Nutrient intake over a meal.

static final DataType

DT_INSTANTANEOUS_HYDRATE

Water taken over a single drink.

static final DataType

DT_CONTINUOUS_HYDRATE_TOTAL

Water taken over a period of time.

static final DataType

DT_CONTINUOUS_SLEEP

Sleep details.

static final DataType

DT_INSTANTANEOUS_STRESS

Stress details.

static final DataType

DT_INSTANTANEOUS_STRESS_STATISTICS

Stress statistics.

static final DataType

DT_CONTINUOUS_EXERCISE_INTENSITY_V2

Medium- and high-intensity details.

static final DataType

DT_STATISTICS_EXERCISE_INTENSITY_V2

Medium- and high-intensity statistics.

static final DataType

DT_INSTANTANEOUS_RESTING_HEART_RATE

Resting heart rate details.

static final DataType

DT_RESTING_HEART_RATE_STATISTICS

Resting heart rate statistics.

static final DataType

DT_CONTINUOUS_JUMP

Jump details data.

static final DataType

DT_CONTINUOUS_JUMP_STATISTICS

Jump data statistics.

static final DataType

DT_INSTANTANEOUS_EXERCISE_HEART_RATE

Exercise heart rate data details.

static final DataType

DT_CONTINUOUS_EXERCISE_HEART_RATE_STATISTICS

Exercise heart rate statistics.

static final DataType

DT_INSTANTANEOUS_ALTITUDE

Altitude data.

static final DataType

DT_INSTANTANEOUS_SKIP_SPEED

Rope jumping speed data.

static final DataType

DT_CONTINUOUS_SKIP_SPEED_STATISTICS

Rope jumping speed statistics.

static final DataType

DT_CONTINUOUS_ALTITUDE_STATISTICS

Altitude statistics.

static final DataType

DT_CONTINUOUS_RUN_POSTURE

Running form data.

static final DataType

DT_CONTINUOUS_RUN_POSTURE_STATISTICS

Running form statistics.

static final DataType

DT_ACTIVITY_FEATURE_JUMPING_ROPE

Rope jumping feature.

static final DataType

DT_ACTIVITY_FEATURE_BASKETBALL

Basketball feature data type.

static final DataType

DT_ACTIVITY_FEATURE_FREEDIVING

Free diving feature.

static final DataType

POLYMERIZE_CONTINUOUS_HEART_RATE_STATISTICS

Average, maximum, and minimum heartbeats per minute within a period of time.

static final DataType

POLYMERIZE_CONTINUOUS_SPEED_STATISTICS

Ground speed (including the maximum, minimum, and average values).

static final DataType

POLYMERIZE_CONTINUOUS_BODY_FAT_RATE_STATISTICS

Body fat percentage over a period of time (including the maximum, minimum, and average values).

static final DataType

POLYMERIZE_CONTINUOUS_BODY_WEIGHT_STATISTICS

Weight over a period of time (including the maximum, minimum, and average values).

static final DataType

POLYMERIZE_CONTINUOUS_HEIGHT_STATISTICS

Height over a period of time (including the maximum, minimum, and average values).

static final DataType

DT_RESISTANCE

Resistance set on devices like spinning bikes and elliptical machines.

static final DataType

DT_RESISTANCE_STATISTICS

Resistance statistics set on devices like spinning bikes and elliptical machines.

static final DataType

DT_ACTIVITY_FEATURE_ROWING

Rowing feature.

static final DataType

DT_INSTANTANEOUS_STROKE_RATE

Rowing stroke rate.

static final DataType

DT_INSTANTANEOUS_PEDALING_RATE

Pedaling rate.

static final DataType

DT_CONTINUOUS_STROKE_RATE_STATISTICS

Rowing stroke rate statistics.

static final DataType

DT_CONTINUOUS_PEDALING_RATE_STATISTICS

Pedaling rate statistics.

static final DataType

DT_INSTANTANEOUS_SWIMMING_STROKE_RATE

Swimming stroke rate.

static final DataType

DT_CONTINUOUS_SWIMMING_STROKE_RATE_STATISTICS

Swimming stroke rate statistics.

static final DataType

DT_INSTANTANEOUS_SWIMMING_SWOLF

SWOLF.

static final DataType

DT_CONTINUOUS_SWIMMING_SWOLF_STATISTICS

SWOLF statistics.

static final DataType

DT_ACTIVITY_FEATURE_SWIMMING_OPEN_WATER

Feature statistics of swimming in open waters.

static final DataType

DT_ACTIVITY_FEATURE_SWIMMING_POOL

Feature statistics of swimming in swimming pools.

static final DataType

DT_ACTIVITY_FEATURE_SKIING

Skiing feature.

static final DataType

DT_ACTIVITY_FEATURE_BREATH_HOLDING_TRAIN

Apnea training.

static final DataType

DT_ACTIVITY_FEATURE_BREATH_HOLDING_TEST

Apnea testing.

static final DataType

DT_VO2MAX

Maximum oxygen uptake.

static final DataType

DT_VO2MAX_STATISTICS

Maximum oxygen uptake statistics.

static final DataType

POLYMERIZE_LOCATION

Location statistics.

static final DataType

POLYMERIZE_BREATH_HOLDING_TRAIN_STATISTICS

Apnea training sampling statistics.

static final DataType

DT_DIVING_STATISTICS

Free diving sampling statistics.

static final DataType

DT_DIVING_DEPTH

Diving depth.

static final DataType

DT_DIVING_DEPTH_STATISTICS

Diving depth statistics.

static final DataType

DT_WATER_TEMPERATURE

Water temperature.

static final DataType

DT_WATER_TEMPERATURE_STATISTICS

Water temperature statistics.

Public Constructor Summary

Constructor Name

DataType(String name, String scopeNameRead, String scopeNameWrite, String scopeNameBoth, List<Field> fieldsList)

Builder for DataType.

DataType(String name, String scopeNameRead, String scopeNameWrite, String scopeNameBoth, List<Field> fieldsList, boolean isPolymerizedFlag)

Builder for DataType.

DataType(String name, String scopeNameRead, String scopeNameWrite, String scopeNameBoth, List<Field> fieldsList, boolean isPolymerizedFlag, boolean isSelfDefined, String packageName)

Builder for DataType.

DataType(String name)

Builder for DataType.

Public Method Summary

Qualifier and Type

Method Name and Description

List<Field>

getFields()

Obtains the attribute list for the data type.

static String

getMimeType(DataType dataType)

Adds a header name to the type.

CAUTION:

This method has been deprecated.

String

getName()

Obtains the name that uniquely identifies this data type.

String

getPackageName()

Obtains the package name of the app as the calling party.

static List<DataType>

getPolymerizesForInput(DataType dataType)

Obtains the polymerized data types of the specified data type.

String

getScopeNameBoth()

Obtains the read and write scopes for a data type.

String

getScopeNameRead()

Obtains the read scope for a data type.

String

getScopeNameWrite()

Obtains the write scope for a data type.

final int

indexOf(Field field)

Obtains the index value of an attribute.

boolean

isFromSelfDefined()

Checks whether the current data type is a customized one.

boolean

isPolymerized()

Indicates whether data is polymerized.

void

setFromSelfDefined(boolean isSelfDefined)

Sets whether the data type is a customized one.

void

setPackageName(String packageName)

Sets the package name of the app as the calling party.

Public Fields

[h2]DT_CONTINUOUS_STEPS_DELTA

Field

public static final DataType DT_CONTINUOUS_STEPS_DELTA

Steps taken since the last reading.

Related data type: com.huawei.continuous.steps.delta

[h2]DT_CONTINUOUS_STEPS_TOTAL

Field

public static final DataType DT_CONTINUOUS_STEPS_TOTAL

Total number of steps. This data type applies only to data query scenarios.

Related data type: com.huawei.continuous.steps.total

[h2]DT_INSTANTANEOUS_STEPS_RATE

Field

public static final DataType DT_INSTANTANEOUS_STEPS_RATE

Step cadence.

Related data type: com.huawei.instantaneous.steps.rate

[h2]DT_CONTINUOUS_STEPS_RATE_STATISTIC

Field

public static final DataType DT_CONTINUOUS_STEPS_RATE_STATISTIC

Step cadence statistics.

Related data type: com.huawei.continuous.steps.rate.statistics

[h2]DT_CONTINUOUS_CALORIES_BURNT

Field

public static final DataType DT_CONTINUOUS_CALORIES_BURNT

Total calories burned within a period of time.

Related data type: com.huawei.continuous.calories.burnt

[h2]DT_INSTANTANEOUS_POWER_SAMPLE

Field

public static final DataType DT_INSTANTANEOUS_POWER_SAMPLE

Instantaneous power generated when performing an activity.

Related data type: com.huawei.instantaneous.power.sample

[h2]DT_INSTANTANEOUS_HEART_RATE

Field

public static final DataType DT_INSTANTANEOUS_HEART_RATE

Heart rate.

Related data type: com.huawei.instantaneous.heart_rate

[h2]DT_INSTANTANEOUS_LOCATION_SAMPLE

Field

public static final DataType DT_INSTANTANEOUS_LOCATION_SAMPLE

Location information.

Related data type: com.huawei.instantaneous.location.sample

[h2]DT_CONTINUOUS_DISTANCE_DELTA

Field

public static final DataType DT_CONTINUOUS_DISTANCE_DELTA

Distance covered since the last reading.

Related data type: com.huawei.continuous.distance.delta

[h2]DT_CONTINUOUS_DISTANCE_TOTAL

Field

public static final DataType DT_CONTINUOUS_DISTANCE_TOTAL

Total distance covered.

Related data type: com.huawei.continuous.distance.total

[h2]DT_CONTINUOUS_CALORIES_BURNT_TOTAL

Field

public static final DataType DT_CONTINUOUS_CALORIES_BURNT_TOTAL

Total calories.

Related Data Type: com.huawei.continuous.calories.burnt.total

[h2]DT_INSTANTANEOUS_SPEED

Field

public static final DataType DT_INSTANTANEOUS_SPEED

Instantaneous speed.

Related data type: com.huawei.instantaneous.speed

[h2]DT_INSTANTANEOUS_WHEEL_ROTATION

Field

public static final DataTypeDT_INSTANTANEOUS_WHEEL_ROTATION

Instantaneous measurement of the rotational speed of the bicycle wheel per minute.

Related Data Type: com.huawei.instantaneous.wheel_rotation

[h2]DT_INSTANTANEOUS_HEIGHT

Field

public static final DataType DT_INSTANTANEOUS_HEIGHT

Height.

Related data type: com.huawei.instantaneous.height

[h2]DT_INSTANTANEOUS_BODY_WEIGHT

Field

public static final DataType DT_INSTANTANEOUS_BODY_WEIGHT

Weight.

Related data type: com.huawei.instantaneous.body_weight

[h2]DT_INSTANTANEOUS_NUTRITION_FACTS

Field

public static final DataType DT_INSTANTANEOUS_NUTRITION_FACTS

Nutrient intake over a meal.

Related data type: com.huawei.instantaneous.nutrition_facts

[h2]DT_INSTANTANEOUS_HYDRATE

Field

public static final DataType DT_INSTANTANEOUS_HYDRATE

Water taken over a single drink.

Related data type: com.huawei.instantaneous.hydrate

[h2]DT_CONTINUOUS_HYDRATE_TOTAL

Field

public static final DataType DT_CONTINUOUS_HYDRATE_TOTAL

Water taken over a period of time.

Related Data Type: com.huawei.hydrate.total

[h2]DT_CONTINUOUS_SLEEP

Field

public static final DataType DT_CONTINUOUS_SLEEP

Sleep details.

Related data type: com.huawei.continuous.sleep.fragment

[h2]DT_INSTANTANEOUS_STRESS

Field

public static final DataType DT_INSTANTANEOUS_STRESS

Stress details.

Related data type: com.huawei.instantaneous.stress

[h2]DT_INSTANTANEOUS_STRESS_STATISTICS

Field

public static final DataType DT_INSTANTANEOUS_STRESS_STATISTICS

Stress statistics.

Related data type: com.huawei.instantaneous.stress.statistics

[h2]DT_CONTINUOUS_EXERCISE_INTENSITY_V2

Field

public static final DataType DT_CONTINUOUS_EXERCISE_INTENSITY_V2

Medium- and high-intensity details.

Related data type: com.huawei.continuous.exercise_intensity.v2

[h2]DT_STATISTICS_EXERCISE_INTENSITY_V2

Field

public static final DataType DT_STATISTICS_EXERCISE_INTENSITY_V2

Medium- and high-intensity statistics.

Related data type: com.huawei.continuous.exercise_intensity.v2.statistics

[h2]DT_INSTANTANEOUS_RESTING_HEART_RATE

Field

public static final DataType DT_INSTANTANEOUS_RESTING_HEART_RATE

Resting heart rate details.

Related data type: com.huawei.instantaneous.resting_heart_rate

[h2]DT_RESTING_HEART_RATE_STATISTICS

Field

public static final DataType DT_RESTING_HEART_RATE_STATISTICS

Resting heart rate statistics.

Related data type: com.huawei.continuous.resting_heart_rate.statistics

[h2]DT_CONTINUOUS_JUMP

Field

public static final DataType DT_CONTINUOUS_JUMP

Jump data details.

Related data type: com.huawei.continuous.jump

[h2]DT_CONTINUOUS_JUMP_STATISTICS

Field

public static final DataType DT_CONTINUOUS_JUMP_STATISTICS

Jump data statistics.

Related data type: com.huawei.continuous.jump.statistics

[h2]DT_INSTANTANEOUS_EXERCISE_HEART_RATE

Field

public static final DataType DT_INSTANTANEOUS_EXERCISE_HEART_RATE

Exercise heart rate details.

Related data type: com.huawei.instantaneous.exercise_heart_rate

[h2]DT_CONTINUOUS_EXERCISE_HEART_RATE_STATISTICS

Field

public static final DataType DT_CONTINUOUS_EXERCISE_HEART_RATE_STATISTICS

Exercise heart rate statistics.

Related data type: com.huawei.continuous.exercise_heart_rate.statistics

[h2]DT_INSTANTANEOUS_ALTITUDE

Field

public static final DataType DT_INSTANTANEOUS_ALTITUDE

Altitude data.

Related Data Type: com.huawei.instantaneous.altitude

[h2]DT_INSTANTANEOUS_SKIP_SPEED

Field

public static final DataType DT_INSTANTANEOUS_SKIP_SPEED

Rope jumping speed data.

Related Data Type: com.huawei.instantaneous.skip_speed

[h2]DT_CONTINUOUS_SKIP_SPEED_STATISTICS

Field

public static final DataType DT_CONTINUOUS_SKIP_SPEED_STATISTICS

Rope jumping speed statistics.

Related Data Type: com.huawei.continuous.skip_speed.statistics

[h2]DT_CONTINUOUS_ALTITUDE_STATISTICS

Field

public static final DataType DT_CONTINUOUS_ALTITUDE_STATISTICS

Altitude statistics.

Related Data Type: com.huawei.continuous.altitude.statistics

[h2]DT_CONTINUOUS_RUN_POSTURE

Field

public static final DataType DT_CONTINUOUS_RUN_POSTURE

Running form data.

Related Data Type: com.huawei.continuous.run.posture

[h2]DT_CONTINUOUS_RUN_POSTURE_STATISTICS

Field

public static final DataType DT_CONTINUOUS_RUN_POSTURE_STATISTICS

Running form statistics.

Related Data Type: com.huawei.continuous.run.posture.statistics

[h2]DT_ACTIVITY_FEATURE_JUMPING_ROPE

Field

public static final DataType DT_ACTIVITY_FEATURE_JUMPING_ROPE

Rope jumping feature data type, which is used to describe the unique feature data of rope jumping.

Related Data Type: com.huawei.activity.feature.jumping_rope

[h2]DT_ACTIVITY_FEATURE_BASKETBALL

Field

public static final DataType DT_ACTIVITY_FEATURE_BASKETBALL

Basketball feature data type, which is used to describe the unique feature data of the basketball activity.

Related Data Type: com.huawei.activity.feature.basketball

[h2]DT_ACTIVITY_FEATURE_FREEDIVING

Field

public static final DataType DT_ACTIVITY_FEATURE_FREEDIVING

Free diving feature data type, which is used to describe the unique feature data of the free diving activity.

Related Data Type: com.huawei.activity.feature.freediving

[h2]POLYMERIZE_CONTINUOUS_HEART_RATE_STATISTICS

Field

public static final DataType POLYMERIZE_CONTINUOUS_HEART_RATE_STATISTICS

Average, maximum, and minimum heartbeats per minute within a period of time.

Related data type: com.huawei.continuous.heart_rate.statistics

[h2]POLYMERIZE_CONTINUOUS_SPEED_STATISTICS

Field

public static final DataType POLYMERIZE_CONTINUOUS_SPEED_STATISTICS

Ground speed (including the maximum, minimum, and average values).

Related data type: com.huawei.continuous.speed.statistics

[h2]POLYMERIZE_CONTINUOUS_BODY_FAT_RATE_STATISTICS

Field

public static final DataType POLYMERIZE_CONTINUOUS_BODY_FAT_RATE_STATISTICS

Body fat percentage over a period of time (including the maximum, minimum, and average values).

Related data type: com.huawei.continuous.body.fat.rate.statistics

[h2]POLYMERIZE_CONTINUOUS_BODY_WEIGHT_STATISTICS

Field

public static final DataType POLYMERIZE_CONTINUOUS_BODY_WEIGHT_STATISTICS

Weight over a period of time (including the maximum, minimum, and average values).

Related data type: com.huawei.continuous.body_weight.statistics

[h2]POLYMERIZE_CONTINUOUS_HEIGHT_STATISTICS

Field

public static final DataType POLYMERIZE_CONTINUOUS_HEIGHT_STATISTICS

Height over a period of time (including the maximum, minimum, and average values).

Related data type: com.huawei.continuous.height.statistics

[h2]DT_RESISTANCE

Field

public static final DataType DT_RESISTANCE

Resistance set on devices like spinning bikes and elliptical machines.

Related Data Type: com.huawei.resistance

[h2]DT_RESISTANCE_STATISTICS

Field

public static final DataType DT_RESISTANCE_STATISTICS

Resistance statistics set on devices like spinning bikes and elliptical machines.

Related Data Type: com.huawei.resistance.statistics

[h2]DT_ACTIVITY_FEATURE_ROWING

Field

public static final DataType DT_ACTIVITY_FEATURE_ROWING

Rowing feature.

Related Data Type: com.huawei.activity.feature.rowing

[h2]DT_INSTANTANEOUS_STROKE_RATE

Field

public static final DataType DT_INSTANTANEOUS_STROKE_RATE

Rowing stroke rate.

Related Data Type: com.huawei.instantaneous.stroke_rate

[h2]DT_INSTANTANEOUS_PEDALING_RATE

Field

public static final DataType DT_INSTANTANEOUS_PEDALING_RATE

Pedaling rate.

Related Data Type: com.huawei.instantaneous.pedaling_rate

[h2]DT_CONTINUOUS_STROKE_RATE_STATISTICS

Field

public static final DataType DT_CONTINUOUS_STROKE_RATE_STATISTICS

Rowing stroke rate statistics.

Related Data Type: com.huawei.continuous.stroke_rate.statistics

[h2]DT_CONTINUOUS_PEDALING_RATE_STATISTICS

Field

public static final DataType DT_CONTINUOUS_PEDALING_RATE_STATISTICS

Pedaling rate statistics.

Related Data Type: com.huawei.continuous.pedaling_rate.statistics

[h2]DT_INSTANTANEOUS_SWIMMING_STROKE_RATE

Field

public static final DataType DT_INSTANTANEOUS_SWIMMING_STROKE_RATE

Swimming stroke rate.

Related Data Type: com.huawei.instantaneous.swimming.stroke_rate

[h2]DT_CONTINUOUS_SWIMMING_STROKE_RATE_STATISTICS

Field

public static final DataType DT_CONTINUOUS_SWIMMING_STROKE_RATE_STATISTICS

Swimming stroke rate statistics.

Related Data Type: com.huawei.continuous.swimming.stroke_rate.statistics

[h2]DT_INSTANTANEOUS_SWIMMING_SWOLF

Field

public static final DataType DT_INSTANTANEOUS_SWIMMING_SWOLF

SWOLF.

Related Data Type: com.huawei.instantaneous.swimming.swolf

[h2]DT_CONTINUOUS_SWIMMING_SWOLF_STATISTICS

Field

public static final DataType DT_CONTINUOUS_SWIMMING_SWOLF_STATISTICS

SWOLF statistics.

Related Data Type: com.huawei.continuous.swimming.swolf.statistics

[h2]DT_ACTIVITY_FEATURE_SWIMMING_OPEN_WATER

Field

public static final DataType DT_ACTIVITY_FEATURE_SWIMMING_OPEN_WATER

Feature statistics of swimming in open waters.

Related Data Type: com.huawei.activity.feature.swimming.open_water

[h2]DT_ACTIVITY_FEATURE_SWIMMING_POOL

Field

public static final DataType DT_ACTIVITY_FEATURE_SWIMMING_POOL

Feature statistics of swimming in swimming pools.

Related Data Type: com.huawei.activity.feature.swimming.pool

[h2]DT_ACTIVITY_FEATURE_SKIING

Field

public static final DataType DT_ACTIVITY_FEATURE_SKIING

Skiing feature.

Related Data Type: com.huawei.activity.feature.skiing

[h2]DT_ACTIVITY_FEATURE_SNOWBOARDING

Field

public static final DataType DT_ACTIVITY_FEATURE_SNOWBOARDING

Snowboarding feature.

Related Data Type: com.huawei.activity.feature.snowboarding

[h2]DT_ACTIVITY_FEATURE_GOLF

Field

public static final DataType DT_ACTIVITY_FEATURE_GOLF

Golf feature.

Related Data Type: com.huawei.activity.feature.golf

[h2]DT_ACTIVITY_FEATURE_BREATH_HOLDING_TRAIN

Field

public static final DataType DT_ACTIVITY_FEATURE_BREATH_HOLDING_TRAIN

Apnea training.

Related Data Type: com.huawei.activity.feature.breath_holding_train

[h2]DT_ACTIVITY_FEATURE_BREATH_HOLDING_TEST

Field

public static final DataType DT_ACTIVITY_FEATURE_BREATH_HOLDING_TEST

Apnea testing.

Related Data Type: com.huawei.activity.feature.breath_holding_test

[h2]DT_VO2MAX

Field

public static final DataType DT_VO2MAX

Maximum oxygen uptake.

Related Data Type: com.huawei.vo2max

[h2]DT_VO2MAX_STATISTICS

Field

public static final DataType DT_VO2MAX_STATISTICS

Maximum oxygen uptake statistics.

Related Data Type: com.huawei.vo2max.statistics

[h2]POLYMERIZE_LOCATION

Field

public static final DataType POLYMERIZE_LOCATION

Location statistics.

Related Data Type: com.huawei.location.statistics

[h2]POLYMERIZE_BREATH_HOLDING_TRAIN_STATISTICS

Field

public static final DataType POLYMERIZE_BREATH_HOLDING_TRAIN_STATISTICS

Apnea training sampling statistics.

Related Data Type: com.huawei.breath_holding_train.statistics

[h2]DT_DIVING_STATISTICS

Field

public static final DataType DT_DIVING_STATISTICS

Free diving sampling statistics.

Related Data Type: com.huawei.diving.statistics

[h2]DT_DIVING_DEPTH

Field

public static final DataType DT_DIVING_DEPTH

Diving depth.

Related Data Type: com.huawei.diving_depth

[h2]DT_DIVING_DEPTH_STATISTICS

Field

public static final DataType DT_DIVING_DEPTH_STATISTICS

Diving depth statistics.

Related Data Type: com.huawei.diving_depth.statistics

[h2]DT_WATER_TEMPERATURE

Field

public static final DataType DT_WATER_TEMPERATURE

Water temperature.

Related Data Type: com.huawei.water_temperature

[h2]DT_WATER_TEMPERATURE_STATISTICS

Field

public static final DataType DT_WATER_TEMPERATURE_STATISTICS

Water temperature statistics.

Related Data Type: com.huawei.water_temperature.statistics

Public Constructors

[h2]DataType(String name, String scopeNameRead, String scopeNameWrite, String scopeNameBoth, List<Field> fieldsList)

Constructor

public DataType(String name, String scopeNameRead, String scopeNameWrite, String scopeNameBoth, List<Field> fieldsList)

Builder for DataType.

Parameters

Name

Description

name

Data type name. The value must be a string of 1 to 300 characters.

scopeNameRead

Read scope of the data type. The value can be an empty string or a string of 1 to 1000 characters.

scopeNameWrite

Write scope of the data type. The value can be an empty string or a string of 1 to 1000 characters.

scopeNameBoth

Read and write scopes of the data type. The value can be an empty string or a string of 1 to 1000 characters.

fieldsList

Attribute list.

[h2]DataType(String name, String scopeNameRead, String scopeNameWrite, String scopeNameBoth, List<Field> fieldsList, boolean isPolymerizedFlag)

Constructor Name

public DataType(String name, String scopeNameRead, String scopeNameWrite, String scopeNameBoth, List<Field> fieldsList, boolean isPolymerizedFlag)

Builder for DataType.

Parameters

Name

Description

name

Name. The value must be a string of 1 to 300 characters.

scopeNameRead

Read scope of the data type. The value can be an empty string or a string of 1 to 1000 characters.

scopeNameWrite

Write scope of the data type. The value can be an empty string or a string of 1 to 1000 characters.

scopeNameBoth

Read and write scopes of the data type. The value can be an empty string or a string of 1 to 1000 characters.

fieldsList

Attribute list.

isPolymerizedFlag

Indicates whether it is a polymerized data type.

[h2]DataType(String name, String scopeNameRead, String scopeNameWrite, String scopeNameBoth, List<Field> fieldsList, boolean isPolymerizedFlag, boolean isSelfDefined, String packageName)

Constructor Name

public DataType(String name, String scopeNameRead, String scopeNameWrite, String scopeNameBoth, List<Field> fieldsList, boolean isPolymerizedFlag, boolean isSelfDefined, String packageName)

Builder for DataType.

Parameters

Name

Description

name

Name. The value must be a string of 1 to 300 characters.

scopeNameRead

Read scope of the data type. The value can be an empty string or a string of 1 to 1000 characters.

scopeNameWrite

Write scope of the data type. The value can be an empty string or a string of 1 to 1000 characters.

scopeNameBoth

Read and write scopes of the data type. The value can be an empty string or a string of 1 to 1000 characters.

fieldsList

Attribute list.

isPolymerizedFlag

Indicates whether it is a polymerized data type.

isSelfDefined

Whether the data type is a customized one.

packageName

App package name.

[h2]DataType(String name)

Constructor Name

public DataType(String name)

Builder for DataType.

Parameters

Name

Description

name

Name. The value must be a string of 1 to 300 characters.

Public Methods

[h2]getFields()

Method

public List<Field> getFields()

Obtains the attribute list for the data type.

Returns

Type

Description

List<Field>

Attribute list.

[h2]getMimeType(DataType dataType)

Method

public static String getMimeType(DataType dataType)

Adds a header name to the type.

CAUTION:

This method has been deprecated.

Parameters

Name

Description

dataType

Data type.

Returns

Type

Description

String

Header name.

[h2]getName()

Method

public String getName()

Obtains the name that uniquely identifies this data type.

Returns

Type

Description

String

Data type name.

[h2]getPackageName()

Method

public String getPackageName()

Obtains the package name of the app as the calling party.

Returns

Type

Description

String

Package name of the app as the calling party.

[h2]getPolymerizesForInput(DataType dataType)

Method

public static List<DataType> getPolymerizesForInput(DataType dataType)

Obtains the polymerized data types of the specified data type.

Parameters

Name

Description

dataType

Data type.

Returns

Type

Description

List<DataType>

Polymerized data type list.

[h2]getScopeNameBoth()

Method

public String getScopeNameBoth()

Obtains the read and write scopes for a data type.

Returns

Type

Description

String

Read and write scopes.

[h2]getScopeNameRead()

Method

public String getScopeNameRead()

Obtains the read scope for a data type.

Returns

Type

Description

String

Read scope.

[h2]getScopeNameWrite()

Method

public String getScopeNameWrite()

Obtains the write scope for a data type.

Returns

Type

Description

String

Write scope.

[h2]indexOf(Field field)

Method

public final int indexOf(Field field)

Obtains the index value of an attribute.

Parameters

Name

Description

field

Attribute.

Returns

Type

Description

int

Index.

[h2]isFromSelfDefined()

Method

public boolean isFromSelfDefined()

Checks whether the current data type is a customized one.

Returns

Type

Description

boolean

Whether the data type is a customized one.

[h2]isPolymerized()

Method

public boolean isPolymerized()

Checks whether the current data is polymerized data.

Returns

Type

Description

boolean

Whether the current data is polymerized data.

[h2]setFromSelfDefined(boolean isSelfDefined)

Method

public void setFromSelfDefined(boolean isSelfDefined)

Sets whether the data type is a customized one.

Parameters

Name

Description

isSelfDefined

Whether the data type is a customized one.

[h2]setPackageName(String packageName)

Method

public void setPackageName(String packageName)

Sets the package name of the app as the calling party.

Parameters

Name

Description

packageName

Package name of the app as the calling party.