CN110413280A - A kind of Android system graphic display method - Google Patents

A kind of Android system graphic display method Download PDF

Info

Publication number
CN110413280A
CN110413280A CN201910677937.5A CN201910677937A CN110413280A CN 110413280 A CN110413280 A CN 110413280A CN 201910677937 A CN201910677937 A CN 201910677937A CN 110413280 A CN110413280 A CN 110413280A
Authority
CN
China
Prior art keywords
mapping
data
mapping process
event
client end
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.)
Granted
Application number
CN201910677937.5A
Other languages
Chinese (zh)
Other versions
CN110413280B (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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201910677937.5A priority Critical patent/CN110413280B/en
Publication of CN110413280A publication Critical patent/CN110413280A/en
Application granted granted Critical
Publication of CN110413280B publication Critical patent/CN110413280B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Digital Computer Display Output (AREA)

Abstract

The invention discloses a kind of Android system graphic display methods, comprising the following steps: A. defines dedicated mapping process, wherein the mapping process includes mapping process client end for carrying out graphical display and for the mapping process server-side of data processing;B. mapping process uses shared drive storing data, and notifies the mapping of mapping process client end by event;C. mapping event is received when mapping process client end listens to mapping event, and analyzes the parameter of mapping event, reads corresponding image data, format is shown.Method of the invention can be used for solving the problems, such as that android O version and customer service later can not directly carry out osd and show.

Description

A kind of Android system graphic display method
Technical field
The present invention relates to Android system electronic appliance softwares to carry out graphical display technics field, in particular to a kind of Android system graphic display method.
Background technique
With flourishing for DTV industry, DTV STB ceaselessly updates, since most Ecos operating system arrives linux operating system, then to the android operating system to globalize at present.System is increasingly advanced, Using more and more, data exchange is more and more frequent, and security requirement is higher and higher.Safety of the Google to Android system Property require it is more and more careful clear.
In Android O version, Google has formally issued Project Treble, and order is client software is (soft Part is generally divided into APP and service, and APP is responsible for interaction and shows, services and is responsible for processing function, and service can generally also be made Figure) be kept completely separate with Android system, android progress system upgrade when, do not influence client software (client software subregion without It changes).This desired appearance causes the service of client software that cannot map again due to security requirement.And it is practical On in application scenes, the service of APP can intensively receive in a short time image data be transmitted to APP application shown Show, data transmission efficiency can reduce under this scene, and will cause display delay.
Summary of the invention
It is insufficient in above-mentioned background technique the purpose of the present invention is overcoming, a kind of Android system graphic display method is provided, It is mainly used for solving the problems, such as that android O version and customer service later can not directly carry out osd and show.
In order to reach above-mentioned technical effect, the present invention takes following technical scheme:
A kind of Android system graphic display method, comprising the following steps:
A. dedicated mapping process is defined, wherein the mapping process includes the mapping process visitor for carrying out graphical display Family end and mapping process server-side for data processing;
B. mapping process uses shared drive storing data, and notifies the mapping of mapping process client end by event;
C. mapping event is received when mapping process client end listens to mapping event, and analyzes the parameter of mapping event, Read corresponding image data, format is shown.
Further, the step B is specifically included:
B1. the service of mapping process server-side starting client APP, creates the service thread of client APP, by client APP's Services Integration is to mapping process server-side;
B2. the service thread of the client APP is interacted by set strategy with client APP, and the data that will acquire are deposited Shared drive is stored up, and sends mapping event to mapping process client end.
Further, in the step B1, being specifically when by the Services Integration of client APP to mapping process server-side will be objective The service of family APP is made into dynamic base and is linked to mapping process server-side.
Further, the data stored in the step B to shared drive are divided into data head data and mapping data, described Data head data include: Data Identification head, data length, canvas size, coordinate, image sources, drawing method, make chart-pattern, Reserved field, crc check field.
Further, the step C specifically:
C1. mapping event is received when mapping process client end listens to mapping event, and analyzes the parameter of mapping event;
C2. storage in corresponding shared drive is read according to the information of the mapping event received in mapping process client end Data obtain specific data head data;
C3. the parameter for the mapping event that mapping process client end obtains the information of the data head data of reading and analysis into Row comparison, if the two unanimously if continue to show, otherwise abandon showing.
It further, further include that will be shared after the completion of display when if carrying out continuing display after judgement in the step C3 Data head data in memory empty and the successful information of display are written;It further include by the number in shared drive when if abandoning display It is emptied according to head data and display failure information and reason is written.
Compared with prior art, the present invention have it is below the utility model has the advantages that
Android system graphic display method of the invention, by individually creating a mapping thread, by client APP's Service needs the display function carried out to be put into the server-side of mapping thread, passes through the visitor of mapping event notice mapping thread Family end is shown;To effective solution client APP service due to androidO version safety upgrade after, service processes The problem of being unable to Direct graphic method, and the service of multiple client APP can be supported to map simultaneously.
Specific embodiment
Below with reference to the embodiment of the present invention, the invention will be further elaborated.
Embodiment:
Embodiment one:
A kind of Android system graphic display method, comprising the following steps:
S1. dedicated mapping process is defined, wherein the mapping process includes the mapping process visitor for carrying out graphical display Family end and mapping process server-side for data processing.
S2. mapping process uses shared drive storing data, and notifies the mapping of mapping process client end by event.
Specifically, be that shared drive module is packaged into individual dynamic base in the present embodiment, mapping process server-side and Mapping process client end is dependent on the dynamic base;Mapping process server-side initializes shared drive when starting, instantiate in shared N object of class is deposited, each object has unique memory ID and corresponding region of memory etc., and mapping process server-side passes through memory ID Carry out the application of shared drive, data write-in;Mapping process client end obtains image data storage address by memory ID and goes forward side by side Row is read.
S2.1. the service of mapping process server-side starting client APP, creates the service thread of client APP, by client APP Services Integration to mapping process server-side;
Wherein, be specifically when by the Services Integration of client APP to mapping process server-side the service of client APP is made into it is dynamic State library is linked to mapping process server-side.
S2.2. the service thread of the client APP is interacted by set strategy with client APP, the data that will acquire Shared drive is stored, and sends mapping event to mapping process client end.
Specifically, modifying the mapping code in client app service as follows in the present embodiment, a. inquiry is shared interior State is deposited, idle shared drive object and corresponding memory address are got;B. image data is analyzed, according to corresponding information Increase data head, and mapping data is stored to the shared drive in the way of pixel;C. mapping event is sent to mapping process visitor Family end;Then client's app service is packaged into a thread, and its code is packaged into dynamic base;Mapping process server-side Client app service thread interface is called on startup, makes client's app service operation;Client's app service thread circulatory monitoring Its own event, message etc. are communicated with client's app server-side.
Wherein, the data stored to shared drive are divided into data head data and mapping data, and the data head data include: Data Identification head, canvas size, coordinate, image sources, drawing method, makees chart-pattern, reserved field, crc verification at data length Field.
Specifically, Data Identification head is that per thread is formed using oneself exclusive character string identification, for distinguishing other Thread information;Data length is the total length from canvas size to crc check field;Reserved field, that is, reserved field;Crc verification Field: being that Data Identification head to reserved field data is carried out CRC check;Canvas size map for indicating in mapping process visitor The region of family end mapping;Mapping coordinate includes starting point coordinate and wide high, position of the expression mapping data on painting canvas;Picture format Several bytes are occupied for one pixel of expression, such as;ARGB8888 etc.;Image sources indicate the specific source of image, such as to make Figure process client end finds corresponding memory address by shared drive ID, and is determined according to specific mapping coordinate, picture format Justice carries out reading data;Covering, removing, fusion etc. are specifically divided into as chart-pattern.
Mapping process client end will specifically be shown according to specific as chart-pattern according in display, if making Chart-pattern is covering, then concrete operations are as follows: the image sources data that a. will acquire are arranged by pixel as defined in picture format, According to the specific coordinate (except coordinates regional, with Transparent color) of mapping coordinate, it is resolved to the painting canvas of the mapping canvas size met On;B. (display area at replacement process client end is corresponding on the display area that painting canvas data directly overlie process client end The data of coordinate);If canvas size is not of uniform size with the display area at mapping process client end, contract in proportion It puts.
If making chart-pattern is fusion mode, after carrying out above-mentioned steps a, needed in step b by painting canvas data with into work The display area data at figure process client end are being shown after being merged.
If making chart-pattern to remove, the data of the display area respective coordinates at mapping process client end are directly removed.
S3. mapping event is received when mapping process client end listens to mapping event, and analyzes the parameter of mapping event, Read corresponding image data, format is shown.
S3.1. mapping event is received when mapping process client end listens to mapping event, and analyzes the ginseng of mapping event Number;
S3.2. storage in corresponding shared drive is read according to the information of the mapping event received in mapping process client end Data obtain specific data head data;
S3.3. the parameter for the mapping event that mapping process client end obtains the information of the data head data of reading and analysis Compare, if the two unanimously if continue to show, and the data head data in shared drive are emptied and are write after the completion of display Enter and show successful information, otherwise abandon showing, and the data head data in shared drive are emptied and display is written and are unsuccessfully believed Breath and reason.For example it shows and 0x1111 is successfully then written;It abandons showing and write if data header information and practical information are inconsistent Enter 0x1234, then keeps up with the inconsistent parameter of information;0x5678 is written if showing failure.
It is understood that the principle that embodiment of above is intended to be merely illustrative of the present and the exemplary implementation that uses Mode, however the present invention is not limited thereto.For those skilled in the art, essence of the invention is not being departed from In the case where mind and essence, various changes and modifications can be made therein, these variations and modifications are also considered as protection scope of the present invention.

Claims (6)

1. a kind of Android system graphic display method, which comprises the following steps:
A. dedicated mapping process is defined, wherein the mapping process includes the mapping process client end for carrying out graphical display And the mapping process server-side for data processing;
B. mapping process uses shared drive storing data, and notifies the mapping of mapping process client end by event;
C. mapping event is received when mapping process client end listens to mapping event, and analyzes the parameter of mapping event, is read Corresponding image data, format are shown.
2. a kind of Android system graphic display method according to claim 1, which is characterized in that the step B is specific Include:
B1. the service of mapping process server-side starting client APP, creates the service thread of client APP, by the service of client APP It is integrated into mapping process server-side;
B2. the service thread of the client APP is interacted by set strategy with client APP, and the data storage that will acquire is arrived Shared drive, and mapping event is sent to mapping process client end.
3. a kind of Android system graphic display method according to claim 2, which is characterized in that in the step B1, It is specifically that the service of client APP is made into dynamic base to be linked to work when by the Services Integration of client APP to mapping process server-side Figure process server-side.
4. a kind of Android system graphic display method according to any one of claims 1 to 3, which is characterized in that described The data stored in step B to shared drive are divided into data head data and mapping data, and the data head data include: data mark Know head, data length, canvas size, coordinate, image sources, drawing method, make chart-pattern, reserved field, crc check field.
5. a kind of Android system graphic display method according to claim 4, which is characterized in that the step C is specific Are as follows:
C1. mapping event is received when mapping process client end listens to mapping event, and analyzes the parameter of mapping event;
C2. the data stored in corresponding shared drive are read at mapping process client end according to the information of the mapping event received Obtain specific data head data;
C3. mapping process client end carries out the parameter for the mapping event that the information of the data head data of reading and analysis obtain pair Than, if the two unanimously if continue to show, otherwise abandon showing.
6. a kind of Android system graphic display method according to claim 5, which is characterized in that in the step C3, It further include that the data head data in shared drive are emptied and are written aobvious after the completion of display when if carrying out continuing display after judgement Show successful information;It further include that the data head data in shared drive are emptied and display failure information is written when if abandoning display And reason.
CN201910677937.5A 2019-07-25 2019-07-25 Android system graph display method Active CN110413280B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910677937.5A CN110413280B (en) 2019-07-25 2019-07-25 Android system graph display method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910677937.5A CN110413280B (en) 2019-07-25 2019-07-25 Android system graph display method

Publications (2)

Publication Number Publication Date
CN110413280A true CN110413280A (en) 2019-11-05
CN110413280B CN110413280B (en) 2022-02-22

Family

ID=68363138

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910677937.5A Active CN110413280B (en) 2019-07-25 2019-07-25 Android system graph display method

Country Status (1)

Country Link
CN (1) CN110413280B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111901660A (en) * 2020-06-30 2020-11-06 视联动力信息技术股份有限公司 Image display method, terminal, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5253340A (en) * 1990-01-19 1993-10-12 Canon Kabushiki Kaisha Data processing apparatus having a graphics device with priority scheduling of drawing requests
CN104679486A (en) * 2013-11-28 2015-06-03 华为技术有限公司 Method, device and system for processing graph data
CN104994082A (en) * 2015-06-16 2015-10-21 努比亚技术有限公司 Picture information processing method, server and system
CN106873932A (en) * 2017-02-17 2017-06-20 浙江大学 A kind of android system service end, remote desktop image reorientation method and system
CN107608588A (en) * 2017-10-20 2018-01-19 京东方科技集团股份有限公司 Display layer, display methods, display system and operating system
CN107959845A (en) * 2017-11-13 2018-04-24 北京小鸟看看科技有限公司 The method, apparatus of view data transmission, client terminal device and wear display device
US20180275971A1 (en) * 2016-11-16 2018-09-27 ZigiSoft, LLC Graphical user interface programming system
CN109104635A (en) * 2018-08-31 2018-12-28 四川长虹电器股份有限公司 The method and system of instant delivery screen picture

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5253340A (en) * 1990-01-19 1993-10-12 Canon Kabushiki Kaisha Data processing apparatus having a graphics device with priority scheduling of drawing requests
CN104679486A (en) * 2013-11-28 2015-06-03 华为技术有限公司 Method, device and system for processing graph data
CN104994082A (en) * 2015-06-16 2015-10-21 努比亚技术有限公司 Picture information processing method, server and system
US20180275971A1 (en) * 2016-11-16 2018-09-27 ZigiSoft, LLC Graphical user interface programming system
CN106873932A (en) * 2017-02-17 2017-06-20 浙江大学 A kind of android system service end, remote desktop image reorientation method and system
CN107608588A (en) * 2017-10-20 2018-01-19 京东方科技集团股份有限公司 Display layer, display methods, display system and operating system
CN107959845A (en) * 2017-11-13 2018-04-24 北京小鸟看看科技有限公司 The method, apparatus of view data transmission, client terminal device and wear display device
CN109104635A (en) * 2018-08-31 2018-12-28 四川长虹电器股份有限公司 The method and system of instant delivery screen picture

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
谢志华: "Android图形显示系统的改进研究与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111901660A (en) * 2020-06-30 2020-11-06 视联动力信息技术股份有限公司 Image display method, terminal, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110413280B (en) 2022-02-22

Similar Documents

Publication Publication Date Title
CN103617027B (en) Based on image rendering engine construction method and the system of Android system
CN108376094B (en) Notification message display method and device, computer equipment and storage medium
US10169302B2 (en) Method and system for page display, server-end device, client device and storage medium
CN106055469A (en) System and method for mobile terminal application testing based on code injection
CN110837420B (en) Resource scheduling method, device, terminal and storage medium
CN111367518B (en) Page layout method, page layout device, computing equipment and computer storage medium
CN110413280A (en) A kind of Android system graphic display method
CN109345630A (en) AR information generating method, device, storage medium and the equipment that can customize
CN111476875B (en) Smart building Internet of things object simulation method and building cloud server
CN108399327A (en) Electronic device, the user authentication method based on dynamic picture and storage medium
CN109165332A (en) A kind of webpage information acquisition methods, device and equipment
CN107648854B (en) Game classification method and device and electronic equipment
CN109960543B (en) Writing operation processing method and device
CN116149240B (en) Chip mounter software and hardware interaction information real-time monitoring analysis system, method and storage medium
CN106230616A (en) A kind of service configuration information processing method and system
WO2022252509A1 (en) Data display method and apparatus, device, storage medium, and computer program product
CN109710352A (en) A kind of display methods and device of boot animation
CN111260537A (en) Image privacy protection method and device, storage medium and camera equipment
CN105761208A (en) Picture fusing and splicing method
CN100414497C (en) Method of generating close command and automatic close in shockwave formatted file
CN105592097A (en) Asynchronous interaction information method based on client
CA2426983A1 (en) Method for capturing a complete data set of forms provided with graphic characters
KR20010064239A (en) Automatic testcase generation method for testing of object - oriented CHILL programs
CN111800669B (en) Rendering method and device of text subtitles under android system
CN109117137A (en) Advertisement moving picture executes method, apparatus, terminal and readable 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
EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20191105

Assignee: Sichuan Changhong Xinwang Technology Co.,Ltd.

Assignor: SICHUAN CHANGHONG ELECTRIC Co.,Ltd.

Contract record no.: X2023980043949

Denomination of invention: A Graphic Display Method for Android Systems

Granted publication date: 20220222

License type: Common License

Record date: 20231030