Disclosure of Invention
In order to solve the technical problems in the related art, the present embodiment provides a method, an apparatus, a device, and a storage medium for a terminal to execute processing. The technical scheme of the method, the device, the equipment and the storage medium for the terminal to execute the processing is as follows:
in a first aspect, a method for a terminal to perform processing is provided, where the method includes:
when the preset operation is detected, displaying range indication information corresponding to a preset screen local operation area in an interface of the terminal;
when a sliding touch signal in the local operation area of the screen is detected, determining first displacement information of the sliding touch signal relative to an initial position;
determining a second control to be operated according to the first position of the currently operated first control and the first displacement information;
and executing the processing corresponding to the second control.
Optionally, when the range indication information corresponding to the preset local screen operation area is displayed in the interface of the terminal, the method further includes:
displaying a suspension operation icon in a range corresponding to the local screen operation area in an interface of the terminal;
when the sliding touch signal in the local operation area of the screen is detected, determining first displacement information of the sliding touch signal relative to a starting position, including:
when a sliding touch signal with a starting position at the floating operation icon is detected, the floating operation icon is controlled to move along with the sliding touch signal in the interface, and first displacement information of the floating icon relative to the initial position is determined.
Optionally, after determining the second control to be operated according to the first position of the currently operated first control and the first displacement information, the method further includes:
highlighting the second control;
the executing the processing corresponding to the second control comprises:
and executing the corresponding processing of the second control when the click touch signal corresponding to the suspension operation icon is detected.
Optionally, the determining, by the first displacement information and the first position of the currently operated first control, a second control to be operated includes:
and when the displacement distance is greater than a distance threshold, determining a control located in the displacement direction of the first control in each control of the interface as a second control to be operated based on the first position of the currently operated first control.
Optionally, the determining, according to the first position of the currently operated first control and the first displacement information, a second control to be operated includes:
and determining a second position obtained by starting to move from the first position of the currently operated first control based on the first displacement information, and determining a control, of the controls on the interface, of which the distance from the second position is smaller than a distance threshold value, as a second control to be operated.
Optionally, the local operation area of the screen is a circular area, and determining, based on the first displacement information, a second position obtained by starting to move from a first position of a currently operated first control includes:
amplifying the first displacement information based on the ratio of the width of the interface to the diameter of the circular area to obtain second displacement information;
and determining a second position obtained by starting to move according to the second displacement information from the first position of the currently operated first control.
In a second aspect, an apparatus for a terminal to perform processing is provided, where the apparatus includes:
the display module is configured to display range indication information corresponding to a preset screen local operation area in an interface of the terminal when a preset operation is detected;
the first determination module is configured to determine first displacement information of the sliding touch signal relative to a starting position when the sliding touch signal in the screen local operation area is detected;
the second determining module is configured to determine a second control to be operated according to the first position of the currently operated first control and the first displacement information;
and the execution module is configured to execute the processing corresponding to the second control.
Optionally, the apparatus further comprises a first display module configured to:
displaying a suspension operation icon in a range corresponding to the local screen operation area in an interface of the terminal;
the first determination module configured to:
when a sliding touch signal with a starting position at the floating operation icon is detected, the floating operation icon is controlled to move along with the sliding touch signal in the interface, and first displacement information of the floating icon relative to the initial position is determined.
Optionally, the apparatus further comprises a detection module configured to:
highlighting the second control;
the execution module configured to:
and executing the corresponding processing of the second control when the click touch signal corresponding to the suspension operation icon is detected.
Optionally, the first displacement information includes a displacement direction and a displacement distance;
the second determination module configured to:
and when the displacement distance is greater than a distance threshold, determining a control located in the displacement direction of the first control in each control of the interface as a second control to be operated based on the first position of the currently operated first control.
Optionally, the second determining module is configured to:
and determining a second position obtained by starting to move from the first position of the currently operated first control based on the first displacement information, and determining a control, of the controls on the interface, of which the distance from the second position is smaller than a distance threshold value, as a second control to be operated.
Optionally, the local operation area of the screen is a circular area;
the second determination module configured to:
amplifying the first displacement information based on the ratio of the width of the interface to the diameter of the circular area to obtain second displacement information;
and determining a second position obtained by starting to move according to the second displacement information from the first position of the currently operated first control.
In a third aspect, a computer device is provided, which includes a processor and a memory, where at least one instruction is stored in the memory, and the instruction is loaded and executed by the processor to implement the operation performed by the method for processing performed by the terminal according to the first aspect.
In a fourth aspect, a computer-readable storage medium is provided, in which at least one instruction is stored, and the instruction is loaded and executed by a processor to implement the operation performed by the method for the terminal to perform the processing according to the first aspect.
The technical scheme provided by the embodiment of the application has the following beneficial effects:
when the terminal detects a preset operation, a preset screen local operation area is displayed in an interface of the terminal, and a user slides on the screen local operation area to enable the terminal to generate a sliding touch signal. And the terminal determines a second control to be operated according to the detected first position of the first control and the sliding touch signal, and executes processing corresponding to the second control. According to the method and the device, the controls on the whole interface of the operation terminal are operated through the local screen operation area on the interface of the operation terminal, so that the controls far away from the user finger in the interface can be operated by the user through touch operation in the local screen operation area, and convenience in operation of the mobile phone can be improved.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The method for the terminal to execute the processing provided in the embodiment can be applied to the terminal. The terminal can be a mobile terminal such as a mobile phone, a tablet computer and a notebook computer, and can also be a fixed terminal such as a desktop computer. The specific processing allocation condition can be set by a technician at will according to actual needs, and is not described herein again.
The method can be applied to the situation that when a user operates the mobile terminal with one hand, the hand of the user cannot touch certain positions of the display interface of the mobile terminal when the user operates the mobile terminal with one hand, or when the hand of the user touches certain positions of the display screen of the mobile terminal, accidents are easy to happen because the hand of the user cannot stably place the mobile terminal in the hand. To solve the above problem, a user may slide in a specific area with a single hand to achieve control over the entire screen of the mobile terminal.
In the process of operating the interface shown in fig. 1 by a user, a preset screen local operation area may be displayed in the interface, and the user slides on the screen local operation area, so that the terminal generates a slide touch signal. And the terminal determines a second control to be operated according to the detected first position of the first control and the sliding touch signal, and executes processing corresponding to the second control. According to the method and the device, the whole interface of the operation terminal is operated through the local operation area of the screen on the interface of the operation terminal, and therefore convenience in operation of the mobile phone can be improved.
Fig. 2 is a flowchart of a method for a terminal to execute processing according to an embodiment of the present application. Referring to fig. 2, the implementation method includes:
201. when the terminal detects a preset operation, displaying range indication information corresponding to a preset local screen operation area in an interface of the terminal.
The preset operation may be a preset gesture operation or a touch trajectory, or may also be a preset voice operation. Of course, a button may also be preset on the interface of the terminal, so that when the terminal detects that the button is triggered, the local operation area of the screen is displayed on the interface of the terminal. The local screen operation area can be displayed on the interface of the terminal in a transparent suspension mode, so that when a user operates the local screen operation area, the position of a control to be operated can be known. The shape of the local operation area of the screen may be a circle or a rectangle, which is not limited herein. The range indication information may be boundary information corresponding to the partial operation region of the screen.
In one embodiment, a technician sets an operation gesture in advance, and the preset operation gesture is used for indicating that a preset local operation area of a screen is displayed on an interface of the terminal. When the terminal detects the operation gesture of the user, the operation gesture is compared with the preset operation gesture, and the similarity between the two operation gestures is calculated. And when the similarity is greater than a preset threshold value, displaying preset range indication information of the local screen operation area in an interface of the terminal.
In one embodiment, the technician sets in advance the shape of the touch trajectory indicating the screen partial operation area to be displayed on the interface of the terminal. The method comprises the steps that a user draws a touch track on an interface of a terminal, the terminal detects the shape of the touch track, the shape of the touch track is compared with the preset shape of the touch track, and the similarity between the two shapes is calculated. And when the similarity is larger than a preset threshold, the terminal determines the size and the shape of the touch track, and displays the range indication information of the local operation area of the screen, which is the same as the touch track, in the interface of the terminal.
The preset touch trajectory in the above process may be a circle or a rectangle, and is not limited herein. Of course, the shape of the touch trajectory may be set by the user according to his preference.
In one embodiment, a user can input and store voice information corresponding to a specific character string on a terminal, wherein the pre-stored voice information is used for indicating that a preset local screen operation area is displayed on an interface of the terminal. The user inputs the voice information corresponding to the specific character string at the terminal, the terminal detects the input voice message, extracts the audio feature of the voice message, compares the audio feature of the input voice message with the audio feature of the pre-stored voice message, and calculates the similarity between the two voice messages. And when the similarity is greater than a preset threshold value, displaying preset range indication information of the local screen operation area in an interface of the terminal.
It should be noted that, in the above process, the position of the screen local operation area may be set by a technician or set by a user, and the user may move the position of the screen local operation area, for example, the user may move the screen local operation area by pressing the screen local operation area for a long time. Alternatively, the local operation region of the screen is moved by a specific gesture of the user.
202. When the terminal detects a sliding touch signal in a local operation area of a screen, the terminal determines first displacement information of the sliding touch signal relative to a starting position.
The sliding touch signal may be a signal generated from a user's hand starting to touch the interface of the terminal to leave the interface of the terminal in the local operation area of the screen.
In implementation, after the screen local operation area is displayed on the interface of the terminal, when the terminal detects a sliding touch signal in the screen local operation area, that is, detects that a hand of a user starts to touch the interface of the terminal, a starting position of the sliding touch signal is determined, and first displacement information of the sliding touch signal relative to the starting position is determined.
It should be noted that the effective slide touch signal is determined when the start position of the slide touch signal is located within the local operation area of the screen, and the ineffective slide touch signal is determined when the start position of the slide touch signal is located outside the local operation area of the screen.
Optionally, the floating operation icon is displayed in a range corresponding to the local operation area of the screen in the interface of the terminal. When the terminal detects a sliding touch signal of which the starting position is at the position of the floating operation icon, the floating operation icon is controlled to move along with the sliding touch signal in the interface, and first displacement information of the floating icon relative to the starting position is determined.
The shape of the floating operation icon may be an icon preset by a technician, or may be one icon selected from a plurality of icons stored in the terminal by the user, or may be a user-defined icon, which is not limited herein.
In implementation, after the screen local operation area is displayed on the interface of the terminal, when the terminal detects a sliding touch signal in the screen local operation area, a starting position of the sliding touch signal is determined, and whether the starting position is an initial position of the floating operation icon is judged. And if the starting position is the initial position of the floating operation icon, the terminal controls the floating icon to move along with the sliding touch signal on the interface, and determines first displacement information of the floating icon relative to the initial position after the floating icon moves. If the starting position is not the initial position, the terminal may consider the current slide touch signal as an invalid slide touch signal.
It should be noted that the floating operation icon may be located at a fixed position in the local operation area of the screen, or may move along with the sliding touch signal, and after the sliding touch signal disappears, may automatically return to the fixed position in the local operation area of the screen. The fixed position may be a central position of the local operation region of the screen.
For example, a circular screen local operation area is displayed on the interface of the terminal, the floating operation icon is set in the center of the screen local operation area, and when a user draws a circular touch track on the interface of the terminal, as shown in fig. 3, the terminal compares the circular touch track with a pre-stored touch track and calculates the similarity between the two touch tracks. And when the similarity is greater than a preset threshold, displaying a preset local screen operation area in an interface of the terminal, wherein the first control is a recommended control at the moment as shown in 4. When the terminal detects a sliding touch signal in the local operation area of the screen, the terminal determines that the initial position of the sliding touch signal is the initial position of the suspension operation icon, and at this time, the suspension operation icon can be shifted to control the suspension icon to move along with the sliding touch signal on the interface, and determines that the second control is a nearby control, as shown in fig. 5.
203. And the terminal determines a second control to be operated according to the first position of the currently operated first control and the first displacement information.
The first control is a control currently operated, and the second control is a control which a user wants to operate.
In implementation, the terminal determines a currently operated first control, and detects a first position of the currently operated first control. And the terminal determines a second control to be operated according to the first position and the first displacement information.
Optionally, the first displacement information includes a displacement direction and a displacement distance. When the terminal detects that the displacement distance in the first displacement information is larger than the distance threshold, in each control of the interface, the terminal determines a control located in the displacement direction of the first control based on the first position of the currently operated first control, and the control is a second control to be operated.
In practice, the technician presets a displacement distance, which is used as a distance threshold. After the terminal obtains the first displacement information, the terminal determines the displacement direction and the displacement distance of the sliding touch signal according to the first displacement information. When the terminal detects that the displacement distance is larger than the distance threshold, the terminal determines a control located in the displacement direction of the first control according to the first position of the currently operated first control, and the control is a second control to be operated.
Further, the technician sets the distance threshold to 2 centimeters. And the terminal detects that the displacement distance in the first displacement information is 3 cm, the movement direction is rightward movement, and detects that the currently operated control is a concerned control, and at the moment, the terminal determines that the control to be operated is a recommended control.
It should be noted that when the displacement distance is too small, it may be the interface of the terminal touched by the user carelessly. And determining the first displacement information with the displacement distance greater than the distance threshold value as effective displacement information, thereby avoiding the problem of misoperation of a user.
Optionally, based on the first displacement information, the terminal determines a second position obtained by starting to move from the first position of the currently operated first control. And in all the controls of the interface, the terminal determines the control of which the distance from the terminal to the second position is less than the distance threshold value as the second control to be operated.
In implementation, the terminal detects a slide touch signal when a user is sliding on an operation display area of the terminal. When the terminal detects that the initial position of the sliding touch signal is the initial position of the suspended moving icon, first displacement information of the sliding touch signal relative to the initial position is determined, and the displacement distance of the first displacement information is measured periodically. And when the displacement distance is greater than the threshold distance, determining that the first displacement information is effective displacement information, and continuously measuring the displacement distance in the first displacement information. And the terminal obtains the distance to be moved according to the displacement distance and determines the second position after the movement according to the distance to be moved. And in all the controls of the interface, the terminal determines the control of which the distance from the terminal to the second position is less than the distance threshold value as the second control to be operated.
It should be noted that, when the user slides the display interface of the terminal, the terminal periodically detects the displacement distance of the first displacement information, and after detecting the displacement distance, determines the position of the second control that the user needs to operate, so as to prevent the second control from being inaccurately positioned due to too large or too small sliding of the user in the process of sliding the display interface of the terminal.
Optionally, when the local operation area of the screen is a circular area, the terminal amplifies the first displacement information based on a ratio of the width of the interface to the diameter of the circular area to obtain second displacement information. And the terminal determines a second position obtained by starting to move according to the second displacement information from the first position of the first control operated currently.
In implementation, the technician may preset the ratio of the width of the interface to the diameter of the circular area, and determine the area of the circular area, i.e., the local operation area of the screen. Or, according to the requirement of the user, the user can set the ratio of the width of the interface to the diameter of the circular area in a user-defined manner, so that the terminal can determine the area of the circular area according to the ratio set by the user, and further determine the local operation area of the screen. When the user is sliding on the operation display area of the terminal, the terminal detects a sliding touch signal. When the terminal detects that the initial position of the sliding touch signal is the initial position of the suspended moving icon, first displacement information of the sliding touch signal relative to the initial position is determined, and the displacement distance of the first displacement information is measured periodically. And when the displacement distance is greater than the threshold distance, determining that the first displacement information is effective displacement information, and continuously measuring the displacement distance in the first displacement information. And the terminal amplifies the displacement distance according to the comparison value to obtain the displacement distance in the second displacement information, and determines a second position obtained by starting to move the first position of the currently operated first control according to the displacement distance in the second displacement information. And in all the controls of the interface, the terminal determines the control of which the distance from the terminal to the second position is less than the distance threshold value as the second control to be operated.
204. And the terminal executes the processing corresponding to the second control.
In implementation, the terminal acquires a display command corresponding to the second control, and the display command is used for instructing the terminal to display an interface corresponding to the second control.
For example, the second control is a recommendation control, and when the terminal acquires a display command corresponding to the recommendation control, the current interface of the terminal jumps to be a recommendation interface.
Optionally, the terminal may highlight the second control, and execute processing corresponding to the second control when the terminal detects a click touch signal corresponding to the floating operation icon.
The highlighting may be performed by highlighting the color of the second control or by highlighting the shape of the second control.
It should be noted that, by highlighting the second control, the user can determine whether the moved second control is the second control to be operated.
According to the method and the device, when the terminal detects a preset operation, a preset screen local operation area is displayed in an interface of the terminal, a user generates a sliding touch signal in the screen local operation area, the terminal determines a second control to be operated according to a first position of the detected first control and the sliding touch signal, and the second control is correspondingly processed. According to the method and the device, the whole interface of the operation terminal is operated through the local operation area of the screen on the interface of the operation terminal, and therefore convenience in operation of the mobile phone can be improved.
Based on the same technical concept, an embodiment of the present application further provides an apparatus, which may be the terminal in the foregoing embodiment, as shown in fig. 6, the apparatus includes:
thedisplay module 601 is configured to display range indication information corresponding to a preset screen local operation area in an interface of the terminal when a preset operation is detected;
a first determiningmodule 602, configured to determine first displacement information of a sliding touch signal relative to a starting position when the sliding touch signal within the screen local operation area is detected;
a second determiningmodule 603, configured to determine a second control to be operated according to the first position of the currently operated first control and the first displacement information;
and theexecution module 604 is configured to execute processing corresponding to the second control.
Optionally, the apparatus further comprises a first display module configured to:
displaying a suspension operation icon in a range corresponding to the local screen operation area in an interface of the terminal;
the first determiningmodule 602 configured to:
when a sliding touch signal with a starting position at the floating operation icon is detected, the floating operation icon is controlled to move along with the sliding touch signal in the interface, and first displacement information of the floating icon relative to the initial position is determined.
Optionally, the apparatus further comprises a detection module configured to:
highlighting the second control;
theexecution module 604 configured to:
and executing the corresponding processing of the second control when the click touch signal corresponding to the suspension operation icon is detected.
Optionally, the first displacement information includes a displacement direction and a displacement distance;
the second determiningmodule 603 is configured to:
and when the displacement distance is greater than a distance threshold, determining a control located in the displacement direction of the first control in each control of the interface as a second control to be operated based on the first position of the currently operated first control.
Optionally, the second determiningmodule 603 is configured to:
and determining a second position obtained by starting to move from the first position of the currently operated first control based on the first displacement information, and determining a control, of the controls on the interface, of which the distance from the second position is smaller than a distance threshold value, as a second control to be operated.
Optionally, the local operation area of the screen is a circular area;
the second determiningmodule 603 is configured to:
amplifying the first displacement information based on the ratio of the width of the interface to the diameter of the circular area to obtain second displacement information;
and determining a second position obtained by starting to move according to the second displacement information from the first position of the currently operated first control.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described herein again.
It should be noted that: in the terminal processing device according to the above embodiment, when the terminal executes the processing, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the terminal processing device may be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus for executing processing by a terminal and the method embodiment for executing processing by a terminal provided in the foregoing embodiments belong to the same concept, and details of a specific implementation process thereof are referred to in the method embodiment and are not described herein again.
Fig. 7 shows a block diagram of a terminal 700 according to an exemplary embodiment of the present application. The terminal 700 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer.Terminal 700 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, and so on.
In general,terminal 700 includes: aprocessor 701 and amemory 702.
Theprocessor 701 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. Theprocessor 701 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). Theprocessor 701 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, theprocessor 701 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, theprocessor 701 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 702 may include one or more computer-readable storage media, which may be non-transitory.Memory 702 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium inmemory 702 is used to store at least one instruction for execution byprocessor 701 to implement a method for terminal-implemented processing as provided by method embodiments of the present application.
In some embodiments, the terminal 700 may further optionally include: aperipheral interface 703 and at least one peripheral. Theprocessor 701, thememory 702, and theperipheral interface 703 may be connected by buses or signal lines. Various peripheral devices may be connected toperipheral interface 703 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one ofradio frequency circuitry 704,touch screen display 705,camera 706,audio circuitry 707,positioning components 708, andpower source 709.
Theperipheral interface 703 may be used to connect at least one peripheral related to I/O (Input/Output) to theprocessor 701 and thememory 702. In some embodiments,processor 701,memory 702, andperipheral interface 703 are integrated on the same chip or circuit board; in some other embodiments, any one or two of theprocessor 701, thememory 702, and theperipheral interface 703 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
TheRadio Frequency circuit 704 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. Theradio frequency circuitry 704 communicates with communication networks and other communication devices via electromagnetic signals. Therf circuit 704 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, theradio frequency circuit 704 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. Theradio frequency circuitry 704 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, theradio frequency circuit 704 may also include NFC (Near Field Communication) related circuits, which are not limited in this application.
Thedisplay screen 705 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When thedisplay screen 705 is a touch display screen, thedisplay screen 705 also has the ability to capture touch signals on or over the surface of thedisplay screen 705. The touch signal may be input to theprocessor 701 as a control signal for processing. At this point, thedisplay 705 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, thedisplay 705 may be one, providing the front panel of the terminal 700; in other embodiments, thedisplay 705 can be at least two, respectively disposed on different surfaces of the terminal 700 or in a folded design; in still other embodiments, thedisplay 705 may be a flexible display disposed on a curved surface or on a folded surface of the terminal 700. Even more, thedisplay 705 may be arranged in a non-rectangular irregular pattern, i.e. a shaped screen. TheDisplay 705 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), or the like.
Thecamera assembly 706 is used to capture images or video. Optionally,camera assembly 706 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments,camera assembly 706 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
Theaudio circuitry 707 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to theprocessor 701 for processing or inputting the electric signals to theradio frequency circuit 704 to realize voice communication. For the purpose of stereo sound collection or noise reduction, a plurality of microphones may be provided at different portions of the terminal 700. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from theprocessor 701 or theradio frequency circuit 704 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, theaudio circuitry 707 may also include a headphone jack.
Thepositioning component 708 is used to locate the current geographic Location of the terminal 700 for navigation or LBS (Location Based Service). ThePositioning component 708 can be a Positioning component based on the GPS (Global Positioning System) in the united states, the beidou System in china, the graves System in russia, or the galileo System in the european union.
Power supply 709 is provided to supply power to various components ofterminal 700. Thepower source 709 may be alternating current, direct current, disposable batteries, or rechargeable batteries. Whenpower source 709 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 700 also includes one or more sensors 710. The one or more sensors 710 include, but are not limited to: acceleration sensor 711, gyro sensor 712, pressure sensor 713, fingerprint sensor 714, optical sensor 715, and proximity sensor 716.
The acceleration sensor 711 can detect the magnitude of acceleration in three coordinate axes of a coordinate system established with the terminal 700. For example, the acceleration sensor 711 may be used to detect components of the gravitational acceleration in three coordinate axes. Theprocessor 701 may control thetouch screen 705 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 711. The acceleration sensor 711 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 712 may detect a body direction and a rotation angle of the terminal 700, and the gyro sensor 712 may cooperate with the acceleration sensor 711 to acquire a 3D motion of the terminal 700 by the user. From the data collected by the gyro sensor 712, theprocessor 701 may implement the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensors 713 may be disposed on a side bezel ofterminal 700 and/or an underlying layer oftouch display 705. When the pressure sensor 713 is disposed on a side frame of the terminal 700, a user's grip signal on the terminal 700 may be detected, and theprocessor 701 performs right-left hand recognition or shortcut operation according to the grip signal collected by the pressure sensor 713. When the pressure sensor 713 is disposed at a lower layer of thetouch display 705, theprocessor 701 controls the operability control on the UI interface according to the pressure operation of the user on thetouch display 705. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 714 is used for collecting a fingerprint of a user, and theprocessor 701 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 714, or the fingerprint sensor 714 identifies the identity of the user according to the collected fingerprint. When the user identity is identified as a trusted identity, theprocessor 701 authorizes the user to perform relevant sensitive operations, including unlocking a screen, viewing encrypted information, downloading software, paying, changing settings, and the like. The fingerprint sensor 714 may be disposed on the front, back, or side of the terminal 700. When a physical button or a vendor Logo is provided on the terminal 700, the fingerprint sensor 714 may be integrated with the physical button or the vendor Logo.
The optical sensor 715 is used to collect the ambient light intensity. In one embodiment, theprocessor 701 may control the display brightness of thetouch display 705 based on the ambient light intensity collected by the optical sensor 715. Specifically, when the ambient light intensity is high, the display brightness of thetouch display screen 705 is increased; when the ambient light intensity is low, the display brightness of thetouch display 705 is turned down. In another embodiment,processor 701 may also dynamically adjust the shooting parameters ofcamera assembly 706 based on the ambient light intensity collected by optical sensor 715.
A proximity sensor 716, also referred to as a distance sensor, is typically disposed on a front panel of the terminal 700. The proximity sensor 716 is used to collect the distance between the user and the front surface of the terminal 700. In one embodiment, when the proximity sensor 716 detects that the distance between the user and the front surface of the terminal 700 gradually decreases, theprocessor 701 controls thetouch display 705 to switch from the bright screen state to the dark screen state; when the proximity sensor 716 detects that the distance between the user and the front surface of the terminal 700 gradually becomes larger, theprocessor 701 controls thetouch display 705 to switch from the breath screen state to the bright screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 7 is not intended to be limiting ofterminal 700 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
In an exemplary embodiment, a computer-readable storage medium, such as a memory, including instructions executable by a processor in a terminal to perform the method performed by the terminal in the above-described embodiments is also provided. For example, the computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.