mirror of
https://github.com/google/pebble.git
synced 2025-08-14 02:18: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
52
tests/stubs/stubs_workout_service.h
Normal file
52
tests/stubs/stubs_workout_service.h
Normal file
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
* 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 "services/normal/activity/activity.h"
|
||||
#include "services/normal/activity/hr_util.h"
|
||||
|
||||
#include "kernel/events.h"
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
void workout_service_init(void) {}
|
||||
|
||||
void workout_service_frontend_opened(void) {}
|
||||
|
||||
void workout_service_frontend_closed(void) {}
|
||||
|
||||
void workout_service_health_event_handler(PebbleHealthEvent *event) {}
|
||||
|
||||
bool workout_service_is_workout_ongoing(void) {return false;}
|
||||
|
||||
bool workout_service_is_workout_type_supported(ActivitySessionType type) {return false;}
|
||||
|
||||
bool workout_service_start_workout(ActivitySessionType type) {return false;}
|
||||
|
||||
bool workout_service_pause_workout(bool should_be_paused) {return false;}
|
||||
|
||||
bool workout_service_stop_workout(void) {return false;}
|
||||
|
||||
bool workout_service_takeover_activity_session(ActivitySession *session) {return false;}
|
||||
|
||||
bool workout_service_is_paused(void) {return false;}
|
||||
|
||||
bool workout_service_get_current_workout_type(ActivitySessionType *type_out) {return false;}
|
||||
|
||||
bool workout_service_get_current_workout_info(int32_t *steps_out, int32_t *duration_s_out,
|
||||
int32_t *distance_m_out, int32_t *current_bpm_out,
|
||||
HRZone *current_hr_zone_out) {return false;}
|
Loading…
Add table
Add a link
Reference in a new issue