cust_display.h 35 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007
  1. /*****************************************************************************
  2. * Copyright Statement:
  3. * --------------------
  4. * This software is protected by Copyright and the information contained
  5. * herein is confidential. The software may not be copied and the information
  6. * contained herein may not be used or disclosed except with the written
  7. * permission of MediaTek Inc. (C) 2008
  8. *
  9. * BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
  10. * THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
  11. * RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
  12. * AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
  13. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
  14. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
  15. * NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
  16. * SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
  17. * SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
  18. * THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
  19. * NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
  20. * SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
  21. *
  22. * BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
  23. * LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
  24. * AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
  25. * OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
  26. * MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
  27. *
  28. * THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
  29. * WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
  30. * LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
  31. * RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
  32. * THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
  33. *
  34. *****************************************************************************/
  35. /*
  36. // new animation parameters example:WVGA (480*800)
  37. // A , start point of first number rectangle
  38. // B , left_top point of battery_capacity fill_in rectangle
  39. // c , left_bottom point of battery_capacity fill_in rectangle
  40. // battery capacity rectangle
  41. #define CAPACITY_LEFT (172) // CAPACITY_LEFT = B.x = 172
  42. #define CAPACITY_TOP (330) // CAPACITY_TOP = B.y = 330
  43. #define CAPACITY_RIGHT (307) // CAPACITY_RIGHT = B.x + fill_line.w = 172 + 135
  44. #define CAPACITY_BOTTOM (546) // CAPACITY_BOTTOM = C.y = 546
  45. // first number rectangle
  46. #define NUMBER_LEFT (178) // NUMBER_LEFT = A.x
  47. #define NUMBER_TOP (190) // NUMBER_TOP = A.y
  48. #define NUMBER_RIGHT (216) // NUMBER_RIGHT = A.x + num.w = 178 + 38
  49. #define NUMBER_BOTTOM (244) // NUMBER_BOTTOM = A.y + num.h = 190 + 54
  50. // % rectangle
  51. #define PERCENT_LEFT (254) // PERCENT_LEFT = A.x + 2*num.w = 178 + 2*38
  52. #define PERCENT_TOP (190) // PERCENT_TOP = A.y
  53. #define PERCENT_RIGHT (302) // PERCENT_LEFT = A.x + 2*num.w +(%).w
  54. #define PERCENT_BOTTOM (244) // PERCENT_BOTTOM = A.y + (%).h = 190 + 54
  55. // top animation part
  56. #define TOP_ANIMATION_LEFT (172) // TOP_ANIMATION_LEFT = B.x
  57. #define TOP_ANIMATION_TOP (100) // 100
  58. #define TOP_ANIMATION_RIGHT (307) // TOP_ANIMATION_LEFT = B.x + fill_line.w = 172 + 135
  59. #define TOP_ANIMATION_BOTTOM (124) // TOP_ANIMATION_BOTTOM = TOP_ANIMATION_TOP + fill_line.h = 100 + 24
  60. */
  61. #ifndef __CUST_DISPLAY_H__
  62. #define __CUST_DISPLAY_H__
  63. // color
  64. #define BAR_OCCUPIED_COLOR (0x07E0) // Green
  65. #define BAR_EMPTY_COLOR (0xFFFF) // White
  66. #define BAR_BG_COLOR (0x0000) // Black
  67. // LOGO number
  68. #define ANIM_V0_LOGO_NUM 5 // version 0: show 4 recatangle growing animation without battery number
  69. #define ANIM_V1_LOGO_NUM 39 // version 1: show wave animation with battery number
  70. #define ANIM_V2_LOGO_NUM 68 // version 2: show wireless charging animation
  71. // Common LOGO index
  72. #define BOOT_LOGO_INDEX 0
  73. #define KERNEL_LOGO_INDEX 38
  74. #define ANIM_V0_BACKGROUND_INDEX 1
  75. #define ANIM_V1_BACKGROUND_INDEX 35
  76. #define LOW_BATTERY_INDEX 2
  77. #define LOW_BATTERY01_INDEX 39
  78. #define LOW_BATTERY02_INDEX 40
  79. #define LOW_BATTERY_REMIND_INDEX 41
  80. #define CHARGER_OV_INDEX 3
  81. #define FULL_BATTERY_INDEX 37
  82. // version 1: show wave animation with battery number
  83. // NUMBER LOGO INDEX
  84. #define NUMBER_PIC_START_0 4
  85. #define NUMBER_PIC_PERCENT 14
  86. // DYNAMIC ANIMATION LOGO INDEX
  87. #define BAT_ANIM_START_0 15
  88. // LOW BATTERY(0~10%) ANIMATION LOGO
  89. #define LOW_BAT_ANIM_START_0 25
  90. #define ANIM_LINE_INDEX 36
  91. // version 2: show wireless charging animation logo index
  92. #define V2_NUM_START_0_INDEX 42
  93. #define V2_NUM_PERCENT_INDEX 52
  94. #define V2_BAT_0_10_START_INDEX 53
  95. #define V2_BAT_10_40_START_INDEX 57
  96. #define V2_BAT_40_80_START_INDEX 61
  97. #define V2_BAT_80_100_START_NDEX 65
  98. #define V2_BAT_0_INDEX 69
  99. #define V2_BAT_100_INDEX 70
  100. #if defined(FHD) || defined(CU_FHD) || defined(CMCC_FHD) || defined(CT_FHD) || defined(CMCC_LTE_FHD)
  101. // fhd 1080*1920
  102. // battery capacity rectangle
  103. #define CAPACITY_LEFT (387) // battery capacity center
  104. #define CAPACITY_TOP (802)
  105. #define CAPACITY_RIGHT (691)
  106. #define CAPACITY_BOTTOM (1292)
  107. // first number rectangle
  108. #define NUMBER_LEFT (351+84) // number
  109. #define NUMBER_TOP (479)
  110. #define NUMBER_RIGHT (435+84)
  111. #define NUMBER_BOTTOM (600)
  112. // % rectangle
  113. #define PERCENT_LEFT (519+84) // percent number_left + 2*number_width
  114. #define PERCENT_TOP (479)
  115. #define PERCENT_RIGHT (627+84)
  116. #define PERCENT_BOTTOM (600)
  117. // top animation part
  118. #define TOP_ANIMATION_LEFT (387) // top animation
  119. #define TOP_ANIMATION_TOP (100)
  120. #define TOP_ANIMATION_RIGHT (691)
  121. #define TOP_ANIMATION_BOTTOM (152)
  122. // for old animation
  123. #define BAR_LEFT (470)
  124. #define BAR_TOP (356)
  125. #define BAR_RIGHT (610)
  126. #define BAR_BOTTOM (678)
  127. #elif defined(FHDPLUS)
  128. // fhd 1080*2160
  129. // battery capacity rectangle
  130. #define CAPACITY_LEFT (387) // battery capacity center
  131. #define CAPACITY_TOP (922)
  132. #define CAPACITY_RIGHT (691)
  133. #define CAPACITY_BOTTOM (1413)
  134. // first number rectangle
  135. #define NUMBER_LEFT (351+84) // number
  136. #define NUMBER_TOP (599)
  137. #define NUMBER_RIGHT (435+84)
  138. #define NUMBER_BOTTOM (720)
  139. // % rectangle
  140. #define PERCENT_LEFT (519+84) // percent number_left + 2*number_width
  141. #define PERCENT_TOP (599)
  142. #define PERCENT_RIGHT (627+84)
  143. #define PERCENT_BOTTOM (720)
  144. // top animation part
  145. #define TOP_ANIMATION_LEFT (387) // top animation
  146. #define TOP_ANIMATION_TOP (100)
  147. #define TOP_ANIMATION_RIGHT (691)
  148. #define TOP_ANIMATION_BOTTOM (152)
  149. // for old animation
  150. #define BAR_LEFT (470)
  151. #define BAR_TOP (356)
  152. #define BAR_RIGHT (610)
  153. #define BAR_BOTTOM (678)
  154. #elif defined(FHDPLUS2400)
  155. // fhd 1080*2520
  156. // battery capacity rectangle
  157. #define CAPACITY_LEFT (387) // battery capacity center
  158. #define CAPACITY_TOP (1042)
  159. #define CAPACITY_RIGHT (691)
  160. #define CAPACITY_BOTTOM (1533)
  161. // first number rectangle
  162. #define NUMBER_LEFT (370+45) // number
  163. #define NUMBER_TOP (729)
  164. #define NUMBER_RIGHT (415+45)
  165. #define NUMBER_BOTTOM (840)
  166. // % rectangle
  167. #define PERCENT_LEFT (370+90) // percent number_left + 2*number_width
  168. #define PERCENT_TOP (729)
  169. #define PERCENT_RIGHT (460+57)
  170. #define PERCENT_BOTTOM (840)
  171. // top animation part
  172. #define TOP_ANIMATION_LEFT (387) // top animation
  173. #define TOP_ANIMATION_TOP (100)
  174. #define TOP_ANIMATION_RIGHT (691)
  175. #define TOP_ANIMATION_BOTTOM (147)
  176. // for old animation
  177. #define BAR_LEFT (470)
  178. #define BAR_TOP (356)
  179. #define BAR_RIGHT (610)
  180. #define BAR_BOTTOM (678)
  181. #elif defined(FHDPLUS2520)
  182. // fhd 1080*2520
  183. // battery capacity rectangle
  184. #define CAPACITY_LEFT (387) // battery capacity center
  185. #define CAPACITY_TOP (1102)
  186. #define CAPACITY_RIGHT (691)
  187. #define CAPACITY_BOTTOM (1593)
  188. // first number rectangle
  189. #define NUMBER_LEFT (351+84) // number
  190. #define NUMBER_TOP (779)
  191. #define NUMBER_RIGHT (435+84)
  192. #define NUMBER_BOTTOM (900)
  193. // % rectangle
  194. #define PERCENT_LEFT (519+84) // percent number_left + 2*number_width
  195. #define PERCENT_TOP (779)
  196. #define PERCENT_RIGHT (627+84)
  197. #define PERCENT_BOTTOM (900)
  198. // top animation part
  199. #define TOP_ANIMATION_LEFT (387) // top animation
  200. #define TOP_ANIMATION_TOP (100)
  201. #define TOP_ANIMATION_RIGHT (691)
  202. #define TOP_ANIMATION_BOTTOM (152)
  203. // for old animation
  204. #define BAR_LEFT (470)
  205. #define BAR_TOP (356)
  206. #define BAR_RIGHT (610)
  207. #define BAR_BOTTOM (678)
  208. #elif defined(WQHD) || defined(CU_WQHD) || defined(CMCC_WQHD) || defined(CT_WQHD) || defined(CMCC_LTE_WQHD) || defined(CT_LTE_WQHD) || defined(CU_LTE_WQHD)
  209. // wqhd 1440*2560
  210. // battery capacity rectangle
  211. #define CAPACITY_LEFT (556) // battery capacity center
  212. #define CAPACITY_TOP (1112)
  213. #define CAPACITY_RIGHT (882)
  214. #define CAPACITY_BOTTOM (1630)
  215. // first number rectangle
  216. #define NUMBER_LEFT (570) // number
  217. #define NUMBER_TOP (770)
  218. #define NUMBER_RIGHT (660)
  219. #define NUMBER_BOTTOM (898)
  220. // % rectangle
  221. #define PERCENT_LEFT (750) // percent number_left + 2*number_width
  222. #define PERCENT_TOP (770)
  223. #define PERCENT_RIGHT (864)
  224. #define PERCENT_BOTTOM (898)
  225. // top animation part
  226. #define TOP_ANIMATION_LEFT (556) // top animation
  227. #define TOP_ANIMATION_TOP (100)
  228. #define TOP_ANIMATION_RIGHT (882)
  229. #define TOP_ANIMATION_BOTTOM (158)
  230. // for old animation
  231. #define BAR_LEFT (443)
  232. #define BAR_TOP (337)
  233. #define BAR_RIGHT (574)
  234. #define BAR_BOTTOM (641)
  235. #elif defined(HD720) || defined(CU_HD720) || defined(CMCC_HD720) || defined(CT_HD720) || defined(CMCC_LTE_HD720)
  236. // hd720 720*1280
  237. // battery capacity rectangle
  238. #define CAPACITY_LEFT (278) // battery capacity center
  239. #define CAPACITY_TOP (556)
  240. #define CAPACITY_RIGHT (441)
  241. #define CAPACITY_BOTTOM (817)
  242. // first number rectangle
  243. #define NUMBER_LEFT (290) // number
  244. #define NUMBER_TOP (386)
  245. #define NUMBER_RIGHT (335)
  246. #define NUMBER_BOTTOM (450)
  247. // % rectangle
  248. #define PERCENT_LEFT (380) // percent number_left + 2*number_width
  249. #define PERCENT_TOP (386)
  250. #define PERCENT_RIGHT (437)
  251. #define PERCENT_BOTTOM (450)
  252. // top animation part
  253. #define TOP_ANIMATION_LEFT (278) // top animation
  254. #define TOP_ANIMATION_TOP (100)
  255. #define TOP_ANIMATION_RIGHT (441)
  256. #define TOP_ANIMATION_BOTTOM (129)
  257. // for old animation
  258. #define BAR_LEFT (313)
  259. #define BAR_TOP (238)
  260. #define BAR_RIGHT (406)
  261. #define BAR_BOTTOM (453)
  262. #elif defined(HDPLUS)
  263. // hdplus 720*1440
  264. // battery capacity rectangle
  265. #define CAPACITY_LEFT (278) // battery capacity center
  266. #define CAPACITY_TOP (636)
  267. #define CAPACITY_RIGHT (441)
  268. #define CAPACITY_BOTTOM (898)
  269. // first number rectangle
  270. #define NUMBER_LEFT (290) // number
  271. #define NUMBER_TOP (465)
  272. #define NUMBER_RIGHT (335)
  273. #define NUMBER_BOTTOM (529)
  274. // % rectangle
  275. #define PERCENT_LEFT (380) // percent number_left + 2*number_width
  276. #define PERCENT_TOP (465)
  277. #define PERCENT_RIGHT (437)
  278. #define PERCENT_BOTTOM (529)
  279. // top animation part
  280. #define TOP_ANIMATION_LEFT (278) // top animation
  281. #define TOP_ANIMATION_TOP (100)
  282. #define TOP_ANIMATION_RIGHT (441)
  283. #define TOP_ANIMATION_BOTTOM (129)
  284. // for old animation
  285. #define BAR_LEFT (313)
  286. #define BAR_TOP (238)
  287. #define BAR_RIGHT (406)
  288. #define BAR_BOTTOM (453)
  289. #elif defined(HDPLUS1500)
  290. // hdplus1500 720*1500
  291. // battery capacity rectangle
  292. #define CAPACITY_LEFT (278) // battery capacity center
  293. #define CAPACITY_TOP (640)
  294. #define CAPACITY_RIGHT (441)
  295. #define CAPACITY_BOTTOM (955)
  296. // first number rectangle
  297. #define NUMBER_LEFT (290) // number
  298. #define NUMBER_TOP (450)
  299. #define NUMBER_RIGHT (335)
  300. #define NUMBER_BOTTOM (515)
  301. // % rectangle
  302. #define PERCENT_LEFT (380) // percent number_left + 2*number_width
  303. #define PERCENT_TOP (450)
  304. #define PERCENT_RIGHT (437)
  305. #define PERCENT_BOTTOM (515)
  306. // top animation part
  307. #define TOP_ANIMATION_LEFT (278) // top animation
  308. #define TOP_ANIMATION_TOP (100)
  309. #define TOP_ANIMATION_RIGHT (441)
  310. #define TOP_ANIMATION_BOTTOM (129)
  311. // for old animation
  312. #define BAR_LEFT (313)
  313. #define BAR_TOP (238)
  314. #define BAR_RIGHT (406)
  315. #define BAR_BOTTOM (453)
  316. #elif defined(HDPLUS1520)
  317. // hdplus1520 (19:9) 720*1520
  318. // battery capacity rectangle
  319. #define CAPACITY_LEFT (278) // battery capacity center
  320. #define CAPACITY_TOP (653)
  321. #define CAPACITY_RIGHT (441)
  322. #define CAPACITY_BOTTOM (970)
  323. // first number rectangle
  324. #define NUMBER_LEFT (290) // number
  325. #define NUMBER_TOP (460)
  326. #define NUMBER_RIGHT (335)
  327. #define NUMBER_BOTTOM (535)
  328. // % rectangle
  329. #define PERCENT_LEFT (380) // percent number_left + 2*number_width
  330. #define PERCENT_TOP (460)
  331. #define PERCENT_RIGHT (437)
  332. #define PERCENT_BOTTOM (535)
  333. // top animation part
  334. #define TOP_ANIMATION_LEFT (278) // top animation
  335. #define TOP_ANIMATION_TOP (100)
  336. #define TOP_ANIMATION_RIGHT (441)
  337. #define TOP_ANIMATION_BOTTOM (129)
  338. // for old animation
  339. #define BAR_LEFT (313)
  340. #define BAR_TOP (238)
  341. #define BAR_RIGHT (406)
  342. #define BAR_BOTTOM (453)
  343. #elif defined(HDPLUS1560)
  344. // hdplus1560(19:9) 720*1560
  345. // battery capacity rectangle
  346. #define CAPACITY_LEFT (278) // battery capacity center
  347. #define CAPACITY_TOP (678)
  348. #define CAPACITY_RIGHT (441)
  349. #define CAPACITY_BOTTOM (1000)
  350. // first number rectangle
  351. #define NUMBER_LEFT (290) // number
  352. #define NUMBER_TOP (480)
  353. #define NUMBER_RIGHT (335)
  354. #define NUMBER_BOTTOM (575)
  355. // % rectangle
  356. #define PERCENT_LEFT (380) // percent number_left + 2*number_width
  357. #define PERCENT_TOP (480)
  358. #define PERCENT_RIGHT (437)
  359. #define PERCENT_BOTTOM (575)
  360. // top animation part
  361. #define TOP_ANIMATION_LEFT (278) // top animation
  362. #define TOP_ANIMATION_TOP (100)
  363. #define TOP_ANIMATION_RIGHT (441)
  364. #define TOP_ANIMATION_BOTTOM (129)
  365. // for old animation
  366. #define BAR_LEFT (313)
  367. #define BAR_TOP (238)
  368. #define BAR_RIGHT (406)
  369. #define BAR_BOTTOM (453)
  370. #elif defined(HDPLUS1600)
  371. // hdplus1560(19:9) 720*1600
  372. // battery capacity rectangle
  373. #define CAPACITY_LEFT (278) // battery capacity center
  374. #define CAPACITY_TOP (703)
  375. #define CAPACITY_RIGHT (441)
  376. #define CAPACITY_BOTTOM (1030)
  377. // first number rectangle
  378. #define NUMBER_LEFT (290) // number
  379. #define NUMBER_TOP (500)
  380. #define NUMBER_RIGHT (335)
  381. #define NUMBER_BOTTOM (615)
  382. // % rectangle
  383. #define PERCENT_LEFT (380) // percent number_left + 2*number_width
  384. #define PERCENT_TOP (500)
  385. #define PERCENT_RIGHT (437)
  386. #define PERCENT_BOTTOM (615)
  387. // top animation part
  388. #define TOP_ANIMATION_LEFT (278) // top animation
  389. #define TOP_ANIMATION_TOP (100)
  390. #define TOP_ANIMATION_RIGHT (441)
  391. #define TOP_ANIMATION_BOTTOM (129)
  392. // for old animation
  393. #define BAR_LEFT (313)
  394. #define BAR_TOP (238)
  395. #define BAR_RIGHT (406)
  396. #define BAR_BOTTOM (453)
  397. #elif defined(HDPLUS1680)
  398. // hdplus1680(19:9) 720*1680
  399. // battery capacity rectangle
  400. #define CAPACITY_LEFT (278) // battery capacity center
  401. #define CAPACITY_TOP (753)
  402. #define CAPACITY_RIGHT (441)
  403. #define CAPACITY_BOTTOM (1090)
  404. // first number rectangle
  405. #define NUMBER_LEFT (290) // number
  406. #define NUMBER_TOP (540)
  407. #define NUMBER_RIGHT (335)
  408. #define NUMBER_BOTTOM (695)
  409. // % rectangle
  410. #define PERCENT_LEFT (380) // percent number_left + 2*number_width
  411. #define PERCENT_TOP (540)
  412. #define PERCENT_RIGHT (437)
  413. #define PERCENT_BOTTOM (695)
  414. // top animation part
  415. #define TOP_ANIMATION_LEFT (278) // top animation
  416. #define TOP_ANIMATION_TOP (100)
  417. #define TOP_ANIMATION_RIGHT (441)
  418. #define TOP_ANIMATION_BOTTOM (147)
  419. // for old animation
  420. #define BAR_LEFT (313)
  421. #define BAR_TOP (238)
  422. #define BAR_RIGHT (406)
  423. #define BAR_BOTTOM (453)
  424. #elif defined(FWVGA) || defined(CU_FWVGA) || defined(CMCC_FWVGA) || defined(CT_FWVGA) || defined(CMCC_LTE_FWVGA) || defined(CT_LTE_FWVGA) || defined(CU_LTE_FWVGA)
  425. // fwvga 480*854
  426. // battery capacity rectangle
  427. #define CAPACITY_LEFT (172) // battery capacity center
  428. #define CAPACITY_TOP (357)
  429. #define CAPACITY_RIGHT (307)
  430. #define CAPACITY_BOTTOM (573)
  431. // first number rectangle
  432. #define NUMBER_LEFT (172) // number
  433. #define NUMBER_TOP (213)
  434. #define NUMBER_RIGHT (210)
  435. #define NUMBER_BOTTOM (267)
  436. // % rectangle
  437. #define PERCENT_LEFT (248) // percent number_left + 2*number_width
  438. #define PERCENT_TOP (213)
  439. #define PERCENT_RIGHT (296)
  440. #define PERCENT_BOTTOM (267)
  441. // top animation part
  442. #define TOP_ANIMATION_LEFT (172) // top animation
  443. #define TOP_ANIMATION_TOP (100)
  444. #define TOP_ANIMATION_RIGHT (307)
  445. #define TOP_ANIMATION_BOTTOM (124)
  446. // for old animation
  447. #define BAR_LEFT (184)
  448. #define BAR_TOP (227)
  449. #define BAR_RIGHT (294)
  450. #define BAR_BOTTOM (437)
  451. #elif defined(FWVGAPLUS)
  452. // fwvga 480*960
  453. // battery capacity rectangle
  454. #define CAPACITY_LEFT (172) // battery capacity center
  455. #define CAPACITY_TOP (405)
  456. #define CAPACITY_RIGHT (307)
  457. #define CAPACITY_BOTTOM (645)
  458. // first number rectangle
  459. #define NUMBER_LEFT (172) // number
  460. #define NUMBER_TOP (245)
  461. #define NUMBER_RIGHT (210)
  462. #define NUMBER_BOTTOM (305)
  463. // % rectangle
  464. #define PERCENT_LEFT (248) // percent number_left + 2*number_width
  465. #define PERCENT_TOP (245)
  466. #define PERCENT_RIGHT (296)
  467. #define PERCENT_BOTTOM (305)
  468. // top animation part
  469. #define TOP_ANIMATION_LEFT (172) // top animation
  470. #define TOP_ANIMATION_TOP (100)
  471. #define TOP_ANIMATION_RIGHT (307)
  472. #define TOP_ANIMATION_BOTTOM (124)
  473. // for old animation
  474. #define BAR_LEFT (184)
  475. #define BAR_TOP (227)
  476. #define BAR_RIGHT (294)
  477. #define BAR_BOTTOM (437)
  478. #elif defined(QHD) || defined(CU_QHD) || defined(CMCC_QHD) || defined(CT_QHD) || defined(CMCC_LTE_QHD)
  479. // qhd 540*960
  480. // battery capacity rectangle
  481. #define CAPACITY_LEFT (202) // battery capacity center
  482. #define CAPACITY_TOP (410)
  483. #define CAPACITY_RIGHT (337)
  484. #define CAPACITY_BOTTOM (626)
  485. // first number rectangle
  486. #define NUMBER_LEFT (202) // number
  487. #define NUMBER_TOP (266)
  488. #define NUMBER_RIGHT (240)
  489. #define NUMBER_BOTTOM (320)
  490. // % rectangle
  491. #define PERCENT_LEFT (278) // percent number_left + 2*number_width
  492. #define PERCENT_TOP (266)
  493. #define PERCENT_RIGHT (326)
  494. #define PERCENT_BOTTOM (320)
  495. // top animation part
  496. #define TOP_ANIMATION_LEFT (202) // top animation
  497. #define TOP_ANIMATION_TOP (100)
  498. #define TOP_ANIMATION_RIGHT (337)
  499. #define TOP_ANIMATION_BOTTOM (124)
  500. // for old animation
  501. #define BAR_LEFT (235)
  502. #define BAR_TOP (179)
  503. #define BAR_RIGHT (305)
  504. #define BAR_BOTTOM (340)
  505. #elif defined(WVGA) || defined(CU_WVGA) || defined(CMCC_WVGA) || defined(CT_WVGA) || defined(CMCC_LTE_WVGA)
  506. // default wvga 480*800
  507. // battery capacity rectangle
  508. #define CAPACITY_LEFT (172) // battery capacity center
  509. #define CAPACITY_TOP (330)
  510. #define CAPACITY_RIGHT (307)
  511. #define CAPACITY_BOTTOM (546)
  512. // first number rectangle
  513. #define NUMBER_LEFT (178) // number
  514. #define NUMBER_TOP (190)
  515. #define NUMBER_RIGHT (216)
  516. #define NUMBER_BOTTOM (244)
  517. // % rectangle
  518. #define PERCENT_LEFT (254) // percent number_left + 2*number_width
  519. #define PERCENT_TOP (190)
  520. #define PERCENT_RIGHT (302)
  521. #define PERCENT_BOTTOM (244)
  522. // top animation part
  523. #define TOP_ANIMATION_LEFT (172) // top animation
  524. #define TOP_ANIMATION_TOP (100)
  525. #define TOP_ANIMATION_RIGHT (307)
  526. #define TOP_ANIMATION_BOTTOM (124)
  527. // for old animation
  528. #define BAR_LEFT (209)
  529. #define BAR_TOP (149)
  530. #define BAR_RIGHT (271)
  531. #define BAR_BOTTOM (282)
  532. #elif defined(HVGA) || defined(CU_HVGA) || defined(CMCC_HVGA) || defined(CT_HVGA) || defined(CMCC_LTE_HVGA)
  533. // hvga 320*480
  534. // battery capacity rectangle
  535. #define CAPACITY_LEFT (109) // battery capacity center
  536. #define CAPACITY_TOP (189)
  537. #define CAPACITY_RIGHT (211)
  538. #define CAPACITY_BOTTOM (350)
  539. // first number rectangle
  540. #define NUMBER_LEFT (126) // number
  541. #define NUMBER_TOP (95)
  542. #define NUMBER_RIGHT (153)
  543. #define NUMBER_BOTTOM (131)
  544. // % rectangle
  545. #define PERCENT_LEFT (180) // percent number_left + 2*number_width
  546. #define PERCENT_TOP (95)
  547. #define PERCENT_RIGHT (212)
  548. #define PERCENT_BOTTOM (131)
  549. // top animation part
  550. #define TOP_ANIMATION_LEFT (109) // top animation
  551. #define TOP_ANIMATION_TOP (100)
  552. #define TOP_ANIMATION_RIGHT (211)
  553. #define TOP_ANIMATION_BOTTOM (118)
  554. // for old animation
  555. #define BAR_LEFT (129)
  556. #define BAR_TOP (128)
  557. #define BAR_RIGHT (190)
  558. #define BAR_BOTTOM (245)
  559. #elif defined(QVGA) || defined(CU_QVGA) || defined(CMCC_QVGA) || defined(CT_QVGA) || defined(CMCC_LTE_QVGA)
  560. // hvga 320*480
  561. // battery capacity rectangle
  562. #define CAPACITY_LEFT (82) // battery capacity center
  563. #define CAPACITY_TOP (124)
  564. #define CAPACITY_RIGHT (158)
  565. #define CAPACITY_BOTTOM (241)
  566. // first number rectangle
  567. #define NUMBER_LEFT (93) // number
  568. #define NUMBER_TOP (50)
  569. #define NUMBER_RIGHT (109)
  570. #define NUMBER_BOTTOM (73)
  571. // % rectangle
  572. #define PERCENT_LEFT (125) // percent number_left + 2*number_width
  573. #define PERCENT_TOP (50)
  574. #define PERCENT_RIGHT (145)
  575. #define PERCENT_BOTTOM (73)
  576. // top animation part
  577. #define TOP_ANIMATION_LEFT (82) // top animation
  578. #define TOP_ANIMATION_TOP (100)
  579. #define TOP_ANIMATION_RIGHT (158)
  580. #define TOP_ANIMATION_BOTTOM (113)
  581. // for old animation
  582. #define BAR_LEFT (97)
  583. #define BAR_TOP (96)
  584. #define BAR_RIGHT (140)
  585. #define BAR_BOTTOM (184)
  586. #elif defined(WSVGA)
  587. // wsvga 600*1024
  588. // battery capacity rectangle
  589. #define CAPACITY_LEFT (232) // battery capacity center
  590. #define CAPACITY_TOP (442)
  591. #define CAPACITY_RIGHT (367)
  592. #define CAPACITY_BOTTOM (658)
  593. // first number rectangle
  594. #define NUMBER_LEFT (250) // number
  595. #define NUMBER_TOP (300)
  596. #define NUMBER_RIGHT (288)
  597. #define NUMBER_BOTTOM (354)
  598. // % rectangle
  599. #define PERCENT_LEFT (326) // percent number_left + 2*number_width
  600. #define PERCENT_TOP (300)
  601. #define PERCENT_RIGHT (374)
  602. #define PERCENT_BOTTOM (354)
  603. // top animation part
  604. #define TOP_ANIMATION_LEFT (232) // top animation
  605. #define TOP_ANIMATION_TOP (100)
  606. #define TOP_ANIMATION_RIGHT (367)
  607. #define TOP_ANIMATION_BOTTOM (124)
  608. // for old animation
  609. #define BAR_LEFT (260)
  610. #define BAR_TOP (190)
  611. #define BAR_RIGHT (338)
  612. #define BAR_BOTTOM (360)
  613. #elif defined(WSVGANL)
  614. // wsvganl 1024*600
  615. // battery capacity rectangle
  616. #define CAPACITY_LEFT (444) // battery capacity center
  617. #define CAPACITY_TOP (230)
  618. #define CAPACITY_RIGHT (579) // 444 + 135
  619. #define CAPACITY_BOTTOM (446)
  620. // first number rectangle
  621. #define NUMBER_LEFT (466) // number
  622. #define NUMBER_TOP (90)
  623. #define NUMBER_RIGHT (504) // 466 + 38
  624. #define NUMBER_BOTTOM (144) // 90 + 54
  625. // % rectangle
  626. #define PERCENT_LEFT (542) // percent number_left + 2*number_width
  627. #define PERCENT_TOP (90)
  628. #define PERCENT_RIGHT (590)
  629. #define PERCENT_BOTTOM (144)
  630. // top animation part
  631. #define TOP_ANIMATION_LEFT (444) // top animation
  632. #define TOP_ANIMATION_TOP (100)
  633. #define TOP_ANIMATION_RIGHT (579)
  634. #define TOP_ANIMATION_BOTTOM (124)
  635. // for old animation
  636. #define BAR_LEFT (414)
  637. #define BAR_TOP (186)
  638. #define BAR_RIGHT (608)
  639. #define BAR_BOTTOM (477)
  640. #elif defined(WXGANL)
  641. // wxganl 1280*800
  642. // battery capacity rectangle
  643. #define CAPACITY_LEFT (558) // battery capacity center
  644. #define CAPACITY_TOP (265)
  645. #define CAPACITY_RIGHT (721) //558+163
  646. #define CAPACITY_BOTTOM (525)
  647. #define NUMBER_LEFT (585) // number
  648. #define NUMBER_TOP (95)
  649. #define NUMBER_RIGHT (630)//585+45
  650. #define NUMBER_BOTTOM (159) //95+64
  651. #define PERCENT_LEFT (675) // percent number_left + 2*number_width
  652. #define PERCENT_TOP (95)
  653. #define PERCENT_RIGHT (732) //675+57
  654. #define PERCENT_BOTTOM (159)
  655. #define TOP_ANIMATION_LEFT (558) // top animation
  656. #define TOP_ANIMATION_TOP (100)
  657. #define TOP_ANIMATION_RIGHT (721)
  658. #define TOP_ANIMATION_BOTTOM (129)
  659. // for old animation
  660. #define BAR_LEFT (525)
  661. #define BAR_TOP (250)
  662. #define BAR_RIGHT (755)
  663. #define BAR_BOTTOM (640)
  664. #elif defined(WXGA)
  665. // wxga 800*1280
  666. // battery capacity rectangle
  667. #define CAPACITY_LEFT (318) // battery capacity center
  668. #define CAPACITY_TOP (556)
  669. #define CAPACITY_RIGHT (481) //318+163
  670. #define CAPACITY_BOTTOM (815)
  671. #define NUMBER_LEFT (345) // number
  672. #define NUMBER_TOP (385)
  673. #define NUMBER_RIGHT (390) //345+45
  674. #define NUMBER_BOTTOM (449) //385+64
  675. #define PERCENT_LEFT (435) // percent number_left + 2*number_width
  676. #define PERCENT_TOP (385)
  677. #define PERCENT_RIGHT (492) //435+57
  678. #define PERCENT_BOTTOM (449)
  679. #define TOP_ANIMATION_LEFT (318) // top animation
  680. #define TOP_ANIMATION_TOP (100)
  681. #define TOP_ANIMATION_RIGHT (481)
  682. #define TOP_ANIMATION_BOTTOM (129)
  683. // for old animation
  684. #define BAR_LEFT (348)
  685. #define BAR_TOP (238)
  686. #define BAR_RIGHT (453)
  687. #define BAR_BOTTOM (452)
  688. #elif defined(WUXGANL)
  689. // wuxganl 1920*1200
  690. // battery capacity rectangle
  691. #define CAPACITY_LEFT (806) // battery capacity center
  692. #define CAPACITY_TOP (443)
  693. #define CAPACITY_RIGHT (1110)
  694. #define CAPACITY_BOTTOM (929)
  695. #define NUMBER_LEFT (855) // number
  696. #define NUMBER_TOP (124)
  697. #define NUMBER_RIGHT (939) //855+84
  698. #define NUMBER_BOTTOM (245)
  699. #define PERCENT_LEFT (1023) // percent number_left + 2*number_width
  700. #define PERCENT_TOP (124)
  701. #define PERCENT_RIGHT (1131) //1023+108
  702. #define PERCENT_BOTTOM (245) //124+121
  703. #define TOP_ANIMATION_LEFT (806) // top animation
  704. #define TOP_ANIMATION_TOP (100)
  705. #define TOP_ANIMATION_RIGHT (1110) //806+304
  706. #define TOP_ANIMATION_BOTTOM (152)
  707. // for old animation
  708. #define BAR_LEFT (890)
  709. #define BAR_TOP (357)
  710. #define BAR_RIGHT (1030)
  711. #define BAR_BOTTOM (678)
  712. #elif defined(WUXGA) || defined(CU_WUXGA)
  713. // wuxga 1200*1920
  714. // battery capacity rectangle
  715. #define CAPACITY_LEFT (447) // battery capacity center
  716. #define CAPACITY_TOP (803)
  717. #define CAPACITY_RIGHT (751)
  718. #define CAPACITY_BOTTOM (1289)
  719. #define NUMBER_LEFT (494) // number
  720. #define NUMBER_TOP (481)
  721. #define NUMBER_RIGHT (578)//494+84
  722. #define NUMBER_BOTTOM (602) //481+121
  723. #define PERCENT_LEFT (662) // percent number_left + 2*number_width
  724. #define PERCENT_TOP (481)
  725. #define PERCENT_RIGHT (770) //662+108
  726. #define PERCENT_BOTTOM (602) //481+121
  727. #define TOP_ANIMATION_LEFT (447) // top animation
  728. #define TOP_ANIMATION_TOP (100)
  729. #define TOP_ANIMATION_RIGHT (751)
  730. #define TOP_ANIMATION_BOTTOM (152)
  731. // for old animation
  732. #define BAR_LEFT (529)
  733. #define BAR_TOP (357)
  734. #define BAR_RIGHT (672)
  735. #define BAR_BOTTOM (680)
  736. #elif defined(XGA)
  737. // xga 768*1024
  738. // battery capacity rectangle
  739. #define CAPACITY_LEFT (316) // battery capacity center
  740. #define CAPACITY_TOP (442)
  741. #define CAPACITY_RIGHT (451)
  742. #define CAPACITY_BOTTOM (658)
  743. #define NUMBER_LEFT (338) // number
  744. #define NUMBER_TOP (300)
  745. #define NUMBER_RIGHT (376)
  746. #define NUMBER_BOTTOM (354)
  747. #define PERCENT_LEFT (414) // percent number_left + 2*number_width
  748. #define PERCENT_TOP (300)
  749. #define PERCENT_RIGHT (462)
  750. #define PERCENT_BOTTOM (354)
  751. #define TOP_ANIMATION_LEFT (316) // top animation
  752. #define TOP_ANIMATION_TOP (100)
  753. #define TOP_ANIMATION_RIGHT (451)
  754. #define TOP_ANIMATION_BOTTOM (124)
  755. // for old animation
  756. #define BAR_LEFT (334)
  757. #define BAR_TOP (243)
  758. #define BAR_RIGHT (434)
  759. #define BAR_BOTTOM (463)
  760. #elif defined(XGANL)
  761. // xganl 1024*768
  762. // battery capacity rectangle
  763. #define CAPACITY_LEFT (444) // battery capacity center
  764. #define CAPACITY_TOP (314)
  765. #define CAPACITY_RIGHT (579)
  766. #define CAPACITY_BOTTOM (530)
  767. #define NUMBER_LEFT (467) // number
  768. #define NUMBER_TOP (170)
  769. #define NUMBER_RIGHT (505)
  770. #define NUMBER_BOTTOM (224)
  771. #define PERCENT_LEFT (543) // percent number_left + 2*number_width
  772. #define PERCENT_TOP (170)
  773. #define PERCENT_RIGHT (591)
  774. #define PERCENT_BOTTOM (224)
  775. #define TOP_ANIMATION_LEFT (444) // top animation
  776. #define TOP_ANIMATION_TOP (100)
  777. #define TOP_ANIMATION_RIGHT (579)
  778. #define TOP_ANIMATION_BOTTOM (124)
  779. // for old animation
  780. #define BAR_LEFT (486)
  781. #define BAR_TOP (292)
  782. #define BAR_RIGHT (590)
  783. #define BAR_BOTTOM (506)
  784. #else
  785. // default wvga 480*800
  786. // battery capacity rectangle
  787. #define CAPACITY_LEFT (172) // battery capacity center
  788. #define CAPACITY_TOP (330)
  789. #define CAPACITY_RIGHT (307)
  790. #define CAPACITY_BOTTOM (546)
  791. // first number rectangle
  792. #define NUMBER_LEFT (178) // number
  793. #define NUMBER_TOP (190)
  794. #define NUMBER_RIGHT (216)
  795. #define NUMBER_BOTTOM (244)
  796. // % rectangle
  797. #define PERCENT_LEFT (254) // percent number_left + 2*number_width
  798. #define PERCENT_TOP (190)
  799. #define PERCENT_RIGHT (302)
  800. #define PERCENT_BOTTOM (244)
  801. // top animation part
  802. #define TOP_ANIMATION_LEFT (172) // top animation
  803. #define TOP_ANIMATION_TOP (100)
  804. #define TOP_ANIMATION_RIGHT (307)
  805. #define TOP_ANIMATION_BOTTOM (124)
  806. // for old animation
  807. #define BAR_LEFT (209)
  808. #define BAR_TOP (149)
  809. #define BAR_RIGHT (271)
  810. #define BAR_BOTTOM (282)
  811. #endif
  812. /* The option of new charging animation */
  813. #define ANIMATION_NEW
  814. #endif // __CUST_DISPLAY_H__