Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update all NDK Samples for NDK 2.0 except BelligerentBlocks

  • Loading branch information...
commit 4d4b39378632867b38e31ae118d62b0996db4e9b 1 parent de83054
@jhoffmannrim jhoffmannrim authored
Showing with 6,209 additions and 4,441 deletions.
  1. +61 −45 .gitignore
  2. +178 −0 Accelerometer/.cproject
  3. +1 −1  {GestureSample → Accelerometer}/.project
  4. 0  {VideoPlaybackTutorial → Accelerometer}/LICENSE
  5. 0  {VideoPlaybackTutorial → Accelerometer}/Makefile
  6. +1 −1  {GestureSample → Accelerometer}/NOTICE
  7. 0  {VideoPlaybackTutorial/x86 → Accelerometer/arm}/Makefile
  8. 0  {VideoPlaybackTutorial/x86/o → Accelerometer/arm/o.le-v7-g}/Makefile
  9. 0  {VideoPlaybackTutorial/x86/o-g → Accelerometer/arm/o.le-v7}/Makefile
  10. +13 −12 {NetworkStatusSample → Accelerometer}/bar-descriptor.xml
  11. +2 −0  {AccelerometerSample → Accelerometer}/common.mk
  12. +157 −0 Accelerometer/dialogutil.c
  13. +53 −0 Accelerometer/dialogutil.h
  14. 0  {VideoPlaybackTutorial → Accelerometer}/icon.png
  15. +71 −104 {AccelerometerSample → Accelerometer}/main.c
  16. +58 −0 Accelerometer/manifest.properties
  17. +1 −1  {AccelerometerSample → Accelerometer}/readme.txt
  18. 0  {VideoPlaybackTutorial → Accelerometer}/sample-splashscreen-landscape.png
  19. 0  {VideoPlaybackTutorial → Accelerometer}/sample-splashscreen-portrait.png
  20. 0  {VideoPlaybackTutorial/arm → Accelerometer/x86}/Makefile
  21. 0  {VideoPlaybackTutorial/arm/o.le-v7 → Accelerometer/x86/o-g}/Makefile
  22. +0 −84 AccelerometerSample/.project
  23. +0 −26 AccelerometerSample/.settings/org.eclipse.cdt.core.prefs
  24. +0 −5 AccelerometerSample/NOTICE
  25. +0 −1  AccelerometerSample/arm/o.le-v7-g/Makefile
  26. +0 −1  AccelerometerSample/arm/o.le-v7/Makefile
  27. +0 −99 AccelerometerSample/bar-descriptor.xml
  28. BIN  AccelerometerSample/icon.png
  29. +0 −1  AccelerometerSample/x86/o-g/Makefile
  30. +0 −1  AccelerometerSample/x86/o/Makefile
  31. +178 −0 AudioControl/.cproject
  32. +1 −1  {DialogSample → AudioControl}/.project
  33. 0  {PaymentServiceSample → AudioControl}/LICENSE
  34. 0  {TemplateBps → AudioControl}/Makefile
  35. +1 −1  {DialogSample → AudioControl}/NOTICE
  36. 0  {TemplateBps/x86 → AudioControl/arm}/Makefile
  37. 0  {VideoPlaybackTutorial → AudioControl}/arm/o.le-v7-g/Makefile
  38. 0  {TemplateBps/x86/o → AudioControl/arm/o.le-v7}/Makefile
  39. +13 −12 {DialogSample → AudioControl}/bar-descriptor.xml
  40. +2 −0  {NetworkStatusSample → AudioControl}/common.mk
  41. +157 −0 AudioControl/dialogutil.c
  42. +53 −0 AudioControl/dialogutil.h
  43. 0  {TemplateBps → AudioControl}/icon.png
  44. +63 −18 {AudioControlSample → AudioControl}/main.c
  45. +58 −0 AudioControl/manifest.properties
  46. 0  {AudioControlSample → AudioControl}/readme.txt
  47. 0  {ScreenTemplate → AudioControl}/sample-splashscreen-landscape.png
  48. 0  {ScreenTemplate → AudioControl}/sample-splashscreen-portrait.png
  49. 0  {TemplateBps/arm → AudioControl/x86}/Makefile
  50. 0  {TemplateBps → AudioControl}/x86/o-g/Makefile
  51. +0 −174 AudioControlSample/.cproject
  52. +0 −26 AudioControlSample/.settings/org.eclipse.cdt.core.prefs
  53. +0 −5 AudioControlSample/NOTICE
  54. +0 −1  AudioControlSample/arm/o.le-v7-g/Makefile
  55. +0 −1  AudioControlSample/arm/o.le-v7/Makefile
  56. +0 −1  AudioControlSample/x86/o-g/Makefile
  57. +0 −1  AudioControlSample/x86/o/Makefile
  58. +77 −77 CubeRotate/.cproject
  59. +0 −26 CubeRotate/.settings/org.eclipse.cdt.core.prefs
  60. +8 −5 CubeRotate/bar-descriptor.xml
  61. +83 −146 CubeRotate/bbutil.c
  62. +30 −45 CubeRotate/bbutil.h
  63. +2 −0  CubeRotate/common.mk
  64. +1 −1  CubeRotate/main.c
  65. +56 −0 CubeRotate/manifest.properties
  66. 0  {PaymentServiceSample → CubeRotate}/sample-splashscreen-landscape.png
  67. 0  {PaymentServiceSample → CubeRotate}/sample-splashscreen-portrait.png
  68. +0 −1  CubeRotate/x86/o/Makefile
  69. +77 −77 {VideoPlaybackTutorial → Dialog}/.cproject
  70. +1 −1  {KeyboardSample → Dialog}/.project
  71. 0  {NetworkStatusSample → Dialog}/LICENSE
  72. 0  {PaymentServiceSample → Dialog}/Makefile
  73. +1 −1  {KeyboardSample → Dialog}/NOTICE
  74. 0  {PaymentServiceSample/x86 → Dialog/arm}/Makefile
  75. 0  {TemplateBps/arm/o.le-v7 → Dialog/arm/o.le-v7-g}/Makefile
  76. 0  {TemplateBps/arm/o.le-v7-g → Dialog/arm/o.le-v7}/Makefile
  77. +11 −12 {KeyboardSample → Dialog}/bar-descriptor.xml
  78. +2 −0  {PaymentServiceSample → Dialog}/common.mk
  79. 0  {ScreenTemplate → Dialog}/icon.png
  80. 0  {DialogSample → Dialog}/main.c
  81. +56 −0 Dialog/manifest.properties
  82. 0  {DialogSample → Dialog}/readme.txt
  83. 0  {NetworkStatusSample → Dialog}/sample-splashscreen-landscape.png
  84. 0  {NetworkStatusSample → Dialog}/sample-splashscreen-portrait.png
  85. 0  {PaymentServiceSample/arm → Dialog/x86}/Makefile
  86. 0  {ScreenTemplate/x86/o → Dialog/x86/o-g}/Makefile
  87. +0 −26 DialogSample/.settings/org.eclipse.cdt.core.prefs
  88. +0 −1  DialogSample/arm/o.le-v7-g/Makefile
  89. +0 −1  DialogSample/arm/o.le-v7/Makefile
  90. +0 −1  DialogSample/x86/o-g/Makefile
  91. +0 −1  DialogSample/x86/o/Makefile
  92. +77 −77 FallingBlocks/.cproject
  93. +0 −26 FallingBlocks/.settings/org.eclipse.cdt.core.prefs
  94. +8 −5 FallingBlocks/bar-descriptor.xml
  95. +83 −146 FallingBlocks/bbutil.c
  96. +30 −45 FallingBlocks/bbutil.h
  97. +2 −0  FallingBlocks/common.mk
  98. +42 −38 FallingBlocks/main.c
  99. +56 −0 FallingBlocks/manifest.properties
  100. 0  {KeyboardSample → FallingBlocks}/sample-splashscreen-landscape.png
  101. 0  {KeyboardSample → FallingBlocks}/sample-splashscreen-portrait.png
  102. +0 −1  FallingBlocks/x86/o/Makefile
  103. +81 −77 {NetworkStatusSample → Geolocation}/.cproject
  104. +1 −1  {HttpProxySample → Geolocation}/.project
  105. 0  {KeyboardSample → Geolocation}/LICENSE
  106. 0  {NetworkStatusSample → Geolocation}/Makefile
  107. +1 −1  {HttpProxySample → Geolocation}/NOTICE
  108. 0  {NetworkStatusSample/x86 → Geolocation/arm}/Makefile
  109. 0  {PlayWav/x86/o → Geolocation/arm/o.le-v7-g}/Makefile
  110. 0  {PlayAudio/x86/o → Geolocation/arm/o.le-v7}/Makefile
  111. +13 −12 {GeolocationSample → Geolocation}/bar-descriptor.xml
  112. +2 −0  {GeolocationSample → Geolocation}/common.mk
  113. +157 −0 Geolocation/dialogutil.c
  114. +53 −0 Geolocation/dialogutil.h
  115. 0  {PaymentServiceSample → Geolocation}/icon.png
  116. +31 −183 {GeolocationSample → Geolocation}/main.c
  117. +58 −0 Geolocation/manifest.properties
  118. +2 −2 {GeolocationSample → Geolocation}/readme.txt
  119. 0  {HttpProxySample → Geolocation}/sample-splashscreen-landscape.png
  120. 0  {HttpProxySample → Geolocation}/sample-splashscreen-portrait.png
  121. 0  {NetworkStatusSample/arm → Geolocation/x86}/Makefile
  122. 0  {PaymentServiceSample/x86/o → Geolocation/x86/o-g}/Makefile
  123. +0 −84 GeolocationSample/.project
  124. +0 −26 GeolocationSample/.settings/org.eclipse.cdt.core.prefs
  125. +0 −5 GeolocationSample/NOTICE
  126. +0 −1  GeolocationSample/arm/o.le-v7-g/Makefile
  127. +0 −1  GeolocationSample/arm/o.le-v7/Makefile
  128. +0 −1  GeolocationSample/x86/o-g/Makefile
  129. +77 −77 {AccelerometerSample → Gesture}/.cproject
  130. +84 −0 Gesture/.project
  131. 0  {HttpProxySample → Gesture}/LICENSE
  132. 0  {KeyboardSample → Gesture}/Makefile
  133. +5 −0 Gesture/NOTICE
  134. 0  {KeyboardSample/x86 → Gesture/arm}/Makefile
  135. 0  {PaymentServiceSample/x86/o-g → Gesture/arm/o.le-v7-g}/Makefile
  136. 0  {PaymentServiceSample → Gesture}/arm/o.le-v7/Makefile
  137. +11 −12 {GestureSample → Gesture}/bar-descriptor.xml
  138. +2 −0  {GestureSample → Gesture}/common.mk
  139. 0  {NetworkStatusSample → Gesture}/icon.png
  140. 0  {GestureSample → Gesture}/main.c
  141. +56 −0 Gesture/manifest.properties
  142. +1 −1  {GestureSample → Gesture}/readme.txt
  143. 0  {GestureSample → Gesture}/sample-splashscreen-landscape.png
  144. 0  {GestureSample → Gesture}/sample-splashscreen-portrait.png
  145. 0  {GestureSample → Gesture}/wallpaper.jpg
  146. 0  {KeyboardSample/arm → Gesture/x86}/Makefile
  147. 0  {PaymentServiceSample/arm/o.le-v7-g → Gesture/x86/o-g}/Makefile
  148. +0 −26 GestureSample/.settings/org.eclipse.cdt.core.prefs
  149. +77 −77 GoodCitizen/.cproject
  150. +0 −26 GoodCitizen/.settings/org.eclipse.cdt.core.prefs
  151. +8 −5 GoodCitizen/bar-descriptor.xml
  152. +83 −146 GoodCitizen/bbutil.c
  153. +30 −45 GoodCitizen/bbutil.h
  154. +2 −0  GoodCitizen/common.mk
  155. BIN  GoodCitizen/icon.png
  156. +7 −7 GoodCitizen/main.c
  157. +56 −0 GoodCitizen/manifest.properties
  158. 0  {GeolocationSample → GoodCitizen}/sample-splashscreen-landscape.png
  159. 0  {GeolocationSample → GoodCitizen}/sample-splashscreen-portrait.png
  160. +77 −77 HelloWorldConsole/.cproject
  161. +0 −26 HelloWorldConsole/.settings/org.eclipse.cdt.core.prefs
  162. +7 −5 HelloWorldConsole/bar-descriptor.xml
  163. +2 −0  HelloWorldConsole/common.mk
  164. +56 −0 HelloWorldConsole/manifest.properties
  165. 0  {DialogSample → HelloWorldConsole}/sample-splashscreen-landscape.png
  166. 0  {DialogSample → HelloWorldConsole}/sample-splashscreen-portrait.png
  167. +77 −77 HelloWorldDisplay/.cproject
  168. +0 −26 HelloWorldDisplay/.settings/org.eclipse.cdt.core.prefs
  169. +9 −5 HelloWorldDisplay/bar-descriptor.xml
  170. +83 −146 HelloWorldDisplay/bbutil.c
  171. +30 −45 HelloWorldDisplay/bbutil.h
  172. +2 −0  HelloWorldDisplay/common.mk
  173. +4 −5 HelloWorldDisplay/main.c
  174. +56 −0 HelloWorldDisplay/manifest.properties
  175. 0  {AudioControlSample → HelloWorldDisplay}/sample-splashscreen-landscape.png
  176. 0  {AudioControlSample → HelloWorldDisplay}/sample-splashscreen-portrait.png
  177. +81 −77 {PaymentServiceSample → HttpProxy}/.cproject
  178. +84 −0 HttpProxy/.project
  179. 0  {GestureSample → HttpProxy}/LICENSE
  180. 0  {HttpProxySample → HttpProxy}/Makefile
  181. +5 −0 HttpProxy/NOTICE
  182. 0  {HttpProxySample/x86 → HttpProxy/arm}/Makefile
  183. 0  {NetworkStatusSample/x86/o → HttpProxy/arm/o.le-v7-g}/Makefile
  184. 0  {NetworkStatusSample/x86/o-g → HttpProxy/arm/o.le-v7}/Makefile
  185. +100 −0 HttpProxy/bar-descriptor.xml
  186. +2 −0  {HttpProxySample → HttpProxy}/common.mk
  187. +157 −0 HttpProxy/dialogutil.c
  188. +53 −0 HttpProxy/dialogutil.h
  189. 0  {KeyboardSample → HttpProxy}/icon.png
  190. +88 −80 {HttpProxySample → HttpProxy}/main.c
  191. +58 −0 HttpProxy/manifest.properties
  192. +1 −1  {HttpProxySample → HttpProxy}/readme.txt
  193. 0  {AccelerometerSample → HttpProxy}/sample-splashscreen-landscape.png
  194. 0  {AccelerometerSample → HttpProxy}/sample-splashscreen-portrait.png
  195. 0  {HttpProxySample/arm → HttpProxy/x86}/Makefile
  196. 0  {NetworkStatusSample/arm/o.le-v7 → HttpProxy/x86/o-g}/Makefile
  197. +0 −174 HttpProxySample/.cproject
  198. +0 −26 HttpProxySample/.settings/org.eclipse.cdt.core.prefs
  199. +77 −77 {KeyboardSample → Keyboard}/.cproject
  200. +84 −0 Keyboard/.project
  201. 0  {GeolocationSample → Keyboard}/LICENSE
  202. 0  {GestureSample → Keyboard}/Makefile
  203. +5 −0 Keyboard/NOTICE
  204. 0  {GestureSample/x86 → Keyboard/arm}/Makefile
  205. 0  {NetworkStatusSample → Keyboard}/arm/o.le-v7-g/Makefile
  206. 0  {LocaleSample/x86/o → Keyboard/arm/o.le-v7}/Makefile
  207. +98 −0 Keyboard/bar-descriptor.xml
  208. 0  {KeyboardSample → Keyboard}/bbutil.c
  209. 0  {KeyboardSample → Keyboard}/bbutil.h
  210. +2 −0  {KeyboardSample → Keyboard}/common.mk
  211. 0  {HttpProxySample → Keyboard}/icon.png
  212. 0  {KeyboardSample → Keyboard}/main.c
  213. +56 −0 Keyboard/manifest.properties
  214. +1 −1  {KeyboardSample → Keyboard}/readme.txt
  215. BIN  Keyboard/sample-splashscreen-landscape.png
  216. BIN  Keyboard/sample-splashscreen-portrait.png
  217. 0  {GestureSample/arm → Keyboard/x86}/Makefile
  218. 0  {KeyboardSample/x86/o → Keyboard/x86/o-g}/Makefile
  219. +0 −26 KeyboardSample/.settings/org.eclipse.cdt.core.prefs
  220. +81 −77 LocaleSample/.cproject
  221. +0 −26 LocaleSample/.settings/org.eclipse.cdt.core.prefs
  222. +6 −5 LocaleSample/bar-descriptor.xml
  223. +2 −0  LocaleSample/common.mk
  224. +157 −0 LocaleSample/dialogutil.c
  225. +53 −0 LocaleSample/dialogutil.h
  226. +36 −6 LocaleSample/main.c
  227. +58 −0 LocaleSample/manifest.properties
  228. +81 −77 {GestureSample → NetworkStatus}/.cproject
  229. +84 −0 NetworkStatus/.project
  230. 0  {DialogSample → NetworkStatus}/LICENSE
  231. 0  {GeolocationSample → NetworkStatus}/Makefile
  232. +5 −0 NetworkStatus/NOTICE
  233. 0  {GeolocationSample/x86 → NetworkStatus/arm}/Makefile
  234. 0  {KeyboardSample/x86/o-g → NetworkStatus/arm/o.le-v7-g}/Makefile
  235. 0  {KeyboardSample → NetworkStatus}/arm/o.le-v7/Makefile
  236. +100 −0 NetworkStatus/bar-descriptor.xml
  237. +2 −0  {AudioControlSample → NetworkStatus}/common.mk
  238. +157 −0 NetworkStatus/dialogutil.c
  239. +53 −0 NetworkStatus/dialogutil.h
  240. 0  {GestureSample → NetworkStatus}/icon.png
  241. +25 −5 {NetworkStatusSample → NetworkStatus}/main.c
  242. +58 −0 NetworkStatus/manifest.properties
  243. +1 −1  {NetworkStatusSample → NetworkStatus}/readme.txt
  244. BIN  NetworkStatus/sample-splashscreen-landscape.png
  245. BIN  NetworkStatus/sample-splashscreen-portrait.png
  246. 0  {GeolocationSample/arm → NetworkStatus/x86}/Makefile
  247. 0  {KeyboardSample/arm/o.le-v7-g → NetworkStatus/x86/o-g}/Makefile
  248. +0 −84 NetworkStatusSample/.project
  249. +0 −26 NetworkStatusSample/.settings/org.eclipse.cdt.core.prefs
  250. +0 −5 NetworkStatusSample/NOTICE
  251. +77 −77 {GeolocationSample → OpenGLES11Template}/.cproject
  252. +1 −1  {AudioControlSample → OpenGLES11Template}/.project
  253. 0  {TemplateBps → OpenGLES11Template}/LICENSE
  254. 0  {DialogSample → OpenGLES11Template}/Makefile
  255. +1 −1  {TemplateBps → OpenGLES11Template}/NOTICE
  256. 0  {DialogSample/x86 → OpenGLES11Template/arm}/Makefile
  257. 0  {HttpProxySample/x86/o → OpenGLES11Template/arm/o.le-v7-g}/Makefile
  258. 0  {HttpProxySample/x86/o-g → OpenGLES11Template/arm/o.le-v7}/Makefile
  259. +12 −14 {TemplateBps → OpenGLES11Template}/bar-descriptor.xml
  260. +87 −150 {TemplateBps → OpenGLES11Template}/bbutil.c
  261. +29 −44 {TemplateBps → OpenGLES11Template}/bbutil.h
  262. +2 −0  {TemplateBps → OpenGLES11Template}/common.mk
  263. +4 −4 {TemplateBps → OpenGLES11Template}/main.c
  264. +57 −0 OpenGLES11Template/manifest.properties
  265. +2 −2 {TemplateBps → OpenGLES11Template}/readme.txt
  266. 0  {DialogSample/arm → OpenGLES11Template/x86}/Makefile
  267. 0  {HttpProxySample/arm/o.le-v7 → OpenGLES11Template/x86/o-g}/Makefile
  268. +77 −77 {TemplateBps → PaymentService}/.cproject
  269. +84 −0 PaymentService/.project
  270. 0  {AudioControlSample → PaymentService}/LICENSE
  271. 0  {AudioControlSample → PaymentService}/Makefile
  272. +5 −0 PaymentService/NOTICE
  273. 0  {AudioControlSample/x86 → PaymentService/arm}/Makefile
  274. 0  {HttpProxySample → PaymentService}/arm/o.le-v7-g/Makefile
  275. 0  {HelloWorldDisplay/x86/o → PaymentService/arm/o.le-v7}/Makefile
  276. +11 −12 {HttpProxySample → PaymentService}/bar-descriptor.xml
  277. +2 −0  {DialogSample → PaymentService}/common.mk
  278. 0  {GeolocationSample → PaymentService}/icon.png
  279. +30 −29 {PaymentServiceSample → PaymentService}/main.c
  280. +56 −0 PaymentService/manifest.properties
  281. 0  {PaymentServiceSample → PaymentService}/readme.txt
  282. BIN  PaymentService/sample-splashscreen-landscape.png
  283. BIN  PaymentService/sample-splashscreen-portrait.png
  284. 0  {AudioControlSample/arm → PaymentService/x86}/Makefile
  285. 0  {HelloWorldConsole/x86/o → PaymentService/x86/o-g}/Makefile
  286. +0 −84 PaymentServiceSample/.project
  287. +0 −26 PaymentServiceSample/.settings/org.eclipse.cdt.core.prefs
  288. +0 −5 PaymentServiceSample/NOTICE
  289. +0 −99 PaymentServiceSample/bar-descriptor.xml
  290. +81 −77 PlayAudio/.cproject
  291. +0 −26 PlayAudio/.settings/org.eclipse.cdt.core.prefs
  292. +6 −5 PlayAudio/bar-descriptor.xml
  293. +2 −0  PlayAudio/common.mk
  294. +157 −0 PlayAudio/dialogutil.c
  295. +53 −0 PlayAudio/dialogutil.h
  296. +191 −215 PlayAudio/main.c
  297. +58 −0 PlayAudio/manifest.properties
  298. +81 −77 PlayWav/.cproject
  299. +0 −26 PlayWav/.settings/org.eclipse.cdt.core.prefs
  300. +6 −5 PlayWav/bar-descriptor.xml
Sorry, we could not display the entire diff because too many files (375) changed.
View
106 .gitignore
@@ -1,33 +1,50 @@
+TAGS
*~
*.o
-AccelerometerSample/arm/o.le-v7-g/AccelerometerSample
-AccelerometerSample/arm/o.le-v7/AccelerometerSample
-AccelerometerSample/x86/o-g/AccelerometerSample
-AccelerometerSample/x86/o/AccelerometerSample
-AudioControlSample/arm/o.le-v7-g/AudioControlSample
-AudioControlSample/arm/o.le-v7/AudioControlSample
-AudioControlSample/x86/o-g/AudioControlSample
-AudioControlSample/x86/o/AudioControlSample
+*_g
+*.a
+*.so
+*.pinfo
+*.gcno
+*.bar
+.svn/
+.metadata/
+.settings/
+Device-Coverage/
+Device-Debug/
+Device-Profile/
+Device-Release/
+Simulator-Coverage/
+Simulator-Profile/
+Simulator/
+Accelerometer/arm/o.le-v7-g/Accelerometer
+Accelerometer/arm/o.le-v7/Accelerometer
+Accelerometer/x86/o-g/Accelerometer
+Accelerometer/x86/o/Accelerometer
+AudioControl/arm/o.le-v7-g/AudioControl
+AudioControl/arm/o.le-v7/AudioControl
+AudioControl/x86/o-g/AudioControl
+AudioControl/x86/o/AudioControl
CubeRotate/arm/o.le-v7-g/CubeRotate
CubeRotate/arm/o.le-v7/CubeRotate
CubeRotate/x86/o-g/CubeRotate
CubeRotate/x86/o/CubeRotate
-DialogSample/arm/o.le-v7-g/DialogSample
-DialogSample/arm/o.le-v7/DialogSample
-DialogSample/x86/o-g/DialogSample
-DialogSample/x86/o/DialogSample
+Dialog/arm/o.le-v7-g/Dialog
+Dialog/arm/o.le-v7/Dialog
+Dialog/x86/o-g/Dialog
+Dialog/x86/o/Dialog
FallingBlocks/arm/o.le-v7-g/FallingBlocks
FallingBlocks/arm/o.le-v7/FallingBlocks
FallingBlocks/x86/o-g/FallingBlocks
FallingBlocks/x86/o/FallingBlocks
-GeolocationSample/arm/o.le-v7-g/GeolocationSample
-GeolocationSample/arm/o.le-v7/GeolocationSample
-GeolocationSample/x86/o-g/GeolocationSample
-GeolocationSample/x86/o/GeolocationSample
-GestureSample/arm/o.le-v7-g/GestureSample
-GestureSample/arm/o.le-v7/GestureSample
-GestureSample/x86/o-g/GestureSample
-GestureSample/x86/o/GestureSample
+Geolocation/arm/o.le-v7-g/Geolocation
+Geolocation/arm/o.le-v7/Geolocation
+Geolocation/x86/o-g/Geolocation
+Geolocation/x86/o/Geolocation
+Gesture/arm/o.le-v7-g/Gesture
+Gesture/arm/o.le-v7/Gesture
+Gesture/x86/o-g/Gesture
+Gesture/x86/o/Gesture
GoodCitizen/arm/o.le-v7-g/GoodCitizen
GoodCitizen/arm/o.le-v7/GoodCitizen
GoodCitizen/x86/o-g/GoodCitizen
@@ -40,27 +57,30 @@ HelloWorldDisplay/arm/o.le-v7-g/HelloWorldDisplay
HelloWorldDisplay/arm/o.le-v7/HelloWorldDisplay
HelloWorldDisplay/x86/o-g/HelloWorldDisplay
HelloWorldDisplay/x86/o/HelloWorldDisplay
-HttpProxySample/arm/o.le-v7-g/HttpProxySample
-HttpProxySample/arm/o.le-v7/HttpProxySample
-HttpProxySample/x86/o-g/HttpProxySample
-HttpProxySample/x86/o/HttpProxySample
-KeyboardSample/arm/o.le-v7-g/KeyboardSample
-KeyboardSample/arm/o.le-v7/KeyboardSample
-KeyboardSample/x86/o-g/KeyboardSample
-KeyboardSample/x86/o/KeyboardSample
+HttpProxy/arm/o.le-v7-g/HttpProxy
+HttpProxy/arm/o.le-v7/HttpProxy
+HttpProxy/x86/o-g/HttpProxy
+HttpProxy/x86/o/HttpProxy
+Keyboard/arm/o.le-v7-g/Keyboard
+Keyboard/arm/o.le-v7/Keyboard
+Keyboard/x86/o-g/Keyboard
+Keyboard/x86/o/Keyboard
LocaleSample/arm/o.le-v7-g/LocaleSample
LocaleSample/arm/o.le-v7/LocaleSample
LocaleSample/x86/o-g/LocaleSample
LocaleSample/x86/o/LocaleSample
-LocaleSample/x86/o/Makefile
-NetworkStatusSample/arm/o.le-v7-g/NetworkStatusSample
-NetworkStatusSample/arm/o.le-v7/NetworkStatusSample
-NetworkStatusSample/x86/o-g/NetworkStatusSample
-NetworkStatusSample/x86/o/NetworkStatusSample
-PaymentServiceSample/arm/o.le-v7-g/PaymentServiceSample
-PaymentServiceSample/arm/o.le-v7/PaymentServiceSample
-PaymentServiceSample/x86/o-g/PaymentServiceSample
-PaymentServiceSample/x86/o/PaymentServiceSample
+NetworkStatus/arm/o.le-v7-g/NetworkStatus
+NetworkStatus/arm/o.le-v7/NetworkStatus
+NetworkStatus/x86/o-g/NetworkStatus
+NetworkStatus/x86/o/NetworkStatus
+OpenGLES11Template/arm/o.le-v7-g/OpenGLES11Template
+OpenGLES11Template/arm/o.le-v7/OpenGLES11Template
+OpenGLES11Template/x86/o-g/OpenGLES11Template
+OpenGLES11Template/x86/o/OpenGLES11Template
+PaymentService/arm/o.le-v7-g/PaymentService
+PaymentService/arm/o.le-v7/PaymentService
+PaymentService/x86/o-g/PaymentService
+PaymentService/x86/o/PaymentService
PlayAudio/arm/o.le-v7-g/PlayAudio
PlayAudio/arm/o.le-v7/PlayAudio
PlayAudio/x86/o-g/PlayAudio
@@ -73,11 +93,7 @@ ScreenTemplate/arm/o.le-v7-g/ScreenTemplate
ScreenTemplate/arm/o.le-v7/ScreenTemplate
ScreenTemplate/x86/o-g/ScreenTemplate
ScreenTemplate/x86/o/ScreenTemplate
-TemplateBps/arm/o.le-v7-g/TemplateBps
-TemplateBps/arm/o.le-v7/TemplateBps
-TemplateBps/x86/o-g/TemplateBps
-TemplateBps/x86/o/TemplateBps
-VideoPlaybackTutorial/arm/o.le-v7-g/VideoPlaybackTutorial
-VideoPlaybackTutorial/arm/o.le-v7/VideoPlaybackTutorial
-VideoPlaybackTutorial/x86/o-g/VideoPlaybackTutorial
-VideoPlaybackTutorial/x86/o/VideoPlaybackTutorial
+VideoPlayback/arm/o.le-v7-g/VideoPlayback
+VideoPlayback/arm/o.le-v7/VideoPlayback
+VideoPlayback/x86/o-g/VideoPlayback
+VideoPlayback/x86/o/VideoPlayback
View
178 Accelerometer/.cproject
@@ -0,0 +1,178 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<?fileVersion 4.0.0?>
+
+<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
+ <storageModule moduleId="org.eclipse.cdt.core.settings">
+ <cconfiguration id="com.qnx.qcc.toolChain.1459378934">
+ <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.qnx.qcc.toolChain.1459378934" moduleId="org.eclipse.cdt.core.settings" name="Default">
+ <externalSettings/>
+ <extensions>
+ <extension id="com.qnx.tools.ide.qde.core.QDEBynaryParser" point="org.eclipse.cdt.core.BinaryParser"/>
+ <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ </extensions>
+ </storageModule>
+ <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+ <configuration artifactName="${ProjName}" buildProperties="" id="com.qnx.qcc.toolChain.1459378934" name="Default" parent="org.eclipse.cdt.build.core.emptycfg">
+ <folderInfo id="com.qnx.qcc.toolChain.1459378934.949768643" name="/" resourcePath="">
+ <toolChain id="com.qnx.qcc.toolChain.1449439399" name="com.qnx.qcc.toolChain" superClass="com.qnx.qcc.toolChain">
+ <option id="com.qnx.qcc.option.os.851425095" name="Target OS:" superClass="com.qnx.qcc.option.os"/>
+ <option id="com.qnx.qcc.option.cpu.1298477456" name="Target CPU:" superClass="com.qnx.qcc.option.cpu" value="com.qnx.qcc.option.gen.cpu.armle-v7" valueType="enumerated"/>
+ <option id="com.qnx.qcc.option.compiler.279799576" name="Compiler:" superClass="com.qnx.qcc.option.compiler"/>
+ <option id="com.qnx.qcc.option.runtime.947884273" name="Runtime:" superClass="com.qnx.qcc.option.runtime"/>
+ <targetPlatform archList="all" binaryParser="com.qnx.tools.ide.qde.core.QDEBynaryParser" id="com.qnx.qcc.targetPlatform.2110760717" osList="all" superClass="com.qnx.qcc.targetPlatform"/>
+ <builder id="com.qnx.qcc.toolChain.1459378934.751178791" managedBuildOn="false" name="Gnu Make Builder" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
+ <tool id="com.qnx.qcc.tool.compiler.1283562828" name="QCC Compiler" superClass="com.qnx.qcc.tool.compiler">
+ <option id="com.qnx.qcc.option.compiler.includePath.56755301" superClass="com.qnx.qcc.option.compiler.includePath" valueType="includePath">
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/freetype2"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/../target-override/usr/include"/>
+ </option>
+ <inputType id="com.qnx.qcc.inputType.compiler.1637523681" superClass="com.qnx.qcc.inputType.compiler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.assembler.307499912" name="QCC Assembler" superClass="com.qnx.qcc.tool.assembler">
+ <inputType id="com.qnx.qcc.inputType.assembler.733009849" superClass="com.qnx.qcc.inputType.assembler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.linker.635684715" name="QCC Linker" superClass="com.qnx.qcc.tool.linker"/>
+ <tool id="com.qnx.qcc.tool.archiver.233945333" name="QCC Archiver" superClass="com.qnx.qcc.tool.archiver"/>
+ </toolChain>
+ </folderInfo>
+ </configuration>
+ </storageModule>
+ <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+ </cconfiguration>
+ <cconfiguration id="com.qnx.qcc.toolChain.952011436">
+ <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.qnx.qcc.toolChain.952011436" moduleId="org.eclipse.cdt.core.settings" name="Device-Debug">
+ <externalSettings/>
+ <extensions>
+ <extension id="com.qnx.tools.ide.qde.core.QDEBynaryParser" point="org.eclipse.cdt.core.BinaryParser"/>
+ <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ </extensions>
+ </storageModule>
+ <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+ <configuration artifactName="${ProjName}" buildProperties="" id="com.qnx.qcc.toolChain.952011436" name="Device-Debug" parent="org.eclipse.cdt.build.core.emptycfg">
+ <folderInfo id="com.qnx.qcc.toolChain.952011436.340765723" name="/" resourcePath="">
+ <toolChain id="com.qnx.qcc.toolChain.54001058" name="com.qnx.qcc.toolChain" superClass="com.qnx.qcc.toolChain">
+ <option id="com.qnx.qcc.option.os.1467215674" name="Target OS:" superClass="com.qnx.qcc.option.os"/>
+ <option id="com.qnx.qcc.option.cpu.299190080" name="Target CPU:" superClass="com.qnx.qcc.option.cpu" value="com.qnx.qcc.option.gen.cpu.armle-v7" valueType="enumerated"/>
+ <option id="com.qnx.qcc.option.compiler.1449516625" name="Compiler:" superClass="com.qnx.qcc.option.compiler"/>
+ <option id="com.qnx.qcc.option.runtime.1631679834" name="Runtime:" superClass="com.qnx.qcc.option.runtime"/>
+ <targetPlatform archList="all" binaryParser="com.qnx.tools.ide.qde.core.QDEBynaryParser" id="com.qnx.qcc.targetPlatform.16872570" osList="all" superClass="com.qnx.qcc.targetPlatform"/>
+ <builder id="com.qnx.qcc.toolChain.952011436.1675657593" managedBuildOn="false" name="Gnu Make Builder" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
+ <tool id="com.qnx.qcc.tool.compiler.25985624" name="QCC Compiler" superClass="com.qnx.qcc.tool.compiler">
+ <option id="com.qnx.qcc.option.compiler.includePath.256401687" superClass="com.qnx.qcc.option.compiler.includePath" valueType="includePath">
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/freetype2"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/../target-override/usr/include"/>
+ </option>
+ <inputType id="com.qnx.qcc.inputType.compiler.845668252" superClass="com.qnx.qcc.inputType.compiler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.assembler.975389996" name="QCC Assembler" superClass="com.qnx.qcc.tool.assembler">
+ <inputType id="com.qnx.qcc.inputType.assembler.1044071837" superClass="com.qnx.qcc.inputType.assembler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.linker.1552030153" name="QCC Linker" superClass="com.qnx.qcc.tool.linker"/>
+ <tool id="com.qnx.qcc.tool.archiver.2019262333" name="QCC Archiver" superClass="com.qnx.qcc.tool.archiver"/>
+ </toolChain>
+ </folderInfo>
+ </configuration>
+ </storageModule>
+ <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+ </cconfiguration>
+ <cconfiguration id="com.qnx.qcc.toolChain.1368321402">
+ <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.qnx.qcc.toolChain.1368321402" moduleId="org.eclipse.cdt.core.settings" name="Device-Release">
+ <externalSettings/>
+ <extensions>
+ <extension id="com.qnx.tools.ide.qde.core.QDEBynaryParser" point="org.eclipse.cdt.core.BinaryParser"/>
+ <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ </extensions>
+ </storageModule>
+ <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+ <configuration artifactName="${ProjName}" buildProperties="" id="com.qnx.qcc.toolChain.1368321402" name="Device-Release" parent="org.eclipse.cdt.build.core.emptycfg">
+ <folderInfo id="com.qnx.qcc.toolChain.1368321402.380408718" name="/" resourcePath="">
+ <toolChain id="com.qnx.qcc.toolChain.521629606" name="com.qnx.qcc.toolChain" superClass="com.qnx.qcc.toolChain">
+ <option id="com.qnx.qcc.option.os.200945962" name="Target OS:" superClass="com.qnx.qcc.option.os"/>
+ <option id="com.qnx.qcc.option.cpu.1488620061" name="Target CPU:" superClass="com.qnx.qcc.option.cpu" value="com.qnx.qcc.option.gen.cpu.armle-v7" valueType="enumerated"/>
+ <option id="com.qnx.qcc.option.compiler.1515279027" name="Compiler:" superClass="com.qnx.qcc.option.compiler"/>
+ <option id="com.qnx.qcc.option.runtime.412076826" name="Runtime:" superClass="com.qnx.qcc.option.runtime"/>
+ <targetPlatform archList="all" binaryParser="com.qnx.tools.ide.qde.core.QDEBynaryParser" id="com.qnx.qcc.targetPlatform.2136593002" osList="all" superClass="com.qnx.qcc.targetPlatform"/>
+ <builder id="com.qnx.qcc.toolChain.1368321402.2038828523" managedBuildOn="false" name="Gnu Make Builder" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
+ <tool id="com.qnx.qcc.tool.compiler.1466290635" name="QCC Compiler" superClass="com.qnx.qcc.tool.compiler">
+ <option id="com.qnx.qcc.option.compiler.includePath.1295655208" superClass="com.qnx.qcc.option.compiler.includePath" valueType="includePath">
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/freetype2"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/../target-override/usr/include"/>
+ </option>
+ <inputType id="com.qnx.qcc.inputType.compiler.136204358" superClass="com.qnx.qcc.inputType.compiler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.assembler.200250020" name="QCC Assembler" superClass="com.qnx.qcc.tool.assembler">
+ <inputType id="com.qnx.qcc.inputType.assembler.174098071" superClass="com.qnx.qcc.inputType.assembler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.linker.33052407" name="QCC Linker" superClass="com.qnx.qcc.tool.linker"/>
+ <tool id="com.qnx.qcc.tool.archiver.911619875" name="QCC Archiver" superClass="com.qnx.qcc.tool.archiver"/>
+ </toolChain>
+ </folderInfo>
+ </configuration>
+ </storageModule>
+ <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+ </cconfiguration>
+ <cconfiguration id="com.qnx.qcc.toolChain.1246487324">
+ <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.qnx.qcc.toolChain.1246487324" moduleId="org.eclipse.cdt.core.settings" name="Simulator-Debug">
+ <externalSettings/>
+ <extensions>
+ <extension id="com.qnx.tools.ide.qde.core.QDEBynaryParser" point="org.eclipse.cdt.core.BinaryParser"/>
+ <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ </extensions>
+ </storageModule>
+ <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+ <configuration artifactName="${ProjName}" buildProperties="" id="com.qnx.qcc.toolChain.1246487324" name="Simulator-Debug" parent="org.eclipse.cdt.build.core.emptycfg">
+ <folderInfo id="com.qnx.qcc.toolChain.1246487324.1251494634" name="/" resourcePath="">
+ <toolChain id="com.qnx.qcc.toolChain.711953125" name="com.qnx.qcc.toolChain" superClass="com.qnx.qcc.toolChain">
+ <option id="com.qnx.qcc.option.os.1781946452" name="Target OS:" superClass="com.qnx.qcc.option.os"/>
+ <option id="com.qnx.qcc.option.cpu.1258351871" name="Target CPU:" superClass="com.qnx.qcc.option.cpu"/>
+ <option id="com.qnx.qcc.option.compiler.375915731" name="Compiler:" superClass="com.qnx.qcc.option.compiler"/>
+ <option id="com.qnx.qcc.option.runtime.1257663435" name="Runtime:" superClass="com.qnx.qcc.option.runtime"/>
+ <targetPlatform archList="all" binaryParser="com.qnx.tools.ide.qde.core.QDEBynaryParser" id="com.qnx.qcc.targetPlatform.1886226282" osList="all" superClass="com.qnx.qcc.targetPlatform"/>
+ <builder id="com.qnx.qcc.toolChain.1246487324.1627920546" managedBuildOn="false" name="Gnu Make Builder" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
+ <tool id="com.qnx.qcc.tool.compiler.1982919211" name="QCC Compiler" superClass="com.qnx.qcc.tool.compiler">
+ <option id="com.qnx.qcc.option.compiler.includePath.789722062" superClass="com.qnx.qcc.option.compiler.includePath" valueType="includePath">
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/freetype2"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/../target-override/usr/include"/>
+ </option>
+ <inputType id="com.qnx.qcc.inputType.compiler.2009708088" superClass="com.qnx.qcc.inputType.compiler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.assembler.478529688" name="QCC Assembler" superClass="com.qnx.qcc.tool.assembler">
+ <inputType id="com.qnx.qcc.inputType.assembler.320005189" superClass="com.qnx.qcc.inputType.assembler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.linker.538695099" name="QCC Linker" superClass="com.qnx.qcc.tool.linker"/>
+ <tool id="com.qnx.qcc.tool.archiver.943929034" name="QCC Archiver" superClass="com.qnx.qcc.tool.archiver"/>
+ </toolChain>
+ </folderInfo>
+ </configuration>
+ </storageModule>
+ <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+ </cconfiguration>
+ </storageModule>
+ <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+ <project id="Accelerometer.null.1867633947" name="Accelerometer"/>
+ </storageModule>
+ <storageModule moduleId="scannerConfiguration">
+ <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="com.qnx.tools.ide.qde.managedbuilder.core.qccScannerInfo"/>
+ <scannerConfigBuildInfo instanceId="com.qnx.qcc.toolChain.952011436">
+ <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="com.qnx.tools.ide.qde.managedbuilder.core.qccScannerInfo"/>
+ </scannerConfigBuildInfo>
+ <scannerConfigBuildInfo instanceId="com.qnx.qcc.toolChain.1368321402">
+ <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="com.qnx.tools.ide.qde.managedbuilder.core.qccScannerInfo"/>
+ </scannerConfigBuildInfo>
+ <scannerConfigBuildInfo instanceId="com.qnx.qcc.toolChain.1246487324">
+ <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="com.qnx.tools.ide.qde.managedbuilder.core.qccScannerInfo"/>
+ </scannerConfigBuildInfo>
+ <scannerConfigBuildInfo instanceId="com.qnx.qcc.toolChain.1459378934">
+ <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="com.qnx.tools.ide.qde.managedbuilder.core.qccScannerInfo"/>
+ </scannerConfigBuildInfo>
+ </storageModule>
+ <storageModule moduleId="com.qnx.tools.ide.qde.core.QNXProjectProperties"/>
+</cproject>
View
2  GestureSample/.project → Accelerometer/.project
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
- <name>GestureSample</name>
+ <name>Accelerometer</name>
<comment></comment>
<projects>
</projects>
View
0  VideoPlaybackTutorial/LICENSE → Accelerometer/LICENSE
File renamed without changes
View
0  VideoPlaybackTutorial/Makefile → Accelerometer/Makefile
File renamed without changes
View
2  GestureSample/NOTICE → Accelerometer/NOTICE
@@ -1,4 +1,4 @@
-GestureSample
+Accelerometer
Copyright (c) 2011 Research In Motion Limited.
This product includes software developed at
View
0  VideoPlaybackTutorial/x86/Makefile → Accelerometer/arm/Makefile
File renamed without changes
View
0  VideoPlaybackTutorial/x86/o/Makefile → Accelerometer/arm/o.le-v7-g/Makefile
File renamed without changes
View
0  VideoPlaybackTutorial/x86/o-g/Makefile → Accelerometer/arm/o.le-v7/Makefile
File renamed without changes
View
25 NetworkStatusSample/bar-descriptor.xml → Accelerometer/bar-descriptor.xml
@@ -9,11 +9,11 @@
<!-- A universally unique application identifier. Must be unique across all BlackBerry Tablet OS applications.
Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->
- <id>com.example.NetworkStatusSample</id>
+ <id>com.example.Accelerometer</id>
<!-- The name that is displayed in the BlackBerry Tablet OS application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
- <name>NetworkStatusSample</name>
+ <name>Accelerometer</name>
<!-- A string value of the format <0-999>.<0-999>.<0-999> that represents application version which can be used to check for application upgrade.
Values can also be 1-part or 2-part. It is not necessary to have a 3-part value.
@@ -29,7 +29,7 @@
<!-- Description, displayed in the BlackBerry Tablet OS application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
- <description>The NetworkStatusSample application</description>
+ <description>The Accelerometer application</description>
<!-- Copyright information. Optional. -->
<!-- <copyright></copyright> -->
@@ -42,6 +42,8 @@
<!-- <authorId>ABC1234YjsnUk235h</authorId> -->
<initialWindow>
+ <aspectRatio>landscape</aspectRatio>
+ <autoOrients>false</autoOrients>
<systemChrome>none</systemChrome>
<transparent>false</transparent>
</initialWindow>
@@ -49,26 +51,25 @@
<!-- The category where the application appears. Either core.games or core.media. -->
<category>core.games</category>
<asset path="icon.png">icon.png</asset>
- <asset path="${QNX_TARGET}/../target-override/${CPUVARDIR}/usr/lib/libbps.so" type="Qnx/Elf">lib/libbps.so.1</asset>
<asset path="sample-splashscreen-landscape.png">sample-splashscreen-landscape.png</asset>
<asset path="sample-splashscreen-portrait.png">sample-splashscreen-portrait.png</asset>
<asset path="LICENSE">LICENSE</asset>
<asset path="NOTICE">NOTICE</asset>
- <configuration id="com.qnx.qcc.toolChain.1390918766" name="Default">
+ <configuration id="com.qnx.qcc.toolChain.1459378934" name="Default">
<platformArchitecture>armle-v7</platformArchitecture>
- <asset path="arm/o.le-v7-g/NetworkStatusSample" entry="true" type="Qnx/Elf">NetworkStatusSample</asset>
+ <asset path="arm/o.le-v7-g/Accelerometer" entry="true" type="Qnx/Elf">Accelerometer</asset>
</configuration>
- <configuration id="com.qnx.qcc.toolChain.541052485" name="Device-Debug">
+ <configuration id="com.qnx.qcc.toolChain.952011436" name="Device-Debug">
<platformArchitecture>armle-v7</platformArchitecture>
- <asset path="arm/o.le-v7-g/NetworkStatusSample" entry="true" type="Qnx/Elf">NetworkStatusSample</asset>
+ <asset path="arm/o.le-v7-g/Accelerometer" entry="true" type="Qnx/Elf">Accelerometer</asset>
</configuration>
- <configuration id="com.qnx.qcc.toolChain.1644402644" name="Device-Release">
+ <configuration id="com.qnx.qcc.toolChain.1368321402" name="Device-Release">
<platformArchitecture>armle-v7</platformArchitecture>
- <asset path="arm/o.le-v7/NetworkStatusSample" entry="true" type="Qnx/Elf">NetworkStatusSample</asset>
+ <asset path="arm/o.le-v7/Accelerometer" entry="true" type="Qnx/Elf">Accelerometer</asset>
</configuration>
- <configuration id="com.qnx.qcc.toolChain.476145750" name="Simulator">
+ <configuration id="com.qnx.qcc.toolChain.1246487324" name="Simulator-Debug">
<platformArchitecture>x86</platformArchitecture>
- <asset path="x86/o-g/NetworkStatusSample" entry="true" type="Qnx/Elf">NetworkStatusSample</asset>
+ <asset path="x86/o-g/Accelerometer" entry="true" type="Qnx/Elf">Accelerometer</asset>
</configuration>
<!-- The icon for the application, which should be 86x86. -->
View
2  AccelerometerSample/common.mk → Accelerometer/common.mk
@@ -32,3 +32,5 @@ include $(MKFILES_ROOT)/qtargets.mk
OPTIMIZE_TYPE_g=none
OPTIMIZE_TYPE=$(OPTIMIZE_TYPE_$(filter g, $(VARIANTS)))
+
+-include $(PROJECT_ROOT)/../samples.mk
View
157 Accelerometer/dialogutil.c
@@ -0,0 +1,157 @@
+/*
+ * Copyright (c) 2011 Research In Motion Limited.
+ *
+ * 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.
+ */
+
+#include <stdio.h>
+#include <stdlib.h>
+
+#include <screen/screen.h>
+#include <bps/bps.h>
+#include <bps/dialog.h>
+#include <bps/navigator.h>
+#include "dialogutil.h"
+
+static screen_context_t screen_ctx = 0;
+static screen_window_t screen_win = 0;
+static dialog_instance_t main_dialog = 0;
+
+/**
+ * Use the PID to set the window group id.
+ */
+static char *
+get_window_group_id()
+{
+ static char s_window_group_id[16] = "";
+
+ if (s_window_group_id[0] == '\0') {
+ snprintf(s_window_group_id, sizeof(s_window_group_id), "%d", getpid());
+ }
+
+ return s_window_group_id;
+}
+
+int
+setup_screen()
+{
+ if (screen_create_context(&screen_ctx, SCREEN_APPLICATION_CONTEXT) != 0) {
+ return EXIT_FAILURE;
+ }
+
+ //Signal BPS library that navigator orientation is to be locked
+ if (BPS_SUCCESS != navigator_rotation_lock(true)) {
+ screen_destroy_context(screen_ctx);
+ return EXIT_FAILURE;
+ }
+
+ if (screen_create_window(&screen_win, screen_ctx) != 0) {
+ screen_destroy_context(screen_ctx);
+ return EXIT_FAILURE;
+ }
+
+ int usage = SCREEN_USAGE_NATIVE;
+ if (screen_set_window_property_iv(screen_win, SCREEN_PROPERTY_USAGE, &usage) != 0) goto fail;
+
+ int size[2];
+ if (screen_get_window_property_iv(screen_win, SCREEN_PROPERTY_BUFFER_SIZE, size) != 0) goto fail;
+
+ screen_display_t screen_disp;
+ screen_get_window_property_pv(screen_win, SCREEN_PROPERTY_DISPLAY, (void **)&screen_disp);
+
+ screen_display_mode_t screen_mode;
+ if (screen_get_display_property_pv(screen_disp, SCREEN_PROPERTY_MODE, (void**)&screen_mode) != 0) goto fail;
+
+ int buffer_size[2] = {size[0], size[1]};
+
+ int angle = atoi(getenv("ORIENTATION"));
+ if ((angle == 0) || (angle == 180)) {
+ if (((screen_mode.width > screen_mode.height) && (size[0] < size[1])) ||
+ ((screen_mode.width < screen_mode.height) && (size[0] > size[1]))) {
+ buffer_size[1] = size[0];
+ buffer_size[0] = size[1];
+ }
+ } else if ((angle == 90) || (angle == 270)){
+ if (((screen_mode.width > screen_mode.height) && (size[0] > size[1])) ||
+ ((screen_mode.width < screen_mode.height && size[0] < size[1]))) {
+ buffer_size[1] = size[0];
+ buffer_size[0] = size[1];
+ }
+ } else {
+ goto fail;
+ }
+
+ if (screen_set_window_property_iv(screen_win, SCREEN_PROPERTY_BUFFER_SIZE, buffer_size) != 0) goto fail;
+
+ if (screen_set_window_property_iv(screen_win, SCREEN_PROPERTY_ROTATION, &angle) != 0) goto fail;
+
+ if (screen_create_window_buffers(screen_win, 1) != 0) goto fail;
+
+ if (screen_create_window_group(screen_win, get_window_group_id()) != 0) goto fail;
+
+ screen_buffer_t buff;
+ if (screen_get_window_property_pv(screen_win, SCREEN_PROPERTY_RENDER_BUFFERS, (void*)&buff) != 0) goto fail;
+
+ int attribs[1] = {SCREEN_BLIT_END};
+ if (screen_fill(screen_ctx, buff, attribs) != 0) goto fail;
+
+ int dirty_rects[4] = {0, 0, buffer_size[0], buffer_size[1]};
+ if (screen_post_window(screen_win, buff, 1, (const int*)dirty_rects, 0) != 0) goto fail;
+
+ return EXIT_SUCCESS;
+
+fail:
+ perror(NULL);
+ cleanup_screen();
+ return EXIT_FAILURE;
+}
+
+
+void cleanup_screen() {
+ screen_destroy_window(screen_win);
+ screen_destroy_context(screen_ctx);
+ screen_win = 0;
+ screen_ctx = 0;
+}
+
+
+
+void
+create_dialog()
+{
+ if (main_dialog) {
+ return;
+ }
+
+ dialog_create_alert(&main_dialog);
+ dialog_set_alert_message_text(main_dialog, "\n");
+ dialog_set_size(main_dialog, DIALOG_SIZE_FULL);
+ dialog_set_group_id(main_dialog, get_window_group_id());
+ dialog_set_cancel_required(main_dialog, true);
+ dialog_show(main_dialog);
+}
+
+void
+destroy_dialog() {
+ if (main_dialog) {
+ dialog_destroy(main_dialog);
+ }
+ main_dialog = 0;
+}
+
+void
+show_dialog_message(const char * msg) {
+ dialog_set_alert_message_text(main_dialog, msg);
+ dialog_update(main_dialog);
+ fprintf(stderr, "%s\n", msg);
+}
View
53 Accelerometer/dialogutil.h
@@ -0,0 +1,53 @@
+/*
+ * Copyright (c) 2011 Research In Motion Limited.
+ *
+ * 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.
+ */
+
+
+#ifndef DIALOGUTIL_H_
+#define DIALOGUTIL_H_
+
+/**
+ * Set up a basic screen, so that the navigator will send window state events
+ * when the window state changes.
+ *
+ * @return @c EXIT_SUCCESS or @c EXIT_FAILURE
+ */
+int setup_screen();
+
+/**
+ * Clean up all the resources that were allocated by setup_screen().
+ */
+void cleanup_screen();
+
+/**
+ * Show an alert dialog that will output general data.
+ */
+void create_dialog();
+
+/**
+ * Destroy dialog that was created by create_dialog.
+ */
+void destroy_dialog();
+
+/**
+ * Displays a message to the dialog created by create_dialog() and
+ * outputs that message to stderr. This means it will get added
+ * to the log file in the sandbox and output to the console.
+ *
+ * @param msg the message to be displayed.
+ */
+void show_dialog_message(const char *msg);
+
+#endif /* DIALOGUTIL_H_ */
View
0  VideoPlaybackTutorial/icon.png → Accelerometer/icon.png
File renamed without changes
View
175 AccelerometerSample/main.c → Accelerometer/main.c
@@ -14,102 +14,59 @@
* limitations under the License.
*/
-#include <bps/accelerometer.h>
+#include <bps/sensor.h>
#include <bps/bps.h>
+#include <bps/dialog.h>
#include <bps/navigator.h>
#include <screen/screen.h>
#include <stdio.h>
#include <stdlib.h>
+#include "dialogutil.h"
+/*
+ * buffer to store messages that we will display in the dialog
+ */
+#define MSG_SIZE 1024
+static char msg[MSG_SIZE];
+
/**
- * Milliseconds between accelerometer reads. This is the same
- * rate at which the accelerometer data will be updated from
- * hardware. The hardware update rate is set below using
- * accelerometer_set_update_frequency(FREQ_40_HZ).
+ * Microseconds between accelerometer reads. This is the rate at which the
+ * accelerometer data will be updated from hardware. The hardware update rate
+ * is set below using sensor_set_rate.
*/
-static const int ACCELEROMETER_MAX_POLL_INTERVAL = 25;
+static const int ACCELEROMETER_RATE = 25000;
/**
* Print the Accelerometer reading.
*
- * @param pitch the pitch value in degrees.
- * @param roll the roll value in degrees.
+ * @param x The g-force along the x-axis.
+ * @param y The g-force along the y-axis.
+ * @param z The g-force along the z-axis.
*/
void
-display_accelerometer_reading(double pitch, double roll)
+display_accelerometer_reading(float x, float y, float z)
{
/*
* Display the accelerometer values
*/
- printf("Pitch: %f deg Roll: %f deg\n", pitch, roll);
-}
-
-static screen_context_t screen_ctx;
-static screen_window_t screen_win;
-
-/**
- * Set up a basic screen, so that the navigator will
- * send window state events when the window state changes.
- *
- * @return @c EXIT_SUCCESS or @c EXIT_FAILURE
- */
-int
-setup_screen()
-{
- if (screen_create_context(&screen_ctx, SCREEN_APPLICATION_CONTEXT) != 0) {
- return EXIT_FAILURE;
- }
-
- if (screen_create_window(&screen_win, screen_ctx) != 0) {
- screen_destroy_context(screen_ctx);
- return EXIT_FAILURE;
- }
-
- int usage = SCREEN_USAGE_NATIVE;
- if (screen_set_window_property_iv(screen_win, SCREEN_PROPERTY_USAGE, &usage) != 0) goto fail;
-
- if (screen_create_window_buffers(screen_win, 1) != 0) goto fail;
-
- screen_buffer_t buff;
- if (screen_get_window_property_pv(screen_win, SCREEN_PROPERTY_RENDER_BUFFERS, (void*)&buff) != 0) goto fail;
-
- int buffer_size[2];
- if (screen_get_buffer_property_iv(buff, SCREEN_PROPERTY_BUFFER_SIZE, buffer_size) != 0) goto fail;
-
- int attribs[1] = {SCREEN_BLIT_END};
- if (screen_fill(screen_ctx, buff, attribs) != 0) goto fail;
-
- int dirty_rects[4] = {0, 0, buffer_size[0], buffer_size[1]};
- if (screen_post_window(screen_win, buff, 1, (const int*)dirty_rects, 0) != 0) goto fail;
-
- return EXIT_SUCCESS;
-
-fail:
- screen_destroy_window(screen_win);
- screen_destroy_context(screen_ctx);
- return EXIT_FAILURE;
+ snprintf(msg, MSG_SIZE, "x: %f, y: %f, z: %f\n", x, y, z);
+ show_dialog_message(msg);
}
-
/**
- * A sample application demonstrates the BlackBerry Native APIs for accelerometer.
- * The sample initializes and reads the accelerometer periodically until a
- * NAVIGATOR_EXIT event is received.
- * The application also listens for window state changes from the navigator so that
- * it can stop reading the accelerometer when the application is no longer visible.
+ * A sample application demonstrates the BlackBerry Native APIs for
+ * accelerometer. The sample initializes and reads the accelerometer
+ * periodically until a NAVIGATOR_EXIT event is received. The application also
+ * listens for window state changes from the navigator so that it can stop
+ * reading the accelerometer when the application is no longer visible.
*/
int
main(int argc, char *argv[])
{
- if (setup_screen() != EXIT_SUCCESS) {
- printf("Unable to set up the screen. Exiting.");
- return 0;
- }
-
/*
* The accelerometer forces
*/
- double force_x, force_y, force_z;
+ float force_x, force_y, force_z;
/*
* Before we can listen for events from the BlackBerry Tablet OS platform
@@ -117,6 +74,11 @@ main(int argc, char *argv[])
*/
bps_initialize();
+ if (setup_screen() != EXIT_SUCCESS) {
+ printf("Unable to set up the screen. Exiting.");
+ return 0;
+ }
+
/*
* Once the BPS infrastructure has been initialized we can register for
* events from the various BlackBerry Tablet OS platform services. The
@@ -127,17 +89,30 @@ main(int argc, char *argv[])
* us to clean up application resources.
*/
navigator_request_events(0);
+ dialog_request_events(0);
+
+ /*
+ * Create and display the dialog.
+ */
+ create_dialog();
/*
* Before initializing the accelerometer service we must ensure the device
- * supports it
+ * supports it.
*/
- if (!accelerometer_is_supported()) {
- /*
+ if (!sensor_is_supported(SENSOR_TYPE_ACCELEROMETER)) {
+ /**
* If the device does not support accelerometer then notify the user,
* clean up and exit
*/
- printf("Accelerometer not supported by device!");
+ snprintf(msg, MSG_SIZE, "Accelerometer not supported by device!");
+ show_dialog_message(msg);
+
+ /*
+ * Destroy the dialog, if it exists and cleanup screen resources.
+ */
+ destroy_dialog();
+ cleanup_screen();
bps_shutdown();
return EXIT_FAILURE;
}
@@ -146,22 +121,19 @@ main(int argc, char *argv[])
* Initialize the accelerometer by setting the rates at which the
* accelerometer values will be updated from hardware
*/
- accelerometer_set_update_frequency(FREQ_40_HZ);
+ sensor_set_rate(SENSOR_TYPE_ACCELEROMETER, ACCELEROMETER_RATE);
+ sensor_set_skip_duplicates(SENSOR_TYPE_ACCELEROMETER, true);
/*
- * Process Navigator events and take accelerometer readings periodically
- * until we receive a NAVIGATOR_EXIT event.
+ * Process Navigator and accelerometer events until we receive a
+ * NAVIGATOR_EXIT event.
*/
int exit_application = 0;
int paused = 0;
while (!exit_application) {
- /*
- * By setting the bps_get_event timeout to ACCELEROMETER_MAX_POLL_INTERVAL,
- * we assign the maximum time (in millis) that we will wait before
- * unblocking so we can take an accelerometer reading.
- */
+
bps_event_t *event = NULL;
- bps_get_event(&event, ACCELEROMETER_MAX_POLL_INTERVAL);
+ bps_get_event(&event, -1);
if (event) {
if (bps_event_get_domain(event) == navigator_get_domain()) {
@@ -186,7 +158,9 @@ main(int argc, char *argv[])
* Resume reading the accelerometer.
*/
paused = 0;
- printf("Resuming accelerometer reads.\n");
+ sensor_request_events(SENSOR_TYPE_ACCELEROMETER);
+ snprintf(msg, MSG_SIZE, "Resuming accelerometer reads.\n");
+ show_dialog_message(msg);
} else if (!paused){
/*
* The application has become thumbnailed or invisible.
@@ -194,36 +168,29 @@ main(int argc, char *argv[])
* Otherwise, ignore the window state change.
*/
paused = 1;
- printf("Resuming accelerometer reads.\n");
+ sensor_stop_events(SENSOR_TYPE_ACCELEROMETER);
+ snprintf(msg, MSG_SIZE, "Pausing accelerometer reads.\n");
+ show_dialog_message(msg);
}
}
- }
- /*
- * Remember to destroy any delivered events as we need to trigger
- * the release of any event resources when we are done processing
- * it.
- */
- bps_event_destroy(event);
- } else {
- /*
- * We've woken up. See if we are in the paused state. If not,
- * take an accelerometer reading
- */
- if (!paused) {
- accelerometer_read_forces(&force_x, &force_y, &force_z);
- display_accelerometer_reading(
- ACCELEROMETER_CALCULATE_PITCH(force_x, force_y, force_z),
- ACCELEROMETER_CALCULATE_ROLL(force_x, force_y, force_z));
+ } else if (bps_event_get_domain(event) == sensor_get_domain()) {
+ if (SENSOR_ACCELEROMETER_READING == bps_event_get_code(event)) {
+ /*
+ * Extract the accelerometer data from the event and
+ * display it.
+ */
+ sensor_event_get_xyz(event, &force_x, &force_y, &force_z);
+ display_accelerometer_reading(force_x, force_y, force_z);
+ }
}
}
}
/*
- * Clean up screen resources
+ * Destroy the dialog, if it exists and cleanup screen resources.
*/
- screen_destroy_window(screen_win);
- screen_destroy_context(screen_ctx);
-
+ destroy_dialog();
+ cleanup_screen();
/*
* Clean up the BPS infrastructure and exit
*/
View
58 Accelerometer/manifest.properties
@@ -0,0 +1,58 @@
+#
+# Project template manifest file. This provides input to the New Project Wizard
+# to direct the creation of a project from a template.
+#
+# This file is a Java properties file. The properties supported are:
+#
+# template.name - [required] The succinct name of the project template shown in the wizard
+# template.description - [required] A brief description of the project template
+# project.name - [required] The name of the example project that is created
+# icon - [optional] The icon file to generate and list in the bar-descriptor.xml.
+# Should be named "icon.png"
+# splashscreen.landscape - [optional] The landscape splashscreen image.
+# splashscreen.portrait - [optional] The portrait splashscreen image.
+# actions - [optional] Space-delimited list of the permissions required (actions performed)
+# by the application. The "run_native" action is implicit.
+# open.file - [Optional] The file to open in an editor when the project creation
+# is finished. Usually the bar-descriptor.xml (which is not in the
+# example storage folder!)
+# libs - [required] The libraries to which to link the project binary. Space-separated list.
+# sources - [required] The source files to add to the project. Space-separated list.
+# resources - [optional] Other non-source files to add to the project. Space-separated list.
+# readmes - [optional] Read-me files to add to the project but not packaged in the BAR.
+# Space-separated list.
+#
+# For the 'sources' and 'resources' lists, additional properties may optionally be defined
+# that map the files to destination paths in the project. Depending on the kind of project
+# that is created, these may be relative to some directory or other within the project (e.g.,
+# a 'src/' directory.
+#
+# These properties consist of 'path.' appended by the source file name. For example:
+#
+# resources: some-file.xml other-file.xml
+# path.some-file.xml: resources/config/main.xml
+# path.other-file.xml: resources/misc/stuff.xml
+#
+
+template.name: BlackBerry Tablet OS Example Accelerometer Project
+template.description: Create a new BlackBerry Tablet OS Example project to work with the accelerometer.
+
+project.name: Accelerometer
+
+icon: icon.png
+splashscreen.landscape: sample-splashscreen-landscape.png
+splashscreen.portrait: sample-splashscreen-portrait.png
+
+open.file: bar-descriptor.xml
+
+libs: bps pps screen m
+
+sources: main.c dialogutil.c dialogutil.h
+
+resources: LICENSE NOTICE
+
+readmes: readme.txt
+
+orientation: landscape
+
+#actions:
View
2  AccelerometerSample/readme.txt → Accelerometer/readme.txt
@@ -1,4 +1,4 @@
-AccelerometerSample
+Accelerometer
========================================================================
Sample Description:
View
0  ...utorial/sample-splashscreen-landscape.png → ...rometer/sample-splashscreen-landscape.png
File renamed without changes
View
0  ...Tutorial/sample-splashscreen-portrait.png → ...erometer/sample-splashscreen-portrait.png
File renamed without changes
View
0  VideoPlaybackTutorial/arm/Makefile → Accelerometer/x86/Makefile
File renamed without changes
View
0  VideoPlaybackTutorial/arm/o.le-v7/Makefile → Accelerometer/x86/o-g/Makefile
File renamed without changes
View
84 AccelerometerSample/.project
@@ -1,84 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>AccelerometerSample</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
- <triggers>clean,full,incremental,</triggers>
- <arguments>
- <dictionary>
- <key>?name?</key>
- <value></value>
- </dictionary>
- <dictionary>
- <key>org.eclipse.cdt.make.core.append_environment</key>
- <value>true</value>
- </dictionary>
- <dictionary>
- <key>org.eclipse.cdt.make.core.autoBuildTarget</key>
- <value>all</value>
- </dictionary>
- <dictionary>
- <key>org.eclipse.cdt.make.core.buildArguments</key>
- <value></value>
- </dictionary>
- <dictionary>
- <key>org.eclipse.cdt.make.core.buildCommand</key>
- <value>make</value>
- </dictionary>
- <dictionary>
- <key>org.eclipse.cdt.make.core.cleanBuildTarget</key>
- <value>clean</value>
- </dictionary>
- <dictionary>
- <key>org.eclipse.cdt.make.core.contents</key>
- <value>org.eclipse.cdt.make.core.activeConfigSettings</value>
- </dictionary>
- <dictionary>
- <key>org.eclipse.cdt.make.core.enableAutoBuild</key>
- <value>false</value>
- </dictionary>
- <dictionary>
- <key>org.eclipse.cdt.make.core.enableCleanBuild</key>
- <value>true</value>
- </dictionary>
- <dictionary>
- <key>org.eclipse.cdt.make.core.enableFullBuild</key>
- <value>true</value>
- </dictionary>
- <dictionary>
- <key>org.eclipse.cdt.make.core.fullBuildTarget</key>
- <value>all</value>
- </dictionary>
- <dictionary>
- <key>org.eclipse.cdt.make.core.stopOnError</key>
- <value>true</value>
- </dictionary>
- <dictionary>
- <key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
- <value>true</value>
- </dictionary>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
- <triggers>full,incremental,</triggers>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>com.qnx.tools.bbt.xml.core.bbtXMLValidationBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.cdt.core.cnature</nature>
- <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
- <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
- <nature>com.qnx.tools.ide.bbt.core.bbtnature</nature>
- </natures>
-</projectDescription>
View
26 AccelerometerSample/.settings/org.eclipse.cdt.core.prefs
@@ -1,26 +0,0 @@
-#Fri Oct 14 14:05:02 EDT 2011
-eclipse.preferences.version=1
-environment/project/com.qnx.qcc.toolChain.1231044190/CPULIST/delimiter=,
-environment/project/com.qnx.qcc.toolChain.1231044190/CPULIST/operation=append
-environment/project/com.qnx.qcc.toolChain.1231044190/CPULIST/value=arm
-environment/project/com.qnx.qcc.toolChain.1231044190/VARIANTLIST/delimiter=,
-environment/project/com.qnx.qcc.toolChain.1231044190/VARIANTLIST/operation=append
-environment/project/com.qnx.qcc.toolChain.1231044190/VARIANTLIST/value=g
-environment/project/com.qnx.qcc.toolChain.1231044190/append=true
-environment/project/com.qnx.qcc.toolChain.1231044190/appendContributed=true
-environment/project/com.qnx.qcc.toolChain.2004874297/CPULIST/delimiter=,
-environment/project/com.qnx.qcc.toolChain.2004874297/CPULIST/operation=append
-environment/project/com.qnx.qcc.toolChain.2004874297/CPULIST/value=x86
-environment/project/com.qnx.qcc.toolChain.2004874297/VARIANTLIST/delimiter=,
-environment/project/com.qnx.qcc.toolChain.2004874297/VARIANTLIST/operation=append
-environment/project/com.qnx.qcc.toolChain.2004874297/VARIANTLIST/value=g
-environment/project/com.qnx.qcc.toolChain.2004874297/append=true
-environment/project/com.qnx.qcc.toolChain.2004874297/appendContributed=true
-environment/project/com.qnx.qcc.toolChain.984880167/CPULIST/delimiter=,
-environment/project/com.qnx.qcc.toolChain.984880167/CPULIST/operation=append
-environment/project/com.qnx.qcc.toolChain.984880167/CPULIST/value=arm
-environment/project/com.qnx.qcc.toolChain.984880167/EXCLUDE_VARIANTLIST/delimiter=,
-environment/project/com.qnx.qcc.toolChain.984880167/EXCLUDE_VARIANTLIST/operation=append
-environment/project/com.qnx.qcc.toolChain.984880167/EXCLUDE_VARIANTLIST/value=r
-environment/project/com.qnx.qcc.toolChain.984880167/append=true
-environment/project/com.qnx.qcc.toolChain.984880167/appendContributed=true
View
5 AccelerometerSample/NOTICE
@@ -1,5 +0,0 @@
-AccelerometerSample
-Copyright (c) 2011 Research In Motion Limited.
-
-This product includes software developed at
-Research In Motion Limited (http://www.rim.com/).
View
1  AccelerometerSample/arm/o.le-v7-g/Makefile
@@ -1 +0,0 @@
-include ../../common.mk
View
1  AccelerometerSample/arm/o.le-v7/Makefile
@@ -1 +0,0 @@
-include ../../common.mk
View
99 AccelerometerSample/bar-descriptor.xml
@@ -1,99 +0,0 @@
-<?xml version="1.0" encoding="utf-8" standalone="no"?>
-<qnx xmlns="http://www.qnx.com/schemas/application/1.0">
-
-<!-- BlackBerry Tablet OS application descriptor file.
-
- Specifies parameters for identifying, installing, and launching native applications on BlackBerry Tablet OS.
-
--->
-
- <!-- A universally unique application identifier. Must be unique across all BlackBerry Tablet OS applications.
- Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->
- <id>com.example.AccelerometerSample</id>
-
- <!-- The name that is displayed in the BlackBerry Tablet OS application installer.
- May have multiple values for each language. See samples or xsd schema file. Optional. -->
- <name>AccelerometerSample</name>
-
- <!-- A string value of the format <0-999>.<0-999>.<0-999> that represents application version which can be used to check for application upgrade.
- Values can also be 1-part or 2-part. It is not necessary to have a 3-part value.
- An updated version of application must have a versionNumber value higher than the previous version. Required. -->
- <versionNumber>1.0.0</versionNumber>
-
- <!-- Fourth digit segment of the package version. First three segments are taken from the
- <versionNumber> element. Must be an integer from 0 to 2^16-1 -->
- <buildId>1</buildId>
-
- <!-- A string value (such as "v1", "2.5", or "Alpha 1") that represents the version of the application, as it should be shown to users. Optional. -->
- <!-- <versionLabel></versionLabel> -->
-
- <!-- Description, displayed in the BlackBerry Tablet OS application installer.
- May have multiple values for each language. See samples or xsd schema file. Optional. -->
- <description>The AccelerometerSample application</description>
-
- <!-- Copyright information. Optional. -->
- <!-- <copyright></copyright> -->
-
- <!-- Name of author which is used for signing. Must match the developer name of your development certificate. -->
- <author>Example Inc.</author>
- <splashscreen>sample-splashscreen-landscape.png:sample-splashscreen-portrait.png</splashscreen>
-
- <!-- Unique author ID assigned by signing authority. Required if using debug tokens. -->
- <!-- <authorId>ABC1234YjsnUk235h</authorId> -->
-
- <initialWindow>
- <systemChrome>none</systemChrome>
- <transparent>false</transparent>
- </initialWindow>
-
- <!-- The category where the application appears. Either core.games or core.media. -->
- <category>core.games</category>
- <asset path="icon.png">icon.png</asset>
- <asset path="${QNX_TARGET}/../target-override/${CPUVARDIR}/usr/lib/libbps.so" type="Qnx/Elf">lib/libbps.so.1</asset>
- <asset path="sample-splashscreen-landscape.png">sample-splashscreen-landscape.png</asset>
- <asset path="sample-splashscreen-portrait.png">sample-splashscreen-portrait.png</asset>
- <asset path="LICENSE">LICENSE</asset>
- <asset path="NOTICE">NOTICE</asset>
- <configuration id="com.qnx.qcc.toolChain.443564715" name="Default">
- <platformArchitecture>armle-v7</platformArchitecture>
- <asset path="arm/o.le-v7-g/AccelerometerSample" entry="true" type="Qnx/Elf">AccelerometerSample</asset>
- </configuration>
- <configuration id="com.qnx.qcc.toolChain.1231044190" name="Device-Debug">
- <platformArchitecture>armle-v7</platformArchitecture>
- <asset path="arm/o.le-v7-g/AccelerometerSample" entry="true" type="Qnx/Elf">AccelerometerSample</asset>
- </configuration>
- <configuration id="com.qnx.qcc.toolChain.984880167" name="Device-Release">
- <platformArchitecture>armle-v7</platformArchitecture>
- <asset path="arm/o.le-v7/AccelerometerSample" entry="true" type="Qnx/Elf">AccelerometerSample</asset>
- </configuration>
- <configuration id="com.qnx.qcc.toolChain.2004874297" name="Simulator">
- <platformArchitecture>x86</platformArchitecture>
- <asset path="x86/o-g/AccelerometerSample" entry="true" type="Qnx/Elf">AccelerometerSample</asset>
- </configuration>
-
- <!-- The icon for the application, which should be 86x86. -->
- <icon>
- <image>icon.png</image>
- </icon>
-
- <!-- The splash screen that will appear when your application is launching. Should be 1024x600. -->
- <!-- <splashscreen></splashscreen> -->
-
- <!-- Request permission to execute native code. Required for native applications. -->
- <action system="true">run_native</action>
-
- <!-- The permissions requested by your application. -->
- <!-- <action>access_shared</action> -->
- <!-- <action>record_audio</action> -->
- <!-- <action>read_geolocation</action> -->
- <!-- <action>use_camera</action> -->
- <!-- <action>access_internet</action> -->
- <!-- <action>play_audio</action> -->
- <!-- <action>post_notification</action> -->
- <!-- <action>set_audio_volume</action> -->
- <!-- <action>read_device_identifying_information</action> -->
-
- <!-- Ensure that shared libraries in the package are found at run-time. -->
- <env var="LD_LIBRARY_PATH" value="app/native/lib"/>
-
-</qnx>
View
BIN  AccelerometerSample/icon.png
Deleted file not rendered
View
1  AccelerometerSample/x86/o-g/Makefile
@@ -1 +0,0 @@
-include ../../common.mk
View
1  AccelerometerSample/x86/o/Makefile
@@ -1 +0,0 @@
-include ../../common.mk
View
178 AudioControl/.cproject
@@ -0,0 +1,178 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<?fileVersion 4.0.0?>
+
+<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
+ <storageModule moduleId="org.eclipse.cdt.core.settings">
+ <cconfiguration id="com.qnx.qcc.toolChain.1304972623">
+ <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.qnx.qcc.toolChain.1304972623" moduleId="org.eclipse.cdt.core.settings" name="Default">
+ <externalSettings/>
+ <extensions>
+ <extension id="com.qnx.tools.ide.qde.core.QDEBynaryParser" point="org.eclipse.cdt.core.BinaryParser"/>
+ <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ </extensions>
+ </storageModule>
+ <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+ <configuration artifactName="${ProjName}" buildProperties="" id="com.qnx.qcc.toolChain.1304972623" name="Default" parent="org.eclipse.cdt.build.core.emptycfg">
+ <folderInfo id="com.qnx.qcc.toolChain.1304972623.686095834" name="/" resourcePath="">
+ <toolChain id="com.qnx.qcc.toolChain.875397149" name="com.qnx.qcc.toolChain" superClass="com.qnx.qcc.toolChain">
+ <option id="com.qnx.qcc.option.os.2124337092" name="Target OS:" superClass="com.qnx.qcc.option.os"/>
+ <option id="com.qnx.qcc.option.cpu.1937192389" name="Target CPU:" superClass="com.qnx.qcc.option.cpu" value="com.qnx.qcc.option.gen.cpu.armle-v7" valueType="enumerated"/>
+ <option id="com.qnx.qcc.option.compiler.1402344501" name="Compiler:" superClass="com.qnx.qcc.option.compiler"/>
+ <option id="com.qnx.qcc.option.runtime.506855459" name="Runtime:" superClass="com.qnx.qcc.option.runtime"/>
+ <targetPlatform archList="all" binaryParser="com.qnx.tools.ide.qde.core.QDEBynaryParser" id="com.qnx.qcc.targetPlatform.1575289203" osList="all" superClass="com.qnx.qcc.targetPlatform"/>
+ <builder id="com.qnx.qcc.toolChain.1304972623.93526726" managedBuildOn="false" name="Gnu Make Builder" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
+ <tool id="com.qnx.qcc.tool.compiler.443338374" name="QCC Compiler" superClass="com.qnx.qcc.tool.compiler">
+ <option id="com.qnx.qcc.option.compiler.includePath.1948970261" superClass="com.qnx.qcc.option.compiler.includePath" valueType="includePath">
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/freetype2"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/../target-override/usr/include"/>
+ </option>
+ <inputType id="com.qnx.qcc.inputType.compiler.1244784413" superClass="com.qnx.qcc.inputType.compiler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.assembler.17109938" name="QCC Assembler" superClass="com.qnx.qcc.tool.assembler">
+ <inputType id="com.qnx.qcc.inputType.assembler.120646558" superClass="com.qnx.qcc.inputType.assembler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.linker.1381104652" name="QCC Linker" superClass="com.qnx.qcc.tool.linker"/>
+ <tool id="com.qnx.qcc.tool.archiver.818023261" name="QCC Archiver" superClass="com.qnx.qcc.tool.archiver"/>
+ </toolChain>
+ </folderInfo>
+ </configuration>
+ </storageModule>
+ <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+ </cconfiguration>
+ <cconfiguration id="com.qnx.qcc.toolChain.1788139658">
+ <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.qnx.qcc.toolChain.1788139658" moduleId="org.eclipse.cdt.core.settings" name="Device-Debug">
+ <externalSettings/>
+ <extensions>
+ <extension id="com.qnx.tools.ide.qde.core.QDEBynaryParser" point="org.eclipse.cdt.core.BinaryParser"/>
+ <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ </extensions>
+ </storageModule>
+ <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+ <configuration artifactName="${ProjName}" buildProperties="" id="com.qnx.qcc.toolChain.1788139658" name="Device-Debug" parent="org.eclipse.cdt.build.core.emptycfg">
+ <folderInfo id="com.qnx.qcc.toolChain.1788139658.1676022351" name="/" resourcePath="">
+ <toolChain id="com.qnx.qcc.toolChain.130251816" name="com.qnx.qcc.toolChain" superClass="com.qnx.qcc.toolChain">
+ <option id="com.qnx.qcc.option.os.1580629907" name="Target OS:" superClass="com.qnx.qcc.option.os"/>
+ <option id="com.qnx.qcc.option.cpu.1237188507" name="Target CPU:" superClass="com.qnx.qcc.option.cpu" value="com.qnx.qcc.option.gen.cpu.armle-v7" valueType="enumerated"/>
+ <option id="com.qnx.qcc.option.compiler.1525877406" name="Compiler:" superClass="com.qnx.qcc.option.compiler"/>
+ <option id="com.qnx.qcc.option.runtime.899458088" name="Runtime:" superClass="com.qnx.qcc.option.runtime"/>
+ <targetPlatform archList="all" binaryParser="com.qnx.tools.ide.qde.core.QDEBynaryParser" id="com.qnx.qcc.targetPlatform.405306206" osList="all" superClass="com.qnx.qcc.targetPlatform"/>
+ <builder id="com.qnx.qcc.toolChain.1788139658.2145460831" managedBuildOn="false" name="Gnu Make Builder" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
+ <tool id="com.qnx.qcc.tool.compiler.206220984" name="QCC Compiler" superClass="com.qnx.qcc.tool.compiler">
+ <option id="com.qnx.qcc.option.compiler.includePath.286714163" superClass="com.qnx.qcc.option.compiler.includePath" valueType="includePath">
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/freetype2"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/../target-override/usr/include"/>
+ </option>
+ <inputType id="com.qnx.qcc.inputType.compiler.416511630" superClass="com.qnx.qcc.inputType.compiler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.assembler.1981621066" name="QCC Assembler" superClass="com.qnx.qcc.tool.assembler">
+ <inputType id="com.qnx.qcc.inputType.assembler.1912478591" superClass="com.qnx.qcc.inputType.assembler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.linker.1883423477" name="QCC Linker" superClass="com.qnx.qcc.tool.linker"/>
+ <tool id="com.qnx.qcc.tool.archiver.858429235" name="QCC Archiver" superClass="com.qnx.qcc.tool.archiver"/>
+ </toolChain>
+ </folderInfo>
+ </configuration>
+ </storageModule>
+ <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+ </cconfiguration>
+ <cconfiguration id="com.qnx.qcc.toolChain.1553550188">
+ <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.qnx.qcc.toolChain.1553550188" moduleId="org.eclipse.cdt.core.settings" name="Device-Release">
+ <externalSettings/>
+ <extensions>
+ <extension id="com.qnx.tools.ide.qde.core.QDEBynaryParser" point="org.eclipse.cdt.core.BinaryParser"/>
+ <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ </extensions>
+ </storageModule>
+ <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+ <configuration artifactName="${ProjName}" buildProperties="" id="com.qnx.qcc.toolChain.1553550188" name="Device-Release" parent="org.eclipse.cdt.build.core.emptycfg">
+ <folderInfo id="com.qnx.qcc.toolChain.1553550188.822731322" name="/" resourcePath="">
+ <toolChain id="com.qnx.qcc.toolChain.532168695" name="com.qnx.qcc.toolChain" superClass="com.qnx.qcc.toolChain">
+ <option id="com.qnx.qcc.option.os.1325104345" name="Target OS:" superClass="com.qnx.qcc.option.os"/>
+ <option id="com.qnx.qcc.option.cpu.2061552307" name="Target CPU:" superClass="com.qnx.qcc.option.cpu" value="com.qnx.qcc.option.gen.cpu.armle-v7" valueType="enumerated"/>
+ <option id="com.qnx.qcc.option.compiler.63688333" name="Compiler:" superClass="com.qnx.qcc.option.compiler"/>
+ <option id="com.qnx.qcc.option.runtime.412429283" name="Runtime:" superClass="com.qnx.qcc.option.runtime"/>
+ <targetPlatform archList="all" binaryParser="com.qnx.tools.ide.qde.core.QDEBynaryParser" id="com.qnx.qcc.targetPlatform.1126602483" osList="all" superClass="com.qnx.qcc.targetPlatform"/>
+ <builder id="com.qnx.qcc.toolChain.1553550188.1102823623" managedBuildOn="false" name="Gnu Make Builder" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
+ <tool id="com.qnx.qcc.tool.compiler.1872866194" name="QCC Compiler" superClass="com.qnx.qcc.tool.compiler">
+ <option id="com.qnx.qcc.option.compiler.includePath.337082999" superClass="com.qnx.qcc.option.compiler.includePath" valueType="includePath">
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/freetype2"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/../target-override/usr/include"/>
+ </option>
+ <inputType id="com.qnx.qcc.inputType.compiler.1141614242" superClass="com.qnx.qcc.inputType.compiler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.assembler.2027301790" name="QCC Assembler" superClass="com.qnx.qcc.tool.assembler">
+ <inputType id="com.qnx.qcc.inputType.assembler.242341091" superClass="com.qnx.qcc.inputType.assembler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.linker.1925981374" name="QCC Linker" superClass="com.qnx.qcc.tool.linker"/>
+ <tool id="com.qnx.qcc.tool.archiver.564341997" name="QCC Archiver" superClass="com.qnx.qcc.tool.archiver"/>
+ </toolChain>
+ </folderInfo>
+ </configuration>
+ </storageModule>
+ <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+ </cconfiguration>
+ <cconfiguration id="com.qnx.qcc.toolChain.1332002365">
+ <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.qnx.qcc.toolChain.1332002365" moduleId="org.eclipse.cdt.core.settings" name="Simulator-Debug">
+ <externalSettings/>
+ <extensions>
+ <extension id="com.qnx.tools.ide.qde.core.QDEBynaryParser" point="org.eclipse.cdt.core.BinaryParser"/>
+ <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ </extensions>
+ </storageModule>
+ <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+ <configuration artifactName="${ProjName}" buildProperties="" id="com.qnx.qcc.toolChain.1332002365" name="Simulator-Debug" parent="org.eclipse.cdt.build.core.emptycfg">
+ <folderInfo id="com.qnx.qcc.toolChain.1332002365.132747248" name="/" resourcePath="">
+ <toolChain id="com.qnx.qcc.toolChain.92501527" name="com.qnx.qcc.toolChain" superClass="com.qnx.qcc.toolChain">
+ <option id="com.qnx.qcc.option.os.179287289" name="Target OS:" superClass="com.qnx.qcc.option.os"/>
+ <option id="com.qnx.qcc.option.cpu.1986584957" name="Target CPU:" superClass="com.qnx.qcc.option.cpu"/>
+ <option id="com.qnx.qcc.option.compiler.1309527550" name="Compiler:" superClass="com.qnx.qcc.option.compiler"/>
+ <option id="com.qnx.qcc.option.runtime.1660120892" name="Runtime:" superClass="com.qnx.qcc.option.runtime"/>
+ <targetPlatform archList="all" binaryParser="com.qnx.tools.ide.qde.core.QDEBynaryParser" id="com.qnx.qcc.targetPlatform.1763718189" osList="all" superClass="com.qnx.qcc.targetPlatform"/>
+ <builder id="com.qnx.qcc.toolChain.1332002365.2010710823" managedBuildOn="false" name="Gnu Make Builder" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
+ <tool id="com.qnx.qcc.tool.compiler.673487000" name="QCC Compiler" superClass="com.qnx.qcc.tool.compiler">
+ <option id="com.qnx.qcc.option.compiler.includePath.202638381" superClass="com.qnx.qcc.option.compiler.includePath" valueType="includePath">
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/freetype2"/>
+ <listOptionValue builtIn="false" value="${QNX_TARGET}/../target-override/usr/include"/>
+ </option>
+ <inputType id="com.qnx.qcc.inputType.compiler.2043249442" superClass="com.qnx.qcc.inputType.compiler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.assembler.1517550450" name="QCC Assembler" superClass="com.qnx.qcc.tool.assembler">
+ <inputType id="com.qnx.qcc.inputType.assembler.1721526295" superClass="com.qnx.qcc.inputType.assembler"/>
+ </tool>
+ <tool id="com.qnx.qcc.tool.linker.468606748" name="QCC Linker" superClass="com.qnx.qcc.tool.linker"/>
+ <tool id="com.qnx.qcc.tool.archiver.1483961813" name="QCC Archiver" superClass="com.qnx.qcc.tool.archiver"/>
+ </toolChain>
+ </folderInfo>
+ </configuration>
+ </storageModule>
+ <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+ </cconfiguration>
+ </storageModule>
+ <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+ <project id="AudioControl.null.2042838220" name="AudioControl"/>
+ </storageModule>
+ <storageModule moduleId="scannerConfiguration">
+ <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="com.qnx.tools.ide.qde.managedbuilder.core.qccScannerInfo"/>
+ <scannerConfigBuildInfo instanceId="com.qnx.qcc.toolChain.1332002365">
+ <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="com.qnx.tools.ide.qde.managedbuilder.core.qccScannerInfo"/>
+ </scannerConfigBuildInfo>
+ <scannerConfigBuildInfo instanceId="com.qnx.qcc.toolChain.1553550188">
+ <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="com.qnx.tools.ide.qde.managedbuilder.core.qccScannerInfo"/>
+ </scannerConfigBuildInfo>
+ <scannerConfigBuildInfo instanceId="com.qnx.qcc.toolChain.1304972623">
+ <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="com.qnx.tools.ide.qde.managedbuilder.core.qccScannerInfo"/>
+ </scannerConfigBuildInfo>
+ <scannerConfigBuildInfo instanceId="com.qnx.qcc.toolChain.1788139658">
+ <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="com.qnx.tools.ide.qde.managedbuilder.core.qccScannerInfo"/>
+ </scannerConfigBuildInfo>
+ </storageModule>
+ <storageModule moduleId="com.qnx.tools.ide.qde.core.QNXProjectProperties"/>
+</cproject>
View
2  DialogSample/.project → AudioControl/.project
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
- <name>DialogSample</name>
+ <name>AudioControl</name>
<comment></comment>
<projects>
</projects>
View
0  PaymentServiceSample/LICENSE → AudioControl/LICENSE
File renamed without changes
View
0  TemplateBps/Makefile → AudioControl/Makefile
File renamed without changes
View
2  DialogSample/NOTICE → AudioControl/NOTICE
@@ -1,4 +1,4 @@
-DialogSample
+AudioControl
Copyright (c) 2011 Research In Motion Limited.
This product includes software developed at
View
0  TemplateBps/x86/Makefile → AudioControl/arm/Makefile
File renamed without changes
View
0  VideoPlaybackTutorial/arm/o.le-v7-g/Makefile → AudioControl/arm/o.le-v7-g/Makefile
File renamed without changes
View
0  TemplateBps/x86/o/Makefile → AudioControl/arm/o.le-v7/Makefile
File renamed without changes
View
25 DialogSample/bar-descriptor.xml → AudioControl/bar-descriptor.xml
@@ -9,11 +9,11 @@
<!-- A universally unique application identifier. Must be unique across all BlackBerry Tablet OS applications.
Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->
- <id>com.example.DialogSample</id>
+ <id>com.example.AudioControl</id>
<!-- The name that is displayed in the BlackBerry Tablet OS application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
- <name>DialogSample</name>
+ <name>AudioControl</name>
<!-- A string value of the format <0-999>.<0-999>.<0-999> that represents application version which can be used to check for application upgrade.
Values can also be 1-part or 2-part. It is not necessary to have a 3-part value.
@@ -29,7 +29,7 @@
<!-- Description, displayed in the BlackBerry Tablet OS application installer.
May have multiple values for each language. See samples or xsd schema file. Optional. -->
- <description>The DialogSample application</description>
+ <description>The AudioControl application</description>
<!-- Copyright information. Optional. -->
<!-- <copyright></copyright> -->
@@ -42,6 +42,8 @@
<!-- <authorId>ABC1234YjsnUk235h</authorId> -->
<initialWindow>
+ <aspectRatio>landscape</aspectRatio>
+ <autoOrients>false</autoOrients>
<systemChrome>none</systemChrome>
<transparent>false</transparent>
</initialWindow>
@@ -49,26 +51,25 @@
<!-- The category where the application appears. Either core.games or core.media. -->
<category>core.games</category>
<asset path="icon.png">icon.png</asset>
- <asset path="${QNX_TARGET}/../target-override/${CPUVARDIR}/usr/lib/libbps.so" type="Qnx/Elf">lib/libbps.so.1</asset>
<asset path="sample-splashscreen-landscape.png">sample-splashscreen-landscape.png</asset>
<asset path="sample-splashscreen-portrait.png">sample-splashscreen-portrait.png</asset>
<asset path="LICENSE">LICENSE</asset>
<asset path="NOTICE">NOTICE</asset>
- <configuration id="com.qnx.qcc.toolChain.1191899323" name="Default">
+ <configuration id="com.qnx.qcc.toolChain.1304972623" name="Default">
<platformArchitecture>armle-v7</platformArchitecture>
- <asset path="arm/o.le-v7-g/DialogSample" entry="true" type="Qnx/Elf">DialogSample</asset>
+ <asset path="arm/o.le-v7-g/AudioControl" entry="true" type="Qnx/Elf">AudioControl</asset>
</configuration>
- <configuration id="com.qnx.qcc.toolChain.1258111918" name="Device-Debug">
+ <configuration id="com.qnx.qcc.toolChain.1788139658" name="Device-Debug">
<platformArchitecture>armle-v7</platformArchitecture>
- <asset path="arm/o.le-v7-g/DialogSample" entry="true" type="Qnx/Elf">DialogSample</asset>
+ <asset path="arm/o.le-v7-g/AudioControl" entry="true" type="Qnx/Elf">AudioControl</asset>
</configuration>
- <configuration id="com.qnx.qcc.toolChain.1025932315" name="Device-Release">
+ <configuration id="com.qnx.qcc.toolChain.1553550188" name="Device-Release">
<platformArchitecture>armle-v7</platformArchitecture>
- <asset path="arm/o.le-v7/DialogSample" entry="true" type="Qnx/Elf">DialogSample</asset>
+ <asset path="arm/o.le-v7/AudioControl" entry="true" type="Qnx/Elf">AudioControl</asset>
</configuration>
- <configuration id="com.qnx.qcc.toolChain.247297793" name="Simulator">
+ <configuration id="com.qnx.qcc.toolChain.1332002365" name="Simulator-Debug">
<platformArchitecture>x86</platformArchitecture>
- <asset path="x86/o-g/DialogSample" entry="true" type="Qnx/Elf">DialogSample</asset>
+ <asset path="x86/o-g/AudioControl" entry="true" type="Qnx/Elf">AudioControl</asset>
</configuration>
<!-- The icon for the application, which should be 86x86. -->
View
2  NetworkStatusSample/common.mk → AudioControl/common.mk
@@ -32,3 +32,5 @@ include $(MKFILES_ROOT)/qtargets.mk
OPTIMIZE_TYPE_g=none
OPTIMIZE_TYPE=$(OPTIMIZE_TYPE_$(filter g, $(VARIANTS)))
+
+-include $(PROJECT_ROOT)/../samples.mk
View
157 AudioControl/dialogutil.c
@@ -0,0 +1,157 @@
+/*
+ * Copyright (c) 2011 Research In Motion Limited.
+ *
+ * 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.
+ */
+
+#include <stdio.h>
+#include <stdlib.h>
+
+#include <screen/screen.h>
+#include <bps/bps.h>
+#include <bps/dialog.h>
+#include <bps/navigator.h>
+#include "dialogutil.h"
+
+static screen_context_t screen_ctx = 0;
+static screen_window_t screen_win = 0;
+static dialog_instance_t main_dialog = 0;
+
+/**
+ * Use the PID to set the window group id.
+ */
+static char *
+get_window_group_id()
+{
+ static char s_window_group_id[16] = "";
+
+ if (s_window_group_id[0] == '\0') {
+ snprintf(s_window_group_id, sizeof(s_window_group_id), "%d", getpid());
+ }
+
+ return s_window_group_id;
+}
+
+int
+setup_screen()
+{
+ if (screen_create_context(&screen_ctx, SCREEN_APPLICATION_CONTEXT) != 0) {
+ return EXIT_FAILURE;
+ }
+
+ //Signal BPS library that navigator orientation is to be locked
+ if (BPS_SUCCESS != navigator_rotation_lock(true)) {
+ screen_destroy_context(screen_ctx);
+ return EXIT_FAILURE;
+ }
+
+ if (screen_create_window(&screen_win, screen_ctx) != 0) {
+ screen_destroy_context(screen_ctx);
+ return EXIT_FAILURE;
+ }
+
+ int usage = SCREEN_USAGE_NATIVE;
+ if (screen_set_window_property_iv(screen_win, SCREEN_PROPERTY_USAGE, &usage) != 0) goto fail;
+
+ int size[2];
+ if (screen_get_window_property_iv(screen_win, SCREEN_PROPERTY_BUFFER_SIZE, size) != 0) goto fail;
+
+ screen_display_t screen_disp;
+ screen_get_window_property_pv(screen_win, SCREEN_PROPERTY_DISPLAY, (void **)&screen_disp);
+
+ screen_display_mode_t screen_mode;
+ if (screen_get_display_property_pv(screen_disp, SCREEN_PROPERTY_MODE, (void**)&screen_mode) != 0) goto fail;
+
+ int buffer_size[2] = {size[0], size[1]};
+
+ int angle = atoi(getenv("ORIENTATION"));
+ if ((angle == 0) || (angle == 180)) {
+ if (((screen_mode.width > screen_mode.height) && (size[0] < size[1])) ||
+ ((screen_mode.width < screen_mode.height) && (size[0] > size[1]))) {
+ buffer_size[1] = size[0];
+ buffer_size[0] = size[1];
+ }
+ } else if ((angle == 90) || (angle == 270)){
+ if (((screen_mode.width > screen_mode.height) && (size[0] > size[1])) ||
+ ((screen_mode.width < screen_mode.height && size[0] < size[1]))) {
+ buffer_size[1] = size[0];
+ buffer_size[0] = size[1];
+ }
+ } else {
+ goto fail;
+ }
+
+ if (screen_set_window_property_iv(screen_win, SCREEN_PROPERTY_BUFFER_SIZE, buffer_size) != 0) goto fail;
+
+ if (screen_set_window_property_iv(screen_win, SCREEN_PROPERTY_ROTATION, &angle) != 0) goto fail;
+
+ if (screen_create_window_buffers(screen_win, 1) != 0) goto fail;
+
+ if (screen_create_window_group(screen_win, get_window_group_id()) != 0) goto fail;
+
+ screen_buffer_t buff;
+ if (screen_get_window_property_pv(screen_win, SCREEN_PROPERTY_RENDER_BUFFERS, (void*)&buf