CN110457111A - A kind of icon display method, device and terminal - Google Patents

A kind of icon display method, device and terminal Download PDF

Info

Publication number
CN110457111A
CN110457111A CN201910767718.6A CN201910767718A CN110457111A CN 110457111 A CN110457111 A CN 110457111A CN 201910767718 A CN201910767718 A CN 201910767718A CN 110457111 A CN110457111 A CN 110457111A
Authority
CN
China
Prior art keywords
charging
terminal
charge
icon
charge mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910767718.6A
Other languages
Chinese (zh)
Inventor
潘晓慧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Transsion Holdings Co Ltd
Original Assignee
Shenzhen Transsion Holdings Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Transsion Holdings Co Ltd filed Critical Shenzhen Transsion Holdings Co Ltd
Priority to CN201910767718.6A priority Critical patent/CN110457111A/en
Publication of CN110457111A publication Critical patent/CN110457111A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Engineering (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The embodiment of the invention provides a kind of icon display method, device and terminal, wherein method can include: when detecting the charging instruction for terminal charge, charge mode locating for the terminal is determined according to the charged state parameter carried in charging instruction;The charging icon to match with the charge mode is obtained, and shows the charging icon in the user interface of the terminal.Using the embodiment of the present invention, it more can effectively carry out icon and show.

Description

A kind of icon display method, device and terminal
Technical field
The present invention relates to electronic technology field more particularly to a kind of icon display methods, device and terminal.
Background technique
With the development of the times, terminal is also evolving and perfect, the development of the supported charging modes of terminal also day Crescent is different.It is divided according to charging technique field, charging modes are divided into common charging, quick charge and wireless charging etc..It is so-called Common charging carries out terminal charge using common charger, its main feature is that the charging time is long, speed is slow;Quick charge uses Special quick charger carries out terminal charge, it is characterized in that charging time section, speed are fast;Wireless charging refers to using wireless charging Electric equipment is terminal charge.
In order to facilitate user experience, terminal can show charging icon to user by user interface.Currently used icon Methods of exhibiting is the charging figure that just display terminal charges on a user interface when detecting the end command for terminal Mark.It can be seen that current charging icon display method is relatively simple, it is unfavorable for user experience.Therefore, how more effectively to carry out Charging icon shows the hot issue as research.
Summary of the invention
The embodiment of the invention provides a kind of icon display method, device and terminals, and more efficiently progress may be implemented Charging icon is shown.
In a first aspect, the embodiment of the invention provides a kind of icon display methods, which is characterized in that icon display method is answered For in terminal, method includes:
When detecting the charging instruction for terminal charge, institute is determined according to the charged state parameter carried in charging instruction State charge mode locating for terminal;
The charging icon to match with charge mode is obtained, and shows charging icon in the user interface of the terminal.
Optionally, operation has operating system and framework layer, above-mentioned image display method in terminal further include: calls the behaviour Make system detection with the presence or absence of the charging instruction for terminal charge;When detecting as the charging instruction of the terminal charge, institute It states operating system and the charging instruction is sent to the framework layer;The charging that the framework layer is carried according to the charging instruction State parameter determines charge mode locating for the terminal, and obtains the charging icon to match with the charge mode, and The charging icon is shown in the user interface of the terminal.
Optionally, above-mentioned image display method further include: if detecting the charging operations for terminal charge, be generated as The notification event of terminal charge;Call socket mechanism that notification event is sent to filling of running in operating system in operating system Electric managing process, instruction Charge Management process obtain charged state parameter corresponding with notification event, and generate carrying charging shape The charging instruction of state parameter.
Optionally, it when detecting that the electric connection between terminal and charging equipment has been established, confirmly detects as terminal The charging operations of charging.
Optionally, charge mode includes fast charge mode and normal charging mode, and operating system includes battery driving, electricity It include fast charge management node corresponding with fast charge mode in the driving of pond;The attribute value of fast charge management node is for indicating quick Whether charge mode starts;When the attribute value of fast charge management node is first property value, fast charge mode starting;Work as fast charge When the attribute value of management node is the second attribute value, fast charge mode is inactive.
Optionally, charged state parameter includes the attribute value of fast charge management node, and framework layer is according in the charging instruction The charged state parameter of carrying determines charge mode locating for the terminal, comprising: when the attribute value of fast charge management node is the When one attribute value, determine that charge mode locating for terminal is fast charge mode;When the attribute value of fast charge management node is second When attribute value, determine that charge mode locating for terminal is normal charging mode.
It optionally, include charging icon area and charging progress region in user interface, charging icon area is for showing The charging icon to match with charge mode, the charging progress region charge condition current for display terminal.
Second aspect, the embodiment of the invention provides a kind of icon display devices, comprising:
Detection unit, for monitoring whether to exist for the charging instruction of terminal charge;
Processing unit, for when detecting the charging instruction for terminal charge, according to the charging carried in charging instruction State parameter determines charge mode locating for terminal;
Acquiring unit, for obtaining the charging icon to match with charge mode;
Display unit, for showing charging icon in the user interface.
The third aspect, the embodiment of the invention provides a kind of terminals, comprising: memory, processor and is stored in described deposit On reservoir and the icon DP display processor that can run on a processor, execution when icon DP display processor is executed by processor Such as above-mentioned first aspect and its any optional icon display method.
Fourth aspect, the embodiment of the invention also provides a kind of computer storage mediums, which is characterized in that computer storage Media storage has computer program instructions, when which is executed by processor, for execute first aspect and its Any optional icon display method.
In the embodiment of the present invention, when detecting the charging instruction to charge for terminal, carried according in charging instruction Charged state parameter determine charge mode locating for terminal;And then, the charging icon to match with charge mode is obtained, and Show the charging icon, in the user interface of the terminal in order to which user can check the charging feelings of terminal immediately by terminal Condition.In addition, the charging icon shown in user interface is matched with the charge mode of terminal, user is by charging icon just It is known that the charge mode of present terminal, if the charge mode is not that user wants, user can change charging at any time Equipment is conducive to improve user experience, realizes more effective progress icon and show to change charge mode.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 a is a kind of application scenario diagram of icon display method provided in an embodiment of the present invention;
Fig. 1 b is the application scenario diagram of another icon display method provided in an embodiment of the present invention;
Fig. 2 a is a kind of flow diagram of icon display method provided in an embodiment of the present invention;
Fig. 2 b is the flow diagram of another icon display method provided in an embodiment of the present invention;
Fig. 3 a is a kind of schematic diagram for generating charging instruction provided in an embodiment of the present invention;
Fig. 3 b is a kind of structural schematic diagram of operating system provided in an embodiment of the present invention;
Fig. 3 c is a kind of system architecture diagram of terminal provided in an embodiment of the present invention;
Fig. 4 a is a kind of schematic diagram of icon display method provided in an embodiment of the present invention;
Fig. 4 b is the schematic diagram of another icon display method provided in an embodiment of the present invention;
Fig. 5 is the flow diagram of another icon display method provided in an embodiment of the present invention;
Fig. 6 is the flow chart schematic diagram of another icon display method provided in an embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of icon display device provided in an embodiment of the present invention;
Fig. 8 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
The embodiment of the invention provides a kind of icon displaying schemes, can be applied in any chargeable terminal, work as inspection When measuring the charging instruction to charge for terminal, determined locating for terminal according to the charged state parameter carried in charging instruction Charge mode obtains the charging icon to match with the charge mode, and show the charging in the user interface of the terminal in turn Icon.In above-mentioned icon display method, for different charge modes, corresponding charging icon is selected to be shown, It enriches icon to show, and user is enabled to understand the charging situation of terminal according to charging icon, be conducive to improve terminal Safety.
Wherein, in above-mentioned icon display method, terminal may include in mobile phone, tablet computer and intelligent wearable device Any one or more.It is a kind of applied field of icon display method provided in an embodiment of the present invention with reference to Fig. 1 a and Fig. 1 b Jing Tu assumes that terminal is mobile phone in Fig. 1 a and Fig. 1 b.101 indicate terminal in Fig. 1 a and Fig. 1 b, and 102 indicate charging equipment, when When charging equipment 102 is electrically connected with power supply and terminal 101 respectively, charging service can be provided for terminal 101.In fig 1 a, When detecting the charging instruction to charge for terminal in terminal, determined according to the charged state parameter carried in charging instruction Charge mode locating for terminal;Then the charging icon to match with the charge mode is obtained, and in the user interface of terminal 101 Middle display charging icon.
Wherein, charging instruction is generated when detecting the charging operations to charge for terminal, when charging equipment 102 When being connect respectively with terminal 101 and power supply, it may be determined that detect the charging operations to charge for terminal.Not according to charge type Together, charging equipment 102 can be divided for fast charge equipment and common charging equipment, different charging equipments corresponds to different fill Power mode, for example, the corresponding fast charge mode of fast charge equipment;Common charging equipment corresponds to normal charging mode.Therefore above-mentioned Charging operations may be used to indicate that the charge mode to charge for terminal.
The charged state parameter that charging instruction carries, for reflecting whether this kind of charge mode starts, for example, fast charge mode Corresponding charged state parameter is for reflecting whether fast charge mode has been turned on, in other words according to the corresponding charging shape of fast charge mode State parameter may determine whether currently fast charge mode whether is used to charge for terminal;For another example, normal charging mode is corresponding Charged state parameter is for reflecting whether normal charging mode has been turned on.
In one embodiment, if according to charged state parameter determine terminal described in charge mode be quick charge When, the charging icon to match with quick charge is obtained, is properly termed as i.e. fast charge icon, and show fast charge figure in the user interface As shown in Figure 1a, 103 indicate fast charge icon to mark in Fig. 1 a;If determining the charging that terminal is presently according to charged state parameter Mode is normal charging mode, then the i.e. common charging icon of charging icon corresponding with normal charging mode is obtained, such as Fig. 1 b institute Show that 104 expressions are commonly charged icon.
It is a kind of flow diagram of icon display method provided in an embodiment of the present invention with reference to Fig. 2 a, shown in Fig. 2 a Icon display method can be applied in terminal, which can be any equipment for needing to charge.Icon shown in Fig. 2 a is aobvious Show that method can be executed by the processor of terminal, icon display method may include following steps:
Step S201, when detecting the charging instruction for terminal charge, according to the charged state carried in charging instruction Parameter determines charge mode locating for terminal.
Wherein, charging instruction is used to indicate present terminal and connect with charging equipment, and charging equipment is also connect with power supply, can Think that terminal charges.Charged state parameter is carried in charging instruction, charged state parameter is used to indicate charge mode.It can Choosing, terminal can preset the corresponding relationship between charged state parameter and charge mode, for example charged state parameter is A When, corresponding charge mode is fast charge mode;When charged state parameter is B, corresponding charge mode is common charging mould Formula.So, when getting the charged state parameter carried in charging instruction, terminal can quickly determine current time Charge mode locating for terminal.
In one embodiment, fast charge management node is provided in terminal, if detecting fast charge equipment and terminal Between electric connection have connected, the attribute value of fast charge management node can send change.In one embodiment, in step S201 In, charged state parameter may include the attribute value of fast charge management node, and terminal can be determined according to the attribute value of fast charge node The charge mode that terminal is presently in.About the part, concrete implementation mode be will be described in detail later.
Step S202, the charging icon that acquisition and charge mode match, and charging is shown in the user interface of the terminal Icon.
In one embodiment, the corresponding charging icon of every kind of charge mode can be terminal default setting, can also be with It is also user setting.For example, terminal shows the set interface of charging icon to user, it can under every kind of charge mode in the interface Corresponding a variety of charging icons, user can select charging icon according to the hobby of oneself.Optionally, in order to promote user experience, The setting condition of charging icon can be set in terminal, such as the charging icon under various charge modes cannot be mutually same.
It in one embodiment, may include charging icon area and charging progress region, charging in the user interface of terminal Icon area is used to show the charging icon to match with the charge mode of present terminal, and charging progress region is used for display terminal Current charge condition, for example it can be shown as " current electric quantity 50% ", or be shown as electricity such as " current electric quantity have been filled with " The prompt information of situation.
User can recognize the charge mode that terminal is presently according to the charging icon shown in user interface, and Judge whether that the current charge mode of terminal is that user wants, for example, if user wants using fast charge equipment to be charging The charge mode that the icon representation terminal for charging, but showing in user interface is presently in is normal charging mode, is used Family can replace charging equipment in time, be conducive to improve user experience.
In the embodiment of the present invention, when detecting the charging instruction to charge for terminal, carried according in charging instruction Charged state parameter determine charge mode locating for terminal;And then, the charging icon to match with charge mode is obtained, and Show the charging icon, in the user interface of the terminal in order to which user can check the charging feelings of terminal immediately by terminal Condition.In addition, the charging icon shown in user interface is matched with the charge mode of terminal, user is by charging icon just It will be seen that the charge mode of present terminal, if the charge mode is not that user wants, user can change charging at any time Equipment is conducive to improve user experience, realizes more effective progress icon and show to change charge mode.
It is the flow diagram of another icon display method provided in an embodiment of the present invention, shown in Fig. 2 b with reference to Fig. 2 b Icon display method can be using in the terminal, operation has operating system and framework layer in the terminal, and this method can be called By in terminal framework layer and operating system execute execution.Method shown in Fig. 2 b may include step S21- step S23:
Step S21, the charging instruction that call operation system detection whether there is as terminal charge.
In one embodiment, which is operating system when detecting the charging operations for terminal charge, root It is generated according to charge mode indicated by charging operations, charged state ginseng corresponding with the charge mode is carried in charging instruction Number.In one embodiment, according to the speed of charging rate, charge mode can be divided into fast charge mode and common charging Mode, it is terminal charge that fast charge mode, which uses quick charger, its main feature is that charging rate is fast, the charging time is short;It is general Logical charge mode is terminal charge using common charger, its main feature is that charging rate is slow, the charging time is long.
In one embodiment, charged state parameter can be used for reflecting whether some charge mode has been turned on.For example, false If charged state parameter is A, indicate that fast charge mode has been turned on;When charged state parameter is B, normal charging mode is indicated It has been turned on.
In one embodiment, operating system is generating charging instruction corresponding with charge mode indicated by charging operations Before, according to charging operations determine charging operations indicated by charge mode.In one embodiment, may include in operating system Battery driving, exploitation when battery driving in increase can fast charge management node corresponding with fast charge mode, fast charge management The attribute value of node is for indicating whether fast charge mode starts, if the electrical property of charging instruction instruction fast charge charging equipment and terminal Connection has been established, then the attribute value that fast charge management node can be detected is equal to first property value;If charging instruction instruction is common The electric connection of charging equipment and terminal has been established, then the attribute value that fast charge management node can be detected is the second attribute value.
In one embodiment, operating system can determine each charge mode according to the attribute value of fast charge management node Under charged state parameter.For example, under fast charge mode, the first property value of fast charge management node can be determined as and fast charge The corresponding charged state parameter of mode;Under normal charging mode, the second attribute value of fast charge management node can be determined as Charged state parameter corresponding with normal charging mode.
In one embodiment, after determining charge mode, the corresponding charged state parameter of charge mode is carried In charging instruction, for example, operating system produces and fast charge if charge mode indicated by charging operations is fast charge mode The corresponding charge mode of charged state parameter carried in the corresponding charging instruction of mode, namely charging instruction at this time is fast charge Mode,;If charge mode indicated by charging instruction is normal charging mode, operating system is produced and common charging mould The corresponding charging instruction of formula, the corresponding charge mode of charged state parameter carried in the charging instruction are normal charging mode.
In one embodiment, the embodiment of step S21 can include: if detecting the charging behaviour for terminal charge Make, then call operation system is generated as the notification event of terminal charge;It will by the socket mechanism Netlink in operating system Notification event is sent to the Charge Management process healthd run in operating system, and instruction Charge Management process healthd is obtained Charged state parameter corresponding with notification event, and generate the charging instruction for carrying charged state parameter.In other words, operation system After system detects charging operations, it is generated as the notification event of terminal charge, is then passed the notification event by socket mechanism It is defeated by Charge Management process, Charge Management process monitors battery driving, the attribute value of fast charge management node in battery driving is read, The charging instruction for carrying charged state parameter is ultimately produced, and is sent to framework layer to indicate the system management module in framework layer Show icon.Wherein, Charge Management process can will be charged by the more new interface for the battery service module for including in framework layer Event is sent to system management module.
In one embodiment, Charge Management process obtains charging instruction and will carry the charging instruction of charged state parameter The schematic diagram for being sent to system management module can be as shown in Figure 3a.Healthd calls principal function main to start pipe in fig. 3 a Then the battery-driven event of the monitoring of reason process is connect by the update update in battery cell monitoring BatteryMonitor module Mouth will be to battery-driven snoop results, that is, the charged state parameter listened to is sent to battery service The update update interface of BatteryService module, so that charged state parameter is sent to framework by update interface Layer.
In one embodiment, kernel can have been run in operating system, the specific embodiment of step S21 can be by operating Kernel in system executes.It is the structural schematic diagram of operating system provided in an embodiment of the present invention with reference to Fig. 3 b, is in operation May include kernel 301 and user's space 302 in system, may include in kernel 301 operating system service, operation system function block such as Each functional module, module interface, device drives and driving interface etc. can also include management of process, memory in kernel 301 In Fuan, file system etc..It should be appreciated that Fig. 3 a is a kind of schematic diagram of operating system provided in an embodiment of the present invention, A part of structure in operating system is only shown, the specific structure embodiment of the present invention of operating system is not specifically limited.
Step S22, when detecting the charging instruction for terminal charge, call framework layer according to carrying in charging instruction Charged state parameter determines charge mode locating for terminal.
In one embodiment, from the foregoing it will be appreciated that charge mode may include fast charge mode and normal charging mode, behaviour Make to may include battery driving in system, may include the corresponding fast charge management node of fast charge mode in battery driving;It should The attribute value of fast charge management node is for indicating whether fast charge mode starts.If charged state parameter can in step S22 Attribute value including fast charge management node, then the embodiment of step S22 can be with are as follows: when the attribute value of fast charge management node is the When one attribute value, determine that charge mode locating for terminal is fast charge mode;When the attribute value of fast charge management node is second When attribute value, determine that charge mode locating for terminal is normal charging mode.
In other words, terminal can be preset: when common charging equipment and terminal, which are established, to be electrically connected, fast charge management The attribute value of node is the second attribute value;When fast charge equipment and terminal, which are established, to be electrically connected, the category of fast charge management node Property value can change, be first property value by the variation of the second attribute value, can include in charged state parameter by judging The attribute value of fast charge management node judges charge mode locating for terminal.Specifically, if the attribute value of fast charge management node is tieed up It holds that the second attribute value is constant, shows that currently establishing the charging equipment being electrically connected with terminal device is common charging equipment, then It can determine that charge mode locating for terminal is normal charging mode;If the attribute value of fast charge management node is become by the second attribute value First property value is turned to, shows that currently establishing the charging equipment being electrically connected with terminal device is fast charge equipment, then may be used Determine that charge mode locating for terminal is fast charge mode.
Step S23, framework layer is called to obtain the charging icon to match with charge mode, and in the user interface of the terminal Display charging icon.
In one embodiment, it after framework layer determines charge mode locating for terminal, can obtain and the charge mode phase Matched charging icon, and the charging icon is shown in the user interface of the terminal, so that user passes through in user interface The icon that charges understands the charging situation of terminal.If user's original idea is wanted using fast charge equipment to be terminal charge, but uses Family learns that it is terminal charge that common charging equipment, which is being currently used, by the charging icon in user interface, and user can be at this time Replacement charging equipment in time.
In one embodiment, the operation relationship of operating system and framework layer is understood for convenience, and the embodiment of the present invention is also A kind of system architecture diagram of terminal is provided, as shown in Figure 3c.By Fig. 3 c it is found that terminal may include four basic frameworks, respectively Are as follows: application layer 31, framework layer 32, class libraries layer 33 and operating system 34 (being also inner nuclear layer).Wherein, application layer 31 is by running All applications in the terminal are constituted, and the system including prepackage is applied and the third-party application of user installation;Framework layer 32 is eventually The core of the application and development at end provides for developer and provides the application programming interface frame on basis when development and application.Framework What layer 32 was made of multiple system services, each terminal applies are made of several components, logical between component and component Letter is that the service centralized dispatching provided by framework layer and transmitting message are realized.It may include system interface management in framework layer 32 Module is mainly used for the icon etc. that design user interface such as managing user interface is shown;Further include window management module, is used for Manage all window writing routines;It further include SOT state of termination column management module, for carrying out pipe to the self-defined information in status bar Reason etc..
Class libraries layer 33 is mainly made of class libraries, and class libraries is made of a series of binary system dynamic base, most of from the Tripartite's class libraries, another part are the primary class libraries of system, are developed usually using C language or C Plus Plus.Operating system 34 is main real Existing memory management, process scheduling, interprocess communication, device drives etc..
In one embodiment, framework layer can obtain the charging to match with charge mode by system interface management module Icon.Specifically, the system interface management module in framework layer parses charge mode, then selection matches with charge mode Charge icon.
In one embodiment, the charging icon to match with the same charge mode may include it is a variety of, with the mould that charges Formula is the schematic diagram of the 103 charging icons to match for a kind of and fast charge mode in Fig. 1 a for fast charge mode;Fig. 4 a is this hair The schematic diagram that another icon that bright embodiment provides is shown, wherein 401 be the charging icon to match with fast charge mode;Figure 4b is the schematic diagram that another icon provided in an embodiment of the present invention is shown, wherein 402 be the charging to match with fast charge mode Icon.It should be appreciated that in fig 1 a 103 include 1031 in dash area indicate terminal current electric quantity, with charging The electricity of the passage of time, terminal gradually increases, and indicates that the electricity of terminal has been filled with when 1031 are filled.Similarly, scheming 401 4011 dash areas for including also illustrate that the current electric quantity of terminal in 4a, 402 in Fig. 4 b in indicate the current electricity of terminal Amount, can change with the passage of charging duration, 4011 and 402.To sum up, processor is being got and charge mode phase After the charging icon matched, with the passage in charging time, processor updates charging icon according to the current electric quantity of terminal.
In other embodiments, when terminal is in different user interface, the charging figure that matches with same charge mode Mark also not identical, for example, by taking terminal be in fast charge mode as an example, when terminal is in screen locking user interface, the icon that charges can be with As shown in 402 in Fig. 4 b;When terminal is in unlock user interface, charging icon can be such as 401 institutes in 103 or Fig. 4 a in Fig. 1 a Show.Therefore, in the embodiment of the present invention, the embodiment that step S203 obtains the charging icon to match with charge mode can be with It is: judges which kind of user interface is terminal currently show;According to the currently displayed user interface determination of terminal and charge mode The charging icon matched, and be shown in current user interface.
In the embodiment of the present invention, call operation system detection whether there is the charging instruction of non-terminal charge, if detection To the charging instruction for terminal charge, then charging instruction is sent to framework layer by operating system, and framework layer is called to be referred to according to charging The charged state parameter carried is enabled to determine charge mode locating for terminal;And it obtains and matches with charge mode locating for terminal Charge icon, and shows the charging icon in the user interface of the terminal.Detecting the charging instruction to charge for terminal When, the charging instruction for carrying charge parameter is actively reported to framework layer by operating system, in order to which framework layer passes through analysis charging State parameter determines the charging icon shown in the user interface, reduces the interaction between framework layer and operating system, can save Terminal resource is saved, guarantees the timeliness that icon is shown.
Based on the icon display method of Fig. 2 a and Fig. 2 b, another icon display method is provided in the embodiment of the present invention Flow chart as shown in figure 5, Fig. 5 show icon display during operating system and framework layer between interaction, specifically: when When the charging operations that operating system detects as terminal charge, operating system (substantially by the kernel of operating system) generation is taken Charging instruction with charged state parameter, and charging instruction is sent to framework layer Framework;Framework refers to charging Enable the system interface management systemUI module being broadcast in framework layer Framework;SystemUI module parses charging instruction In include charged state parameter, judge whether fast charge mode opens;Then systemUI module obtains and fast mold filling if on, The corresponding charging icon of formula;If do not opened, systemUI module obtains charging icon corresponding with normal charging mode.
In one embodiment, the flow chart shown the embodiment of the invention also provides another icon is as shown in fig. 6, figure 6 icon flow for displaying can include: when operating system detects the charging operations for terminal charge, operating system broadcasts as end Hold the notification event of charging (kernel of actually operating system broadcasts the notification event);Framework receives as terminal After the notification event of charging, the systemUI module which is broadcast in Framework;SystemUI module receives Fast charge management node after to the notification event in access operation system, to obtain charged state parameter;SystemUI is according to obtaining The charged state parameter got judges whether fast charge mode opens;Then systemUI module obtains and fast charge mode if on, Corresponding charging icon;If do not opened, systemUI module obtains charging icon corresponding with normal charging mode.
The icon of comparison diagram 5 and Fig. 6 show inventive method it is found that icon shown in fig. 6 provided in an embodiment of the present invention is aobvious Show that method reduces the interaction between framework layer and operating system, terminal resource can be saved, guarantees the timeliness that icon is shown.
Based on the embodiment of icon display method shown in Fig. 2 a and Fig. 2 b, it is aobvious that the embodiment of the present invention also provides a kind of icon Showing device is a kind of structural schematic diagram of icon display device provided in an embodiment of the present invention, icon shown in Fig. 7 referring to Fig. 7 It can run in display device such as lower unit:
Detection unit 701, for detecting whether existing for the charging instruction of terminal charge;
Processing unit 702, for being filled according to what is carried in charging instruction when detecting the charging instruction for terminal charge Electricity condition parameter determines charge mode locating for terminal;
Acquiring unit 703, for obtaining the charging icon to match with charge mode;
Display unit 704, for showing charging icon in the user interface of the terminal.
In one embodiment, operation has operating system and framework layer in terminal, and detection unit 701 is detecting whether exist For terminal charge charging instruction when, perform the following operations: call operation system detection whether there is for terminal charge charging Instruction;Processing unit 702 is when detecting the charging instruction for terminal charge, according to the charged state carried in charging instruction Parameter determines charge mode locating for terminal, performs the following operations: when detecting the charging instruction for terminal charge, calling frame Structure layer determines charge mode locating for terminal according to the charged state parameter carried in charging instruction;The acquiring unit 703 exists It when obtaining the charging icon to match with charge mode, performs the following operations: framework layer acquisition being called to match with charge mode Charging icon;It when display unit 704 shows charging icon in the user interface of the terminal, performs the following operations: calling framework Layer shows charging icon in the user interface of terminal.
In one embodiment, processing unit 702 is also used to: if detecting the charging operations for terminal charge, being adjusted The notification event of the terminal charge is generated as with operating system;Call in the operating system socket mechanism by the notice Event is sent to the Charge Management process run in the operating system, indicates that the Charge Management process obtains and the notice The corresponding charged state parameter of event, and generate the charging instruction for carrying the charged state parameter.
In one embodiment, processing unit 702 is also used to: when detecting the electrical property between the terminal and charging equipment When connection has been established, confirmly detect as the charging operations of the terminal charge.
In one embodiment, charge mode includes fast charge mode and normal charging mode, includes in operating system Battery drives, and includes the corresponding fast charge management node of fast charge mode in battery driving;The attribute value of fast charge management node is used Whether start in expression fast charge mode;It is described quick when the attribute value of the fast charge management node is first property value Charge mode starting;When the attribute value of the fast charge management node is the second attribute value, the fast charge mode is inactive.
In one embodiment, charged state parameter includes the attribute value of fast charge management node, and the processor 702 is being adjusted When determining charge mode locating for terminal according to the charged state parameter carried in charging instruction with framework layer, specific execution is as follows Step: when the attribute value of fast charge management node is first property value, determine that charge mode locating for terminal is quick charge mould Formula;When the attribute value of fast charge management node is the second attribute value, determine that charge mode locating for terminal is normal charging mode.
It in one embodiment, may include charging icon area and charging progress region, icon area of charging in user interface Domain is used to show the charging icon to match with charge mode, the charging progress region charge condition current for display terminal.
According to one embodiment of present invention, each step involved in method shown in Fig. 2 a and Fig. 2 b may each be by Each unit in icon display device shown in Fig. 7 is performed.For example, step S201 shown in Fig. 2 a can be by institute in Fig. 7 The detection unit 701 shown and processing unit 702 execute, and step shown in step S202 can be by acquiring unit shown in fig. 7 703 and display unit 704 execute.For another example.Step S21- step S23 shown in Fig. 2 b can be single by processing shown in fig. 7 Member 702 executes.
According to another embodiment of the invention, each unit in icon display device shown in Fig. 7 can respectively or All one or several other units are merged into constitute or some (a little) unit therein can also be split as function again Smaller multiple units are constituted on energy, this may be implemented similarly to operate, and the technology without influencing the embodiment of the present invention is imitated The realization of fruit.Said units are logic-based function divisions, and in practical applications, the function of a unit can also be by multiple Unit is realized or the function of multiple units is realized by a unit.In other embodiments of the invention, icon display dress Setting also may include other units, and in practical applications, these functions can also be assisted to realize by other units, and can be by Multiple unit cooperations are realized.
It according to another embodiment of the invention, can be by including central processing unit (CPU), random access memory It is transported on the universal computing device of such as computer of the processing elements such as medium (RAM), read-only storage medium (ROM) and memory element Row is able to carry out computer program (including program generation of each step involved in the correlation method as shown in Fig. 2 a and Fig. 2 b Code), to construct icon display device as shown in Figure 7, and come the icon display method of realizing the embodiment of the present invention.It calculates Machine program can be recorded in such as computer readable recording medium, and be loaded into above-mentioned meter by computer readable recording medium It calculates in equipment, and runs wherein.
In the embodiment of the present invention, when detection unit 701 detects the charging instruction for terminal charge, processing unit 702 Charge mode locating for terminal is determined according to the charged state parameter carried in charging instruction;Acquiring unit 703 obtains and charging The charging icon that mode matches, and display unit 704 shows the charging icon in the user interface of terminal, in order to user It can check the charging situation of terminal immediately by terminal.In addition, the charging icon that shows in user interface is filled with terminal What power mode matched, user can know the charge mode of present terminal by the icon that charges, if the charge mode is not It is that user wants, user can change at any time charging equipment to change charge mode, be conducive to improve user experience, realize Icon is more effectively carried out to show.
It is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention with reference to Fig. 8, may include processor 801 in terminal And memory 802, the icon DP display processor that can be run on processor 801 is stored on memory 802, and icon is shown The step of processing routine realizes above-mentioned image display method when being executed by processor 801.Optionally, terminal can also include aobvious Show equipment 803, which may include display screen, which is used to show charging icon to user.
In one embodiment, the processor 801 of the embodiment of the present invention calls icon DP display processor to can be used for executing: When detecting the charging instruction for terminal charge, determined locating for terminal according to the charged state parameter carried in charging instruction Charge mode;The charging icon to match with charge mode is obtained, and shows charging icon in the user interface of the terminal.
In one embodiment, operation has operating system and framework layer in terminal, and processor 801 is at calling icon is shown When managing program execution above-mentioned steps, perform the following operations: call operation system detection whether there is to be referred to for the charging of terminal charge It enables;When detecting the charging instruction for terminal charge, charging instruction is sent to framework layer by call operation system;Call framework Layer determines charge mode locating for terminal according to the charged state parameter that charging instruction carries, and obtains and charge mode phase The charging icon matched, and charging icon is shown in the user interface of the terminal.
In one embodiment, it is also used to when processor 801 calls icon DP display processor: if detected as terminal The charging operations of charging, then call operation system is generated as the notification event of terminal charge;Word machine is socketed in call operation system Notification event is sent to the Charge Management process run in operating system by system, and instruction Charge Management process obtains and notification event Corresponding charged state parameter, and generate the charging instruction for carrying charged state parameter.
In one embodiment, it is also used to when processor 801 calls icon DP display processor: when detecting terminal and fill When electric connection between electric equipment has been established, the charging operations for terminal charge are confirmly detected.
In one embodiment, charge mode includes fast charge mode and normal charging mode, includes in operating system Battery drives, and includes the corresponding fast charge management node of fast charge mode in battery driving;The attribute value of fast charge management node is used Whether start in expression fast charge mode;When the attribute value of fast charge management node is first property value, fast charge mode Starting;When the attribute value of fast charge management node is the second attribute value, fast charge mode is inactive.
In one embodiment, charged state parameter includes the attribute value of fast charge management node, and processor 801 is calling frame When structure layer determines charge mode locating for terminal according to the charged state parameter carried in charging instruction, perform the following operations: when When the attribute value of fast charge management node is first property value, determine that charge mode locating for terminal is fast charge mode;When fast When the attribute value for filling management node is the second attribute value, determine that charge mode locating for terminal is normal charging mode.
It in one embodiment include charging icon area and charging progress region in user interface, charging icon area is used In the charging icon that display matches with charge mode, the charging progress region charge condition current for display terminal.
It should be appreciated that in embodiments of the present invention, alleged processor 801 can be central processing unit (Central Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at Reason device is also possible to any conventional processor etc..
The memory 802 may include read-only memory and random access memory, and to processor 801 provide instruction and Data.The a part of of memory 802 can also include nonvolatile RAM.For example, memory 802 can also be deposited Store up the information of device type.
In the specific implementation, figure provided in an embodiment of the present invention can be performed in processor 801 described in the embodiment of the present invention Implementation described in display methods is marked, icon display device realization side described in Fig. 7 of the embodiment of the present invention also can be performed Formula, details are not described herein.
A kind of computer readable storage medium is provided in an embodiment of the present invention, and computer-readable recording medium storage has Computer program, computer program include program instruction, and specific implementation when program instruction is executed by processor can refer to above-mentioned The description of related content in each embodiment, details are not described herein.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Instruct relevant hardware to complete by computer program, program can be stored in a computer-readable storage medium, The program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, storage medium can for magnetic disk, CD, Read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
Above disclosed is only a preferred embodiment of the present invention, cannot limit the power of the present invention with this certainly Sharp range, those skilled in the art can understand all or part of the processes for realizing the above embodiment, and weighs according to the present invention Benefit requires made equivalent variations, still belongs to the scope covered by the invention.

Claims (10)

1. a kind of icon display method, which is characterized in that the icon display method is applied in terminal, which comprises
When detecting the charging instruction for terminal charge, institute is determined according to the charged state parameter carried in the charging instruction State charge mode locating for terminal;
The charging icon to match with the charge mode is obtained, and shows the charging figure in the user interface of the terminal Mark.
2. the method according to claim 1, wherein in the terminal operation have operating system and framework layer, institute State method further include:
The operating system is called to detect whether to exist for the charging instruction of terminal charge;
When detecting as the charging instruction of the terminal charge, call the operating system that the charging instruction is sent to institute State framework layer;
The charged state parameter for calling the framework layer to be carried according to the charging instruction determines charging mould locating for the terminal Formula, and the charging icon to match with the charge mode is obtained, and fill described in display in the user interface of the terminal Electrograph mark.
3. method according to claim 2, which is characterized in that the method also includes:
If detecting the charging operations for terminal charge, call operation system is generated as the notice thing of the terminal charge Part;
Call socket mechanism in the operating system that the notification event is sent to the charging run in the operating system Managing process indicates that the Charge Management process obtains charged state parameter corresponding with the notification event, and generates carrying The charging instruction of the charged state parameter.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
When detecting that the electric connection between the terminal and charging equipment has been established, confirmly detect as the terminal charge Charging operations.
5. according to the method described in claim 3, it is characterized in that, the charge mode includes fast charge mode and commonly fills Power mode, the operating system include battery driving, include fast charge pipe corresponding with fast charge mode in the battery driving Manage node;The attribute value of the fast charge management node is for indicating whether fast charge mode starts;When the fast charge management section When the attribute value of point is first property value, the fast charge mode starting;When the attribute value of the fast charge management node is the When two attribute values, the fast charge mode is inactive.
6. according to the method described in claim 5, it is characterized in that, the charged state parameter includes the category of fast charge management node Property value, the calling framework layer determine charging locating for the terminal according to the charged state parameter carried in the charging instruction Mode, comprising:
When the attribute value of the fast charge management node is first property value, determine that charge mode locating for the terminal is quick Charge mode;
When the attribute value of the fast charge management node is the second attribute value, determine that charge mode locating for the terminal is common Charge mode.
7. the method according to claim 1, wherein including charging icon area and charging in the user interface Progress region, the charging icon area are used to show the charging icon to match with charge mode, the charging progress region For showing the current charge condition of the terminal.
8. a kind of icon display device characterized by comprising
Detection unit, for detecting whether existing for the charging instruction of terminal charge;
Processing unit, for when detecting the charging instruction for terminal charge, according to the charging carried in the charging instruction State parameter determines charge mode locating for the terminal;
Acquiring unit, for obtaining the charging icon to match with the charge mode;
Display unit, for showing the charging icon in the user interface of the terminal.
9. a kind of terminal, which is characterized in that the terminal includes: memory, processor and is stored on the memory and can The icon DP display processor run on the processor, it is real when the icon DP display processor is executed by the processor Now the step of icon display method as described in any one of claims 1 to 7.
10. a kind of computer storage medium, which is characterized in that the computer storage system is stored with computer program instructions, When the computer program instructions are executed by processor, the icon that can be used for executing as described in any one of claims 1 to 7 is aobvious The step of showing method.
CN201910767718.6A 2019-08-19 2019-08-19 A kind of icon display method, device and terminal Pending CN110457111A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910767718.6A CN110457111A (en) 2019-08-19 2019-08-19 A kind of icon display method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910767718.6A CN110457111A (en) 2019-08-19 2019-08-19 A kind of icon display method, device and terminal

Publications (1)

Publication Number Publication Date
CN110457111A true CN110457111A (en) 2019-11-15

Family

ID=68487933

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910767718.6A Pending CN110457111A (en) 2019-08-19 2019-08-19 A kind of icon display method, device and terminal

Country Status (1)

Country Link
CN (1) CN110457111A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117013660A (en) * 2023-09-12 2023-11-07 荣耀终端有限公司 Charging icon display method and electronic equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104505552A (en) * 2015-01-19 2015-04-08 联想(北京)有限公司 Charging method and charging device
CN105490332A (en) * 2015-12-17 2016-04-13 小米科技有限责任公司 Charging method, device and system
CN106067571A (en) * 2016-07-22 2016-11-02 北京小米移动软件有限公司 Method and electronic equipment for battery charging
CN106340922A (en) * 2016-09-26 2017-01-18 依偎科技(南昌)有限公司 Charging method and mobile terminal
CN107800177A (en) * 2017-12-07 2018-03-13 奇酷互联网络科技(深圳)有限公司 Charge switching method, device, readable storage medium storing program for executing and mobile terminal
US20180253136A1 (en) * 2017-03-06 2018-09-06 Samsung Electronics Co., Ltd. Determining use context for a charging device and displaying a contextually appropriate user interface
CN108702017A (en) * 2018-01-23 2018-10-23 深圳易马达科技有限公司 A kind of method, equipment and its system of the charging of control battery
CN109976841A (en) * 2017-12-28 2019-07-05 上海擎感智能科技有限公司 The display methods and intelligent terminal of navigational guidance information
CN110121812A (en) * 2016-12-30 2019-08-13 华为技术有限公司 To method, charging unit and the terminal device of battery charging

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104505552A (en) * 2015-01-19 2015-04-08 联想(北京)有限公司 Charging method and charging device
CN105490332A (en) * 2015-12-17 2016-04-13 小米科技有限责任公司 Charging method, device and system
CN106067571A (en) * 2016-07-22 2016-11-02 北京小米移动软件有限公司 Method and electronic equipment for battery charging
CN106340922A (en) * 2016-09-26 2017-01-18 依偎科技(南昌)有限公司 Charging method and mobile terminal
CN110121812A (en) * 2016-12-30 2019-08-13 华为技术有限公司 To method, charging unit and the terminal device of battery charging
US20180253136A1 (en) * 2017-03-06 2018-09-06 Samsung Electronics Co., Ltd. Determining use context for a charging device and displaying a contextually appropriate user interface
CN107800177A (en) * 2017-12-07 2018-03-13 奇酷互联网络科技(深圳)有限公司 Charge switching method, device, readable storage medium storing program for executing and mobile terminal
CN109976841A (en) * 2017-12-28 2019-07-05 上海擎感智能科技有限公司 The display methods and intelligent terminal of navigational guidance information
CN108702017A (en) * 2018-01-23 2018-10-23 深圳易马达科技有限公司 A kind of method, equipment and its system of the charging of control battery

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
小麦大叔: "Android 电池管理***架构总结 Android power and battery management architecture summaries", Retrieved from the Internet <URL:https://blog.csdn.net/u010632165/article/details/88651035> *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117013660A (en) * 2023-09-12 2023-11-07 荣耀终端有限公司 Charging icon display method and electronic equipment
CN117013660B (en) * 2023-09-12 2024-03-08 荣耀终端有限公司 Charging icon display method and electronic equipment

Similar Documents

Publication Publication Date Title
CN108845816A (en) Application program update method, system, computer equipment and storage medium
US20160357616A1 (en) Application management method and application management apparatus
CN112214260A (en) Loading method and device of terminal application APP
CN104699502B (en) A kind of method and terminal that application is recommended
CN109324857B (en) User guide implementation method, device and storage medium
CN104717342A (en) Method and device for awakening client application based on short message
CN109271208A (en) Parameter setting method, device, terminal and storage medium
WO2017049893A1 (en) Application program testing method, testing apparatus, and mobile terminal
CN111190825A (en) Automatic test method, system and robot
CN107843844A (en) A kind of method, terminal and computer-readable recording medium for calibrating charge value
CN103885688A (en) Screen unlocking method and device
CN108132879A (en) Automated software testing method, platform, terminal and medium
CN105117265B (en) A kind of method, apparatus and terminal of document upgrading
CN109344066A (en) A kind of test method of browser page, system and terminal
CN109684008A (en) Card rendering method, device, terminal and computer readable storage medium
CN107678744A (en) Application controls pattern customizing method, device and computer-readable recording medium
CN106060899A (en) Flow control method and device
CN106407102A (en) A fuzz testing method, device and system for application programs
CN108089970A (en) Predict method, terminal and the storage medium of remaining capacity up time
CN110750415A (en) Interface service configuration method, device, medium and computer equipment
CN110457111A (en) A kind of icon display method, device and terminal
CN110113391A (en) A kind of client loading method, device and a kind of client operation method, device
CN111131440B (en) Resource scheduling method and device and server
CN111836221A (en) Charging management method, device and system
CN101464798A (en) Display mode management method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination