Volume Adjustment Method and Apparatus, Terminal Device, and Storage Medium
20220210260 · 2022-06-30
Inventors
- Hao CHEN (Shenzhen, CN)
- Aihua Zheng (Shenzhen, CN)
- Xiaoxiao CHEN (Nanjing, CN)
- Jianfeng WANG (Shenzhen, CN)
- Jie Xu (Shanghai, CN)
Cpc classification
H04M1/72403
ELECTRICITY
H04M2250/22
ELECTRICITY
G06F1/1618
PHYSICS
G06F3/04886
PHYSICS
G06F1/1652
PHYSICS
G06F1/1677
PHYSICS
G06F3/04847
PHYSICS
G06F2203/0339
PHYSICS
H04M1/72448
ELECTRICITY
International classification
H04M1/72403
ELECTRICITY
Abstract
A volume adjustment method is provided. The method is applied to a terminal device. In the method, a screen of the terminal device in a first physical form receives first input information of a volume adjustment region; a volume of the terminal device is adjusted based on the first input information; the screen changes from the first physical form to a second physical form, where the first physical form is different from the second physical form; and the volume adjustment region adapts to the second physical form to automatically change in location; second input information of the volume adjustment region is received in the second physical form; and the volume of the terminal device is adjusted based on the second input information.
Claims
1. A method, applied to a terminal device, wherein the method comprises: receiving, using a screen of the terminal device in a first physical form, first input information of a volume adjustment region on the screen, the volume adjustment region being at a first location on the screen; adjusting a volume of the terminal device based on the first input information; changing the screen from being in the first physical form to being in a second physical form, wherein the first physical form is different from the second physical form; changing the volume adjustment region from the first location to a second location on the screen based on the second physical form of the screen receiving, using the screen in the second physical form, second input information of the volume adjustment region; and adjusting the volume of the terminal device based on the second input information.
2. The method according to claim 1, wherein before the receiving, using the screen in the second physical form, the second input information of the volume adjustment region, the method further comprises: determining the second location of the volume adjustment region on the screen based on the second physical form of the screen.
3. The method according to claim 1, wherein the first physical form or the second physical form of the screen comprises an expanded form, a folded form, a holder form, a landscape form, or a portrait form, wherein the screen is in the holder form when the screen is folded at a predetermined angle, the predetermined angle is greater than or equal to a folding angle of the screen in the folded form, and is less than or equal to a folding angle of the screen in the expanded form.
4. The method according to claim 3, wherein when the screen is in the expanded form, the volume adjustment region is located at a location on a right side of the screen; when the screen is in the folded form, the volume adjustment region is located at a folded location of the screen; and when the screen is in the holder form, the volume adjustment region is located at a bent location of the screen.
5. The method according to claim 1, wherein an interface displayed by the terminal device on the screen in the second physical form is a user interface of a target application, and the adjusting the volume of the terminal device based on the second input information comprises: adjusting a volume of the target application based on the second input information, wherein the target application is a program that enables the terminal device to change a location of the volume adjustment region according to a physical form of the screen.
6. The method according to claim 1, wherein the method further comprises: receiving a setting instruction entered by a user, wherein the setting instruction instructs the terminal device to enter a setting interface for setting a location of the volume adjustment region for each physical form of at least one physical form of the screen; displaying the setting interface, wherein the at least one physical form of the screen and at least one to-be-selected location of the volume adjustment region corresponding to each physical form of the at least one physical form of the screen are displayed in the setting interface; determining the location of the volume adjustment region for each physical form based on selection information of the user, the selection information comprising the location of the volume adjustment region that is selected by the user, for each physical form, from the at least one to-be-selected location of the volume adjustment region; and storing information of the location of the volume adjustment region for each physical form of the screen.
7. The method according to claim 1, before the receiving, using the screen in the second physical form, the second input information of the volume adjustment region, further comprising: when receiving wakeup information that is entered by a user and that is used to wake up the volume adjustment region, enabling the terminal device to receive the second input information in the volume adjustment region.
8. The method according to claim 1, wherein the first physical form is a physical form of the screen of the terminal device when the terminal device is in an unlocked state.
9. The method according to claim 1, wherein the first input information or the second input information comprises touch information or gesture information.
10. A terminal device, comprising: a transceiver, configured to s to receive first input information of a volume adjustment region on a screen of the terminal device in a first physical form, the volume adjustment region being at a first location on the screen; and a processor, configured to adjust a volume of the terminal device based on the first input information, and when the screen changes from the first physical form to a second physical form different from the second physical form, to change the volume adjustment region from the first location to a second location on the screen based on the second physical form of the screen; and wherein the transceiver is further configured to receive, using the screen in the second physical form, second input information of the volume adjustment region; and the processor is further configured to adjust the volume of the terminal device based on the second input information.
11. The terminal device according to claim 10, wherein the processor is further configured to determine the second location of the volume adjustment region on the screen based on the second physical form of the screen.
12. The terminal device according to claim 10, wherein the first physical form or the second physical form of the screen comprises an expanded form, a folded form, a holder form, a landscape form, or a portrait form, wherein the screen is in the holder form when the screen is folded at a predetermined angle, the predetermined angle is greater than or equal to a folding angle of the screen in the folded form, and is less than or equal to a folding angle of the screen in the expanded form.
13. The terminal device according to claim 12, wherein when the screen is in the expanded form, the volume adjustment region is located at a location on a right side of the screen; when the screen is in the folded form, the volume adjustment region is located at a folded location of the screen; and when the screen is in the holder form, the volume adjustment region is located at a bent location of the screen.
14. The terminal device according to claim 10, wherein an interface displayed by the terminal device on the screen in the second physical form is a user interface of a target application; and the processor is further configured to adjust a volume of the target application based on the second input information, wherein the target application is a program that enables the terminal device to change a location of the volume adjustment region according to a physical form of the screen.
15. The terminal device according to claim 14, wherein the terminal device further comprises a display and a memory; the transceiver is further configured to receive a setting instruction entered by a user, wherein the setting instruction instructs the terminal device to enter a setting interface for setting a location of the volume adjustment region for each physical form of the screen; the display is configured to display the setting interface, wherein at least one physical form of the screen and at least one to-be-selected location of the volume adjustment region corresponding to each physical form of the screen are displayed in the setting interface; the processor is further configured to determine the location of the volume adjustment region for each physical form of the screen based on selection information of the user, the selection information comprising the location of the volume adjustment region selected by the user, for each physical form, from the at least one to-be-selected location of the volume adjustment region; and the memory is configured to store information of the location of the volume adjustment region for each physical form of the screen.
16. The terminal device according to claim 10, wherein the processor is further configured to: when the transceiver receives wakeup information that is entered by a user and that is used to wake up the volume adjustment region, enable the terminal device to receive the second input information in the volume adjustment region.
17. The terminal device according to claim 10, wherein the first physical form is a physical form of the screen when the terminal device is in an unlocked state.
18. The terminal device according to claim 10, wherein the first input information or the second input information comprises at least one of following: touch pressure, a touch location, touch duration, or a touch area.
19. A non-transitory computer-readable storage medium, storing a computer program or instructions, wherein when the computer program or the instructions are run by one or more processors, following operations are implemented: receiving, using a screen of a terminal device in a first physical form, first input information of a volume adjustment region on the screen, the volume adjustment region being at a first location on the screen; adjusting a volume of the terminal device based on the first input information; changing the screen from being in the first physical form to being in a second physical form, wherein the first physical form is different from the second physical form; changing the volume adjustment region from the first location to a second location on the screen based on the second physical form of the screen; receiving, using the screen in the second physical form, second input information of the volume adjustment region; and adjusting the volume of the terminal device based on the second input information.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0054]
[0055]
[0056]
[0057]
[0058]
[0059]
[0060]
[0061]
[0062]
[0063]
[0064]
[0065]
[0066]
[0067]
[0068]
[0069]
[0070]
[0071]
[0072]
[0073]
[0074]
[0075]
DETAILED DESCRIPTION OF ILLUSTRATIVE EMBODIMENTS
[0076] A terminal device in the embodiments of this application may also be referred to as a terminal, user equipment (UE), a mobile station (MS), a mobile terminal (MT), and the like. The terminal device may be a mobile phone, a tablet computer (pad), a computer having a wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self driving, a wireless terminal in remote medical surgery, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, a wireless terminal in a smart home, or the like. It should be understood that all terminal devices in the embodiments of this application are devices with touchscreens. A user may trigger, by touching the screen of the terminal device, the terminal device to perform a corresponding operation. The following embodiments use an example in which the terminal device is a mobile phone to describe the volume adjustment method provided in the embodiments of this application.
[0077]
[0078] With continuous development of terminal devices, screens of the terminal devices are developing toward a curved screen, a super curved screen, a flexible screen, and the like.
[0079] As shown in
[0080] As shown in
[0081]
[0082]
[0083] It should be understood that all the terminal devices shown in
[0084] To resolve the problem of the inconvenient user operation on the volume button of the terminal device with the curved screen, the super curved screen, the flexible screen, or the like, the embodiments of this application provide a volume adjustment method. In the method, a volume adjustment region is set on a screen of a terminal device, and the volume adjustment region may automatically change in location based on different physical forms of the screen of the terminal device, to make it easier to adjust a volume of the terminal device. Correspondingly, when receiving input information in the volume adjustment region, the terminal device may adjust the volume of the terminal device based on the input information. It may be understood that, in the embodiments of this application, different volume adjustment regions that facilitate a user operation may be correspondingly set based on different physical forms of the screen of the terminal device, to further make it easier for a user to adjust the volume of the terminal device.
[0085] The following describes the technical solutions in the embodiments of this application in detail with reference to specific embodiments. The following several specific embodiments may be combined with each other. Same or similar concepts or processes may not be described in some embodiments.
[0086]
[0087] S701: A screen of a terminal device in a first physical form receives first input information of a volume adjustment region.
[0088] S702: Adjust a volume of the terminal device based on the first input information.
[0089] S703: The screen changes from the first physical form to a second physical form, where the first physical form is different from the second physical form; and the volume adjustment region adapts to the second physical form to automatically change in location.
[0090] S704: Receive, in the second physical form, second input information of the volume adjustment region.
[0091] S705: Adjust the volume of the terminal device based on the second input information.
[0092] A physical form of the screen of the terminal device in this embodiment of this application may change. The physical form of the screen of the terminal device may be shown in
[0093] In this embodiment of this application, a location of the volume adjustment region on the screen when the screen of the terminal is in the first physical form is described with reference to
[0094] As shown in
[0095] In this embodiment of this application, when the screen of the terminal device is in the first physical form, the user may trigger, by using the volume adjustment region corresponding to the first physical form, the first input information to be entered. The first input information entered by the user in the volume adjustment region may be touch information, gesture information, or the like. Correspondingly, the terminal device may receive the first input information of the volume adjustment region to adjust the volume of the terminal device.
[0096] In a possible implementation, the first input information in this embodiment of this application is touch information, and the terminal device adjusts the volume of the terminal device based on the received touch information of the volume adjustment region. Optionally, the touch information may include at least one of the following: touch pressure, a touch location, touch duration, and a touch area. It should be understood that, in this embodiment of this application, for a form of the touch information that is of the volume adjustment region and that is received by the terminal device, refer to a form of received touch information (for example, tapping, sliding, or pressing) of a user for a screen in the conventional technology, and this is not limited in this embodiment of this application.
[0097] In a possible implementation, the first input information in this embodiment of this application is gesture information, and the terminal device adjusts the volume of the terminal device based on the received gesture information of the volume adjustment region. Optionally, the gesture information may be a gesture. It should be understood that, in this embodiment of this application, for a manner of obtaining the received gesture information of the volume adjustment region of the screen of the terminal device, refer to a manner of receiving gesture information of a user for a screen (for example, a finger faces upward, a finger faces upward, a hand moves up, or a hand moves down) in the conventional technology, and this is not limited in this embodiment of this application.
[0098] In S702, after receiving the first input information, the terminal device may adjust the volume of the terminal device based on the first input information. It should be understood that adjusting the volume of the terminal device in this embodiment is adjusting a volume played by the terminal device.
[0099] In a possible implementation, in this embodiment of this application, volume adjustment operations of the terminal device that are triggered by different input information may be preset, so that when corresponding input information is received, an operation triggered by the touch information is performed. The input information includes the first input information.
[0100] For example, if the first input information is touch information, and the touch information includes a touch location, as shown in
[0101] For example, if the touch information includes touch pressure, volume adjustment operations triggered by different touch pressure may be preset in this embodiment of this application. For example, when the touch pressure is greater than preset pressure, the terminal device may increase the volume of the terminal device based on the touch pressure. For example, when the touch pressure is less than the preset pressure, the terminal device may decrease the volume of the terminal device based on the touch pressure. It may be understood that, if the touch information includes touch duration and a touch area, a same setting manner as the touch pressure may also be used to trigger an operation of increasing or decreasing the volume of the terminal device when the terminal device detects different touch duration or touch areas. Details are not described herein again.
[0102] It should be understood that, in this embodiment of this application, volume adjustment operations triggered by different touch information may be alternatively set by using a combination form of the touch pressure, the touch location, the touch duration, the touch area, and the like that are included in the touch information. For example, if the touch information includes a touch location and touch duration, as shown in
[0103] For example, if the first input information is gesture information, as shown in
[0104] In a possible implementation, to avoid a user misoperation, in this embodiment of this application, before input information of the volume adjustment region of the screen is received, it may be further detected whether the volume adjustment region of the screen is woken up. When the volume adjustment region of the screen is not woken up, the input information cannot be received in the volume adjustment region; and when the volume adjustment region of the screen is woken up, the input information can be received in the volume adjustment region.
[0105] In this embodiment of this application, a rule for triggering wakeup information to be entered may be preset. When receiving the wakeup information that is entered by the user and that is used to wake up the volume adjustment region, the terminal device is enabled to receive input information in the volume adjustment region. For example, the user may double-tap the screen of the terminal device to trigger the wakeup information to be entered; or the user may enter a preset track on the screen of the terminal device to trigger the wakeup information to be entered, where for example, entering the preset track may be drawing a “circle” or making a “check mark” by the user on the screen of the terminal device; or the user may double-tap the volume adjustment region to trigger the wakeup information to be entered. It should be understood that, when the user triggers, by using the volume adjustment region, the wakeup information to be entered, the wakeup information may have a different setting from the foregoing touch information. It should be understood that the input information includes the first input information and the second input information. Correspondingly, when receiving the wakeup information that is entered by the user and that is used to wake up the volume adjustment region, the terminal device is enabled to receive the first input information or the second input information in the volume adjustment region.
[0106] In S703, when the physical form of the screen changes, the volume adjustment region adapts to a changed physical form of the screen to automatically change in location. In this embodiment of this application, the screen changes from the first physical form to the second physical form. The first physical form is different from the second physical form. It should be understood that the second physical form in this embodiment of this application may be any one of physical forms such as the expanded form, the folded form, the holder form, the landscape form, and the portrait form, and is a form different from the first physical form.
[0107] For example, the first physical form of the screen is the expanded form shown in
[0108] In this embodiment of this application, when the screen changes from the first physical form to the second physical form, the volume adjustment region adapts to the second physical form to automatically change in location. In other words, when the screen of the terminal device in this embodiment of this application is in different physical forms, locations of the volume adjustment region on the screen are different. That is, the location of the volume adjustment region on the screen in this embodiment of this application changes with the physical form of the screen.
[0109] For example, when the first physical form is the expanded form shown in
[0110] It should be understood that, in this embodiment of this application, the volume adjustment region corresponding to the screen of the terminal device in the first physical form or the first physical form may be preset, and the user may also reselect and set, as required, a location that is on a screen in the first physical form and that is of a volume adjustment region corresponding to the screen. A specific process in which the user sets locations that are on screens in different physical forms and that are of volume adjustment regions corresponding to the screens is described in the following descriptions.
[0111] In S704 and S705, the terminal device receives, in the second physical form, the second input information of the volume adjustment region, and adjusts the volume of the terminal device based on the second input information. For a specific implementation, refer to the related descriptions in S701 and S702 in the foregoing embodiment. Details are not described herein again.
[0112] The volume adjustment method provided in this embodiment of this application includes: The screen of the terminal device in the first physical form receives the first input information of the volume adjustment region. The volume of the terminal device is adjusted based on the first input information. The screen changes from the first physical form to the second physical form. The first physical form is different from the second physical form. The volume adjustment region adapts to the second physical form to automatically change in location. The second input information of the volume adjustment region is received in the second physical form. The volume of the terminal device is adjusted based on the second input information. In the method, the volume adjustment region on the screen of the terminal device may automatically change in location based on a change of the physical form of the screen of the terminal device, to make it easier for the user to adjust the volume of the terminal device in the volume adjustment region. Correspondingly, when receiving input information in the volume adjustment region, the terminal device may adjust the volume of the terminal device based on the input information.
[0113] Based on the foregoing embodiment, before receiving the second input information of the volume adjustment region when the screen of the terminal device is in the second physical form, the terminal device further needs to determine the volume adjustment region of the screen in the second physical form based on the physical form of the screen. The following embodiment describes a case in which the volume adjustment region of the second screen is determined when the screen is in the second physical form.
[0114] In a possible implementation,
[0115] S706: Determine the volume adjustment region of the screen based on the second physical form of the screen.
[0116] As described in the foregoing embodiment of this application, when the screen is in different physical forms, locations of the volume adjustment region on the screen are different. Optionally, as shown in
[0117] In this embodiment of this application, the terminal device stores a correspondence between at least one physical form of the screen and a volume adjustment region. After the current physical form of the screen is determined, a volume adjustment region of the screen may be determined based on the current physical form of the screen and the correspondence. For example, Table 1 shows an example of the correspondence that is between at least one physical form of the screen and a volume adjustment region and that is stored in the terminal device in this embodiment of this application.
TABLE-US-00001 TABLE 1 Physical form of the screen Volume adjustment region Expanded form Location on the right side of the screen Folded form Location at which the screen is folded in half Holder form Bent location of the screen
[0118] For example, if it is determined that the current physical form of the screen is the folded form, it may be determined, based on the correspondence, that the volume adjustment region of the screen is the location at which the screen is folded in half.
[0119] Optionally, in this implementation, the volume adjustment region corresponding to the first physical form of the screen may also be determined in the foregoing manner of determining the volume adjustment region corresponding to the first physical form. Optionally, the first physical form of the screen is a physical form of the screen when an unlocked state is entered. Optionally, the first physical form of the screen may be any physical form of the screen of the terminal device when the unlocked state is entered.
[0120] In a possible implementation, in this embodiment of this application, the volume adjustment method in this embodiment of this application may be applied to a target application. The target application is a program that enables the volume adjustment region to adapt to the physical form of the screen to automatically change in location. For example, the target application is an application that can play audio and videos, for example, an X audio and video player, an X phone application, or an X social application.
[0121] Correspondingly, in this embodiment of this application, an interface of the terminal device whose screen is in the second physical form is a user interface of the target application. When receiving the second input information of the volume adjustment region, the terminal device adjusts a volume of the target application. The target application is a program that enables the volume adjustment region to adapt to the physical form of the screen to automatically change in location.
[0122] For example,
[0123] A volume adjustment region for at least one physical form of the screen in this embodiment of this application is defined by the user. The following describes a manner of setting the volume adjustment region for the at least one physical form of the screen in this embodiment of this application with reference to
[0124] A setting interface is displayed when a setting instruction entered by the user is received. The setting instruction is used to instruct to enter a setting interface of the volume adjustment region for the at least one physical form of the screen. In a possible implementation, a rule for triggering the setting instruction to be entered may be preset in this embodiment of this application. For the rule for triggering the setting instruction to be entered, refer to the rule for triggering the wakeup information to be entered in the foregoing embodiment. Details are not described again in this embodiment.
[0125] The at least one physical form of the screen and at least one to-be-selected volume adjustment region corresponding to each physical form of the screen are displayed in the setting interface in this embodiment of this application. For example,
[0126] As shown in
[0127] In this embodiment of this application, a volume adjustment region corresponding to each physical form of the screen is determined based on selection information of the user for the at least one to-be-selected volume adjustment region corresponding to each physical form of the screen. For example, the user may enter, through tapping or the like, the selection information of the at least one to-be-selected volume adjustment region corresponding to each physical form of the screen. The user may tap, on a screen in the expanded form, a dotted-line box at a location on a right side of the screen, to trigger selection information of a to-be-selected volume adjustment region at the location on the right side of the screen to be entered. The user may tap, on a screen in the folded form, a dotted-line box at a location at which the screen is folded in half, to trigger, to be entered, selection information for a to-be-selected volume adjustment region at the location that is on the screen and at which the screen is folded in half. For example, as shown in
[0128] The selection information includes location information, on the screen, of the at least one to-be-selected volume adjustment region that corresponds to each physical form of the screen and that is selected by the user. In this embodiment of this application, after the selection information of the user for the at least one to-be-selected volume adjustment region corresponding to each physical form of the screen is received, the volume adjustment region corresponding to each physical form of the screen may be determined based on the location information, on the screen, that is of the at least one to-be-selected volume adjustment region corresponding to each physical form of the screen and that is included in the selection information. For example, it is determined that the volume adjustment region of the screen in the expanded form is at the location on the right side of the screen, and it is determined that the volume adjustment region of the screen in the expanded form is at the location at which the screen is folded in half.
[0129] In this embodiment of this application, a volume adjustment region for each physical form or a correspondence between each physical form and a volume adjustment region may be established and stored based on the volume adjustment region corresponding to each physical form of the screen, as shown in Table 1.
[0130] In a possible implementation, if the volume adjustment method in this application is specific to the target application, establishing a volume adjustment region for at least one physical form of the screen may be performing, when the interface currently displayed by the terminal device is the user interface of the target application, a series of steps such as displaying the setting interface when the setting instruction entered by the user is received. It may be understood that, for different applications, locations of corresponding volume adjustment regions on the screen when the screen is in a same physical state may be different.
[0131] With reference to
[0132] The application framework may include various frameworks, for example, a touch event processing system (an input subsystem), an audio and video system (including a volume adjustment capability), and an FWK screen/window management system, that provide framework services for applications. During specific implementation, the frameworks may run in Java space. The volume adjustment module is configured to receive change information that is of a physical form of a screen and that is reported by the FWK screen/window management system and touch information that is of a volume adjustment region and that is reported by the touch event processing system, to control the audio and video system to adjust a volume of the terminal device. The foregoing hardware device may include the screen of the terminal device, for example, LCD hardware for detecting touch information and/or hardware for detecting gesture information. An example in which the hardware device is LCD hardware is used for description below. The LCD hardware may report collected touch information of the volume adjustment region to the touch event processing system, so that the touch event processing system reports the touch information to the volume adjustment module.
[0133]
[0134] S1701: A volume adjustment module may register change listening of a physical form of a screen with an FWK screen/window management system.
[0135] In this embodiment of this application, the volume adjustment module may register the change listening of the physical form of the screen with the FWK screen/window management system, so that when detecting that the physical form of the screen changes, the FWK screen/window management system reports change information of the physical form of the screen to the volume adjustment module. The change information may include a changed physical form of the screen, namely, a current physical form of the screen of the terminal device.
[0136] S1702: When detecting that the physical form of the screen of the terminal device changes, the FWK screen/window management system reports the change information of the physical form of the screen to the volume adjustment module.
[0137] Correspondingly, the volume adjustment module receives the change information of the physical form of the screen from the FWK screen/window management system.
[0138] S1703: The volume adjustment module determines the physical form of the screen based on the change information of the physical form of the screen.
[0139] S1704: The volume adjustment module determines a volume adjustment region of the screen based on the physical form of the screen.
[0140] It should be understood that the volume adjustment module in this embodiment of this application may store a correspondence between at least one physical form of the screen and a volume adjustment region, and the volume adjustment module may determine the volume adjustment region of the screen based on the physical form of the screen in the change information of the screen and the correspondence.
[0141] S1705: The volume adjustment module registers touch event listening of the volume adjustment region with a touch event processing system.
[0142] In this embodiment of this application, the volume adjustment module may register the touch event listening of the volume adjustment region with the touch event processing system, so that when receiving a touch event (namely, the touch information in the embodiments of this application) reported by LCD hardware, the touch event processing system reports the touch information of the volume adjustment region to the volume adjustment module.
[0143] S1706: The touch event processing system receives the touch information that is of the volume adjustment region and that is reported by the LCD hardware.
[0144] S1707: The touch event processing system reports the touch information of the volume adjustment region to the volume adjustment module.
[0145] Correspondingly, the volume adjustment module receives the touch information that is of the volume adjustment region and that is reported by the touch event processing system.
[0146] S1708: The volume adjustment module sends a control instruction to an audio and video system.
[0147] The volume adjustment module may determine, based on the touch information, whether to increase or decrease a volume of the terminal device. The control instruction is used to instruct to increase or decrease the volume of the terminal device.
[0148] S1709: The audio and video system adjusts the volume of the terminal device according to the control instruction.
[0149] It should be understood that, for a manner of adjusting the volume of the terminal device by the audio and video system in this embodiment of this application, refer to a volume adjustment manner in the conventional technology, and details are not described herein.
[0150] In this embodiment of this application, the terminal device stores the correspondence between at least one physical form of the screen and a volume adjustment region. The volume adjustment region of the screen can be determined based on the physical form of the screen and the correspondence, so that after input information of the volume adjustment region is obtained, the volume of the terminal device is adjusted based on the input information. In the volume adjustment method in this embodiment of this application, the volume adjustment region on the screen of the terminal device may change with the physical form of the screen of the terminal device, to make it easier for a user to adjust the volume of the terminal device in the volume adjustment region. Further, in this embodiment of this application, the volume adjustment method may be used for a target application, so that flexibility of the terminal device is improved, and the user may independently set the correspondence between at least one physical form of the screen and a volume adjustment region, so that user experience is improved.
[0151]
[0152] The transceiver module 1801 is used by a screen of the terminal device in a first physical form to receive first input information of a volume adjustment region.
[0153] The processing module 1802 is configured to adjust a volume of the terminal device based on the first input information.
[0154] The screen changes from the first physical form to a second physical form. The first physical form is different from the second physical form.
[0155] The volume adjustment region adapts to the second physical form to automatically change in location.
[0156] The transceiver module 1801 is further configured to receive, in the second physical form, second input information of the volume adjustment region.
[0157] The processing module 1802 is further configured to adjust the volume of the terminal device based on the second input information.
[0158] In a possible design, the processing module 1802 is further configured to determine the volume adjustment region of the screen based on the second physical form of the screen.
[0159] In a possible design, the first physical form or the second physical form of the screen includes an expanded form, a folded form, a holder form, a landscape form, or a portrait form, the holder form means that the screen is folded at a predetermined angle, and the predetermined angle is greater than or equal to a folding angle of the screen in the folded form, and is less than or equal to a folding angle of the screen in the expanded form.
[0160] In a possible design, when the screen is in the expanded form, a location of the volume adjustment region on the screen is a location on a right side of the screen; when the screen is in the folded form, a location of the volume adjustment region on the screen is a folded location of the screen; and when the screen is in the holder form, a location of the volume adjustment region on the screen is a bent location of the screen.
[0161] In a possible design, an interface of the terminal device in the second physical form is a user interface of a target application; and the processing module 1802 is specifically configured to adjust a volume of the target application based on the second input information. The target application is a program that enables the volume adjustment region to adapt to a physical form of the screen to automatically change in location.
[0162] In a possible design, the transceiver module 18oi is further configured to receive a setting instruction entered by a user, where the setting instruction is used to instruct to enter a setting interface for setting a volume adjustment region for each physical form of the screen; the display module 1803 is configured to display the setting interface, where at least one physical form of the screen and at least one to-be-selected volume adjustment region corresponding to each physical form of the screen are displayed in the setting interface; the processing module 1802 is further configured to determine the volume adjustment region for each physical form of the screen based on selection information of the user for the at least one to-be-selected volume adjustment region corresponding to each physical form of the screen; and the storage module 1804 is configured to store the volume adjustment region for each physical form of the screen.
[0163] In a possible design, the processing module 1802 is further configured to: when the transceiver module 1801 receives wakeup information that is entered by the user and that is used to wake up the volume adjustment region, enable the terminal device to receive the second input information in the volume adjustment region.
[0164] In a possible design, the first physical form is a physical form of the screen when an unlocked state is entered.
[0165] In a possible design, the first input information/the second input information includes at least one of the following: touch pressure, a touch location, touch duration, and a touch area.
[0166] For beneficial effects of the volume adjustment apparatus provided in this embodiment of this application, refer to the beneficial effects in the foregoing volume adjustment method. Details are not described herein again.
[0167]
[0168] The transceiver 1901 is used by a screen of the terminal device in a first physical form to receive first input information of a volume adjustment region.
[0169] The processor 1902 is configured to adjust a volume of the terminal device based on the first input information.
[0170] The screen changes from the first physical form to a second physical form. The first physical form is different from the second physical form.
[0171] The volume adjustment region adapts to the second physical form to automatically change in location.
[0172] The transceiver 1901 is further configured to receive, in the second physical form, second input information of the volume adjustment region.
[0173] The processor 1902 is further configured to adjust the volume of the terminal device based on the second input information.
[0174] In a possible design, the processor 1902 is further configured to determine the volume adjustment region of the screen based on the second physical form of the screen.
[0175] In a possible design, the first physical form or the second physical form of the screen includes an expanded form, a folded form, a holder form, a landscape form, or a portrait form, the holder form means that the screen is folded at a predetermined angle, and the predetermined angle is greater than or equal to a folding angle of the screen in the folded form, and is less than or equal to a folding angle of the screen in the expanded form.
[0176] In a possible design, when the screen is in the expanded form, a location of the volume adjustment region on the screen is a location on a right side of the screen; when the screen is in the folded form, a location of the volume adjustment region on the screen is a folded location of the screen; and when the screen is in the holder form, a location of the volume adjustment region on the screen is a bent location of the screen.
[0177] In a possible design, an interface of the terminal device in the second physical form is a user interface of a target application; and the processor 1902 is specifically configured to adjust a volume of the target application based on the second input information. The target application is a program that enables the volume adjustment region to adapt to a physical form of the screen to automatically change in location.
[0178] In a possible design, the transceiver 1901 is further configured to receive a setting instruction entered by a user, where the setting instruction is used to instruct to enter a setting interface for setting a volume adjustment region for each physical form of the screen;
[0179] the display 1903 is configured to display the setting interface, where at least one physical form of the screen and at least one to-be-selected volume adjustment region corresponding to each physical form of the screen are displayed in the setting interface;
[0180] the processor 1902 is further configured to determine the volume adjustment region for each physical form of the screen based on selection information of the user for the at least one to-be-selected volume adjustment region corresponding to each physical form of the screen; and
[0181] the memory 1904 is configured to store the volume adjustment region for each physical form of the screen.
[0182] In a possible design, the processor 1902 is further configured to: when the transceiver 1901 receives wakeup information that is entered by the user and that is used to wake up the volume adjustment region, enable the terminal device to receive the second input information in the volume adjustment region.
[0183] In a possible design, the first physical form is a physical form of the screen when an unlocked state is entered.
[0184] In a possible design, the first input information/the second input information includes at least one of the following: touch pressure, a touch location, touch duration, and a touch area.
[0185] The transceiver 1901 is coupled to the processor 1902, and the processor 1902 controls a reception/transmission action of the transceiver 1901. The memory 1904 may include a high-speed random-access memory (RAM), and may further include a non-volatile memory (NVM), for example, at least one disk memory. The memory 1904 may store various instructions, to complete various processing functions and implement the method steps in this application. Optionally, the terminal device in this application may further include a power supply 1905, a communications bus 1906, and a communications port 1907. The transceiver 1901 may be integrated into a transceiver of the terminal device, or may be an independent transceiver antenna of the terminal device. The communications bus 1906 is configured to implement a communication connection between elements. The communications port 1906 is configured to implement a connection and communication between the terminal device and another peripheral. The display 1903 may be connected to the processor 1902, to display the setting interface in the foregoing embodiment under control of the processor 1902.
[0186] In this embodiment of this application, the memory 1904 is configured to store computer executable program code. The program code includes instructions. When the processor 1902 executes the instructions, the instructions cause the processor 1902 of the terminal device to perform the processing action of the terminal device in the foregoing method embodiments and cause the transceiver 1901 to perform the reception/transmission action of the terminal device in the foregoing method embodiments. Implementation principles and technical effects thereof are similar, and are not described herein again.
[0187] All or some of the foregoing embodiments may be implemented by using software, hardware, firmware, or any combination thereof. When software is used to implement the embodiments, all or some of the embodiments may be implemented in a form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or some of the procedures or functions according to the embodiments of this application are generated. The computer may be a general-purpose computer, a dedicated computer, a computer network, or another programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or may be transmitted from a computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center to another website, computer, server, or data center in a wired (for example, a coaxial cable, an optical fiber, or a digital subscriber line (DSL)) or wireless (for example, infrared, radio, or microwave) manner. The computer-readable storage medium may be any usable medium accessible by a computer, or a data storage device, such as a server or a data center, integrating one or more usable media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, DVD), a semiconductor medium (for example, a solid state disk (SSD)), or the like.
[0188] The term “a plurality of” in this specification refers to two or more than two. The term “and/or” in this specification describes only an association between associated objects and represents that three relationships may exist. For example, A and/or B may represent the following three cases: Only A exists, both A and B exist, and only B exists. In addition, the character “/” in this specification usually indicates an “or” relationship between the associated objects. In a formula, the character “/” indicates a “division” relationship between associated objects.
[0189] It may be understood that various numbers in the embodiments of this application are merely used for ease of distinguishing, and are not used to limit the scope of the embodiments of this application.
[0190] It may be understood that in the embodiments of this application, sequence numbers of the foregoing processes do not mean execution sequences. The execution sequences of the processes should be determined based on functions and internal logic of the processes, and should not be construed as any limitation on the implementation processes of the embodiments of this application.