CN108228805B - Method and device for processing display data and mobile terminal - Google Patents

Method and device for processing display data and mobile terminal Download PDF

Info

Publication number
CN108228805B
CN108228805B CN201711483500.5A CN201711483500A CN108228805B CN 108228805 B CN108228805 B CN 108228805B CN 201711483500 A CN201711483500 A CN 201711483500A CN 108228805 B CN108228805 B CN 108228805B
Authority
CN
China
Prior art keywords
file
interface
relationship
markup
machine code
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.)
Active
Application number
CN201711483500.5A
Other languages
Chinese (zh)
Other versions
CN108228805A (en
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.)
Beijing Anyun Century Technology Co Ltd
Original Assignee
Beijing Anyun Century Technology 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 Beijing Anyun Century Technology Co Ltd filed Critical Beijing Anyun Century Technology Co Ltd
Priority to CN201711483500.5A priority Critical patent/CN108228805B/en
Publication of CN108228805A publication Critical patent/CN108228805A/en
Application granted granted Critical
Publication of CN108228805B publication Critical patent/CN108228805B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/83Querying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/81Indexing, e.g. XML tags; Data structures therefor; Storage structures

Abstract

The invention discloses a method, equipment and a mobile terminal for processing display data, wherein the method comprises the following steps: acquiring an interface description file of each application in a plurality of applications in user equipment, wherein the interface description file comprises a plurality of markup files; analyzing the interface description file to obtain the hierarchical relationship of a plurality of marked files; converting the format of each markup file in the plurality of markup files to generate a machine code file for describing each interface, and composing the plurality of machine code files into a display configuration file; setting a relationship indicator for each of the plurality of machine code files and initializing each relationship indicator according to a hierarchical relationship of the plurality of markup files; and responding to a starting request aiming at a specific application, calling one or more machine code files according to each relation indicator in the display configuration file so as to display an interface of the specific application.

Description

Method and device for processing display data and mobile terminal
Technical Field
The present invention relates to the field of data processing, and more particularly, to a method, device and mobile terminal for processing display data.
Background
At present, with the widespread application of smart phones such as mobile terminals, the usage habits of users have been changed from the age of personal computers to the age of smart phones. Applications running in an operating system within a smartphone are becoming more and more widespread and the content of the applications is also becoming richer. As development of application apps or games on smart phones is becoming more popular, each major development team has developed applications or games on the mobile side as an important direction.
Due to the limitation of hardware resources in the mobile terminal, the use of system resources by applications or games needs to be considered when developing mobile terminal applications or games. Typically, when an application or game requires an inordinately large amount of system resources, the application or game needs to be modified to conserve system resources. For example, system resource saving is achieved by modifying code that consumes too much system resources, replacing portions of code, and the like.
The processing of the mobile terminal operating system for display data is typically based on a format language, such as the extensible markup language. The operating system utilizes extensible markup language to describe all interfaces associated with an application or game. When an application or a game is running, data for specifying the format, the content, and the like of display data can be acquired by parsing the xml file. However, the process of parsing an extensible markup language file consumes more system resources and requires more processing time.
Therefore, there is a need for a technique that has generated display data that consumes less system resources and requires shorter processing time by performing preprocessing on the content with which the display data is associated.
Disclosure of Invention
In order to solve the above problem, there is provided a method for processing display data, the method comprising:
the method comprises the steps of obtaining an interface description file of each application in a plurality of applications in user equipment, wherein the interface description file comprises a plurality of markup files used for describing a plurality of interfaces displayed when the applications run;
analyzing the interface description file to acquire the hierarchical relationship of the plurality of markup files;
converting the format of each of the plurality of markup files to generate a machine code file for describing each of a plurality of interfaces, and composing the plurality of machine code files into a display configuration file;
setting a relationship indicator for each of the plurality of machine code files and initializing each relationship indicator according to a hierarchical relationship of the plurality of markup files; and
in response to a start request for a specific application, reading a display configuration file of the specific application and calling one or more machine code files in the plurality of machine code files according to each relationship indicator in the display configuration file so as to display an interface of the specific application.
Each markup file of the plurality of markup files is used to describe a corresponding interface.
In response to a display request for a first interface, interpreting a markup file associated with the first interface to display the first interface according to an interpretation result.
The markup file is an extensible markup language file.
Where each interface has an associated markup file.
The hierarchical relationship is used for indicating a hierarchical structure of the plurality of markup files, and the hierarchical structure comprises a branch structure relationship, a dependency structure relationship, a condition structure relationship and a jump structure relationship.
Further comprising representing the hierarchical relationship using a tree structure.
Before format converting each markup file of the plurality of markup files, further comprising: determining a machine language supported by an operating system of the user device.
The format converting each markup file of the plurality of markup files to generate a machine code file describing each interface of a plurality of interfaces comprises: traversing each markup file of the plurality of markup files, converting each markup file into machine code conforming to a supported machine language based on a result of the traversing, and generating the machine code file describing each interface of the plurality of interfaces.
And forming a display configuration file by the plurality of machine code files according to the sequence determined by the hierarchical relation.
The relationship indicator is used for indicating the association relationship between the machine code file and other machine code files in the same display configuration file.
Wherein initializing each relationship indicator according to the hierarchical relationship of the plurality of markup files comprises: determining an incidence relation between each machine code file according to the hierarchical relation of the plurality of mark files, and initializing each relation indicator based on the incidence relation.
Initializing each relationship indicator based on the association relationship comprises: setting a superior relation indicator for each relation indicator based on the association relation.
Initializing each relationship indicator based on the association relationship comprises: setting a subordinate relationship indicator for each relationship indicator based on the association relationship.
When a particular machine code file is run, an interface associated with the particular machine code file is generated.
In response to a display request for a second interface, executing a machine code file associated with the second interface, thereby displaying the second interface.
According to another aspect of the present invention, there is provided an apparatus for processing display data, the apparatus comprising:
the device comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring an interface description file of each application in a plurality of applications in user equipment, and the interface description file comprises a plurality of mark files for describing a plurality of interfaces displayed when the applications run;
the analysis unit is used for analyzing the interface description file to acquire the hierarchical relationship of the plurality of marked files;
the conversion unit is used for carrying out format conversion on each markup file in the plurality of markup files so as to generate a machine code file for describing each interface in a plurality of interfaces and make up the plurality of machine code files into a display configuration file;
a setting unit, configured to set a relationship indicator for each of the plurality of machine code files, and initialize each relationship indicator according to a hierarchical relationship of the plurality of markup files; and
the display unit is used for responding to a starting request aiming at a specific application, reading a display configuration file of the specific application and calling one or more machine code files in the plurality of machine code files according to each relation indicator in the display configuration file so as to display an interface of the specific application.
Each markup file of the plurality of markup files is used to describe a corresponding interface.
The display device further comprises an interpretation unit which responds to a display request for the first interface and interprets the mark file associated with the first interface so as to display the first interface according to an interpretation result.
The markup file is an extensible markup language file.
Where each interface has an associated markup file.
The hierarchical relationship is used for indicating a hierarchical structure of the plurality of markup files, and the hierarchical structure comprises a branch structure relationship, a dependency structure relationship, a condition structure relationship and a jump structure relationship.
Further comprising representing the hierarchical relationship using a tree structure.
The acquisition unit determines a machine language supported by an operating system of the user equipment.
The converting unit converting a format of each markup file of the plurality of markup files to generate a machine code file describing each interface of a plurality of interfaces includes: the conversion unit traverses each markup file of the plurality of markup files, converts each markup file into machine code conforming to a supported machine language based on a result of the traversal, and generates the machine code file describing each interface of the plurality of interfaces.
The conversion unit makes up the plurality of machine code files into a display configuration file according to the order determined by the hierarchical relationship.
The relationship indicator is used for indicating the association relationship between the machine code file and other machine code files in the same display configuration file.
Wherein initializing each relationship indicator according to the hierarchical relationship of the plurality of markup files comprises: determining an incidence relation between each machine code file according to the hierarchical relation of the plurality of mark files, and initializing each relation indicator based on the incidence relation.
The initializing, by the setting unit, each relationship indicator based on the association relationship includes: the setting unit sets a higher-level relationship indicator for each relationship indicator based on the association relationship.
The initializing, by the setting unit, each relationship indicator based on the association relationship includes: the setting unit sets a subordinate relationship indicator for each relationship indicator based on the association relationship.
When a particular machine code file is run, the display unit generates an interface associated with the particular machine code file.
In response to a display request for a second interface, the display unit executes a machine code file associated with the second interface, thereby displaying the second interface.
According to another aspect of the present invention there is provided a mobile terminal comprising or adapted to carry out the apparatus as described above.
Drawings
A more complete understanding of exemplary embodiments of the present invention may be had by reference to the following drawings in which:
FIG. 1 is a flow diagram of a method for processing display data according to an embodiment of the invention;
FIG. 2 is a logic diagram of the operation of a system according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating an interface using an extensible markup language format;
FIG. 4 is a diagram illustrating an interface using machine code according to an embodiment of the present invention; and
fig. 5 is a schematic structural diagram of an apparatus for processing display data according to an embodiment of the present invention.
Detailed Description
The exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, however, the present invention may be embodied in many different forms and is not limited to the embodiments described herein, which are provided for complete and complete disclosure of the present invention and to fully convey the scope of the present invention to those skilled in the art. The terminology used in the exemplary embodiments illustrated in the accompanying drawings is not intended to be limiting of the invention. In the drawings, the same units/elements are denoted by the same reference numerals.
Unless otherwise defined, terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. Further, it will be understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and will not be interpreted in an idealized or overly formal sense.
FIG. 1 is a flow diagram of a method 100 for processing display data according to an embodiment of the present invention. The method 100 obtains an interface description file for each of a plurality of applications within a user device, and the interface description file includes a plurality of markup files for describing a plurality of interfaces displayed at runtime of the applications. The interface description file is analyzed to obtain the hierarchical relation of the plurality of markup files, format conversion is carried out on each markup file in the plurality of markup files to generate a machine code file for describing each interface in the plurality of interfaces, and the plurality of machine code files are combined into a display configuration file. The method 100 sets a relationship indicator for each of the plurality of machine code files, initializes each relationship indicator according to a hierarchical relationship of the plurality of markup files, and in response to a start request for a particular application, reads a display configuration file of the particular application and invokes one or more of the plurality of machine code files according to each relationship indicator in the display configuration file to perform an interface display of the particular application.
The method 100 begins at step 101. In step 101, an interface description file for each of a plurality of applications in a user device is obtained. The interface description file may be regarded as a collection of markup files, or a file composed of a plurality of markup files. Thus, the interface description file includes a plurality of markup files for describing a plurality of interfaces displayed when the application runs. The interface description file includes markup files related to each interface of a specific application within the user equipment (or mobile terminal). Each markup file of the plurality of markup files is used to describe a corresponding interface. The markup file may be an extensible markup language file, such as:
Figure BDA0001534275280000061
Figure BDA0001534275280000071
any interface may be described by a markup file, and display data associated with any interface may be determined by parsing or interpreting the markup file. The display data includes display content, display format, key layout, font size, color, and the like. When the interface display is carried out, the display unit responds to a display request aiming at a first interface, interprets the mark file associated with the first interface, and displays the first interface according to the interpretation result. Where each interface has an associated markup file.
In step 102, the interface description file is parsed to obtain a hierarchical relationship of the markup files. The hierarchical relationship is used for indicating a hierarchical structure of the plurality of markup files, and the hierarchical structure comprises a branch structure relationship, a dependency structure relationship, a condition structure relationship and a jump structure relationship. The hierarchical relationship of the markup file is used to indicate the hierarchical relationship of the interface. Multiple interfaces of a particular application within a user device (or mobile terminal) typically have a hierarchical relationship. For example, the main interface may be displayed when a particular application is running. In response to a user's operation with respect to the primary interface, a transition may be made from the primary interface to the primary interface, from the primary interface to the secondary interface, from the secondary interface to the tertiary interface, and so on. The relationships among the interfaces include a branch structure relationship, a dependency structure relationship, a conditional structure relationship, and a jump structure relationship. Further, by using the extensible markup language XML, the hierarchical relationship can be represented by a tree structure (or a tree structure).
In step 103, format converting is performed on each markup file in the plurality of markup files to generate a machine code file for describing each interface in the plurality of interfaces, and the plurality of machine code files are combined into a display configuration file. Before format converting each markup file of the plurality of markup files, further comprising: determining a machine language supported by an operating system of the user device. The machine language depends on the architecture of the operating system and the hardware device. The machine language belongs to the underlying language and is the language that the operating system can directly execute. Typically, operating systems execute machine languages faster than interpreted languages because machine languages are machine level languages supported by the operating system or hardware device.
Converting the format of each markup file in the plurality of markup files to generate a machine code file describing each interface in a plurality of interfaces comprises: traversing each markup file of the plurality of markup files, converting each markup file into machine code conforming to a supported machine language based on a result of the traversing, and generating the machine code file describing each interface of the plurality of interfaces. When converting the format of a markup file to generate a machine code file, a hierarchical structure between markup languages needs to be preserved or recorded. The machine code file needs to utilize the hierarchical relationships to determine the hierarchy between the various interfaces. The hierarchical structure includes: a branch structure relationship, a dependency structure relationship, a conditional structure relationship, and a jump structure relationship. And forming a display configuration file by the plurality of machine code files according to the sequence determined by the hierarchical relation.
At step 104, a relationship indicator is set for each of the plurality of machine code files, and each relationship indicator is initialized according to the hierarchical relationship of the plurality of markup files. The relationship indicator is used for indicating the association relationship between the machine code file and other machine code files in the same display configuration file. This relationship is used to represent the hierarchy between the interfaces. Wherein initializing each relationship indicator according to the hierarchical relationship of the plurality of markup files comprises: determining an incidence relation between each machine code file according to the hierarchical relation of the plurality of mark files, and initializing each relation indicator based on the incidence relation. Initializing each relationship indicator based on the association relationship comprises: setting a superior relation indicator for each relation indicator based on the association relation. Wherein the superior relationship indicator is used to indicate the superior interface (or superior machine code file) that can go to the current interface (or to execute the current machine code file). Initializing each relationship indicator based on the association relationship comprises: setting a subordinate relationship indicator for each relationship indicator based on the association relationship. Wherein the subordinate relationship indicator is for indicating a subordinate interface (or a subordinate machine code file) to which a transition from the current interface is possible.
In step 105, in response to a start request for a specific application, reading a display configuration file of the specific application and calling one or more machine code files in the plurality of machine code files according to each relationship indicator in the display configuration file so as to perform interface display of the specific application. When a particular machine code file is run, an interface associated with the particular machine code file is generated. In response to a display request for a second interface, executing a machine code file associated with the second interface, thereby displaying the second interface.
FIG. 2 is a logic diagram of the operation of a system according to an embodiment of the present invention. The mobile terminal 200 reads a boot program from the rom and loads the boot program into the memory in response to the user equipment being powered on. After the bootstrap program is loaded into the memory, the bootstrap program initializes the stack and the hardware device required for running the kernel program. After the initialization, a kernel program is run, which sets up the cache, sets up the protected memory, sets up the plan list, and loads the drivers, and creates a user-level initial process.
The method includes registering a plurality of system services in a registration order and loading the system services first at the beginning of a service loading process and then performing a power-on broadcast on an application. The system services are for example: the method includes the steps of starting a power manager, creating an Activity manager, starting phone registration, starting a package manager, setting an Activity management service as a system process, starting a Context manager, starting a system content provider (Context Providers), starting a battery service, starting a timing manager, starting a window manager, starting a status bar service, starting a network status service, starting a network connection service, starting a notification manager, starting a device storage monitoring service, starting a location manager, starting a search service, starting a clipboard service, starting a registration service, starting a wallpaper service, starting an audio service, starting headphone listening, and the like. Applications running on the mobile terminal 200 include: application 201-1, application 201-2, … …, application 201-n. The application examples are: 360 security guards, 360 music, 360 cell phone security, 360 harassment prevention masters, 360 cell phone first aid kits, 360 privacy safes, 360 cell phone browsers, 360 searches, 360 cell phone assistants, 360 malls, 360 flow guards, 360 weather, payment treasures, WeChat, Goods navigation, and the like.
As shown in fig. 2, each application may include multiple display interfaces. The application 201-1 comprises a display interface 1, a display interface 2, a display interface 3, … … and a display interface n. The application 201-2 comprises a display interface 1, a display interface 2, a display interface 3, … … and a display interface n. The application 201-n comprises a display interface 1, a display interface 2, a display interface 3, … … and a display interface n. Each display interface has an associated markup file. The markup file is used for describing the corresponding interface. The markup file may be an extensible markup language file.
FIG. 3 is a diagram illustrating an interface using an extensible markup language format. As shown in fig. 3, an application 300 is described as an example. The display interface of the application 300 includes: the display system comprises a main interface, a primary display interface 1, a primary display interface 2, a primary display interface 3, a secondary display interface 11, a secondary display interface 12, a secondary display interface 21, a secondary display interface 31, a secondary display interface 32, a tertiary display interface 311, a tertiary display interface 312 and a tertiary display interface 313. The interface description file comprises a plurality of markup files for describing a plurality of interfaces displayed by the application runtime, and the interface description file is used for describing a hierarchical relationship among the plurality of markup files. As shown in fig. 3, the main interface may jump to the primary display interface 1, the primary display interface 2, or the primary display interface 3. The primary display interface 1 may jump to the secondary display interface 11 and the secondary display interface 12. The secondary display interface 2 may jump to the secondary display interface 21. The primary display interface 3 may jump to the secondary display interface 31 and the secondary display interface 32. Secondary display interface 31 may jump to tertiary display interface 311, tertiary display interface 312, and tertiary display interface 313.
FIG. 4 is a diagram illustrating an interface using machine code according to an embodiment of the present invention. The present application format converts each markup file of a plurality of markup files to generate a machine code file describing each interface of a plurality of interfaces. Specifically, each markup file in the plurality of markup files is traversed, each markup file is converted into machine code conforming to a supported machine language based on a traversal result, and the machine code is generated into a machine code file describing each interface in the plurality of interfaces. When converting the format of a markup file to generate a machine code file, a hierarchical structure between markup languages needs to be preserved or recorded. The machine code file needs to utilize the hierarchical relationships to determine the hierarchy between the various interfaces. The hierarchical structure includes: a branch structure relationship, a dependency structure relationship, a conditional structure relationship, and a jump structure relationship. And forming a display configuration file by the plurality of machine code files according to the sequence determined by the hierarchical relation.
Setting a relationship indicator for each of the plurality of machine code files, and initializing each relationship indicator according to a hierarchical relationship of the plurality of markup files. The relationship indicator is used for indicating the association relationship between the machine code file and other machine code files in the same display configuration file. This relationship is used to represent the hierarchy between the interfaces. Wherein initializing each relationship indicator according to the hierarchical relationship of the plurality of markup files comprises: determining an incidence relation between each machine code file according to the hierarchical relation of the plurality of mark files, and initializing each relation indicator based on the incidence relation. Initializing each relationship indicator based on the association relationship comprises: setting a superior relation indicator for each relation indicator based on the association relation. Wherein the superior relationship indicator is used to indicate the superior interface (or superior machine code file) that can go to the current interface (or to execute the current machine code file). Initializing each relationship indicator based on the association relationship comprises: setting a subordinate relationship indicator for each relationship indicator based on the association relationship. Wherein the subordinate relationship indicator is for indicating a subordinate interface (or a subordinate machine code file) to which a transition from the current interface is possible.
As shown in fig. 4, the main interface may jump to the primary display interface 1, the primary display interface 2, or the primary display interface 3 through the subordinate relationship indicator. The primary display interface 1 may jump to the secondary display interface 11 and the secondary display interface 12 through the subordinate relationship indicator. The secondary display interface 2 may jump to the secondary display interface 21 via the subordinate relationship indicator. The primary display interface 3 may jump to the secondary display interface 31 and the secondary display interface 32 through the subordinate relationship indicator. The secondary display interface 31 may jump to the tertiary display interface 311, the tertiary display interface 312, and the tertiary display interface 313 through the subordinate relationship indicator. In addition, the tertiary display interface 311, the tertiary display interface 312, and the tertiary display interface 313 may jump to the secondary display interface 31, the primary display interface 3, or the main interface through the superior relationship indicator. The secondary display interface 11 and the secondary display interface 12 can jump to the primary display interface 1 or the main interface through the superior relation indicator. The secondary display interface 21 may jump to the primary display interface 2 or the main interface through the superior relationship indicator. The secondary display interface 31 and the secondary display interface 32 may jump to the primary display interface 3 or the main interface through the superior relation indicator. The primary display interface 1, the primary display interface 2 or the primary display interface 3 can jump to the main interface through the superior relation indicator.
Fig. 5 is a schematic structural diagram of an apparatus 500 for processing display data according to an embodiment of the present invention. The device 500 obtains an interface description file for each of a plurality of applications within the user device, and the interface description file includes a plurality of markup files for describing a plurality of interfaces displayed when the applications are run. The interface description file is analyzed to obtain the hierarchical relation of the plurality of markup files, format conversion is carried out on each markup file in the plurality of markup files to generate a machine code file for describing each interface in the plurality of interfaces, and the plurality of machine code files are combined into a display configuration file. The apparatus 500 sets a relationship indicator for each of the plurality of machine code files, initializes each relationship indicator according to a hierarchical relationship of the plurality of markup files, and in response to a start request for a specific application, reads a display configuration file of the specific application and calls one or more of the plurality of machine code files according to each relationship indicator in the display configuration file, thereby performing an interface display of the specific application.
The apparatus 500 comprises: an acquisition unit 501, a parsing unit 502, a conversion unit 503, a setting unit 504, a display unit 505, and an interpretation unit 506. The acquisition unit 501 acquires an interface description file of each of a plurality of applications in the user equipment. The interface description file may be regarded as a collection of markup files, or a file composed of a plurality of markup files. Thus, the interface description file includes a plurality of markup files for describing a plurality of interfaces displayed when the application runs. The interface description file includes markup files related to each interface of a specific application within the user equipment (or mobile terminal). Each markup file of the plurality of markup files is used to describe a corresponding interface. The markup file may be an extensible markup language file.
Any interface may be described by a markup file, and display data associated with any interface may be determined by parsing or interpreting the markup file. The display data includes display content, display format, key layout, font size, color, and the like. When the interface display is carried out, the display unit responds to a display request aiming at a first interface, interprets the mark file associated with the first interface, and displays the first interface according to the interpretation result. Where each interface has an associated markup file.
The parsing unit 502 parses the interface description file to obtain a hierarchical relationship of the markup files. The hierarchical relationship is used for indicating a hierarchical structure of the plurality of markup files, and the hierarchical structure comprises a branch structure relationship, a dependency structure relationship, a condition structure relationship and a jump structure relationship. The hierarchical relationship of the markup file is used to indicate the hierarchical relationship of the interface. Multiple interfaces of a particular application within a user device (or mobile terminal) typically have a hierarchical relationship. For example, the main interface may be displayed when a particular application is running. In response to a user's operation with respect to the primary interface, a transition may be made from the primary interface to the primary interface, from the primary interface to the secondary interface, from the secondary interface to the tertiary interface, and so on. The relationships among the interfaces include a branch structure relationship, a dependency structure relationship, a conditional structure relationship, and a jump structure relationship. Further, by using the extensible markup language XML, the hierarchical relationship can be represented by a tree structure (or a tree structure).
The conversion unit 503 performs format conversion on each of the plurality of markup files to generate a machine code file for describing each of the plurality of interfaces, and composes the plurality of machine code files into a display configuration file. Before format converting each markup file of the plurality of markup files, further comprising: determining a machine language supported by an operating system of the user device. The machine language depends on the architecture of the operating system and the hardware device. The machine language belongs to the underlying language and is the language that the operating system can directly execute. Typically, operating systems execute machine languages faster than interpreted languages because machine languages are machine level languages supported by the operating system or hardware device.
Converting the format of each markup file in the plurality of markup files to generate a machine code file describing each interface in a plurality of interfaces comprises: traversing each markup file of the plurality of markup files, converting each markup file into machine code conforming to a supported machine language based on a result of the traversing, and generating the machine code file describing each interface of the plurality of interfaces. When converting the format of a markup file to generate a machine code file, a hierarchical structure between markup languages needs to be preserved or recorded. The machine code file needs to utilize the hierarchical relationships to determine the hierarchy between the various interfaces. The hierarchical structure includes: a branch structure relationship, a dependency structure relationship, a conditional structure relationship, and a jump structure relationship. And forming a display configuration file by the plurality of machine code files according to the sequence determined by the hierarchical relation.
The setting unit 504 sets a relationship indicator for each of the plurality of machine code files, and initializes each relationship indicator according to a hierarchical relationship of the plurality of markup files. The relationship indicator is used for indicating the association relationship between the machine code file and other machine code files in the same display configuration file. This relationship is used to represent the hierarchy between the interfaces. Wherein initializing each relationship indicator according to the hierarchical relationship of the plurality of markup files comprises: determining an incidence relation between each machine code file according to the hierarchical relation of the plurality of mark files, and initializing each relation indicator based on the incidence relation. Initializing each relationship indicator based on the association relationship comprises: setting a superior relation indicator for each relation indicator based on the association relation. Wherein the superior relationship indicator is used to indicate the superior interface (or superior machine code file) that can go to the current interface (or to execute the current machine code file). Initializing each relationship indicator based on the association relationship comprises: setting a subordinate relationship indicator for each relationship indicator based on the association relationship. Wherein the subordinate relationship indicator is for indicating a subordinate interface (or a subordinate machine code file) to which a transition from the current interface is possible.
The display unit 505 reads a display configuration file of a specific application in response to a start request for the specific application and calls one or more machine code files of the plurality of machine code files according to each relationship indicator in the display configuration file, thereby performing interface display of the specific application. When a particular machine code file is run, an interface associated with the particular machine code file is generated. In response to a display request for a second interface, executing a machine code file associated with the second interface, thereby displaying the second interface.
Further, the interpretation unit 506 interprets the markup file associated with the first interface in response to a display request for the first interface to display the first interface according to a result of the interpretation.
In addition, the present invention also includes a mobile terminal for executing the various systems as described above.
The invention has been described with reference to a few embodiments. However, other embodiments of the invention than the one disclosed above are equally possible within the scope of the invention, as would be apparent to a person skilled in the art from the appended patent claims.
Generally, all terms used in the claims are to be interpreted according to their ordinary meaning in the technical field, unless explicitly defined otherwise herein. All references to "a/an/the [ device, component, etc ]" are to be interpreted openly as referring to at least one instance of said device, component, etc., unless explicitly stated otherwise. The steps of any system disclosed herein do not have to be performed in the exact order disclosed, unless explicitly stated.

Claims (27)

1. A method for processing display data, the method comprising:
the method comprises the steps of obtaining an interface description file of each application in a plurality of applications in user equipment, wherein the interface description file comprises a plurality of markup files used for describing a plurality of interfaces displayed when the applications run;
analyzing the interface description file to acquire the hierarchical relationship of the plurality of markup files;
converting the format of each of the plurality of markup files to generate a machine code file for describing each of a plurality of interfaces, and composing the plurality of machine code files into a display configuration file;
setting a relationship indicator for each of the plurality of machine code files, and determining an association relationship between each machine code file according to a hierarchical relationship of the plurality of markup files, and initializing each relationship indicator based on the association relationship; and
in response to a starting request for a specific application, reading a display configuration file of the specific application and calling one or more machine code files in the plurality of machine code files according to each relation indicator in the display configuration file so as to display an interface of the specific application;
wherein the hierarchical relationship is used for indicating a hierarchical structure of the plurality of markup files, and the hierarchical structure comprises a branch structure relationship, a dependency structure relationship, a condition structure relationship and a jump structure relationship; the relationship indicator is used for indicating the association relationship between the machine code file and other machine code files in the same display configuration file.
2. The method of claim 1, each markup file of the plurality of markup files being used to describe a respective interface.
3. The method of claim 2, wherein in response to a display request for a first interface, a markup file associated with the first interface is interpreted to display the first interface according to an interpretation result.
4. The method of any of claims 1-3, the markup file being an extensible markup language file.
5. The method of claim 1, wherein each interface has an associated markup file.
6. The method of claim 1, further comprising representing the hierarchical relationship using a tree structure.
7. The method of claim 1, further comprising, prior to format converting each markup file of the plurality of markup files: determining a machine language supported by an operating system of the user device.
8. The method of claim 7, the converting each markup file of the plurality of markup files to a format to generate a machine code file describing each interface of a plurality of interfaces comprising: traversing each markup file of the plurality of markup files, converting each markup file into machine code conforming to a supported machine language based on a result of the traversing, and generating the machine code file describing each interface of the plurality of interfaces.
9. The method of claim 1 or 8, composing the plurality of machine code files into a display configuration file in an order determined by a hierarchical relationship.
10. The method of claim 1, the initializing each relationship indicator based on the association relationship comprising: setting a superior relation indicator for each relation indicator based on the association relation.
11. The method of claim 1, the initializing each relationship indicator based on the association relationship comprising: setting a subordinate relationship indicator for each relationship indicator based on the association relationship.
12. The method of claim 1, when executing a particular machine code file, generating an interface associated with the particular machine code file.
13. The method of claim 1, in response to a display request for a second interface, executing a machine code file associated with the second interface to display the second interface.
14. An apparatus for processing display data, the apparatus comprising:
the device comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring an interface description file of each application in a plurality of applications in user equipment, and the interface description file comprises a plurality of mark files for describing a plurality of interfaces displayed when the applications run;
the analysis unit is used for analyzing the interface description file to acquire the hierarchical relationship of the plurality of marked files;
the conversion unit is used for carrying out format conversion on each markup file in the plurality of markup files so as to generate a machine code file for describing each interface in a plurality of interfaces and make up the plurality of machine code files into a display configuration file;
a setting unit, configured to set a relationship indicator for each of the plurality of machine code files, determine an association relationship between each of the machine code files according to a hierarchical relationship of the plurality of markup files, and initialize each relationship indicator based on the association relationship; and
the display unit is used for responding to a starting request aiming at a specific application, reading a display configuration file of the specific application and calling one or more machine code files in the plurality of machine code files according to each relation indicator in the display configuration file so as to display an interface of the specific application;
wherein the hierarchical relationship is used for indicating a hierarchical structure of the plurality of markup files, and the hierarchical structure comprises a branch structure relationship, a dependency structure relationship, a condition structure relationship and a jump structure relationship; the relationship indicator is used for indicating the association relationship between the machine code file and other machine code files in the same display configuration file.
15. The apparatus of claim 14, each markup file of the plurality of markup files for describing a respective interface.
16. The apparatus of claim 15, further comprising an interpretation unit, in response to a display request for a first interface, to interpret a markup file associated with the first interface to display the first interface according to an interpretation result.
17. The apparatus of any of claims 14-16, the markup file being an extensible markup language file.
18. The apparatus of claim 14, wherein each interface has an associated markup file.
19. The apparatus of claim 14, further comprising representing the hierarchical relationship with a tree structure.
20. The device of claim 14, the obtaining unit to determine a machine language supported by an operating system of the user device.
21. The apparatus of claim 20, the conversion unit to format convert each markup file of the plurality of markup files to generate a machine code file describing each interface of a plurality of interfaces comprising: the conversion unit traverses each markup file of the plurality of markup files, converts each markup file into machine code conforming to a supported machine language based on a result of the traversal, and generates the machine code file describing each interface of the plurality of interfaces.
22. The apparatus of claim 14 or 21, the transformation unit to compose the plurality of machine code files into a display configuration file in an order determined by a hierarchical relationship.
23. The apparatus of claim 14, the setup unit to initialize each relationship indicator based on the association relationship comprising: the setting unit sets a higher-level relationship indicator for each relationship indicator based on the association relationship.
24. The apparatus of claim 14, the setup unit to initialize each relationship indicator based on the association relationship comprising: the setting unit sets a subordinate relationship indicator for each relationship indicator based on the association relationship.
25. The apparatus of claim 14, the display unit to generate an interface associated with a particular machine code file when the particular machine code file is executed.
26. The apparatus of claim 14, the display unit to execute a machine code file associated with a second interface to display the second interface in response to a display request for the second interface.
27. A mobile terminal comprising or being adapted to carry out the apparatus of any of claims 14-26.
CN201711483500.5A 2017-12-29 2017-12-29 Method and device for processing display data and mobile terminal Active CN108228805B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711483500.5A CN108228805B (en) 2017-12-29 2017-12-29 Method and device for processing display data and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711483500.5A CN108228805B (en) 2017-12-29 2017-12-29 Method and device for processing display data and mobile terminal

Publications (2)

Publication Number Publication Date
CN108228805A CN108228805A (en) 2018-06-29
CN108228805B true CN108228805B (en) 2021-04-06

Family

ID=62647150

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711483500.5A Active CN108228805B (en) 2017-12-29 2017-12-29 Method and device for processing display data and mobile terminal

Country Status (1)

Country Link
CN (1) CN108228805B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101295247A (en) * 2008-06-24 2008-10-29 杭州义益自动化有限公司 Method for generating built-in graphical interface across CPU platform
CN101763423A (en) * 2010-01-21 2010-06-30 中兴通讯股份有限公司 Method for realizing presentation of tree-structure data in World Wide Web page as well as system and device therefor
CN102830957A (en) * 2011-06-15 2012-12-19 康佳集团股份有限公司 Method for generating interface code and application software of television
CN102968306A (en) * 2012-11-29 2013-03-13 广东全通教育股份有限公司 Method and system for automatically generating code based on data model drive

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101727498A (en) * 2010-01-15 2010-06-09 西安交通大学 Automatic extraction method of web page information based on WEB structure
JP5325920B2 (en) * 2011-03-28 2013-10-23 株式会社東芝 Encoder compiler, program and communication equipment
CN102314498B (en) * 2011-08-26 2014-11-26 百度在线网络技术(北京)有限公司 Method and equipment for implementing main identification of page
US20140053056A1 (en) * 2012-08-16 2014-02-20 Qualcomm Incorporated Pre-processing of scripts in web browsers
CN106325685B (en) * 2015-06-16 2019-09-27 广州市动景计算机科技有限公司 Interface alternation method and device
CN105589918B (en) * 2015-09-17 2017-04-05 广州市动景计算机科技有限公司 A kind of method and device for extracting page info
CN106897361B (en) * 2017-01-10 2020-06-19 中电科华云信息技术有限公司 Label page grouping management system and method based on tree structure

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101295247A (en) * 2008-06-24 2008-10-29 杭州义益自动化有限公司 Method for generating built-in graphical interface across CPU platform
CN101763423A (en) * 2010-01-21 2010-06-30 中兴通讯股份有限公司 Method for realizing presentation of tree-structure data in World Wide Web page as well as system and device therefor
CN102830957A (en) * 2011-06-15 2012-12-19 康佳集团股份有限公司 Method for generating interface code and application software of television
CN102968306A (en) * 2012-11-29 2013-03-13 广东全通教育股份有限公司 Method and system for automatically generating code based on data model drive

Also Published As

Publication number Publication date
CN108228805A (en) 2018-06-29

Similar Documents

Publication Publication Date Title
CN107861713B (en) Data calling method and device and computer readable storage medium
CN111639287A (en) Page processing method and device, terminal equipment and readable storage medium
CN102929638B (en) Method and system for expanding Web application (App) functions
US20090199213A1 (en) Automatic Connections Between Application Components
WO2019072201A1 (en) Webpage content extraction method and terminal device
US20090158238A1 (en) Method and apparatus for providing api service and making api mash-up, and computer readable recording medium thereof
CN112861057A (en) Page rendering method, device and equipment based on small program and storage medium
CN104995601A (en) Switching to and from native web applications
WO2022068183A1 (en) Configuration generation method and apparatus, electronic device and storage medium
CN108228805B (en) Method and device for processing display data and mobile terminal
CN109614592B (en) Text processing method and device, storage medium and electronic equipment
CN112423024A (en) Video transcoding method and device, computer equipment and storage medium
CN115904167A (en) Processing method and device of webpage icon, storage medium and electronic equipment
CN115373815A (en) Task scheduling method and device, electronic equipment and storage medium
CN101950251B (en) Localization method for mobile Widget
CN112905931B (en) Page information display method and device, electronic equipment and storage medium
CN113434152A (en) Software development method, system and readable storage medium
CN110795154B (en) Cross-platform device driving method, device and computer readable storage medium
CN111767111A (en) Page data processing method and device, electronic equipment and storage medium
CN111026317A (en) Method, device and storage medium for determining user operation
CN111984258A (en) Page construction method and equipment
CN112948013A (en) Application probe configuration method and device, terminal equipment and storage medium
CN111027287B (en) Method and related device for converting computer executable script
CN113835914B (en) Debugging system, method, device and equipment of firmware support package
CN114021041A (en) Display method and device of sharing control, electronic equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant