cust_display.h 37 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081
  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. #define LOGOS_COUNT_NORMAL 42
  101. #define LOGOS_COUNT_FAST_CHARGING 18
  102. #define LOGOS_COUNT_WIRELESS 29
  103. #if defined(FHD) || defined(CU_FHD) || defined(CMCC_FHD) || defined(CT_FHD) || defined(CMCC_LTE_FHD)
  104. // fhd 1080*1920
  105. // battery capacity rectangle
  106. #define CAPACITY_LEFT (387) // battery capacity center
  107. #define CAPACITY_TOP (802)
  108. #define CAPACITY_RIGHT (691)
  109. #define CAPACITY_BOTTOM (1292)
  110. // first number rectangle
  111. #define NUMBER_LEFT (351+84) // number
  112. #define NUMBER_TOP (479)
  113. #define NUMBER_RIGHT (435+84)
  114. #define NUMBER_BOTTOM (600)
  115. // % rectangle
  116. #define PERCENT_LEFT (519+84) // percent number_left + 2*number_width
  117. #define PERCENT_TOP (479)
  118. #define PERCENT_RIGHT (627+84)
  119. #define PERCENT_BOTTOM (600)
  120. // top animation part
  121. #define TOP_ANIMATION_LEFT (387) // top animation
  122. #define TOP_ANIMATION_TOP (100)
  123. #define TOP_ANIMATION_RIGHT (691)
  124. #define TOP_ANIMATION_BOTTOM (152)
  125. // for old animation
  126. #define BAR_LEFT (470)
  127. #define BAR_TOP (356)
  128. #define BAR_RIGHT (610)
  129. #define BAR_BOTTOM (678)
  130. #elif defined(FHDPLUS)
  131. // fhd 1080*2160
  132. // battery capacity rectangle
  133. #define CAPACITY_LEFT (387) // battery capacity center
  134. #define CAPACITY_TOP (922)
  135. #define CAPACITY_RIGHT (691)
  136. #define CAPACITY_BOTTOM (1413)
  137. // first number rectangle
  138. #define NUMBER_LEFT (351+84) // number
  139. #define NUMBER_TOP (599)
  140. #define NUMBER_RIGHT (435+84)
  141. #define NUMBER_BOTTOM (720)
  142. // % rectangle
  143. #define PERCENT_LEFT (519+84) // percent number_left + 2*number_width
  144. #define PERCENT_TOP (599)
  145. #define PERCENT_RIGHT (627+84)
  146. #define PERCENT_BOTTOM (720)
  147. // top animation part
  148. #define TOP_ANIMATION_LEFT (387) // top animation
  149. #define TOP_ANIMATION_TOP (100)
  150. #define TOP_ANIMATION_RIGHT (691)
  151. #define TOP_ANIMATION_BOTTOM (152)
  152. // for old animation
  153. #define BAR_LEFT (470)
  154. #define BAR_TOP (356)
  155. #define BAR_RIGHT (610)
  156. #define BAR_BOTTOM (678)
  157. #elif defined(FHDPLUS2300)
  158. // fhd 1080*2300
  159. // battery capacity rectangle
  160. #define CAPACITY_LEFT (387) // battery capacity center
  161. #define CAPACITY_TOP (1007)
  162. #define CAPACITY_RIGHT (691)
  163. #define CAPACITY_BOTTOM (1498)
  164. // first number rectangle
  165. #define NUMBER_LEFT (370+45) // number
  166. #define NUMBER_TOP (669)
  167. #define NUMBER_RIGHT (415+45)
  168. #define NUMBER_BOTTOM (790)
  169. // % rectangle
  170. #define PERCENT_LEFT (370+90) // percent number_left + 2*number_width
  171. #define PERCENT_TOP (669)
  172. #define PERCENT_RIGHT (460+57)
  173. #define PERCENT_BOTTOM (790)
  174. // top animation part
  175. #define TOP_ANIMATION_LEFT (387) // top animation
  176. #define TOP_ANIMATION_TOP (100)
  177. #define TOP_ANIMATION_RIGHT (691)
  178. #define TOP_ANIMATION_BOTTOM (147)
  179. // for old animation
  180. #define BAR_LEFT (470)
  181. #define BAR_TOP (356)
  182. #define BAR_RIGHT (610)
  183. #define BAR_BOTTOM (678)
  184. #elif defined(FHDPLUS2400)
  185. // fhd 1080*2400
  186. // battery capacity rectangle
  187. #define CAPACITY_LEFT (387) // battery capacity center
  188. #define CAPACITY_TOP (1042)
  189. #define CAPACITY_RIGHT (691)
  190. #define CAPACITY_BOTTOM (1533)
  191. // first number rectangle
  192. #define NUMBER_LEFT (370+45) // number
  193. #define NUMBER_TOP (729)
  194. #define NUMBER_RIGHT (415+45)
  195. #define NUMBER_BOTTOM (840)
  196. // % rectangle
  197. #define PERCENT_LEFT (370+90) // percent number_left + 2*number_width
  198. #define PERCENT_TOP (729)
  199. #define PERCENT_RIGHT (460+57)
  200. #define PERCENT_BOTTOM (840)
  201. // top animation part
  202. #define TOP_ANIMATION_LEFT (387) // top animation
  203. #define TOP_ANIMATION_TOP (100)
  204. #define TOP_ANIMATION_RIGHT (691)
  205. #define TOP_ANIMATION_BOTTOM (147)
  206. // for old animation
  207. #define BAR_LEFT (470)
  208. #define BAR_TOP (356)
  209. #define BAR_RIGHT (610)
  210. #define BAR_BOTTOM (678)
  211. #elif defined(FHDPLUS2520)
  212. // fhd 1080*2520
  213. // battery capacity rectangle
  214. #define CAPACITY_LEFT (387) // battery capacity center
  215. #define CAPACITY_TOP (1102)
  216. #define CAPACITY_RIGHT (691)
  217. #define CAPACITY_BOTTOM (1593)
  218. // first number rectangle
  219. #define NUMBER_LEFT (351+84) // number
  220. #define NUMBER_TOP (779)
  221. #define NUMBER_RIGHT (435+84)
  222. #define NUMBER_BOTTOM (900)
  223. // % rectangle
  224. #define PERCENT_LEFT (519+84) // percent number_left + 2*number_width
  225. #define PERCENT_TOP (779)
  226. #define PERCENT_RIGHT (627+84)
  227. #define PERCENT_BOTTOM (900)
  228. // top animation part
  229. #define TOP_ANIMATION_LEFT (387) // top animation
  230. #define TOP_ANIMATION_TOP (100)
  231. #define TOP_ANIMATION_RIGHT (691)
  232. #define TOP_ANIMATION_BOTTOM (152)
  233. // for old animation
  234. #define BAR_LEFT (470)
  235. #define BAR_TOP (356)
  236. #define BAR_RIGHT (610)
  237. #define BAR_BOTTOM (678)
  238. #elif defined(FHDPLUS2280)
  239. // fhd 1080*2280
  240. // battery capacity rectangle
  241. #define CAPACITY_LEFT (387) // battery capacity center
  242. #define CAPACITY_TOP (982)
  243. #define CAPACITY_RIGHT (691)
  244. #define CAPACITY_BOTTOM (1473)
  245. // first number rectangle
  246. #define NUMBER_LEFT (351+84) // number
  247. #define NUMBER_TOP (659)
  248. #define NUMBER_RIGHT (435+84)
  249. #define NUMBER_BOTTOM (780)
  250. // % rectangle
  251. #define PERCENT_LEFT (519+84) // percent number_left + 2*number_width
  252. #define PERCENT_TOP (659)
  253. #define PERCENT_RIGHT (627+84)
  254. #define PERCENT_BOTTOM (780)
  255. // top animation part
  256. #define TOP_ANIMATION_LEFT (387) // top animation
  257. #define TOP_ANIMATION_TOP (100)
  258. #define TOP_ANIMATION_RIGHT (691)
  259. #define TOP_ANIMATION_BOTTOM (152)
  260. // for old animation
  261. #define BAR_LEFT (470)
  262. #define BAR_TOP (356)
  263. #define BAR_RIGHT (610)
  264. #define BAR_BOTTOM (678)
  265. #elif defined(WQHD) || defined(CU_WQHD) || defined(CMCC_WQHD) || defined(CT_WQHD) || defined(CMCC_LTE_WQHD) || defined(CT_LTE_WQHD) || defined(CU_LTE_WQHD)
  266. // wqhd 1440*2560
  267. // battery capacity rectangle
  268. #define CAPACITY_LEFT (556) // battery capacity center
  269. #define CAPACITY_TOP (1112)
  270. #define CAPACITY_RIGHT (882)
  271. #define CAPACITY_BOTTOM (1630)
  272. // first number rectangle
  273. #define NUMBER_LEFT (570) // number
  274. #define NUMBER_TOP (770)
  275. #define NUMBER_RIGHT (660)
  276. #define NUMBER_BOTTOM (898)
  277. // % rectangle
  278. #define PERCENT_LEFT (750) // percent number_left + 2*number_width
  279. #define PERCENT_TOP (770)
  280. #define PERCENT_RIGHT (864)
  281. #define PERCENT_BOTTOM (898)
  282. // top animation part
  283. #define TOP_ANIMATION_LEFT (556) // top animation
  284. #define TOP_ANIMATION_TOP (100)
  285. #define TOP_ANIMATION_RIGHT (882)
  286. #define TOP_ANIMATION_BOTTOM (158)
  287. // for old animation
  288. #define BAR_LEFT (443)
  289. #define BAR_TOP (337)
  290. #define BAR_RIGHT (574)
  291. #define BAR_BOTTOM (641)
  292. #elif defined(HD720) || defined(CU_HD720) || defined(CMCC_HD720) || defined(CT_HD720) || defined(CMCC_LTE_HD720)
  293. // hd720 720*1280
  294. // battery capacity rectangle
  295. #define CAPACITY_LEFT (278) // battery capacity center
  296. #define CAPACITY_TOP (556)
  297. #define CAPACITY_RIGHT (441)
  298. #define CAPACITY_BOTTOM (817)
  299. // first number rectangle
  300. #define NUMBER_LEFT (290) // number
  301. #define NUMBER_TOP (386)
  302. #define NUMBER_RIGHT (335)
  303. #define NUMBER_BOTTOM (450)
  304. // % rectangle
  305. #define PERCENT_LEFT (380) // percent number_left + 2*number_width
  306. #define PERCENT_TOP (386)
  307. #define PERCENT_RIGHT (437)
  308. #define PERCENT_BOTTOM (450)
  309. // top animation part
  310. #define TOP_ANIMATION_LEFT (278) // top animation
  311. #define TOP_ANIMATION_TOP (100)
  312. #define TOP_ANIMATION_RIGHT (441)
  313. #define TOP_ANIMATION_BOTTOM (129)
  314. // for old animation
  315. #define BAR_LEFT (313)
  316. #define BAR_TOP (238)
  317. #define BAR_RIGHT (406)
  318. #define BAR_BOTTOM (453)
  319. #elif defined(HDPLUS)
  320. // hdplus 720*1440
  321. // battery capacity rectangle
  322. #define CAPACITY_LEFT (278) // battery capacity center
  323. #define CAPACITY_TOP (636)
  324. #define CAPACITY_RIGHT (441)
  325. #define CAPACITY_BOTTOM (898)
  326. // first number rectangle
  327. #define NUMBER_LEFT (290) // number
  328. #define NUMBER_TOP (465)
  329. #define NUMBER_RIGHT (335)
  330. #define NUMBER_BOTTOM (529)
  331. // % rectangle
  332. #define PERCENT_LEFT (380) // percent number_left + 2*number_width
  333. #define PERCENT_TOP (465)
  334. #define PERCENT_RIGHT (437)
  335. #define PERCENT_BOTTOM (529)
  336. // top animation part
  337. #define TOP_ANIMATION_LEFT (278) // top animation
  338. #define TOP_ANIMATION_TOP (100)
  339. #define TOP_ANIMATION_RIGHT (441)
  340. #define TOP_ANIMATION_BOTTOM (129)
  341. // for old animation
  342. #define BAR_LEFT (313)
  343. #define BAR_TOP (238)
  344. #define BAR_RIGHT (406)
  345. #define BAR_BOTTOM (453)
  346. #elif defined(HDPLUS1500)
  347. // hdplus1500 720*1500
  348. // battery capacity rectangle
  349. #define CAPACITY_LEFT (278) // battery capacity center
  350. #define CAPACITY_TOP (640)
  351. #define CAPACITY_RIGHT (441)
  352. #define CAPACITY_BOTTOM (955)
  353. // first number rectangle
  354. #define NUMBER_LEFT (290) // number
  355. #define NUMBER_TOP (450)
  356. #define NUMBER_RIGHT (335)
  357. #define NUMBER_BOTTOM (515)
  358. // % rectangle
  359. #define PERCENT_LEFT (380) // percent number_left + 2*number_width
  360. #define PERCENT_TOP (450)
  361. #define PERCENT_RIGHT (437)
  362. #define PERCENT_BOTTOM (515)
  363. // top animation part
  364. #define TOP_ANIMATION_LEFT (278) // top animation
  365. #define TOP_ANIMATION_TOP (100)
  366. #define TOP_ANIMATION_RIGHT (441)
  367. #define TOP_ANIMATION_BOTTOM (129)
  368. // for old animation
  369. #define BAR_LEFT (313)
  370. #define BAR_TOP (238)
  371. #define BAR_RIGHT (406)
  372. #define BAR_BOTTOM (453)
  373. #elif defined(HDPLUS1520)
  374. // hdplus1520 (19:9) 720*1520
  375. // battery capacity rectangle
  376. #define CAPACITY_LEFT (278) // battery capacity center
  377. #define CAPACITY_TOP (653)
  378. #define CAPACITY_RIGHT (441)
  379. #define CAPACITY_BOTTOM (970)
  380. // first number rectangle
  381. #define NUMBER_LEFT (290) // number
  382. #define NUMBER_TOP (460)
  383. #define NUMBER_RIGHT (335)
  384. #define NUMBER_BOTTOM (535)
  385. // % rectangle
  386. #define PERCENT_LEFT (380) // percent number_left + 2*number_width
  387. #define PERCENT_TOP (460)
  388. #define PERCENT_RIGHT (437)
  389. #define PERCENT_BOTTOM (535)
  390. // top animation part
  391. #define TOP_ANIMATION_LEFT (278) // top animation
  392. #define TOP_ANIMATION_TOP (100)
  393. #define TOP_ANIMATION_RIGHT (441)
  394. #define TOP_ANIMATION_BOTTOM (129)
  395. // for old animation
  396. #define BAR_LEFT (313)
  397. #define BAR_TOP (238)
  398. #define BAR_RIGHT (406)
  399. #define BAR_BOTTOM (453)
  400. #elif defined(HDPLUS1560)
  401. // hdplus1560(19:9) 720*1560
  402. // battery capacity rectangle
  403. #define CAPACITY_LEFT (278) // battery capacity center
  404. #define CAPACITY_TOP (678)
  405. #define CAPACITY_RIGHT (441)
  406. #define CAPACITY_BOTTOM (1000)
  407. // first number rectangle
  408. #define NUMBER_LEFT (290) // number
  409. #define NUMBER_TOP (480)
  410. #define NUMBER_RIGHT (335)
  411. #define NUMBER_BOTTOM (575)
  412. // % rectangle
  413. #define PERCENT_LEFT (380) // percent number_left + 2*number_width
  414. #define PERCENT_TOP (480)
  415. #define PERCENT_RIGHT (437)
  416. #define PERCENT_BOTTOM (575)
  417. // top animation part
  418. #define TOP_ANIMATION_LEFT (278) // top animation
  419. #define TOP_ANIMATION_TOP (100)
  420. #define TOP_ANIMATION_RIGHT (441)
  421. #define TOP_ANIMATION_BOTTOM (129)
  422. // for old animation
  423. #define BAR_LEFT (313)
  424. #define BAR_TOP (238)
  425. #define BAR_RIGHT (406)
  426. #define BAR_BOTTOM (453)
  427. #elif defined(HDPLUS1600)
  428. // hdplus1560(19:9) 720*1600
  429. // battery capacity rectangle
  430. #define CAPACITY_LEFT (278) // battery capacity center
  431. #define CAPACITY_TOP (703)
  432. #define CAPACITY_RIGHT (441)
  433. #define CAPACITY_BOTTOM (1030)
  434. // first number rectangle
  435. #define NUMBER_LEFT (290) // number
  436. #define NUMBER_TOP (500)
  437. #define NUMBER_RIGHT (335)
  438. #define NUMBER_BOTTOM (615)
  439. // % rectangle
  440. #define PERCENT_LEFT (380) // percent number_left + 2*number_width
  441. #define PERCENT_TOP (500)
  442. #define PERCENT_RIGHT (437)
  443. #define PERCENT_BOTTOM (615)
  444. // top animation part
  445. #define TOP_ANIMATION_LEFT (278) // top animation
  446. #define TOP_ANIMATION_TOP (100)
  447. #define TOP_ANIMATION_RIGHT (441)
  448. #define TOP_ANIMATION_BOTTOM (129)
  449. // for old animation
  450. #define BAR_LEFT (313)
  451. #define BAR_TOP (238)
  452. #define BAR_RIGHT (406)
  453. #define BAR_BOTTOM (453)
  454. #elif defined(HDPLUS1680)
  455. // hdplus1680(19:9) 720*1680
  456. // battery capacity rectangle
  457. #define CAPACITY_LEFT (278) // battery capacity center
  458. #define CAPACITY_TOP (753)
  459. #define CAPACITY_RIGHT (441)
  460. #define CAPACITY_BOTTOM (1090)
  461. // first number rectangle
  462. #define NUMBER_LEFT (290) // number
  463. #define NUMBER_TOP (540)
  464. #define NUMBER_RIGHT (335)
  465. #define NUMBER_BOTTOM (695)
  466. // % rectangle
  467. #define PERCENT_LEFT (380) // percent number_left + 2*number_width
  468. #define PERCENT_TOP (540)
  469. #define PERCENT_RIGHT (437)
  470. #define PERCENT_BOTTOM (695)
  471. // top animation part
  472. #define TOP_ANIMATION_LEFT (278) // top animation
  473. #define TOP_ANIMATION_TOP (100)
  474. #define TOP_ANIMATION_RIGHT (441)
  475. #define TOP_ANIMATION_BOTTOM (147)
  476. // for old animation
  477. #define BAR_LEFT (313)
  478. #define BAR_TOP (238)
  479. #define BAR_RIGHT (406)
  480. #define BAR_BOTTOM (453)
  481. #elif defined(FWVGA) || defined(CU_FWVGA) || defined(CMCC_FWVGA) || defined(CT_FWVGA) || defined(CMCC_LTE_FWVGA) || defined(CT_LTE_FWVGA) || defined(CU_LTE_FWVGA)
  482. // fwvga 480*854
  483. // battery capacity rectangle
  484. #define CAPACITY_LEFT (172) // battery capacity center
  485. #define CAPACITY_TOP (357)
  486. #define CAPACITY_RIGHT (307)
  487. #define CAPACITY_BOTTOM (573)
  488. // first number rectangle
  489. #define NUMBER_LEFT (172) // number
  490. #define NUMBER_TOP (213)
  491. #define NUMBER_RIGHT (210)
  492. #define NUMBER_BOTTOM (267)
  493. // % rectangle
  494. #define PERCENT_LEFT (248) // percent number_left + 2*number_width
  495. #define PERCENT_TOP (213)
  496. #define PERCENT_RIGHT (296)
  497. #define PERCENT_BOTTOM (267)
  498. // top animation part
  499. #define TOP_ANIMATION_LEFT (172) // top animation
  500. #define TOP_ANIMATION_TOP (100)
  501. #define TOP_ANIMATION_RIGHT (307)
  502. #define TOP_ANIMATION_BOTTOM (124)
  503. // for old animation
  504. #define BAR_LEFT (184)
  505. #define BAR_TOP (227)
  506. #define BAR_RIGHT (294)
  507. #define BAR_BOTTOM (437)
  508. #elif defined(FWVGAPLUS)
  509. // fwvga 480*960
  510. // battery capacity rectangle
  511. #define CAPACITY_LEFT (172) // battery capacity center
  512. #define CAPACITY_TOP (405)
  513. #define CAPACITY_RIGHT (307)
  514. #define CAPACITY_BOTTOM (645)
  515. // first number rectangle
  516. #define NUMBER_LEFT (172) // number
  517. #define NUMBER_TOP (245)
  518. #define NUMBER_RIGHT (210)
  519. #define NUMBER_BOTTOM (305)
  520. // % rectangle
  521. #define PERCENT_LEFT (248) // percent number_left + 2*number_width
  522. #define PERCENT_TOP (245)
  523. #define PERCENT_RIGHT (296)
  524. #define PERCENT_BOTTOM (305)
  525. // top animation part
  526. #define TOP_ANIMATION_LEFT (172) // top animation
  527. #define TOP_ANIMATION_TOP (100)
  528. #define TOP_ANIMATION_RIGHT (307)
  529. #define TOP_ANIMATION_BOTTOM (124)
  530. // for old animation
  531. #define BAR_LEFT (184)
  532. #define BAR_TOP (227)
  533. #define BAR_RIGHT (294)
  534. #define BAR_BOTTOM (437)
  535. #elif defined(QHD) || defined(CU_QHD) || defined(CMCC_QHD) || defined(CT_QHD) || defined(CMCC_LTE_QHD)
  536. // qhd 540*960
  537. // battery capacity rectangle
  538. #define CAPACITY_LEFT (202) // battery capacity center
  539. #define CAPACITY_TOP (410)
  540. #define CAPACITY_RIGHT (337)
  541. #define CAPACITY_BOTTOM (626)
  542. // first number rectangle
  543. #define NUMBER_LEFT (202) // number
  544. #define NUMBER_TOP (266)
  545. #define NUMBER_RIGHT (240)
  546. #define NUMBER_BOTTOM (320)
  547. // % rectangle
  548. #define PERCENT_LEFT (278) // percent number_left + 2*number_width
  549. #define PERCENT_TOP (266)
  550. #define PERCENT_RIGHT (326)
  551. #define PERCENT_BOTTOM (320)
  552. // top animation part
  553. #define TOP_ANIMATION_LEFT (202) // top animation
  554. #define TOP_ANIMATION_TOP (100)
  555. #define TOP_ANIMATION_RIGHT (337)
  556. #define TOP_ANIMATION_BOTTOM (124)
  557. // for old animation
  558. #define BAR_LEFT (235)
  559. #define BAR_TOP (179)
  560. #define BAR_RIGHT (305)
  561. #define BAR_BOTTOM (340)
  562. #elif defined(WVGA) || defined(CU_WVGA) || defined(CMCC_WVGA) || defined(CT_WVGA) || defined(CMCC_LTE_WVGA)
  563. // default wvga 480*800
  564. // battery capacity rectangle
  565. #define CAPACITY_LEFT (172) // battery capacity center
  566. #define CAPACITY_TOP (330)
  567. #define CAPACITY_RIGHT (307)
  568. #define CAPACITY_BOTTOM (546)
  569. // first number rectangle
  570. #define NUMBER_LEFT (178) // number
  571. #define NUMBER_TOP (190)
  572. #define NUMBER_RIGHT (216)
  573. #define NUMBER_BOTTOM (244)
  574. // % rectangle
  575. #define PERCENT_LEFT (254) // percent number_left + 2*number_width
  576. #define PERCENT_TOP (190)
  577. #define PERCENT_RIGHT (302)
  578. #define PERCENT_BOTTOM (244)
  579. // top animation part
  580. #define TOP_ANIMATION_LEFT (172) // top animation
  581. #define TOP_ANIMATION_TOP (100)
  582. #define TOP_ANIMATION_RIGHT (307)
  583. #define TOP_ANIMATION_BOTTOM (124)
  584. // for old animation
  585. #define BAR_LEFT (209)
  586. #define BAR_TOP (149)
  587. #define BAR_RIGHT (271)
  588. #define BAR_BOTTOM (282)
  589. #elif defined(HVGA) || defined(CU_HVGA) || defined(CMCC_HVGA) || defined(CT_HVGA) || defined(CMCC_LTE_HVGA)
  590. // hvga 320*480
  591. // battery capacity rectangle
  592. #define CAPACITY_LEFT (109) // battery capacity center
  593. #define CAPACITY_TOP (189)
  594. #define CAPACITY_RIGHT (211)
  595. #define CAPACITY_BOTTOM (350)
  596. // first number rectangle
  597. #define NUMBER_LEFT (126) // number
  598. #define NUMBER_TOP (95)
  599. #define NUMBER_RIGHT (153)
  600. #define NUMBER_BOTTOM (131)
  601. // % rectangle
  602. #define PERCENT_LEFT (180) // percent number_left + 2*number_width
  603. #define PERCENT_TOP (95)
  604. #define PERCENT_RIGHT (212)
  605. #define PERCENT_BOTTOM (131)
  606. // top animation part
  607. #define TOP_ANIMATION_LEFT (109) // top animation
  608. #define TOP_ANIMATION_TOP (100)
  609. #define TOP_ANIMATION_RIGHT (211)
  610. #define TOP_ANIMATION_BOTTOM (118)
  611. // for old animation
  612. #define BAR_LEFT (129)
  613. #define BAR_TOP (128)
  614. #define BAR_RIGHT (190)
  615. #define BAR_BOTTOM (245)
  616. #elif defined(QVGA) || defined(CU_QVGA) || defined(CMCC_QVGA) || defined(CT_QVGA) || defined(CMCC_LTE_QVGA)
  617. // hvga 320*480
  618. // battery capacity rectangle
  619. #define CAPACITY_LEFT (82) // battery capacity center
  620. #define CAPACITY_TOP (124)
  621. #define CAPACITY_RIGHT (158)
  622. #define CAPACITY_BOTTOM (241)
  623. // first number rectangle
  624. #define NUMBER_LEFT (93) // number
  625. #define NUMBER_TOP (50)
  626. #define NUMBER_RIGHT (109)
  627. #define NUMBER_BOTTOM (73)
  628. // % rectangle
  629. #define PERCENT_LEFT (125) // percent number_left + 2*number_width
  630. #define PERCENT_TOP (50)
  631. #define PERCENT_RIGHT (145)
  632. #define PERCENT_BOTTOM (73)
  633. // top animation part
  634. #define TOP_ANIMATION_LEFT (82) // top animation
  635. #define TOP_ANIMATION_TOP (100)
  636. #define TOP_ANIMATION_RIGHT (158)
  637. #define TOP_ANIMATION_BOTTOM (113)
  638. // for old animation
  639. #define BAR_LEFT (97)
  640. #define BAR_TOP (96)
  641. #define BAR_RIGHT (140)
  642. #define BAR_BOTTOM (184)
  643. #elif defined(WSVGA)
  644. // wsvga 600*1024
  645. // battery capacity rectangle
  646. #define CAPACITY_LEFT (232) // battery capacity center
  647. #define CAPACITY_TOP (442)
  648. #define CAPACITY_RIGHT (367)
  649. #define CAPACITY_BOTTOM (658)
  650. // first number rectangle
  651. #define NUMBER_LEFT (250) // number
  652. #define NUMBER_TOP (300)
  653. #define NUMBER_RIGHT (288)
  654. #define NUMBER_BOTTOM (354)
  655. // % rectangle
  656. #define PERCENT_LEFT (326) // percent number_left + 2*number_width
  657. #define PERCENT_TOP (300)
  658. #define PERCENT_RIGHT (374)
  659. #define PERCENT_BOTTOM (354)
  660. // top animation part
  661. #define TOP_ANIMATION_LEFT (232) // top animation
  662. #define TOP_ANIMATION_TOP (100)
  663. #define TOP_ANIMATION_RIGHT (367)
  664. #define TOP_ANIMATION_BOTTOM (124)
  665. // for old animation
  666. #define BAR_LEFT (260)
  667. #define BAR_TOP (190)
  668. #define BAR_RIGHT (338)
  669. #define BAR_BOTTOM (360)
  670. #elif defined(WSVGANL)
  671. // wsvganl 1024*600
  672. // battery capacity rectangle
  673. #define CAPACITY_LEFT (444) // battery capacity center
  674. #define CAPACITY_TOP (230)
  675. #define CAPACITY_RIGHT (579) // 444 + 135
  676. #define CAPACITY_BOTTOM (446)
  677. // first number rectangle
  678. #define NUMBER_LEFT (466) // number
  679. #define NUMBER_TOP (90)
  680. #define NUMBER_RIGHT (504) // 466 + 38
  681. #define NUMBER_BOTTOM (144) // 90 + 54
  682. // % rectangle
  683. #define PERCENT_LEFT (542) // percent number_left + 2*number_width
  684. #define PERCENT_TOP (90)
  685. #define PERCENT_RIGHT (590)
  686. #define PERCENT_BOTTOM (144)
  687. // top animation part
  688. #define TOP_ANIMATION_LEFT (444) // top animation
  689. #define TOP_ANIMATION_TOP (100)
  690. #define TOP_ANIMATION_RIGHT (579)
  691. #define TOP_ANIMATION_BOTTOM (124)
  692. // for old animation
  693. #define BAR_LEFT (414)
  694. #define BAR_TOP (186)
  695. #define BAR_RIGHT (608)
  696. #define BAR_BOTTOM (477)
  697. #elif defined(WXGANL)
  698. // wxganl 1280*800
  699. // battery capacity rectangle
  700. #define CAPACITY_LEFT (558) // battery capacity center
  701. #define CAPACITY_TOP (265)
  702. #define CAPACITY_RIGHT (721) //558+163
  703. #define CAPACITY_BOTTOM (525)
  704. #define NUMBER_LEFT (585) // number
  705. #define NUMBER_TOP (95)
  706. #define NUMBER_RIGHT (630)//585+45
  707. #define NUMBER_BOTTOM (159) //95+64
  708. #define PERCENT_LEFT (675) // percent number_left + 2*number_width
  709. #define PERCENT_TOP (95)
  710. #define PERCENT_RIGHT (732) //675+57
  711. #define PERCENT_BOTTOM (159)
  712. #define TOP_ANIMATION_LEFT (558) // top animation
  713. #define TOP_ANIMATION_TOP (100)
  714. #define TOP_ANIMATION_RIGHT (721)
  715. #define TOP_ANIMATION_BOTTOM (129)
  716. // for old animation
  717. #define BAR_LEFT (525)
  718. #define BAR_TOP (250)
  719. #define BAR_RIGHT (755)
  720. #define BAR_BOTTOM (640)
  721. #elif defined(WXGA)
  722. // wxga 800*1280
  723. // battery capacity rectangle
  724. #define CAPACITY_LEFT (318) // battery capacity center
  725. #define CAPACITY_TOP (556)
  726. #define CAPACITY_RIGHT (481) //318+163
  727. #define CAPACITY_BOTTOM (815)
  728. #define NUMBER_LEFT (345) // number
  729. #define NUMBER_TOP (385)
  730. #define NUMBER_RIGHT (390) //345+45
  731. #define NUMBER_BOTTOM (449) //385+64
  732. #define PERCENT_LEFT (435) // percent number_left + 2*number_width
  733. #define PERCENT_TOP (385)
  734. #define PERCENT_RIGHT (492) //435+57
  735. #define PERCENT_BOTTOM (449)
  736. #define TOP_ANIMATION_LEFT (318) // top animation
  737. #define TOP_ANIMATION_TOP (100)
  738. #define TOP_ANIMATION_RIGHT (481)
  739. #define TOP_ANIMATION_BOTTOM (129)
  740. // for old animation
  741. #define BAR_LEFT (348)
  742. #define BAR_TOP (238)
  743. #define BAR_RIGHT (453)
  744. #define BAR_BOTTOM (452)
  745. #elif defined(WUXGANL)
  746. // wuxganl 1920*1200
  747. // battery capacity rectangle
  748. #define CAPACITY_LEFT (806) // battery capacity center
  749. #define CAPACITY_TOP (443)
  750. #define CAPACITY_RIGHT (1110)
  751. #define CAPACITY_BOTTOM (929)
  752. #define NUMBER_LEFT (855) // number
  753. #define NUMBER_TOP (124)
  754. #define NUMBER_RIGHT (939) //855+84
  755. #define NUMBER_BOTTOM (245)
  756. #define PERCENT_LEFT (1023) // percent number_left + 2*number_width
  757. #define PERCENT_TOP (124)
  758. #define PERCENT_RIGHT (1131) //1023+108
  759. #define PERCENT_BOTTOM (245) //124+121
  760. #define TOP_ANIMATION_LEFT (806) // top animation
  761. #define TOP_ANIMATION_TOP (100)
  762. #define TOP_ANIMATION_RIGHT (1110) //806+304
  763. #define TOP_ANIMATION_BOTTOM (152)
  764. // for old animation
  765. #define BAR_LEFT (890)
  766. #define BAR_TOP (357)
  767. #define BAR_RIGHT (1030)
  768. #define BAR_BOTTOM (678)
  769. #elif defined(WUXGA) || defined(CU_WUXGA)
  770. // wuxga 1200*1920
  771. // battery capacity rectangle
  772. #define CAPACITY_LEFT (447) // battery capacity center
  773. #define CAPACITY_TOP (803)
  774. #define CAPACITY_RIGHT (751)
  775. #define CAPACITY_BOTTOM (1289)
  776. #define NUMBER_LEFT (494) // number
  777. #define NUMBER_TOP (481)
  778. #define NUMBER_RIGHT (578)//494+84
  779. #define NUMBER_BOTTOM (602) //481+121
  780. #define PERCENT_LEFT (662) // percent number_left + 2*number_width
  781. #define PERCENT_TOP (481)
  782. #define PERCENT_RIGHT (770) //662+108
  783. #define PERCENT_BOTTOM (602) //481+121
  784. #define TOP_ANIMATION_LEFT (447) // top animation
  785. #define TOP_ANIMATION_TOP (100)
  786. #define TOP_ANIMATION_RIGHT (751)
  787. #define TOP_ANIMATION_BOTTOM (152)
  788. // for old animation
  789. #define BAR_LEFT (529)
  790. #define BAR_TOP (357)
  791. #define BAR_RIGHT (672)
  792. #define BAR_BOTTOM (680)
  793. #elif defined(XGA)
  794. // xga 768*1024
  795. // battery capacity rectangle
  796. #define CAPACITY_LEFT (316) // battery capacity center
  797. #define CAPACITY_TOP (442)
  798. #define CAPACITY_RIGHT (451)
  799. #define CAPACITY_BOTTOM (658)
  800. #define NUMBER_LEFT (338) // number
  801. #define NUMBER_TOP (300)
  802. #define NUMBER_RIGHT (376)
  803. #define NUMBER_BOTTOM (354)
  804. #define PERCENT_LEFT (414) // percent number_left + 2*number_width
  805. #define PERCENT_TOP (300)
  806. #define PERCENT_RIGHT (462)
  807. #define PERCENT_BOTTOM (354)
  808. #define TOP_ANIMATION_LEFT (316) // top animation
  809. #define TOP_ANIMATION_TOP (100)
  810. #define TOP_ANIMATION_RIGHT (451)
  811. #define TOP_ANIMATION_BOTTOM (124)
  812. // for old animation
  813. #define BAR_LEFT (334)
  814. #define BAR_TOP (243)
  815. #define BAR_RIGHT (434)
  816. #define BAR_BOTTOM (463)
  817. #elif defined(XGANL)
  818. // xganl 1024*768
  819. // battery capacity rectangle
  820. #define CAPACITY_LEFT (444) // battery capacity center
  821. #define CAPACITY_TOP (314)
  822. #define CAPACITY_RIGHT (579)
  823. #define CAPACITY_BOTTOM (530)
  824. #define NUMBER_LEFT (467) // number
  825. #define NUMBER_TOP (170)
  826. #define NUMBER_RIGHT (505)
  827. #define NUMBER_BOTTOM (224)
  828. #define PERCENT_LEFT (543) // percent number_left + 2*number_width
  829. #define PERCENT_TOP (170)
  830. #define PERCENT_RIGHT (591)
  831. #define PERCENT_BOTTOM (224)
  832. #define TOP_ANIMATION_LEFT (444) // top animation
  833. #define TOP_ANIMATION_TOP (100)
  834. #define TOP_ANIMATION_RIGHT (579)
  835. #define TOP_ANIMATION_BOTTOM (124)
  836. // for old animation
  837. #define BAR_LEFT (486)
  838. #define BAR_TOP (292)
  839. #define BAR_RIGHT (590)
  840. #define BAR_BOTTOM (506)
  841. #else
  842. // default wvga 480*800
  843. // battery capacity rectangle
  844. #define CAPACITY_LEFT (172) // battery capacity center
  845. #define CAPACITY_TOP (330)
  846. #define CAPACITY_RIGHT (307)
  847. #define CAPACITY_BOTTOM (546)
  848. // first number rectangle
  849. #define NUMBER_LEFT (178) // number
  850. #define NUMBER_TOP (190)
  851. #define NUMBER_RIGHT (216)
  852. #define NUMBER_BOTTOM (244)
  853. // % rectangle
  854. #define PERCENT_LEFT (254) // percent number_left + 2*number_width
  855. #define PERCENT_TOP (190)
  856. #define PERCENT_RIGHT (302)
  857. #define PERCENT_BOTTOM (244)
  858. // top animation part
  859. #define TOP_ANIMATION_LEFT (172) // top animation
  860. #define TOP_ANIMATION_TOP (100)
  861. #define TOP_ANIMATION_RIGHT (307)
  862. #define TOP_ANIMATION_BOTTOM (124)
  863. // for old animation
  864. #define BAR_LEFT (209)
  865. #define BAR_TOP (149)
  866. #define BAR_RIGHT (271)
  867. #define BAR_BOTTOM (282)
  868. #endif
  869. /* The option of new charging animation */
  870. #define ANIMATION_NEW
  871. #endif // __CUST_DISPLAY_H__