mirror of
https://github.com/google/pebble.git
synced 2025-08-15 02:48:10 -04:00
Import of the watch repository from Pebble
This commit is contained in:
commit
3b92768480
10334 changed files with 2564465 additions and 0 deletions
66
tests/stubs/stubs_health_service.h
Normal file
66
tests/stubs/stubs_health_service.h
Normal file
|
@ -0,0 +1,66 @@
|
|||
/*
|
||||
* 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue