CN113553017A - Terminal screen adapting method, system, equipment and medium - Google Patents

Terminal screen adapting method, system, equipment and medium Download PDF

Info

Publication number
CN113553017A
CN113553017A CN202110855611.4A CN202110855611A CN113553017A CN 113553017 A CN113553017 A CN 113553017A CN 202110855611 A CN202110855611 A CN 202110855611A CN 113553017 A CN113553017 A CN 113553017A
Authority
CN
China
Prior art keywords
screen
terminal
parameters
effective
identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110855611.4A
Other languages
Chinese (zh)
Inventor
马光辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Spreadtrum Semiconductor Nanjing Co Ltd
Original Assignee
Spreadtrum Semiconductor Nanjing 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 Spreadtrum Semiconductor Nanjing Co Ltd filed Critical Spreadtrum Semiconductor Nanjing Co Ltd
Priority to CN202110855611.4A priority Critical patent/CN113553017A/en
Publication of CN113553017A publication Critical patent/CN113553017A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros

Landscapes

  • Engineering & Computer Science (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, a system, equipment and a medium for adapting a terminal screen, wherein the method comprises the following steps: when the terminal is powered on and started, acquiring an identifier of a screen of the terminal, searching whether a preset screen parameter database has an effective screen parameter corresponding to the identifier of the screen, replacing a historical screen parameter of the terminal by using the effective screen parameter when the effective screen parameter corresponding to the identifier of the screen exists, and drawing display content of the screen according to the effective screen parameter. According to the method and the device, when the terminal is powered on and started up, the identification of the current screen of the terminal is obtained, the identification is searched in the preset screen parameter database, if the effective screen parameter corresponding to the identification of the screen is found, the display content of the screen is drawn by using the effective screen parameter, the self-adaptive configuration of a user interface on the terminal to the screen is realized, the phenomenon that a developer re-debugs a compiling version due to screen replacement is avoided, and therefore the project development cost is reduced.

Description

Terminal screen adapting method, system, equipment and medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, a system, a device, and a medium for adapting a terminal screen.
Background
Under the development trend that mobile terminal equipment such as a smart phone and the like has higher and higher equipment screen occupation ratio, large terminal manufacturers successively provide own high-screen occupation ratio mobile phones, and the mobile phones with higher screen occupation ratios are generally called full-screen mobile phones by manufacturers and users.
At present, the mobile phones with full-screen in the market are mainly divided into a special-shaped screen and a non-special-shaped screen. The special-shaped screen is an area reserved at the top of the display screen of the mobile phone and used for placing a receiver, a front camera and other sensors, and the area is artificially called as a Liuhai screen, a beauty tip, a water drop screen and the like by manufacturers according to different shapes; however, the integrity of the screen is sacrificed to a certain extent due to the fact that the image cannot be displayed in the area, and the appearance is affected. Moreover, the User Interface (UI) of the mobile phone system also needs to optimize the corresponding Interface display for the different shaped screens. The non-special-shaped screen is generated for removing the Liuhai, the beauty tip and the water drop screen of the special-shaped screen, and the main scheme is that the front-mounted camera is arranged inside or outside the machine body through a mechanical structure, so that a larger screen occupation ratio is obtained.
At present, if the screen model of the mobile terminal is changed according to the project requirement in the research and development process, for example, the screen is changed from a non-special-shaped screen to a special-shaped screen, on one hand, a research and development engineer needs to debug the system UI again to adapt to the current screen, on the other hand, a software version also needs to be upgraded, the project development progress is influenced, and the development cost is high.
Disclosure of Invention
The invention aims to provide a method, a system, equipment and a medium for adapting a terminal screen, which realize the self-adaptive configuration of the screen, reduce the development cost of a project and improve the development efficiency.
In order to achieve the above object, in a first aspect, the present invention provides a method for adapting a terminal screen, including: when the terminal is powered on and started, acquiring an identifier of a screen of the terminal, searching whether a preset screen parameter database has an effective screen parameter corresponding to the identifier of the screen, replacing a historical screen parameter of the terminal by using the effective screen parameter when the effective screen parameter corresponding to the identifier of the screen exists, and drawing display content of the screen according to the effective screen parameter.
The embodiment of the invention provides an adaptation method of a terminal screen, which has the beneficial effects that: when the terminal is powered on and started, the identifier of the screen of the current terminal is obtained and is searched in the preset screen parameter database, if the effective screen parameter corresponding to the identifier of the screen is found, the effective screen parameter is used for drawing the display content of the screen, and therefore the self-adaptive configuration of a user interface on the terminal to the screen is achieved, the project development cost is reduced, and the project development progress is improved.
In one possible implementation, the method further comprises: and when no effective screen parameter corresponding to the identifier of the screen exists, drawing the display content of the screen according to the historical screen parameter. The beneficial effects are that: if the corresponding effective screen parameters cannot be found, the display content of the screen is drawn according to the original historical screen parameters.
In a possible implementation, before obtaining the identifier of the screen of the terminal, the method includes: various screen parameters in the market are obtained, a preset screen parameter database is generated, and the screen parameter database comprises screen identifications and effective screen parameters corresponding to the screen identifications. The beneficial effects are that: in order to adapt to all screens appearing in the market, the preset screen parameter database is generated by acquiring various screen parameters in the market, so that the reliability of the system interface for the screen adaptive configuration is greatly improved.
In one possible implementation, when there is an effective screen parameter corresponding to the identity of the screen, replacing the historical screen parameter of the terminal with the effective screen parameter includes: the effective screen parameters are analyzed and then packaged into an interface, and the display content of the screen is drawn according to the effective screen parameters, which comprises the following steps: and obtaining effective screen parameters through a calling interface, and drawing the display content of the screen according to the effective screen parameters. The beneficial effects are that: the effective screen parameters are analyzed and then packaged into an interface, so that subsequent calling is facilitated, and the configuration efficiency is accelerated.
In one possible implementation, the screen parameters include the size and resolution of the screen.
In a second aspect, an embodiment of the present invention provides an adaptation system for a terminal screen, including: the terminal comprises an acquisition unit and a searching unit, wherein the acquisition unit is used for acquiring the identifier of the screen of the terminal when the terminal is powered on and started up, and the searching unit is used for searching whether the preset screen parameter database has effective screen parameters corresponding to the identifier of the screen. And the processing unit is used for replacing the historical screen parameters of the terminal by the effective screen parameters when the effective screen parameters corresponding to the identification of the screen exist, and the processing unit is also used for drawing the display content of the screen according to the effective screen parameters.
The embodiment of the invention provides an adaptation method of a terminal screen, which has the beneficial effects that: the acquiring unit acquires the identifier of the screen of the current terminal when the terminal is powered on and started, the searching unit searches in the preset screen parameter database, and if the effective screen parameter corresponding to the identifier of the screen is found, the processing unit draws the display content of the screen by using the effective screen parameter, so that the self-adaptive configuration of a system on the terminal on the screen is realized, the project development cost is reduced, and the project development progress is accelerated.
In a possible implementation, the processing unit is further configured to draw the display content of the screen according to the historical screen parameter when there is no valid screen parameter corresponding to the identifier of the screen. The beneficial effects are that: if the corresponding effective screen parameters cannot be found, the display content of the screen is drawn according to the original historical screen parameters, and therefore errors of the user interface are avoided.
In a possible implementation, before acquiring the identifier of the screen of the terminal, the acquiring unit is further configured to acquire various types of screen parameters on the market, and generate a preset screen parameter database according to the acquired various types of screen parameters, where the screen parameter database includes the identifier of the screen and effective screen parameters corresponding to the identifier of the screen. The beneficial effects are that: and all screen parameters on the market are collected, so that the reliability of the replacement configuration is increased.
In a possible implementation, the processing unit is further configured to parse the effective screen parameters and package the parsed effective screen parameters into an interface, obtain the effective screen parameters through calling the interface, and draw display contents of the screen according to the effective screen parameters. The beneficial effects are that: the effective screen parameters are analyzed and then packaged into an interface, so that subsequent calling is facilitated, and the configuration efficiency of the terminal screen is improved.
In one possible implementation, the screen parameters include the size and resolution of the screen.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the foregoing method steps.
The electronic equipment provided by the embodiment of the invention has the beneficial effects that: execution of the computer program by a processor effects the operation of the above-described method.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the above-mentioned method steps.
The computer-readable storage medium provided by the embodiment of the invention has the advantage that the operation of the method is realized by executing the computer program.
Drawings
Fig. 1 is a block diagram showing a configuration of hardware in a terminal device of a screen in an embodiment of the present invention;
fig. 2 is a block diagram of a software configuration of a terminal device according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating an adapting method of a terminal screen according to an embodiment of the present invention;
FIG. 4 is a schematic flowchart of another method for adapting a terminal screen according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating an adaptive system structure of a terminal screen according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention. Unless defined otherwise, technical or scientific terms used herein shall have the ordinary meaning as understood by one of ordinary skill in the art to which this invention belongs. As used herein, the word "comprising" and similar words are intended to mean that the element or item listed before the word covers the element or item listed after the word and its equivalents, but does not exclude other elements or items.
At present, the screen model of the mobile terminal is often changed due to project requirements in the research and development process, for example, a non-special-shaped screen is changed into a special-shaped screen, on one hand, a research and development engineer needs to debug a system user interface again to adapt to a current screen, on the other hand, a software version also needs to be upgraded, project development progress is influenced, and development cost is high.
The adaptation method of the terminal screen provided in the embodiment of the present invention may be applied to a terminal device having a screen as shown in fig. 1, where fig. 1 shows a hardware configuration block diagram of the terminal device 100.
In some embodiments, the terminal apparatus 100 includes at least one of a tuner demodulator 110, a communicator 120, a collector 130, an external device interface 140, a controller 150, a display 160, an audio output interface 170, a memory, a power supply, and a user interface 180.
In still other embodiments, the controller includes a central processor, a video processor, an audio processor, a graphics processor, a Random Access Memory (RAM), a read-only memory (ROM), a first interface for input/output to an nth interface.
In still other embodiments, the display 160 includes a display screen component for presenting a picture, and a driving component that drives the display of an image. The display 160 is used for receiving the image signal from the controller output, displaying video content, image content, components of the menu manipulation interface, the user manipulation UI interface, and the like.
In other embodiments, the display 160 may be at least one of a liquid crystal display, an OLED display, and a projection display, and may also be a projection device and a projection screen.
In still other embodiments, the tuner/demodulator 110 receives broadcast television signals via wired or wireless reception, and demodulates audio/video signals, such as EPG data signals, from a plurality of wireless or wired broadcast television signals.
In still other embodiments, communicator 120 is a component for communicating with external devices or servers according to various communication protocol types. For example: the communicator may include at least one of a communication protocol chip or a near field communication protocol chip, and an infrared receiver. In some embodiments, the communication protocol chip may be a wireless fidelity (WiFi) module, a bluetooth module, or a wired ethernet module. The terminal device 100 may establish transmission and reception of a control signal and a data signal with a control apparatus or a server through the communicator 120.
In other embodiments, the collector 130 is used to collect external environment or signals interacting with the outside. For example, the collector 130 includes a light receiver, a sensor for collecting the intensity of ambient light; alternatively, the collector 130 includes an image collector, such as a camera, which may be used to collect external environment scenes, attributes of the user, or user interaction gestures, or the collector 130 includes a sound collector, such as a microphone, which is used to receive external sounds.
In still other embodiments, the external device interface 140 may include, but is not limited to, the following: high Definition Multimedia Interface (HDMI), analog or data high definition component input interface (component), composite video input interface (CVBS), USB input interface (USB), RGB port, and the like. The interface may be a composite input/output interface formed by the plurality of interfaces.
In other embodiments, the controller 150 and the modem 110 may be located in different separate devices, that is, the modem 110 may also be located in an external device of the main device where the controller 150 is located, such as an external set-top box.
In some embodiments, the controller 150 controls the operation of the display device and responds to user actions through various software control programs stored in memory. The controller 150 controls the overall operation of the terminal device 100. For example: in response to receiving a user command for selecting a UI object to be displayed on the display 160, the controller 150 may perform an operation related to the object selected by the user command.
In other embodiments, the object may be any of a number of selectable objects, such as a hyperlink, an icon, or other actionable control. The operations related to the selected object are: displaying an operation connected to a hyperlink page, document, image, or the like, or performing an operation of a program corresponding to the icon.
In still other embodiments, the controller includes at least one of a Central Processing Unit (CPU), a video processor, an audio processor, a Graphics Processing Unit (GPU), a Random Access Memory (RAM), a Read Only Memory (ROM), first to nth interfaces for input/output, a communication Bus (Bus), and the like.
And the central processor is used for executing the operating system and the application program instructions stored in the memory and executing various application programs, data and contents according to various interaction instructions for receiving external input so as to finally display and play various audio and video contents. The central processor may include a plurality of processors. E.g. comprising a main processor and one or more sub-processors.
In other embodiments, a graphics processor is used to generate various graphics objects. In some embodiments of the present invention, the graphic object may include at least one of an icon, an operation menu, and a user input instruction display graphic. The graphic processor comprises an arithmetic unit, which performs operation by receiving various interactive instructions input by a user and displays various objects according to display attributes; the system also comprises a renderer for rendering various objects obtained based on the arithmetic unit, wherein the rendered objects are used for being displayed on a display.
In some embodiments, the video processor is configured to receive an external video signal, and perform at least one of video processing such as decompression, decoding, scaling, noise reduction, frame rate conversion, resolution conversion, and image synthesis according to a standard codec protocol of the input signal, so as to obtain a signal that can be directly displayed or played on the terminal device 100.
In still other embodiments, the video processor includes at least one of a demultiplexing module, a video decoding module, an image composition module, a frame rate conversion module, a display formatting module, and the like. The demultiplexing module is used for demultiplexing the input audio and video data stream. And the video decoding module is used for processing the video signal after demultiplexing, including decoding, scaling and the like. And an image synthesis module, such as an image synthesizer, configured to perform superposition and mixing processing on the Graphical User Interface (GUI) signal generated by the graphical generator according to the user input or the GUI signal and the video image after the scaling processing, so as to generate an image signal for display. And the frame rate conversion module is used for converting the frame rate of the input video. And the display formatting module is used for converting the received video output signal after the frame rate conversion, and changing the signal to be in accordance with the signal of the display format, such as an output RGB data signal.
In some other embodiments, the audio processor is configured to receive an external audio signal, decompress and decode the received audio signal according to a standard codec protocol of the input signal, and perform at least one of noise reduction, digital-to-analog conversion, and amplification processing to obtain a sound signal that can be played in the speaker.
In still other embodiments, the user may enter user commands on a graphical user interface displayed on the display 160, and the user input interface receives the user input commands through the graphical user interface. Alternatively, the user may input the user command by inputting a specific sound or gesture, and the user input interface receives the user input command by recognizing the sound or gesture through the sensor.
In other embodiments, the user interface is a media interface for interaction and information exchange between an application or operating system and a user that enables conversion between an internal form of information and a form that is acceptable to the user. A common presentation form of a user interface is a graphical user interface, which refers to a user interface displayed in a graphical manner and related to computer operations. It may be an interface element such as an icon, window, control, etc. displayed in the display screen of the electronic device. In some possible embodiments, the control may include at least one of an icon, a button, a menu, a tab, a text box, a dialog box, a status bar, a navigation bar, and a Widget visual interface element.
In still other embodiments, user interface 180 is an interface that can be used to receive control inputs (e.g., physical keys on the body of the display device, or the like).
In specific implementation, the terminal device 100 may be a mobile phone, a tablet computer, a handheld computer, a Personal Computer (PC), a cellular phone, a Personal Digital Assistant (PDA), a wearable device (e.g., a smart watch), a smart home device (e.g., a television), a vehicle-mounted computer, a game machine, and an Augmented Reality (AR) \ Virtual Reality (VR) device, and the like, and the specific device form of the terminal device 100 is not particularly limited in this embodiment.
In some embodiments, the software system of the terminal device 100 may adopt a hierarchical architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present invention takes an Android system with a layered architecture as an example, and exemplarily illustrates a software structure of the terminal device 100. Fig. 2 is a block diagram of a software structure of the terminal device 100 according to the embodiment of the present invention, and as shown in fig. 2, a layered architecture divides software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, a system framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom.
The application layer may include a series of application packages.
As shown in fig. 2, the application package may include phone, camera, gallery, calendar, talk, map, navigation, WLAN, bluetooth, music, video, short message, etc. applications.
The system framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The system framework layer includes a number of predefined functions.
As shown in FIG. 2, the system framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide the communication function of the terminal device 100. Such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, text information is prompted in the status bar, a prompt tone is given, the terminal device vibrates, an indicator light flickers, and the like.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the system framework layer run in a virtual machine. And executing java files of the application program layer and the system framework layer into binary files by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), Media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
An embodiment of the present invention provides an adaptation method for a terminal screen, which is shown in fig. 3 and includes:
s301: when the terminal is powered on and started, the terminal acquires the identifier of the screen on the terminal.
Before the step, various screen parameters in the market are obtained, all the screen parameters are collected to generate a preset screen parameter database, and subsequent searching and matching are facilitated. It should be noted that the identification of the screen includes the sensor identification of the screen
S302: and the terminal searches whether effective screen parameters corresponding to the screen identification exist in a preset screen parameter database.
In this step, effective screen parameters corresponding to the screen identifiers are searched, it should be noted that the identifier of one screen corresponds to the parameter of one effective screen, the identifiers of different screens are different, and the effective screen parameters corresponding to the screen identifiers are also unique, so that errors in query are avoided.
S303: and when the effective screen parameters corresponding to the identification of the screen exist, replacing the historical screen parameters of the terminal by the effective screen parameters.
In this step, if the effective screen parameter corresponding to the screen identifier is found, the effective screen parameter is used to replace the historical screen parameter of the terminal, and thus the adaptive configuration of the terminal screen and the system user interface is realized.
And when no effective screen parameter corresponding to the identifier of the screen exists, drawing the display content of the screen according to the historical screen parameter. Namely, the original system user interface is kept unchanged, and research personnel debug the system according to actual conditions, so that errors of the system user interface are avoided.
S304: and the terminal draws the display content of the screen according to the effective screen parameters.
In this embodiment, when the terminal is powered on and started up, the identifier of the screen of the current terminal is acquired, the identifier is searched in the preset screen parameter database, and if the effective screen parameter corresponding to the identifier of the screen is found, the display content of the screen is drawn by using the effective screen parameter, so that the self-adaptive configuration of the user interface on the terminal to the screen is realized, the project development cost is reduced, and the project development progress is improved.
For further understanding of the adapting method of the terminal screen, referring to fig. 4, fig. 4 is a flowchart of another adapting method of the terminal screen, the method comprising:
s401: various types of screen parameters on the market are acquired.
S402: and setting corresponding screen identifiers for various types of screen parameters, and generating a preset screen parameter database by using the screen identifiers and the screen parameter set.
In this step, the identifiers of the different screens correspond to different screen parameters, that is, when the identifiers of the screens are inquired, the corresponding effective screen parameters can be found, and the effective screen parameters can be screen parameters ready for use.
S403: and searching whether effective screen parameters corresponding to the screen identification exist in a preset screen parameter database.
In this step, if a valid screen parameter corresponding to the screen identifier is found, the process proceeds to step S405, and if no valid screen parameter corresponding to the screen identifier is found, the process proceeds to step S404.
S404: and abandoning the configuration of the terminal screen.
S405: and replacing the historical screen parameters of the terminal by the effective screen parameters by the system framework layer of the terminal.
S406: and the user interface system of the terminal draws the display content of the screen according to the effective screen parameters.
Therefore, the self-adaptive configuration of the terminal screen and the user interface is realized, the project research and development progress can be greatly improved, and the project development cost is reduced.
In another embodiment of the present disclosure, a system for adapting a terminal screen, as shown in fig. 5, includes: the terminal comprises an obtaining unit 501 used for obtaining the identifier of the screen of the terminal when the terminal is powered on and started up, a searching unit 502 used for searching whether an effective screen parameter corresponding to the identifier of the screen exists in a preset screen parameter database, a processing unit 503 used for replacing the historical screen parameter of the terminal by the effective screen parameter when the effective screen parameter corresponding to the identifier of the screen exists, and the processing unit 503 also used for drawing the display content of the screen according to the effective screen parameter.
In this embodiment, the obtaining unit 501 obtains the identifier of the screen of the current terminal by powering on and powering on the terminal, the searching unit 502 searches in the preset screen parameter database, and if the effective screen parameter corresponding to the identifier of the screen is found, the processing unit 503 draws the display content of the screen by using the effective screen parameter, thereby implementing the adaptive configuration of the system on the terminal on the screen, reducing the project development cost, and accelerating the progress of the project development.
In another possible implementation, before acquiring the identifier of the screen of the terminal, the acquiring unit 501 is further configured to acquire various types of screen parameters on the market, and generate a preset screen parameter database according to the acquired various types of screen parameters, where the screen parameter database includes the identifier of the screen and valid screen parameters corresponding to the identifier of the screen. By collecting all screen parameters on the market, the reliability of the replacement configuration is increased. The processing unit 503 is further configured to draw the display content of the screen according to the historical screen parameters when there are no valid screen parameters corresponding to the identifier of the screen, so as to avoid an error of the user interface, and perform manual debugging to ensure that the research and development staff know that the user interface of the screen is not changed, thereby ensuring that the project is smoothly performed.
In another possible implementation, the processing unit 503 is further configured to parse and encapsulate the effective screen parameters into an interface, obtain the effective screen parameters by calling the interface, and draw the display content of the screen according to the effective screen parameters. The effective screen parameters are analyzed and then packaged into the interface, so that subsequent quick calling is facilitated, and the configuration efficiency of the terminal screen is accelerated. It should be noted that the screen parameters include the size and resolution of the screen.
In other embodiments of the present invention, an embodiment of the present invention discloses an electronic device, where the electronic device may correspond to the upper computer in the foregoing method embodiment, and as shown in fig. 6, the electronic device may include: one or more processors 601; a memory 602; a display 603; one or more application programs (not shown); and one or more computer programs 604, which may be connected via one or more communication buses 805. Wherein the one or more computer programs 604 are stored in the memory 602 and configured to be executed by the one or more processors 601, the one or more computer programs 604 comprising instructions which may be used to perform the steps as in fig. 3 and 4 and the corresponding embodiments.
The invention also provides a computer-readable medium, on which a computer program is stored, which computer program, when being executed by a computer, carries out the method of the above-mentioned method embodiments.
The invention also provides a computer program product which, when executed by a computer, implements the method of the above-described method embodiments.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
Each functional unit in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present invention may be implemented in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor to execute all or part of the steps of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: flash memory, removable hard drive, read only memory, random access memory, magnetic or optical disk, and the like.
The above description is only a specific implementation of the embodiments of the present invention, but the scope of the embodiments of the present invention is not limited thereto, and any changes or substitutions within the technical scope disclosed by the embodiments of the present invention should be covered within the scope of the embodiments of the present invention. Therefore, the protection scope of the embodiments of the present invention shall be subject to the protection scope of the claims.

Claims (12)

1. A method for adapting a terminal screen is characterized by comprising the following steps:
when the terminal is powered on and started, acquiring the identifier of a screen of the terminal;
searching whether an effective screen parameter corresponding to the screen identifier exists in a preset screen parameter database;
when the effective screen parameters corresponding to the screen identification exist, replacing the historical screen parameters of the terminal with the effective screen parameters;
and drawing the display content of the screen according to the effective screen parameters.
2. The method of claim 1, further comprising:
and when no effective screen parameter corresponding to the identifier of the screen exists, drawing the display content of the screen according to the historical screen parameter.
3. The method according to claim 1 or 2, wherein before obtaining the identity of the screen of the terminal, the method comprises:
acquiring various screen parameters on the market;
and generating a preset screen parameter database, wherein the screen parameter database comprises the screen identifier and the effective screen parameters corresponding to the screen identifier.
4. The method according to claim 1 or 2, wherein when there is an effective screen parameter corresponding to the identity of the screen, replacing the historical screen parameter of the terminal with the effective screen parameter comprises:
analyzing the effective screen parameters and then packaging the effective screen parameters into an interface;
drawing the display content of the screen according to the effective screen parameters, and the drawing method comprises the following steps:
and acquiring the effective screen parameters by calling the interface, and drawing the display content of the screen according to the effective screen parameters.
5. The method of claim 1 or 2, wherein the screen parameters include a size and a resolution of the screen.
6. An adaptation system of a terminal screen, comprising:
the terminal comprises an acquisition unit, a display unit and a control unit, wherein the acquisition unit is used for acquiring the identifier of a screen of the terminal when the terminal is powered on and started;
the searching unit is used for searching whether an effective screen parameter corresponding to the screen identifier exists in a preset screen parameter database;
and the processing unit is used for replacing the historical screen parameters of the terminal by the effective screen parameters when the effective screen parameters corresponding to the screen identification exist, and the processing unit is also used for drawing the display contents of the screen according to the effective screen parameters.
7. The system of claim 6, wherein the processing unit is further configured to draw the display content of the screen according to the historical screen parameters when there are no valid screen parameters corresponding to the identity of the screen.
8. The system according to claim 6 or 7, wherein before acquiring the identifier of the screen of the terminal, the acquiring unit is further configured to acquire various types of screen parameters on the market, and generate the preset screen parameter database according to the acquired various types of screen parameters, and the screen parameter database includes the identifier of the screen and valid screen parameters corresponding to the identifier of the screen.
9. The system according to claim 6 or 7, wherein the processing unit is further configured to parse and encapsulate the effective screen parameters into an interface, obtain the effective screen parameters by calling the interface, and draw display contents of a screen according to the effective screen parameters.
10. The system of claim 6 or 7, wherein the screen parameters include a size and a resolution of the screen.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 5 when executing the computer program.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1 to 5.
CN202110855611.4A 2021-07-28 2021-07-28 Terminal screen adapting method, system, equipment and medium Pending CN113553017A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110855611.4A CN113553017A (en) 2021-07-28 2021-07-28 Terminal screen adapting method, system, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110855611.4A CN113553017A (en) 2021-07-28 2021-07-28 Terminal screen adapting method, system, equipment and medium

Publications (1)

Publication Number Publication Date
CN113553017A true CN113553017A (en) 2021-10-26

Family

ID=78104715

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110855611.4A Pending CN113553017A (en) 2021-07-28 2021-07-28 Terminal screen adapting method, system, equipment and medium

Country Status (1)

Country Link
CN (1) CN113553017A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116055655A (en) * 2022-05-30 2023-05-02 荣耀终端有限公司 Picture size recommending method and electronic equipment
CN116737243A (en) * 2022-09-29 2023-09-12 荣耀终端有限公司 Screen parameter patch upgrading method and terminal equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105187634A (en) * 2015-08-07 2015-12-23 北京思特奇信息技术股份有限公司 Method and system for enabling terminal application to dynamically adapt to intelligent terminal screen
CN107948351A (en) * 2017-11-20 2018-04-20 深圳天珑无线科技有限公司 The imaging method of terminal and its adaptive screen, storage device
CN110764850A (en) * 2018-07-26 2020-02-07 阿里巴巴集团控股有限公司 Interface display method, parameter assignment method, system and equipment
CN111190681A (en) * 2019-12-31 2020-05-22 华为技术有限公司 Display interface adaptation method, display interface adaptation design method and electronic equipment
WO2020119444A1 (en) * 2018-12-13 2020-06-18 腾讯科技(深圳)有限公司 Game image rendering method and device, terminal, and storage medium
CN112181500A (en) * 2020-08-07 2021-01-05 深圳市鼎盛光电有限公司 Parameter adjusting method, device, terminal and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105187634A (en) * 2015-08-07 2015-12-23 北京思特奇信息技术股份有限公司 Method and system for enabling terminal application to dynamically adapt to intelligent terminal screen
CN107948351A (en) * 2017-11-20 2018-04-20 深圳天珑无线科技有限公司 The imaging method of terminal and its adaptive screen, storage device
CN110764850A (en) * 2018-07-26 2020-02-07 阿里巴巴集团控股有限公司 Interface display method, parameter assignment method, system and equipment
WO2020119444A1 (en) * 2018-12-13 2020-06-18 腾讯科技(深圳)有限公司 Game image rendering method and device, terminal, and storage medium
CN111190681A (en) * 2019-12-31 2020-05-22 华为技术有限公司 Display interface adaptation method, display interface adaptation design method and electronic equipment
CN112181500A (en) * 2020-08-07 2021-01-05 深圳市鼎盛光电有限公司 Parameter adjusting method, device, terminal and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116055655A (en) * 2022-05-30 2023-05-02 荣耀终端有限公司 Picture size recommending method and electronic equipment
CN116055655B (en) * 2022-05-30 2023-09-26 荣耀终端有限公司 Picture size recommending method and electronic equipment
CN116737243A (en) * 2022-09-29 2023-09-12 荣耀终端有限公司 Screen parameter patch upgrading method and terminal equipment
CN116737243B (en) * 2022-09-29 2024-04-16 荣耀终端有限公司 Screen parameter patch upgrading method and terminal equipment

Similar Documents

Publication Publication Date Title
CN111447498A (en) Awakening method of display equipment and display equipment
CN113553017A (en) Terminal screen adapting method, system, equipment and medium
CN110519628A (en) A kind of picture-in-picture display methods and display equipment
CN112584211B (en) Display equipment
CN112885354B (en) Display device, server and display control method based on voice
CN111897478A (en) Page display method and display equipment
CN113377479A (en) Switching method and device of application visual theme, storage medium and terminal
US20230229375A1 (en) Electronic Device, Inter-Device Screen Coordination Method, and Medium
CN112597110B (en) Display equipment and file display method
CN113473241A (en) Display equipment and display control method of image-text style menu
CN111324411B (en) User interface upgrading method in display equipment and display equipment
KR100855698B1 (en) Graphic interface change system and method
CN113573149B (en) Channel searching method and display device
CN112487322B (en) Third party application Loading page loading method and display device
CN116340680A (en) Display equipment and control method for managing life cycle of plug-in object
CN114968167A (en) Audio processing method, device, medium and terminal equipment
CN113407283A (en) Interface display method and device and electronic equipment
CN113286185A (en) Display device and homepage display method
CN113490030A (en) Display device and channel information display method
CN112817679A (en) Display device and interface display method
CN112631796A (en) Display device and file copying progress display method
CN112637683A (en) Display equipment system optimization method and display equipment
CN112667285A (en) Application upgrading method, display device and server
CN112883302B (en) Method for displaying page corresponding to hyperlink address and display equipment
CN113490013B (en) Server and data request method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20211026