aboutsummaryrefslogtreecommitdiffstats
path: root/sdk/src/java/cyanogenmod/providers/ThemesContract.java
blob: 78d56cbe333f4d926863785a892d7bfe5d1d37a5 (plain)
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
/*
 * Copyright (C) 2016 The CyanogenMod 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.
 */

package cyanogenmod.providers;

import android.net.Uri;

/**
 * <p>
 * The contract between the themes provider and applications. Contains
 * definitions for the supported URIs and columns.
 * </p>
 */
public class ThemesContract {
    /** The authority for the themes provider */
    public static final String AUTHORITY = "com.cyanogenmod.themes";
    /** A content:// style uri to the authority for the themes provider */
    public static final Uri AUTHORITY_URI = Uri.parse("content://" + AUTHORITY);

    public static class ThemesColumns {
        public static final Uri CONTENT_URI = Uri.withAppendedPath(AUTHORITY_URI, "themes");

        /**
         * The unique ID for a row.
         * <P>Type: INTEGER (long)</P>
         */
        public static final String _ID = "_id";

        /**
         * The user visible title.
         * <P>Type: TEXT</P>
         */
        public static final String TITLE = "title";

        /**
         * Unique text to identify the apk pkg. ie "com.foo.bar"
         * <P>Type: TEXT</P>
         */
        public static final String PKG_NAME = "pkg_name";

        /**
         * A 32 bit RRGGBB color representative of the themes color scheme
         * <P>Type: INTEGER</P>
         */
        public static final String PRIMARY_COLOR = "primary_color";

        /**
         * A 2nd 32 bit RRGGBB color representative of the themes color scheme
         * <P>Type: INTEGER</P>
         */
        public static final String SECONDARY_COLOR = "secondary_color";

        /**
         * Name of the author of the theme
         * <P>Type: TEXT</P>
         */
        public static final String AUTHOR = "author";

        /**
         * The time that this row was created on its originating client (msecs
         * since the epoch).
         * <P>Type: INTEGER</P>
         */
        public static final String DATE_CREATED = "created";

        /**
         * URI to an image that shows the homescreen with the theme applied
         * since the epoch).
         * <P>Type: TEXT</P>
         */
        public static final String HOMESCREEN_URI = "homescreen_uri";

        /**
         * URI to an image that shows the lockscreen with theme applied
         * <P>Type: TEXT</P>
         */
        public static final String LOCKSCREEN_URI = "lockscreen_uri";

        /**
         * URI to an image that shows the style (aka skin) with theme applied
         * <P>Type: TEXT</P>
         */
        public static final String STYLE_URI = "style_uri";

        /**
         * TODO: Figure structure for actual animation instead of static
         * URI to an image of the boot_anim.
         * <P>Type: TEXT</P>
         */
        public static final String BOOT_ANIM_URI = "bootanim_uri";

        /**
         * URI to an image of the status bar for this theme.
         * <P>Type: TEXT</P>
         */
        public static final String STATUSBAR_URI = "status_uri";

        /**
         * URI to an image of the fonts in this theme.
         * <P>Type: TEXT</P>
         */
        public static final String FONT_URI = "font_uri";

        /**
         * URI to an image of the fonts in this theme.
         * <P>Type: TEXT</P>
         */
        public static final String ICON_URI = "icon_uri";

        /**
         * URI to an image of the fonts in this theme.
         * <P>Type: TEXT</P>
         */
        public static final String OVERLAYS_URI = "overlays_uri";

        /**
         * 1 if theme modifies the launcher/homescreen else 0
         * <P>Type: INTEGER</P>
         * <P>Default: 0</P>
         */
        public static final String MODIFIES_LAUNCHER = "mods_homescreen";

        /**
         * 1 if theme modifies the lockscreen else 0
         * <P>Type: INTEGER</P>
         * <P>Default: 0</P>
         */
        public static final String MODIFIES_LOCKSCREEN = "mods_lockscreen";

        /**
         * 1 if theme modifies icons else 0
         * <P>Type: INTEGER</P>
         * <P>Default: 0</P>
         */
        public static final String MODIFIES_ICONS = "mods_icons";

        /**
         * 1 if theme modifies fonts
         * <P>Type: INTEGER</P>
         * <P>Default: 0</P>
         */
        public static final String MODIFIES_FONTS = "mods_fonts";

        /**
         * 1 if theme modifies boot animation
         * <P>Type: INTEGER</P>
         * <P>Default: 0</P>
         */
        public static final String MODIFIES_BOOT_ANIM = "mods_bootanim";

        /**
         * 1 if theme modifies notifications
         * <P>Type: INTEGER</P>
         * <P>Default: 0</P>
         */
        public static final String MODIFIES_NOTIFICATIONS = "mods_notifications";

        /**
         * 1 if theme modifies alarm sounds
         * <P>Type: INTEGER</P>
         * <P>Default: 0</P>
         */
        public static final String MODIFIES_ALARMS = "mods_alarms";

        /**
         * 1 if theme modifies ringtones
         * <P>Type: INTEGER</P>
         * <P>Default: 0</P>
         */
        public static final String MODIFIES_RINGTONES = "mods_ringtones";

        /**
         * 1 if theme has overlays
         * <P>Type: INTEGER</P>
         * <P>Default: 0</P>
         */
        public static final String MODIFIES_OVERLAYS = "mods_overlays";

        /**
         * 1 if theme has an overlay for SystemUI/StatusBar
         * <P>Type: INTEGER</P>
         * <P>Default: 0</P>
         */
        public static final String MODIFIES_STATUS_BAR = "mods_status_bar";

        /**
         * 1 if theme has an overlay for SystemUI/NavBar
         * <P>Type: INTEGER</P>
         * <P>Default: 0</P>
         */
        public static final String MODIFIES_NAVIGATION_BAR = "mods_navigation_bar";

        /**
         * 1 if theme has a live lock screen
         * <P>Type: INTEGER</P>
         * <P>Default: 0</P>
         */
        public static final String MODIFIES_LIVE_LOCK_SCREEN = "mods_live_lock_screen";

        /**
         * URI to the theme's wallpaper. We should support multiple wallpaper
         * but for now we will just have 1.
         * <P>Type: TEXT</P>
         */
        public static final String WALLPAPER_URI = "wallpaper_uri";

        /**
         * 1 if this row should actually be presented as a theme to the user.
         * For example if a "theme" only modifies one component (ex icons) then
         * we do not present it to the user under the themes table.
         * <P>Type: INTEGER</P>
         * <P>Default: 0</P>
         */
        public static final String PRESENT_AS_THEME = "present_as_theme";

        /**
         * 1 if this theme is a legacy theme.
         * <P>Type: INTEGER</P>
         * <P>Default: 0</P>
         */
        public static final String IS_LEGACY_THEME = "is_legacy_theme";

        /**
         * 1 if this theme is the system default theme.
         * <P>Type: INTEGER</P>
         * <P>Default: 0</P>
         */
        public static final String IS_DEFAULT_THEME = "is_default_theme";

        /**
         * 1 if this theme is a legacy iconpack. A legacy icon pack is an APK that was written
         * for Trebuchet or a 3rd party launcher.
         * <P>Type: INTEGER</P>
         * <P>Default: 0</P>
         */
        public static final String IS_LEGACY_ICONPACK = "is_legacy_iconpack";

        /**
         * install/update time in millisecs. When the row is inserted this column
         * is populated by the PackageInfo. It is used for syncing to PM
         * <P>Type: INTEGER</P>
         * <P>Default: 0</P>
         */
        public static final String LAST_UPDATE_TIME = "updateTime";

        /**
         * install time in millisecs. When the row is inserted this column
         * is populated by the PackageInfo.
         * <P>Type: INTEGER</P>
         * <P>Default: 0</P>
         */
        public static final String INSTALL_TIME = "install_time";

        /**
         * The target API this theme supports
         * is populated by the PackageInfo.
         * <P>Type: INTEGER</P>
         * <P>Default: 0</P>
         */
        public static final String TARGET_API = "target_api";

        /**
         * The install state of the theme.
         * Can be one of the following:
         * {@link InstallState#UNKNOWN}
         * {@link InstallState#INSTALLING}
         * {@link InstallState#UPDATING}
         * {@link InstallState#INSTALLED}
         * <P>Type: INTEGER</P>
         * <P>Default: 0</P>
         */
        public static final String INSTALL_STATE = "install_state";

        public static class InstallState {
            public static final int UNKNOWN = 0;
            public static final int INSTALLING = 1;
            public static final int UPDATING = 2;
            public static final int INSTALLED = 3;
        }
    }

    /**
     * Key-value table which assigns a component (ex wallpaper) to a theme's package
     */
    public static class MixnMatchColumns {
        public static final Uri CONTENT_URI = Uri.withAppendedPath(AUTHORITY_URI, "mixnmatch");

        /**
         * The unique key for a row. See the KEY_* constants
         * for valid examples
         * <P>Type: TEXT</P>
         */
        public static final String COL_KEY = "key";

        /**
         * The package name that corresponds to a given component.
         * <P>Type: String</P>
         */
        public static final String COL_VALUE = "value";

        /**
         * The package name that corresponds to where this component was applied from previously
         * <P>Type: String</P>
         */
        public static final String COL_PREV_VALUE = "previous_value";

        /**
         * Time when this entry was last updated
         * <P>Type: INTEGER</P>
         */
        public static final String COL_UPDATE_TIME = "update_time";

        /*
         * The unique ID for the component within a theme.
         * Always 0 unless multiples of a component exist.
         * <P>Type: INTEGER (long)</P>
         */
        public static final String COL_COMPONENT_ID = "component_id";

        /**
         * Valid keys
         */
        public static final String KEY_HOMESCREEN = "mixnmatch_homescreen";
        public static final String KEY_LOCKSCREEN = "mixnmatch_lockscreen";
        public static final String KEY_ICONS = "mixnmatch_icons";
        public static final String KEY_STATUS_BAR = "mixnmatch_status_bar";
        public static final String KEY_BOOT_ANIM = "mixnmatch_boot_anim";
        public static final String KEY_FONT = "mixnmatch_font";
        public static final String KEY_ALARM = "mixnmatch_alarm";
        public static final String KEY_NOTIFICATIONS = "mixnmatch_notifications";
        public static final String KEY_RINGTONE = "mixnmatch_ringtone";
        public static final String KEY_OVERLAYS = "mixnmatch_overlays";
        public static final String KEY_NAVIGATION_BAR = "mixnmatch_navigation_bar";
        public static final String KEY_LIVE_LOCK_SCREEN = "mixnmatch_live_lock_screen";

        public static final String[] ROWS = { KEY_HOMESCREEN,
            KEY_LOCKSCREEN,
            KEY_ICONS,
            KEY_STATUS_BAR,
            KEY_BOOT_ANIM,
            KEY_FONT,
            KEY_NOTIFICATIONS,
            KEY_RINGTONE,
            KEY_ALARM,
            KEY_OVERLAYS,
            KEY_NAVIGATION_BAR,
            KEY_LIVE_LOCK_SCREEN
        };

        /**
         * For a given key value in the MixNMatch table, return the column
         * associated with it in the Themes Table. This is useful for URI based
         * elements like wallpaper where the caller wishes to determine the
         * wallpaper URI.
         */
        public static String componentToImageColName(String component) {
            if (component.equals(MixnMatchColumns.KEY_HOMESCREEN)) {
                return ThemesColumns.HOMESCREEN_URI;
            } else if (component.equals(MixnMatchColumns.KEY_LOCKSCREEN)) {
                return ThemesColumns.LOCKSCREEN_URI;
            } else if (component.equals(MixnMatchColumns.KEY_BOOT_ANIM)) {
                return ThemesColumns.BOOT_ANIM_URI;
            } else if (component.equals(MixnMatchColumns.KEY_FONT)) {
                return ThemesColumns.FONT_URI;
            } else if (component.equals(MixnMatchColumns.KEY_ICONS)) {
                return ThemesColumns.ICON_URI;
            } else if (component.equals(MixnMatchColumns.KEY_STATUS_BAR)) {
                return ThemesColumns.STATUSBAR_URI;
            } else if (component.equals(MixnMatchColumns.KEY_NOTIFICATIONS)) {
                throw new IllegalArgumentException("Notifications mixnmatch component does not have a related column");
            } else if (component.equals(MixnMatchColumns.KEY_RINGTONE)) {
                throw new IllegalArgumentException("Ringtone mixnmatch component does not have a related column");
            } else if (component.equals(MixnMatchColumns.KEY_OVERLAYS)) {
                return ThemesColumns.OVERLAYS_URI;
            } else if (component.equals(MixnMatchColumns.KEY_ALARM)) {
                throw new IllegalArgumentException(
                        "Alarm mixnmatch component does not have a related column");
            } else if (component.equals(MixnMatchColumns.KEY_NAVIGATION_BAR)) {
                throw new IllegalArgumentException(
                        "Navigation bar mixnmatch component does not have a related column");
            } else if (component.equals(MixnMatchColumns.KEY_LIVE_LOCK_SCREEN)) {
                throw new IllegalArgumentException(
                        "Live lock screen mixnmatch component does not have a related column");
            }
            return null;
        }

        /**
         * A component in the themes table (IE "mods_wallpaper") has an
         * equivalent key in mixnmatch table
         */
        public static String componentToMixNMatchKey(String component) {
            if (component.equals(ThemesColumns.MODIFIES_LAUNCHER)) {
                return MixnMatchColumns.KEY_HOMESCREEN;
            } else if (component.equals(ThemesColumns.MODIFIES_ICONS)) {
                return MixnMatchColumns.KEY_ICONS;
            } else if (component.equals(ThemesColumns.MODIFIES_LOCKSCREEN)) {
                return MixnMatchColumns.KEY_LOCKSCREEN;
            } else if (component.equals(ThemesColumns.MODIFIES_FONTS)) {
                return MixnMatchColumns.KEY_FONT;
            } else if (component.equals(ThemesColumns.MODIFIES_BOOT_ANIM)) {
                return MixnMatchColumns.KEY_BOOT_ANIM;
            } else if (component.equals(ThemesColumns.MODIFIES_ALARMS)) {
                return MixnMatchColumns.KEY_ALARM;
            } else if (component.equals(ThemesColumns.MODIFIES_NOTIFICATIONS)) {
                return MixnMatchColumns.KEY_NOTIFICATIONS;
            } else if (component.equals(ThemesColumns.MODIFIES_RINGTONES)) {
                return MixnMatchColumns.KEY_RINGTONE;
            } else if (component.equals(ThemesColumns.MODIFIES_OVERLAYS)) {
                return MixnMatchColumns.KEY_OVERLAYS;
            } else if (component.equals(ThemesColumns.MODIFIES_STATUS_BAR)) {
                return MixnMatchColumns.KEY_STATUS_BAR;
            } else if (component.equals(ThemesColumns.MODIFIES_NAVIGATION_BAR)) {
                return MixnMatchColumns.KEY_NAVIGATION_BAR;
            } else if (component.equals(ThemesColumns.MODIFIES_LIVE_LOCK_SCREEN)) {
                return MixnMatchColumns.KEY_LIVE_LOCK_SCREEN;
            }
            return null;
        }

        /**
         * A mixnmatch key in has an
         * equivalent value in the themes table
         */
        public static String mixNMatchKeyToComponent(String mixnmatchKey) {
            if (mixnmatchKey.equals(MixnMatchColumns.KEY_HOMESCREEN)) {
                return ThemesColumns.MODIFIES_LAUNCHER;
            } else if (mixnmatchKey.equals(MixnMatchColumns.KEY_ICONS)) {
                return ThemesColumns.MODIFIES_ICONS;
            } else if (mixnmatchKey.equals(MixnMatchColumns.KEY_LOCKSCREEN)) {
                return ThemesColumns.MODIFIES_LOCKSCREEN;
            } else if (mixnmatchKey.equals(MixnMatchColumns.KEY_FONT)) {
                return ThemesColumns.MODIFIES_FONTS;
            } else if (mixnmatchKey.equals(MixnMatchColumns.KEY_BOOT_ANIM)) {
                return ThemesColumns.MODIFIES_BOOT_ANIM;
            } else if (mixnmatchKey.equals(MixnMatchColumns.KEY_ALARM)) {
                return ThemesColumns.MODIFIES_ALARMS;
            } else if (mixnmatchKey.equals(MixnMatchColumns.KEY_NOTIFICATIONS)) {
                return ThemesColumns.MODIFIES_NOTIFICATIONS;
            } else if (mixnmatchKey.equals(MixnMatchColumns.KEY_RINGTONE)) {
                return ThemesColumns.MODIFIES_RINGTONES;
            } else if (mixnmatchKey.equals(MixnMatchColumns.KEY_OVERLAYS)) {
                return ThemesColumns.MODIFIES_OVERLAYS;
            } else if (mixnmatchKey.equals(MixnMatchColumns.KEY_STATUS_BAR)) {
                return ThemesColumns.MODIFIES_STATUS_BAR;
            } else if (mixnmatchKey.equals(MixnMatchColumns.KEY_NAVIGATION_BAR)) {
                return ThemesColumns.MODIFIES_NAVIGATION_BAR;
            } else if (mixnmatchKey.equals(MixnMatchColumns.KEY_LIVE_LOCK_SCREEN)) {
                return ThemesColumns.MODIFIES_LIVE_LOCK_SCREEN;
            }
            return null;
        }
    }

    /**
     * Table containing cached preview files for a given theme
     */
    public static class PreviewColumns {
        /**
         * Uri for retrieving the previews table.
         * Querying the themes provider using this URI will return a cursor with a key and value
         * columns, and a row for each component.
         */
        public static final Uri CONTENT_URI = Uri.withAppendedPath(AUTHORITY_URI, "previews");

        /**
         * Uri for retrieving the previews for the currently applied components.
         * Querying the themes provider using this URI will return a cursor with a single row
         * containing all the previews for the components that are currently applied.
         */
        public static final Uri APPLIED_URI = Uri.withAppendedPath(AUTHORITY_URI,
                "applied_previews");

        /**
         * Uri for retrieving the default previews for the theme.
         * Querying the themes provider using this URI will return a cursor with a single row
         * containing all the previews for the default components of the current theme.
         */
        public static final Uri COMPONENTS_URI = Uri.withAppendedPath(AUTHORITY_URI,
                "components_previews");

        /**
         * The unique ID for a row.
         * <P>Type: INTEGER (long)</P>
         */
        public static final String _ID = "_id";

        /**
         * The unique ID for the theme these previews belong to.
         * <P>Type: INTEGER (long)</P>
         */
        public static final String THEME_ID = "theme_id";

        /**
         * The unique ID for the component within a theme.
         * <P>Type: INTEGER (long)</P>
         */
        public static final String COMPONENT_ID = "component_id";

        /**
         * The unique key for a row. See the Valid key constants section below
         * for valid examples
         * <P>Type: TEXT</P>
         */
        public static final String COL_KEY = "key";

        /**
         * The package name that corresponds to a given component.
         * <P>Type: String</P>
         */
        public static final String COL_VALUE = "value";

        /**
         * Valid keys
         */

        /**
         * Cached image of the themed status bar background.
         * <P>Type: String (file path)</P>
         */
        public static final String STATUSBAR_BACKGROUND = "statusbar_background";

        /**
         * Cached image of the themed bluetooth status icon.
         * <P>Type: String (file path)</P>
         */
        public static final String STATUSBAR_BLUETOOTH_ICON = "statusbar_bluetooth_icon";

        /**
         * Cached image of the themed wifi status icon.
         * <P>Type: String (file path)</P>
         */
        public static final String STATUSBAR_WIFI_ICON = "statusbar_wifi_icon";

        /**
         * Cached image of the themed cellular signal status icon.
         * <P>Type: String (file path)</P>
         */
        public static final String STATUSBAR_SIGNAL_ICON = "statusbar_signal_icon";

        /**
         * Cached image of the themed battery using portrait style.
         * <P>Type: String (file path)</P>
         */
        public static final String STATUSBAR_BATTERY_PORTRAIT = "statusbar_battery_portrait";

        /**
         * Cached image of the themed battery using landscape style.
         * <P>Type: String (file path)</P>
         */
        public static final String STATUSBAR_BATTERY_LANDSCAPE = "statusbar_battery_landscape";

        /**
         * Cached image of the themed battery using circle style.
         * <P>Type: String (file path)</P>
         */
        public static final String STATUSBAR_BATTERY_CIRCLE = "statusbar_battery_circle";

        /**
         * The themed color used for clock text in the status bar.
         * <P>Type: INTEGER (int)</P>
         */
        public static final String STATUSBAR_CLOCK_TEXT_COLOR = "statusbar_clock_text_color";

        /**
         * The themed margin value between the wifi and rssi signal icons.
         * <P>Type: INTEGER (int)</P>
         */
        public static final String STATUSBAR_WIFI_COMBO_MARGIN_END = "wifi_combo_margin_end";

        /**
         * Cached image of the themed navigation bar background.
         * <P>Type: String (file path)</P>
         */
        public static final String NAVBAR_BACKGROUND = "navbar_background";

        /**
         * Cached image of the themed back button.
         * <P>Type: String (file path)</P>
         */
        public static final String NAVBAR_BACK_BUTTON = "navbar_back_button";

        /**
         * Cached image of the themed home button.
         * <P>Type: String (file path)</P>
         */
        public static final String NAVBAR_HOME_BUTTON = "navbar_home_button";

        /**
         * Cached image of the themed recents button.
         * <P>Type: String (file path)</P>
         */
        public static final String NAVBAR_RECENT_BUTTON = "navbar_recent_button";

        /**
         * Cached image of the 1/3 icons
         * <P>Type: String (file path)</P>
         */
        public static final String ICON_PREVIEW_1 = "icon_preview_1";

        /**
         * Cached image of the 2/3 icons
         * <P>Type: String (file path)</P>
         */
        public static final String ICON_PREVIEW_2 = "icon_preview_2";

        /**
         * Cached image of the 3/3 icons
         * <P>Type: String (file path)</P>
         */
        public static final String ICON_PREVIEW_3 = "icon_preview_3";

        /**
         * Full path to the theme's wallpaper asset.
         * <P>Type: String (file path)</P>
         */
        public static final String WALLPAPER_FULL = "wallpaper_full";

        /**
         * Cached preview of the theme's wallpaper which is larger than the thumbnail
         * but smaller than the full sized wallpaper.
         * <P>Type: String (file path)</P>
         */
        public static final String WALLPAPER_PREVIEW = "wallpaper_preview";

        /**
         * Cached thumbnail of the theme's wallpaper
         * <P>Type: String (file path)</P>
         */
        public static final String WALLPAPER_THUMBNAIL = "wallpaper_thumbnail";

        /**
         * Cached preview of the theme's lockscreen  wallpaper which is larger than the thumbnail
         * but smaller than the full sized lockscreen wallpaper.
         * <P>Type: String (file path)</P>
         */
        public static final String LOCK_WALLPAPER_PREVIEW = "lock_wallpaper_preview";

        /**
         * Cached thumbnail of the theme's lockscreen wallpaper
         * <P>Type: String (file path)</P>
         */
        public static final String LOCK_WALLPAPER_THUMBNAIL = "lock_wallpaper_thumbnail";

        /**
         * Cached preview of UI controls representing the theme's style
         * <P>Type: String (file path)</P>
         */
        public static final String STYLE_PREVIEW = "style_preview";

        /**
         * Cached thumbnail preview of UI controls representing the theme's style
         * <P>Type: String (file path)</P>
         */
        public static final String STYLE_THUMBNAIL = "style_thumbnail";

        /**
         * Cached thumbnail of the theme's boot animation
         * <P>Type: String (file path)</P>
         */
        public static final String BOOTANIMATION_THUMBNAIL = "bootanimation_thumbnail";

        /**
         * Cached preview of live lock screen
         * <P>Type: String (file path)</P>
         */
        public static final String LIVE_LOCK_SCREEN_PREVIEW = "live_lock_screen_preview";

        /**
         * Cached thumbnail preview of live lock screen
         * <P>Type: String (file path)</P>
         */
        public static final String LIVE_LOCK_SCREEN_THUMBNAIL = "live_lock_screen_thumbnail";

        public static final String[] VALID_KEYS = {
            STATUSBAR_BACKGROUND,
            STATUSBAR_BLUETOOTH_ICON,
            STATUSBAR_WIFI_ICON,
            STATUSBAR_SIGNAL_ICON,
            STATUSBAR_BATTERY_PORTRAIT,
            STATUSBAR_BATTERY_LANDSCAPE,
            STATUSBAR_BATTERY_CIRCLE,
            STATUSBAR_CLOCK_TEXT_COLOR,
            STATUSBAR_WIFI_COMBO_MARGIN_END,
            NAVBAR_BACKGROUND,
            NAVBAR_BACK_BUTTON,
            NAVBAR_HOME_BUTTON,
            NAVBAR_RECENT_BUTTON,
            ICON_PREVIEW_1,
            ICON_PREVIEW_2,
            ICON_PREVIEW_3,
            WALLPAPER_FULL,
            WALLPAPER_PREVIEW,
            WALLPAPER_THUMBNAIL,
            LOCK_WALLPAPER_PREVIEW,
            LOCK_WALLPAPER_THUMBNAIL,
            STYLE_PREVIEW,
            STYLE_THUMBNAIL,
            BOOTANIMATION_THUMBNAIL,
            LIVE_LOCK_SCREEN_PREVIEW,
            LIVE_LOCK_SCREEN_THUMBNAIL,
        };
    }
}