CN109408179A - Method and device for determining comprehensive screen of terminal equipment - Google Patents

Method and device for determining comprehensive screen of terminal equipment Download PDF

Info

Publication number
CN109408179A
CN109408179A CN201811168695.9A CN201811168695A CN109408179A CN 109408179 A CN109408179 A CN 109408179A CN 201811168695 A CN201811168695 A CN 201811168695A CN 109408179 A CN109408179 A CN 109408179A
Authority
CN
China
Prior art keywords
display screen
height
terminal device
screen
comprehensive
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
CN201811168695.9A
Other languages
Chinese (zh)
Other versions
CN109408179B (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 Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software 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 Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201811168695.9A priority Critical patent/CN109408179B/en
Publication of CN109408179A publication Critical patent/CN109408179A/en
Application granted granted Critical
Publication of CN109408179B publication Critical patent/CN109408179B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

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)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a method for determining a comprehensive screen of terminal equipment, which comprises the following steps: the method comprises the steps of obtaining the actual height and the width of a display screen of the terminal equipment, judging whether the actual height and the width of the display screen meet preset comprehensive screen characteristics according to a preset judgment strategy, and if the actual height and the width of the display screen meet the preset comprehensive screen characteristics, determining that the display screen of the terminal equipment is a full screen. Therefore, the automatic determination of the full screen of the terminal equipment is realized, and the technical problem that the adaptation efficiency of a software display interface and the full screen is low in the prior art is solved. The embodiment of the invention also provides a comprehensive screen determining device of the terminal equipment, computer equipment, a non-transitory computer readable storage medium and a computer program product.

Description

Comprehensive screen of terminal device determines method and device thereof
Technical field
The present invention relates to comprehensive screens of intelligent testing technology field more particularly to a kind of terminal device to determine method and its dress It sets.
Background technique
The screen such as comprehensive screen mobile phone of terminal device is the new trend of terminal device design in recent years comprehensively, more and more whole End equipment brand is releasing oneself comprehensive screen terminal device, exist simultaneously currently on the market screen terminal device comprehensively and it is non-comprehensively Shield terminal device.And along with the development shielded comprehensively, the requirement to software development technique also the next high, for example, opening for software For originator, need to use corresponding interface display scheme to comprehensive screen terminal device to realize and fit comprehensive screen terminal device Match, therefore, needs a kind of can automatically identify and shield terminal device comprehensively in order to the display interface adaptation to terminal device Mode.
Summary of the invention
The present invention is directed to solve at least some of the technical problems in related technologies.
For this purpose, the first purpose of this invention is to propose that a kind of comprehensive screen of terminal device determines method, to realize end What end equipment was shielded comprehensively automatically determines.
Second object of the present invention is to propose a kind of comprehensive screen determining device of terminal device.
Third object of the present invention is to propose a kind of computer equipment.
Fourth object of the present invention is to propose a kind of non-transitorycomputer readable storage medium.
5th purpose of the invention is to propose a kind of computer program product.
In order to achieve the above object, comprehensive screen of the terminal device of first aspect present invention embodiment determines method, comprising: obtain The actual height and width of the display screen of terminal device;According to preset determination strategy judge the display screen actual height and Whether width meets preset comprehensive screen feature;If the actual height and width of the display screen meet preset comprehensive screen Feature, it is determined that the display screen of the terminal device is to shield comprehensively.
In addition, comprehensive screen of the terminal device of the embodiment of the present invention determines method, also there is following additional technical characteristic:
Optionally, the actual height of the display screen for obtaining terminal device, comprising: read by preset calling interface Main interface height in the display screen;The main interface height is determined as to the actual height of the display screen.
Optionally, it is described main interface height is determined as the actual height of the display screen before, further includes: inspection The device identification for surveying the terminal device determines that the device identification belongs to preset first device identification.
Optionally, the actual height of the display screen for obtaining terminal device, comprising: read by preset calling interface Main interface height in the display screen;Obtain the height on the virtual navigation column of the display screen;Calculate the main interface height With the sum of the height on the virtual navigation column, the actual height of the display screen is obtained.
Optionally, before the height on the virtual navigation column for obtaining the display screen, further includes: detect the terminal The device identification of equipment, and when knowing that the device identification belongs to preset second device identification.
Optionally, before the height on the virtual navigation column for obtaining the display screen, further includes: determine the display Screen currently shows the virtual navigation column.
Optionally, if knowing, the display screen does not show the virtual navigation column currently, will pass through the calling interface Read the actual height that the main interface height in the display screen is determined as the display screen.
It is optionally, described that according to preset determination strategy to judge whether the height of the display screen and width meet preset Screen feature comprehensively, comprising: calculate the height of the display screen and the aspect ratio of width;Judge whether the aspect ratio is greater than Equal to predetermined threshold value;If knowing, the aspect ratio is more than or equal to the threshold value, it is determined that it is special to meet preset comprehensive screen Sign.
Comprehensive screen determining device of the terminal device of second aspect of the present invention embodiment, comprising: module is obtained, for obtaining The actual height and width of the display screen of terminal device;Judgment module, for judging the display according to preset determination strategy Whether the actual height and width of screen meet preset comprehensive screen feature;Determining module, if the practical height for the display screen Degree and width meet preset comprehensive screen feature, it is determined that the display screen of the terminal device is to shield comprehensively.
In addition, comprehensive screen of the terminal device of the embodiment of the present invention determines method, also there is following additional technical characteristic:
Optionally, the acquisition module, comprising: the first reading unit, described in being read by preset calling interface Main interface height in display screen;First determination unit, for the main interface height to be determined as to the reality of the display screen Highly.
Optionally, the acquisition module, further includes: the second determination unit, for detecting the equipment mark of the terminal device Know, determines that the device identification belongs to preset first device identification.
Optionally, the acquisition module, comprising: the second reading unit, described in being read by preset calling interface Main interface height in display screen;First acquisition unit, the height on the virtual navigation column for obtaining the display screen;Second obtains Unit is taken, the sum of the height for calculating the main interface height and the virtual navigation column obtains the reality of the display screen Highly.
Optionally, the acquisition module, further includes: know unit, detect the device identification of the terminal device, and know The device identification belongs to preset second device identification.
Optionally, the acquisition module, further includes: third determination unit, for determining that the display screen currently shows institute State virtual navigation column.
Optionally, the acquisition module, further includes: the 4th determination unit, if for knowing that the display screen is not shown currently Show the virtual navigation column, is then determined as the main interface read in the display screen by the calling interface height described aobvious The actual height of display screen.
Optionally, the judgment module, comprising: computing unit, for calculating the height of the display screen and the height of width Wide ratio;Judging unit, for judging whether the aspect ratio is more than or equal to predetermined threshold value;5th determination unit, is used for If knowing, the aspect ratio is more than or equal to the threshold value, it is determined that meets preset comprehensive screen feature.
The computer equipment of third aspect present invention embodiment, including memory, processor and storage are on a memory simultaneously The computer program that can be run on a processor when the processor executes described program, is realized such as preceding method embodiment institute The comprehensive screen for the terminal device stated determines method.
The non-transitorycomputer readable storage medium of fourth aspect present invention embodiment is stored thereon with computer journey Sequence realizes that comprehensive screen of the terminal device as described in preceding method embodiment determines method when the program is executed by processor.
The computer program product of fifth aspect present invention embodiment, when the instruction in the computer program product by When managing device execution, the comprehensive screen for executing the terminal device as described in preceding method embodiment determines method.
Technical solution provided in an embodiment of the present invention may include following the utility model has the advantages that obtaining the display screen of terminal device Actual height and width, whether preset comprehensive screen feature is met come to display screen according to the actual height of display screen and width It whether is that comprehensive screen is judged, realize that terminal device shields comprehensively automatically determines, and enables software display interface automatic Adaptation is shielded comprehensively.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partially become from the following description Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, in which:
Fig. 1 is a kind of comprehensive flow diagram for shielding the method for determination of terminal device provided by the embodiment of the present invention;
Fig. 2 is the statistical information display diagram of different brands model mobile phone height and width provided by the embodiment of the present invention;
Fig. 3 is that the statistical information of different brands model mobile phone height and the width ratio provided by the embodiment of the present invention is shown Figure;
Fig. 4 is the composition schematic diagram of millet mobile phone display screen provided by the embodiment of the present invention;
Fig. 5 is composition when Huawei's mobile phone display screen virtual navigation column provided by the embodiment of the present invention is in hidden state Schematic diagram;
Fig. 6 is that other types terminal device display screen virtual navigation column provided by the embodiment of the present invention is in display state When composition schematic diagram;
Fig. 7 is that other types terminal device display screen virtual navigation column provided by the embodiment of the present invention is in hidden state When composition schematic diagram;
Fig. 8 is comprehensive flow diagram for shielding the method for determination of another kind terminal device provided by the embodiment of the present invention;
Fig. 9 is comprehensive flow diagram for shielding the method for determination of another terminal device provided by the embodiment of the present invention;
Figure 10 is comprehensive flow diagram for shielding the method for determination of another terminal device provided by the embodiment of the present invention;
Figure 11 is a kind of structural schematic diagram of comprehensive screen determining device of terminal device provided by the embodiment of the present invention;
Figure 12 is a kind of composition schematic diagram of possible implementation of judgment module provided by the embodiment of the present invention;
Figure 13 is the composition schematic diagram that a kind of possible implementation of module is obtained provided by the embodiment of the present invention;
Figure 14 is the composition schematic diagram that the alternatively possible implementation of module is obtained provided by the embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, it is intended to is used to explain the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the comprehensive screen for describing the terminal device of the embodiment of the present invention determines method and apparatus.
Description based on the above-mentioned prior art lacks one kind and judges automatically present terminal and set it is recognised that in the prior art It is standby whether to be the mode of comprehensive screen terminal device, therefore cause display interface and comprehensive screen terminal device Adaption efficiency not high.
For this problem, the embodiment of the invention provides a kind of comprehensive screens of terminal device to determine method, to realize end What end equipment was shielded comprehensively automatically determines.Fig. 1 is a kind of determining method of comprehensive screen of terminal device provided by the embodiment of the present invention Flow diagram.As shown in Figure 1, the terminal device comprehensive screen determine method the following steps are included:
S101 obtains the actual height and width of the display screen of terminal device.
Wherein, the actual height of display screen and width can be measured with unit length, such as mm, cm, and inch etc. can also To be measured with the number of pixel.It should be understood that DPI can be passed through between pixel number and unit length (DotsPer Inch, dots per inch) convert, i.e. number/physical length (unit: inch) of DPI=pixel.
Specifically, there are many ways to obtaining the actual height and width of the display screen of terminal device.
The first is possible to be achieved in that, obtains the ardware model number of the display screen of terminal device, in online search or Corresponding hardware information is inquired in the database, to obtain the actual height and width of display screen.
Second possible to be achieved in that, the application program successfully installed and operated normally has been completed to terminal The adaptation of device display screen can therefrom obtain the actual height and width of display screen.
The third is possible to be achieved in that, screenshotss processing is carried out to the display screen of terminal device, according to screenshot picture The actual height and width of acquisition of information display screen.
4th kind possible to be achieved in that, the height of display screen component is arranged in systems in advance and the calling of width connects Mouthful, the main interface height in display screen is read by preset calling interface, obtains the actual height of display screen.
S102 judges whether the actual height of display screen and width meet preset comprehensive screen according to preset determination strategy Feature.
S103, if the actual height of display screen and width meet preset comprehensive screen feature, it is determined that terminal device is shown Display screen is to shield comprehensively.
Wherein, screen is characterized in shielding in actual height and width and where the difference of other display screens comprehensively comprehensively, should Understanding, the actual height of screen feature and width and other non-actual heights shielded comprehensively and width have difference comprehensively, In the embodiment of the present invention, the determination shielded comprehensively based on the feature of the actual height and width shielded comprehensively.Wherein, preset Determination strategy is corresponding with preset comprehensive screen feature.
One kind is possible to be achieved in that, preset comprehensive screen is characterized in that the actual height of display screen and width numerical value are greater than Equal to corresponding default actual height and width threshold value, then preset determination strategy is exactly the display screen that will be obtained in S101 Actual height and width numerical value be compared respectively with corresponding default actual height and width threshold value, if what is obtained is aobvious The actual height and width numerical value of display screen meet be more than or equal to corresponding default actual height and width threshold value simultaneously, it is determined that The display screen of terminal device is to shield comprehensively.Wherein, it presets actual height and width threshold value is a large amount of complete according to what is counted in advance The actual height of face and width are arranged.As shown in Fig. 2, the actual height shielded counted in advance is both greater than 2000 comprehensively Pixel, width is both greater than 1000 pixels, and due to the limitation of manufacturing technology, the non-actual height shielded comprehensively and width are usual It is unable to reach the actual height shielded comprehensively and width, therefore, it is possible to whether meet by actual height and width default practical high Degree and width threshold value distinguish screen comprehensively and non-comprehensive screen.
It should be noted that default actual height and width threshold value should be corresponding specific measure and linear module , such as 2100 pixels, 5 inches etc., the actual height and width of the display screen of acquisition should also be as being converted into identical measurement Method and linear module just can be carried out numeric ratio compared with.
Alternatively possible is achieved in that, preset comprehensive screen is characterized in that the actual height of display screen and width ratio are big In being equal to predetermined threshold value, then preset determination strategy is exactly the actual height for calculating display screen and the aspect ratio of width, Judge whether aspect ratio is more than or equal to predetermined threshold value, aspect ratio is more than or equal to threshold value if knowing, it is determined that meet pre- If comprehensive screen feature, determine terminal device display screen be comprehensively screen.Wherein, predetermined threshold value is that basis counts big in advance The actual height shielded comprehensively and width ratio is measured to be arranged.As shown in figure 3, applicant is according to a large amount of investigation discoveries, Quan Mianping Actual height and width ratio both greater than be equal to 2, due to the limitation of manufacturing technology, the non-actual height shielded comprehensively and width Ratio is usually unable to reach the actual height and width ratio shielded comprehensively, therefore, it is possible to be by actual height and width ratio The no predetermined threshold value that meets distinguishes screen comprehensively and non-comprehensive screen.Further, according to a large amount of realities shielded counted in advance comprehensively Border height and width ratio, preset comprehensive screen feature can be determined as display screen actual height and width ratio be greater than etc. In 2, if knowing, aspect ratio is more than or equal to 2, it is determined that meets preset comprehensive screen feature, determines that the display screen of terminal device is Screen comprehensively.
Another is possible to be achieved in that, it is special that preset comprehensive screen is characterized in that the actual height of display screen and width meet Fixed mapping relations set actual height numerical value as Y, width numerical value is X, Y=f (X), for example, Y=1.5X+1.It needs to illustrate , the measure of each numerical value and linear module should be consistent in mapping relations.Wherein, actual height and width are full The specific mapping relations of foot are arranged according to a large amount of height shielded and width that count in advance comprehensively.It is typically due to manufacture skill The limitation of art screen comprehensively while meeting the requirement of aesthetic feeling and engineering mechanics to allow, and needs to allow the actual height shielded comprehensively and width Degree meets specific mapping relations, rather than comprehensively screen then without this particular/special requirement, therefore, it is possible to by actual height and width whether Meet specific mapping relations and distinguishes screen comprehensively and non-comprehensive screen.
In conclusion comprehensive screen of the terminal device of one embodiment of the invention determines method, the aobvious of terminal device is obtained It is default to judge whether the actual height of display screen and width meet according to preset determination strategy for the actual height and width of display screen Comprehensive screen feature, if the actual height of display screen and width meet preset comprehensive screen feature, it is determined that terminal device it is aobvious Display screen is to shield comprehensively.Hereby it is achieved that automatically determining of shielding of terminal device comprehensively, solves display interface in the prior art and complete The not high technical problem of face Adaption efficiency.
Description based on the above embodiment, it can be realized that certainly according to the actual height of the display screen of terminal device and width Whether the dynamic display screen for judging terminal device is the mode shielded comprehensively there are many, in order to which those skilled in the art more understand this hair The acquisition modes of the height of the display screen of the terminal device of bright embodiment, below will be to the display screen for obtaining terminal device in S101 Actual height a kind of possible implementation, the height of display screen component is set in systems in advance and the calling of width connects Mouthful, the main interface height in display screen is read by preset calling interface, the actual height for obtaining display screen is illustrated.
Calling interface is the calling system function that terminal device provides or the interface routine for obtaining terminal device information, is led to It crosses and reads main interface height and the corresponding parameter value of width in the interface and can directly acquire main interface height in display screen And width, and then the actual height and width of display screen are obtained, but the main interface height in different terminal equipment in display screen Relationship between the actual height of display screen is different.
It is tested and is counted according to comprehensive screen mobile phone in advance to different brands and model, be concluded that
For comprehensive screen mobile phone of certain brands, display screen as a whole, the height for the main interface that calling interface is read Degree is exactly the actual height of display screen.
For example, screen mobile phone comprehensive for millet etc., as described in Figure 4, display screen is fixedly divided into main interface and virtual Navigation bar two parts, the height for the main interface that calling interface is read are the height of the main interface of fixed setting, and therefore, it is necessary to bases The height of the main interface read is along with the actual height that the height on virtual navigation column is exactly display screen.
Screen mobile phone comprehensive for Huawei etc., display screen are equally divided into main interface and virtual navigation column two parts, but this The main interface height that class shields terminal device comprehensively can be as whether virtual navigation column shows and changes.Specifically, when virtual When navigation bar is in display state, the height for the main interface that calling interface is read does not include the height on virtual navigation column, therefore needs The actual height of display screen is obtained along with the height on virtual navigation column according to the height of the main interface read.It is led when virtually When boat column is in hidden state, as shown in figure 5, the actual height of display screen is the main interface height read, calling interface The height of the main interface of reading is exactly the actual height of display screen.
It is of course possible to which the terminal device is different from above two type there are other kinds of comprehensive screen terminal device Terminal device, the display screen of this kind of terminal device are divided into information columns, main interface, virtual navigation column three parts, information Display field height remains constant, and whether main interface height can show with virtual navigation column and be changed.Specifically, When virtual navigation column is in display state, as shown in fig. 6, the main interface height read does not include the height of information columns With the height on virtual navigation column, therefore, it is necessary to according to the main interface height that reads along with information columns height and virtual Actual height of the height of navigation bar as display screen.When virtual navigation column is in hidden state, as shown in fig. 7, reading Main interface height do not include information columns height, at this point, according to the main interface height read add information columns Actual height of the height as display screen.
Based on the test and statistics of comprehensive screen terminal device above to different brands and model, will tentatively can shield comprehensively end End equipment is divided into three classes.
First kind terminal device is the mobile phone of certain brands using display screen as a whole as representative, calling interface The height of the main interface of reading is exactly the actual height of display screen.
Second Terminal Type equipment is the height for the main interface that calling interface is read using millet mobile phone and Huawei's mobile phone as representative Degree is equal to the actual height of display screen along with the height on virtual navigation column.Wherein, Huawei's mobile phone may be regarded as the second Terminal Type and set A standby special case, virtual navigation column are transitory state, it may occur that are hidden, the main boundary in the display screen read in calling interface Whether face height can show according to virtual navigation column and be changed.Specifically, when virtual navigation column is shown, display screen is obtained Actual height needs for main interface height to be added with virtual navigation column height, when virtual navigation column hides, the height on virtual navigation column Degree may be regarded as 0, and main interface height is exactly the actual height of display screen.
Third Terminal Type equipment is similar to the second Terminal Type equipment, but needs the additional height for considering information columns.
Due to before determining that terminal device is comprehensive screen terminal device, lack one kind automatically determine terminal device whether be The mode shielded comprehensively, therefore for existing non-comprehensive screen terminal device on the market, it is also desirable to first obtain display screen height and Width, then it is judged.
Specifically, Fig. 8 is comprehensive stream for shielding the method for determination of another kind terminal device provided by the embodiment of the present invention Journey schematic diagram, as shown in figure 8, for above-mentioned first kind terminal device, the method flow based on Fig. 1, obtaining in step S101 Take the display screen height of terminal device, comprising:
S201 reads the main interface height in display screen by preset calling interface.
Main interface height is determined as the actual height of display screen by S202.
By Such analysis, it should be appreciated that first kind terminal device above-mentioned could be by the main interface height in display screen It is determined directly as the actual height of display screen, therefore before main interface height is determined as the actual height of display screen, is also wrapped It includes: detecting the device identification of terminal device, determine that device identification belongs to preset first device identification.
Wherein, device identification can be brand, model, version number, sequence number of terminal device etc. and set for distinguishing terminal Standby information.
It should be noted that the first device identification correspond to above-mentioned first kind terminal device, i.e., when device identification belong to it is pre- If the first device identification when, which belongs to above-mentioned first kind terminal device, and the display screen of such terminal device is made For an entirety, the actual height of display screen is exactly main interface height.
To realize the main interface height read in display screen by calling interface, directly acquire the height of display screen.
Description based on the above embodiment, it can be realized that the terminal device of display screen as a whole, how to lead to Cross the actual height for obtaining the main interface height in display screen to directly acquire display screen.In order to which those skilled in the art are more clear The acquisition modes of the height of the display screen of the terminal device of Chu's embodiment of the present invention will be divided into the end of several parts to display screen below The acquisition modes of the display screen height of end equipment are illustrated.
Fig. 9 is comprehensive flow diagram for shielding the method for determination of another terminal device provided by the embodiment of the present invention, As shown in figure 9, for the second above-mentioned Terminal Type equipment, the method flow based on Fig. 1, the acquisition terminal device in step S101 Display screen height, comprising:
S301 reads the main interface height in display screen by preset calling interface.
S302 obtains the height on the virtual navigation column of display screen.
Wherein, the height on virtual navigation column is systemic presupposition in display screen, can pass through the setting in inquiry system The relevant parameter on virtual navigation column obtains, and can also directly detect to the virtual navigation column in display screen, and acquisition is virtually led The height on boat column.Directly the virtual navigation column in display screen is detected also there are many method, a kind of possible implementation It is that screenshot is carried out to current display screen, is partitioned into the picture of virtual navigation column part from screenshot, then from virtual navigation column part Pictorial information in obtain virtual navigation column height.Alternatively possible is achieved in that, carries out screenshot to current display screen, Height/area ratio that main interface and virtual navigation column are obtained from screenshot, according to the height of the main interface obtained in S101, Calculate the height on virtual navigation column.
S303 calculates the sum of the height on main interface height and virtual navigation column, obtains the actual height of display screen.
It should be understood that display screen top half is main interface, lower half portion is virtual navigation column, the height of display screen Equal to the sum of main interface height and virtual navigation column height.
By Such analysis, it should be appreciated that the second Terminal Type equipment above-mentioned just meets the main interface of calling interface reading Height along with virtual navigation column height be equal to display screen actual height, therefore obtain display screen virtual navigation column Height before, further includes: detect the device identification of terminal device, and know that device identification belongs to preset second equipment mark Know.
Wherein, the effect of the second device identification is identical as the first device identification, and details are not described herein again.
Further, the virtual navigation column of section terminating equipment can hide in the second Terminal Type equipment, therefore obtain Before taking the height on virtual navigation column of display screen, further includes: determine that display screen currently shows virtual navigation column.
It should be understood that it includes fixed the second class for showing virtual navigation column that display screen, which currently shows virtual navigation column both, Terminal device, but the virtual navigation column for the second Terminal Type equipment that can be hidden including virtual navigation column is in the feelings of display state Condition.At this point, the height on virtual navigation column is not 0, the actual height of display screen is equal to the height for the main interface that calling interface is read Along with the height on virtual navigation column.
If knowing, display screen does not show virtual navigation column currently, i.e. the height on virtual navigation column is not 0, then will pass through calling Interface reads the actual height that the main interface height in display screen is determined as display screen.
So that the main interface height read in display screen by calling interface is realized, along with the height on virtual navigation column Spend the height of indirect gain display screen.
In order to which those skilled in the art more understand the acquisition of the height of the display screen of the terminal device of the embodiment of the present invention Mode, below by the acquisition side of the display screen height of the terminal device individually divided to the information columns of display screen in system Formula is illustrated.
Figure 10 is comprehensive flow diagram for shielding the method for determination of another terminal device provided by the embodiment of the present invention, As shown in Figure 10, for above-mentioned third Terminal Type equipment, the method flow based on Fig. 1, the acquisition terminal in step S101 is set Standby display screen height, comprising:
S401 reads the main interface height and information columns height in display screen by preset calling interface.
Wherein, different types of terminal device by calling interface read display screen in main interface height and information show The method of column height is different.A kind of possible implementation method is, terminal device provided in calling interface main interface height and Information columns height and value as the parameter that can be called directly, due to needed in S403 by information columns height, Main interface height and the summation of the height on virtual navigation column, can directly acquire main interface height and information columns height herein And value, without individually obtaining the occurrence of information columns height and main interface height.
S402 obtains the height on virtual navigation column in display screen.
Specifically, similar with the method in S302, details are not described herein again.
S403 calculates information columns height, the sum of main interface height and virtual navigation column height, obtains the reality of display screen Border height.
It should be understood that display screen is divided into three parts, it is information columns, main interface and virtual navigation column respectively, shows The actual height of display screen is equal to the sum of information columns height, main interface height and virtual navigation column height.
By Such analysis, it should be appreciated that the information that third Terminal Type equipment above-mentioned just meets calling interface reading is aobvious Show that the sum of column height, main interface height and virtual navigation column height are equal to the actual height of display screen, therefore is obtaining display screen Virtual navigation column height before, further includes: detect the device identification of terminal device, and it is preset to know that device identification belongs to Third device identification.
Further, the virtual navigation column of third Terminal Type equipment can hide, therefore obtain the virtual of display screen Before the height of navigation bar, further includes: determine that display screen currently shows virtual navigation column.
It should be understood that the height on virtual navigation column is not 0, display screen when display screen currently shows virtual navigation column Actual height be equal to the sum of information columns height, main interface height and virtual navigation column height.
If knowing, display screen does not show virtual navigation column currently, i.e. the height on virtual navigation column is not 0, then will pass through calling Interface reads the actual height that the sum of information columns height and main interface height in display screen are determined as display screen.
To, the information columns height and main interface height read in display screen by calling interface is realized, in addition The height of the height indirect gain display screen on virtual navigation column in display screen.
In conclusion comprehensive screen of the terminal device of the embodiment of the present invention determines method, the inhomogeneity based on terminal device Type determines whether it is comprehensive screen in different ways, and coverage rate is higher, and practicability is stronger.
In order to realize above-described embodiment, the embodiment of the present invention also proposes a kind of comprehensive screen determining device of terminal device, figure 11 be a kind of structural schematic diagram of comprehensive screen determining device of terminal device provided by the embodiment of the present invention, as shown in figure 11, Comprehensive screen determining device includes: to obtain module 510, judgment module 520, determining module 530.
Module 510 is obtained, for obtaining the actual height and width of the display screen of terminal device.
Whether judgment module 520, actual height and width for judging display screen according to preset determination strategy meet Preset comprehensive screen feature.
Determining module 530, if the actual height and width for display screen meet preset comprehensive screen feature, it is determined that eventually The display screen of end equipment is to shield comprehensively.
In order to which comprehensive screen determining device of the terminal device of proposition of the embodiment of the present invention can be according to preset determination strategy Judge whether the actual height of display screen and width meet preset comprehensive screen feature, one kind is possible to be achieved in that, is such as schemed Shown in 12, comprehensive screen determining device based on terminal device shown in Figure 11, judgment module 520, comprising: computing unit 521 is used In the aspect ratio for the height and width for calculating display screen, judging unit 522, for judging it is pre- whether aspect ratio is more than or equal to Gating limit value, the 5th determination unit 523, if for knowing that aspect ratio is more than or equal to threshold value, it is determined that meet preset complete Face feature.
It should be noted that aforementioned comprehensive explanation for shielding determining embodiment of the method to terminal device is also applied for this Comprehensive screen determining device of the terminal device of embodiment, details are not described herein again.
In conclusion comprehensive screen determining device of the terminal device of one embodiment of the invention, obtains the aobvious of terminal device It is default to judge whether the actual height of display screen and width meet according to preset determination strategy for the actual height and width of display screen Comprehensive screen feature, if the actual height of display screen and width meet preset comprehensive screen feature, it is determined that terminal device it is aobvious Display screen is to shield comprehensively.Hereby it is achieved that automatically determining of shielding of terminal device, solves software display interface in the prior art comprehensively The technical issues of being unable to automatic adaptation with comprehensive screen.
Based on the above embodiment, the embodiment of the present invention also proposes comprehensive screen determining device of another terminal device, Figure 13 For the structural schematic diagram of comprehensive screen determining device of another kind terminal device provided by the embodiment of the present invention, as shown in figure 13, Comprehensive screen determining device based on terminal device shown in Figure 11 obtains module 510, comprising: the first reading unit 511 is used for The main interface height in display screen, the first determination unit 512, for main interface height is true are read by preset calling interface It is set to the actual height of display screen.
It is set in order to which the comprehensive screen determining device for the terminal device for allowing the embodiment of the present invention to propose can be used in the first Terminal Type Standby comprehensive screen determines that one kind is possible to be achieved in that, obtains module 510, further includes: the second determining module 513, for examining The device identification for surveying terminal device, determines that device identification belongs to preset first device identification.
It should be noted that aforementioned comprehensive explanation for shielding determining embodiment of the method to terminal device is also applied for this Comprehensive screen determining device of the terminal device of embodiment, details are not described herein again.
To realize the main interface height read in display screen by calling interface, directly acquire the height of display screen.
Based on the above embodiment, the embodiment of the present invention also proposes comprehensive screen determining device of another terminal device, Figure 14 For the structural schematic diagram of comprehensive screen determining device of another terminal device provided by the embodiment of the present invention, as shown in figure 14, Obtain module 510, comprising: the second reading unit 514 is high for reading the main interface in display screen by preset calling interface Degree;First acquisition unit 515, the height on the virtual navigation column for obtaining display screen;Second acquisition unit 516, for calculating The sum of main interface height and the height on virtual navigation column obtains the actual height of display screen.
It is set in order to which the comprehensive screen determining device for the terminal device for allowing the embodiment of the present invention to propose can be used in the second Terminal Type Standby comprehensive screen determines that one kind is possible to be achieved in that, obtains module 510, further includes: knows unit 517, detection terminal is set Standby device identification, and know that device identification belongs to preset second device identification.
In order to which the comprehensive screen determining device for the terminal device for allowing the embodiment of the present invention to propose can be used at virtual navigation column It is determined in comprehensive screen of the terminal device of display state, one kind is possible to be achieved in that, obtains module 510, further includes: third Determination unit 518, for determining that display screen currently shows virtual navigation column.
In order to which the comprehensive screen determining device for the terminal device for allowing the embodiment of the present invention to propose can be used at virtual navigation column It is determined in comprehensive screen of the terminal device of hidden state, one kind is possible to be achieved in that, obtains module 510, further includes: the 4th Determination unit 519, if will be read in display screen by calling interface for knowing that display screen does not show virtual navigation column currently Main interface height be determined as the actual height of display screen.
It should be noted that aforementioned comprehensive explanation for shielding determining embodiment of the method to terminal device is also applied for this Comprehensive screen determining device of the terminal device of embodiment, details are not described herein again.
So that the main interface height read in display screen by calling interface is realized, along with the height on virtual navigation column Spend the height of indirect gain display screen.
In order to realize above-described embodiment, the present invention also proposes a kind of computer equipment, including memory, processor and storage On a memory and the computer program that can run on a processor, which is characterized in that when the processor executes described program, Realize that comprehensive screen of the terminal device as described in preceding method embodiment determines method.
In order to realize above-described embodiment, the present invention also proposes a kind of non-transitorycomputer readable storage medium, deposits thereon Computer program is contained, comprehensive screen of the terminal device as described in preceding method embodiment is realized when which is executed by processor Determine method.
In order to realize above-described embodiment, the present invention also proposes a kind of computer program product, when the computer program produces When instruction in product is executed by processor, the comprehensive screen for executing the terminal device as described in preceding method embodiment determines method.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the present invention, the meaning of " plurality " is at least two, such as two, three It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing custom logic function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.Such as, if realized with hardware in another embodiment, following skill well known in the art can be used Any one of art or their combination are realized: have for data-signal is realized the logic gates of logic function from Logic circuit is dissipated, the specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene can compile Journey gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as to limit of the invention System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of the invention Type.

Claims (10)

1. a kind of comprehensive screen of terminal device determines method, which comprises the following steps:
Obtain the actual height and width of the display screen of terminal device;
Judge whether the actual height of the display screen and width meet preset comprehensive screen feature according to preset determination strategy;
If the actual height and width of the display screen meet preset comprehensive screen feature, it is determined that the terminal device Display screen is to shield comprehensively.
2. the method as described in claim 1, which is characterized in that the actual height of the display screen for obtaining terminal device, packet It includes:
The main interface height in the display screen is read by preset calling interface;
The main interface height is determined as to the actual height of the display screen.
3. method according to claim 2, which is characterized in that the main interface height is determined as the display screen described Actual height before, further includes:
The device identification for detecting the terminal device determines that the device identification belongs to preset first device identification.
4. the method as described in claim 1, which is characterized in that the actual height of the display screen for obtaining terminal device, packet It includes:
The main interface height in the display screen is read by preset calling interface;
Obtain the height on the virtual navigation column of the display screen;
The sum for calculating the height on the main interface height and the virtual navigation column, obtains the actual height of the display screen.
5. method as claimed in claim 4, which is characterized in that the height on the virtual navigation column for obtaining the display screen Before, further includes:
The device identification of the terminal device is detected, and knows that the device identification belongs to preset second device identification.
6. method as claimed in claim 4, which is characterized in that the height on the virtual navigation column for obtaining the display screen Before, further includes:
Determine that the display screen currently shows the virtual navigation column.
7. a kind of comprehensive screen determining device of terminal device, which is characterized in that described device includes:
Module is obtained, for obtaining the actual height and width of the display screen of terminal device;
Judgment module, it is default whether actual height and width for judging the display screen according to preset determination strategy meet Comprehensive screen feature;
Determining module, if the actual height and width for the display screen meet preset comprehensive screen feature, it is determined that The display screen of the terminal device is to shield comprehensively.
8. a kind of computer equipment, which is characterized in that on a memory and can be in processor including memory, processor and storage The computer program of upper operation, which is characterized in that when the processor executes described program, realize as appointed in claim 1-6 Comprehensive screen of terminal device described in one determines method.
9. a kind of non-transitorycomputer readable storage medium, is stored thereon with computer program, which is characterized in that the program quilt Realize that comprehensive screen such as terminal device as claimed in any one of claims 1 to 6 determines method when processor executes.
10. a kind of computer program product is executed when the instruction in the computer program product is executed by processor as weighed Benefit requires comprehensive screen of any terminal device in 1-6 to determine method.
CN201811168695.9A 2018-10-08 2018-10-08 Method and device for determining comprehensive screen of terminal equipment Active CN109408179B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811168695.9A CN109408179B (en) 2018-10-08 2018-10-08 Method and device for determining comprehensive screen of terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811168695.9A CN109408179B (en) 2018-10-08 2018-10-08 Method and device for determining comprehensive screen of terminal equipment

Publications (2)

Publication Number Publication Date
CN109408179A true CN109408179A (en) 2019-03-01
CN109408179B CN109408179B (en) 2023-03-24

Family

ID=65466160

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811168695.9A Active CN109408179B (en) 2018-10-08 2018-10-08 Method and device for determining comprehensive screen of terminal equipment

Country Status (1)

Country Link
CN (1) CN109408179B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112988561A (en) * 2019-12-18 2021-06-18 腾讯科技(深圳)有限公司 Method, device, server and storage medium for detecting display configuration code
CN113687750A (en) * 2020-05-08 2021-11-23 腾讯科技(深圳)有限公司 Screenshot processing method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101908076A (en) * 2010-08-24 2010-12-08 北京世纪高通科技有限公司 Page layout self-adaptive method and device
US20150074589A1 (en) * 2013-09-11 2015-03-12 Shanghai Powermo Information Tech. Co. Ltd. Smart Mobile Device Having Dual-Window Displaying Function
CN105025316A (en) * 2015-07-28 2015-11-04 Tcl集团股份有限公司 Method and system for judging whether or not video is under full screen play
CN105138939A (en) * 2015-07-31 2015-12-09 海信集团有限公司 Method, apparatus and system for displaying two-dimensional code
US20160266784A1 (en) * 2013-10-30 2016-09-15 Lemobile Information Technology (Beijing) Co., Ltd. Method and device for adjusting video playback interface
CN106933446A (en) * 2017-02-27 2017-07-07 东软集团股份有限公司 The location regulation method and device of terminal interface display content
CN107526525A (en) * 2017-09-06 2017-12-29 广东欧珀移动通信有限公司 A kind of screenshotss method, apparatus, mobile terminal and computer-readable recording medium
CN107563172A (en) * 2017-09-18 2018-01-09 邢成达 A kind of fingerprint authentication based on comprehensive screen smart machine encrypts open method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101908076A (en) * 2010-08-24 2010-12-08 北京世纪高通科技有限公司 Page layout self-adaptive method and device
US20150074589A1 (en) * 2013-09-11 2015-03-12 Shanghai Powermo Information Tech. Co. Ltd. Smart Mobile Device Having Dual-Window Displaying Function
US20160266784A1 (en) * 2013-10-30 2016-09-15 Lemobile Information Technology (Beijing) Co., Ltd. Method and device for adjusting video playback interface
CN105025316A (en) * 2015-07-28 2015-11-04 Tcl集团股份有限公司 Method and system for judging whether or not video is under full screen play
CN105138939A (en) * 2015-07-31 2015-12-09 海信集团有限公司 Method, apparatus and system for displaying two-dimensional code
CN106933446A (en) * 2017-02-27 2017-07-07 东软集团股份有限公司 The location regulation method and device of terminal interface display content
CN107526525A (en) * 2017-09-06 2017-12-29 广东欧珀移动通信有限公司 A kind of screenshotss method, apparatus, mobile terminal and computer-readable recording medium
CN107563172A (en) * 2017-09-18 2018-01-09 邢成达 A kind of fingerprint authentication based on comprehensive screen smart machine encrypts open method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
WINDY_729: "Android APP适配全面屏手机的技术要点", 《 HTTPS://BLOG.CSDN.NET/WEELYY/ARTICLE/DETAILS/79284332?OPS_REQUEST_MISC》 *
ZUO_ER_LYF: ""Android 全面屏适配及判断是否为全面屏,全面屏手势和虚拟导航栏的判断"", 《HTTPS://BLOG.CSDN.NET/ZUO_ER_LYF/ARTICLE/DETAILS/82259239》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112988561A (en) * 2019-12-18 2021-06-18 腾讯科技(深圳)有限公司 Method, device, server and storage medium for detecting display configuration code
CN112988561B (en) * 2019-12-18 2023-09-08 腾讯科技(深圳)有限公司 Method, device, server and storage medium for detecting display configuration code
CN113687750A (en) * 2020-05-08 2021-11-23 腾讯科技(深圳)有限公司 Screenshot processing method and device
CN113687750B (en) * 2020-05-08 2023-10-27 腾讯科技(深圳)有限公司 Screenshot processing method and device

Also Published As

Publication number Publication date
CN109408179B (en) 2023-03-24

Similar Documents

Publication Publication Date Title
CN109145931B (en) Object detecting method, device and storage medium
Herzenberg et al. Interpreting flow cytometry data: a guide for the perplexed
CN106708909A (en) Data quality detection method and apparatus
CN107193515A (en) Animation shows monitoring method, device and its equipment of fluency
CN106412573A (en) Method and device for detecting lens stain
CN109002974A (en) A kind of coil of strip surface quality grading determination method and device
CN109919135A (en) Behavioral value method, apparatus based on deep learning
CN108875013A (en) Handle the method and device of map datum
CN105787980A (en) Method and system for detecting field angle of virtual reality display device
CN109408179A (en) Method and device for determining comprehensive screen of terminal equipment
KR20110124090A (en) System and method for evaluating quality of polarized film
CN109948683A (en) Difficulty division methods, device and its relevant device of point cloud data
CN105975925A (en) Partially-occluded pedestrian detection method based on joint detection model
CN109887044B (en) Reproductive data evaluation method and system
CN111640095B (en) Quantification method of cerebral micro hemorrhage and computer readable storage medium
CN104240228A (en) Detecting method and device for specific pictures applied to website
CN109064445B (en) Animal quantity statistical method and system and storage medium
US11138754B2 (en) Queue analyzing method and image monitoring apparatus
Hall et al. The use of guideline images to improve histological estimation of hepatic steatosis
CN115830012B (en) Method for detecting and analyzing clue damage data of overhead contact system
CN109069065A (en) The evaluation method and color spot position evaluating apparatus at color spot position
CN115205288A (en) Industrial defect detection method and device
CN107483659A (en) Control method, device and mobile terminal based on proximity transducer
JP2013218607A (en) Software quality evaluation apparatus, software quality evaluation method and program
JP5882883B2 (en) Telop detection device, telop detection method, and telop detection program

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