android关机位置定位,Android5.0关机充电动画位置

充电动画位置

bootable\bootloader\lk\dev\logo

充电动画对应的分辨率:

\bootable\bootloader\lk\project\XX.mk

BOOT_LOGO := wxga

#

LOCAL_DIR := $(GET_LOCAL_DIR)

TARGET := teft6752_lwt_l

MODULES += app/mt_boot \

dev/lcm

MTK_EMMC_SUPPORT = yes

DEFINES += MTK_NEW_COMBO_EMMC_SUPPORT

MTK_KERNEL_POWER_OFF_CHARGING = yes

DEFINES += MTK_PUMP_EXPRESS_PLUS_SUPPORT

DEFINES += SWCHR_POWER_PATH

#DEFINES += MTK_BQ24261_SUPPORT

DEFINES += MTK_LT3650_SUPPORT

MTK_LCM_PHYSICAL_ROTATION = 0

CONFIG_CUSTOM_LK_LCM="cpt_lq070k1lx80_sn65dsi8x"

#nt35595_fhd_dsi_cmd_truly_nt50358 = yes

#FASTBOOT_USE_G_ORIGINAL_PROTOCOL = yes

MTK_SECURITY_SW_SUPPORT=no

MTK_VERIFIED_BOOT_SUPPORT = yes

MTK_SEC_FASTBOOT_UNLOCK_SUPPORT = yes

BOOT_LOGO := wxga

#DEFINES += WITH_DEBUG_DCC=1

DEFINES += WITH_DEBUG_UART=1

#DEFINES += WITH_DEBUG_FBCON=1

#DEFINES += MACH_FPGA=y

CUSTOM_LK_USB_UNIQUE_SERIAL=no

MTK6795 MTK6752修改 动画错位文件

vendor\mediatek\proprietary\external\libshowlogo

cust_display.h修改对应的分辨率

/*****************************************************************************

* Copyright Statement:

* --------------------

* This software is protected by Copyright and the information contained

* herein is confidential. The software may not be copied and the information

* contained herein may not be used or disclosed except with the written

* permission of MediaTek Inc. (C) 2008

*

* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES

* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")

* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON

* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,

* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF

* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.

* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE

* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR

* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH

* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO

* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S

* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.

*

* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE

* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,

* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,

* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO

* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.

*

* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE

* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF

* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND

* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER

* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).

*

*****************************************************************************/

/*

// new animation parameters example:WVGA (480*800)

// A , start point of first number rectangle

// B , left_top point of battery_capacity fill_in rectangle

// c , left_bottom point of battery_capacity fill_in rectangle

// battery capacity rectangle

#define CAPACITY_LEFT (172) // CAPACITY_LEFT = B.x = 172

#define CAPACITY_TOP (330) // CAPACITY_TOP = B.y = 330

#define CAPACITY_RIGHT (307) // CAPACITY_RIGHT = B.x + fill_line.w = 172 + 135

#define CAPACITY_BOTTOM (546) // CAPACITY_BOTTOM = C.y = 546

// first number rectangle

#define NUMBER_LEFT (178) // NUMBER_LEFT = A.x

#define NUMBER_TOP (190) // NUMBER_TOP = A.y

#define NUMBER_RIGHT (216) // NUMBER_RIGHT = A.x + num.w = 178 + 38

#define NUMBER_BOTTOM (244) // NUMBER_BOTTOM = A.y + num.h = 190 + 54

// % rectangle

#define PERCENT_LEFT (254) // PERCENT_LEFT = A.x + 2*num.w = 178 + 2*38

#define PERCENT_TOP (190) // PERCENT_TOP = A.y

#define PERCENT_RIGHT (302) // PERCENT_LEFT = A.x + 2*num.w +(%).w

#define PERCENT_BOTTOM (244) // PERCENT_BOTTOM = A.y + (%).h = 190 + 54

// top animation part

#define TOP_ANIMATION_LEFT (172) // TOP_ANIMATION_LEFT = B.x

#define TOP_ANIMATION_TOP (100) // 100

#define TOP_ANIMATION_RIGHT (307) // TOP_ANIMATION_LEFT = B.x + fill_line.w = 172 + 135

#define TOP_ANIMATION_BOTTOM (124) // TOP_ANIMATION_BOTTOM = TOP_ANIMATION_TOP + fill_line.h = 100 + 24

*/

#ifndef __CUST_DISPLAY_H__

#define __CUST_DISPLAY_H__

// color

#define BAR_OCCUPIED_COLOR (0xFF00FF00) // Green

#define BAR_EMPTY_COLOR (0xFFFFFFFF) // White

#define BAR_BG_COLOR (0xFF000000) // Black

// LOGO number

#define ANIM_V0_LOGO_NUM 5 // version 0: show 4 recatangle growing animation without battery number

#define ANIM_V1_LOGO_NUM 39 // version 1: show wave animation with battery number

#define ANIM_V2_LOGO_NUM 86 // version 2: show wireless charging animation

// Common LOGO index

#define BOOT_LOGO_INDEX 0

#define KERNEL_LOGO_INDEX 38

#define ANIM_V0_BACKGROUND_INDEX 1

#define ANIM_V1_BACKGROUND_INDEX 35

#define LOW_BATTERY_INDEX 2

#define CHARGER_OV_INDEX 3

#define FULL_BATTERY_INDEX 37

// version 1: show wave animation with battery number

// NUMBER LOGO INDEX

#define NUMBER_PIC_START_0 4

#define NUMBER_PIC_PERCENT 14

// DYNAMIC ANIMATION LOGO INDEX

#define BAT_ANIM_START_0 15

// LOW BATTERY(0~10%) ANIMATION LOGO

#define LOW_BAT_ANIM_START_0 25

#define ANIM_LINE_INDEX 36

// version 2: show wireless charging animation logo index

#define V2_NUM_START_0_INDEX 57

#define V2_NUM_PERCENT_INDEX 67

#define V2_BAT_0_10_START_INDEX 68

#define V2_BAT_10_40_START_INDEX 72

#define V2_BAT_40_80_START_INDEX 76

#define V2_BAT_80_100_START_NDEX 80

#define V2_BAT_0_INDEX 84

#define V2_BAT_100_INDEX 85

// show fast charging animation logo index

#define FAST_CHARGING_BAT_100_INDEX 39

#define FAST_CHARGING_BAT_START_0_INDEX 40

#define FAST_CHARGING_NUM_START_0_INDEX 46

#define FAST_CHARGING_NUM_PERCENT_INDEX 56

#if defined(FHD) || defined(CU_FHD) || defined(CMCC_FHD) || defined(CT_FHD) || defined(CMCC_LTE_FHD)

// fhd 1080*1920

// battery capacity rectangle

#define CAPACITY_LEFT (387) // battery capacity center

#define CAPACITY_TOP (802)

#define CAPACITY_RIGHT (691)

#define CAPACITY_BOTTOM (1292)

// first number rectangle

#define NUMBER_LEFT (351+84) // number

#define NUMBER_TOP (479)

#define NUMBER_RIGHT (435+84)

#define NUMBER_BOTTOM (600)

// % rectangle

#define PERCENT_LEFT (519+84) // percent number_left + 2*number_width

#define PERCENT_TOP (479)

#define PERCENT_RIGHT (627+84)

#define PERCENT_BOTTOM (600)

// top animation part

#define TOP_ANIMATION_LEFT (387) // top animation

#define TOP_ANIMATION_TOP (100)

#define TOP_ANIMATION_RIGHT (691)

#define TOP_ANIMATION_BOTTOM (152)

// for old animation

#define BAR_LEFT (470)

#define BAR_TOP (356)

#define BAR_RIGHT (610)

#define BAR_BOTTOM (678)

#elif defined(WQHD) || defined(CU_WQHD) || defined(CMCC_WQHD) || defined(CT_WQHD) || defined(CMCC_LTE_WQHD)

// wqhd 1440*2560

// battery capacity rectangle

#define CAPACITY_LEFT (556) // battery capacity center

#define CAPACITY_TOP (1112)

#define CAPACITY_RIGHT (882)

#define CAPACITY_BOTTOM (1630)

// first number rectangle

#define NUMBER_LEFT (570) // number

#define NUMBER_TOP (770)

#define NUMBER_RIGHT (660)

#define NUMBER_BOTTOM (898)

// % rectangle

#define PERCENT_LEFT (750) // percent number_left + 2*number_width

#define PERCENT_TOP (770)

#define PERCENT_RIGHT (864)

#define PERCENT_BOTTOM (898)

// top animation part

#define TOP_ANIMATION_LEFT (556) // top animation

#define TOP_ANIMATION_TOP (100)

#define TOP_ANIMATION_RIGHT (882)

#define TOP_ANIMATION_BOTTOM (158)

// for old animation

#define BAR_LEFT (443)

#define BAR_TOP (337)

#define BAR_RIGHT (574)

#define BAR_BOTTOM (641)

#elif defined(HD720) || defined(CU_HD720) || defined(CMCC_HD720) || defined(CT_HD720) || defined(CMCC_LTE_HD720)

// hd720 720*1280

// battery capacity rectangle

#define CAPACITY_LEFT (278) // battery capacity center

#define CAPACITY_TOP (556)

#define CAPACITY_RIGHT (441)

#define CAPACITY_BOTTOM (817)

// first number rectangle

#define NUMBER_LEFT (290) // number

#define NUMBER_TOP (386)

#define NUMBER_RIGHT (335)

#define NUMBER_BOTTOM (450)

// % rectangle

#define PERCENT_LEFT (380) // percent number_left + 2*number_width

#define PERCENT_TOP (386)

#define PERCENT_RIGHT (437)

#define PERCENT_BOTTOM (450)

// top animation part

#define TOP_ANIMATION_LEFT (278) // top animation

#define TOP_ANIMATION_TOP (100)

#define TOP_ANIMATION_RIGHT (441)

#define TOP_ANIMATION_BOTTOM (129)

// for old animation

#define BAR_LEFT (313)

#define BAR_TOP (238)

#define BAR_RIGHT (406)

#define BAR_BOTTOM (453)

#elif defined(FWVGA) || defined(CU_FWVGA) || defined(CMCC_FWVGA) || defined(CT_FWVGA) || defined(CMCC_LTE_FWVGA)

// fwvga 480*854

// battery capacity rectangle

#define CAPACITY_LEFT (172) // battery capacity center

#define CAPACITY_TOP (357)

#define CAPACITY_RIGHT (307)

#define CAPACITY_BOTTOM (573)

// first number rectangle

#define NUMBER_LEFT (172) // number

#define NUMBER_TOP (213)

#define NUMBER_RIGHT (210)

#define NUMBER_BOTTOM (267)

// % rectangle

#define PERCENT_LEFT (248) // percent number_left + 2*number_width

#define PERCENT_TOP (213)

#define PERCENT_RIGHT (296)

#define PERCENT_BOTTOM (267)

// top animation part

#define TOP_ANIMATION_LEFT (172) // top animation

#define TOP_ANIMATION_TOP (100)

#define TOP_ANIMATION_RIGHT (307)

#define TOP_ANIMATION_BOTTOM (124)

// for old animation

#define BAR_LEFT (184)

#define BAR_TOP (227)

#define BAR_RIGHT (294)

#define BAR_BOTTOM (437)

#elif defined(QHD) || defined(CU_QHD) || defined(CMCC_QHD) || defined(CT_QHD) || defined(CMCC_LTE_QHD)

// qhd 540*960

// battery capacity rectangle

#define CAPACITY_LEFT (202) // battery capacity center

#define CAPACITY_TOP (410)

#define CAPACITY_RIGHT (337)

#define CAPACITY_BOTTOM (626)

// first number rectangle

#define NUMBER_LEFT (202) // number

#define NUMBER_TOP (266)

#define NUMBER_RIGHT (240)

#define NUMBER_BOTTOM (320)

// % rectangle

#define PERCENT_LEFT (278) // percent number_left + 2*number_width

#define PERCENT_TOP (266)

#define PERCENT_RIGHT (326)

#define PERCENT_BOTTOM (320)

// top animation part

#define TOP_ANIMATION_LEFT (202) // top animation

#define TOP_ANIMATION_TOP (100)

#define TOP_ANIMATION_RIGHT (337)

#define TOP_ANIMATION_BOTTOM (124)

// for old animation

#define BAR_LEFT (235)

#define BAR_TOP (179)

#define BAR_RIGHT (305)

#define BAR_BOTTOM (340)

#elif defined(WVGA) || defined(CU_WVGA) || defined(CMCC_WVGA) || defined(CT_WVGA) || defined(CMCC_LTE_WVGA)

// default wvga 480*800

// battery capacity rectangle

#define CAPACITY_LEFT (172) // battery capacity center

#define CAPACITY_TOP (330)

#define CAPACITY_RIGHT (307)

#define CAPACITY_BOTTOM (546)

// first number rectangle

#define NUMBER_LEFT (178) // number

#define NUMBER_TOP (190)

#define NUMBER_RIGHT (216)

#define NUMBER_BOTTOM (244)

// % rectangle

#define PERCENT_LEFT (254) // percent number_left + 2*number_width

#define PERCENT_TOP (190)

#define PERCENT_RIGHT (302)

#define PERCENT_BOTTOM (244)

// top animation part

#define TOP_ANIMATION_LEFT (172) // top animation

#define TOP_ANIMATION_TOP (100)

#define TOP_ANIMATION_RIGHT (307)

#define TOP_ANIMATION_BOTTOM (124)

// for old animation

#define BAR_LEFT (209)

#define BAR_TOP (149)

#define BAR_RIGHT (271)

#define BAR_BOTTOM (282)

#elif defined(HVGA) || defined(CU_HVGA) || defined(CMCC_HVGA) || defined(CT_HVGA) || defined(CMCC_LTE_HVGA)

// hvga 320*480

// battery capacity rectangle

#define CAPACITY_LEFT (109) // battery capacity center

#define CAPACITY_TOP (189)

#define CAPACITY_RIGHT (211)

#define CAPACITY_BOTTOM (350)

// first number rectangle

#define NUMBER_LEFT (126) // number

#define NUMBER_TOP (95)

#define NUMBER_RIGHT (153)

#define NUMBER_BOTTOM (131)

// % rectangle

#define PERCENT_LEFT (180) // percent number_left + 2*number_width

#define PERCENT_TOP (95)

#define PERCENT_RIGHT (212)

#define PERCENT_BOTTOM (131)

// top animation part

#define TOP_ANIMATION_LEFT (109) // top animation

#define TOP_ANIMATION_TOP (100)

#define TOP_ANIMATION_RIGHT (211)

#define TOP_ANIMATION_BOTTOM (118)

// for old animation

#define BAR_LEFT (129)

#define BAR_TOP (128)

#define BAR_RIGHT (190)

#define BAR_BOTTOM (245)

#elif defined(QVGA) || defined(CU_QVGA) || defined(CMCC_QVGA) || defined(CT_QVGA) || defined(CMCC_LTE_QVGA)

// hvga 320*480

// battery capacity rectangle

#define CAPACITY_LEFT (82) // battery capacity center

#define CAPACITY_TOP (124)

#define CAPACITY_RIGHT (158)

#define CAPACITY_BOTTOM (241)

// first number rectangle

#define NUMBER_LEFT (93) // number

#define NUMBER_TOP (50)

#define NUMBER_RIGHT (109)

#define NUMBER_BOTTOM (73)

// % rectangle

#define PERCENT_LEFT (125) // percent number_left + 2*number_width

#define PERCENT_TOP (50)

#define PERCENT_RIGHT (145)

#define PERCENT_BOTTOM (73)

// top animation part

#define TOP_ANIMATION_LEFT (82) // top animation

#define TOP_ANIMATION_TOP (100)

#define TOP_ANIMATION_RIGHT (158)

#define TOP_ANIMATION_BOTTOM (113)

// for old animation

#define BAR_LEFT (97)

#define BAR_TOP (96)

#define BAR_RIGHT (140)

#define BAR_BOTTOM (184)

#elif defined(WSVGA)

// wsvga 600*1024

// battery capacity rectangle

#define CAPACITY_LEFT (232) // battery capacity center

#define CAPACITY_TOP (442)

#define CAPACITY_RIGHT (367)

#define CAPACITY_BOTTOM (658)

// first number rectangle

#define NUMBER_LEFT (250) // number

#define NUMBER_TOP (300)

#define NUMBER_RIGHT (288)

#define NUMBER_BOTTOM (354)

// % rectangle

#define PERCENT_LEFT (326) // percent number_left + 2*number_width

#define PERCENT_TOP (300)

#define PERCENT_RIGHT (374)

#define PERCENT_BOTTOM (354)

// top animation part

#define TOP_ANIMATION_LEFT (232) // top animation

#define TOP_ANIMATION_TOP (100)

#define TOP_ANIMATION_RIGHT (367)

#define TOP_ANIMATION_BOTTOM (124)

// for old animation

#define BAR_LEFT (260)

#define BAR_TOP (190)

#define BAR_RIGHT (338)

#define BAR_BOTTOM (360)

#elif defined(WSVGANL)

// wsvganl 1024*600

// battery capacity rectangle

#define CAPACITY_LEFT (444) // battery capacity center

#define CAPACITY_TOP (230)

#define CAPACITY_RIGHT (579) // 444 + 135

#define CAPACITY_BOTTOM (446)

// first number rectangle

#define NUMBER_LEFT (466) // number

#define NUMBER_TOP (90)

#define NUMBER_RIGHT (504) // 466 + 38

#define NUMBER_BOTTOM (144) // 90 + 54

// % rectangle

#define PERCENT_LEFT (542) // percent number_left + 2*number_width

#define PERCENT_TOP (90)

#define PERCENT_RIGHT (590)

#define PERCENT_BOTTOM (144)

// top animation part

#define TOP_ANIMATION_LEFT (444) // top animation

#define TOP_ANIMATION_TOP (100)

#define TOP_ANIMATION_RIGHT (579)

#define TOP_ANIMATION_BOTTOM (124)

// for old animation

#define BAR_LEFT (414)

#define BAR_TOP (186)

#define BAR_RIGHT (608)

#define BAR_BOTTOM (477)

#elif defined(WXGANL)

// wxganl 1280*800

// battery capacity rectangle

#define CAPACITY_LEFT (558) // battery capacity center

#define CAPACITY_TOP (265)

#define CAPACITY_RIGHT (721) //558+163

#define CAPACITY_BOTTOM (525)

#define NUMBER_LEFT (585) // number

#define NUMBER_TOP (95)

#define NUMBER_RIGHT (630)//585+45

#define NUMBER_BOTTOM (159) //95+64

#define PERCENT_LEFT (675) // percent number_left + 2*number_width

#define PERCENT_TOP (95)

#define PERCENT_RIGHT (732) //675+57

#define PERCENT_BOTTOM (159)

#define TOP_ANIMATION_LEFT (558) // top animation

#define TOP_ANIMATION_TOP (100)

#define TOP_ANIMATION_RIGHT (721)

#define TOP_ANIMATION_BOTTOM (129)

// for old animation

#define BAR_LEFT (525)

#define BAR_TOP (250)

#define BAR_RIGHT (755)

#define BAR_BOTTOM (640)

#elif defined(WXGA)

// wxga 800*1280

// battery capacity rectangle

#define CAPACITY_LEFT (318) // battery capacity center

#define CAPACITY_TOP (556)

#define CAPACITY_RIGHT (481) //318+163

#define CAPACITY_BOTTOM (815)

#define NUMBER_LEFT (345) // number

#define NUMBER_TOP (385)

#define NUMBER_RIGHT (390) //345+45

#define NUMBER_BOTTOM (449) //385+64

#define PERCENT_LEFT (435) // percent number_left + 2*number_width

#define PERCENT_TOP (385)

#define PERCENT_RIGHT (492) //435+57

#define PERCENT_BOTTOM (449)

#define TOP_ANIMATION_LEFT (318) // top animation

#define TOP_ANIMATION_TOP (100)

#define TOP_ANIMATION_RIGHT (481)

#define TOP_ANIMATION_BOTTOM (129)

// for old animation

#define BAR_LEFT (348)

#define BAR_TOP (238)

#define BAR_RIGHT (453)

#define BAR_BOTTOM (452)

#elif defined(WUXGANL)

// wuxganl 1920*1200

// battery capacity rectangle

#define CAPACITY_LEFT (806) // battery capacity center

#define CAPACITY_TOP (443)

#define CAPACITY_RIGHT (1110)

#define CAPACITY_BOTTOM (929)

#define NUMBER_LEFT (855) // number

#define NUMBER_TOP (124)

#define NUMBER_RIGHT (939) //855+84

#define NUMBER_BOTTOM (245)

#define PERCENT_LEFT (1023) // percent number_left + 2*number_width

#define PERCENT_TOP (124)

#define PERCENT_RIGHT (1131) //1023+108

#define PERCENT_BOTTOM (245) //124+121

#define TOP_ANIMATION_LEFT (806) // top animation

#define TOP_ANIMATION_TOP (100)

#define TOP_ANIMATION_RIGHT (1110) //806+304

#define TOP_ANIMATION_BOTTOM (152)

// for old animation

#define BAR_LEFT (890)

#define BAR_TOP (357)

#define BAR_RIGHT (1030)

#define BAR_BOTTOM (678)

#elif defined(WUXGA) || defined(CU_WUXGA)

// wuxga 1200*1920

// battery capacity rectangle

#define CAPACITY_LEFT (447) // battery capacity center

#define CAPACITY_TOP (803)

#define CAPACITY_RIGHT (751)

#define CAPACITY_BOTTOM (1289)

#define NUMBER_LEFT (494) // number

#define NUMBER_TOP (481)

#define NUMBER_RIGHT (578)//494+84

#define NUMBER_BOTTOM (602) //481+121

#define PERCENT_LEFT (662) // percent number_left + 2*number_width

#define PERCENT_TOP (481)

#define PERCENT_RIGHT (770) //662+108

#define PERCENT_BOTTOM (602) //481+121

#define TOP_ANIMATION_LEFT (447) // top animation

#define TOP_ANIMATION_TOP (100)

#define TOP_ANIMATION_RIGHT (751)

#define TOP_ANIMATION_BOTTOM (152)

// for old animation

#define BAR_LEFT (529)

#define BAR_TOP (357)

#define BAR_RIGHT (672)

#define BAR_BOTTOM (680)

#elif defined(XGA)

// xga 768*1024

// battery capacity rectangle

#define CAPACITY_LEFT (316) // battery capacity center

#define CAPACITY_TOP (442)

#define CAPACITY_RIGHT (451)

#define CAPACITY_BOTTOM (658)

#define NUMBER_LEFT (338) // number

#define NUMBER_TOP (300)

#define NUMBER_RIGHT (376)

#define NUMBER_BOTTOM (354)

#define PERCENT_LEFT (414) // percent number_left + 2*number_width

#define PERCENT_TOP (300)

#define PERCENT_RIGHT (462)

#define PERCENT_BOTTOM (354)

#define TOP_ANIMATION_LEFT (316) // top animation

#define TOP_ANIMATION_TOP (100)

#define TOP_ANIMATION_RIGHT (451)

#define TOP_ANIMATION_BOTTOM (124)

// for old animation

#define BAR_LEFT (334)

#define BAR_TOP (243)

#define BAR_RIGHT (434)

#define BAR_BOTTOM (463)

#elif defined(XGANL)

// xganl 1024*768

// battery capacity rectangle

#define CAPACITY_LEFT (444) // battery capacity center

#define CAPACITY_TOP (314)

#define CAPACITY_RIGHT (579)

#define CAPACITY_BOTTOM (530)

#define NUMBER_LEFT (467) // number

#define NUMBER_TOP (170)

#define NUMBER_RIGHT (505)

#define NUMBER_BOTTOM (224)

#define PERCENT_LEFT (543) // percent number_left + 2*number_width

#define PERCENT_TOP (170)

#define PERCENT_RIGHT (591)

#define PERCENT_BOTTOM (224)

#define TOP_ANIMATION_LEFT (444) // top animation

#define TOP_ANIMATION_TOP (100)

#define TOP_ANIMATION_RIGHT (579)

#define TOP_ANIMATION_BOTTOM (124)

// for old animation

#define BAR_LEFT (486)

#define BAR_TOP (292)

#define BAR_RIGHT (590)

#define BAR_BOTTOM (506)

#elif defined(QXGA)

// qxga 1536x2048

// battery capacity rectangle

#define CAPACITY_LEFT (605) // battery capacity center

#define CAPACITY_TOP (857)

#define CAPACITY_RIGHT (929)

#define CAPACITY_BOTTOM (1375)

#define NUMBER_LEFT (662) // number

#define NUMBER_TOP (517)

#define NUMBER_RIGHT (756)

#define NUMBER_BOTTOM (647)

#define PERCENT_LEFT (850) // percent number_left + 2*number_width

#define PERCENT_TOP (517)

#define PERCENT_RIGHT (968)

#define PERCENT_BOTTOM (647)

#define TOP_ANIMATION_LEFT (605) // top animation

#define TOP_ANIMATION_TOP (100)

#define TOP_ANIMATION_RIGHT (929)

#define TOP_ANIMATION_BOTTOM (155)

// for old animation

#define BAR_LEFT (693)

#define BAR_TOP (381)

#define BAR_RIGHT (844)

#define BAR_BOTTOM (725)

#else

// default wvga 480*800

// battery capacity rectangle

#define CAPACITY_LEFT (172) // battery capacity center

#define CAPACITY_TOP (330)

#define CAPACITY_RIGHT (307)

#define CAPACITY_BOTTOM (546)

// first number rectangle

#define NUMBER_LEFT (178) // number

#define NUMBER_TOP (190)

#define NUMBER_RIGHT (216)

#define NUMBER_BOTTOM (244)

// % rectangle

#define PERCENT_LEFT (254) // percent number_left + 2*number_width

#define PERCENT_TOP (190)

#define PERCENT_RIGHT (302)

#define PERCENT_BOTTOM (244)

// top animation part

#define TOP_ANIMATION_LEFT (172) // top animation

#define TOP_ANIMATION_TOP (100)

#define TOP_ANIMATION_RIGHT (307)

#define TOP_ANIMATION_BOTTOM (124)

// for old animation

#define BAR_LEFT (209)

#define BAR_TOP (149)

#define BAR_RIGHT (271)

#define BAR_BOTTOM (282)

#endif

/* The option of new charging animation */

#define ANIMATION_NEW

#endif // __CUST_DISPLAY_H__

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/353984.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

nosql的数据服务_使用NoSQL实现实体服务–第3部分:CouchDB

nosql的数据服务在本系列的第2部分中 ,我使用SOA的“合同优先”技术创建和部署了产品实体服务,现在,我将致力于服务实现的NoSQL数据库方面。 正如我在第1部分中已经提到的那样,我已经选择CouchDB作为我的NoSQL数据库,选…

缓存穿透、缓存击穿与失效时的雪崩效应

问题,原理,解决方案转载于:https://www.cnblogs.com/tuhooo/p/8573614.html

android电视root权限获取,电视盒子/ 智能电视如何通过ADB获取ROOT权限?

如何通过adb获取root权限(安卓电视盒和智能电视通用)?Android 系统rom里面最主要的就3个文件:boot.img、system.img、userdata.img其中boot.img 存放着内核以及Android系统的配置信息,比如android系统各文件夹的读写权限,adb 的权限。所以如…

确定活动的热点垃圾收集器

StackOverflow问题查找正在运行哪种类型的垃圾收集 器,jvm的默认垃圾收集器 , 如何通过查看gc日志来查看正在运行的垃圾收集器? ,以及如何知道HotSpot jvm的当前GC策略? 和博客文章如何以编程方式获取GC信息表明了人们…

spring3: Aspectj后置返回通知

Aspectj后置返回通知 接口: package chapter1.server;public interface IHelloService2 {public int sayAfterReturning(String param); }接口实现 package chapter1.service.impl;import chapter1.server.IHelloService2;public class HelloService2 implements IH…

Android加密通信防抓包,[原创]基于Taintdroid思想的android ssl\tsl保密通信抓包研究(未成功,分享一下思路)...

[旧帖][原创]基于Taintdroid思想的android ssl\tsl保密通信抓包研究(未成功,分享一下思路)0.00元2014-5-12 22:071565[旧帖][原创]基于Taintdroid思想的android ssl\tsl保密通信抓包研究(未成功,分享一下思路)0.00元2014-5-12 22:071565这篇文章我先在CS…

app store 关键词

如何选取关键字,让你的应用关键词越来越多? 很多朋友在做应用商店优化的时候,都会遇到一个让人很头疼的问题:如何选取关键词?关键词的质量直接关系到App的自然下载量,所以,我们应该用科学的办法…

android 调用微信语音识别,Android 仿微信语音识别

参考于:Android模仿微信语音聊天功能,这代码跑起来有问题,自己改动了一下,基本上没什么大问题先贴下效果图1、三个布局文件activity_main.xmldialog_manger.xmlitem_layout2.自定义的类(1)DialogMangerpackage com.nickming.view;…

android sendmessage和post的区别,handler中post和send方式区别

handler中post和send方式的区别1、从用法上send:发送的是Messagepost:发送的是Runnable对象具体用法,如下代码演示:MainActivity.javapublic class MainActivity extends AppCompatActivity {private TextView textView;private s…

耐心新来按部就班

当快速解决问题的思路行不通时,需要停下来,慢慢一步一步分析,找到问题根源,然后解决问题。转载于:https://www.cnblogs.com/Tpf386/p/8579365.html

Java:不朽的对象和对象复活

什么是对象复活? 当没有其他对象引用该对象时,该Java对象可以进行垃圾回收。 当JVM:s垃圾收集器最终将要删除未使用的对象时,将调用该对象的finalize()方法。 但是,如果我们再次使用对象自己的finalize()方法重新创建对…

老罗android oat,入门ART虚拟机(5)——OAT文件

Android安全交流群:478084054先贴老罗的一张图:再摘一段老罗的描述:“作为Android私有的一种ELF文件,OAT文件包含有两个特殊的段oatdata和oatexec,前者包含有用来生成本地机器指令的dex文件内容,后者包含生…

C#给字符串赋予字面值——字符串插入、转义序列的使用

1.占位符、字符串插入 给字符串赋予字面值时,经常遇见在字符串中包含变量的情况,用连接符进行拼接、转换的方式比较麻烦、还容易出错。C#提供了较为便捷的处理方式,即‘占位符’,以及C#6的新功能‘插入字符串’(没记错…

Dajngo-Xadmin 修改菜单摆放排序

问题: Xadmin 默认是读取了所有被注册到 xadmin 的模型生成对应的菜单!这个是没问题的 ,但是xadmin又对菜单做了 "通过菜单名称" 排序.英文状态下我们的排列至少是 a-z排列的,但是一到中文就乱了,完全不符合我们的要求. 解决办法: 要到达按照我们 在 django 的 setti…

华为鸿蒙2.0什么核心,鸿蒙系统2.0:安卓最核心部分基本已去除,将带来全新的体验...

早些时候,华为在东莞举办的华为2020华为开发者大会如期召开,在大会上华为正式发布了鸿蒙系统2.0,并称将于明年应用到智能手机上,其中升级了EMUI 11的用户可以优先获得体验鸿蒙系统2.0的资格,瞬间将会议推向高潮。值得一…

fork join框架使用_Java:使用Fork / Join框架的Mergesort

fork join框架使用此项的目的是显示一个Fork / Join RecursiveAction的简单示例,而不是过多地探讨合并排序的可能优化方法,或者比使用Exkutor / Join Pool优于现有的基于Java 6的现有实现(如ExecutorService)的相对优势。 以下是使…

Java最大公约数和最小公倍数的求法(辗转相除法)

这道题计算了三个数的最小公倍数 1 import java.util.Scanner;2 3 public class D {4 public static int gcd(int a,int b) {5 int max a>b?a:b;6 int min a<b?a:b;7 if(max%min ! 0) {8 return gcd(min,max%min);9 …

html隐藏块元素过度动画,CSS3实现DIV图层隐藏到显示的过渡效果

本文介绍CSS3实现DIV图层隐藏到显示的过渡效果&#xff0c;可用于产品列表的产品简介过渡显示与隐藏等&#xff0c;希望对你有所帮助。CSS3的transition过渡属性对于页面元素的显隐并没有提供过渡方法&#xff01;所以DIV图层从display&#xff1a;none到display&#xff1a;bl…

Java 8:在2分钟内将智能流与数据库一起使用

快速流媒体 当Java 8最终问世时&#xff0c;我和一些大学开始了一个开源项目&#xff0c;以利用Java 8的流库使整个Java / DB问题进一步向前发展&#xff0c;以便将数据库表视为纯Java 8流。 速度诞生了&#xff01; 哇&#xff0c;现在我们可以做类型安全的数据库应用程序了&a…

MapReduce 详解

MapReduce的整个运行分为两个阶段&#xff1a; Map和Reduce Map阶段由一定数量的Map Task组成 输入格式的数据格式化&#xff1a;InputFormat 数日数据的处理:Mapper 数据分组&#xff1a;Partitioner 下面流程图&#xff1a; 1. Map task 首先从HDFS上Read文件&#xff0c;通过…