units

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2026 License: CC0-1.0 Imports: 5 Imported by: 0

Documentation

Overview

Package units provides Go bindings for android.health.connect.datatypes.units.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(env *jni.Env) error

Init resolves all JNI class and method references for this package. It is safe to call multiple times (uses sync.Once internally). Exported for E2E testing on Android.

Types

type BloodGlucose

type BloodGlucose struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

BloodGlucose wraps android.health.connect.datatypes.units.BloodGlucose.

func (*BloodGlucose) CompareTo1

func (m *BloodGlucose) CompareTo1(arg0 *jni.Object) (int32, error)

CompareTo1 calls android.health.connect.datatypes.units.BloodGlucose.compareTo.

func (*BloodGlucose) CompareTo1_1

func (m *BloodGlucose) CompareTo1_1(arg0 *jni.Object) (int32, error)

CompareTo1_1 calls android.health.connect.datatypes.units.BloodGlucose.compareTo.

func (*BloodGlucose) Equals

func (m *BloodGlucose) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.health.connect.datatypes.units.BloodGlucose.equals.

func (*BloodGlucose) FromMillimolesPerLiter

func (m *BloodGlucose) FromMillimolesPerLiter(arg0 float64) (*jni.Object, error)

FromMillimolesPerLiter calls android.health.connect.datatypes.units.BloodGlucose.fromMillimolesPerLiter.

func (*BloodGlucose) GetInMillimolesPerLiter

func (m *BloodGlucose) GetInMillimolesPerLiter() (float64, error)

GetInMillimolesPerLiter calls android.health.connect.datatypes.units.BloodGlucose.getInMillimolesPerLiter.

func (*BloodGlucose) HashCode

func (m *BloodGlucose) HashCode() (int32, error)

HashCode calls android.health.connect.datatypes.units.BloodGlucose.hashCode.

func (*BloodGlucose) ToString

func (m *BloodGlucose) ToString() (string, error)

ToString calls android.health.connect.datatypes.units.BloodGlucose.toString.

type Energy

type Energy struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

Energy wraps android.health.connect.datatypes.units.Energy.

func (*Energy) CompareTo1

func (m *Energy) CompareTo1(arg0 *jni.Object) (int32, error)

CompareTo1 calls android.health.connect.datatypes.units.Energy.compareTo.

func (*Energy) CompareTo1_1

func (m *Energy) CompareTo1_1(arg0 *jni.Object) (int32, error)

CompareTo1_1 calls android.health.connect.datatypes.units.Energy.compareTo.

func (*Energy) Equals

func (m *Energy) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.health.connect.datatypes.units.Energy.equals.

func (*Energy) FromCalories

func (m *Energy) FromCalories(arg0 float64) (*jni.Object, error)

FromCalories calls android.health.connect.datatypes.units.Energy.fromCalories.

func (*Energy) GetInCalories

func (m *Energy) GetInCalories() (float64, error)

GetInCalories calls android.health.connect.datatypes.units.Energy.getInCalories.

func (*Energy) HashCode

func (m *Energy) HashCode() (int32, error)

HashCode calls android.health.connect.datatypes.units.Energy.hashCode.

func (*Energy) ToString

func (m *Energy) ToString() (string, error)

ToString calls android.health.connect.datatypes.units.Energy.toString.

type Length

type Length struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

Length wraps android.health.connect.datatypes.units.Length.

func (*Length) CompareTo1

func (m *Length) CompareTo1(arg0 *jni.Object) (int32, error)

CompareTo1 calls android.health.connect.datatypes.units.Length.compareTo.

func (*Length) CompareTo1_1

func (m *Length) CompareTo1_1(arg0 *jni.Object) (int32, error)

CompareTo1_1 calls android.health.connect.datatypes.units.Length.compareTo.

func (*Length) Equals

func (m *Length) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.health.connect.datatypes.units.Length.equals.

func (*Length) FromMeters

func (m *Length) FromMeters(arg0 float64) (*jni.Object, error)

FromMeters calls android.health.connect.datatypes.units.Length.fromMeters.

func (*Length) GetInMeters

func (m *Length) GetInMeters() (float64, error)

GetInMeters calls android.health.connect.datatypes.units.Length.getInMeters.

func (*Length) HashCode

func (m *Length) HashCode() (int32, error)

HashCode calls android.health.connect.datatypes.units.Length.hashCode.

func (*Length) ToString

func (m *Length) ToString() (string, error)

ToString calls android.health.connect.datatypes.units.Length.toString.

type Mass

type Mass struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

Mass wraps android.health.connect.datatypes.units.Mass.

func (*Mass) CompareTo1

func (m *Mass) CompareTo1(arg0 *jni.Object) (int32, error)

CompareTo1 calls android.health.connect.datatypes.units.Mass.compareTo.

func (*Mass) CompareTo1_1

func (m *Mass) CompareTo1_1(arg0 *jni.Object) (int32, error)

CompareTo1_1 calls android.health.connect.datatypes.units.Mass.compareTo.

func (*Mass) Equals

func (m *Mass) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.health.connect.datatypes.units.Mass.equals.

func (*Mass) FromGrams

func (m *Mass) FromGrams(arg0 float64) (*jni.Object, error)

FromGrams calls android.health.connect.datatypes.units.Mass.fromGrams.

func (*Mass) GetInGrams

func (m *Mass) GetInGrams() (float64, error)

GetInGrams calls android.health.connect.datatypes.units.Mass.getInGrams.

func (*Mass) HashCode

func (m *Mass) HashCode() (int32, error)

HashCode calls android.health.connect.datatypes.units.Mass.hashCode.

func (*Mass) ToString

func (m *Mass) ToString() (string, error)

ToString calls android.health.connect.datatypes.units.Mass.toString.

type Percentage

type Percentage struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

Percentage wraps android.health.connect.datatypes.units.Percentage.

func (*Percentage) CompareTo1

func (m *Percentage) CompareTo1(arg0 *jni.Object) (int32, error)

CompareTo1 calls android.health.connect.datatypes.units.Percentage.compareTo.

func (*Percentage) CompareTo1_1

func (m *Percentage) CompareTo1_1(arg0 *jni.Object) (int32, error)

CompareTo1_1 calls android.health.connect.datatypes.units.Percentage.compareTo.

func (*Percentage) Equals

func (m *Percentage) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.health.connect.datatypes.units.Percentage.equals.

func (*Percentage) FromValue

func (m *Percentage) FromValue(arg0 float64) (*jni.Object, error)

FromValue calls android.health.connect.datatypes.units.Percentage.fromValue.

func (*Percentage) GetValue

func (m *Percentage) GetValue() (float64, error)

GetValue calls android.health.connect.datatypes.units.Percentage.getValue.

func (*Percentage) HashCode

func (m *Percentage) HashCode() (int32, error)

HashCode calls android.health.connect.datatypes.units.Percentage.hashCode.

func (*Percentage) ToString

func (m *Percentage) ToString() (string, error)

ToString calls android.health.connect.datatypes.units.Percentage.toString.

type Power

type Power struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

Power wraps android.health.connect.datatypes.units.Power.

func (*Power) CompareTo1

func (m *Power) CompareTo1(arg0 *jni.Object) (int32, error)

CompareTo1 calls android.health.connect.datatypes.units.Power.compareTo.

func (*Power) CompareTo1_1

func (m *Power) CompareTo1_1(arg0 *jni.Object) (int32, error)

CompareTo1_1 calls android.health.connect.datatypes.units.Power.compareTo.

func (*Power) Equals

func (m *Power) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.health.connect.datatypes.units.Power.equals.

func (*Power) FromWatts

func (m *Power) FromWatts(arg0 float64) (*jni.Object, error)

FromWatts calls android.health.connect.datatypes.units.Power.fromWatts.

func (*Power) GetInWatts

func (m *Power) GetInWatts() (float64, error)

GetInWatts calls android.health.connect.datatypes.units.Power.getInWatts.

func (*Power) HashCode

func (m *Power) HashCode() (int32, error)

HashCode calls android.health.connect.datatypes.units.Power.hashCode.

func (*Power) ToString

func (m *Power) ToString() (string, error)

ToString calls android.health.connect.datatypes.units.Power.toString.

type Pressure

type Pressure struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

Pressure wraps android.health.connect.datatypes.units.Pressure.

func (*Pressure) CompareTo1

func (m *Pressure) CompareTo1(arg0 *jni.Object) (int32, error)

CompareTo1 calls android.health.connect.datatypes.units.Pressure.compareTo.

func (*Pressure) CompareTo1_1

func (m *Pressure) CompareTo1_1(arg0 *jni.Object) (int32, error)

CompareTo1_1 calls android.health.connect.datatypes.units.Pressure.compareTo.

func (*Pressure) Equals

func (m *Pressure) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.health.connect.datatypes.units.Pressure.equals.

func (*Pressure) FromMillimetersOfMercury

func (m *Pressure) FromMillimetersOfMercury(arg0 float64) (*jni.Object, error)

FromMillimetersOfMercury calls android.health.connect.datatypes.units.Pressure.fromMillimetersOfMercury.

func (*Pressure) GetInMillimetersOfMercury

func (m *Pressure) GetInMillimetersOfMercury() (float64, error)

GetInMillimetersOfMercury calls android.health.connect.datatypes.units.Pressure.getInMillimetersOfMercury.

func (*Pressure) HashCode

func (m *Pressure) HashCode() (int32, error)

HashCode calls android.health.connect.datatypes.units.Pressure.hashCode.

func (*Pressure) ToString

func (m *Pressure) ToString() (string, error)

ToString calls android.health.connect.datatypes.units.Pressure.toString.

type Temperature

type Temperature struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

Temperature wraps android.health.connect.datatypes.units.Temperature.

func (*Temperature) CompareTo1

func (m *Temperature) CompareTo1(arg0 *jni.Object) (int32, error)

CompareTo1 calls android.health.connect.datatypes.units.Temperature.compareTo.

func (*Temperature) CompareTo1_1

func (m *Temperature) CompareTo1_1(arg0 *jni.Object) (int32, error)

CompareTo1_1 calls android.health.connect.datatypes.units.Temperature.compareTo.

func (*Temperature) Equals

func (m *Temperature) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.health.connect.datatypes.units.Temperature.equals.

func (*Temperature) FromCelsius

func (m *Temperature) FromCelsius(arg0 float64) (*jni.Object, error)

FromCelsius calls android.health.connect.datatypes.units.Temperature.fromCelsius.

func (*Temperature) GetInCelsius

func (m *Temperature) GetInCelsius() (float64, error)

GetInCelsius calls android.health.connect.datatypes.units.Temperature.getInCelsius.

func (*Temperature) HashCode

func (m *Temperature) HashCode() (int32, error)

HashCode calls android.health.connect.datatypes.units.Temperature.hashCode.

func (*Temperature) ToString

func (m *Temperature) ToString() (string, error)

ToString calls android.health.connect.datatypes.units.Temperature.toString.

type TemperatureDelta

type TemperatureDelta struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

TemperatureDelta wraps android.health.connect.datatypes.units.TemperatureDelta.

func (*TemperatureDelta) CompareTo1

func (m *TemperatureDelta) CompareTo1(arg0 *jni.Object) (int32, error)

CompareTo1 calls android.health.connect.datatypes.units.TemperatureDelta.compareTo.

func (*TemperatureDelta) CompareTo1_1

func (m *TemperatureDelta) CompareTo1_1(arg0 *jni.Object) (int32, error)

CompareTo1_1 calls android.health.connect.datatypes.units.TemperatureDelta.compareTo.

func (*TemperatureDelta) Equals

func (m *TemperatureDelta) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.health.connect.datatypes.units.TemperatureDelta.equals.

func (*TemperatureDelta) FromCelsius

func (m *TemperatureDelta) FromCelsius(arg0 float64) (*jni.Object, error)

FromCelsius calls android.health.connect.datatypes.units.TemperatureDelta.fromCelsius.

func (*TemperatureDelta) GetInCelsius

func (m *TemperatureDelta) GetInCelsius() (float64, error)

GetInCelsius calls android.health.connect.datatypes.units.TemperatureDelta.getInCelsius.

func (*TemperatureDelta) HashCode

func (m *TemperatureDelta) HashCode() (int32, error)

HashCode calls android.health.connect.datatypes.units.TemperatureDelta.hashCode.

func (*TemperatureDelta) ToString

func (m *TemperatureDelta) ToString() (string, error)

ToString calls android.health.connect.datatypes.units.TemperatureDelta.toString.

type Velocity

type Velocity struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

Velocity wraps android.health.connect.datatypes.units.Velocity.

func (*Velocity) CompareTo1

func (m *Velocity) CompareTo1(arg0 *jni.Object) (int32, error)

CompareTo1 calls android.health.connect.datatypes.units.Velocity.compareTo.

func (*Velocity) CompareTo1_1

func (m *Velocity) CompareTo1_1(arg0 *jni.Object) (int32, error)

CompareTo1_1 calls android.health.connect.datatypes.units.Velocity.compareTo.

func (*Velocity) Equals

func (m *Velocity) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.health.connect.datatypes.units.Velocity.equals.

func (*Velocity) FromMetersPerSecond

func (m *Velocity) FromMetersPerSecond(arg0 float64) (*jni.Object, error)

FromMetersPerSecond calls android.health.connect.datatypes.units.Velocity.fromMetersPerSecond.

func (*Velocity) GetInMetersPerSecond

func (m *Velocity) GetInMetersPerSecond() (float64, error)

GetInMetersPerSecond calls android.health.connect.datatypes.units.Velocity.getInMetersPerSecond.

func (*Velocity) HashCode

func (m *Velocity) HashCode() (int32, error)

HashCode calls android.health.connect.datatypes.units.Velocity.hashCode.

func (*Velocity) ToString

func (m *Velocity) ToString() (string, error)

ToString calls android.health.connect.datatypes.units.Velocity.toString.

type Volume

type Volume struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

Volume wraps android.health.connect.datatypes.units.Volume.

func (*Volume) CompareTo1

func (m *Volume) CompareTo1(arg0 *jni.Object) (int32, error)

CompareTo1 calls android.health.connect.datatypes.units.Volume.compareTo.

func (*Volume) CompareTo1_1

func (m *Volume) CompareTo1_1(arg0 *jni.Object) (int32, error)

CompareTo1_1 calls android.health.connect.datatypes.units.Volume.compareTo.

func (*Volume) Equals

func (m *Volume) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.health.connect.datatypes.units.Volume.equals.

func (*Volume) FromLiters

func (m *Volume) FromLiters(arg0 float64) (*jni.Object, error)

FromLiters calls android.health.connect.datatypes.units.Volume.fromLiters.

func (*Volume) GetInLiters

func (m *Volume) GetInLiters() (float64, error)

GetInLiters calls android.health.connect.datatypes.units.Volume.getInLiters.

func (*Volume) HashCode

func (m *Volume) HashCode() (int32, error)

HashCode calls android.health.connect.datatypes.units.Volume.hashCode.

func (*Volume) ToString

func (m *Volume) ToString() (string, error)

ToString calls android.health.connect.datatypes.units.Volume.toString.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL