mirror of
https://github.com/google/pebble.git
synced 2025-07-04 22:00:38 -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
35
tests/overrides/default/shell/system_app_ids.auto.h
Normal file
35
tests/overrides/default/shell/system_app_ids.auto.h
Normal file
|
@ -0,0 +1,35 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include "process_management/app_install_types.h"
|
||||
|
||||
#define APP_ID_SIMPLICITY ((AppInstallId) -1)
|
||||
#define APP_ID_LOW_POWER_FACE ((AppInstallId) -2)
|
||||
#define APP_ID_MUSIC ((AppInstallId) -3)
|
||||
#define APP_ID_NOTIFICATIONS ((AppInstallId) -4)
|
||||
#define APP_ID_ALARMS ((AppInstallId) -5)
|
||||
#define APP_ID_WATCHFACES ((AppInstallId) -6)
|
||||
#define APP_ID_SETTINGS ((AppInstallId) -7)
|
||||
#define APP_ID_SET_TIME ((AppInstallId) -8)
|
||||
#define APP_ID_QUICK_LAUNCH_SETUP ((AppInstallId) -9)
|
||||
#define APP_ID_TIMELINE ((AppInstallId) -10)
|
||||
#define APP_ID_LAUNCHER_MENU ((AppInstallId) -54)
|
||||
#define APP_ID_WEATHER ((AppInstallId) -59)
|
||||
#define APP_ID_SHUTDOWN_CHARGING ((AppInstallId) -60)
|
||||
#define APP_ID_BATTERY_CRITICAL ((AppInstallId) -62)
|
||||
#define APP_ID_GOLF ((AppInstallId) -52)
|
||||
#define APP_ID_SPORTS ((AppInstallId) -53)
|
||||
#define APP_ID_HEALTH_APP ((AppInstallId) -82)
|
144
tests/overrides/default/shell/system_app_registry_list.auto.h
Normal file
144
tests/overrides/default/shell/system_app_registry_list.auto.h
Normal file
|
@ -0,0 +1,144 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include "system_app_ids.auto.h"
|
||||
#include "resource/resource_ids.auto.h"
|
||||
|
||||
extern const PebbleProcessMd *simplicity_get_app_info(void);
|
||||
extern const PebbleProcessMd *low_power_face_get_app_info(void);
|
||||
extern const PebbleProcessMd *music_app_get_info(void);
|
||||
extern const PebbleProcessMd *notifications_app_get_info(void);
|
||||
extern const PebbleProcessMd *alarms_app_get_info(void);
|
||||
extern const PebbleProcessMd *watchfaces_get_app_info(void);
|
||||
extern const PebbleProcessMd *settings_get_app_info(void);
|
||||
extern const PebbleProcessMd *set_time_get_app_info(void);
|
||||
extern const PebbleProcessMd *quick_launch_setup_get_app_info(void);
|
||||
extern const PebbleProcessMd *timeline_get_app_info(void);
|
||||
extern const PebbleProcessMd *launcher_menu_app_get_app_info(void);;
|
||||
extern const PebbleProcessMd *weather_app_get_info(void);
|
||||
extern const PebbleProcessMd *shutdown_charging_get_app_info(void);
|
||||
extern const PebbleProcessMd *battery_critical_get_app_info(void);
|
||||
|
||||
|
||||
static const AppRegistryEntry APP_RECORDS[] = {
|
||||
|
||||
// System Apps
|
||||
{
|
||||
.id = APP_ID_SIMPLICITY,
|
||||
.type = AppInstallStorageFw,
|
||||
.md_fn = &simplicity_get_app_info
|
||||
},
|
||||
{
|
||||
.id = APP_ID_LOW_POWER_FACE,
|
||||
.type = AppInstallStorageFw,
|
||||
.md_fn = &low_power_face_get_app_info
|
||||
},
|
||||
{
|
||||
.id = APP_ID_MUSIC,
|
||||
.type = AppInstallStorageFw,
|
||||
.md_fn = &music_app_get_info
|
||||
},
|
||||
{
|
||||
.id = APP_ID_NOTIFICATIONS,
|
||||
.type = AppInstallStorageFw,
|
||||
.md_fn = ¬ifications_app_get_info
|
||||
},
|
||||
{
|
||||
.id = APP_ID_ALARMS,
|
||||
.type = AppInstallStorageFw,
|
||||
.md_fn = &alarms_app_get_info
|
||||
},
|
||||
{
|
||||
.id = APP_ID_WATCHFACES,
|
||||
.type = AppInstallStorageFw,
|
||||
.md_fn = &watchfaces_get_app_info
|
||||
},
|
||||
{
|
||||
.id = APP_ID_SETTINGS,
|
||||
.type = AppInstallStorageFw,
|
||||
.md_fn = &settings_get_app_info
|
||||
},
|
||||
{
|
||||
.id = APP_ID_SET_TIME,
|
||||
.type = AppInstallStorageFw,
|
||||
.md_fn = &set_time_get_app_info
|
||||
},
|
||||
{
|
||||
.id = APP_ID_QUICK_LAUNCH_SETUP,
|
||||
.type = AppInstallStorageFw,
|
||||
.md_fn = &quick_launch_setup_get_app_info
|
||||
},
|
||||
{
|
||||
.id = APP_ID_TIMELINE,
|
||||
.type = AppInstallStorageFw,
|
||||
.md_fn = &timeline_get_app_info
|
||||
},
|
||||
{
|
||||
.id = APP_ID_VOICE_UI,
|
||||
.type = AppInstallStorageFw,
|
||||
.md_fn = &voice_ui_app_get_info
|
||||
},
|
||||
{
|
||||
.id = APP_ID_LAUNCHER_MENU,
|
||||
.type = AppInstallStorageFw,
|
||||
.md_fn = &launcher_menu_app_get_app_info
|
||||
},
|
||||
{
|
||||
.id = APP_ID_LIGHT_CONFIG,
|
||||
.type = AppInstallStorageFw,
|
||||
.md_fn = &light_config_get_info
|
||||
},
|
||||
{
|
||||
.id = APP_ID_AMB_LIGHT_READ,
|
||||
.type = AppInstallStorageFw,
|
||||
.md_fn = &ambient_light_reading_get_info
|
||||
},
|
||||
{
|
||||
.id = APP_ID_WEATHER,
|
||||
.type = AppInstallStorageFw,
|
||||
.md_fn = &weather_app_get_info
|
||||
},
|
||||
{
|
||||
.id = APP_ID_SHUTDOWN_CHARGING,
|
||||
.type = AppInstallStorageFw,
|
||||
.md_fn = &shutdown_charging_get_app_info
|
||||
},
|
||||
{
|
||||
.id = APP_ID_BATTERY_CRITICAL,
|
||||
.type = AppInstallStorageFw,
|
||||
.md_fn = &battery_critical_get_app_info
|
||||
},
|
||||
{
|
||||
.id = APP_ID_HEALTH_APP,
|
||||
.type = AppInstallStorageFw,
|
||||
.md_fn = &health_app_get_info
|
||||
},
|
||||
{
|
||||
.id = APP_ID_SPORTS,
|
||||
.type = AppInstallStorageFw,
|
||||
.md_fn = &sports_app_get_info
|
||||
},
|
||||
|
||||
// Resource (stored) Apps
|
||||
{
|
||||
.id = APP_ID_GOLF,
|
||||
.type = AppInstallStorageResources,
|
||||
.name = "Golf",
|
||||
.uuid = { 0xcf, 0x1e, 0x81, 0x6a, 0x9d, 0xb0, 0x45, 0x11, 0xbb, 0xb8, 0xf6, 0x0c, 0x48, 0xca, 0x8f, 0xac },
|
||||
.bin_resource_id = RESOURCE_ID_STORED_APP_GOLF,
|
||||
.icon_resource_id = RESOURCE_ID_LAUNCHER_ICON_GOLF
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue