1// Signature format: 2.0 2package android.health.connect { 3 4 public class ApplicationInfoResponse { 5 method @NonNull public java.util.List<android.health.connect.datatypes.AppInfo> getApplicationInfoList(); 6 } 7 8 public final class DeleteUsingFiltersRequest { 9 method @NonNull public java.util.Set<android.health.connect.datatypes.DataOrigin> getDataOrigins(); 10 method @NonNull public java.util.Set<java.lang.Class<? extends android.health.connect.datatypes.Record>> getRecordTypes(); 11 method @Nullable public android.health.connect.TimeRangeFilter getTimeRangeFilter(); 12 } 13 14 public static final class DeleteUsingFiltersRequest.Builder { 15 ctor public DeleteUsingFiltersRequest.Builder(); 16 method @NonNull public android.health.connect.DeleteUsingFiltersRequest.Builder addDataOrigin(@NonNull android.health.connect.datatypes.DataOrigin); 17 method @NonNull public android.health.connect.DeleteUsingFiltersRequest.Builder addRecordType(@NonNull Class<? extends android.health.connect.datatypes.Record>); 18 method @NonNull public android.health.connect.DeleteUsingFiltersRequest build(); 19 method @NonNull public android.health.connect.DeleteUsingFiltersRequest.Builder clearDataOrigins(); 20 method @NonNull public android.health.connect.DeleteUsingFiltersRequest.Builder clearRecordTypes(); 21 method @NonNull public android.health.connect.DeleteUsingFiltersRequest.Builder setTimeRangeFilter(@Nullable android.health.connect.TimeRangeFilter); 22 } 23 24 public final class FetchDataOriginsPriorityOrderResponse { 25 method @NonNull public java.util.List<android.health.connect.datatypes.DataOrigin> getDataOriginsPriorityOrder(); 26 } 27 28 public final class HealthConnectDataState implements android.os.Parcelable { 29 method public int describeContents(); 30 method public int getDataMigrationState(); 31 method public int getDataRestoreError(); 32 method public int getDataRestoreState(); 33 method public void writeToParcel(@NonNull android.os.Parcel, int); 34 field @NonNull public static final android.os.Parcelable.Creator<android.health.connect.HealthConnectDataState> CREATOR; 35 field public static final int MIGRATION_STATE_ALLOWED = 4; // 0x4 36 field public static final int MIGRATION_STATE_APP_UPGRADE_REQUIRED = 1; // 0x1 37 field public static final int MIGRATION_STATE_COMPLETE = 5; // 0x5 38 field public static final int MIGRATION_STATE_IDLE = 0; // 0x0 39 field public static final int MIGRATION_STATE_IN_PROGRESS = 3; // 0x3 40 field public static final int MIGRATION_STATE_MODULE_UPGRADE_REQUIRED = 2; // 0x2 41 field public static final int RESTORE_ERROR_FETCHING_DATA = 2; // 0x2 42 field public static final int RESTORE_ERROR_NONE = 0; // 0x0 43 field public static final int RESTORE_ERROR_UNKNOWN = 1; // 0x1 44 field public static final int RESTORE_ERROR_VERSION_DIFF = 3; // 0x3 45 field public static final int RESTORE_STATE_IDLE = 0; // 0x0 46 field public static final int RESTORE_STATE_IN_PROGRESS = 2; // 0x2 47 field public static final int RESTORE_STATE_PENDING = 1; // 0x1 48 } 49 50 public class HealthConnectManager { 51 method @RequiresPermission(android.health.connect.HealthPermissions.MANAGE_HEALTH_PERMISSIONS) public void deleteRecords(@NonNull android.health.connect.DeleteUsingFiltersRequest, @NonNull java.util.concurrent.Executor, @NonNull android.os.OutcomeReceiver<java.lang.Void,android.health.connect.HealthConnectException>); 52 method @RequiresPermission(android.health.connect.HealthPermissions.MANAGE_HEALTH_DATA_PERMISSION) public void fetchDataOriginsPriorityOrder(int, @NonNull java.util.concurrent.Executor, @NonNull android.os.OutcomeReceiver<android.health.connect.FetchDataOriginsPriorityOrderResponse,android.health.connect.HealthConnectException>); 53 method @RequiresPermission(android.Manifest.permission.MIGRATE_HEALTH_CONNECT_DATA) public void finishMigration(@NonNull java.util.concurrent.Executor, @NonNull android.os.OutcomeReceiver<java.lang.Void,android.health.connect.migration.MigrationException>); 54 method @NonNull @RequiresPermission(android.health.connect.HealthPermissions.MANAGE_HEALTH_DATA_PERMISSION) public void getContributorApplicationsInfo(@NonNull java.util.concurrent.Executor, @NonNull android.os.OutcomeReceiver<android.health.connect.ApplicationInfoResponse,android.health.connect.HealthConnectException>); 55 method @NonNull @RequiresPermission(anyOf={android.health.connect.HealthPermissions.MANAGE_HEALTH_DATA_PERMISSION, android.Manifest.permission.MIGRATE_HEALTH_CONNECT_DATA}) public void getHealthConnectDataState(@NonNull java.util.concurrent.Executor, @NonNull android.os.OutcomeReceiver<android.health.connect.HealthConnectDataState,android.health.connect.HealthConnectException>); 56 method @NonNull public static java.util.Set<java.lang.String> getHealthPermissions(@NonNull android.content.Context); 57 method @IntRange(from=0, to=7300) @RequiresPermission(android.health.connect.HealthPermissions.MANAGE_HEALTH_DATA_PERMISSION) public int getRecordRetentionPeriodInDays(); 58 method @RequiresPermission(android.Manifest.permission.MIGRATE_HEALTH_CONNECT_DATA) public void insertMinDataMigrationSdkExtensionVersion(int, @NonNull java.util.concurrent.Executor, @NonNull android.os.OutcomeReceiver<java.lang.Void,android.health.connect.migration.MigrationException>); 59 method public static boolean isHealthPermission(@NonNull android.content.Context, @NonNull String); 60 method @RequiresPermission(android.health.connect.HealthPermissions.MANAGE_HEALTH_DATA_PERMISSION) public void queryAccessLogs(@NonNull java.util.concurrent.Executor, @NonNull android.os.OutcomeReceiver<java.util.List<android.health.connect.accesslog.AccessLog>,android.health.connect.HealthConnectException>); 61 method @NonNull @RequiresPermission(android.health.connect.HealthPermissions.MANAGE_HEALTH_DATA_PERMISSION) public void queryActivityDates(@NonNull java.util.List<java.lang.Class<? extends android.health.connect.datatypes.Record>>, @NonNull java.util.concurrent.Executor, @NonNull android.os.OutcomeReceiver<java.util.List<java.time.LocalDate>,android.health.connect.HealthConnectException>); 62 method @RequiresPermission(android.health.connect.HealthPermissions.MANAGE_HEALTH_DATA_PERMISSION) public void queryAllRecordTypesInfo(@NonNull java.util.concurrent.Executor, @NonNull android.os.OutcomeReceiver<java.util.Map<java.lang.Class<? extends android.health.connect.datatypes.Record>,android.health.connect.RecordTypeInfoResponse>,android.health.connect.HealthConnectException>); 63 method @RequiresPermission(android.health.connect.HealthPermissions.MANAGE_HEALTH_DATA_PERMISSION) public void setRecordRetentionPeriodInDays(@IntRange(from=0, to=7300) int, @NonNull java.util.concurrent.Executor, @NonNull android.os.OutcomeReceiver<java.lang.Void,android.health.connect.HealthConnectException>); 64 method @RequiresPermission(android.Manifest.permission.STAGE_HEALTH_CONNECT_REMOTE_DATA) public void stageAllHealthConnectRemoteData(@NonNull java.util.Map<java.lang.String,android.os.ParcelFileDescriptor>, @NonNull java.util.concurrent.Executor, @NonNull android.os.OutcomeReceiver<java.lang.Void,android.health.connect.restore.StageRemoteDataException>) throws java.lang.NullPointerException; 65 method @RequiresPermission(android.Manifest.permission.MIGRATE_HEALTH_CONNECT_DATA) public void startMigration(@NonNull java.util.concurrent.Executor, @NonNull android.os.OutcomeReceiver<java.lang.Void,android.health.connect.migration.MigrationException>); 66 method @RequiresPermission(android.Manifest.permission.STAGE_HEALTH_CONNECT_REMOTE_DATA) public void updateDataDownloadState(int); 67 method @RequiresPermission(android.health.connect.HealthPermissions.MANAGE_HEALTH_DATA_PERMISSION) public void updateDataOriginPriorityOrder(@NonNull android.health.connect.UpdateDataOriginPriorityOrderRequest, @NonNull java.util.concurrent.Executor, @NonNull android.os.OutcomeReceiver<java.lang.Void,android.health.connect.HealthConnectException>); 68 method @RequiresPermission(android.Manifest.permission.MIGRATE_HEALTH_CONNECT_DATA) public void writeMigrationData(@NonNull java.util.List<android.health.connect.migration.MigrationEntity>, @NonNull java.util.concurrent.Executor, @NonNull android.os.OutcomeReceiver<java.lang.Void,android.health.connect.migration.MigrationException>); 69 field public static final String ACTION_HEALTH_CONNECT_MIGRATION_READY = "android.health.connect.action.HEALTH_CONNECT_MIGRATION_READY"; 70 field public static final String ACTION_HEALTH_HOME_SETTINGS = "android.health.connect.action.HEALTH_HOME_SETTINGS"; 71 field public static final String ACTION_MANAGE_HEALTH_DATA = "android.health.connect.action.MANAGE_HEALTH_DATA"; 72 field public static final String ACTION_REQUEST_HEALTH_PERMISSIONS = "android.health.connect.action.REQUEST_HEALTH_PERMISSIONS"; 73 field public static final String ACTION_SHOW_MIGRATION_INFO = "android.health.connect.action.SHOW_MIGRATION_INFO"; 74 field public static final int DATA_DOWNLOAD_COMPLETE = 4; // 0x4 75 field public static final int DATA_DOWNLOAD_FAILED = 3; // 0x3 76 field public static final int DATA_DOWNLOAD_RETRY = 2; // 0x2 77 field public static final int DATA_DOWNLOAD_STARTED = 1; // 0x1 78 field public static final int DATA_DOWNLOAD_STATE_UNKNOWN = 0; // 0x0 79 } 80 81 public class HealthDataCategory { 82 field public static final int ACTIVITY = 1; // 0x1 83 field public static final int BODY_MEASUREMENTS = 2; // 0x2 84 field public static final int CYCLE_TRACKING = 3; // 0x3 85 field public static final int NUTRITION = 4; // 0x4 86 field public static final int SLEEP = 5; // 0x5 87 field public static final int UNKNOWN = 0; // 0x0 88 field public static final int VITALS = 6; // 0x6 89 field @FlaggedApi("com.android.healthfitness.flags.mindfulness") public static final int WELLNESS = 7; // 0x7 90 } 91 92 public class HealthPermissionCategory { 93 field public static final int ACTIVE_CALORIES_BURNED = 1; // 0x1 94 field public static final int BASAL_BODY_TEMPERATURE = 33; // 0x21 95 field public static final int BASAL_METABOLIC_RATE = 9; // 0x9 96 field public static final int BLOOD_GLUCOSE = 26; // 0x1a 97 field public static final int BLOOD_PRESSURE = 27; // 0x1b 98 field public static final int BODY_FAT = 10; // 0xa 99 field public static final int BODY_TEMPERATURE = 28; // 0x1c 100 field public static final int BODY_WATER_MASS = 11; // 0xb 101 field public static final int BONE_MASS = 12; // 0xc 102 field public static final int CERVICAL_MUCUS = 18; // 0x12 103 field public static final int DISTANCE = 2; // 0x2 104 field public static final int ELEVATION_GAINED = 3; // 0x3 105 field public static final int EXERCISE = 4; // 0x4 106 field public static final int FLOORS_CLIMBED = 5; // 0x5 107 field public static final int HEART_RATE = 29; // 0x1d 108 field public static final int HEART_RATE_VARIABILITY = 30; // 0x1e 109 field public static final int HEIGHT = 13; // 0xd 110 field public static final int HYDRATION = 23; // 0x17 111 field public static final int INTERMENSTRUAL_BLEEDING = 38; // 0x26 112 field public static final int LEAN_BODY_MASS = 15; // 0xf 113 field public static final int MENSTRUATION = 20; // 0x14 114 field @FlaggedApi("com.android.healthfitness.flags.mindfulness") public static final int MINDFULNESS = 41; // 0x29 115 field public static final int NUTRITION = 24; // 0x18 116 field public static final int OVULATION_TEST = 21; // 0x15 117 field public static final int OXYGEN_SATURATION = 31; // 0x1f 118 field @FlaggedApi("com.android.healthconnect.flags.training_plans") public static final int PLANNED_EXERCISE = 40; // 0x28 119 field public static final int POWER = 36; // 0x24 120 field public static final int RESPIRATORY_RATE = 32; // 0x20 121 field public static final int RESTING_HEART_RATE = 34; // 0x22 122 field public static final int SEXUAL_ACTIVITY = 22; // 0x16 123 field @FlaggedApi("com.android.healthconnect.flags.skin_temperature") public static final int SKIN_TEMPERATURE = 39; // 0x27 124 field public static final int SLEEP = 25; // 0x19 125 field public static final int SPEED = 37; // 0x25 126 field public static final int STEPS = 6; // 0x6 127 field public static final int TOTAL_CALORIES_BURNED = 35; // 0x23 128 field public static final int UNKNOWN = 0; // 0x0 129 field public static final int VO2_MAX = 7; // 0x7 130 field public static final int WEIGHT = 17; // 0x11 131 field public static final int WHEELCHAIR_PUSHES = 8; // 0x8 132 } 133 134 public final class HealthPermissions { 135 field public static final String HEALTH_PERMISSION_GROUP = "android.permission-group.HEALTH"; 136 field public static final String MANAGE_HEALTH_DATA_PERMISSION = "android.permission.MANAGE_HEALTH_DATA"; 137 field public static final String MANAGE_HEALTH_PERMISSIONS = "android.permission.MANAGE_HEALTH_PERMISSIONS"; 138 } 139 140 @FlaggedApi("com.android.healthfitness.flags.personal_health_record") public final class MedicalPermissionCategory { 141 field public static final int ALL_MEDICAL_DATA = 1; // 0x1 142 field public static final int IMMUNIZATION = 2; // 0x2 143 field public static final int UNKNOWN = 0; // 0x0 144 } 145 146 public class RecordTypeInfoResponse { 147 method @NonNull public java.util.List<android.health.connect.datatypes.DataOrigin> getContributingPackages(); 148 method public int getDataCategory(); 149 method public int getPermissionCategory(); 150 } 151 152 public final class UpdateDataOriginPriorityOrderRequest { 153 ctor public UpdateDataOriginPriorityOrderRequest(@NonNull java.util.List<android.health.connect.datatypes.DataOrigin>, int); 154 method public int getDataCategory(); 155 method @NonNull public java.util.List<android.health.connect.datatypes.DataOrigin> getDataOriginInOrder(); 156 } 157 158} 159 160package android.health.connect.accesslog { 161 162 public final class AccessLog implements android.os.Parcelable { 163 method public int describeContents(); 164 method @NonNull public java.time.Instant getAccessTime(); 165 method public int getOperationType(); 166 method @NonNull public String getPackageName(); 167 method @NonNull public java.util.List<java.lang.Class<? extends android.health.connect.datatypes.Record>> getRecordTypes(); 168 method public void writeToParcel(@NonNull android.os.Parcel, int); 169 field @NonNull public static final android.os.Parcelable.Creator<android.health.connect.accesslog.AccessLog> CREATOR; 170 } 171 172 public static final class AccessLog.OperationType { 173 field public static final int OPERATION_TYPE_DELETE = 1; // 0x1 174 field public static final int OPERATION_TYPE_READ = 2; // 0x2 175 field public static final int OPERATION_TYPE_UPSERT = 0; // 0x0 176 } 177 178} 179 180package android.health.connect.datatypes { 181 182 public abstract class Record { 183 method public int getRecordType(); 184 } 185 186 public final class RecordTypeIdentifier { 187 field public static final int RECORD_TYPE_ACTIVE_CALORIES_BURNED = 2; // 0x2 188 field public static final int RECORD_TYPE_BASAL_BODY_TEMPERATURE = 20; // 0x14 189 field public static final int RECORD_TYPE_BASAL_METABOLIC_RATE = 16; // 0x10 190 field public static final int RECORD_TYPE_BLOOD_GLUCOSE = 25; // 0x19 191 field public static final int RECORD_TYPE_BLOOD_PRESSURE = 23; // 0x17 192 field public static final int RECORD_TYPE_BODY_FAT = 17; // 0x11 193 field public static final int RECORD_TYPE_BODY_TEMPERATURE = 29; // 0x1d 194 field public static final int RECORD_TYPE_BODY_WATER_MASS = 34; // 0x22 195 field public static final int RECORD_TYPE_BONE_MASS = 32; // 0x20 196 field public static final int RECORD_TYPE_CERVICAL_MUCUS = 19; // 0x13 197 field public static final int RECORD_TYPE_CYCLING_PEDALING_CADENCE = 12; // 0xc 198 field public static final int RECORD_TYPE_DISTANCE = 7; // 0x7 199 field public static final int RECORD_TYPE_ELEVATION_GAINED = 4; // 0x4 200 field public static final int RECORD_TYPE_EXERCISE_SESSION = 37; // 0x25 201 field public static final int RECORD_TYPE_FLOORS_CLIMBED = 5; // 0x5 202 field public static final int RECORD_TYPE_HEART_RATE = 11; // 0xb 203 field public static final int RECORD_TYPE_HEART_RATE_VARIABILITY_RMSSD = 35; // 0x23 204 field public static final int RECORD_TYPE_HEIGHT = 24; // 0x18 205 field public static final int RECORD_TYPE_HYDRATION = 3; // 0x3 206 field public static final int RECORD_TYPE_INTERMENSTRUAL_BLEEDING = 36; // 0x24 207 field public static final int RECORD_TYPE_LEAN_BODY_MASS = 27; // 0x1b 208 field public static final int RECORD_TYPE_MENSTRUATION_FLOW = 21; // 0x15 209 field public static final int RECORD_TYPE_MENSTRUATION_PERIOD = 10; // 0xa 210 field @FlaggedApi("com.android.healthfitness.flags.mindfulness") public static final int RECORD_TYPE_MINDFULNESS_SESSION = 41; // 0x29 211 field public static final int RECORD_TYPE_NUTRITION = 8; // 0x8 212 field public static final int RECORD_TYPE_OVULATION_TEST = 30; // 0x1e 213 field public static final int RECORD_TYPE_OXYGEN_SATURATION = 22; // 0x16 214 field @FlaggedApi("com.android.healthconnect.flags.training_plans") public static final int RECORD_TYPE_PLANNED_EXERCISE_SESSION = 40; // 0x28 215 field public static final int RECORD_TYPE_POWER = 13; // 0xd 216 field public static final int RECORD_TYPE_RESPIRATORY_RATE = 31; // 0x1f 217 field public static final int RECORD_TYPE_RESTING_HEART_RATE = 33; // 0x21 218 field public static final int RECORD_TYPE_SEXUAL_ACTIVITY = 28; // 0x1c 219 field @FlaggedApi("com.android.healthconnect.flags.skin_temperature") public static final int RECORD_TYPE_SKIN_TEMPERATURE = 39; // 0x27 220 field public static final int RECORD_TYPE_SLEEP_SESSION = 38; // 0x26 221 field public static final int RECORD_TYPE_SPEED = 14; // 0xe 222 field public static final int RECORD_TYPE_STEPS = 1; // 0x1 223 field public static final int RECORD_TYPE_STEPS_CADENCE = 15; // 0xf 224 field public static final int RECORD_TYPE_TOTAL_CALORIES_BURNED = 9; // 0x9 225 field public static final int RECORD_TYPE_UNKNOWN = 0; // 0x0 226 field public static final int RECORD_TYPE_VO2_MAX = 18; // 0x12 227 field public static final int RECORD_TYPE_WEIGHT = 26; // 0x1a 228 field public static final int RECORD_TYPE_WHEELCHAIR_PUSHES = 6; // 0x6 229 } 230 231} 232 233package android.health.connect.migration { 234 235 public final class AppInfoMigrationPayload extends android.health.connect.migration.MigrationPayload implements android.os.Parcelable { 236 method @Nullable public byte[] getAppIcon(); 237 method @NonNull public String getAppName(); 238 method @NonNull public String getPackageName(); 239 method public void writeToParcel(@NonNull android.os.Parcel, int); 240 field @NonNull public static final android.os.Parcelable.Creator<android.health.connect.migration.AppInfoMigrationPayload> CREATOR; 241 } 242 243 public static final class AppInfoMigrationPayload.Builder { 244 ctor public AppInfoMigrationPayload.Builder(@NonNull String, @NonNull String); 245 method @NonNull public android.health.connect.migration.AppInfoMigrationPayload build(); 246 method @NonNull public android.health.connect.migration.AppInfoMigrationPayload.Builder setAppIcon(@Nullable byte[]); 247 method @NonNull public android.health.connect.migration.AppInfoMigrationPayload.Builder setAppName(@NonNull String); 248 method @NonNull public android.health.connect.migration.AppInfoMigrationPayload.Builder setPackageName(@NonNull String); 249 } 250 251 public final class MetadataMigrationPayload extends android.health.connect.migration.MigrationPayload implements android.os.Parcelable { 252 method public int getRecordRetentionPeriodDays(); 253 method public void writeToParcel(@NonNull android.os.Parcel, int); 254 field @NonNull public static final android.os.Parcelable.Creator<android.health.connect.migration.MetadataMigrationPayload> CREATOR; 255 } 256 257 public static final class MetadataMigrationPayload.Builder { 258 ctor public MetadataMigrationPayload.Builder(); 259 method @NonNull public android.health.connect.migration.MetadataMigrationPayload build(); 260 method @NonNull public android.health.connect.migration.MetadataMigrationPayload.Builder setRecordRetentionPeriodDays(@IntRange(from=0x0, to=0x1c84) int); 261 } 262 263 public final class MigrationEntity implements android.os.Parcelable { 264 ctor public MigrationEntity(@NonNull String, @NonNull android.health.connect.migration.MigrationPayload); 265 method public int describeContents(); 266 method @NonNull public String getEntityId(); 267 method @NonNull public android.health.connect.migration.MigrationPayload getPayload(); 268 method public void writeToParcel(@NonNull android.os.Parcel, int); 269 field @NonNull public static final android.os.Parcelable.Creator<android.health.connect.migration.MigrationEntity> CREATOR; 270 } 271 272 public final class MigrationException extends java.lang.RuntimeException implements android.os.Parcelable { 273 ctor public MigrationException(@Nullable String, int, @Nullable String); 274 method public int describeContents(); 275 method public int getErrorCode(); 276 method @Nullable public String getFailedEntityId(); 277 method public void writeToParcel(@NonNull android.os.Parcel, int); 278 field @NonNull public static final android.os.Parcelable.Creator<android.health.connect.migration.MigrationException> CREATOR; 279 field public static final int ERROR_INTERNAL = 1; // 0x1 280 field public static final int ERROR_MIGRATE_ENTITY = 2; // 0x2 281 field public static final int ERROR_MIGRATION_UNAVAILABLE = 3; // 0x3 282 } 283 284 public abstract class MigrationPayload implements android.os.Parcelable { 285 method public int describeContents(); 286 field @NonNull public static final android.os.Parcelable.Creator<android.health.connect.migration.MigrationPayload> CREATOR; 287 } 288 289 public final class PermissionMigrationPayload extends android.health.connect.migration.MigrationPayload implements android.os.Parcelable { 290 method @NonNull public java.time.Instant getFirstGrantTime(); 291 method @NonNull public String getHoldingPackageName(); 292 method @NonNull public java.util.List<java.lang.String> getPermissions(); 293 method public void writeToParcel(@NonNull android.os.Parcel, int); 294 field @NonNull public static final android.os.Parcelable.Creator<android.health.connect.migration.PermissionMigrationPayload> CREATOR; 295 } 296 297 public static final class PermissionMigrationPayload.Builder { 298 ctor public PermissionMigrationPayload.Builder(@NonNull String, @NonNull java.time.Instant); 299 method @NonNull public android.health.connect.migration.PermissionMigrationPayload.Builder addPermission(@NonNull String); 300 method @NonNull public android.health.connect.migration.PermissionMigrationPayload build(); 301 method @NonNull public android.health.connect.migration.PermissionMigrationPayload.Builder setFirstGrantTime(@NonNull java.time.Instant); 302 method @NonNull public android.health.connect.migration.PermissionMigrationPayload.Builder setHoldingPackageName(@NonNull String); 303 } 304 305 public final class PriorityMigrationPayload extends android.health.connect.migration.MigrationPayload implements android.os.Parcelable { 306 method public int getDataCategory(); 307 method @NonNull public java.util.List<android.health.connect.datatypes.DataOrigin> getDataOrigins(); 308 method public void writeToParcel(@NonNull android.os.Parcel, int); 309 field @NonNull public static final android.os.Parcelable.Creator<android.health.connect.migration.PriorityMigrationPayload> CREATOR; 310 } 311 312 public static final class PriorityMigrationPayload.Builder { 313 ctor public PriorityMigrationPayload.Builder(); 314 method @NonNull public android.health.connect.migration.PriorityMigrationPayload.Builder addDataOrigin(@NonNull android.health.connect.datatypes.DataOrigin); 315 method @NonNull public android.health.connect.migration.PriorityMigrationPayload build(); 316 method @NonNull public android.health.connect.migration.PriorityMigrationPayload.Builder setDataCategory(int); 317 } 318 319 public final class RecordMigrationPayload extends android.health.connect.migration.MigrationPayload implements android.os.Parcelable { 320 method @NonNull public String getOriginAppName(); 321 method @NonNull public String getOriginPackageName(); 322 method @NonNull public android.health.connect.datatypes.Record getRecord(); 323 method public void writeToParcel(@NonNull android.os.Parcel, int); 324 field @NonNull public static final android.os.Parcelable.Creator<android.health.connect.migration.RecordMigrationPayload> CREATOR; 325 } 326 327 public static final class RecordMigrationPayload.Builder { 328 ctor public RecordMigrationPayload.Builder(@NonNull String, @NonNull String, @NonNull android.health.connect.datatypes.Record); 329 method @NonNull public android.health.connect.migration.RecordMigrationPayload build(); 330 method @NonNull public android.health.connect.migration.RecordMigrationPayload.Builder setOriginAppName(@NonNull String); 331 method @NonNull public android.health.connect.migration.RecordMigrationPayload.Builder setOriginPackageName(@NonNull String); 332 method @NonNull public android.health.connect.migration.RecordMigrationPayload.Builder setRecord(@NonNull android.health.connect.datatypes.Record); 333 } 334 335} 336 337package android.health.connect.restore { 338 339 public final class StageRemoteDataException extends java.lang.RuntimeException implements android.os.Parcelable { 340 method public int describeContents(); 341 method @NonNull public java.util.Map<java.lang.String,android.health.connect.HealthConnectException> getExceptionsByFileNames(); 342 method public void writeToParcel(@NonNull android.os.Parcel, int); 343 field @NonNull public static final android.os.Parcelable.Creator<android.health.connect.restore.StageRemoteDataException> CREATOR; 344 } 345 346} 347 348