Incoming call volume control method and electronic device
Abstract
This application provides an incoming call volume control method and an electronic device. The method includes: An electronic device determines to start a detection based on a state of a display screen, a state of an optical proximity sensor, and an incoming call situation. During the detection, if target biological feature information is detected by the electronic device, the electronic device may adjust an incoming call volume. Therefore, a convenient and fast incoming call volume adjustment mode is provided, which enables a user to adjust the incoming call volume without operating the electronic device. Moreover, the electronic device starts the detection when a specific condition is satisfied, thereby effectively reducing power consumption while ensuring time relevancy and high efficiency of the detection.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 15 · Forward citations: 0.
Claims (19 — 3 Independent, 16 Dependent)
- Claim 1Independent Claim
An electronic device, comprising: one or more processors, a memory, and a fingerprint sensor; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and when the computer programs are executed by the one or more processors, the electronic device is caused to perform the following steps: receiving first incoming call information when the electronic device is in a screen off state; in response to the received first incoming call information, switching, by the electronic device, the screen off state to a screen on state, and playing an incoming call ringtone, wherein the incoming call ringtone is at a first volume; starting a first detection when it is detected that an optical proximity sensor of the electronic device satisfies a first preset condition, wherein a duration of the first detection is a first duration; detecting biological feature information during the first detection; ending the first detection, and starting a second detection, wherein a time difference between an end moment of the first detection and a start moment of the second detection is a second duration; and adjusting the first volume of the incoming call ringtone to a second volume when first target biological feature information is detected at a first moment during the second detection, wherein the second volume is less than the first volume.
- Claim 2Depends on #1
The electronic device according to claim 1, wherein when the computer programs are executed by the one or more processors, the electronic device is caused to perform the following step: ending the second detection when first target biological feature information is detected.
- Claim 3Depends on #1
The electronic device according to claim 1, wherein when the computer programs are executed by the one or more processors, the electronic device is caused to perform the following steps: receiving second incoming call information when the electronic device is in the screen on state; playing the incoming call ringtone in response to the received second incoming call information, wherein the incoming call ringtone is at the first volume; starting a third detection when it is detected that the optical proximity sensor of the electronic device satisfies the first preset condition, wherein a duration of the third detection is the first duration; detecting biological feature information during the third detection; ending the third detection, and starting a fourth detection, wherein a time difference between an end moment of the third detection and a start moment of the fourth detection is a third duration, and a duration of the fourth detection is a fourth duration; detecting biological feature information during the fourth detection; ending the fourth detection, and starting a fifth detection, wherein a time difference between an end moment of the fourth detection and a start moment of the fifth detection is a fifth duration; and adjusting the first volume of the incoming call ringtone to the second volume when second target biological feature information is detected at a second moment during the fifth detection; wherein the third duration is different from the second duration, the fourth duration is less than the first duration, the fifth duration is greater than the third duration, and a duration of the fifth detection is a sixth duration, and the sixth duration is less than the fourth duration.
- Claim 4Depends on #3
The electronic device according to claim 3, wherein when the computer programs are executed by the one or more processors, the electronic device is caused to perform the following step: ending the fifth detection when the second target biological feature information is detected.
- Claim 5Depends on #1
The electronic device according to claim 1, wherein when the computer programs are executed by the one or more processors, the electronic device is caused to perform the following steps: receiving third incoming call information when the electronic device is in the screen on state; playing the incoming call ringtone in response to the received third incoming call information, wherein the incoming call ringtone is at the first volume; starting a sixth detection when it is detected that the optical proximity sensor of the electronic device satisfies the first preset condition, wherein a duration of the sixth detection is the first duration; detecting biological feature information during the sixth detection; ending the sixth detection, and starting a seventh detection, wherein a time difference between an end moment of the sixth detection and a start moment of the seventh detection is a sixth duration, and a duration of the seventh detection is a seventh duration; detecting biological feature information during the seventh detection; starting an eighth detection when the seventh detection ends, wherein a time difference between an end moment of the seventh detection and a start moment of the eighth detection is an eighth duration, and a duration of the eighth detection is a ninth duration; ending the eighth detection, and starting a ninth detection, wherein a duration of the ninth detection is the first duration; detecting biological feature information during the ninth detection; and adjusting the first volume of the incoming call ringtone to the second volume when third target biological feature information is detected at a third moment during the ninth detection.
- Claim 6Depends on #1
The electronic device according to claim 1, wherein when the computer programs are executed by the one or more processors, the electronic device is caused to perform the following steps: receiving fourth incoming call information when the electronic device is in the screen on state; playing the incoming call ringtone in response to the received fourth incoming call information, wherein the incoming call ringtone is at the first volume; starting a tenth detection when it is detected that the optical proximity sensor of the electronic device satisfies the first preset condition, wherein a duration of the tenth detection is the first duration; and adjusting the first volume of the incoming call ringtone to the second volume at a fourth moment during the tenth detection when it is detected that the optical proximity sensor satisfies a second preset condition.
- Claim 7Depends on #6
The electronic device according to claim 6, wherein the third preset condition comprises: an incoming call is hung up, the incoming call is answered, or the incoming call ends.
- Claim 8Depends on #1
The electronic device according to claim 1, wherein when the computer programs are executed by the one or more processors, the electronic device is caused to perform the following steps: receiving fifth incoming call information when the electronic device is in the screen on state; playing the incoming call ringtone in response to the received fifth incoming call information, wherein the incoming call ringtone is at the first volume; starting an eleventh detection when it is detected that the optical proximity sensor of the electronic device satisfies the first preset condition, wherein a duration of the eleventh detection is the first duration; and stopping playing the incoming call ringtone during the eleventh detection when it is detected that the incoming call information satisfies a third preset condition.
- Claim 9Depends on #1
The electronic device according to claim 1, wherein the first target biological feature information is human eye feature information.
- Claim 10Independent Claim
An incoming call volume control method, comprising: receiving first incoming call information when an electronic device is in a screen off state; in response to the received first incoming call information, switching, by the electronic device, the screen off state to a screen on state, and playing an incoming call ringtone, wherein the incoming call ringtone is at a first volume; starting a first detection when it is detected that an optical proximity sensor of the electronic device satisfies a first preset condition, wherein a duration of the first detection is a first duration; detecting biological feature information during the first detection; ending the first detection, and starting a second detection, wherein a time difference between an end moment of the first detection and a start moment of the second detection is a second duration; and adjusting the first volume of the incoming call ringtone to a second volume when first target biological feature information is detected at a first moment during the second detection, wherein the second volume is less than the first volume.
- Claim 11Depends on #10
The method according to claim 10, further comprising: ending the second detection when first target biological feature information is detected.
- Claim 12Depends on #10
The method according to claim 10, further comprising: receiving second incoming call information when the electronic device is in the screen on state; playing the incoming call ringtone in response to the received second incoming call information, wherein the incoming call ringtone is at the first volume; starting a third detection when it is detected that the optical proximity sensor of the electronic device satisfies the first preset condition, wherein a duration of the third detection is the first duration; detecting biological feature information during the third detection; ending the third detection, and starting a fourth detection, wherein a time difference between an end moment of the third detection and a start moment of the fourth detection is a third duration, and a duration of the fourth detection is a fourth duration; detecting biological feature information during the fourth detection; ending the fourth detection, and starting a fifth detection, wherein a time difference between an end moment of the fourth detection and a start moment of the fifth detection is a fifth duration; and adjusting the first volume of the incoming call ringtone to the second volume when second target biological feature information is detected at a second moment during the fifth detection; wherein the third duration is different from the second duration, the fourth duration is less than the first duration, the fifth duration is greater than the third duration, and a duration of the fifth detection is a sixth duration, and the sixth duration is less than the fourth duration.
- Claim 13Depends on #12
The method according to claim 12, comprising: ending the fifth detection when the second target biological feature information is detected.
- Claim 14Depends on #10
The method according to claim 10, comprising: receiving third incoming call information when the electronic device is in the screen on state; playing the incoming call ringtone in response to the received third incoming call information, wherein the incoming call ringtone is at the first volume; starting a sixth detection when it is detected that the optical proximity sensor of the electronic device satisfies the first preset condition, wherein a duration of the sixth detection is the first duration; detecting biological feature information during the sixth detection; ending the sixth detection, and starting a seventh detection, wherein a time difference between an end moment of the sixth detection and a start moment of the seventh detection is a sixth duration, and a duration of the seventh detection is a seventh duration; detecting biological feature information during the seventh detection; starting an eighth detection when the seventh detection ends, wherein a time difference between an end moment of the seventh detection and a start moment of the eighth detection is an eighth duration, and a duration of the eighth detection is a ninth duration; ending the eighth detection, and starting a ninth detection, wherein a duration of the ninth detection is the first duration; detecting biological feature information during the ninth detection; and adjusting the first volume of the incoming call ringtone to the second volume when third target biological feature information is detected at a third moment during the ninth detection.
- Claim 15Depends on #10
The method according to claim 10, comprising: receiving fourth incoming call information when the electronic device is in the screen on state; playing the incoming call ringtone in response to the received fourth incoming call information, wherein the incoming call ringtone is at the first volume; starting a tenth detection when it is detected that the optical proximity sensor of the electronic device satisfies the first preset condition, wherein a duration of the tenth detection is the first duration; and adjusting the first volume of the incoming call ringtone to the second volume at a fourth moment during the tenth detection when it is detected that the optical proximity sensor satisfies a second preset condition.
- Claim 16Depends on #10
The method according to claim 10, further comprising: receiving fifth incoming call information when the electronic device is in the screen on state; playing the incoming call ringtone in response to the received fifth incoming call information, wherein the incoming call ringtone is at the first volume; starting an eleventh detection when it is detected that the optical proximity sensor of the electronic device satisfies the first preset condition, wherein a duration of the eleventh detection is the first duration; and stopping playing the incoming call ringtone during the eleventh detection when it is detected that the incoming call information satisfies a third preset condition.
- Claim 17Depends on #16
The method according to claim 16, wherein the third preset condition comprises: an incoming call is hung up, the incoming call is answered, or the incoming call ends.
- Claim 18Depends on #10
The method according to claim 10, wherein the first target biological feature information is human eye feature information.
- Claim 19Independent Claim
A non-transitory computer-readable storage medium, comprising a computer program, wherein when the computer program is run on an electronic device, the electronic device is caused to perform: receiving first incoming call information when an electronic device is in a screen off state; in response to the received first incoming call information, switching, by the electronic device, the screen off state to a screen on state, and playing an incoming call ringtone, wherein the incoming call ringtone is at a first volume; starting a first detection when it is detected that an optical proximity sensor of the electronic device satisfies a first preset condition, wherein a duration of the first detection is a first duration; detecting biological feature information during the first detection; ending the first detection, and starting a second detection, wherein a time difference between an end moment of the first detection and a start moment of the second detection is a second duration; and adjusting the first volume of the incoming call ringtone to a second volume when first target biological feature information is detected at a first moment during the second detection, wherein the second volume is less than the first volume.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS This application is a national stage of International Application No. PCT/CN2022/093156, filed on May 16, 2022, which claims priority to Chinese Patent Application No. 202110924918.5, filed on Aug. 12, 2021. The disclosures of both of the aforementioned applications are hereby incorporated by reference in their entireties. TECHNICAL FIELD This application relates to the field of terminal devices, and in particular, to an incoming call volume control method and an electronic device. BACKGROUND Currently, when a mobile phone receives an incoming call, if the user wants to mute the incoming call or reduce a volume of the incoming call, the user needs operate a muting button (such as a power-on button) or adjust a volume button to adjust the volume of the incoming call. However, in a scenario in which it is inconvenient for the user to operate the mobile phone, manually adjusting the volume affects user experience. SUMMARY In order to resolve the foregoing problem, this application provides an incoming call volume control method and an electronic device. In the method, the electronic device may control an incoming call volume based on biological feature information, thereby improving user experience. In a first aspect, this application provides an electronic device. The method includes: one or more processors, a memory, and a fingerprint sensor; and one or more computer programs, where the one or more computer programs are stored in the memory, and when the computer programs are executed by the one or more processors, the electronic device is caused to perform the following steps: receiving first incoming call information when an electronic device is in a screen off state; in response to the received first incoming call information, switching, by the electronic device, the screen off state to a screen on state, and playing an incoming call ringtone, where the incoming call ringtone is at a first volume; starting a first detection
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (15)
| Patent | Title | Year | Citations |
|---|