This site requires javascript.
Android Code Search
file:androidx/health/connect/client/units/Energy.kt symbol:joules
search
close
info_outline
more_vert
Result 1 of 1
content_copy
Search Result Root
androidx/platform/frameworks/support
keyboard_arrow_right
Branch
Branch
androidx-main
keyboard_arrow_right
Search Result Path
health/connect/connect-client/src/main/java/androidx/health/connect/client/units/
Energy.kt
content_copy
Preview
43:
44:
45:
@
get
:JvmName(
"getJoules"
)
val
in
Joules
: Double
get
() = get(type = Type.JOULES)
89:
90:
91:
92:
93:
94:
/** Creates [Energy] with the specified value in joules. */
@JvmStatic
fun
joules
(value: Double): Energy = Energy(value, Type.JOULES)
/** Creates [Energy] with the specified value in kilojoules. */
@JvmStatic
fun
kilo
joules
(value: Double): Energy = Energy(value, Type.KILOJOULES)
}
104:
105:
106:
},
JOULES
{
override
val
caloriesPerUnit: Double =
0.2390057361
108:
109:
110:
},
KILO
JOULES
{
override
val
caloriesPerUnit: Double =
239.0057361
160:
161:
162:
@
get
:JvmSynthetic
val
Double.
joules
: Energy
get
() = Energy.joules(value = this)
165:
166:
167:
@
get
:JvmSynthetic
val
Long.
joules
: Energy
get
() = toDouble().joules
170:
171:
172:
@
get
:JvmSynthetic
val
Float.
joules
: Energy
get
() = toDouble().joules
175:
176:
177:
@
get
:JvmSynthetic
val
Int.
joules
: Energy
get
() = toDouble().joules
180:
181:
182:
@
get
:JvmSynthetic
val
Double.kilo
joules
: Energy
get
() = Energy.kilojoules(value = this)
unfold_more
Show 4 more matching lines
chevron_left
1
chevron_right
Results per page
10
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Got it
Help
Open branch androidx-main