pebble/tests/stubs/stubs_health_service.h
2025-01-27 11:38:16 -08:00

66 lines
1.9 KiB
C

/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#pragma once
#include "applib/health_service.h"
bool health_service_private_get_metric_history(HealthMetric metric, uint32_t history_len,
int32_t *history) {
return false;
}
bool health_service_private_non_zero_filter(int index, int32_t value, void *tm_weekday_ref) {
return false;
}
bool health_service_private_weekday_filter(int index, int32_t value, void *tm_weekday_ref) {
return false;
}
bool health_service_private_weekend_filter(int index, int32_t value, void *tm_weekday_ref) {
return false;
}
HealthValue health_service_sum_today(HealthMetric metric) {
return 0;
}
HealthValue health_service_peek_current_value(HealthMetric metric) {
return 0;
}
bool health_service_set_heart_rate_sample_period(uint16_t interval_sec) {
return false;
}
bool health_service_events_subscribe(HealthEventHandler handler, void *context) {
return false;
}
bool health_service_events_unsubscribe(void) {
return false;
}
HealthValue health_service_sum_averaged(HealthMetric metric, time_t time_start, time_t time_end,
HealthServiceTimeScope scope) {
return 0;
}
uint32_t health_service_get_minute_history(HealthMinuteData *minute_data, uint32_t max_records,
time_t *time_start, time_t *time_end) {
return 0;
}