ProfileItem.java
6.87 KB
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
package com.ntk.util;
import java.util.Iterator;
import java.util.Set;
import java.util.TreeMap;
import com.blankj.utilcode.util.LogUtils;
import com.ntk.nvtkit.NVTKitModel;
@SuppressWarnings("unchecked")
public class ProfileItem {
public ProfileItem() {
if (list_capturesize.isEmpty())
get_pofile();
}
String TAG = "ProfileItem";
TreeMap itemMap = null;
public static ProfileArrayList<String> list_capturesize = new ProfileArrayList<String>();
public static ProfileArrayList<String> list_capturesize_index = new ProfileArrayList<String>();
public static ProfileArrayList<String> list_movie_rec_size = new ProfileArrayList<String>();
public static ProfileArrayList<String> list_movie_rec_size_index = new ProfileArrayList<String>();
public static ProfileArrayList<String> list_cyclic_rec = new ProfileArrayList<String>();
public static ProfileArrayList<String> list_cyclic_rec_index = new ProfileArrayList<String>();
public static ProfileArrayList<String> list_movie_hdr = new ProfileArrayList<String>();
public static ProfileArrayList<String> list_movie_hdr_index = new ProfileArrayList<String>();
public static ProfileArrayList<String> list_movie_ev = new ProfileArrayList<String>();
public static ProfileArrayList<String> list_movie_ev_index = new ProfileArrayList<String>();
public static ProfileArrayList<String> list_motion_det = new ProfileArrayList<String>();
public static ProfileArrayList<String> list_motion_det_index = new ProfileArrayList<String>();
public static ProfileArrayList<String> list_movie_audio = new ProfileArrayList<String>();
public static ProfileArrayList<String> list_movie_audio_index = new ProfileArrayList<String>();
public static ProfileArrayList<String> list_dateimprint = new ProfileArrayList<String>();
public static ProfileArrayList<String> list_dateimprint_index = new ProfileArrayList<String>();
public static ProfileArrayList<String> list_movie_gsensor_sens = new ProfileArrayList<String>();
public static ProfileArrayList<String> list_movie_gsensor_sens_index = new ProfileArrayList<String>();
public static ProfileArrayList<String> list_set_auto_recording = new ProfileArrayList<String>();
public static ProfileArrayList<String> list_set_auto_recording_index = new ProfileArrayList<String>();
public static ProfileArrayList<String> list_auto_power_off = new ProfileArrayList<String>();
public static ProfileArrayList<String> list_auto_power_off_index = new ProfileArrayList<String>();
public static ProfileArrayList<String> list_language = new ProfileArrayList<String>();
public static ProfileArrayList<String> list_language_index = new ProfileArrayList<String>();
public static ProfileArrayList<String> list_tvformat = new ProfileArrayList<String>();
public static ProfileArrayList<String> list_tvformat_index = new ProfileArrayList<String>();
public ProfileArrayList<String> get_auto_power_off_list() {
return null;
}
private void get_pofile() {
itemMap = NVTKitModel.qryMenuItemList();
if (itemMap != null) {
Set keys = itemMap.keySet();
for (Iterator i = keys.iterator(); i.hasNext(); ) {
String key = (String) i.next();
TreeMap menuListMap = (TreeMap) itemMap.get(key);
Set menuListKey = menuListMap.keySet();
for (Iterator j = menuListKey.iterator(); j.hasNext(); ) {
String menuListKeys = (String) j.next();
String menuListValue = (String) menuListMap.get(menuListKeys);
LogUtils.e(TAG, menuListKeys + " " + menuListValue);
switch (key) {
case DefineTable.WIFIAPP_CMD_CAPTURESIZE:
list_capturesize.add(menuListValue);
list_capturesize_index.add(menuListKeys);
break;
case DefineTable.WIFIAPP_CMD_MOVIE_REC_SIZE:
list_movie_rec_size.add(menuListValue);
list_movie_rec_size_index.add(menuListKeys);
break;
case DefineTable.WIFIAPP_CMD_CYCLIC_REC:
list_cyclic_rec.add(menuListValue);
list_cyclic_rec_index.add(menuListKeys);
LogUtils.d(TAG, "list_cyclic_rec 循环录像----》 "+menuListKeys + " " + menuListValue);
break;
case DefineTable.WIFIAPP_CMD_MOVIE_HDR:
list_movie_hdr.add(menuListValue);
list_movie_hdr_index.add(menuListKeys);
break;
case DefineTable.WIFIAPP_CMD_MOVIE_EV:
list_movie_ev.add(menuListValue);
list_movie_ev_index.add(menuListKeys);
break;
case DefineTable.WIFIAPP_CMD_MOTION_DET:
list_motion_det.add(menuListValue);
list_motion_det_index.add(menuListKeys);
break;
case DefineTable.WIFIAPP_CMD_MOVIE_AUDIO:
list_movie_audio.add(menuListValue);
list_movie_audio_index.add(menuListKeys);
break;
case DefineTable.WIFIAPP_CMD_DATEIMPRINT:
list_dateimprint.add(menuListValue);
list_dateimprint_index.add(menuListKeys);
break;
case DefineTable.WIFIAPP_CMD_MOVIE_GSENSOR_SENS:
list_movie_gsensor_sens.add(menuListValue);
list_movie_gsensor_sens_index.add(menuListKeys);
break;
case DefineTable.WIFIAPP_CMD_SET_AUTO_RECORDING:
list_set_auto_recording.add(menuListValue);
list_set_auto_recording_index.add(menuListKeys);
break;
case DefineTable.WIFIAPP_CMD_POWEROFF:
list_auto_power_off.add(menuListValue);
list_auto_power_off_index.add(menuListKeys);
break;
case DefineTable.WIFIAPP_CMD_LANGUAGE:
list_language.add(menuListValue);
list_language_index.add(menuListKeys);
break;
case DefineTable.WIFIAPP_CMD_TVFORMAT:
list_tvformat.add(menuListValue);
list_tvformat_index.add(menuListKeys);
break;
}
}
}
}
}
}