CN114816311B - Screen movement method and device - Google Patents
Screen movement method and device Download PDFInfo
- Publication number
- CN114816311B CN114816311B CN202210751665.0A CN202210751665A CN114816311B CN 114816311 B CN114816311 B CN 114816311B CN 202210751665 A CN202210751665 A CN 202210751665A CN 114816311 B CN114816311 B CN 114816311B
- Authority
- CN
- China
- Prior art keywords
- display screen
- distance
- instruction
- module
- laser focusing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000033001 locomotion Effects 0.000 title claims abstract description 78
- 238000000034 method Methods 0.000 title claims abstract description 66
- 238000001514 detection method Methods 0.000 claims abstract description 81
- 238000004590 computer program Methods 0.000 claims description 12
- 230000005540 biological transmission Effects 0.000 claims description 7
- 230000001960 triggered effect Effects 0.000 claims description 7
- 238000012545 processing Methods 0.000 description 27
- 230000006870 function Effects 0.000 description 18
- 230000008569 process Effects 0.000 description 16
- 238000010586 diagram Methods 0.000 description 12
- 230000002441 reversible effect Effects 0.000 description 10
- 230000005236 sound signal Effects 0.000 description 7
- 230000000694 effects Effects 0.000 description 6
- 230000001976 improved effect Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 5
- 230000001133 acceleration Effects 0.000 description 4
- 238000004422 calculation algorithm Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 230000008602 contraction Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 229920001621 AMOLED Polymers 0.000 description 2
- 230000003190 augmentative effect Effects 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000014509 gene expression Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000036961 partial effect Effects 0.000 description 2
- 239000002096 quantum dot Substances 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 239000000758 substrate Substances 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 238000013528 artificial neural network Methods 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 210000000988 bone and bone Anatomy 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 239000002131 composite material Substances 0.000 description 1
- 239000004020 conductor Substances 0.000 description 1
- 238000006073 displacement reaction Methods 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000001939 inductive effect Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000010985 leather Substances 0.000 description 1
- 230000000670 limiting effect Effects 0.000 description 1
- 230000004807 localization Effects 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 229910044991 metal oxide Inorganic materials 0.000 description 1
- 150000004706 metal oxides Chemical class 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000007781 pre-processing Methods 0.000 description 1
- 230000002829 reductive effect Effects 0.000 description 1
- 238000005096 rolling process Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/147—Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels
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
A screen movement method and device are applied to the technical field of terminals. The method comprises the following steps: detecting a first instruction, wherein the first instruction is used for indicating the display screen to move; obtaining a distance parameter through a distance detection module, wherein the distance parameter is used for representing the moving distance of the display screen; determining whether the distance parameter meets a first preset condition; responding to a first instruction, and controlling the display screen to move when the distance parameter meets a first preset condition; when the distance parameter does not meet the first preset condition, the display screen is controlled to stop moving, and the screen moving state of the screen scrolling electronic device can be effectively controlled.
Description
Technical Field
The application relates to the technical field of terminals, and in particular relates to a method and a device for screen movement.
Background
With the rapid development of intelligent terminals, the experience of users on the terminals is improved. For the intelligent terminal, the user experience can be remarkably improved by the large screen. Generally, a large screen terminal has a large volume, which is not easy for a user to carry.
The advent of flexible screens has provided the possibility of the development of portable large screens. The flexible screen includes a screen type such as an organic light-emitting diode (OLED). By applying the flexible screen to the intelligent terminal, the intelligent terminal has higher flexibility and portability. Currently, some manufacturers have applied flexible screens in cell phones, such as scroll screen terminals. However, there is no effective solution for controlling the screen movement of a scroll screen terminal.
Disclosure of Invention
In view of the foregoing, the present application provides a method, an apparatus, an electronic device, a computer readable storage medium and a computer program product for screen movement, which can effectively control movement of a display screen, and greatly improve user experience of a scroll terminal.
In a first aspect, a method of screen movement is provided, the method being applied to an electronic device having a retractable display screen, the electronic device including a distance detection module, the method comprising:
detecting a first instruction, wherein the first instruction is used for indicating the display screen to move;
acquiring a distance parameter through the distance detection module, wherein the distance parameter is used for representing the moving distance of the display screen;
determining whether the distance parameter meets a first preset condition;
responding to the first instruction, and controlling the display screen to move when the distance parameter meets the first preset condition;
and when the distance parameter does not meet the first preset condition, controlling the display screen to stop moving.
The above method may be performed by the terminal device or a chip in the terminal device. Based on the scheme, the distance parameter is acquired through the distance detection module, the distance of the movement of the display screen is obtained, and then whether the display screen moves is determined by judging whether the distance of the movement of the display screen meets a first preset condition. And if the distance parameter meets the first preset condition, controlling the display screen to move, and if the distance parameter does not meet the first preset condition, controlling the display screen to stop moving. The screen movement method can effectively control the screen movement state of the screen scrolling electronic device.
In one possible implementation, during the moving of the display screen, the method further includes:
detecting a second instruction, wherein the second instruction is used for indicating the display screen to stop moving;
and responding to the second instruction, and controlling the display screen to stop moving.
Therefore, in the moving process of the display screen, the user can also respond to the stopping instruction of the user to stop moving the display screen, and the control experience of the user on the display screen is improved.
In one possible implementation manner, the first instruction is used for indicating that the display screen moves towards the direction of stretching of the display screen, wherein the size of the stretched display screen is larger than the size of the display screen before stretching;
the distance parameter satisfies a first preset condition, including: the distance parameter is less than a first distance threshold;
wherein controlling the movement of the display screen comprises: and controlling the stretching of the display screen.
Therefore, the display screen is controlled to move towards the stretching direction or move forward through the first instruction, and the use experience of a user on the scrolling screen is improved. In addition, the stretching distance of the display screen can be restrained through the first distance threshold, invalid movement is avoided, and power consumption is saved.
In one possible implementation manner, the first instruction is used for indicating the display screen to move towards the direction of display screen shrinkage, wherein the size of the display screen after shrinkage is smaller than the size of the display screen before shrinkage;
the distance parameter satisfies a first preset condition, including: the distance parameter is greater than a second distance threshold;
wherein controlling the movement of the display screen comprises: and controlling the display screen to shrink.
Therefore, the display screen is controlled to move towards the shrinkage direction or move reversely through the first instruction, and the use experience of a user on the scroll screen is improved. In addition, the contracted distance of the display screen can be restrained through the second distance threshold, invalid movement is avoided, and power consumption is saved.
In one possible implementation, the distance detection module is a laser focusing module.
In a second aspect, there is provided an apparatus for screen movement comprising means for performing any of the methods of the first aspect. The device may be a terminal (or a terminal device) or may be a chip in the terminal (or the terminal device). The device comprises a distance detection module, an input unit, a display unit and a processing unit. Alternatively, the display unit may be a retractable display screen. Alternatively, the distance detection module may be a laser focusing module.
When the apparatus is a terminal, the processing unit may be a processor, the input unit may be a communication interface, and the display unit may be a graphic processing module and a screen; the terminal may further comprise a memory for storing computer program code which, when executed by the processor, causes the terminal to perform any of the methods of the first aspect.
When the device is a chip in the terminal, the processing unit may be a logic processing unit in the chip, the input unit may be an output interface, a pin, a circuit, or the like, and the display unit may be a graphics processing unit in the chip; the chip may also include memory, which may be memory within the chip (e.g., registers, caches, etc.), or memory external to the chip (e.g., read-only memory, random access memory, etc.); the memory is for storing computer program code which, when executed by the processor, causes the chip to perform any of the methods of the first aspect.
In a third aspect, an electronic device is provided, comprising: the device comprises a telescopic display screen, a distance detection module and a processor;
The processor is used for detecting a first instruction, and the first instruction is used for indicating the display screen to move;
the distance detection module is used for detecting a distance parameter, and the distance parameter is used for representing the moving distance of the telescopic display screen;
the processor is further configured to determine whether the distance parameter meets a first preset condition; responding to the first instruction, and controlling the display screen to move when the distance parameter meets the first preset condition; and when the distance parameter does not meet the first preset condition, controlling the display screen to stop moving.
In one possible implementation, the distance detection module is a laser focusing module, and the laser focusing module performs data transmission with the processor through a connector.
In a fourth aspect, there is provided a computer readable storage medium storing computer program code which, when run by a screen-moved apparatus, causes the apparatus to perform any one of the methods of the first aspect.
In a fifth aspect, there is provided a computer program product comprising: computer program code which, when run by a screen-moved apparatus, causes the apparatus to perform any of the methods of the first aspect.
Drawings
FIG. 1 is an exemplary diagram of a screen display area according to an embodiment of the present application;
FIG. 2 is a schematic view of a portion of a structure of a terminal having a retractable display screen;
FIG. 3 is a schematic diagram of a hardware system suitable for use with the electronic device of the present application;
FIG. 4 is a schematic diagram of a software system suitable for use with the electronic device of the present application;
FIG. 5 is a schematic flow chart of a method of screen movement of an embodiment of the present application;
FIG. 6 is a specific flow chart of a method of screen movement according to an embodiment of the present application;
FIG. 7 is a schematic block diagram of an apparatus for screen movement according to an embodiment of the present application;
fig. 8 is a diagram showing one structural example of the electronic device according to the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.
The method for moving the screen can be applied to electronic equipment with a flexible display screen. The electronic device may be, for example, various terminal devices such as a mobile phone, a tablet computer, a multimedia playing device, an electronic book reader, a personal computer, a Personal Digital Assistant (PDA), a smart watch, etc. The present application is not limited to a specific form of electronic device.
The flexible display screen of the electronic device of the embodiments of the present application may be retractable. The retractable display screen may also be referred to as a scroll screen (or scroll screen) structure. The status of a scroll screen generally includes three modes: non-expansion, partial expansion and full expansion. Based on these three modes, the display screen of the electronic device with the roll screen also has a corresponding screen display area. Described below in connection with the example in fig. 1.
Fig. 1 shows a schematic view of a screen display area according to an embodiment of the present application. Taking the example where the electronic device is a terminal, for a roll screen terminal, the area of the terminal display may include the 3 states shown in fig. 1. The display screen of the roll screen terminal may be in a state of not being unfolded, and the exposed area of the terminal screen may be the display area 10 shown in (1) of fig. 1. The display screen of the roll screen terminal may be in a partially unfolded state, and the exposed area of the terminal screen may be the display area 11 shown in (2) of fig. 1. The area of the display area 11 is larger than the area of the display area 10. The display screen of the roll screen terminal may be in a fully unfolded state, and the exposed area of the terminal screen may be the display area 12 shown in (3) of fig. 1. The area of the display area 12 is larger than the area of the display area 11.
It will be appreciated that the size of the fully extended display (e.g., the size of the display area 12) may depend on the product implementation and embodiments of the present application are not particularly limited.
It should be understood that the display screen shown in fig. 1 is only exemplary in description in the undeployed, partially deployed, and fully deployed states, and embodiments of the present application are not limited thereto.
It should also be understood that the scenario in fig. 1 is only a schematic illustration of one application scenario of the present application, which is not limiting to the embodiments of the present application, and the present application is not limited thereto.
In this embodiment of the present application, for the above-mentioned scroll terminal, movement of the display screen may be implemented by setting a corresponding movement component, and a distance of movement of the display screen may be detected by a distance detection module. The following is a description of a part of the structure shown in fig. 2.
Fig. 2 shows a partial schematic structure of a terminal with a retractable display. As shown in fig. 2 (1), the terminal housing assembly 20 includes a housing 21 and a housing 22. The housing 21 and the housing 22 are relatively movable. The display area of the flexible display 23 can be changed by a relative movement between the housing 21 and the housing 22. The relative movement between the housing 21 and the housing 22 may be achieved by providing a movement module (not shown in fig. 2).
For example, the display area of the flexible display screen 23 may be in 3 states as shown in fig. 1.
The embodiment of the application does not limit the specific form of the mobile module. Alternatively, the mobile module may be implemented by a mechanical assembly. For example, the movable module can be a scroll structure, and the display screen can be driven to stretch or shrink by rotating the scroll structure. Alternatively, the movement of the moving module may be implemented by a driving structure, for example, the moving module is driven by a stepping motor.
It will be appreciated that only some of the components of the terminal are shown in fig. 2, and embodiments of the present application are not limited thereto. In fact, the terminal may also comprise other components, such as a camera. Alternatively, a camera may be provided in the housing assembly 20.
In the embodiment of the application, the distance of the movement of the display screen is detected by arranging the distance detection module in the terminal. The specific form of the distance detection module is not limited, and only the distance of the movement of the display screen can be detected. For example, the distance detection module may be a laser focusing module. For another example, the distance detection module may be an infrared distance detector. For another example, the distance detection module may be an acoustic distance detection sensor. For another example, the distance detection module may be a displacement sensor. It will be appreciated that the examples herein with respect to the distance detection module are merely exemplary, and embodiments of the application are not limited thereto, as the distance detection module may be other forms of rangefinder.
Taking a laser focusing module as an example, the working principle of the laser focusing module is as follows: the distance from the target surface to the laser focusing module is calculated by emitting infrared light to the target surface and measuring the time difference of the reflected light.
Alternatively, fig. 2 illustrates an example in which the distance detection module is a laser focusing module. Fig. 2 (2) is a diagram showing one configuration example in which the laser focusing module is provided in the terminal. As shown in fig. 2 (2), a processor 4 (e.g., CPU) of the terminal is provided in a substrate (or motherboard). For example, the substrate may be a printed circuit board (printed circuit board, PCB). The processor 4 and the connector 3 may be connected via an I2C bus 6. The laser focusing module 1 can realize data transmission through the connector 3 and the processor 4.
The setting position of the laser focusing module 1 is not particularly limited in this embodiment, as long as the distance of the display screen movement can be detected. For example, the laser focusing module 1 can be placed in the middle of the whole machine of the terminal at a position close to the mobile module through a flexible circuit board (flexible printed circuit, FPC) 2. The light emitted by the laser focusing module 1 can be aligned with the moving module and can be kept from being blocked by other objects.
The position where the mobile module is disposed is not particularly limited in the embodiment of the present application. The mobile module can drive the display screen to move. The mobile module can move through the driving device. The drive means may be in the form of software and/or hardware. For example, the driving device may be a motor driving, that is, the moving module is driven by the motor to move.
As shown in (2) of fig. 2, the flexible circuit board 2 is connected with the connector 3, that is, the flexible circuit board 2 can be connected with the motherboard through the connector 3. The type of the connector 3 is not particularly limited in the embodiment of the present application. For example, the connector 3 connected to the flexible circuit board 2 may be a Board To Board (BTB) connector or a dome connector.
VDD 7 is used to power the laser focusing module 1. VDD 7 is connected to connector 3. VDD 7 may be connected to a power management unit (power management unit, PMU) 5 to power the laser focusing module 1.
The power management unit 5 may be replaced by other power supply platforms or other power supply forms, and the embodiment of the present application is not limited thereto. For example, the laser focusing module 1 is powered by an external low dropout linear regulator (low dropout regulator, LDO).
As shown in fig. 2 (2), when the display screen of the terminal is not unfolded, the distance between the laser focusing module 1 and the frame of the housing 22 is a, which can also be understood as that when the display screen is at the initial position, the gap between the laser focusing module 1 and the frame of the housing 22 is a; when the display screen of the terminal is completely unfolded, the distance between the laser focusing module 1 and the frame of the shell 22 is B. It will be appreciated that the distance between the laser focusing module 1 and the bezel of the housing 22 is between a and B when the display screen portion of the terminal is unfolded.
Fig. 2 (3) shows a schematic diagram of the connection of the distance detection module to the CPU. As shown in fig. 2 (3), the distance detection module (e.g., the laser focusing module 1) performs data transmission with the CPU (e.g., the processor 4) through the connector (e.g., the connector 3). The distance detection module and the CPU comprise an INT interrupt path, an EN enable path, a serial data line (SDA) path, a serial clock line (Serial clock line, SCL) path and the like.
The SDA path and the SCL path are two paths of the I2C bus, both being bi-directional I/O lines. For the SDA path, the CPU and the connector are connected through an I2C_SDA pin; the connector is connected with the distance detection module through an I2C_SDA_BTB pin. For SCL path, CPU and connector are connected by I2C_SCL pin; the connector is connected with the distance detection module through an I2C_SCL_BTB pin.
The INT interrupt path is sent to the CPU by the distance detection module to process interrupt event. For the INT interrupt path, the CPU and the connector are connected through an INT pin; the connector is connected with the distance detection module through an INT_BTB pin.
The EN enabling path is sent out by the CPU, and enables the distance detection module to work. For the EN enabling path, the CPU and the connector are connected through an EN pin; the connector is connected with the distance detection module through an EN_BTB pin.
VDD is a power supply unit of the distance detection module, and as described above, the power supply unit may be the power management unit 5 or other external LDO. The connector is connected with the distance detection module through a VDD_BTB pin.
GND is the ground terminal. The connector is connected with the distance detection module through a GND_BTB pin.
It should be understood that the connection schematic shown in fig. 2 (3) is only an exemplary description, and the embodiments of the present application are not limited thereto. Other connection diagrams may also be obtained by those skilled in the art based on the above principles. And if the distance detection module adopts different forms, the person skilled in the art can make corresponding reasonable connection to the connection principle based on the form of the distance detection module.
It should also be understood that the connection schematic diagram shown in fig. 2 (3) is only a part of the lead wires, and the embodiment of the present application is not limited thereto.
According to the technical scheme, the distance detection module measures the distance in real time to acquire the distance parameter, and judges whether the distance parameter meets the first preset condition or not to control whether the display screen moves or not, so that the screen movement state of the screen scrolling electronic device can be effectively controlled.
Fig. 3 shows a hardware system suitable for the electronic device of the present application.
The electronic device 100 may be a cell phone, a smart screen, a tablet computer, a wearable electronic device, an in-vehicle electronic device, an augmented reality (augmented reality, AR) device, a Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (personal digital assistant, PDA), a projector, etc., and the specific type of the electronic device 100 is not limited in the embodiments of the present application.
The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, a distance detection module 180N, and the like.
The configuration shown in fig. 3 does not constitute a specific limitation on the electronic apparatus 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than those shown in FIG. 3, or electronic device 100 may include a combination of some of the components shown in FIG. 3, or electronic device 100 may include sub-components of some of the components shown in FIG. 3. For example, the proximity light sensor 180G shown in fig. 3 may be optional. The components shown in fig. 3 may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units. For example, the processor 110 may include at least one of the following processing units: application processors (application processor, AP), modem processors, graphics processors (graphics processing unit, GPU), image signal processors (image signal processor, ISP), controllers, video codecs, digital signal processors (digital signal processor, DSP), baseband processors, neural-Network Processors (NPU). The different processing units may be separate devices or integrated devices.
The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
The connection relationship between the modules shown in fig. 3 is merely illustrative, and does not limit the connection relationship between the modules of the electronic device 100. Alternatively, the modules of the electronic device 100 may also use a combination of the various connection manners in the foregoing embodiments.
The electronic device 100 may implement display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 may be used to display images or video. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Mini light-emitting diode (Mini LED), a Micro light-emitting diode (Micro LED), a Micro OLED (Micro OLED), or a quantum dot LED (quantum dot light emitting diodes, QLED). In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1. In the present embodiment, the display 194 is a flexible display, or a retractable display, or a scroll screen. In some embodiments, the expanded state of the display 194 may be as 3 states shown in fig. 1.
The electronic device 100 may implement a photographing function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. The ISP can carry out algorithm optimization on noise, brightness and color of the image, and can optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into a standard Red Green Blue (RGB), YUV, etc. format image signal. In some embodiments, electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
The electronic device 100 may implement audio functions, such as music playing and recording, through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like.
The audio module 170 is used to convert digital audio information into an analog audio signal output, and may also be used to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also referred to as a horn, is used to convert audio electrical signals into sound signals. The electronic device 100 may listen to music or hands-free conversation through the speaker 170A.
A receiver 170B, also referred to as an earpiece, converts the audio electrical signal into a sound signal. When a user uses the electronic device 100 to answer a phone call or voice message, the voice can be answered by placing the receiver 170B close to the ear.
Microphone 170C, also known as a microphone or microphone, is used to convert sound signals into electrical signals. When a user makes a call or transmits voice information, a sound signal may be input to the microphone 170C by sounding near the microphone 170C.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be a USB interface 130 or a 3.5mm open mobile electronic device 100 platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A may be of various types, such as a resistive pressure sensor, an inductive pressure sensor, or a capacitive pressure sensor. The capacitive pressure sensor may be a device comprising at least two parallel plates with conductive material, and when a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes, and the electronic device 100 determines the strength of the pressure based on the change in capacitance. When a touch operation acts on the display screen 194, the electronic apparatus 100 detects the touch operation according to the pressure sensor 180A. The electronic device 100 may also calculate the location of the touch based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon; and executing the instruction of newly creating the short message when the touch operation with the touch operation intensity being larger than or equal to the first pressure threshold acts on the short message application icon.
The gyro sensor 180B may be used to determine a motion gesture of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., x-axis, y-axis, and z-axis) may be determined by gyro sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance to be compensated by the lens module according to the angle, and makes the lens counteract the shake of the electronic device 100 through the reverse motion, so as to realize anti-shake. The gyro sensor 180B can also be used for scenes such as navigation and motion sensing games.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, electronic device 100 calculates altitude from barometric pressure values measured by barometric pressure sensor 180C, aiding in positioning and navigation.
The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip cover using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip machine, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. The electronic device 100 may set the characteristics of automatic unlocking of the flip cover according to the detected open-close state of the leather sheath or the open-close state of the flip cover.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically, x-axis, y-axis, and z-axis). The magnitude and direction of gravity may be detected when the electronic device 100 is stationary. The acceleration sensor 180E may also be used to recognize the gesture of the electronic device 100 as an input parameter for applications such as landscape switching and pedometer.
The distance sensor 180F is used to measure a distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, for example, in a shooting scene, the electronic device 100 may range using the distance sensor 180F to achieve fast focus.
The proximity light sensor 180G may include, for example, a light-emitting diode (LED) and a light detector, for example, a photodiode. The LED may be an infrared LED. The electronic device 100 emits infrared light outward through the LED. The electronic device 100 detects infrared reflected light from nearby objects using a photodiode. When the reflected light is detected, the electronic device 100 may determine that an object is present nearby. When no reflected light is detected, the electronic device 100 may determine that there is no object nearby. The electronic device 100 can use the proximity light sensor 180G to detect whether the user holds the electronic device 100 close to the ear for talking, so as to automatically extinguish the screen for power saving. The proximity light sensor 180G may also be used for automatic unlocking and automatic screen locking in holster mode or pocket mode. It should be appreciated that the proximity light sensor 180G described in fig. 3 may be an optional component. In some scenarios, an ultrasonic sensor may be utilized in place of proximity sensor 180G to detect proximity light.
The ambient light sensor 180L is used to sense ambient light level. The electronic device 100 may adaptively adjust the brightness of the display 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust white balance when taking a photograph. Ambient light sensor 180L may also cooperate with proximity light sensor 180G to detect whether electronic device 100 is in a pocket to prevent false touches. In some embodiments, ambient light information of the terminal may be detected by ambient light sensor 180L.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 may utilize the collected fingerprint feature to perform functions such as unlocking, accessing an application lock, taking a photograph, and receiving an incoming call.
The touch sensor 180K, also referred to as a touch device. The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a touch screen. The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor 180K may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 and at a different location than the display 194.
The distance detection module 180N is configured to detect a distance moved by the display screen 194. For example, the distance detection module 180N may be a laser focusing module, and the description thereof may refer to the description of fig. 2.
The keys 190 include a power-on key and an volume key. The keys 190 may be mechanical keys or touch keys. The electronic device 100 may receive a key input signal and implement a function related to the case input signal.
The motor 191 may generate vibration. The motor 191 may be used for incoming call alerting as well as for touch feedback. The motor 191 may generate different vibration feedback effects for touch operations acting on different applications. The motor 191 may also produce different vibration feedback effects for touch operations acting on different areas of the display screen 194. Different application scenarios (e.g., time alert, receipt message, alarm clock, and game) may correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
In some embodiments, the processor 110 is configured to detect a first instruction that is configured to instruct the display screen 194 to move; the processor 110 may obtain, via the connector, a distance parameter detected by the distance detection module 180N, the distance parameter being used to characterize the distance the display screen 194 is moved; the processor 110 is further configured to determine whether the distance parameter meets a first preset condition; in response to the first instruction, when the distance parameter meets the first preset condition, controlling the display screen 194 to move; and when the distance parameter does not meet the first preset condition, controlling the display screen 194 to stop moving.
The hardware system of the electronic device 100 is described in detail above, and the software system of the electronic device 100 is described below. The software system may employ a layered architecture, an event driven architecture, a microkernel architecture, a micro-service architecture, or a cloud architecture, and the embodiments of the present application illustratively describe the software system of the electronic device 100.
As shown in fig. 4, the software system using the hierarchical architecture is divided into several layers, each of which has a clear role and division. The layers communicate with each other through a software interface. In some embodiments, the software system may be divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android run) and system libraries, and a kernel layer, respectively.
The application layer may include camera, gallery, calendar, conversation, map, navigation, WLAN, bluetooth, music, video, short message, etc. applications.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer may include some predefined functions.
For example, the application framework layer includes a window manager, a content provider, a view system, a telephony manager, a resource manager, and a notification manager.
The window manager is used for managing window programs. The window manager may obtain the display screen size, determine if there are status bars, lock screens, and intercept screens.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, and phonebooks.
The view system includes visual controls, such as controls to display text and controls to display pictures. The view system may be used to build applications. The display interface may be composed of one or more views, for example, a display interface including a text notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is used to provide communication functions of the electronic device 100, such as management of call status (on or off).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, and video files.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as a notification manager, is used for download completion notification and message alerting. The notification manager may also manage notifications that appear in the system top status bar in the form of charts or scroll bar text, such as notifications for applications running in the background. The notification manager may also manage notifications that appear on the screen in the form of dialog windows, such as prompting text messages in status bars, sounding prompts, vibrating electronic devices, and flashing lights.
Android run time includes a core library and virtual machines. Android run time is responsible for scheduling and management of the Android system.
The core library consists of 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 application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing functions such as management of object life cycle, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules, such as: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., open graphics library (open graphics library for embedded systems, openGL ES) for embedded systems) and 2D graphics engines (e.g., skia graphics library (skia graphics library, SGL)).
In some embodiments, the system library may further comprise a display screen movement decision module. The display screen movement decision module is used for determining whether the distance parameter meets a first preset condition; when the distance parameter meets the first preset condition, driving and controlling the display screen to move through the moving module; and when the distance parameter does not meet the first preset condition, driving and controlling the display screen to stop moving through the moving module.
It should be understood that the display screen movement decision module may also be located at other layers in the drawing, such as an application layer, an application framework layer, etc., which are only described herein by taking the embodiment in which the display screen movement decision module is located in a system library as an example, and the embodiment of the present application is not limited thereto.
The surface manager is used to manage the display subsystem and provides a fusion of the 2D and 3D layers for the plurality of applications.
The media library supports playback and recording of multiple audio formats, playback and recording of multiple video formats, and still image files. The media library may support a variety of audio video coding formats such as MPEG4, h.264, moving picture experts group audio layer 3 (moving picture experts group audio layer III, MP 3), advanced audio coding (advanced audio coding, AAC), adaptive multi-rate (AMR), joint picture experts group (joint photographic experts group, JPG), and portable network graphics (portable network graphics, PNG).
Three-dimensional graphics processing libraries may be used to implement three-dimensional graphics drawing, image rendering, compositing, and layer processing.
The two-dimensional graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The kernel layer may include a display driver, a camera driver, an audio driver, a sensor driver, a distance detection driver, and the like.
In some embodiments, the kernel layer may also include distance detection drivers and mobile module drivers. The distance detection drive is used for driving the distance detection module to conduct distance measurement. The mobile module driving is used for driving the mobile module to move so as to change the display area of the display screen.
It should be understood that, the foregoing is an illustration of a block diagram of an electronic device by taking fig. 3 as an example, and the software architecture of the electronic device is illustrated by fig. 4, which is not limited thereto.
The following describes a method of screen movement according to an embodiment of the present application with reference to fig. 5 to 6.
Referring to fig. 5, fig. 5 shows a schematic flow chart of a method 500 of screen movement according to an embodiment of the present application. The method 500 is applied to an electronic device having a retractable display screen. The electronic device includes a distance detection module. It is to be appreciated that the method 500 is applicable to the scenario illustrated in fig. 1 and 2. As shown in fig. 5, the method 500 includes:
s501, detecting a first instruction, wherein the first instruction is used for indicating the display screen to move.
The first instruction may instruct the retractable display of the electronic device to move in a forward direction or instruct the retractable display of the electronic device to move in a reverse direction. The forward direction is understood to mean the direction in which the display screen stretches. The reverse direction is understood to be the direction in which the display screen is contracted.
Optionally, as an embodiment, the first instruction is configured to instruct the display to move, and specifically includes: the first instruction is used for indicating the display screen to move towards the stretching direction of the display screen, wherein the size of the stretched display screen is larger than that of the display screen before stretching. For example, when the display area of the display screen changes from the area shown in fig. 1 (1) or fig. 1 (2) to the display area shown in fig. 1 (3), the process of stretching the display screen is the process. In this embodiment, the first instruction may also be referred to as a stretch instruction.
Optionally, as an embodiment, the first instruction is configured to instruct the display to move, and specifically includes: the first instruction is used for indicating the display screen to move towards the shrinkage direction of the display screen, wherein the size of the display screen after shrinkage is smaller than that of the display screen before shrinkage. For example, when the display area of the display screen changes from the area shown in (2) in fig. 1 to the area shown in (1) in fig. 1, the process of shrinking the display screen is the process. In this embodiment, the first instruction may also be referred to as a shrink instruction.
The triggering form of the first instruction may be various, including but not limited to hardware triggering and/or software triggering, and the embodiment of the application is not limited in particular.
In one implementation, the first instruction may be user-actuated by a key. For example, a function key may be provided on the electronic device, and the first instruction is triggered when the user presses the key.
In another implementation, the first instruction may be triggered by a user operating a control in the electronic device. For example, clicking on a control in an application.
Alternatively, the first instruction may be an instruction for controlling movement of the mobile module. For example, assuming that the mobile module is driven by a motor, the first command may be a Pulse Width Modulation (PWM) signal for controlling the rotation of the motor.
S502, obtaining a distance parameter through a distance detection module, wherein the distance parameter is used for representing the moving distance of the display screen.
In one implementation, the distance detection module is a laser focusing module. For example, the setting position of the laser focusing module may be as shown in fig. 2 (2). Other implementations of the distance detection module may refer to the foregoing descriptions, and are not described herein.
It will be appreciated that the laser focusing module is only exemplary and the present application is not limited thereto. The laser focusing module can also be replaced by a sensor or a module with the same function. For example, the laser focusing module may be used to detect the distance moved by the display screen, and then the laser focusing module may be replaced with a sensor for detecting the distance moved by the display screen.
Specifically, the distance moved by the display screen can be measured by the distance detection module. The distance the display moves includes the distance the display stretches, or the distance the display contracts.
The distance that the display screen moves specifically includes: the relative distance between the initial position of the display screen and the current position of the display screen. For example, if the display screen is stretched, the distance refers to the distance between the initial position of the display screen and the position of the display screen after the stretching; if the display screen is contracted, the distance refers to the distance between the initial position of the display screen and the position of the display screen after the contraction movement.
It can be understood that the distance parameter may directly represent the distance that the display screen moves, or may indirectly represent the distance that the display screen moves, which is not specifically limited in the embodiment of the present application. For example, the distance parameter may be a specific distance value, i.e. a distance directly reflecting the movement of the display screen. For another example, the distance parameter may record a position of the display screen after moving, and when the distance parameter is transmitted to the processor, the processor may calculate a distance of the display screen moving based on the distance parameter.
Optionally, the distance detection module may transmit a distance parameter (including distance data) to the processor of the electronic device after measuring the distance moved by the display screen, so that the processor may further analyze the distance parameter.
Alternatively, the distance detection module may be connected to the processor of the electronic device through a connector (for example, a connection principle as shown in (3) of fig. 2) for data transmission.
In one implementation, the distance detection module transmits the distance parameter to a processor of the electronic device via an I2C bus.
The detection timing of the distance detection module is not particularly limited in the embodiment of the application. For example, the distance detection module may detect the distance moved by the display screen in real time. For another example, the distance detection module may detect a distance moved by the display screen after the display screen is moved. For another example, the distance detection module may detect the moving distance of the display screen in real time after detecting the first instruction.
S503, determining whether the distance parameter meets a first preset condition.
The first preset condition is introduced for determining whether the display screen can be moved based on the distance parameter.
Alternatively, the first preset condition may be determined by a distance threshold. There may be different situations where the distance parameter satisfies the first preset condition based on the specific content indicated by the first instruction.
For example, the satisfaction of the distance parameter to the first preset condition may include: the distance parameter is greater than a set threshold. For another example, the satisfaction of the distance parameter with the first preset condition may include: the distance parameter is less than a set threshold.
For another example, the satisfaction of the distance parameter with the first preset condition may include: the distance parameter is located in a certain distance interval.
It should be understood that the above description about the first preset condition is only an exemplary description, and the embodiments of the present application are not limited thereto.
S504, responding to the first instruction, and controlling the display screen to move when the distance parameter meets a first preset condition; and when the distance parameter does not meet the first preset condition, controlling the display screen to stop moving.
In the embodiment of the application, the distance parameter is acquired through the distance detection module, the distance of the movement of the display screen is obtained, and then whether the display screen moves is determined by judging whether the distance of the movement of the display screen meets a first preset condition. And if the distance parameter meets the first preset condition, controlling the display screen to move, and if the distance parameter does not meet the first preset condition, controlling the display screen to stop moving. The screen movement method can effectively control the screen movement state of the screen scrolling electronic device.
For a roll screen electronic device, the display screen may be moved forward or backward based on movement instructions. According to the embodiment of the application, the distance parameters can be acquired in real time in the moving process of the display screen, so that reasonable movement of the display screen is controlled. Detailed embodiments are described below.
Optionally, as an embodiment, the first instruction is used to instruct the display to move towards the stretching direction of the display. At this time, the distance parameter satisfies a first preset condition, including: the distance parameter is less than a first distance threshold.
That is, if the distance parameter is determined to be smaller than the first distance threshold, which indicates that the current display screen has not reached the state in which the display screen is fully unfolded, the display screen may further move in a stretching manner, and then the display screen may be controlled to move in a stretching direction or in a forward direction.
It will be appreciated that in this embodiment, the first instruction may also be referred to as a forward move instruction, or a stretch instruction, or the like. The naming of the first instruction in the embodiment of the present application is not specifically limited.
Alternatively, the first distance threshold may be determined based on a fully extended state of the display screen. When the display screen is fully unfolded, the distance between the initial position of the display screen when the display screen is not unfolded and the position of the display screen when the display screen is fully unfolded can be used as the value of the first distance threshold. In addition, in the specific implementation, a gap between the distance detection module and the housing frame of the electronic device may be considered, and a distance between a position where the distance detection module is located when the display screen is in an initial state when the display screen is not unfolded and a position where the housing frame of the electronic device is located when the display screen is completely unfolded may be used as the first distance threshold. For example, the first distance threshold may be the distance B shown in (2) of fig. 2.
It should be understood that the manner in which the first distance threshold is determined is merely an exemplary description, and embodiments of the present application are not specifically limited.
In another implementation, the first instruction is for instructing the display to move in a direction in which the display is contracted. At this time, the distance parameter satisfies a first preset condition, including: the distance parameter is greater than a second distance threshold.
That is, if the distance parameter is determined to be greater than the second distance threshold, which indicates that the current display screen has not reached the state in which the display screen is not expanded, the display screen may further continue to shrink, and then the display screen may be controlled to move in the shrinking direction or move in the opposite direction.
It will be appreciated that in this embodiment, the first instruction may also be referred to as a reverse move instruction, or a shrink instruction, or the like. The naming of the first instruction in the embodiment of the present application is not specifically limited.
Alternatively, the second distance threshold may be determined based on an undeployed state of the display screen. For example, when the display screen is not unfolded, a gap between the distance detection module and the housing frame of the electronic device may be considered, and a distance between a position where the distance detection module is located when the display screen is in an initial state when the display screen is not unfolded and a position where the housing frame of the electronic device is located when the display screen is not unfolded may be used as the second distance threshold. Or a gap between the distance detection module and a shell frame of the electronic device is used as a second distance threshold value. For example, the second distance threshold may be the distance a shown in fig. 2 (2).
It should be appreciated that the manner in which the second distance threshold is determined is merely an exemplary description, and embodiments of the present application are not specifically limited.
In the moving process of the display screen, whether a stopping instruction is received or not can be detected in real time, so that the stopping operation behavior of the user on the display screen can be responded at any time.
Optionally, during the moving of the display screen, the method further comprises:
detecting a second instruction, wherein the second instruction is used for indicating the display screen to stop moving;
and responding to the second instruction, and controlling the display screen to stop moving.
The second instruction may be understood as a display screen stop movement instruction. It will be appreciated that the second instruction described above applies whether the display screen is moved in tension or in contraction.
For example, when the display screen is moving in the stretching direction, if the second instruction is received, the display screen stops the stretching movement. When the display screen is moving towards the shrinking direction, if the second instruction is received, the display screen stops shrinking movement.
The triggering form of the second instruction may be various, including but not limited to hardware triggering and/or software triggering, and the embodiment of the application is not limited in particular.
In one implementation, the second instruction may be user-triggered by a key. For example, a key may be provided on the electronic device, and the second instruction is triggered when the user presses the key.
In another implementation, the second instruction may be triggered by a user operating a control in the electronic device. For example, clicking on a control in an application.
Therefore, in the moving process of the display screen, the user can also respond to the stopping instruction of the user to stop moving the display screen, and the control experience of the user on the display screen is improved.
In this application embodiment, after the display screen stops moving, can learn the size of display screen according to the distance that the display screen moved, then carries out corresponding adaptation through the software mode for the content that the display screen shows to obtain the display effect that is full of technological sense, promote the display effect of rolling up the screen.
For ease of understanding, the following description is provided in connection with the logic flow in FIG. 6. As shown in fig. 6, includes:
and step 1, judging whether a forward movement instruction is detected.
For example, the forward move instruction may correspond to the first instruction of the foregoing. The first instruction is specifically used for indicating the display screen to move towards the stretching direction of the display screen.
If a forward movement instruction is detected, executing step 2; if no forward movement instruction is detected, step 9 is performed.
Specifically, after the forward movement instruction is detected, the distance parameter can be acquired through the distance detection module, and then further judgment is made based on the distance parameter.
And step 2, judging whether the distance parameter is smaller than a first distance threshold value.
If the distance parameter is smaller than the first distance threshold value, executing the step 3; if the distance parameter is not less than the first distance threshold, step 9 is performed. The description of the first distance threshold may refer to the foregoing, and for brevity, will not be repeated here. Therefore, when the first distance threshold is judged to be reached, the display screen can automatically stop moving, or automatically execute a stop instruction, so that invalid movement of the display screen is avoided, and the terminal power consumption is saved.
And 3, forward moving the display screen. Forward movement is the movement referred to above in the direction of stretching the display screen.
Step 4, judging whether a stop instruction (corresponding to the second instruction) is detected. The stop instruction is used for indicating the display screen to stop moving.
If a stop instruction is detected, executing step 9; if no stop instruction is detected, step 2 is performed.
And 5, judging whether a reverse movement instruction is detected.
For example, the reverse move instruction may correspond to the first instruction of the foregoing. The first instruction is specifically used for indicating the display screen to move towards the shrinkage direction of the display screen.
If a reverse movement instruction is detected, executing step 6; if no reverse movement instruction is detected, step 9 is performed.
Specifically, after the reverse movement instruction is detected, the distance parameter can be acquired through the distance detection module, and then further judgment is made based on the distance parameter.
And step 6, judging whether the distance parameter is larger than a second distance threshold value.
If the distance parameter is greater than the second distance threshold, executing step 7; if the distance parameter is not greater than the second distance threshold, step 9 is performed. Therefore, when the second distance threshold is judged to be reached, the display screen can automatically stop moving, or automatically execute a stop instruction, so that invalid movement of the display screen is avoided, and the terminal power consumption is saved.
And 7, reversely moving the display screen. Reverse movement is the aforementioned movement towards the display screen contraction.
Step 8, judging whether a stop instruction (corresponding to the second instruction). The stop instruction is used for indicating the display screen to stop moving. If a stop instruction is detected, executing step 9; if no stop instruction is detected, step 6 is performed.
And 9, stopping moving the display screen.
It should be understood that the specific flow shown in fig. 6 is merely for ease of understanding by those skilled in the art, and embodiments of the present application are not limited thereto.
According to the screen movement method, the distance parameter is obtained through the distance detection module, whether the distance parameter meets the first preset condition is judged, whether the display screen moves is determined, and the screen movement state of the screen scrolling electronic device can be effectively controlled.
The above description is provided with reference to fig. 1 to 6, which are a method for moving a screen according to an embodiment of the present application. An embodiment of the apparatus of the present application is described below in conjunction with fig. 7 and 8. It should be understood that the apparatus for moving a screen according to the embodiments of the present application may perform the embodiments of the methods for moving a screen according to the embodiments of the present application, that is, the following specific working processes of various products may refer to the corresponding processes in the embodiments of the methods.
Fig. 7 is a schematic block diagram of an apparatus 700 of an embodiment of the present application. As shown in fig. 7, the apparatus 700 includes: the processing module 710, the distance detection module 720.
It should be appreciated that the apparatus 700 may perform the method of screen movement shown in fig. 5 and 6. In one possible example, the apparatus 700 may be a terminal device.
In one possible example, the processing module 710 is configured to detect a first instruction, where the first instruction is configured to instruct the display to move;
The processing module 710 is further configured to obtain, by using the distance detection module 720, a distance parameter, where the distance parameter is used to characterize a distance of movement of the display screen;
the processing module 710 is further configured to determine whether the distance parameter meets a first preset condition;
the processing module 710 is further configured to control, in response to the first instruction, movement of a display screen when the distance parameter meets the first preset condition; and when the distance parameter does not meet the first preset condition, controlling the display screen to stop moving.
Optionally, as a possible implementation manner, the processing module 710 is further configured to detect, during the movement of the display screen, a second instruction, where the second instruction is used to instruct the display screen to stop moving; and responding to the second instruction, and controlling the display screen to stop moving.
Optionally, as a possible implementation manner, the first instruction is used to instruct the display screen to move towards the stretching direction of the display screen, where the size of the stretched display screen is larger than the size of the display screen before stretching;
the distance parameter satisfies a first preset condition, including: the distance parameter is less than a first distance threshold;
Wherein the processing module 710 is configured to control the display screen to move, including: and controlling the stretching of the display screen.
Optionally, as a possible implementation manner, the first instruction is used to instruct the display screen to move towards a direction of shrinking the display screen, where a size of the display screen after shrinking is smaller than a size of the display screen before shrinking;
the distance parameter satisfies a first preset condition, including: the distance parameter is greater than a second distance threshold;
wherein the processing module 710 is configured to control the display screen to move, including: and controlling the display screen to shrink.
Optionally, as a possible implementation manner, the distance detection module is a laser focusing module.
It should be appreciated that the apparatus 700 described above is embodied in the form of functional modules. The term "module" herein may be implemented in software and/or hardware, and embodiments of the present application are not specifically limited thereto.
For example, a "module" may be a software program, a hardware circuit, or a combination of both that implements the functionality described above. The hardware circuitry may include (ASIC) application specific integrated circuits, electronic circuits, processors (e.g., shared, dedicated, or group processors, etc.) and memory that execute one or more software or firmware programs, integrated logic circuits, and/or other suitable devices that provide the above described functionality. In a simple embodiment, one skilled in the art will recognize that the apparatus 700 may take the form shown in FIG. 4. For example, the processing unit 710 is implemented by a display screen movement decision module; the distance detection module 720 is implemented by a distance detection driver.
Fig. 8 is a schematic block diagram of an electronic device 800 according to an embodiment of the present application. As shown in fig. 8, the apparatus 800 includes one or more of the following: processor 810, retractable display 820, and distance detection module 830.
In some possible implementations, the processor 810 is configured to detect a first instruction that is configured to instruct the retractable display screen 820 to move;
the distance detection module 830 is configured to detect a distance parameter, where the distance parameter is used to characterize a distance that the retractable display screen 820 moves;
the processor 810 is further configured to determine whether the distance parameter satisfies a first preset condition; controlling the movement of the retractable display screen 820 when the distance parameter satisfies the first preset condition in response to the first instruction; and when the distance parameter does not meet the first preset condition, controlling the telescopic display screen 820 to stop moving.
Optionally, as a possible implementation manner, the distance detection module 830 is a laser focusing module, and the laser focusing module performs data transmission with the processor 810 through a connector.
The retractable display screen 820 is used to receive touch operations by a user on or near any suitable object, such as a finger, stylus, etc., and to display a user interface for each application. The retractable display 820 is typically disposed on the front panel of the electronic device 800. In the embodiment of the present application, the size of the exposed display area of the retractable display screen 820 can be changed according to the retractable operation.
Optionally, the electronic device 800 further comprises a memory 840. The Memory 840 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (ROM). Optionally, the memory 840 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). Memory 840 may be used to store instructions, programs, code sets, or instruction sets. The memory 840 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described below, etc.; the storage data area may store data (e.g., audio data, phonebook) created according to the use of the electronic device 800, etc.
Optionally, the electronic device 800 further includes a driving structure for driving the retractable display screen 820 to retract or extend.
In addition, those skilled in the art will appreciate that the configuration of the electronic device 800 illustrated in the above-described figures does not constitute a limitation of the electronic device 800, and that a terminal may include more or less components than illustrated, or may combine certain components, or may have a different arrangement of components. For example, the electronic device 800 further includes a radio frequency circuit, a shooting component, a sensor, an audio circuit, a wireless fidelity (Wireless Fidelity, wiFi) component, a power supply, a bluetooth component, and the like, which are not described herein.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The present application also provides a computer program product which, when executed by a processor, implements the method of any of the method embodiments of the present application.
The computer program product may be stored in a memory and eventually converted to an executable object file that can be executed by a processor through preprocessing, compiling, assembling, and linking.
The present application also provides a computer readable storage medium having stored thereon a computer program which, when executed by a computer, implements a method according to any of the method embodiments of the present application. The computer program may be a high-level language program or an executable object program.
The computer readable storage medium may be volatile memory or nonvolatile memory, or may include both volatile memory and nonvolatile memory. The nonvolatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an electrically Erasable EPROM (EEPROM), or a flash memory. The volatile memory may be random access memory (random access memory, RAM) which acts as an external cache. By way of example, and not limitation, many forms of RAM are available, such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous DRAM (SLDRAM), and direct memory bus RAM (DR RAM).
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It should be understood that, in various embodiments of the present application, the size of the sequence number of each process does not mean that the execution sequence of each process should be determined by its functions and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
In addition, the terms "system" and "network" are often used interchangeably herein. The term "and/or" herein is merely one association relationship describing the associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship. For example, A/B may represent A or B.
The terms "first," "second," … and the like in the embodiments of the present application are used for descriptive purposes only and are not to be construed as indicating or implying any particular importance or number of features indicated, for example, for distinguishing between different objects such as different "instructions" and the like. Thus, features defining "first", "second", …, etc., may include one or more features, either explicitly or implicitly. In the description of the embodiments of the present application, "at least one (an item)" means one or more. The meaning of "plurality" is two or more. "at least one of (an) or the like" below means any combination of these items, including any combination of a single (an) or a plurality (an) of items.
For example, items appearing similar to "in embodiments of the present application include at least one of: the meaning of the expressions a, B, and C "generally means that the item may be any one of the following unless otherwise specified: a, A is as follows; b, a step of preparing a composite material; c, performing operation; a and B; a and C; b and C; a, B and C; a and A; a, A and A; a, A and B; a, a and C, a, B and B; a, C and C; b and B, B and C, C and C; c, C and C, and other combinations of a, B and C. The above is an optional entry for the item exemplified by 3 elements a, B and C, when expressed as "the item includes at least one of the following: a, B, … …, and X ", i.e. when there are more elements in the expression, then the entry to which the item is applicable can also be obtained according to the rules described above.
In summary, the foregoing description is only a preferred embodiment of the technical solution of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims (6)
1. A method of screen movement, the method being applied to an electronic device having a retractable display screen, the electronic device including a distance detection module, the method comprising:
Detecting a first instruction, wherein the first instruction is used for indicating the display screen to move, and the first instruction is triggered by a key;
acquiring a distance parameter through the distance detection module, wherein the distance parameter is used for representing the moving distance of the display screen;
determining whether the distance parameter meets a first preset condition;
responding to the first instruction, and controlling the display screen to move when the distance parameter meets the first preset condition;
when the distance parameter does not meet the first preset condition, controlling the display screen to stop moving;
if the first instruction is used for indicating the display screen to move towards the shrinkage direction of the display screen, the size of the display screen after shrinkage is smaller than that of the display screen before shrinkage; the distance parameter satisfies a first preset condition, including: the distance parameter is greater than a second distance threshold; wherein controlling the movement of the display screen comprises: controlling the display screen to shrink; the second distance threshold is a distance between a position where the laser focusing module is located when the display screen is not unfolded and a position where a shell frame of the electronic equipment is located when the display screen is not unfolded;
If the first instruction is used for indicating that the display screen moves towards the stretching direction of the display screen, wherein the size of the stretched display screen is larger than the size of the display screen before stretching, and the distance parameter meets a first preset condition, including: the distance parameter is less than a first distance threshold; wherein, control the display screen to move includes: controlling the stretching of the display screen; the first distance threshold is the distance between the position of the laser focusing module when the display screen is in an initial state when the display screen is not unfolded and the position of the shell frame of the electronic equipment when the display screen is completely unfolded;
the distance detection module is a laser focusing module; the laser focusing module is placed at a position, close to the moving module, in the electronic equipment through the flexible circuit board so as to detect the moving distance of the display screen; the mobile module is used for driving the display screen to move; the laser focusing module is used for focusing the light emitted by the laser focusing module, and the light emitted by the laser focusing module is aligned to the moving module and is kept from being blocked; the distance parameter is calculated according to a time difference, and the time difference refers to the time difference between the light rays emitted by the laser focusing module to the mobile module and the reflected light rays;
The laser focusing module is used for carrying out data transmission with the processor of the electronic equipment through a connector, and the processor of the electronic equipment is connected with the connector through a bus; the laser focusing module comprises an interrupt passage, an enabling passage, a serial data line passage and a serial clock line passage, wherein the interrupt passage, the enabling passage, the serial data line passage and the serial clock line passage are arranged between the laser focusing module and a processor of the electronic equipment.
2. The method of claim 1, wherein during movement of the display screen, the method further comprises:
detecting a second instruction, wherein the second instruction is used for indicating the display screen to stop moving;
and responding to the second instruction, and controlling the display screen to stop moving.
3. An electronic device, comprising:
the device comprises a telescopic display screen, a distance detection module and a processor;
the processor is used for detecting a first instruction, the first instruction is used for indicating the display screen to move, and the first instruction is triggered by a key;
the distance detection module is used for detecting a distance parameter, and the distance parameter is used for representing the moving distance of the telescopic display screen;
the processor is further configured to determine whether the distance parameter meets a first preset condition; responding to the first instruction, and controlling the display screen to move when the distance parameter meets the first preset condition; when the distance parameter does not meet the first preset condition, controlling the display screen to stop moving;
The first instruction is used for indicating the display screen to move towards the shrinkage direction of the display screen, wherein the size of the display screen after shrinkage is smaller than that of the display screen before shrinkage; the distance parameter satisfies a first preset condition, including: the distance parameter is greater than a second distance threshold; wherein controlling the movement of the display screen comprises: controlling the display screen to shrink; the second distance threshold is a distance between a position where the laser focusing module is located when the display screen is not unfolded and a position where a shell frame of the electronic equipment is located when the display screen is not unfolded;
if the first instruction is used for indicating that the display screen moves towards the stretching direction of the display screen, wherein the size of the stretched display screen is larger than the size of the display screen before stretching, and the distance parameter meets a first preset condition, including: the distance parameter is less than a first distance threshold; wherein, control the display screen to move includes: controlling the stretching of the display screen; the first distance threshold is the distance between the position of the laser focusing module when the display screen is in an initial state when the display screen is not unfolded and the position of the shell frame of the electronic equipment when the display screen is completely unfolded;
The distance detection module is a laser focusing module; the laser focusing module is placed at a position, close to the moving module, in the electronic equipment through the flexible circuit board so as to detect the moving distance of the display screen; the mobile module is used for driving the display screen to move;
the laser focusing module is used for focusing the light emitted by the laser focusing module, and the light emitted by the laser focusing module is aligned to the moving module and is kept from being blocked; the distance parameter is calculated according to a time difference, and the time difference refers to the time difference between the light rays emitted by the laser focusing module to the mobile module and the reflected light rays; the laser focusing module is in data transmission with the processor through a connector, and the processor of the electronic equipment is connected with the connector through a bus;
the laser focusing module comprises an interrupt passage, an enabling passage, a serial data line passage and a serial clock line passage, wherein the interrupt passage, the enabling passage, the serial data line passage and the serial clock line passage are arranged between the laser focusing module and a processor of the electronic equipment.
4. An electronic device comprising a processor and a memory, the processor and the memory being coupled, the memory being for storing a computer program that, when executed by the processor, causes the electronic device to perform the method of claim 1 or 2.
5. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when executed by a processor, causes the processor to perform the method of claim 1 or 2.
6. A chip comprising a processor which, when executing instructions, performs the method of claim 1 or 2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210751665.0A CN114816311B (en) | 2022-06-29 | 2022-06-29 | Screen movement method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210751665.0A CN114816311B (en) | 2022-06-29 | 2022-06-29 | Screen movement method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114816311A CN114816311A (en) | 2022-07-29 |
CN114816311B true CN114816311B (en) | 2024-04-12 |
Family
ID=82523216
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210751665.0A Active CN114816311B (en) | 2022-06-29 | 2022-06-29 | Screen movement method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114816311B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20100025360A (en) * | 2008-08-27 | 2010-03-09 | 엘지전자 주식회사 | Mobile terminal and operation control method thereof |
CN108900661A (en) * | 2018-06-08 | 2018-11-27 | Oppo广东移动通信有限公司 | Electronic equipment and its control method |
CN111104086A (en) * | 2019-11-19 | 2020-05-05 | 维沃移动通信有限公司 | Display method and electronic equipment |
CN111835892A (en) * | 2019-04-22 | 2020-10-27 | 北京小米移动软件有限公司 | Electronic device and control method |
CN112887486A (en) * | 2021-01-28 | 2021-06-01 | 维沃移动通信有限公司 | Leading sound control method and device of electronic equipment |
CN113726947A (en) * | 2020-05-26 | 2021-11-30 | Oppo广东移动通信有限公司 | Voice communication method, device, terminal and storage medium |
CN113807047A (en) * | 2020-05-28 | 2021-12-17 | Oppo广东移动通信有限公司 | Information display method, device, terminal and storage medium |
CN113824818A (en) * | 2020-06-16 | 2021-12-21 | Oppo广东移动通信有限公司 | Device control method, device, storage medium and electronic device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR102359550B1 (en) * | 2015-08-26 | 2022-02-08 | 엘지전자 주식회사 | Flexible display device and operating method thereof |
-
2022
- 2022-06-29 CN CN202210751665.0A patent/CN114816311B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20100025360A (en) * | 2008-08-27 | 2010-03-09 | 엘지전자 주식회사 | Mobile terminal and operation control method thereof |
CN108900661A (en) * | 2018-06-08 | 2018-11-27 | Oppo广东移动通信有限公司 | Electronic equipment and its control method |
CN111835892A (en) * | 2019-04-22 | 2020-10-27 | 北京小米移动软件有限公司 | Electronic device and control method |
CN111104086A (en) * | 2019-11-19 | 2020-05-05 | 维沃移动通信有限公司 | Display method and electronic equipment |
CN113726947A (en) * | 2020-05-26 | 2021-11-30 | Oppo广东移动通信有限公司 | Voice communication method, device, terminal and storage medium |
CN113807047A (en) * | 2020-05-28 | 2021-12-17 | Oppo广东移动通信有限公司 | Information display method, device, terminal and storage medium |
CN113824818A (en) * | 2020-06-16 | 2021-12-21 | Oppo广东移动通信有限公司 | Device control method, device, storage medium and electronic device |
CN112887486A (en) * | 2021-01-28 | 2021-06-01 | 维沃移动通信有限公司 | Leading sound control method and device of electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN114816311A (en) | 2022-07-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109814766B (en) | Application display method and electronic equipment | |
CN109559270B (en) | Image processing method and electronic equipment | |
CN112114912A (en) | User interface layout method and electronic equipment | |
CN110839128B (en) | Photographing behavior detection method and device and storage medium | |
CN112214294B (en) | Method for calling hardware interface and electronic equipment | |
US20230351570A1 (en) | Image processing method and apparatus | |
WO2021052035A1 (en) | Display method for side region of screen, and electronic apparatus | |
CN116826892B (en) | Charging method, charging device, electronic apparatus, and readable storage medium | |
CN114422686A (en) | Parameter adjusting method and related device | |
CN113867657A (en) | Cross-device desktop management method, first electronic device and second electronic device | |
WO2023098208A1 (en) | Method and device for preventing mistaken touch | |
CN115580690B (en) | Image processing method and electronic equipment | |
CN115022527B (en) | Method for starting cooperative function and electronic equipment | |
CN114816311B (en) | Screen movement method and device | |
CN115032640A (en) | Gesture recognition method and terminal equipment | |
CN116668581B (en) | Method and device for preventing false touch | |
CN116684725B (en) | Layout method and device of application interface, electronic equipment, storage medium and chip | |
CN113821153B (en) | Gesture navigation method, electronic device and readable storage medium | |
CN116688494B (en) | Method and electronic device for generating game prediction frame | |
CN116672707B (en) | Method and electronic device for generating game prediction frame | |
CN112770002B (en) | Heartbeat control method and electronic equipment | |
WO2022022381A1 (en) | Method and apparatus for generating graffiti patterns, electronic device, and storage medium | |
CN118484252A (en) | Equipment control method, electronic equipment and storage medium | |
CN114764299A (en) | Display method and electronic equipment | |
CN118363691A (en) | Window management method and electronic device |
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 |