Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 1 | // Signature format: 4.0 |
| 2 | package androidx.health.services.client { |
| 3 | |
| 4 | public interface ExerciseClient { |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 5 | method public com.google.common.util.concurrent.ListenableFuture<java.lang.Void> addGoalToActiveExerciseAsync(androidx.health.services.client.data.ExerciseGoal<?> exerciseGoal); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 6 | method public com.google.common.util.concurrent.ListenableFuture<java.lang.Void> clearUpdateCallbackAsync(androidx.health.services.client.ExerciseUpdateCallback callback); |
| 7 | method public com.google.common.util.concurrent.ListenableFuture<java.lang.Void> endExerciseAsync(); |
Nagesh Pachorkar | e433156 | 2022-09-02 14:56:34 -0700 | [diff] [blame] | 8 | method public com.google.common.util.concurrent.ListenableFuture<java.lang.Void> flushAsync(); |
Sean Kelley | 1d0bdb5 | 2022-04-23 14:53:11 -0700 | [diff] [blame] | 9 | method public com.google.common.util.concurrent.ListenableFuture<androidx.health.services.client.data.ExerciseCapabilities> getCapabilitiesAsync(); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 10 | method public com.google.common.util.concurrent.ListenableFuture<androidx.health.services.client.data.ExerciseInfo> getCurrentExerciseInfoAsync(); |
| 11 | method public com.google.common.util.concurrent.ListenableFuture<java.lang.Void> markLapAsync(); |
| 12 | method public com.google.common.util.concurrent.ListenableFuture<java.lang.Void> overrideAutoPauseAndResumeForActiveExerciseAsync(boolean enabled); |
| 13 | method public com.google.common.util.concurrent.ListenableFuture<java.lang.Void> pauseExerciseAsync(); |
| 14 | method public com.google.common.util.concurrent.ListenableFuture<java.lang.Void> prepareExerciseAsync(androidx.health.services.client.data.WarmUpConfig configuration); |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 15 | method public com.google.common.util.concurrent.ListenableFuture<java.lang.Void> removeGoalFromActiveExerciseAsync(androidx.health.services.client.data.ExerciseGoal<?> exerciseGoal); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 16 | method public com.google.common.util.concurrent.ListenableFuture<java.lang.Void> resumeExerciseAsync(); |
| 17 | method public void setUpdateCallback(androidx.health.services.client.ExerciseUpdateCallback callback); |
| 18 | method public void setUpdateCallback(java.util.concurrent.Executor executor, androidx.health.services.client.ExerciseUpdateCallback callback); |
| 19 | method public com.google.common.util.concurrent.ListenableFuture<java.lang.Void> startExerciseAsync(androidx.health.services.client.data.ExerciseConfig configuration); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 20 | } |
| 21 | |
| 22 | public interface ExerciseUpdateCallback { |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 23 | method public void onAvailabilityChanged(androidx.health.services.client.data.DataType<?,?> dataType, androidx.health.services.client.data.Availability availability); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 24 | method public void onExerciseUpdateReceived(androidx.health.services.client.data.ExerciseUpdate update); |
| 25 | method public void onLapSummaryReceived(androidx.health.services.client.data.ExerciseLapSummary lapSummary); |
| 26 | method public void onRegistered(); |
| 27 | method public void onRegistrationFailed(Throwable throwable); |
| 28 | } |
| 29 | |
| 30 | public final class HealthServices { |
| 31 | method public static androidx.health.services.client.HealthServicesClient getClient(android.content.Context context); |
| 32 | field public static final androidx.health.services.client.HealthServices INSTANCE; |
| 33 | } |
| 34 | |
| 35 | public interface HealthServicesClient { |
| 36 | method public androidx.health.services.client.ExerciseClient getExerciseClient(); |
| 37 | method public androidx.health.services.client.MeasureClient getMeasureClient(); |
| 38 | method public androidx.health.services.client.PassiveMonitoringClient getPassiveMonitoringClient(); |
| 39 | property public abstract androidx.health.services.client.ExerciseClient exerciseClient; |
| 40 | property public abstract androidx.health.services.client.MeasureClient measureClient; |
| 41 | property public abstract androidx.health.services.client.PassiveMonitoringClient passiveMonitoringClient; |
| 42 | } |
| 43 | |
| 44 | public interface MeasureCallback { |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 45 | method public void onAvailabilityChanged(androidx.health.services.client.data.DeltaDataType<?,?> dataType, androidx.health.services.client.data.Availability availability); |
| 46 | method public void onDataReceived(androidx.health.services.client.data.DataPointContainer data); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 47 | method public default void onRegistered(); |
| 48 | method public default void onRegistrationFailed(Throwable throwable); |
| 49 | } |
| 50 | |
| 51 | public interface MeasureClient { |
Sean Kelley | 1d0bdb5 | 2022-04-23 14:53:11 -0700 | [diff] [blame] | 52 | method public com.google.common.util.concurrent.ListenableFuture<androidx.health.services.client.data.MeasureCapabilities> getCapabilitiesAsync(); |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 53 | method public void registerMeasureCallback(androidx.health.services.client.data.DeltaDataType<?,?> dataType, androidx.health.services.client.MeasureCallback callback); |
| 54 | method public void registerMeasureCallback(androidx.health.services.client.data.DeltaDataType<?,?> dataType, java.util.concurrent.Executor executor, androidx.health.services.client.MeasureCallback callback); |
| 55 | method public com.google.common.util.concurrent.ListenableFuture<java.lang.Void> unregisterMeasureCallbackAsync(androidx.health.services.client.data.DeltaDataType<?,?> dataType, androidx.health.services.client.MeasureCallback callback); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 56 | } |
| 57 | |
Sean Kelley | 125448c | 2022-04-26 17:26:10 -0700 | [diff] [blame] | 58 | public interface PassiveListenerCallback { |
| 59 | method public default void onGoalCompleted(androidx.health.services.client.data.PassiveGoal goal); |
| 60 | method public default void onHealthEventReceived(androidx.health.services.client.data.HealthEvent event); |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 61 | method public default void onNewDataPointsReceived(androidx.health.services.client.data.DataPointContainer dataPoints); |
Sean Kelley | 125448c | 2022-04-26 17:26:10 -0700 | [diff] [blame] | 62 | method public default void onPermissionLost(); |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 63 | method public default void onRegistered(); |
| 64 | method public default void onRegistrationFailed(Throwable throwable); |
Sean Kelley | 125448c | 2022-04-26 17:26:10 -0700 | [diff] [blame] | 65 | method public default void onUserActivityInfoReceived(androidx.health.services.client.data.UserActivityInfo info); |
| 66 | } |
| 67 | |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 68 | public abstract class PassiveListenerService extends android.app.Service { |
Sean Kelley | 125448c | 2022-04-26 17:26:10 -0700 | [diff] [blame] | 69 | ctor public PassiveListenerService(); |
| 70 | method public final android.os.IBinder? onBind(android.content.Intent intent); |
Sean Kelley | 5c22668 | 2022-09-28 17:09:45 -0700 | [diff] [blame] | 71 | method public void onGoalCompleted(androidx.health.services.client.data.PassiveGoal goal); |
| 72 | method public void onHealthEventReceived(androidx.health.services.client.data.HealthEvent event); |
| 73 | method public void onNewDataPointsReceived(androidx.health.services.client.data.DataPointContainer dataPoints); |
| 74 | method public void onPermissionLost(); |
| 75 | method public void onUserActivityInfoReceived(androidx.health.services.client.data.UserActivityInfo info); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 76 | } |
| 77 | |
| 78 | public interface PassiveMonitoringClient { |
Sean Kelley | 125448c | 2022-04-26 17:26:10 -0700 | [diff] [blame] | 79 | method public com.google.common.util.concurrent.ListenableFuture<java.lang.Void> clearPassiveListenerCallbackAsync(); |
| 80 | method public com.google.common.util.concurrent.ListenableFuture<java.lang.Void> clearPassiveListenerServiceAsync(); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 81 | method public com.google.common.util.concurrent.ListenableFuture<java.lang.Void> flushAsync(); |
Sean Kelley | 1d0bdb5 | 2022-04-23 14:53:11 -0700 | [diff] [blame] | 82 | method public com.google.common.util.concurrent.ListenableFuture<androidx.health.services.client.data.PassiveMonitoringCapabilities> getCapabilitiesAsync(); |
Sean Kelley | 125448c | 2022-04-26 17:26:10 -0700 | [diff] [blame] | 83 | method public void setPassiveListenerCallback(androidx.health.services.client.data.PassiveListenerConfig config, androidx.health.services.client.PassiveListenerCallback callback); |
| 84 | method public void setPassiveListenerCallback(androidx.health.services.client.data.PassiveListenerConfig config, java.util.concurrent.Executor executor, androidx.health.services.client.PassiveListenerCallback callback); |
| 85 | method public com.google.common.util.concurrent.ListenableFuture<java.lang.Void> setPassiveListenerServiceAsync(Class<? extends androidx.health.services.client.PassiveListenerService> service, androidx.health.services.client.data.PassiveListenerConfig config); |
Sean Kelley | 1d0bdb5 | 2022-04-23 14:53:11 -0700 | [diff] [blame] | 86 | } |
| 87 | |
| 88 | public final class VersionApiService extends android.app.Service { |
| 89 | ctor public VersionApiService(); |
| 90 | method public android.os.IBinder? onBind(android.content.Intent? intent); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 91 | } |
| 92 | |
| 93 | } |
| 94 | |
| 95 | package androidx.health.services.client.data { |
| 96 | |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 97 | public final class AggregateDataType<T extends java.lang.Number, D extends androidx.health.services.client.data.DataPoint<T>> extends androidx.health.services.client.data.DataType<T,D> { |
Hari Mallidi | 2136bde | 2022-09-08 20:30:31 +0000 | [diff] [blame] | 98 | ctor public AggregateDataType(String name, androidx.health.services.client.data.DataType.TimeType timeType, Class<T> valueClass); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 99 | } |
| 100 | |
| 101 | public interface Availability { |
| 102 | method public int getId(); |
| 103 | property public abstract int id; |
| 104 | field public static final androidx.health.services.client.data.Availability.Companion Companion; |
| 105 | } |
| 106 | |
| 107 | public static final class Availability.Companion { |
| 108 | } |
| 109 | |
| 110 | public final class ComparisonType { |
| 111 | method public int getId(); |
| 112 | method public String getName(); |
| 113 | property public final int id; |
| 114 | property public final String name; |
| 115 | field public static final androidx.health.services.client.data.ComparisonType.Companion Companion; |
| 116 | field public static final androidx.health.services.client.data.ComparisonType GREATER_THAN; |
| 117 | field public static final androidx.health.services.client.data.ComparisonType GREATER_THAN_OR_EQUAL; |
| 118 | field public static final androidx.health.services.client.data.ComparisonType LESS_THAN; |
| 119 | field public static final androidx.health.services.client.data.ComparisonType LESS_THAN_OR_EQUAL; |
| 120 | field public static final androidx.health.services.client.data.ComparisonType UNKNOWN; |
| 121 | } |
| 122 | |
| 123 | public static final class ComparisonType.Companion { |
| 124 | } |
| 125 | |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 126 | public final class CumulativeDataPoint<T extends java.lang.Number> extends androidx.health.services.client.data.DataPoint<T> { |
| 127 | ctor public CumulativeDataPoint(androidx.health.services.client.data.AggregateDataType<T,androidx.health.services.client.data.CumulativeDataPoint<T>> dataType, T total, java.time.Instant start, java.time.Instant end); |
| 128 | method public java.time.Instant getEnd(); |
| 129 | method public java.time.Instant getStart(); |
| 130 | method public T getTotal(); |
| 131 | property public final java.time.Instant end; |
| 132 | property public final java.time.Instant start; |
| 133 | property public final T total; |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 134 | } |
| 135 | |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 136 | public abstract class DataPoint<T> { |
| 137 | method public androidx.health.services.client.data.DataType<T,? extends androidx.health.services.client.data.DataPoint<T>> getDataType(); |
| 138 | property public androidx.health.services.client.data.DataType<T,? extends androidx.health.services.client.data.DataPoint<T>> dataType; |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 139 | } |
| 140 | |
Sean Kelley | 5c559c2 | 2022-10-04 19:02:22 -0700 | [diff] [blame] | 141 | public abstract class DataPointAccuracy { |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 142 | ctor public DataPointAccuracy(); |
| 143 | } |
| 144 | |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 145 | public final class DataPointContainer { |
| 146 | ctor public DataPointContainer(java.util.Map<androidx.health.services.client.data.DataType<?,?>,? extends java.util.List<? extends androidx.health.services.client.data.DataPoint<?>>> dataPoints); |
| 147 | ctor public DataPointContainer(java.util.List<? extends androidx.health.services.client.data.DataPoint<?>> dataPointList); |
| 148 | method public java.util.List<androidx.health.services.client.data.CumulativeDataPoint<?>> getCumulativeDataPoints(); |
| 149 | method public <T, D extends androidx.health.services.client.data.DataPoint<T>> java.util.List<D> getData(androidx.health.services.client.data.DeltaDataType<T,D> type); |
| 150 | method public <T extends java.lang.Number, D extends androidx.health.services.client.data.DataPoint<T>> D? getData(androidx.health.services.client.data.AggregateDataType<T,D> type); |
| 151 | method public java.util.Set<androidx.health.services.client.data.DataType<?,?>> getDataTypes(); |
| 152 | method public java.util.List<androidx.health.services.client.data.IntervalDataPoint<?>> getIntervalDataPoints(); |
| 153 | method public java.util.List<androidx.health.services.client.data.SampleDataPoint<?>> getSampleDataPoints(); |
| 154 | method public java.util.List<androidx.health.services.client.data.StatisticalDataPoint<?>> getStatisticalDataPoints(); |
| 155 | property public final java.util.List<androidx.health.services.client.data.CumulativeDataPoint<?>> cumulativeDataPoints; |
| 156 | property public final java.util.Set<androidx.health.services.client.data.DataType<?,?>> dataTypes; |
| 157 | property public final java.util.List<androidx.health.services.client.data.IntervalDataPoint<?>> intervalDataPoints; |
| 158 | property public final java.util.List<androidx.health.services.client.data.SampleDataPoint<?>> sampleDataPoints; |
| 159 | property public final java.util.List<androidx.health.services.client.data.StatisticalDataPoint<?>> statisticalDataPoints; |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 160 | } |
| 161 | |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 162 | public abstract class DataType<T, D extends androidx.health.services.client.data.DataPoint<T>> { |
Hari Mallidi | 2136bde | 2022-09-08 20:30:31 +0000 | [diff] [blame] | 163 | ctor public DataType(String name, androidx.health.services.client.data.DataType.TimeType timeType, Class<T> valueClass, boolean isAggregate); |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 164 | method public final String getName(); |
Hari Mallidi | 2136bde | 2022-09-08 20:30:31 +0000 | [diff] [blame] | 165 | method public final Class<T> getValueClass(); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 166 | property public final String name; |
Hari Mallidi | 2136bde | 2022-09-08 20:30:31 +0000 | [diff] [blame] | 167 | property public final Class<T> valueClass; |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 168 | field public static final androidx.health.services.client.data.DeltaDataType<java.lang.Double,androidx.health.services.client.data.SampleDataPoint<java.lang.Double>> ABSOLUTE_ELEVATION; |
| 169 | field public static final androidx.health.services.client.data.AggregateDataType<java.lang.Double,androidx.health.services.client.data.StatisticalDataPoint<java.lang.Double>> ABSOLUTE_ELEVATION_STATS; |
| 170 | field public static final androidx.health.services.client.data.AggregateDataType<java.lang.Long,androidx.health.services.client.data.CumulativeDataPoint<java.lang.Long>> ACTIVE_EXERCISE_DURATION_TOTAL; |
| 171 | field public static final androidx.health.services.client.data.DeltaDataType<java.lang.Double,androidx.health.services.client.data.IntervalDataPoint<java.lang.Double>> CALORIES; |
| 172 | field public static final androidx.health.services.client.data.DeltaDataType<java.lang.Double,androidx.health.services.client.data.IntervalDataPoint<java.lang.Double>> CALORIES_DAILY; |
| 173 | field public static final androidx.health.services.client.data.AggregateDataType<java.lang.Double,androidx.health.services.client.data.CumulativeDataPoint<java.lang.Double>> CALORIES_TOTAL; |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 174 | field public static final androidx.health.services.client.data.DataType.Companion Companion; |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 175 | field public static final androidx.health.services.client.data.DeltaDataType<java.lang.Double,androidx.health.services.client.data.IntervalDataPoint<java.lang.Double>> DECLINE_DISTANCE; |
| 176 | field public static final androidx.health.services.client.data.AggregateDataType<java.lang.Double,androidx.health.services.client.data.CumulativeDataPoint<java.lang.Double>> DECLINE_DISTANCE_TOTAL; |
| 177 | field public static final androidx.health.services.client.data.DeltaDataType<java.lang.Long,androidx.health.services.client.data.IntervalDataPoint<java.lang.Long>> DECLINE_DURATION; |
| 178 | field public static final androidx.health.services.client.data.AggregateDataType<java.lang.Long,androidx.health.services.client.data.CumulativeDataPoint<java.lang.Long>> DECLINE_DURATION_TOTAL; |
| 179 | field public static final androidx.health.services.client.data.DeltaDataType<java.lang.Double,androidx.health.services.client.data.IntervalDataPoint<java.lang.Double>> DISTANCE; |
| 180 | field public static final androidx.health.services.client.data.DeltaDataType<java.lang.Double,androidx.health.services.client.data.IntervalDataPoint<java.lang.Double>> DISTANCE_DAILY; |
| 181 | field public static final androidx.health.services.client.data.AggregateDataType<java.lang.Double,androidx.health.services.client.data.CumulativeDataPoint<java.lang.Double>> DISTANCE_TOTAL; |
| 182 | field public static final androidx.health.services.client.data.DeltaDataType<java.lang.Double,androidx.health.services.client.data.IntervalDataPoint<java.lang.Double>> ELEVATION_GAIN; |
| 183 | field public static final androidx.health.services.client.data.AggregateDataType<java.lang.Double,androidx.health.services.client.data.CumulativeDataPoint<java.lang.Double>> ELEVATION_GAIN_TOTAL; |
| 184 | field public static final androidx.health.services.client.data.DeltaDataType<java.lang.Double,androidx.health.services.client.data.IntervalDataPoint<java.lang.Double>> ELEVATION_LOSS; |
| 185 | field public static final androidx.health.services.client.data.AggregateDataType<java.lang.Double,androidx.health.services.client.data.CumulativeDataPoint<java.lang.Double>> ELEVATION_LOSS_TOTAL; |
| 186 | field public static final androidx.health.services.client.data.DeltaDataType<java.lang.Double,androidx.health.services.client.data.IntervalDataPoint<java.lang.Double>> FLAT_GROUND_DISTANCE; |
| 187 | field public static final androidx.health.services.client.data.AggregateDataType<java.lang.Double,androidx.health.services.client.data.CumulativeDataPoint<java.lang.Double>> FLAT_GROUND_DISTANCE_TOTAL; |
| 188 | field public static final androidx.health.services.client.data.DeltaDataType<java.lang.Long,androidx.health.services.client.data.IntervalDataPoint<java.lang.Long>> FLAT_GROUND_DURATION; |
| 189 | field public static final androidx.health.services.client.data.AggregateDataType<java.lang.Long,androidx.health.services.client.data.CumulativeDataPoint<java.lang.Long>> FLAT_GROUND_DURATION_TOTAL; |
| 190 | field public static final androidx.health.services.client.data.DeltaDataType<java.lang.Double,androidx.health.services.client.data.IntervalDataPoint<java.lang.Double>> FLOORS; |
| 191 | field public static final androidx.health.services.client.data.DeltaDataType<java.lang.Double,androidx.health.services.client.data.IntervalDataPoint<java.lang.Double>> FLOORS_DAILY; |
| 192 | field public static final androidx.health.services.client.data.AggregateDataType<java.lang.Double,androidx.health.services.client.data.CumulativeDataPoint<java.lang.Double>> FLOORS_TOTAL; |
| 193 | field public static final androidx.health.services.client.data.DeltaDataType<java.lang.Long,androidx.health.services.client.data.IntervalDataPoint<java.lang.Long>> GOLF_SHOT_COUNT; |
| 194 | field public static final androidx.health.services.client.data.AggregateDataType<java.lang.Long,androidx.health.services.client.data.CumulativeDataPoint<java.lang.Long>> GOLF_SHOT_COUNT_TOTAL; |
| 195 | field public static final androidx.health.services.client.data.DeltaDataType<java.lang.Double,androidx.health.services.client.data.SampleDataPoint<java.lang.Double>> HEART_RATE_BPM; |
| 196 | field public static final androidx.health.services.client.data.AggregateDataType<java.lang.Double,androidx.health.services.client.data.StatisticalDataPoint<java.lang.Double>> HEART_RATE_BPM_STATS; |
| 197 | field public static final androidx.health.services.client.data.DeltaDataType<java.lang.Double,androidx.health.services.client.data.IntervalDataPoint<java.lang.Double>> INCLINE_DISTANCE; |
| 198 | field public static final androidx.health.services.client.data.AggregateDataType<java.lang.Double,androidx.health.services.client.data.CumulativeDataPoint<java.lang.Double>> INCLINE_DISTANCE_TOTAL; |
| 199 | field public static final androidx.health.services.client.data.DeltaDataType<java.lang.Long,androidx.health.services.client.data.IntervalDataPoint<java.lang.Long>> INCLINE_DURATION; |
| 200 | field public static final androidx.health.services.client.data.AggregateDataType<java.lang.Long,androidx.health.services.client.data.CumulativeDataPoint<java.lang.Long>> INCLINE_DURATION_TOTAL; |
| 201 | field public static final androidx.health.services.client.data.DeltaDataType<androidx.health.services.client.data.LocationData,androidx.health.services.client.data.SampleDataPoint<androidx.health.services.client.data.LocationData>> LOCATION; |
| 202 | field public static final androidx.health.services.client.data.DeltaDataType<java.lang.Double,androidx.health.services.client.data.SampleDataPoint<java.lang.Double>> PACE; |
| 203 | field public static final androidx.health.services.client.data.AggregateDataType<java.lang.Double,androidx.health.services.client.data.StatisticalDataPoint<java.lang.Double>> PACE_STATS; |
| 204 | field public static final androidx.health.services.client.data.DeltaDataType<java.lang.Long,androidx.health.services.client.data.IntervalDataPoint<java.lang.Long>> REP_COUNT; |
| 205 | field public static final androidx.health.services.client.data.AggregateDataType<java.lang.Long,androidx.health.services.client.data.CumulativeDataPoint<java.lang.Long>> REP_COUNT_TOTAL; |
| 206 | field public static final androidx.health.services.client.data.DeltaDataType<java.lang.Long,androidx.health.services.client.data.IntervalDataPoint<java.lang.Long>> RESTING_EXERCISE_DURATION; |
| 207 | field public static final androidx.health.services.client.data.AggregateDataType<java.lang.Long,androidx.health.services.client.data.CumulativeDataPoint<java.lang.Long>> RESTING_EXERCISE_DURATION_TOTAL; |
| 208 | field public static final androidx.health.services.client.data.DeltaDataType<java.lang.Long,androidx.health.services.client.data.IntervalDataPoint<java.lang.Long>> RUNNING_STEPS; |
| 209 | field public static final androidx.health.services.client.data.AggregateDataType<java.lang.Long,androidx.health.services.client.data.CumulativeDataPoint<java.lang.Long>> RUNNING_STEPS_TOTAL; |
| 210 | field public static final androidx.health.services.client.data.DeltaDataType<java.lang.Double,androidx.health.services.client.data.SampleDataPoint<java.lang.Double>> SPEED; |
| 211 | field public static final androidx.health.services.client.data.AggregateDataType<java.lang.Double,androidx.health.services.client.data.StatisticalDataPoint<java.lang.Double>> SPEED_STATS; |
| 212 | field public static final androidx.health.services.client.data.DeltaDataType<java.lang.Long,androidx.health.services.client.data.IntervalDataPoint<java.lang.Long>> STEPS; |
| 213 | field public static final androidx.health.services.client.data.DeltaDataType<java.lang.Long,androidx.health.services.client.data.IntervalDataPoint<java.lang.Long>> STEPS_DAILY; |
| 214 | field public static final androidx.health.services.client.data.DeltaDataType<java.lang.Long,androidx.health.services.client.data.SampleDataPoint<java.lang.Long>> STEPS_PER_MINUTE; |
| 215 | field public static final androidx.health.services.client.data.AggregateDataType<java.lang.Long,androidx.health.services.client.data.StatisticalDataPoint<java.lang.Long>> STEPS_PER_MINUTE_STATS; |
| 216 | field public static final androidx.health.services.client.data.AggregateDataType<java.lang.Long,androidx.health.services.client.data.CumulativeDataPoint<java.lang.Long>> STEPS_TOTAL; |
| 217 | field public static final androidx.health.services.client.data.DeltaDataType<java.lang.Long,androidx.health.services.client.data.IntervalDataPoint<java.lang.Long>> SWIMMING_LAP_COUNT; |
| 218 | field public static final androidx.health.services.client.data.DeltaDataType<java.lang.Long,androidx.health.services.client.data.IntervalDataPoint<java.lang.Long>> SWIMMING_STROKES; |
| 219 | field public static final androidx.health.services.client.data.AggregateDataType<java.lang.Long,androidx.health.services.client.data.CumulativeDataPoint<java.lang.Long>> SWIMMING_STROKES_TOTAL; |
| 220 | field public static final androidx.health.services.client.data.DeltaDataType<java.lang.Double,androidx.health.services.client.data.SampleDataPoint<java.lang.Double>> VO2_MAX; |
| 221 | field public static final androidx.health.services.client.data.AggregateDataType<java.lang.Double,androidx.health.services.client.data.StatisticalDataPoint<java.lang.Double>> VO2_MAX_STATS; |
| 222 | field public static final androidx.health.services.client.data.DeltaDataType<java.lang.Long,androidx.health.services.client.data.IntervalDataPoint<java.lang.Long>> WALKING_STEPS; |
| 223 | field public static final androidx.health.services.client.data.AggregateDataType<java.lang.Long,androidx.health.services.client.data.CumulativeDataPoint<java.lang.Long>> WALKING_STEPS_TOTAL; |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 224 | } |
| 225 | |
| 226 | public static final class DataType.Companion { |
| 227 | } |
| 228 | |
| 229 | public static final class DataType.TimeType { |
| 230 | method public int getId(); |
| 231 | method public String getName(); |
| 232 | property public final int id; |
| 233 | property public final String name; |
| 234 | field public static final androidx.health.services.client.data.DataType.TimeType.Companion Companion; |
| 235 | field public static final androidx.health.services.client.data.DataType.TimeType INTERVAL; |
| 236 | field public static final androidx.health.services.client.data.DataType.TimeType SAMPLE; |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 237 | field public static final androidx.health.services.client.data.DataType.TimeType UNKNOWN; |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 238 | } |
| 239 | |
| 240 | public static final class DataType.TimeType.Companion { |
| 241 | } |
| 242 | |
| 243 | public final class DataTypeAvailability implements androidx.health.services.client.data.Availability { |
| 244 | method public static androidx.health.services.client.data.DataTypeAvailability? fromId(int id); |
| 245 | method public int getId(); |
| 246 | method public String getName(); |
| 247 | property public int id; |
| 248 | property public final String name; |
| 249 | field public static final androidx.health.services.client.data.DataTypeAvailability ACQUIRING; |
| 250 | field public static final androidx.health.services.client.data.DataTypeAvailability AVAILABLE; |
| 251 | field public static final androidx.health.services.client.data.DataTypeAvailability.Companion Companion; |
| 252 | field public static final androidx.health.services.client.data.DataTypeAvailability UNAVAILABLE; |
| 253 | field public static final androidx.health.services.client.data.DataTypeAvailability UNAVAILABLE_DEVICE_OFF_BODY; |
| 254 | field public static final androidx.health.services.client.data.DataTypeAvailability UNKNOWN; |
| 255 | } |
| 256 | |
| 257 | public static final class DataTypeAvailability.Companion { |
| 258 | method public androidx.health.services.client.data.DataTypeAvailability? fromId(int id); |
| 259 | } |
| 260 | |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 261 | public final class DataTypeCondition<T extends java.lang.Number, D extends androidx.health.services.client.data.DataType<T, ? extends androidx.health.services.client.data.DataPoint<T>>> { |
| 262 | ctor public DataTypeCondition(D dataType, T threshold, androidx.health.services.client.data.ComparisonType comparisonType); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 263 | method public androidx.health.services.client.data.ComparisonType getComparisonType(); |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 264 | method public D getDataType(); |
| 265 | method public T getThreshold(); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 266 | property public final androidx.health.services.client.data.ComparisonType comparisonType; |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 267 | property public final D dataType; |
| 268 | property public final T threshold; |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 269 | } |
| 270 | |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 271 | public final class DeltaDataType<T, D extends androidx.health.services.client.data.DataPoint<T>> extends androidx.health.services.client.data.DataType<T,D> { |
Hari Mallidi | 2136bde | 2022-09-08 20:30:31 +0000 | [diff] [blame] | 272 | ctor public DeltaDataType(String name, androidx.health.services.client.data.DataType.TimeType timeType, Class<T> valueClass); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 273 | } |
| 274 | |
Sean Kelley | 5c559c2 | 2022-10-04 19:02:22 -0700 | [diff] [blame] | 275 | public final class ExerciseCapabilities { |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 276 | ctor public ExerciseCapabilities(java.util.Map<androidx.health.services.client.data.ExerciseType,androidx.health.services.client.data.ExerciseTypeCapabilities> typeToCapabilities); |
| 277 | method public java.util.Set<androidx.health.services.client.data.ExerciseType> getAutoPauseAndResumeEnabledExercises(); |
| 278 | method public androidx.health.services.client.data.ExerciseTypeCapabilities getExerciseTypeCapabilities(androidx.health.services.client.data.ExerciseType exercise); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 279 | method public java.util.Set<androidx.health.services.client.data.ExerciseType> getSupportedExerciseTypes(); |
| 280 | method public java.util.Map<androidx.health.services.client.data.ExerciseType,androidx.health.services.client.data.ExerciseTypeCapabilities> getTypeToCapabilities(); |
| 281 | property public final java.util.Set<androidx.health.services.client.data.ExerciseType> autoPauseAndResumeEnabledExercises; |
| 282 | property public final java.util.Set<androidx.health.services.client.data.ExerciseType> supportedExerciseTypes; |
| 283 | property public final java.util.Map<androidx.health.services.client.data.ExerciseType,androidx.health.services.client.data.ExerciseTypeCapabilities> typeToCapabilities; |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 284 | } |
| 285 | |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 286 | public final class ExerciseConfig { |
Sara Kato | cb4af6e | 2022-08-02 11:46:09 -0700 | [diff] [blame] | 287 | ctor public ExerciseConfig(androidx.health.services.client.data.ExerciseType exerciseType, java.util.Set<? extends androidx.health.services.client.data.DataType<?,?>> dataTypes, boolean isAutoPauseAndResumeEnabled, boolean isGpsEnabled, optional java.util.List<? extends androidx.health.services.client.data.ExerciseGoal<?>> exerciseGoals, optional android.os.Bundle exerciseParams, optional @FloatRange(from=0.0) float swimmingPoolLengthMeters); |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 288 | method public static androidx.health.services.client.data.ExerciseConfig.Builder builder(androidx.health.services.client.data.ExerciseType exerciseType); |
| 289 | method public java.util.Set<androidx.health.services.client.data.DataType<?,?>> getDataTypes(); |
| 290 | method public java.util.List<androidx.health.services.client.data.ExerciseGoal<?>> getExerciseGoals(); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 291 | method public android.os.Bundle getExerciseParams(); |
| 292 | method public androidx.health.services.client.data.ExerciseType getExerciseType(); |
Sara Kato | cb4af6e | 2022-08-02 11:46:09 -0700 | [diff] [blame] | 293 | method public float getSwimmingPoolLengthMeters(); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 294 | method public boolean isAutoPauseAndResumeEnabled(); |
| 295 | method public boolean isGpsEnabled(); |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 296 | property public final java.util.Set<androidx.health.services.client.data.DataType<?,?>> dataTypes; |
| 297 | property public final java.util.List<androidx.health.services.client.data.ExerciseGoal<?>> exerciseGoals; |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 298 | property public final android.os.Bundle exerciseParams; |
| 299 | property public final androidx.health.services.client.data.ExerciseType exerciseType; |
| 300 | property public final boolean isAutoPauseAndResumeEnabled; |
| 301 | property public final boolean isGpsEnabled; |
Sara Kato | cb4af6e | 2022-08-02 11:46:09 -0700 | [diff] [blame] | 302 | property public final float swimmingPoolLengthMeters; |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 303 | field public static final androidx.health.services.client.data.ExerciseConfig.Companion Companion; |
Sara Kato | cb4af6e | 2022-08-02 11:46:09 -0700 | [diff] [blame] | 304 | field public static final float SWIMMING_POOL_LENGTH_UNSPECIFIED = 0.0f; |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 305 | } |
| 306 | |
| 307 | public static final class ExerciseConfig.Builder { |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 308 | ctor public ExerciseConfig.Builder(androidx.health.services.client.data.ExerciseType exerciseType); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 309 | method public androidx.health.services.client.data.ExerciseConfig build(); |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 310 | method public androidx.health.services.client.data.ExerciseConfig.Builder setDataTypes(java.util.Set<? extends androidx.health.services.client.data.DataType<?,?>> dataTypes); |
| 311 | method public androidx.health.services.client.data.ExerciseConfig.Builder setExerciseGoals(java.util.List<? extends androidx.health.services.client.data.ExerciseGoal<?>> exerciseGoals); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 312 | method public androidx.health.services.client.data.ExerciseConfig.Builder setExerciseParams(android.os.Bundle exerciseParams); |
Sean Kelley | 125448c | 2022-04-26 17:26:10 -0700 | [diff] [blame] | 313 | method public androidx.health.services.client.data.ExerciseConfig.Builder setIsAutoPauseAndResumeEnabled(boolean isAutoPauseAndResumeEnabled); |
| 314 | method public androidx.health.services.client.data.ExerciseConfig.Builder setIsGpsEnabled(boolean isGpsEnabled); |
Sara Kato | 9ec5cda | 2022-09-15 16:48:23 -0700 | [diff] [blame] | 315 | method public androidx.health.services.client.data.ExerciseConfig.Builder setSwimmingPoolLengthMeters(float swimmingPoolLength); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 316 | } |
| 317 | |
| 318 | public static final class ExerciseConfig.Companion { |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 319 | method public androidx.health.services.client.data.ExerciseConfig.Builder builder(androidx.health.services.client.data.ExerciseType exerciseType); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 320 | } |
| 321 | |
Sean Kelley | 5c559c2 | 2022-10-04 19:02:22 -0700 | [diff] [blame] | 322 | public final class ExerciseGoal<T extends java.lang.Number> implements android.os.Parcelable { |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 323 | method public static <T extends java.lang.Number> androidx.health.services.client.data.ExerciseGoal<T> createMilestone(androidx.health.services.client.data.DataTypeCondition<T,androidx.health.services.client.data.AggregateDataType<T,?>> condition, T period); |
| 324 | method public static <T extends java.lang.Number> androidx.health.services.client.data.ExerciseGoal<T> createMilestoneGoalWithUpdatedThreshold(androidx.health.services.client.data.ExerciseGoal<T> goal, T newThreshold); |
| 325 | method public static <T extends java.lang.Number> androidx.health.services.client.data.ExerciseGoal<T> createOneTimeGoal(androidx.health.services.client.data.DataTypeCondition<T,androidx.health.services.client.data.AggregateDataType<T,?>> condition); |
Sean Kelley | 5c559c2 | 2022-10-04 19:02:22 -0700 | [diff] [blame] | 326 | method public int describeContents(); |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 327 | method public androidx.health.services.client.data.DataTypeCondition<T,androidx.health.services.client.data.AggregateDataType<T,?>> getDataTypeCondition(); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 328 | method public androidx.health.services.client.data.ExerciseGoalType getExerciseGoalType(); |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 329 | method public T? getPeriod(); |
Sean Kelley | 5c559c2 | 2022-10-04 19:02:22 -0700 | [diff] [blame] | 330 | method public void writeToParcel(android.os.Parcel dest, int flags); |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 331 | property public final androidx.health.services.client.data.DataTypeCondition<T,androidx.health.services.client.data.AggregateDataType<T,?>> dataTypeCondition; |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 332 | property public final androidx.health.services.client.data.ExerciseGoalType exerciseGoalType; |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 333 | property public final T? period; |
| 334 | field public static final android.os.Parcelable.Creator<androidx.health.services.client.data.ExerciseGoal<?>> CREATOR; |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 335 | field public static final androidx.health.services.client.data.ExerciseGoal.Companion Companion; |
| 336 | } |
| 337 | |
| 338 | public static final class ExerciseGoal.Companion { |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 339 | method public <T extends java.lang.Number> androidx.health.services.client.data.ExerciseGoal<T> createMilestone(androidx.health.services.client.data.DataTypeCondition<T,androidx.health.services.client.data.AggregateDataType<T,?>> condition, T period); |
| 340 | method public <T extends java.lang.Number> androidx.health.services.client.data.ExerciseGoal<T> createMilestoneGoalWithUpdatedThreshold(androidx.health.services.client.data.ExerciseGoal<T> goal, T newThreshold); |
| 341 | method public <T extends java.lang.Number> androidx.health.services.client.data.ExerciseGoal<T> createOneTimeGoal(androidx.health.services.client.data.DataTypeCondition<T,androidx.health.services.client.data.AggregateDataType<T,?>> condition); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 342 | } |
| 343 | |
| 344 | public final class ExerciseGoalType { |
| 345 | method public static androidx.health.services.client.data.ExerciseGoalType? fromId(int id); |
| 346 | method public int getId(); |
| 347 | method public String getName(); |
| 348 | property public final int id; |
| 349 | property public final String name; |
| 350 | field public static final androidx.health.services.client.data.ExerciseGoalType.Companion Companion; |
| 351 | field public static final androidx.health.services.client.data.ExerciseGoalType MILESTONE; |
| 352 | field public static final androidx.health.services.client.data.ExerciseGoalType ONE_TIME_GOAL; |
| 353 | } |
| 354 | |
| 355 | public static final class ExerciseGoalType.Companion { |
| 356 | method public androidx.health.services.client.data.ExerciseGoalType? fromId(int id); |
| 357 | } |
| 358 | |
Sean Kelley | 5c559c2 | 2022-10-04 19:02:22 -0700 | [diff] [blame] | 359 | public final class ExerciseInfo { |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 360 | ctor public ExerciseInfo(int exerciseTrackedStatus, androidx.health.services.client.data.ExerciseType exerciseType); |
| 361 | method public int getExerciseTrackedStatus(); |
| 362 | method public androidx.health.services.client.data.ExerciseType getExerciseType(); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 363 | property public final int exerciseTrackedStatus; |
| 364 | property public final androidx.health.services.client.data.ExerciseType exerciseType; |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 365 | } |
| 366 | |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 367 | public final class ExerciseLapSummary { |
| 368 | ctor public ExerciseLapSummary(int lapCount, java.time.Instant startTime, java.time.Instant endTime, java.time.Duration activeDuration, androidx.health.services.client.data.DataPointContainer lapMetrics); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 369 | method public java.time.Duration getActiveDuration(); |
| 370 | method public java.time.Instant getEndTime(); |
| 371 | method public int getLapCount(); |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 372 | method public androidx.health.services.client.data.DataPointContainer getLapMetrics(); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 373 | method public java.time.Instant getStartTime(); |
| 374 | property public final java.time.Duration activeDuration; |
| 375 | property public final java.time.Instant endTime; |
| 376 | property public final int lapCount; |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 377 | property public final androidx.health.services.client.data.DataPointContainer lapMetrics; |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 378 | property public final java.time.Instant startTime; |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 379 | } |
| 380 | |
| 381 | public final class ExerciseState { |
| 382 | method public static androidx.health.services.client.data.ExerciseState? fromId(int id); |
| 383 | method public int getId(); |
| 384 | method public String getName(); |
| 385 | method public boolean isEnded(); |
| 386 | method public boolean isEnding(); |
| 387 | method public boolean isPaused(); |
| 388 | method public boolean isResuming(); |
| 389 | property public final int id; |
| 390 | property public final boolean isEnded; |
| 391 | property public final boolean isEnding; |
| 392 | property public final boolean isPaused; |
| 393 | property public final boolean isResuming; |
| 394 | property public final String name; |
| 395 | field public static final androidx.health.services.client.data.ExerciseState ACTIVE; |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 396 | field public static final androidx.health.services.client.data.ExerciseState AUTO_PAUSED; |
| 397 | field public static final androidx.health.services.client.data.ExerciseState AUTO_PAUSING; |
| 398 | field public static final androidx.health.services.client.data.ExerciseState AUTO_RESUMING; |
| 399 | field public static final androidx.health.services.client.data.ExerciseState.Companion Companion; |
Sean Kelley | 125448c | 2022-04-26 17:26:10 -0700 | [diff] [blame] | 400 | field public static final androidx.health.services.client.data.ExerciseState ENDED; |
Sara Kato | b166ab0 | 2022-09-06 15:07:50 -0700 | [diff] [blame] | 401 | field public static final androidx.health.services.client.data.ExerciseState ENDING; |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 402 | field public static final androidx.health.services.client.data.ExerciseState PREPARING; |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 403 | field public static final androidx.health.services.client.data.ExerciseState USER_PAUSED; |
| 404 | field public static final androidx.health.services.client.data.ExerciseState USER_PAUSING; |
| 405 | field public static final androidx.health.services.client.data.ExerciseState USER_RESUMING; |
| 406 | field public static final androidx.health.services.client.data.ExerciseState USER_STARTING; |
| 407 | } |
| 408 | |
| 409 | public static final class ExerciseState.Companion { |
| 410 | method public androidx.health.services.client.data.ExerciseState? fromId(int id); |
| 411 | } |
| 412 | |
Sean Kelley | 125448c | 2022-04-26 17:26:10 -0700 | [diff] [blame] | 413 | public final class ExerciseStateInfo { |
| 414 | ctor public ExerciseStateInfo(androidx.health.services.client.data.ExerciseState exerciseState, int exerciseEndReason); |
| 415 | method public int getEndReason(); |
| 416 | method public androidx.health.services.client.data.ExerciseState getState(); |
| 417 | property public final int endReason; |
| 418 | property public final androidx.health.services.client.data.ExerciseState state; |
| 419 | field public static final androidx.health.services.client.data.ExerciseStateInfo.Companion Companion; |
| 420 | } |
| 421 | |
| 422 | public static final class ExerciseStateInfo.Companion { |
| 423 | } |
| 424 | |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 425 | public final class ExerciseType { |
| 426 | method public static androidx.health.services.client.data.ExerciseType fromId(int id); |
| 427 | method public int getId(); |
| 428 | method public String getName(); |
| 429 | property public final int id; |
| 430 | property public final String name; |
| 431 | field public static final androidx.health.services.client.data.ExerciseType ALPINE_SKIING; |
| 432 | field public static final androidx.health.services.client.data.ExerciseType BACKPACKING; |
| 433 | field public static final androidx.health.services.client.data.ExerciseType BACK_EXTENSION; |
| 434 | field public static final androidx.health.services.client.data.ExerciseType BADMINTON; |
| 435 | field public static final androidx.health.services.client.data.ExerciseType BARBELL_SHOULDER_PRESS; |
| 436 | field public static final androidx.health.services.client.data.ExerciseType BASEBALL; |
| 437 | field public static final androidx.health.services.client.data.ExerciseType BASKETBALL; |
| 438 | field public static final androidx.health.services.client.data.ExerciseType BENCH_PRESS; |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 439 | field public static final androidx.health.services.client.data.ExerciseType BIKING; |
| 440 | field public static final androidx.health.services.client.data.ExerciseType BIKING_STATIONARY; |
| 441 | field public static final androidx.health.services.client.data.ExerciseType BOOT_CAMP; |
| 442 | field public static final androidx.health.services.client.data.ExerciseType BOXING; |
| 443 | field public static final androidx.health.services.client.data.ExerciseType BURPEE; |
| 444 | field public static final androidx.health.services.client.data.ExerciseType CALISTHENICS; |
| 445 | field public static final androidx.health.services.client.data.ExerciseType CRICKET; |
| 446 | field public static final androidx.health.services.client.data.ExerciseType CROSS_COUNTRY_SKIING; |
| 447 | field public static final androidx.health.services.client.data.ExerciseType CRUNCH; |
| 448 | field public static final androidx.health.services.client.data.ExerciseType.Companion Companion; |
| 449 | field public static final androidx.health.services.client.data.ExerciseType DANCING; |
| 450 | field public static final androidx.health.services.client.data.ExerciseType DEADLIFT; |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 451 | field public static final androidx.health.services.client.data.ExerciseType ELLIPTICAL; |
| 452 | field public static final androidx.health.services.client.data.ExerciseType EXERCISE_CLASS; |
| 453 | field public static final androidx.health.services.client.data.ExerciseType FENCING; |
| 454 | field public static final androidx.health.services.client.data.ExerciseType FOOTBALL_AMERICAN; |
| 455 | field public static final androidx.health.services.client.data.ExerciseType FOOTBALL_AUSTRALIAN; |
| 456 | field public static final androidx.health.services.client.data.ExerciseType FORWARD_TWIST; |
| 457 | field public static final androidx.health.services.client.data.ExerciseType FRISBEE_DISC; |
| 458 | field public static final androidx.health.services.client.data.ExerciseType GOLF; |
| 459 | field public static final androidx.health.services.client.data.ExerciseType GUIDED_BREATHING; |
| 460 | field public static final androidx.health.services.client.data.ExerciseType GYMNASTICS; |
| 461 | field public static final androidx.health.services.client.data.ExerciseType HANDBALL; |
| 462 | field public static final androidx.health.services.client.data.ExerciseType HIGH_INTENSITY_INTERVAL_TRAINING; |
| 463 | field public static final androidx.health.services.client.data.ExerciseType HIKING; |
| 464 | field public static final androidx.health.services.client.data.ExerciseType HORSE_RIDING; |
| 465 | field public static final androidx.health.services.client.data.ExerciseType ICE_HOCKEY; |
| 466 | field public static final androidx.health.services.client.data.ExerciseType ICE_SKATING; |
| 467 | field public static final androidx.health.services.client.data.ExerciseType INLINE_SKATING; |
| 468 | field public static final androidx.health.services.client.data.ExerciseType JUMPING_JACK; |
| 469 | field public static final androidx.health.services.client.data.ExerciseType JUMP_ROPE; |
| 470 | field public static final androidx.health.services.client.data.ExerciseType LAT_PULL_DOWN; |
| 471 | field public static final androidx.health.services.client.data.ExerciseType LUNGE; |
| 472 | field public static final androidx.health.services.client.data.ExerciseType MARTIAL_ARTS; |
| 473 | field public static final androidx.health.services.client.data.ExerciseType MEDITATION; |
| 474 | field public static final androidx.health.services.client.data.ExerciseType MOUNTAIN_BIKING; |
| 475 | field public static final androidx.health.services.client.data.ExerciseType ORIENTEERING; |
| 476 | field public static final androidx.health.services.client.data.ExerciseType PADDLING; |
| 477 | field public static final androidx.health.services.client.data.ExerciseType PARA_GLIDING; |
| 478 | field public static final androidx.health.services.client.data.ExerciseType PILATES; |
| 479 | field public static final androidx.health.services.client.data.ExerciseType PLANK; |
| 480 | field public static final androidx.health.services.client.data.ExerciseType RACQUETBALL; |
| 481 | field public static final androidx.health.services.client.data.ExerciseType ROCK_CLIMBING; |
| 482 | field public static final androidx.health.services.client.data.ExerciseType ROLLER_HOCKEY; |
| 483 | field public static final androidx.health.services.client.data.ExerciseType ROLLER_SKATING; |
| 484 | field public static final androidx.health.services.client.data.ExerciseType ROWING; |
| 485 | field public static final androidx.health.services.client.data.ExerciseType ROWING_MACHINE; |
| 486 | field public static final androidx.health.services.client.data.ExerciseType RUGBY; |
| 487 | field public static final androidx.health.services.client.data.ExerciseType RUNNING; |
| 488 | field public static final androidx.health.services.client.data.ExerciseType RUNNING_TREADMILL; |
| 489 | field public static final androidx.health.services.client.data.ExerciseType SAILING; |
| 490 | field public static final androidx.health.services.client.data.ExerciseType SCUBA_DIVING; |
| 491 | field public static final androidx.health.services.client.data.ExerciseType SKATING; |
| 492 | field public static final androidx.health.services.client.data.ExerciseType SKIING; |
| 493 | field public static final androidx.health.services.client.data.ExerciseType SNOWBOARDING; |
| 494 | field public static final androidx.health.services.client.data.ExerciseType SNOWSHOEING; |
| 495 | field public static final androidx.health.services.client.data.ExerciseType SOCCER; |
| 496 | field public static final androidx.health.services.client.data.ExerciseType SOFTBALL; |
| 497 | field public static final androidx.health.services.client.data.ExerciseType SQUASH; |
| 498 | field public static final androidx.health.services.client.data.ExerciseType SQUAT; |
| 499 | field public static final androidx.health.services.client.data.ExerciseType STAIR_CLIMBING; |
| 500 | field public static final androidx.health.services.client.data.ExerciseType STAIR_CLIMBING_MACHINE; |
| 501 | field public static final androidx.health.services.client.data.ExerciseType STRENGTH_TRAINING; |
| 502 | field public static final androidx.health.services.client.data.ExerciseType STRETCHING; |
| 503 | field public static final androidx.health.services.client.data.ExerciseType SURFING; |
| 504 | field public static final androidx.health.services.client.data.ExerciseType SWIMMING_OPEN_WATER; |
| 505 | field public static final androidx.health.services.client.data.ExerciseType SWIMMING_POOL; |
| 506 | field public static final androidx.health.services.client.data.ExerciseType TABLE_TENNIS; |
| 507 | field public static final androidx.health.services.client.data.ExerciseType TENNIS; |
| 508 | field public static final androidx.health.services.client.data.ExerciseType UNKNOWN; |
| 509 | field public static final androidx.health.services.client.data.ExerciseType UPPER_TWIST; |
| 510 | field public static final androidx.health.services.client.data.ExerciseType VOLLEYBALL; |
| 511 | field public static final androidx.health.services.client.data.ExerciseType WALKING; |
| 512 | field public static final androidx.health.services.client.data.ExerciseType WATER_POLO; |
| 513 | field public static final androidx.health.services.client.data.ExerciseType WEIGHTLIFTING; |
| 514 | field public static final androidx.health.services.client.data.ExerciseType WORKOUT; |
| 515 | field public static final androidx.health.services.client.data.ExerciseType YACHTING; |
| 516 | field public static final androidx.health.services.client.data.ExerciseType YOGA; |
| 517 | } |
| 518 | |
| 519 | public static final class ExerciseType.Companion { |
| 520 | method public androidx.health.services.client.data.ExerciseType fromId(int id); |
| 521 | } |
| 522 | |
Sean Kelley | 5c559c2 | 2022-10-04 19:02:22 -0700 | [diff] [blame] | 523 | public final class ExerciseTypeCapabilities { |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 524 | ctor public ExerciseTypeCapabilities(java.util.Set<? extends androidx.health.services.client.data.DataType<?,?>> supportedDataTypes, java.util.Map<androidx.health.services.client.data.AggregateDataType<?,?>,? extends java.util.Set<androidx.health.services.client.data.ComparisonType>> supportedGoals, java.util.Map<androidx.health.services.client.data.AggregateDataType<?,?>,? extends java.util.Set<androidx.health.services.client.data.ComparisonType>> supportedMilestones, boolean supportsAutoPauseAndResume); |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 525 | method public java.util.Set<androidx.health.services.client.data.DataType<?,?>> getSupportedDataTypes(); |
| 526 | method public java.util.Map<androidx.health.services.client.data.AggregateDataType<?,?>,java.util.Set<androidx.health.services.client.data.ComparisonType>> getSupportedGoals(); |
| 527 | method public java.util.Map<androidx.health.services.client.data.AggregateDataType<?,?>,java.util.Set<androidx.health.services.client.data.ComparisonType>> getSupportedMilestones(); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 528 | method public boolean getSupportsAutoPauseAndResume(); |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 529 | property public final java.util.Set<androidx.health.services.client.data.DataType<?,?>> supportedDataTypes; |
| 530 | property public final java.util.Map<androidx.health.services.client.data.AggregateDataType<?,?>,java.util.Set<androidx.health.services.client.data.ComparisonType>> supportedGoals; |
| 531 | property public final java.util.Map<androidx.health.services.client.data.AggregateDataType<?,?>,java.util.Set<androidx.health.services.client.data.ComparisonType>> supportedMilestones; |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 532 | property public final boolean supportsAutoPauseAndResume; |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 533 | } |
| 534 | |
Sean Kelley | 5c559c2 | 2022-10-04 19:02:22 -0700 | [diff] [blame] | 535 | public final class ExerciseUpdate { |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 536 | method public java.time.Duration getActiveDurationAtDataPoint(androidx.health.services.client.data.IntervalDataPoint<?> dataPoint); |
| 537 | method public java.time.Duration getActiveDurationAtDataPoint(androidx.health.services.client.data.SampleDataPoint<?> dataPoint); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 538 | method public androidx.health.services.client.data.ExerciseUpdate.ActiveDurationCheckpoint? getActiveDurationCheckpoint(); |
| 539 | method public androidx.health.services.client.data.ExerciseConfig? getExerciseConfig(); |
Sean Kelley | 125448c | 2022-04-26 17:26:10 -0700 | [diff] [blame] | 540 | method public androidx.health.services.client.data.ExerciseStateInfo getExerciseStateInfo(); |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 541 | method public java.util.Set<androidx.health.services.client.data.ExerciseGoal<? extends java.lang.Number>> getLatestAchievedGoals(); |
| 542 | method public androidx.health.services.client.data.DataPointContainer getLatestMetrics(); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 543 | method public java.util.Set<androidx.health.services.client.data.MilestoneMarkerSummary> getLatestMilestoneMarkerSummaries(); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 544 | method public java.time.Instant? getStartTime(); |
Sean Kelley | 1d0bdb5 | 2022-04-23 14:53:11 -0700 | [diff] [blame] | 545 | method public java.time.Duration getUpdateDurationFromBoot(); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 546 | property public final androidx.health.services.client.data.ExerciseUpdate.ActiveDurationCheckpoint? activeDurationCheckpoint; |
| 547 | property public final androidx.health.services.client.data.ExerciseConfig? exerciseConfig; |
Sean Kelley | 125448c | 2022-04-26 17:26:10 -0700 | [diff] [blame] | 548 | property public final androidx.health.services.client.data.ExerciseStateInfo exerciseStateInfo; |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 549 | property public final java.util.Set<androidx.health.services.client.data.ExerciseGoal<? extends java.lang.Number>> latestAchievedGoals; |
| 550 | property public final androidx.health.services.client.data.DataPointContainer latestMetrics; |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 551 | property public final java.util.Set<androidx.health.services.client.data.MilestoneMarkerSummary> latestMilestoneMarkerSummaries; |
| 552 | property public final java.time.Instant? startTime; |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 553 | field public static final androidx.health.services.client.data.ExerciseUpdate.Companion Companion; |
| 554 | } |
| 555 | |
| 556 | public static final class ExerciseUpdate.ActiveDurationCheckpoint { |
| 557 | ctor public ExerciseUpdate.ActiveDurationCheckpoint(java.time.Instant time, java.time.Duration activeDuration); |
| 558 | method public java.time.Duration getActiveDuration(); |
| 559 | method public java.time.Instant getTime(); |
| 560 | property public final java.time.Duration activeDuration; |
| 561 | property public final java.time.Instant time; |
| 562 | } |
| 563 | |
| 564 | public static final class ExerciseUpdate.Companion { |
| 565 | } |
| 566 | |
Sean Kelley | 125448c | 2022-04-26 17:26:10 -0700 | [diff] [blame] | 567 | public final class HealthEvent { |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 568 | ctor public HealthEvent(androidx.health.services.client.data.HealthEvent.Type type, java.time.Instant eventTime, androidx.health.services.client.data.DataPointContainer metrics); |
Sean Kelley | 125448c | 2022-04-26 17:26:10 -0700 | [diff] [blame] | 569 | method public java.time.Instant getEventTime(); |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 570 | method public androidx.health.services.client.data.DataPointContainer getMetrics(); |
Sean Kelley | 125448c | 2022-04-26 17:26:10 -0700 | [diff] [blame] | 571 | method public androidx.health.services.client.data.HealthEvent.Type getType(); |
| 572 | property public final java.time.Instant eventTime; |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 573 | property public final androidx.health.services.client.data.DataPointContainer metrics; |
Sean Kelley | 125448c | 2022-04-26 17:26:10 -0700 | [diff] [blame] | 574 | property public final androidx.health.services.client.data.HealthEvent.Type type; |
| 575 | } |
| 576 | |
| 577 | public static final class HealthEvent.Type { |
| 578 | method public int getId(); |
| 579 | method public String getName(); |
| 580 | property public final int id; |
| 581 | property public final String name; |
| 582 | field public static final androidx.health.services.client.data.HealthEvent.Type.Companion Companion; |
| 583 | field public static final androidx.health.services.client.data.HealthEvent.Type FALL_DETECTED; |
| 584 | field public static final androidx.health.services.client.data.HealthEvent.Type UNKNOWN; |
| 585 | } |
| 586 | |
| 587 | public static final class HealthEvent.Type.Companion { |
| 588 | } |
| 589 | |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 590 | public final class HeartRateAccuracy extends androidx.health.services.client.data.DataPointAccuracy { |
| 591 | ctor public HeartRateAccuracy(androidx.health.services.client.data.HeartRateAccuracy.SensorStatus sensorStatus); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 592 | method public androidx.health.services.client.data.HeartRateAccuracy.SensorStatus getSensorStatus(); |
| 593 | property public final androidx.health.services.client.data.HeartRateAccuracy.SensorStatus sensorStatus; |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 594 | } |
| 595 | |
| 596 | public static final class HeartRateAccuracy.SensorStatus { |
| 597 | method public int getId(); |
| 598 | method public String getName(); |
| 599 | property public final int id; |
| 600 | property public final String name; |
| 601 | field public static final androidx.health.services.client.data.HeartRateAccuracy.SensorStatus ACCURACY_HIGH; |
| 602 | field public static final androidx.health.services.client.data.HeartRateAccuracy.SensorStatus ACCURACY_LOW; |
| 603 | field public static final androidx.health.services.client.data.HeartRateAccuracy.SensorStatus ACCURACY_MEDIUM; |
| 604 | field public static final androidx.health.services.client.data.HeartRateAccuracy.SensorStatus.Companion Companion; |
| 605 | field public static final androidx.health.services.client.data.HeartRateAccuracy.SensorStatus NO_CONTACT; |
| 606 | field public static final androidx.health.services.client.data.HeartRateAccuracy.SensorStatus UNKNOWN; |
| 607 | field public static final androidx.health.services.client.data.HeartRateAccuracy.SensorStatus UNRELIABLE; |
| 608 | } |
| 609 | |
| 610 | public static final class HeartRateAccuracy.SensorStatus.Companion { |
| 611 | } |
| 612 | |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 613 | public final class IntervalDataPoint<T> extends androidx.health.services.client.data.DataPoint<T> { |
| 614 | ctor public IntervalDataPoint(androidx.health.services.client.data.DataType<T,? extends androidx.health.services.client.data.IntervalDataPoint<T>> dataType, T value, java.time.Duration startDurationFromBoot, java.time.Duration endDurationFromBoot, optional android.os.Bundle metadata, optional androidx.health.services.client.data.DataPointAccuracy? accuracy); |
| 615 | method public androidx.health.services.client.data.DataPointAccuracy? getAccuracy(); |
| 616 | method public androidx.health.services.client.data.DataType<T,? extends androidx.health.services.client.data.IntervalDataPoint<T>> getDataType(); |
| 617 | method public java.time.Duration getEndDurationFromBoot(); |
| 618 | method public java.time.Instant getEndInstant(java.time.Instant bootInstant); |
| 619 | method public android.os.Bundle getMetadata(); |
| 620 | method public java.time.Duration getStartDurationFromBoot(); |
| 621 | method public java.time.Instant getStartInstant(java.time.Instant bootInstant); |
| 622 | method public T getValue(); |
| 623 | property public final androidx.health.services.client.data.DataPointAccuracy? accuracy; |
| 624 | property public androidx.health.services.client.data.DataType<T,? extends androidx.health.services.client.data.IntervalDataPoint<T>> dataType; |
| 625 | property public final java.time.Duration endDurationFromBoot; |
| 626 | property public final android.os.Bundle metadata; |
| 627 | property public final java.time.Duration startDurationFromBoot; |
| 628 | property public final T value; |
| 629 | } |
| 630 | |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 631 | public final class LocationAccuracy extends androidx.health.services.client.data.DataPointAccuracy { |
Nagesh Pachorkar | 03bbb08 | 2022-08-05 15:37:43 -0700 | [diff] [blame] | 632 | ctor public LocationAccuracy(@FloatRange(from=0.0) double horizontalPositionErrorMeters, optional @FloatRange(from=0.0) double verticalPositionErrorMeters); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 633 | method public double getHorizontalPositionErrorMeters(); |
Nagesh Pachorkar | 03bbb08 | 2022-08-05 15:37:43 -0700 | [diff] [blame] | 634 | method public double getVerticalPositionErrorMeters(); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 635 | property public final double horizontalPositionErrorMeters; |
Nagesh Pachorkar | 03bbb08 | 2022-08-05 15:37:43 -0700 | [diff] [blame] | 636 | property public final double verticalPositionErrorMeters; |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 637 | field public static final androidx.health.services.client.data.LocationAccuracy.Companion Companion; |
| 638 | } |
| 639 | |
| 640 | public static final class LocationAccuracy.Companion { |
| 641 | } |
| 642 | |
| 643 | public final class LocationAvailability implements androidx.health.services.client.data.Availability { |
| 644 | method public static androidx.health.services.client.data.LocationAvailability? fromId(int id); |
| 645 | method public int getId(); |
| 646 | method public String getName(); |
| 647 | property public int id; |
| 648 | property public final String name; |
| 649 | field public static final androidx.health.services.client.data.LocationAvailability ACQUIRED_TETHERED; |
| 650 | field public static final androidx.health.services.client.data.LocationAvailability ACQUIRED_UNTETHERED; |
| 651 | field public static final androidx.health.services.client.data.LocationAvailability ACQUIRING; |
| 652 | field public static final androidx.health.services.client.data.LocationAvailability.Companion Companion; |
| 653 | field public static final androidx.health.services.client.data.LocationAvailability NO_GNSS; |
| 654 | field public static final androidx.health.services.client.data.LocationAvailability UNAVAILABLE; |
| 655 | field public static final androidx.health.services.client.data.LocationAvailability UNKNOWN; |
| 656 | } |
| 657 | |
| 658 | public static final class LocationAvailability.Companion { |
| 659 | method public androidx.health.services.client.data.LocationAvailability? fromId(int id); |
| 660 | } |
| 661 | |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 662 | public final class LocationData { |
Nagesh Pachorkar | 03bbb08 | 2022-08-05 15:37:43 -0700 | [diff] [blame] | 663 | ctor public LocationData(@FloatRange(from=-90.0, to=90.0) double latitude, @FloatRange(from=-180.0, to=180.0) double longitude, optional @FloatRange double altitude, optional @FloatRange(from=-1.0, to=360.0, toInclusive=false) double bearing); |
| 664 | method public double getAltitude(); |
| 665 | method public double getBearing(); |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 666 | method public double getLatitude(); |
| 667 | method public double getLongitude(); |
Nagesh Pachorkar | 03bbb08 | 2022-08-05 15:37:43 -0700 | [diff] [blame] | 668 | property public final double altitude; |
| 669 | property public final double bearing; |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 670 | property public final double latitude; |
| 671 | property public final double longitude; |
Nagesh Pachorkar | 03bbb08 | 2022-08-05 15:37:43 -0700 | [diff] [blame] | 672 | field public static final double ALTITUDE_UNAVAILABLE = 1.7976931348623157E308; |
| 673 | field public static final double BEARING_UNAVAILABLE = -1.0; |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 674 | } |
| 675 | |
Sean Kelley | 5c559c2 | 2022-10-04 19:02:22 -0700 | [diff] [blame] | 676 | public final class MeasureCapabilities { |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 677 | ctor public MeasureCapabilities(java.util.Set<? extends androidx.health.services.client.data.DeltaDataType<?,?>> supportedDataTypesMeasure); |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 678 | method public java.util.Set<androidx.health.services.client.data.DeltaDataType<?,?>> getSupportedDataTypesMeasure(); |
| 679 | property public final java.util.Set<androidx.health.services.client.data.DeltaDataType<?,?>> supportedDataTypesMeasure; |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 680 | } |
| 681 | |
Sean Kelley | 5c559c2 | 2022-10-04 19:02:22 -0700 | [diff] [blame] | 682 | public final class MilestoneMarkerSummary { |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 683 | ctor public MilestoneMarkerSummary(java.time.Instant startTime, java.time.Instant endTime, java.time.Duration activeDuration, androidx.health.services.client.data.ExerciseGoal<? extends java.lang.Number> achievedGoal, androidx.health.services.client.data.DataPointContainer summaryMetrics); |
| 684 | method public androidx.health.services.client.data.ExerciseGoal<? extends java.lang.Number> getAchievedGoal(); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 685 | method public java.time.Duration getActiveDuration(); |
| 686 | method public java.time.Instant getEndTime(); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 687 | method public java.time.Instant getStartTime(); |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 688 | method public androidx.health.services.client.data.DataPointContainer getSummaryMetrics(); |
| 689 | property public final androidx.health.services.client.data.ExerciseGoal<? extends java.lang.Number> achievedGoal; |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 690 | property public final java.time.Duration activeDuration; |
| 691 | property public final java.time.Instant endTime; |
| 692 | property public final java.time.Instant startTime; |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 693 | property public final androidx.health.services.client.data.DataPointContainer summaryMetrics; |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 694 | } |
| 695 | |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 696 | public final class PassiveGoal { |
Sean Kelley | 1a904d8 | 2022-07-26 15:25:49 -0700 | [diff] [blame] | 697 | ctor public PassiveGoal(androidx.health.services.client.data.DataTypeCondition<? extends java.lang.Number,? extends androidx.health.services.client.data.DeltaDataType<? extends java.lang.Number,?>> dataTypeCondition); |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 698 | method public androidx.health.services.client.data.DataTypeCondition<? extends java.lang.Number,? extends androidx.health.services.client.data.DeltaDataType<? extends java.lang.Number,?>> getDataTypeCondition(); |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 699 | property public final androidx.health.services.client.data.DataTypeCondition<? extends java.lang.Number,? extends androidx.health.services.client.data.DeltaDataType<? extends java.lang.Number,?>> dataTypeCondition; |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 700 | } |
| 701 | |
Sean Kelley | 5c559c2 | 2022-10-04 19:02:22 -0700 | [diff] [blame] | 702 | public final class PassiveListenerConfig { |
Sean Kelley | 98c3428 | 2022-10-06 14:52:30 -0700 | [diff] [blame] | 703 | ctor public PassiveListenerConfig(java.util.Set<? extends androidx.health.services.client.data.DataType<? extends java.lang.Object,? extends androidx.health.services.client.data.DataPoint<?>>> dataTypes, boolean shouldUserActivityInfoBeRequested, java.util.Set<androidx.health.services.client.data.PassiveGoal> dailyGoals, java.util.Set<androidx.health.services.client.data.HealthEvent.Type> healthEventTypes); |
Sean Kelley | 125448c | 2022-04-26 17:26:10 -0700 | [diff] [blame] | 704 | method public static androidx.health.services.client.data.PassiveListenerConfig.Builder builder(); |
Hayley Ferr | 2ce1c89 | 2022-08-10 22:51:56 +0000 | [diff] [blame] | 705 | method public java.util.Set<androidx.health.services.client.data.PassiveGoal> getDailyGoals(); |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 706 | method public java.util.Set<androidx.health.services.client.data.DataType<? extends java.lang.Object,? extends androidx.health.services.client.data.DataPoint<?>>> getDataTypes(); |
Sean Kelley | 125448c | 2022-04-26 17:26:10 -0700 | [diff] [blame] | 707 | method public java.util.Set<androidx.health.services.client.data.HealthEvent.Type> getHealthEventTypes(); |
Sean Kelley | 98c3428 | 2022-10-06 14:52:30 -0700 | [diff] [blame] | 708 | method public boolean getShouldUserActivityInfoBeRequested(); |
Hayley Ferr | 2ce1c89 | 2022-08-10 22:51:56 +0000 | [diff] [blame] | 709 | property public final java.util.Set<androidx.health.services.client.data.PassiveGoal> dailyGoals; |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 710 | property public final java.util.Set<androidx.health.services.client.data.DataType<? extends java.lang.Object,? extends androidx.health.services.client.data.DataPoint<?>>> dataTypes; |
Sean Kelley | 125448c | 2022-04-26 17:26:10 -0700 | [diff] [blame] | 711 | property public final java.util.Set<androidx.health.services.client.data.HealthEvent.Type> healthEventTypes; |
Sean Kelley | 98c3428 | 2022-10-06 14:52:30 -0700 | [diff] [blame] | 712 | property public final boolean shouldUserActivityInfoBeRequested; |
Sean Kelley | 125448c | 2022-04-26 17:26:10 -0700 | [diff] [blame] | 713 | field public static final androidx.health.services.client.data.PassiveListenerConfig.Companion Companion; |
| 714 | } |
| 715 | |
| 716 | public static final class PassiveListenerConfig.Builder { |
| 717 | ctor public PassiveListenerConfig.Builder(); |
| 718 | method public androidx.health.services.client.data.PassiveListenerConfig build(); |
Hayley Ferr | 2ce1c89 | 2022-08-10 22:51:56 +0000 | [diff] [blame] | 719 | method public androidx.health.services.client.data.PassiveListenerConfig.Builder setDailyGoals(java.util.Set<androidx.health.services.client.data.PassiveGoal> dailyGoals); |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 720 | method public androidx.health.services.client.data.PassiveListenerConfig.Builder setDataTypes(java.util.Set<? extends androidx.health.services.client.data.DataType<?,?>> dataTypes); |
Sean Kelley | 125448c | 2022-04-26 17:26:10 -0700 | [diff] [blame] | 721 | method public androidx.health.services.client.data.PassiveListenerConfig.Builder setHealthEventTypes(java.util.Set<androidx.health.services.client.data.HealthEvent.Type> healthEventTypes); |
Sean Kelley | 98c3428 | 2022-10-06 14:52:30 -0700 | [diff] [blame] | 722 | method public androidx.health.services.client.data.PassiveListenerConfig.Builder setShouldUserActivityInfoBeRequested(boolean shouldUserActivityInfoBeRequested); |
Sean Kelley | 125448c | 2022-04-26 17:26:10 -0700 | [diff] [blame] | 723 | } |
| 724 | |
| 725 | public static final class PassiveListenerConfig.Companion { |
| 726 | method public androidx.health.services.client.data.PassiveListenerConfig.Builder builder(); |
| 727 | } |
| 728 | |
Sean Kelley | 5c559c2 | 2022-10-04 19:02:22 -0700 | [diff] [blame] | 729 | public final class PassiveMonitoringCapabilities { |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 730 | ctor public PassiveMonitoringCapabilities(java.util.Set<? extends androidx.health.services.client.data.DataType<?,?>> supportedDataTypesPassiveMonitoring, java.util.Set<? extends androidx.health.services.client.data.DataType<?,?>> supportedDataTypesPassiveGoals, java.util.Set<androidx.health.services.client.data.HealthEvent.Type> supportedHealthEventTypes, java.util.Set<androidx.health.services.client.data.UserActivityState> supportedUserActivityStates); |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 731 | method public java.util.Set<androidx.health.services.client.data.DataType<?,?>> getSupportedDataTypesPassiveGoals(); |
| 732 | method public java.util.Set<androidx.health.services.client.data.DataType<?,?>> getSupportedDataTypesPassiveMonitoring(); |
Sean Kelley | 125448c | 2022-04-26 17:26:10 -0700 | [diff] [blame] | 733 | method public java.util.Set<androidx.health.services.client.data.HealthEvent.Type> getSupportedHealthEventTypes(); |
Sean Kelley | 1d0bdb5 | 2022-04-23 14:53:11 -0700 | [diff] [blame] | 734 | method public java.util.Set<androidx.health.services.client.data.UserActivityState> getSupportedUserActivityStates(); |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 735 | property public final java.util.Set<androidx.health.services.client.data.DataType<?,?>> supportedDataTypesPassiveGoals; |
| 736 | property public final java.util.Set<androidx.health.services.client.data.DataType<?,?>> supportedDataTypesPassiveMonitoring; |
Sean Kelley | 125448c | 2022-04-26 17:26:10 -0700 | [diff] [blame] | 737 | property public final java.util.Set<androidx.health.services.client.data.HealthEvent.Type> supportedHealthEventTypes; |
Sean Kelley | 1d0bdb5 | 2022-04-23 14:53:11 -0700 | [diff] [blame] | 738 | property public final java.util.Set<androidx.health.services.client.data.UserActivityState> supportedUserActivityStates; |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 739 | } |
| 740 | |
Sean Kelley | 5c559c2 | 2022-10-04 19:02:22 -0700 | [diff] [blame] | 741 | public final class PassiveMonitoringUpdate { |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 742 | ctor public PassiveMonitoringUpdate(androidx.health.services.client.data.DataPointContainer dataPoints, java.util.List<androidx.health.services.client.data.UserActivityInfo> userActivityInfoUpdates); |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 743 | method public androidx.health.services.client.data.DataPointContainer getDataPoints(); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 744 | method public java.util.List<androidx.health.services.client.data.UserActivityInfo> getUserActivityInfoUpdates(); |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 745 | property public final androidx.health.services.client.data.DataPointContainer dataPoints; |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 746 | property public final java.util.List<androidx.health.services.client.data.UserActivityInfo> userActivityInfoUpdates; |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 747 | } |
| 748 | |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 749 | public final class SampleDataPoint<T> extends androidx.health.services.client.data.DataPoint<T> { |
| 750 | ctor public SampleDataPoint(androidx.health.services.client.data.DataType<T,androidx.health.services.client.data.SampleDataPoint<T>> dataType, T value, java.time.Duration timeDurationFromBoot, optional android.os.Bundle metadata, optional androidx.health.services.client.data.DataPointAccuracy? accuracy); |
| 751 | method public androidx.health.services.client.data.DataPointAccuracy? getAccuracy(); |
| 752 | method public androidx.health.services.client.data.DataType<T,androidx.health.services.client.data.SampleDataPoint<T>> getDataType(); |
| 753 | method public android.os.Bundle getMetadata(); |
| 754 | method public java.time.Duration getTimeDurationFromBoot(); |
| 755 | method public java.time.Instant getTimeInstant(java.time.Instant bootInstant); |
| 756 | method public T getValue(); |
| 757 | property public final androidx.health.services.client.data.DataPointAccuracy? accuracy; |
| 758 | property public androidx.health.services.client.data.DataType<T,androidx.health.services.client.data.SampleDataPoint<T>> dataType; |
| 759 | property public final android.os.Bundle metadata; |
| 760 | property public final java.time.Duration timeDurationFromBoot; |
| 761 | property public final T value; |
| 762 | } |
| 763 | |
| 764 | public final class StatisticalDataPoint<T extends java.lang.Number> extends androidx.health.services.client.data.DataPoint<T> { |
| 765 | ctor public StatisticalDataPoint(androidx.health.services.client.data.AggregateDataType<T,androidx.health.services.client.data.StatisticalDataPoint<T>> dataType, T min, T max, T average, java.time.Instant start, java.time.Instant end); |
| 766 | method public T getAverage(); |
| 767 | method public java.time.Instant getEnd(); |
| 768 | method public T getMax(); |
| 769 | method public T getMin(); |
| 770 | method public java.time.Instant getStart(); |
| 771 | property public final T average; |
| 772 | property public final java.time.Instant end; |
| 773 | property public final T max; |
| 774 | property public final T min; |
| 775 | property public final java.time.Instant start; |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 776 | field public static final androidx.health.services.client.data.StatisticalDataPoint.Companion Companion; |
| 777 | } |
| 778 | |
| 779 | public static final class StatisticalDataPoint.Companion { |
| 780 | } |
| 781 | |
Sean Kelley | 5c559c2 | 2022-10-04 19:02:22 -0700 | [diff] [blame] | 782 | public final class UserActivityInfo { |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 783 | ctor public UserActivityInfo(androidx.health.services.client.data.UserActivityState userActivityState, androidx.health.services.client.data.ExerciseInfo? exerciseInfo, java.time.Instant stateChangeTime); |
| 784 | method public static androidx.health.services.client.data.UserActivityInfo createActiveExerciseState(androidx.health.services.client.data.ExerciseInfo exerciseInfo, java.time.Instant stateChangeTime); |
| 785 | method public static androidx.health.services.client.data.UserActivityInfo createAsleepState(java.time.Instant stateChangeTime); |
| 786 | method public static androidx.health.services.client.data.UserActivityInfo createPassiveActivityState(java.time.Instant stateChangeTime); |
| 787 | method public static androidx.health.services.client.data.UserActivityInfo createUnknownTypeState(java.time.Instant stateChangeTime); |
| 788 | method public androidx.health.services.client.data.ExerciseInfo? getExerciseInfo(); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 789 | method public java.time.Instant getStateChangeTime(); |
| 790 | method public androidx.health.services.client.data.UserActivityState getUserActivityState(); |
| 791 | property public final androidx.health.services.client.data.ExerciseInfo? exerciseInfo; |
| 792 | property public final java.time.Instant stateChangeTime; |
| 793 | property public final androidx.health.services.client.data.UserActivityState userActivityState; |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 794 | field public static final androidx.health.services.client.data.UserActivityInfo.Companion Companion; |
| 795 | } |
| 796 | |
| 797 | public static final class UserActivityInfo.Companion { |
| 798 | method public androidx.health.services.client.data.UserActivityInfo createActiveExerciseState(androidx.health.services.client.data.ExerciseInfo exerciseInfo, java.time.Instant stateChangeTime); |
| 799 | method public androidx.health.services.client.data.UserActivityInfo createAsleepState(java.time.Instant stateChangeTime); |
| 800 | method public androidx.health.services.client.data.UserActivityInfo createPassiveActivityState(java.time.Instant stateChangeTime); |
| 801 | method public androidx.health.services.client.data.UserActivityInfo createUnknownTypeState(java.time.Instant stateChangeTime); |
| 802 | } |
| 803 | |
| 804 | public final class UserActivityState { |
| 805 | ctor public UserActivityState(int id, String name); |
| 806 | method public int getId(); |
| 807 | method public String getName(); |
| 808 | property public final int id; |
| 809 | property public final String name; |
| 810 | field public static final androidx.health.services.client.data.UserActivityState.Companion Companion; |
| 811 | field public static final androidx.health.services.client.data.UserActivityState USER_ACTIVITY_ASLEEP; |
| 812 | field public static final androidx.health.services.client.data.UserActivityState USER_ACTIVITY_EXERCISE; |
| 813 | field public static final androidx.health.services.client.data.UserActivityState USER_ACTIVITY_PASSIVE; |
| 814 | field public static final androidx.health.services.client.data.UserActivityState USER_ACTIVITY_UNKNOWN; |
| 815 | } |
| 816 | |
| 817 | public static final class UserActivityState.Companion { |
| 818 | } |
| 819 | |
Sean Kelley | 5c559c2 | 2022-10-04 19:02:22 -0700 | [diff] [blame] | 820 | public final class WarmUpConfig { |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 821 | ctor public WarmUpConfig(androidx.health.services.client.data.ExerciseType exerciseType, java.util.Set<? extends androidx.health.services.client.data.DeltaDataType<?,?>> dataTypes); |
| 822 | method public java.util.Set<androidx.health.services.client.data.DeltaDataType<?,?>> getDataTypes(); |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 823 | method public androidx.health.services.client.data.ExerciseType getExerciseType(); |
Sean Kelley | b9f566f | 2022-04-25 10:24:17 -0700 | [diff] [blame] | 824 | property public final java.util.Set<androidx.health.services.client.data.DeltaDataType<?,?>> dataTypes; |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 825 | property public final androidx.health.services.client.data.ExerciseType exerciseType; |
Sean Kelley | 3c733a7 | 2022-04-25 14:51:05 -0700 | [diff] [blame] | 826 | } |
| 827 | |
| 828 | } |
| 829 | |