blob: 670795d83d0824e760a33e515badb94cb58f311f [file] [log] [blame]
/*
* Copyright (C) 2022 The Android Open Source Project
*
* 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.
*/
syntax = "proto2";
package android.healthfitness.ui;
option java_outer_classname = "HealthConnectUiEnums";
option java_multiple_files = true;
enum ElementId {
// Deprecated enum values
reserved 115, 116;
ELEMENT_UNKNOWN = 0;
// Home page
APP_PERMISSIONS_BUTTON = 1;
DATA_AND_ACCESS_BUTTON = 2;
SEE_ALL_RECENT_ACCESS_BUTTON = 3;
RECENT_ACCESS_ENTRY = 4;
MANAGE_DATA_BUTTON = 153;
// Onboarding page
ONBOARDING_COMPLETED_BUTTON = 6;
ONBOARDING_GO_BACK_BUTTON = 7;
// Recent access page
MANAGE_PERMISSIONS_FLOATING_BUTTON = 8;
// App permissions page
SEARCH_BUTTON = 9;
CONNECTED_APP_BUTTON = 10;
NOT_CONNECTED_APP_BUTTON = 11;
INACTIVE_APP_DELETE_BUTTON = 12;
REMOVE_ALL_APPS_PERMISSIONS_BUTTON = 13;
HELP_AND_FEEDBACK_BUTTON = 14;
// App permissions empty state & Help and feedback page
CHECK_FOR_UPDATES_BUTTON = 15;
SEE_ALL_COMPATIBLE_APPS_BUTTON = 16;
// Inactive app dialog from app permissions
INACTIVE_APP_DIALOG_CONTAINER = 18;
INACTIVE_APP_DIALOG_REMOVE_PERMISSIONS_BUTTON = 19;
INACTIVE_APP_DIALOG_GO_BACK_BUTTON = 20;
INACTIVE_APP_DIALOG_DELETE_BUTTON = 21;
// Denied apps
DENIED_APPS_BANNER = 22;
DENIED_APPS_SEE_DETAILS_BUTTON = 23;
DENIED_APPS_DIALOG_CONTAINER = 24;
DENIED_APPS_DIALOG_GOT_IT_BUTTON = 25;
APP_DENIED_DIALOG_CONTAINER = 26;
APP_DENIED_DIALOG_GOT_IT_BUTTON = 27;
// Blocked app dialog
BLOCKED_APP_DIALOG_CONTAINER = 28;
BLOCKED_APP_DIALOG_GOT_IT_BUTTON = 29;
// Categories page
CATEGORY_BUTTON = 30;
SEE_ALL_CATEGORIES_BUTTON = 31;
EXPORT_DATA_BUTTON = 32;
AUTO_DELETE_BUTTON = 33;
DELETE_ALL_DATA_BUTTON = 34;
// Auto-delete page
AUTO_DELETE_THREE_MONTHS_BUTTON = 35;
AUTO_DELETE_EIGHTEEN_MONTHS_BUTTON = 36;
AUTO_DELETE_NEVER_BUTTON = 37;
// Auto-delete dialog
AUTO_DELETE_DIALOG_CONTAINER = 38;
AUTO_DELETE_DIALOG_CANCEL_BUTTON = 39;
AUTO_DELETE_DIALOG_CONFIRM_BUTTON = 40;
AUTO_DELETE_CONFIRMATION_DIALOG_CONTAINER = 41;
AUTO_DELETE_CONFIRMATION_DIALOG_DONE_BUTTON = 42;
// Permission types page
APP_FILTER_BUTTON = 43;
PERMISSION_TYPE_BUTTON = 44;
SET_APP_PRIORITY_BUTTON = 45;
DELETE_CATEGORY_DATA_BUTTON = 46;
// Data access page
DATA_ACCESS_APP_BUTTON = 47;
DATA_ACCESS_INACTIVE_APP_BUTTON = 48;
SEE_ALL_ENTRIES_BUTTON = 49;
DELETE_THIS_DATA_BUTTON = 50;
// Data entries page
AGGREGATION_DATA_VIEW = 51;
DATA_ENTRY_VIEW = 52;
DATA_ENTRY_DELETE_BUTTON = 117;
EXERCISE_SESSION_ENTRY_BUTTON = 53;
SLEEP_SESSION_ENTRY_BUTTON = 118;
NEXT_DAY_BUTTON = 54;
PREVIOUS_DAY_BUTTON = 55;
SELECT_DATE_BUTTON = 56;
// Entry details
EXERCISE_SESSION_ENTRY_DETAILS_VIEW = 119;
SLEEP_SESSION_ENTRY_DETAILS_VIEW = 120;
SESSION_DETAIL_ENTRY_VIEW = 121;
SESSION_DETAIL_HEADER_VIEW = 122;
// Units
CHANGE_UNITS_HEIGHT_BUTTON = 57;
CHANGE_UNITS_WEIGHT_BUTTON = 58;
CHANGE_UNITS_DISTANCE_BUTTON = 59;
CHANGE_UNITS_ENERGY_BUTTON = 60;
CHANGE_UNITS_TEMPERATURE_BUTTON = 61;
// Units dialog
CANCEL_BUTTON = 62;
// Height
CENTIMETERS_BUTTON = 63;
FEET_AND_INCHES_BUTTON = 64;
// Weight
KILOGRAMS_BUTTON = 65;
POUNDS_BUTTON = 66;
STONES_BUTTON = 67;
// Distance
KILOMETERS_BUTTON = 68;
MILES_BUTTON = 69;
// Energy
CALORIES_BUTTON = 70;
KILOJOULES_BUTTON = 71;
// Temperature
CELSIUS_BUTTON = 72;
FAHRENHEIT_BUTTON = 73;
KELVIN_BUTTON = 74;
// App access
ALLOW_ALL_PERMISSIONS_SWITCH_ACTIVE = 75;
ALLOW_ALL_PERMISSIONS_SWITCH_INACTIVE = 76;
PERMISSION_SWITCH_ACTIVE = 77;
PERMISSION_SWITCH_INACTIVE = 78;
DELETE_APP_DATA_BUTTON = 79;
PRIVACY_POLICY_LINK = 80;
// Disconnect app dialog
DISCONNECT_APP_DIALOG_CONTAINER = 81;
DISCONNECT_APP_DIALOG_CANCEL_BUTTON = 82;
DISCONNECT_APP_DIALOG_CONFIRM_BUTTON = 83;
DISCONNECT_APP_DIALOG_DELETE_CHECKBOX = 84;
// Disconnect all apps dialog
DISCONNECT_ALL_APPS_DIALOG_CONTAINER = 85;
DISCONNECT_ALL_APPS_DIALOG_CANCEL_BUTTON = 86;
DISCONNECT_ALL_APPS_DIALOG_REMOVE_ALL_BUTTON = 87;
// Request permissions
ALLOW_PERMISSIONS_BUTTON = 88;
CANCEL_PERMISSIONS_BUTTON = 89;
ALLOW_ALL_SWITCH = 90;
PERMISSION_SWITCH = 91;
APP_RATIONALE_LINK = 92;
// Exercise routes dialogs
EXERCISE_ROUTE_DIALOG_CONTAINER = 123;
EXERCISE_ROUTE_DIALOG_INFORMATION_BUTTON = 124;
EXERCISE_ROUTE_DIALOG_ROUTE_VIEW = 125;
EXERCISE_ROUTE_DIALOG_ALLOW_BUTTON = 126;
EXERCISE_ROUTE_DIALOG_DONT_ALLOW_BUTTON = 127;
EXERCISE_ROUTE_EDUCATION_DIALOG_CONTAINER = 128;
EXERCISE_ROUTE_EDUCATION_DIALOG_BACK_BUTTON = 129;
// Deletion dialogs
// Deletion time range dialog
DELETION_DIALOG_TIME_RANGE_CONTAINER = 93;
DELETION_DIALOG_TIME_RANGE_LAST_24_HOURS_BUTTON = 94;
DELETION_DIALOG_TIME_RANGE_LAST_7_DAYS_BUTTON = 95;
DELETION_DIALOG_TIME_RANGE_LAST_30_DAYS_BUTTON = 96;
DELETION_DIALOG_TIME_RANGE_ALL_DATA_BUTTON = 97;
DELETION_DIALOG_TIME_RANGE_CANCEL_BUTTON = 98;
DELETION_DIALOG_TIME_RANGE_NEXT_BUTTON = 99;
// Deletion confirmation dialog
DELETION_DIALOG_CONFIRMATION_CONTAINER = 100;
DELETION_DIALOG_CONFIRMATION_GO_BACK_BUTTON = 101;
DELETION_DIALOG_CONFIRMATION_CANCEL_BUTTON = 102;
DELETION_DIALOG_CONFIRMATION_DELETE_BUTTON = 103;
DELETION_DIALOG_CONFIRMATION_REMOVE_APP_PERMISSIONS_BUTTON = 104;
// Deletion in progress
DELETION_DIALOG_IN_PROGRESS_CONTAINER = 105;
// Deletion done
DELETION_DIALOG_SUCCESS_CONTAINER = 106;
DELETION_DIALOG_SUCCESS_DONE_BUTTON = 107;
// Deletion error
DELETION_DIALOG_ERROR_CONTAINER = 108;
DELETION_DIALOG_ERROR_CLOSE_BUTTON = 109;
DELETION_DIALOG_ERROR_TRY_AGAIN_BUTTON = 110;
// Toolbar overflow
TOOLBAR_HELP_BUTTON = 111;
TOOLBAR_SETTINGS_BUTTON = 113;
TOOLBAR_OPEN_SOURCE_LICENSE_BUTTON = 114;
// Loading pages
// ERROR_PAGE_GO_BACK_BUTTON = 115;
// ERROR_PAGE_TOAST = 116;
// App priority dialog
SET_APP_PRIORITY_DIALOG_CONTAINER = 130;
SET_APP_PRIORITY_DIALOG_CANCEL_BUTTON = 131;
SET_APP_PRIORITY_DIALOG_SAVE_BUTTON = 132;
// Migration
MIGRATION_UPDATE_NEEDED_UPDATE_BUTTON = 133;
MIGRATION_UPDATE_NEEDED_CANCEL_BUTTON = 134;
MIGRATION_MORE_SPACE_NEEDED_FREE_UP_SPACE_BUTTON = 135;
MIGRATION_MORE_SPACE_NEEDED_TRY_AGAIN_BUTTON = 136;
MIGRATION_DONE_DIALOG_CONTAINER = 137;
MIGRATION_DONE_DIALOG_BUTTON = 138;
MIGRATION_IN_PROGRESS_DIALOG_CONTAINER = 139;
MIGRATION_IN_PROGRESS_DIALOG_BUTTON = 140;
MIGRATION_PENDING_DIALOG_CONTAINER = 141;
MIGRATION_PENDING_DIALOG_CANCEL_BUTTON = 142;
MIGRATION_PENDING_DIALOG_CONTINUE_BUTTON = 143;
MIGRATION_NOT_COMPLETE_DIALOG_CONTAINER = 144;
MIGRATION_NOT_COMPLETE_DIALOG_BUTTON = 145;
MIGRATION_RESUME_BANNER = 146;
MIGRATION_RESUME_BANNER_BUTTON = 147;
MIGRATION_APP_UPDATE_BANNER = 148;
MIGRATION_APP_UPDATE_BUTTON = 149;
// Loading and error page states
LOADING_PAGE_STATE = 150;
ERROR_PAGE_STATE = 151;
WITH_DATA_PAGE_STATE = 152;
// Manage data page
BACKUP_DATA_BUTTON = 5;
DATA_SOURCES_AND_PRIORITY_BUTTON = 154;
SET_UNITS_BUTTON = 155;
// Data sources page
DATA_TYPE_SPINNER_BUTTON = 156;
DATA_TOTALS_CARD = 157;
APP_SOURCE_BUTTON = 158;
ADD_AN_APP_BUTTON = 159;
EDIT_SOURCE_LIST_BUTTON = 160;
REORDER_APP_SOURCE_BUTTON = 162;
REMOVE_APP_SOURCE_BUTTON = 163;
// Add an app page
POTENTIAL_PRIORITY_APP_BUTTON = 161;
// Next available: 162;
}
enum PageId {
// Deprecated enum values
reserved 17, 18;
PAGE_UNKNOWN = 0;
HOME_PAGE = 1;
ONBOARDING_PAGE = 2;
RECENT_ACCESS_PAGE = 3;
APP_PERMISSIONS_PAGE = 4;
APP_PERMISSIONS_EMPTY_STATE_PAGE = 5;
HELP_AND_FEEDBACK_PAGE = 6;
CATEGORIES_PAGE = 7;
AUTO_DELETE_PAGE = 8;
PERMISSION_TYPES_PAGE = 9;
DATA_ACCESS_PAGE = 10;
DATA_ENTRIES_PAGE = 11;
ENTRY_DETAILS_PAGE = 12;
APP_ACCESS_PAGE = 13;
UNITS_PAGE = 14;
ALL_CATEGORIES_PAGE = 15;
REQUEST_PERMISSIONS_PAGE = 16;
// ERROR_PAGE = 17;
// LOADING_PAGE = 18;
MANAGE_PERMISSIONS_PAGE = 19;
SETTINGS_MANAGE_PERMISSIONS_PAGE = 20;
// Migration UI
MIGRATION_IN_PROGRESS_PAGE = 21;
MIGRATION_APP_UPDATE_NEEDED_PAGE = 22;
MIGRATION_MODULE_UPDATE_NEEDED_PAGE = 23;
MIGRATION_MORE_SPACE_NEEDED_PAGE = 24;
MIGRATION_PAUSED_PAGE = 25;
// New IA and Source controls
MANAGE_DATA_PAGE = 26;
DATA_SOURCES_PAGE = 27;
ADD_AN_APP_PAGE = 28;
}
enum Action {
ACTION_UNKNOWN = 0;
ACTION_CLICK = 1;
ACTION_TOGGLE_ON = 2;
ACTION_TOGGLE_OFF = 3;
}
enum Source {
SOURCE_UNKNOWN_ENTRY_POINT = 0;
SOURCE_DEEP_LINK = 1;
SOURCE_DYNAMIC_SETTINGS = 2;
SOURCE_QUICK_SETTINGS = 3;
SOURCE_MAIN_ACTION = 4;
}