wangzhibo
4 天以前 ae6f40460dcd56af6c5f60ba52c883854c3bac55
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
/*  Copyright (C) 2022-2024 Noodlez
 
    This file is part of Gadgetbridge.
 
    Gadgetbridge is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as published
    by the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.
 
    Gadgetbridge is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.
 
    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>. */
package nodomain.freeyourgadget.gadgetbridge.devices.asteroidos;
 
import java.util.UUID;
 
/**
 * A class to hold all the constants needed by the AsteroidOS devices
 */
public class AsteroidOSConstants {
    /**
     * A list of all the known supported codenames
     */
    public static final String[] KNOWN_DEVICE_CODENAMES = {
        "bass", "sturgeon", "catfish", "catfish_ext",
        "catshark", "lenok", "smelt", "carp",
        "sparrow", "wren", "anthias", "beluga",
        "dory", "firefish", "harmony", "inharmony",
        "narwhal", "ray", "sawfish", "sawshark",
        "skipjack", "tunny", "mooneye", "swift",
        "minnow", "sprat", "tetra", "pike", "hoki",
        "koi", "ayu"
    };
 
    /**
     * AsteroidOS Service Watch Filter UUID
     */
    public static final UUID SERVICE_UUID               = UUID.fromString("00000000-0000-0000-0000-00A57E401D05");
 
    /**
     * Battery level service
     */
    public static final UUID BATTERY_SERVICE_UUID       = UUID.fromString("0000180F-0000-1000-8000-00805F9B34FB");
    /**
     * Battery level characteristic
     */
    public static final UUID BATTERY_UUID               = UUID.fromString("00002A19-0000-1000-8000-00805F9B34FB");
 
    /**
     * Time service
     */
    public static final UUID TIME_SERVICE_UUID          = UUID.fromString("00005071-0000-0000-0000-00A57E401D05");
    /**
     * Time characteristic
     */
    public static final UUID TIME_SET_CHAR              = UUID.fromString("00005001-0000-0000-0000-00A57E401D05");
 
    /**
     * Screenshot service
     */
    public static final UUID SCREENSHOT_SERVICE_UUID    = UUID.fromString("00006071-0000-0000-0000-00A57E401D05");
    /**
     * Screenshot request characteristic
     */
    public static final UUID SCREENSHOT_REQUEST_CHAR     = UUID.fromString("00006001-0000-0000-0000-00A57E401D05");
    /**
     * Screenshot content characteristic
     */
    public static final UUID SCREENSHOT_CONTENT_CHAR         = UUID.fromString("00006002-0000-0000-0000-00A57E401D05");
 
    /**
     * Media service
     */
    public static final UUID MEDIA_SERVICE_UUID         = UUID.fromString("00007071-0000-0000-0000-00A57E401D05");
    /**
     * Media title characteristic
     */
    public static final UUID MEDIA_TITLE_CHAR           = UUID.fromString("00007001-0000-0000-0000-00A57E401D05");
    /**
     * Media album characteristic
     */
    public static final UUID MEDIA_ALBUM_CHAR           = UUID.fromString("00007002-0000-0000-0000-00A57E401D05");
    /**
     * Media artist characteristic
     */
    public static final UUID MEDIA_ARTIST_CHAR          = UUID.fromString("00007003-0000-0000-0000-00A57E401D05");
    /**
     * Media playing status characteristic
     */
    public static final UUID MEDIA_PLAYING_CHAR         = UUID.fromString("00007004-0000-0000-0000-00A57E401D05");
    /**
     * Media command characteristic
     */
    public static final UUID MEDIA_COMMANDS_CHAR        = UUID.fromString("00007005-0000-0000-0000-00A57E401D05");
    /**
     * Media volume characteristic
     */
    public static final UUID MEDIA_VOLUME_CHAR          = UUID.fromString("00007006-0000-0000-0000-00A57E401D05");
 
    /**
     * Weather service
     */
    public static final UUID WEATHER_SERVICE_UUID       = UUID.fromString("00008071-0000-0000-0000-00A57E401D05");
    /**
     * Weather city name characteristic
     */
    public static final UUID WEATHER_CITY_CHAR          = UUID.fromString("00008001-0000-0000-0000-00A57E401D05");
    /**
     * Weather condition codes characteristic
     */
    public static final UUID WEATHER_IDS_CHAR           = UUID.fromString("00008002-0000-0000-0000-00A57E401D05");
    /**
     * Weather minimum temps characteristic
     */
    public static final UUID WEATHER_MIN_TEMPS_CHAR     = UUID.fromString("00008003-0000-0000-0000-00A57E401D05");
    /**
     * Weather maximum temps characteristic
     */
    public static final UUID WEATHER_MAX_TEMPS_CHAR     = UUID.fromString("00008004-0000-0000-0000-00A57E401D05");
 
    /**
     * Notification service
     */
    public static final UUID NOTIFICATION_SERVICE_UUID  = UUID.fromString("00009071-0000-0000-0000-00A57E401D05");
    /**
     * Notification update characteristic
     */
    public static final UUID NOTIFICATION_UPDATE_CHAR   = UUID.fromString("00009001-0000-0000-0000-00A57E401D05");
    /**
     * Notification feedback characteristic
     */
    public static final UUID NOTIFICATION_FEEDBACK_CHAR = UUID.fromString("00009002-0000-0000-0000-00A57E401D05");
}