@decimaloide/tizentest 0.0.5-rc1 → 0.0.5-rc2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/script.js +147 -7
package/package.json
CHANGED
package/script.js
CHANGED
|
@@ -1,15 +1,155 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
const TIZEN_CAPABILITIES = [
|
|
2
|
+
// System / build
|
|
3
|
+
'http://tizen.org/system/build.date',
|
|
4
|
+
'http://tizen.org/system/build.string',
|
|
5
|
+
'http://tizen.org/system/build.time',
|
|
6
|
+
'http://tizen.org/system/build.release',
|
|
7
|
+
'http://tizen.org/system/build.type',
|
|
8
|
+
'http://tizen.org/system/build.variant',
|
|
9
|
+
'http://tizen.org/system/build.id',
|
|
10
|
+
'http://tizen.org/system/manufacturer',
|
|
11
|
+
'http://tizen.org/system/model_name',
|
|
12
|
+
'http://tizen.org/system/platform.name',
|
|
13
|
+
'http://tizen.org/system/platform.processor',
|
|
14
|
+
'http://tizen.org/system/platform.communication_processor',
|
|
15
|
+
'http://tizen.org/system/tizenid',
|
|
16
|
+
|
|
17
|
+
// Battery / power
|
|
18
|
+
'http://tizen.org/feature/battery',
|
|
19
|
+
|
|
20
|
+
// Camera / media
|
|
21
|
+
'http://tizen.org/feature/camera',
|
|
22
|
+
'http://tizen.org/feature/camera.back',
|
|
23
|
+
'http://tizen.org/feature/camera.back.flash',
|
|
24
|
+
'http://tizen.org/feature/camera.front',
|
|
25
|
+
'http://tizen.org/feature/camera.front.flash',
|
|
26
|
+
'http://tizen.org/feature/media.audio_recording',
|
|
27
|
+
'http://tizen.org/feature/media.image_capture',
|
|
28
|
+
'http://tizen.org/feature/media.video_recording',
|
|
29
|
+
|
|
30
|
+
// Network / connectivity
|
|
31
|
+
'http://tizen.org/feature/network.wifi',
|
|
32
|
+
'http://tizen.org/feature/network.ethernet',
|
|
33
|
+
'http://tizen.org/feature/network.telephony',
|
|
34
|
+
'http://tizen.org/feature/network.telephony.mms',
|
|
35
|
+
'http://tizen.org/feature/network.bluetooth',
|
|
36
|
+
'http://tizen.org/feature/network.bluetooth.audio.call',
|
|
37
|
+
'http://tizen.org/feature/network.bluetooth.audio.media',
|
|
38
|
+
'http://tizen.org/feature/network.bluetooth.health',
|
|
39
|
+
'http://tizen.org/capability/network.bluetooth.always_on',
|
|
40
|
+
|
|
41
|
+
// Location
|
|
42
|
+
'http://tizen.org/feature/location',
|
|
43
|
+
'http://tizen.org/feature/location.batch',
|
|
44
|
+
'http://tizen.org/feature/location.gps',
|
|
45
|
+
'http://tizen.org/feature/location.wps',
|
|
46
|
+
|
|
47
|
+
// Sensors
|
|
48
|
+
'http://tizen.org/feature/sensor.accelerometer',
|
|
49
|
+
'http://tizen.org/feature/sensor.accelerometer.wakeup',
|
|
50
|
+
'http://tizen.org/feature/sensor.activity_recognition',
|
|
51
|
+
'http://tizen.org/feature/sensor.barometer',
|
|
52
|
+
'http://tizen.org/feature/sensor.barometer.wakeup',
|
|
53
|
+
'http://tizen.org/feature/sensor.heart_rate_monitor',
|
|
54
|
+
'http://tizen.org/feature/sensor.heart_rate_monitor.led_green',
|
|
55
|
+
'http://tizen.org/feature/sensor.heart_rate_monitor.led_ir',
|
|
56
|
+
'http://tizen.org/feature/sensor.heart_rate_monitor.led_red',
|
|
57
|
+
'http://tizen.org/feature/sensor.humidity',
|
|
58
|
+
'http://tizen.org/feature/sensor.linear_acceleration',
|
|
59
|
+
'http://tizen.org/feature/sensor.rotation_vector',
|
|
60
|
+
'http://tizen.org/feature/sensor.sleep_monitor',
|
|
61
|
+
'http://tizen.org/feature/sensor.temperature',
|
|
62
|
+
'http://tizen.org/feature/sensor.tiltmeter',
|
|
63
|
+
'http://tizen.org/feature/sensor.tiltmeter.wakeup',
|
|
64
|
+
'http://tizen.org/feature/sensor.ultraviolet',
|
|
65
|
+
'http://tizen.org/feature/sensor.wrist_up',
|
|
66
|
+
'http://tizen.org/feature/humanactivitymonitor',
|
|
67
|
+
|
|
68
|
+
// Display / screen
|
|
69
|
+
'http://tizen.org/feature/screen',
|
|
70
|
+
'http://tizen.org/feature/screen.auto_rotation',
|
|
71
|
+
'http://tizen.org/feature/screen.bpp',
|
|
72
|
+
'http://tizen.org/feature/screen.width',
|
|
73
|
+
'http://tizen.org/feature/screen.coordinate_system.size.normal',
|
|
74
|
+
'http://tizen.org/feature/screen.coordinate_system.size.large',
|
|
75
|
+
'http://tizen.org/feature/screen.size.normal.360.360',
|
|
76
|
+
'http://tizen.org/feature/screen.size.normal.360.480',
|
|
77
|
+
'http://tizen.org/feature/screen.size.normal.480.800',
|
|
78
|
+
'http://tizen.org/feature/screen.size.normal.540.960',
|
|
79
|
+
'http://tizen.org/feature/screen.size.normal.600.1024',
|
|
80
|
+
'http://tizen.org/feature/screen.size.normal.720.1280',
|
|
81
|
+
'http://tizen.org/feature/screen.size.normal.1080.1920',
|
|
82
|
+
|
|
83
|
+
// Graphics / OpenGL
|
|
84
|
+
'http://tizen.org/feature/graphics.acceleration',
|
|
85
|
+
'http://tizen.org/feature/opengles',
|
|
86
|
+
'http://tizen.org/feature/opengles.texture_format',
|
|
87
|
+
'http://tizen.org/feature/opengles.texture_format.3dc',
|
|
88
|
+
'http://tizen.org/feature/opengles.texture_format.atc',
|
|
89
|
+
|
|
90
|
+
// Input
|
|
91
|
+
'http://tizen.org/feature/input.keyboard',
|
|
92
|
+
'http://tizen.org/feature/input.keyboard.layout',
|
|
93
|
+
'http://tizen.org/feature/input.touch',
|
|
94
|
+
'http://tizen.org/feature/input.rotating_bezel',
|
|
95
|
+
'http://tizen.org/feature/multi_point_touch.pinch_zoom',
|
|
96
|
+
'http://tizen.org/feature/multi_point_touch.point_count',
|
|
97
|
+
|
|
98
|
+
// USB
|
|
99
|
+
'http://tizen.org/feature/usb.host',
|
|
100
|
+
'http://tizen.org/feature/usb.accessory',
|
|
101
|
+
|
|
102
|
+
// Audio / voice
|
|
103
|
+
'http://tizen.org/feature/audio',
|
|
104
|
+
'http://tizen.org/feature/audio.output',
|
|
105
|
+
'http://tizen.org/feature/audio.recording',
|
|
106
|
+
'http://tizen.org/feature/audio.volume',
|
|
107
|
+
'http://tizen.org/feature/microphone',
|
|
108
|
+
|
|
109
|
+
// Storage
|
|
110
|
+
'http://tizen.org/feature/storage',
|
|
111
|
+
'http://tizen.org/feature/storage.external',
|
|
112
|
+
'http://tizen.org/feature/storage.sdcard',
|
|
113
|
+
'http://tizen.org/feature/storage.usb',
|
|
114
|
+
|
|
115
|
+
// Misc / security
|
|
116
|
+
'http://tizen.org/feature/database.encryption',
|
|
117
|
+
'http://tizen.org/feature/download',
|
|
118
|
+
'http://tizen.org/feature/datasync',
|
|
119
|
+
'http://tizen.org/feature/web.service',
|
|
120
|
+
'http://tizen.org/feature/multimedia.transcoder',
|
|
121
|
+
'http://tizen.org/feature/led',
|
|
122
|
+
'http://tizen.org/feature/security.tee',
|
|
123
|
+
'http://tizen.org/feature/sip.voip',
|
|
124
|
+
'http://tizen.org/feature/speech.recognition',
|
|
125
|
+
'http://tizen.org/feature/speech.synthesis',
|
|
126
|
+
'http://tizen.org/feature/speech.control',
|
|
127
|
+
|
|
128
|
+
// TV-specific
|
|
129
|
+
'http://tizen.org/feature/tv.audio',
|
|
130
|
+
'http://tizen.org/feature/tv.display',
|
|
131
|
+
'http://tizen.org/feature/tv.inputdevice',
|
|
132
|
+
'http://tizen.org/feature/tv.pip'
|
|
5
133
|
];
|
|
6
134
|
|
|
7
|
-
|
|
135
|
+
elem = document.getElementById('modify')
|
|
136
|
+
table = document.createElement('table');
|
|
137
|
+
TIZEN_CAPABILITIES.forEach(cap => {
|
|
138
|
+
tr = document.createElement('tr')
|
|
139
|
+
resp = 'NO'
|
|
8
140
|
try {
|
|
9
141
|
const supported = tizen.systeminfo.getCapability(cap);
|
|
10
|
-
|
|
142
|
+
resp = 'YES'
|
|
11
143
|
} catch (e) {
|
|
12
144
|
console.log(cap + ": not available");
|
|
13
|
-
document.getElementById('modify').innerText = document.getElementById('modify').innerText + cap + ' not';
|
|
14
145
|
}
|
|
146
|
+
|
|
147
|
+
[ cap, resp ].forEach(text => {
|
|
148
|
+
th = document.createElement('th');
|
|
149
|
+
th.textContent = text;
|
|
150
|
+
tr.appendChild(th);
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
table.appendChild(tr);
|
|
15
154
|
});
|
|
155
|
+
elem.appendChild(table)
|