CN114816311A - Screen moving method and device - Google Patents

Screen moving method and device Download PDF

Info

Publication number
CN114816311A
CN114816311A CN202210751665.0A CN202210751665A CN114816311A CN 114816311 A CN114816311 A CN 114816311A CN 202210751665 A CN202210751665 A CN 202210751665A CN 114816311 A CN114816311 A CN 114816311A
Authority
CN
China
Prior art keywords
display screen
distance
instruction
distance parameter
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210751665.0A
Other languages
Chinese (zh)
Other versions
CN114816311B (en
Inventor
李岩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202210751665.0A priority Critical patent/CN114816311B/en
Publication of CN114816311A publication Critical patent/CN114816311A/en
Application granted granted Critical
Publication of CN114816311B publication Critical patent/CN114816311B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/147Digital 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 method and a device for screen movement 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 a 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 rolling screen electronic equipment can be effectively controlled.

Description

Screen moving method and device
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a method and an apparatus for screen movement.
Background
Along with the rapid development of the intelligent terminal, the user experience on the terminal is improved. For the intelligent terminal, the experience of the user can be obviously improved by the large screen. Generally speaking, a large screen terminal is large in size and not beneficial to carrying by a user.
The advent of flexible screens has made possible the development of large portable screens. The flexible screen includes a screen type such as a flexible light-emitting diode (OLED). By applying the flexible screen to the intelligent terminal, the flexibility and the portability of the intelligent terminal are higher. Currently, some manufacturers have applied flexible screens to mobile phones, such as reel screen terminals. However, there is no effective solution for controlling the screen movement of the scroll screen terminal.
Disclosure of Invention
In view of this, the present application provides a method and an apparatus for screen movement, an electronic device, a computer-readable storage medium, and a computer program product, which can effectively control movement of a display screen and greatly improve user experience of a scroll terminal.
In a first aspect, a method for screen movement is provided, where the method is applied to an electronic device having a retractable display screen, the electronic device includes a distance detection module, and the method includes:
detecting a first instruction, wherein the first instruction is used for indicating a display screen to move;
obtaining 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 method can be executed by the terminal equipment or a chip in the terminal equipment. Based on the scheme, the distance parameter is obtained through the distance detection module, the moving distance of the display screen is obtained, and then whether the display screen moves or not is determined by judging whether the moving distance of the display screen meets a first preset condition or not. And if the distance parameter does not meet the first preset condition, controlling the display screen to stop moving. The method for screen movement can effectively control the screen movement state of the rolling screen electronic equipment.
In one possible implementation manner, during the movement 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 controlling the display screen to stop moving in response to the second instruction.
Therefore, in the process of moving the display screen, the user can also respond to the stop 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 instructing the display screen to move towards the stretching direction of the display screen, wherein the size of the display screen after stretching is larger than that 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, control the display screen and remove, include: and controlling the display screen to stretch.
Therefore, the display screen is controlled to move towards the stretching direction or move forwards through the first instruction, and the use experience of a user on the scroll screen is improved. In addition, the stretching distance of the display screen can be restrained through the first distance threshold, so that invalid movement is avoided, and power consumption is saved.
In one possible implementation manner, the first instruction is used for instructing the display screen to move towards the direction of shrinking the display screen, wherein the size of the display screen after shrinking is smaller than that 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, control the display screen and remove, include: and controlling the display screen to shrink.
Therefore, the display screen is controlled to move towards the shrinking direction or move reversely through the first instruction, and the use experience of a user on the scroll screen is improved. In addition, the shrinking distance of the display screen can be restrained through the second distance threshold, so that 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 apparatus may be a terminal (or terminal device), or may be a chip in the terminal (or 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 focus 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 a terminal, the processing unit may be a logic processing unit inside the chip, the input unit may be an output interface, a pin, a circuit, or the like, and the display unit may be a graphic processing unit inside the chip; the chip may also include a memory, which may be a memory within the chip (e.g., registers, cache, etc.) or a memory external to the chip (e.g., read-only memory, random access memory, etc.); the memory is adapted to store 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, including: the system 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 satisfies 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 a possible implementation manner, 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 having computer program code stored thereon which, when run by an apparatus for screen movement, 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-moving apparatus, causes the apparatus to perform any one of the methods of the first aspect.
Drawings
FIG. 1 is an exemplary diagram of a screen display area of an embodiment of the present application;
fig. 2 is a partial configuration diagram of a terminal having a retractable display screen;
FIG. 3 is a schematic diagram of a hardware system suitable for use in 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 diagram of a method of screen movement of an embodiment of the present application;
FIG. 6 is a flowchart illustrating 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 configuration example of an electronic apparatus according to an 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 screen movement provided by the embodiment of the application 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 player, an e-book reader, a personal computer, a Personal Digital Assistant (PDA), a smart watch, and the like. The specific form of the electronic device is not limited in this application.
The flexible display screen of the electronic device of the embodiment of the application can be telescopic. The retractable display screen may also be referred to as a scroll screen (or scroll screen) configuration. The state of the scroll screen generally includes three modes: and three screen adjusting modes of non-unfolding, partial unfolding and full unfolding. Based on the three modes, the display screen of the electronic device with the scroll screen also has a corresponding screen display area. This is described below in connection with the example of fig. 1.
FIG. 1 shows a schematic diagram of a screen display area according to an embodiment of the application. Taking the electronic device as an example of a terminal, for a scroll terminal, the area of the display screen of the terminal may include 3 states shown in fig. 1. In the state that the display screen of the scroll terminal is not unfolded, the exposed area of the terminal screen may be the display area 10 shown in (1) in fig. 1. In the partially unfolded state of the display screen of the scroll terminal, the exposed area of the terminal screen may be as shown in (2) of fig. 1 as a display area 11. The area of the display region 11 is larger than the area of the display region 10. In the fully unfolded state of the display screen of the scroll terminal, the exposed area of the terminal screen may be the display area 12 shown in (3) of fig. 1. The area of the display region 12 is larger than the area of the display region 11.
It is understood that the size of the fully extended display (such as the size of the display area 12) may depend on the product implementation, and the embodiment of the present application is not particularly limited.
It should be understood that the display screen shown in fig. 1 in the non-unfolded, partially unfolded and fully unfolded states is only an exemplary description, and the embodiments of the present application are not limited thereto.
It should also be understood that the scenario in fig. 1 is only an application scenario of the present application, which is not limited to the embodiment of the present application.
In this embodiment of the application, for the above scroll terminal, the movement of the display screen may be implemented by setting a corresponding movement component, and the distance moved by the display screen may be detected by the distance detection module. The following is described in connection with a part of the structure shown in fig. 2.
Fig. 2 is a schematic diagram showing a partial structure of a terminal having a retractable display screen. 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 capable of relative movement. The display area of the flexible display 23 can be changed by relative movement between the housing 21 and the housing 22. The relative movement between the housing 21 and the housing 22 can be achieved by providing a moving module (not shown in fig. 2).
For example, the display area of the flexible display 23 may be in 3 states as shown in fig. 1.
The embodiment of the present application does not limit the specific form of the mobile module. Alternatively, the moving module may be implemented by a mechanical assembly. For example, the moving module may be a scroll structure, and the display screen may be driven to stretch or contract by rotating the scroll structure. Alternatively, the movement of the moving module may be achieved by a driving structure, for example, the moving module is driven by a stepping motor.
It is understood that only some components of the terminal are shown in fig. 2, and the embodiments of the present application are not limited thereto. In fact, the terminal may also include other components, such as a camera. Optionally, a camera may also 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 a distance detection module in the terminal. The embodiment of the application does not limit the specific form of the distance detection module, 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. As 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 is understood that the example of the distance detection module is merely an exemplary description, and the embodiments of the present application are not limited thereto, and the distance detection module may also be another form of distance meter.
Taking the laser focusing module as an example, the working principle of the laser focusing module is as follows: the distance between the target surface and the laser focus module is calculated by emitting infrared light toward the target surface and measuring the time difference of the reflected light.
Alternatively, the distance detection module is described as a laser focusing module in fig. 2. Fig. 2 (2) shows a structural example diagram of the laser focusing module set in the terminal. As shown in (2) of fig. 2, a processor 4 (such as a CPU) of the terminal is provided in a substrate (or a motherboard). For example, the substrate may be a Printed Circuit Board (PCB). Processor 4 and connector 3 may be connected via 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 the embodiment of the application, as long as the moving distance of the display screen can be detected. For example, the laser focusing module 1 may be placed at a position close to the mobile module in the middle of the terminal through a Flexible Printed Circuit (FPC) 2. The light emitted by the laser focusing module 1 can be aligned with the moving module, and the emitted light is kept from being shielded by other objects.
The position of the mobile module is not particularly limited in the embodiment of the application. The mobile module can drive the display screen to move. The moving 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 motor-driven, that is, the driving device is moved by a motor-driven moving module.
As shown in (2) in fig. 2, the flexible circuit board 2 is connected with a connector 3, that is, the flexible circuit board 2 can be connected with a main board through the connector 3. The embodiment of the present application does not specifically limit the type of the connector 3. For example, the connector 3 connected to the flexible circuit board 2 may be a Board To Board (BTB) connector or a flip chip connector.
The VDD 7 is used for supplying power to the laser focusing module 1. VDD 7 is connected to the connector 3. The VDD 7 may be connected to a Power Management Unit (PMU) 5 to supply power to the laser focusing module 1.
The power management unit 5 may be replaced by another power supply platform or another power supply form, 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 regulator (LDO).
As shown in (2) in fig. 2, when the display screen of the terminal is not unfolded, a 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, a 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 housing 22 is B. It can be understood that when the display screen of the terminal is partially unfolded, the distance between the laser focusing module 1 and the frame of the housing 22 is between a and B.
Fig. 2 (3) shows a schematic diagram of the connection of the distance detection module to the CPU. As shown in (3) of fig. 2, the distance detection module (e.g., the laser focusing module 1) performs data transmission with a CPU (e.g., the processor 4) through a connector (e.g., the connector 3). The distance detection module and the CPU include an INT interrupt path, an EN enable path, a Serial data line (SDA) path, a Serial Clock Line (SCL) path, and the like.
The SDA path and the SCL path are two paths of the I2C bus, both of which are bidirectional I/O lines. For the SDA path, the CPU is connected with the connector through an I2C _ SDA pin; the connector is connected with the distance detection module through an I2C _ SDA _ BTB pin. For an SCL path, the CPU is connected with the connector through an 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 for interrupt event processing. For an INT interrupt path, a CPU is connected with a connector through an INT pin; the connector is connected with the distance detection module through an INT _ BTB pin.
The EN enabling path is sent by the CPU, and enables the distance detection module to work. For an EN enabling path, the CPU is connected with the connector through an EN pin; the connector is connected with the distance detection module through an EN _ BTB pin.
VDD is the power supply unit of the distance detection module, and as mentioned above, the power supply unit may be the aforementioned 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 diagram shown in (3) in fig. 2 is only an exemplary description, and the embodiments of the present application are not limited thereto. Other connection diagrams can also be obtained by a person skilled in the art based on the above-described principle. And if the distance detection module adopts different forms, a 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 partial pin line, and the embodiments of the present application are not limited thereto.
According to the technical scheme, the distance measurement module measures the distance in real time to obtain the distance parameter, and judges whether the distance parameter meets a first preset condition or not to control whether the display screen moves or not, and the screen moving state of the rolling screen electronic equipment can be effectively controlled.
Fig. 3 shows a hardware system suitable for use in the electronic device of the present application.
The electronic device 100 may be a mobile phone, a smart screen, a tablet computer, a wearable electronic device, an in-vehicle electronic device, an Augmented Reality (AR) device, a Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), a projector, and the like, and the embodiment of the present application does not limit the specific type of the electronic device 100.
The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging 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, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identification Module (SIM) card interface 195, and the like. 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 is not intended to specifically limit the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than 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: an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and a neural Network Processor (NPU). The different processing units may be independent devices or integrated devices.
The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in 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 have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
The connection relationship between the modules shown in fig. 3 is only illustrative and does not limit the connection relationship between the modules of the electronic apparatus 100. Alternatively, the modules of the electronic device 100 may also adopt a combination of the connection manners in the above embodiments.
The electronic device 100 may implement display functionality through the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 may be used to display images or video. The display screen 194 includes a display panel. The display panel may adopt a 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 light-emitting diode (QLED). In some embodiments, the electronic device 100 may include 1 or N display screens 194, with N being a positive integer greater than 1. In the present embodiment, the display screen 194 is a flexible display screen, or a retractable display screen, or a scroll screen. In some embodiments, the expanded state of the display screen 194 may be 3 states as shown in FIG. 1.
The electronic device 100 may implement a photographing function through the ISP, the camera 193, the video codec, the GPU, the display screen 194, the application processor, and the like.
The ISP is used to process the data fed back by the camera 193. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can perform algorithm optimization on the noise, brightness and color of the image, and can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in 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 to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And 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, or the like format image signal. In some embodiments, the 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 digital image signals and other digital signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy.
The electronic device 100 may implement audio functions, such as music playing and recording, through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor.
The audio module 170 is used to convert digital audio information into an analog audio signal for 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 some functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also called a horn, is used to convert the audio electrical signal into a sound signal. The electronic apparatus 100 can listen to music or a handsfree call through the speaker 170A.
The receiver 170B, also called an earpiece, is used to convert the electrical audio signal into a sound signal. When the user answers a call or voice information using the electronic apparatus 100, the voice can be answered by placing the receiver 170B close to the ear.
The microphone 170C, also referred to as a microphone or microphone, is used to convert sound signals into electrical signals. When a user makes a call or sends voice information, a sound signal may be input into the microphone 170C by sounding near the microphone 170C.
The headphone interface 170D is used to connect a wired headphone. The headset interface 170D may be the USB interface 130, or may be an open mobile electronic device 100 platform (OMTP) standard interface of 3.5mm, a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used for sensing a pressure signal, and converting 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 a wide variety, and may be, for example, a resistive pressure sensor, an inductive pressure sensor, or a capacitive pressure sensor. The capacitive pressure sensor may be a sensor including at least two parallel plates having conductive materials, 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 is applied to the display screen 194, the electronic apparatus 100 detects the touch operation according to the pressure sensor 180A. The electronic apparatus 100 may also calculate the touched position from the detection signal of the pressure sensor 180A. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions. For example: when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message; and when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.
The gyro sensor 180B may be used to determine the motion attitude of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., the x-axis, y-axis, and z-axis) may be determined by gyroscope 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 a shake angle of the electronic device 100, calculates a distance to be compensated for by the lens module according to the shake angle, and allows the lens to counteract the shake of the electronic device 100 by a reverse movement, thereby achieving anti-shake. The gyro sensor 180B can also be used in 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, aiding in positioning and navigation, from barometric pressure values measured by barometric pressure sensor 180C.
The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip holster using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. The electronic device 100 can set the flip cover to be automatically unlocked according to the detected opening and closing state of the holster or the detected opening and closing state of the flip cover.
Acceleration sensor 180E may detect the magnitude of acceleration of electronic device 100 in various directions, typically the x-axis, y-axis, and z-axis. The magnitude and direction of gravity can be detected when the electronic device 100 is stationary. The acceleration sensor 180E may also be used to recognize the attitude of the electronic device 100 as an input parameter for applications such as horizontal and vertical screen switching and pedometers.
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 utilize the range sensor 180F to range for fast focus.
The proximity light sensor 180G may include, for example, a light-emitting diode (LED) and a photodetector, for example, a photodiode. The LED may be an infrared LED. The electronic apparatus 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 the reflected light is not detected, the electronic device 100 may determine that there is no object nearby. The electronic device 100 can detect whether the user holds the electronic device 100 close to the ear by using the proximity light sensor 180G, so as to automatically turn off the screen to save power. The proximity light sensor 180G may also be used for automatic unlocking and automatic screen locking in a holster mode or a pocket mode. It should be understood that the proximity light sensor 180G described in fig. 3 may be an optional component. In some scenarios, the proximity light may be detected with an ultrasonic sensor instead of the proximity light sensor 180G.
The ambient light sensor 180L is used to sense the ambient light level. Electronic device 100 may adaptively adjust the brightness of display screen 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches. In some embodiments, the ambient light information of the terminal may be detected by the ambient light sensor 180L.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 can utilize the collected fingerprint characteristics to implement functions such as unlocking, accessing an application lock, taking a picture, and answering an incoming call.
The touch sensor 180K is 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 referred to as a touch screen. The touch sensor 180K is used to detect a touch operation applied thereto or in the vicinity thereof. The touch sensor 180K may pass the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 194. In other embodiments, the touch sensor 180K may be disposed on a surface of the electronic device 100 and at a different location than the display screen 194.
The distance detection module 180N is used to detect the distance that the display screen 194 moves. For example, the distance detection module 180N may be a laser focusing module, and the related description thereof may refer to the description of fig. 2 above.
The keys 190 include a power-on key and a volume key. The keys 190 may be mechanical keys or touch keys. The electronic device 100 can receive the key input signal and implement the function related to the case input signal.
The motor 191 may generate vibrations. The motor 191 may be used for incoming call prompts as well as for touch feedback. The motor 191 may generate different vibration feedback effects for touch operations applied to different applications. The motor 191 may also produce different vibration feedback effects for touch operations applied to different areas of the display screen 194. Different application scenarios (e.g., time reminders, received messages, alarms, and games) 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 instructs the display screen 194 to move; the processor 110 may obtain, through the connector, a distance parameter detected by the distance detection module 180N, where the distance parameter is used to represent a distance that the display screen 194 moves; the processor 110 is further configured to determine whether the distance parameter satisfies 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 above in detail, and the software system of the electronic device 100 is described below. The software system may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture or a cloud architecture, and the embodiment of the present application takes the layered architecture as an example to exemplarily describe the software system of the electronic device 100.
As shown in fig. 4, the software system adopting the layered architecture is divided into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the software system may be divided into four layers, which are an application layer, an application framework layer, an Android Runtime (Android Runtime) and system library, and a kernel layer, from top to bottom, respectively.
The application layer may include applications such as camera, gallery, calendar, talk, map, navigation, WLAN, bluetooth, music, video, short message, etc.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application of the application layer. The application framework layer may include some predefined functions.
For example, the application framework layers include a window manager, a content provider, a view system, a phone manager, a resource manager, and a notification manager.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen and judge whether a status bar, a lock screen and a capture screen exist.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and answered, browsing history and bookmarks, and phone books.
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 short message notification icon, which may include a view displaying text and a view displaying pictures.
The phone 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, such as localized strings, icons, pictures, layout files, and video files.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as notification managers, are used for download completion notifications and message reminders. The notification manager may also manage notifications that appear in a chart or scrollbar text form in a status bar at the top of the system, such as notifications for applications running in the background. The notification manager may also manage notifications that appear on the screen in dialog windows, such as prompting for text messages in a status bar, sounding a prompt tone, vibrating the electronic device, and flashing an indicator light.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used to perform the functions of object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
The system library may include a plurality of functional modules, such as: surface managers (surface managers), Media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., open graphics library for embedded systems, OpenGL ES) and 2D graphics engines (e.g., Skin Graphics Library (SGL)) for embedded systems.
In some embodiments, the system library may further include 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, a moving module is used for driving and controlling the display screen to move; and when the distance parameter does not meet the first preset condition, driving and controlling the display screen to stop moving through a moving module.
It should be understood that the display screen movement decision module may also be located at other layers in the drawing, for example, an application layer, an application framework layer, and the like, and here, the display screen movement decision module is merely described as being located in a system library as an example, and the embodiment of the present application is not limited thereto.
The surface manager is used for managing the display subsystem and providing fusion of the 2D layer and the 3D layer for a plurality of application programs.
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 audiovisual coding formats, such as MPEG4, h.264, moving picture experts group audio layer 3 (MP 3), Advanced Audio Coding (AAC), adaptive multi-rate (AMR), joint picture experts group (JPG), and Portable Network Graphics (PNG).
The three-dimensional graphics processing library 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 can comprise driving modules such as a display driver, a camera driver, an audio driver, a sensor driver and a distance detection driver.
In some embodiments, the inner core layer may further include a distance detection drive and a movement module drive. The distance detection driver is used for driving the distance detection module to measure the distance. The mobile module drive 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 above describes the structure diagram of the electronic device by taking fig. 3 as an example, and the software architecture of the electronic device is described by way of example in fig. 4, and the embodiments of the present application are not limited thereto.
The method of screen movement according to the embodiment of the present application is described below 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 of 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 scenarios shown in fig. 1 and 2. As shown in fig. 5, the method 500 includes:
s501, a first instruction is detected, and 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. Wherein the forward direction may be understood as the direction in which the display screen is stretched. The reverse direction is understood to be the direction in which the display screen is retracted.
Optionally, as an embodiment, the first instruction is used to instruct the display screen to move, and specifically includes: the first instruction is used for instructing 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 (1) in fig. 1 or (2) in fig. 1 to the display area shown in (3) in fig. 1, the process of stretching the display screen is performed. In this embodiment, the first instruction may also be referred to as a stretch instruction.
Optionally, as an embodiment, the first instruction is used to instruct the display screen to move, and specifically includes: the first instruction is used for instructing the display screen to move towards the shrinking direction of the display screen, wherein the size of the shrunk display screen is smaller than that of the display screen before shrinking. 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 performed. 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 a hardware trigger and/or a software trigger, and the like, and this is not particularly limited in this embodiment of the present application.
In one implementation, the first command may be triggered by a user through 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 function 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 the movement of the moving module. For example, if 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, a distance parameter is obtained through a distance detection module, and the distance parameter is used for representing the moving distance of the display screen.
In one implementation, the distance detection module is a laser focus module. For example, the laser focusing module can be set as shown in (2) in fig. 2. For other implementation manners of the distance detection module, reference may be made to the foregoing description, and details are not described herein.
It is understood 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 module with the same function. For example, the laser focusing module can be used to detect the distance that the display screen moves, and then the laser focusing module can be replaced by a sensor for detecting the distance that the display screen moves.
Specifically, the distance of the movement of the display screen can be measured by the distance detection module. The distance the display screen moves includes the distance the display screen stretches, or alternatively, the distance the display screen contracts.
The moving distance of the display screen specifically comprises: the relative distance between the initial position of the display screen and the current position of the display screen. Illustratively, if the display screen is subjected to stretching movement, the distance refers to the distance between the initial position of the display screen and the position of the display screen after stretching movement; if the display screen is subjected to contraction movement, 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 a moving distance of the display screen, or may indirectly represent the moving distance of the display screen, which is not specifically limited in this embodiment of the application. For example, the distance parameter may be a specific distance value, i.e. a distance that directly reflects the movement of the display screen. For another example, the distance parameter may record a position where the display screen is moved, and after the distance parameter is transmitted to the processor, the processor may calculate a distance that the display screen moves based on the distance parameter.
Optionally, the distance detection module may transmit the distance parameter (including the distance data) to a processor of the electronic device after measuring the distance moved by the display screen, so that the processor may perform further analysis based on the distance parameter.
Alternatively, the distance detection module may be connected to the processor of the electronic device via a connector (e.g., the connection principle shown in (3) of fig. 2), so as to perform 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 embodiment of the present application does not specifically limit the detection timing of the distance detection module. 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 the distance moved by the display screen after the display screen moves. For another example, the distance detection module may detect the moving distance of the display screen in real time after detecting the first instruction.
And S503, determining whether the distance parameter meets a first preset condition.
The first preset condition is introduced to judge 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 distance parameter satisfying the first preset condition may include: the distance parameter is greater than a set threshold. For another example, the distance parameter satisfying the first preset condition may include: the distance parameter is smaller than a set threshold value.
For another example, the distance parameter satisfying the first preset condition may include: the distance parameter is located in a certain distance interval.
It should be understood that the above description regarding the first preset condition is only an example description, and the embodiment of the present application is 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 obtained through the distance detection module, the moving distance of the display screen is obtained, and then whether the display screen moves or not is determined by judging whether the moving distance of the display screen meets a first preset condition or not. And if the distance parameter does not meet the first preset condition, controlling the display screen to stop moving. The method for screen movement can effectively control the screen movement state of the rolling screen electronic equipment.
For a scrolling electronic device, the display screen may move in a forward direction or a reverse direction based on the movement instruction. According to the embodiment of the application, the distance parameter can be acquired in real time in the moving process of the display screen, so that the reasonable movement of the display screen can be controlled. Detailed examples are described below.
Optionally, as an embodiment, the first instruction is used to instruct the display screen to move towards the direction of stretching of the display screen. 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 it is determined that the distance parameter is smaller than the first distance threshold, which indicates that the current display screen has not reached the state where the display screen is fully unfolded, the display screen may continue to be moved in the stretching direction, or in the 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, etc. The naming of the first instruction is not particularly limited in the embodiments of the present application.
Alternatively, the first distance threshold may be determined based on a fully expanded state of the display screen. When the display screen is completely unfolded, the distance between the initial position when the display screen is not unfolded and the position when the display screen is completely unfolded can be used as the value of the first distance threshold. In addition, in specific implementation, a gap between the distance detection module and a 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 is 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 above determination manner regarding the first distance threshold is only an exemplary description, and the embodiments of the present application are not particularly limited.
In another implementation, the first instruction is to instruct the display screen to move in a direction in which the display screen is retracted. 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 where the display screen is not expanded, the display screen may continue to be contracted and moved, and the display screen may be controlled to move toward the contracted direction, or move in the reverse 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, etc. The naming of the first instruction is not particularly limited in the embodiments of the present application.
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 a 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 is used as the second distance threshold. Or a gap between the distance detection module and a frame of the housing of the electronic device is used as the second distance threshold. For example, the second distance threshold may be the distance a shown in (2) of fig. 2.
It should be understood that the above determination manner regarding the second distance threshold is only an exemplary description, and the embodiments of the present application are not particularly limited.
And in the process of moving the display screen, whether a stop instruction is received or not can be detected in real time, so that the stop operation behavior of the user on the display screen can be responded at any time.
Optionally, during the movement 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 controlling the display screen to stop moving in response to the second instruction.
The second instruction may be understood as a display screen stop movement instruction. It will be appreciated that the second instruction described above applies to either a screen stretching movement or a screen shrinking movement.
For example, when the display screen is moving in the direction of stretching, if the second instruction is received, the display screen stops the stretching movement. When the display screen is moving in the direction of the contraction, if a second instruction is received, the display screen stops the contraction movement.
The triggering form of the second instruction may be various, including but not limited to a hardware trigger and/or a software trigger, and the embodiment of the present application is not limited in this respect.
In one implementation, the second instruction may be user-activated via 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 process of moving the display screen, the user can also respond to the stop 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 to remove, can learn the size of display screen according to the distance that the display screen removed, then carry out corresponding adaptation for the content that the display screen shows through the software mode to obtain the display effect who is full of science and technology sense, promote the display effect who rolls up the screen.
For ease of understanding, the following description is made in conjunction with the logic flow in fig. 6. As shown in fig. 6, includes:
step 1, judging whether a forward moving instruction is detected.
For example, the forward move instruction may correspond to the first instruction described above. The first instruction is specifically for instructing the display screen to move in a direction in which the display screen is stretched.
If a forward movement instruction is detected, executing step 2; if no forward move instruction is detected, step 9 is performed.
Specifically, after the forward movement instruction is detected, the distance parameter may be obtained by the distance detection module, and then further determination may be made based on the distance parameter.
And 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, executing the step 3; if the distance parameter is not less than the first distance threshold, step 9 is performed. For the description of the first distance threshold, reference may be made to the foregoing description, and for brevity, the description is not 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 step 3, moving the display screen forward. A positive movement is the aforementioned movement in the direction of the stretching of the display screen.
Step 4, determining whether a stop command (corresponding to the second command) is detected. The stop instruction is used for instructing 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 or not.
For example, the move backward instruction may correspond to the first instruction described above. The first instruction is specifically used for instructing the display screen to move towards the direction of contraction of the display screen.
If the reverse movement instruction is detected, executing step 6; if no reverse move instruction is detected, step 9 is performed.
Specifically, after the reverse movement instruction is detected, the distance parameter may be obtained by the distance detection module, and then further determination may be made based on the distance parameter.
And 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 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 power consumption of the terminal is saved.
And 7, reversely moving the display screen. The reverse movement is the aforementioned movement in the direction of the contraction of the display screen.
Step 8, determining whether a stop command (corresponding to the second command) is detected. The stop instruction is used for instructing 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 only for the understanding of those skilled in the art, and the embodiments of the present application are not limited thereto.
Therefore, the screen moving method provided by the application obtains the distance parameter through the distance detection module, and judges whether the distance parameter meets the first preset condition to determine whether the display screen moves, so that the screen moving state of the rolling screen electronic equipment can be effectively controlled.
The method for moving the screen provided by the embodiment of the present application is described in detail above with reference to fig. 1 to 6. An apparatus embodiment of the present application is described below in conjunction with fig. 7 and 8. It should be understood that the device for screen movement according to the embodiment of the present application may perform the foregoing embodiments of the method for screen movement according to the embodiment of the present application, that is, the following specific working processes of various products, and reference may be made to corresponding processes in the foregoing embodiments of the method.
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: a processing module 710 and a distance detection module 720.
It should be understood that the apparatus 700 may perform the method of screen movement shown in fig. 5 and 6. In one possible example, apparatus 700 may be a terminal device.
In one possible example, the processing module 710 is configured to detect a first instruction, the first instruction being configured to instruct the display screen to move;
the processing module 710 is further configured to obtain a distance parameter through the distance detecting module 720, where the distance parameter is used to represent a distance that the display screen moves;
the processing module 710 is further configured to determine whether the distance parameter satisfies a first preset condition;
the processing module 710 is further configured to, in response to the first instruction, control 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.
Optionally, as a possible implementation manner, the processing module 710 is further configured to detect a second instruction in the process of moving the display screen, where the second instruction is used to instruct the display screen to stop moving; and controlling the display screen to stop moving in response to the second instruction.
Optionally, as a possible implementation manner, the first instruction is used to instruct the display screen to move towards a stretching direction of the display screen, where a size of the display screen after stretching is larger than a 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;
the processing module 710 is configured to control the display screen to move, and includes: 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 in which the display screen is contracted, wherein a size of the contracted display screen is smaller than a size of the display screen before the contraction;
the distance parameter satisfies a first preset condition, including: the distance parameter is greater than a second distance threshold;
the processing module 710 is configured to control the display screen to move, and includes: 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 the embodiment of the present application is not particularly 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 an Application Specific Integrated Circuit (ASIC), an electronic circuit, a processor (e.g., a shared processor, a dedicated processor, or a group of processors) and memory that execute one or more software or firmware programs, an integrated logic circuit, and/or other suitable devices that provide the described functionality. In a simple embodiment, those skilled in the art will appreciate 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 components: a processor 810, a retractable display screen 820, and a distance detection module 830.
In some possible implementations, the processor 810 is configured to detect a first instruction, where the first instruction is configured to instruct the retractable display 820 to move;
the distance detection module 830 is configured to detect a distance parameter, where the distance parameter is used to represent a distance that the retractable display 820 moves;
the processor 810 is further configured to determine whether the distance parameter satisfies a first preset condition; in response to the first instruction, controlling the retractable display screen 820 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 retractable 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 of a user on or near it using any suitable object such as a finger, a touch pen, etc., and to display user interfaces of various applications. The retractable display screen 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 820 can be changed along with the retractable operation.
Optionally, the electronic device 800 further comprises a memory 840. The Memory 840 may include a Random Access Memory (RAM) or a Read-Only Memory (ROM). Optionally, the memory 840 includes a non-transitory computer-readable medium. The memory 840 may be used to store instructions, programs, code, sets of codes, or sets of instructions. 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 various method embodiments described below, and the like; the storage data area may store data (such as audio data, a phonebook) created according to the use of the electronic device 800, and the like.
Optionally, the electronic device 800 further comprises a driving structure for driving the retractable display 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 the terminal may include more or fewer components than illustrated, or some components may be combined, or 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 (WiFi) component, a power supply, a bluetooth component, and other components, which are not described herein again.
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 technical 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 transformed into an executable object file that can be executed by a processor via 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 the method of 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 and nonvolatile memory. The non-volatile 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. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), double data rate SDRAM, enhanced SDRAM, SLDRAM, Synchronous Link DRAM (SLDRAM), and direct rambus 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 implementation. 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 is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed 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 can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The 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 or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a read-only memory ROM, a random access memory RAM, a magnetic disk, or an optical disk.
It should be understood that, in the various embodiments of the present application, the sequence numbers of the processes do not mean the execution sequence, and the execution sequence of the processes should be determined by the functions and the inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Additionally, the terms "system" and "network" are often used interchangeably herein. The term "and/or" herein is only one kind of association relationship describing the association object, and means that there may be three kinds of relationships, for example, a and/or B, and may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship. For example, A/B may represent A or B.
The terms (or numbers) "first", "second", …, etc. appearing in the embodiments of the present application are for descriptive purposes only, i.e., are for distinguishing different objects such as different "instructions", etc., and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first," "second," …, etc. may explicitly or implicitly include one or more features. In the description of the embodiments of the present application, "at least one" means one or more. "plurality" means two or more. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of a single item or a plurality of items.
For example, items similar to "appearing in the 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 of the following, unless otherwise specified: a; b; c; 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, B and C, C and C; c, C and C, and other combinations of A, B and C. The above description is made by taking 3 elements of a, B and C as examples of optional items of the item, and when the expression "item" includes at least one of the following: a, B, … …, and X ", i.e., more elements in the expression, then the items to which the item may apply may also be obtained according to the aforementioned rules.
In short, the above description is only a preferred embodiment of the present disclosure, and is not intended to limit the scope of the present disclosure. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A method for 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 a display screen to move;
obtaining 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.
2. The method of claim 1, wherein during the 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 controlling the display screen to stop moving in response to the second instruction.
3. The method of claim 1 or 2, wherein the first instruction is used to instruct the display screen to move in a direction in which the display screen is stretched, 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, control the display screen and remove, include: and controlling the stretching of the display screen.
4. The method of claim 1 or 2, wherein the first instruction is used to instruct the display screen to move in a direction of shrinking the display screen, wherein the size of the display screen after shrinking is smaller than the 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, control the display screen and remove, include: and controlling the display screen to shrink.
5. The method of claim 1 or 2, wherein the distance detection module is a laser focus module.
6. An electronic device, comprising:
the system 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 satisfies 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.
7. The electronic device of claim 6, wherein the distance detection module is a laser focus module, and the laser focus module performs data transmission with the processor through a connector.
8. An electronic device comprising a processor and a memory, the processor and the memory being coupled, the memory for storing a computer program that, when executed by the processor, causes the electronic device to perform the method of any of claims 1 to 5.
9. 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 carry out the method of any one of claims 1 to 5.
10. A chip comprising a processor that, when executing instructions, performs the method of any one of claims 1 to 5.
CN202210751665.0A 2022-06-29 2022-06-29 Screen movement method and device Active CN114816311B (en)

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 true CN114816311A (en) 2022-07-29
CN114816311B 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 (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100025360A (en) * 2008-08-27 2010-03-09 엘지전자 주식회사 Mobile terminal and operation control method thereof
US20170061932A1 (en) * 2015-08-26 2017-03-02 Lg Electronics Inc. Flexible display device and operating 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

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100025360A (en) * 2008-08-27 2010-03-09 엘지전자 주식회사 Mobile terminal and operation control method thereof
US20170061932A1 (en) * 2015-08-26 2017-03-02 Lg Electronics Inc. Flexible display device and operating 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
CN114816311B (en) 2024-04-12

Similar Documents

Publication Publication Date Title
WO2022100315A1 (en) Method for generating application interface, and related apparatus
CN112714901B (en) Display control method of system navigation bar, graphical user interface and electronic equipment
CN110708596A (en) Method and device for generating video, electronic equipment and readable storage medium
CN111078091A (en) Split screen display processing method and device and electronic equipment
CN112114912A (en) User interface layout method and electronic equipment
CN112214294B (en) Method for calling hardware interface and electronic equipment
WO2021052035A1 (en) Display method for side region of screen, and electronic apparatus
CN113867848A (en) Method, device and equipment for calling graphic interface and readable storage medium
WO2022001279A1 (en) Cross-device desktop management method, first electronic device, and second electronic device
CN115022527B (en) Method for starting cooperative function and electronic equipment
CN114816311B (en) Screen movement method and device
CN113380240B (en) Voice interaction method and electronic equipment
CN115543276A (en) Method, system and electronic equipment for realizing software development
CN114205457A (en) Method for moving user interface element and electronic equipment
CN113821153B (en) Gesture navigation method, electronic device and readable storage medium
CN116684725B (en) Layout method and device of application interface, electronic equipment, storage medium and chip
CN115562535B (en) Application control method and electronic equipment
CN115933952B (en) Touch sampling rate adjusting method and related device
EP4212999A1 (en) Method and device for preventing mistaken touch
WO2022022381A1 (en) Method and apparatus for generating graffiti patterns, electronic device, and storage medium
CN115379274B (en) Picture-based interaction method and device, electronic equipment and storage medium
CN113849113A (en) Touch operation processing method, electronic device and computer-readable storage medium
CN114764299A (en) Display method and electronic equipment
CN112269573A (en) State data processing method and device, computer equipment and storage medium
CN117806744A (en) Control display method and electronic equipment

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