WO2020102982A1 - 通话处理方法、计算机可读存储介质和电子设备 - Google Patents

通话处理方法、计算机可读存储介质和电子设备

Info

Publication number
WO2020102982A1
WO2020102982A1 PCT/CN2018/116461 CN2018116461W WO2020102982A1 WO 2020102982 A1 WO2020102982 A1 WO 2020102982A1 CN 2018116461 W CN2018116461 W CN 2018116461W WO 2020102982 A1 WO2020102982 A1 WO 2020102982A1
Authority
WO
WIPO (PCT)
Prior art keywords
operation instruction
background operation
application
electronic device
background
Prior art date
Application number
PCT/CN2018/116461
Other languages
English (en)
French (fr)
Inventor
李亚军
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to CN201880098069.9A priority Critical patent/CN113170015B/zh
Priority to PCT/CN2018/116461 priority patent/WO2020102982A1/zh
Publication of WO2020102982A1 publication Critical patent/WO2020102982A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones

Definitions

  • This application relates to the field of computer communication technology, and in particular, to a call processing method, a computer-readable storage medium, and an electronic device.
  • the microphone of the electronic device can be controlled to make the microphone work normally or mute.
  • the conventional method has the problems that the state of the microphone during the call is not consistent with the expected state, and the stability of the call is low.
  • Various embodiments according to the present application provide a call processing method, a computer-readable storage medium, and an electronic device.
  • a call processing method including:
  • the background operation instruction is an instruction to change the working state of the microphone
  • the background operation instruction is filtered.
  • One or more computer-readable storage media containing computer-executable instructions, when the computer-executable instructions are executed by one or more processors, causing the processors to perform the following operations:
  • the background operation instruction is an instruction to change the working state of the microphone
  • the background operation instruction is filtered.
  • An electronic device includes a memory and a processor.
  • the memory stores computer-readable instructions.
  • the processor causes the processor to perform the following operations:
  • the background operation instruction is an instruction to change the working state of the microphone
  • the background operation instruction is filtered.
  • the above call processing method, computer readable storage medium, and electronic device obtain the background operation instruction generated by the background application running in the electronic device by detecting the working state of the microphone of the electronic device during the call, when the background operation instruction is changed When the working state of the microphone is commanded, the background operation command is filtered, so that the working state of the microphone can be maintained and the stability of the call can be improved.
  • FIG. 1 is an application environment diagram of a call processing method in an embodiment.
  • FIG. 2 is a flowchart of a call processing method in an embodiment.
  • FIG. 3 is a flowchart of acquiring a background operation instruction in an embodiment.
  • FIG. 4 is a flowchart of filtering background operation instructions in an embodiment.
  • FIG. 5 is a flowchart of a call processing method in another embodiment.
  • FIG. 6 is a flowchart of a call processing method in still another embodiment.
  • FIG. 7 is a flowchart of a call processing method in an embodiment.
  • FIG. 8 is a structural block diagram of a call processing device in an embodiment.
  • FIG. 9 is a structural block diagram of an electronic device in an embodiment.
  • FIG. 10 is a block diagram of a partial structure of a mobile phone related to an electronic device provided by an embodiment of the present application.
  • first”, “second”, etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from another element.
  • the first application may be referred to as the second application, and similarly, the second application may be referred to as the first application. Both the first application and the second application are applications, but they are not the same application.
  • FIG. 1 is an application environment diagram of a call processing method in an embodiment.
  • the application environment includes an electronic device 110.
  • the electronic device 110 is equipped with a microphone.
  • the electronic device 110 may detect the working state of the microphone during a call, and obtain background operation instructions generated by a background application running in the electronic device 110.
  • the background operation instruction is an instruction to change the working state of the microphone, filter Background operation instructions.
  • the above-mentioned electronic device 110 may be a mobile phone, a computer, a wearable device, etc., which is not limited herein.
  • FIG. 2 is a flowchart of a call processing method in an embodiment.
  • the call processing method in this embodiment is described by taking the electronic device 110 running in FIG. 1 as an example.
  • the call processing method includes operations 202 to 206. among them:
  • Operation 202 detecting the working state of the microphone of the electronic device during the call.
  • a microphone is a device used to convert sound signals into electrical signals.
  • the microphone may be built in or external to the electronic device, and then the electronic device may collect sound signals through the microphone.
  • Calling is the operation of talking through at least two electronic devices.
  • the call may be a voice call or a video call.
  • the working state of the microphone refers to the working state of the microphone during the call.
  • the working state of the microphone may include an operating state, a mute state, an off state, and the like.
  • the electronic device can change the working state of the microphone during the call.
  • the electronic device can detect the working state of the microphone during the call. Specifically, the electronic device can detect the working state of the microphone in real time during a call, or it can detect the working state of the microphone once every interval.
  • Operation 204 Obtain a background operation instruction generated by a background application running in the electronic device.
  • An application program refers to a computer program that can perform specific tasks.
  • the background application is an application running in the background of the electronic device.
  • the application program generates a variety of operation instructions during operation, and the operation instructions are used to direct the work of the electronic equipment.
  • the background operation instruction is an operation instruction initiated by a background application.
  • the background operation instruction may be an operation instruction for controlling a call process, a display screen, a speaker, an application program, etc.
  • the electronic device obtains the background operation instruction generated by the running background application. Specifically, the electronic device can directly obtain the background operation instruction generated by the background application; it can also collect the operation instructions generated by each application during the operation of the electronic device and obtain the background operation instruction corresponding to the background application.
  • the instruction to change the working state of the microphone is the instruction to change the working state of the microphone after the execution of the instruction. For example, when the working state of the microphone is mute during the call, the instruction to make the microphone into the running state or the off state is the instruction to change the working state of the microphone; when the working state of the microphone is the running state during the call.
  • the instruction to enter the closed state of the microphone is the instruction to change the working state of the microphone.
  • the electronic device may detect whether the background operation instruction is an instruction to change the operation state of the microphone according to the working state of the microphone.
  • the electronic device filtering the background operation instruction refers to an operation that does not execute the background operation instruction.
  • the background operation instruction is an instruction to change the working state of the microphone
  • the electronic device filters the background operation instruction.
  • the electronic device may not execute the background operation instruction; the background application that initiated the background operation instruction may be closed or the The background application program, thereby filtering the background operation instruction.
  • the background operation instruction generated by the background application running in the electronic device is obtained by detecting the working state of the microphone of the electronic device during the call, when the background operation instruction is an instruction to change the working state of the microphone At the time, the background operation instruction is filtered, so that the working state of the microphone can be maintained, avoiding the situation that the background application changes the working state of the microphone and causing the microphone to be muted or turned off, and improves the stability of the call.
  • FIG. 3 is a flowchart of acquiring a background operation instruction in an embodiment. As shown in FIG. 3, the process of obtaining the background operation instruction specifically includes:
  • Operation 302 Acquire an audio operation instruction generated when the electronic device is running.
  • the audio operation instruction is used to control audio.
  • Audio is used to describe the audio range and sound equipment and functions, where the sound equipment may include microphones and speakers.
  • Controlling audio means controlling the audio range or sound equipment.
  • the audio operation instructions may include instructions for controlling the volume of audio playback or collection, the working state of the microphone or the speaker, and so on.
  • the audio operation instruction may include an audio playback instruction, a recording instruction, a volume increase instruction, a microphone mute instruction, etc., which is not limited thereto.
  • the electronic device can obtain the audio operation instructions generated when the electronic device is running. Specifically, the electronic device can detect the operation instructions generated by each application program during the operation of the electronic device, and then obtain the operation instructions generated by each application program to control the audio Audio operation instructions.
  • the electronic device may also obtain the audio operation instruction generated by the specified application program.
  • the electronic device can obtain audio operation instructions generated by non-system applications such as third-party applications, or audio operation instructions generated by preset applications, where the preset application can be set by the electronic device according to actual application requirements. It may also be an application program obtained by the electronic device and input by the user.
  • Operation 304 Detect the operation mode corresponding to the application program that generates the audio operation instruction.
  • Run mode refers to how the application runs on the electronic device.
  • the operation mode may include foreground operation and background operation.
  • the foreground operation means that the application is running in the foreground, and there is an interface or window on the electronic device that can interact with the user;
  • the background operation means that the application is running in the background of the electronic device, at this time the application has no interface, but occupies the system Resources.
  • the electronic device can detect the running mode of different application programs during the running process, so that the electronic device can obtain the running mode corresponding to the application program that generates the audio operation instruction.
  • the electronic device uses the audio operation instruction as the background operation instruction.
  • the electronic device may also monitor the background application running in the background, and then obtain the audio operation instruction initiated by the background application as the background operation instruction.
  • the background operation instruction is filtered.
  • the operation mode corresponding to the application that generates the audio operation instruction is detected, and when the operation mode is the background operation, the audio operation instruction is used as the background operation instruction, so that the audio can be controlled Background operation instruction. Furthermore, during the call of the electronic device, when the electronic device detects whether the background operation instruction is an instruction to change the working state of the microphone, the background operation instruction at this time is an instruction to control the audio, which can improve the detection efficiency of the background operation instruction .
  • the process of filtering background operation instructions in the provided call processing method may include operations 402 to 406, where:
  • a first application program initiating a call process and a second application program initiating a background operation instruction are obtained.
  • the first application is an application that can make a call.
  • the first application may be a dialing application, a social application such as WeChat, skype, etc. is not limited thereto.
  • the second application program is a background application program that initiates a background operation instruction. The electronic device can obtain the first application program that initiates the call process and the second application program that initiates the background operation instruction.
  • Operation 404 Acquire a first priority and a second priority corresponding to the first application and the second application, respectively.
  • the electronic device obtains the first priority and the second priority corresponding to the first application and the second application, respectively.
  • the electronic device may pre-store priorities corresponding to different application programs, so as to obtain corresponding first priorities and second priorities according to the first application program and the second application program, respectively.
  • the electronic device can classify each installed application program and set a corresponding priority for each class. There can be one or more applications under each category.
  • the electronic device may also obtain the priority corresponding to each application program input by the user. For example, the electronic device may pre-store the priority of applications A and B at level 1, and the priority of application C at level 2.
  • the priority of level 1 is the highest, and the priority of level 2 is lower than the priority of level 1, then the electronic device The corresponding priority can be obtained according to the application, if the first application is application B, the first priority corresponding to the first application is level 1, if the second application is application C, the corresponding second The priority is level 2.
  • the electronic device filters background operation instructions.
  • the electronic device may obtain the first priority and the second priority, compare the first priority and the second priority, and filter the background operation instruction when the first priority is higher than the second priority.
  • the first priority is level 1
  • the second priority is level 2
  • the electronic device can filter the background operation instructions initiated by the second application.
  • the electronic device may preset the first priority and the second priority to filter the background operation instruction, or may preset the first priority to be the same as the second priority and execute the background operation instruction;
  • the electronic device determines whether to filter the background operation instruction according to a preset rule.
  • the background operation instruction is filtered.
  • the priority of the application determines whether to filter background operation instructions, which can improve the accuracy of the filtering operation.
  • FIG. 5 is a flowchart of a call processing method in another embodiment. As shown in FIG. 5, in one embodiment, the provided call processing method may further include operations 502 to 508. among them:
  • Operation 502 Acquire the first filtering times during which background operation instructions are filtered during a call.
  • the electronic device can detect the number of background operation instructions that are filtered during the call.
  • the first filtering number is the number of background operation instructions filtered during the call.
  • the number of first filtering times gradually increases during the call. Generally, the longer the call time, the greater the number of first filtering times.
  • the electronic device may also obtain the number of times that the same background operation instruction is filtered during the call as the first number of times of filtering.
  • Operation 504 when the first number of filtering times exceeds the first preset number of times, generate background operation information corresponding to the background operation instruction, and display the background operation information.
  • the first preset number of times can be set according to actual application requirements.
  • the first preset number of times may be 5, 10, 12, 18, etc., but is not limited thereto.
  • the background operation information may be text information corresponding to the background operation instruction.
  • the electronic device may generate background operation information corresponding to the background operation instruction when the first filtering number exceeds the first preset number of times. Specifically, the electronic device may convert it into corresponding background operation information according to the operation object and operation mode contained in the background operation instruction. Background operation information can be displayed on the display screen of the electronic device.
  • the provided call processing method may determine the first preset number of times according to at least one of the system occupancy rate of the electronic device during the call and the current call duration.
  • the system occupancy rate refers to the size of the central processor resources occupied by applications running on electronic devices. The higher the system occupancy rate, the more applications currently running on the electronic device, and vice versa.
  • the electronic device may also use the size of the central processor resource occupied by the application running in the background of the electronic device as the system occupancy rate.
  • Current call duration refers to the duration of the current call. The current call duration gradually increases as the call progresses. The electronic device determines the first preset number of times according to at least one of the system occupancy rate and the current call duration.
  • the electronic device may determine the first preset number of times according to the system occupancy rate, where the greater the system occupancy rate, the larger the first preset number of times, and vice versa; the first preset number of times may also be determined according to the duration of the call, where , The greater the duration of the call, the greater the first preset number, and vice versa; the first preset number can also be determined according to the system occupancy rate and the duration of the call.
  • the electronic device can preset the system occupancy rate and the duration of the call respectively The corresponding weight value determines the first preset number of times according to the weight value.
  • the electronic device may preset the first preset number of times with a call duration less than 2 minutes to 5 times, the first preset number of times with a call duration greater than 2 minutes and less than 5 minutes to 15 times, and the second A preset number of times is 20 times, etc., so that the electronic device can obtain the corresponding first preset number of times according to the current call duration.
  • Operation 506 Acquire an execution instruction input according to background operation information.
  • the execution instruction may be generated by the user by clicking a button on the display screen, or may be generated by the user by pressing a control on the touch screen, and the electronic device may obtain an execution instruction for background operation information.
  • the electronic device may display background operation information through a pop-up window, and set a confirm and cancel button on the pop-up window, and generate a corresponding execution instruction by receiving a user's touch operation on the confirm button or the cancel button.
  • Operation 508 processing the background operation instruction according to the execution instruction.
  • the electronic device processes the background operation instruction according to the execution instruction. Specifically, when the execution instruction is a determination execution instruction, the electronic device executes a background operation instruction according to the execution instruction; when the execution instruction is a cancel execution instruction, the electronic device filters the background operation instruction according to the execution instruction. For example, when the background operation instruction is a mute microphone instruction, the electronic device may display a pop-up window of the mute microphone on the display screen, and set OK and cancel buttons to generate a corresponding execution instruction according to the user's touch operation. When the instruction is executed, the background operation instruction is executed to mute the microphone. When the execution instruction is the cancel execution instruction, the background operation instruction is canceled and the working state of the microphone is maintained.
  • the accuracy of background operation instruction processing can be obtained.
  • the provided call processing method may further include operations 602 to 606. among them:
  • Operation 602 obtaining a second application program that initiates a background operation instruction.
  • the second application is a background application that initiates a background operation instruction.
  • the electronic device may obtain the second application program that initiates the background operation instruction.
  • Operation 604 Count the second filtering times that the background operation instruction initiated by the second application is filtered during the call.
  • the second filtering number is the number of times the background operation instruction initiated by the application is filtered.
  • the electronic device counts the second number of times the background operation instruction initiated by the second application is filtered during the call. Specifically, after filtering the background operation instruction during the call, the electronic device may obtain the second application program that initiated the background operation instruction, and increase the second filtering number of the second application program by one. The electronic device may set the second filtering times of each second application to 0 every time a call is started.
  • the second preset number of times can be set according to actual application requirements.
  • the second preset number of times may be 4 times, 7 times, 10 times, 12 times, etc., but is not limited thereto.
  • the resource occupancy rate refers to the size of the central processor resource occupied by the second application. The larger the resource occupancy rate, the more active the second application program runs, and the smaller the resource occupancy rate, the more restrictive the second application program runs.
  • the electronic device adjusts the resource occupancy rate of the second application program. Specifically, the electronic device can reduce the resource occupancy rate of the second application program, thereby limiting the operation of the second application program.
  • the reduction range may be set according to actual application requirements, or may be determined according to the size of the second filtering times exceeding the second preset number of times or the current resource occupancy rate of the second application program, etc. It is not limited thereto.
  • the electronic device may reduce the resource occupancy rate of the second application by 5%, 10%, 15%, etc., but it is not limited thereto.
  • the operation of the second application can be restricted to avoid The second application frequently initiates background operation instructions that change the working state of the microphone.
  • the provided call processing method may further include: freezing the second application when the second filtering times exceeds the third preset number of times, where the third preset number of times is greater than the second preset number of times.
  • the third preset number of times is greater than the second preset number of times.
  • the third preset number of times may be set according to actual application requirements. For example, when the second preset number of times is 5, the third preset number of times may be 8; when the second preset number of times is 6, the third preset number of times may be 10, etc., which is not limited thereto.
  • Freezing the second application program means to stop the second application program from running, does not occupy system resources and cannot initiate an operation of an operation instruction.
  • the electronic device can freeze the second application when the second filtering times exceeds the third preset number, which can ensure the stability of the call process, and the second application can no longer initiate background operation instructions, which can reduce the occupancy rate of system resources .
  • the provided call processing method may further include operations 702 to 706. among them:
  • Operation 702 Count the third filtering times that the background operation instructions initiated by each second application in the history call are filtered.
  • the third filtering number is the number of times the background operation instruction initiated by the second application program in the history process of the electronic device is filtered.
  • the electronic device counts the number of times that the background operation instruction initiated by each second application is filtered during the historical call. Specifically, the electronic device may obtain the second application that initiated the background operation instruction after filtering the background operation instruction. The third filtering number of the second application is increased by one.
  • the electronic device may also obtain the second filtering times that the second application initiates the background operation instruction to be filtered during each call, and add the obtained second filtering times to obtain the third filtering times corresponding to the second application.
  • each second application program is sorted in the order of the third filtering times from high to low.
  • the electronic device counts the third filtering times of the background operation instructions initiated by each second application during the historical call, and the third filtering times corresponding to each second application can be obtained, so that the third filtering times are from high to low Sort each second application. For example, when the third filtering times of the second applications A, B, and C are 24 times, 10 times, and 35 times, respectively, the electronic device may sort the second applications according to the order of the third filtering times from high to low. The ranking of the third and second applications C, the second application A, and the second application B is obtained.
  • a preset number of second application programs are acquired as the target application program according to the order, and the target application program is prohibited from initiating background operation instructions.
  • the preset number can be set according to actual application requirements.
  • the preset number may be 1, 2, 4, 6, etc., but it is not limited thereto.
  • the electronic device may use the second application C and the second application A as target applications.
  • the electronic device prohibits the target application from initiating the background operation instruction.
  • the electronic device can turn off the permission of the target application to initiate the background operation instruction, or directly intercept the background operation instruction initiated by the target application.
  • the electronic device acquires a preset number of second applications as the target application in order, and prohibits the target application from initiating background operation instructions, which can avoid operations that change the working state of the microphone during the call, and can improve the stability of the call process.
  • a call processing method is provided, and specific operations for implementing the method are as follows:
  • the electronic device detects the working state of the microphone during the call.
  • the working state of the microphone refers to the working state of the microphone during the call.
  • the working state of the microphone may include an operating state, a mute state, an off state, and the like.
  • the electronic device can change the working state of the microphone during the call.
  • the electronic device can detect the working state of the microphone during the call. Specifically, the electronic device can detect the working state of the microphone in real time during a call, or it can detect the working state of the microphone once every interval.
  • the electronic device obtains an audio operation instruction generated during operation.
  • the audio operation instruction is used to control the audio, detect the operation mode corresponding to the application that generates the audio operation instruction, and operate the audio when the operation mode is background operation
  • the instruction acts as a background operation instruction.
  • the electronic device may also monitor the background application running in the background, and then obtain the audio operation instruction initiated by the background application as the background operation instruction.
  • the background operation instruction is an operation instruction initiated by a background application.
  • the background operation instruction may be an operation instruction for controlling a call process, a display screen, a speaker, an application program, etc.
  • the electronic device can directly obtain the background operation instructions generated by the background application; it can also collect the operation instructions generated by each application during the operation of the electronic device and obtain the background operation instructions corresponding to the background application.
  • the electronic device filters the background operation instruction.
  • the instruction to change the working state of the microphone is the instruction to change the working state of the microphone after the execution of the instruction. For example, when the working state of the microphone is mute during a call, the instruction to put the microphone into the running state or the off state is the instruction to change the working state of the microphone; when the working state of the microphone during the call is the running state, then The instruction to enter the closed state of the microphone is the instruction to change the working state of the microphone.
  • the electronic device may not execute the background operation instruction; it may also close the background application that initiated the background operation instruction or freeze the background application, thereby filtering the background operation instruction.
  • the electronic device obtains the first application program that initiates the call process and the second application program that initiates the background operation instruction, and obtains the first priority and the second priority corresponding to the first application and the second application, respectively.
  • the background operation instruction is filtered.
  • the electronic device obtains the first filtered number of times the background operation instruction is filtered during the call, and when the first filtering number exceeds the first preset number, generates background operation information corresponding to the background operation instruction and displays the background operation information, Obtain the execution instruction input according to the background operation information, and process the background operation instruction according to the execution instruction.
  • the electronic device determines the first preset number of times according to at least one of the system occupancy rate during the call and the current call duration.
  • the electronic device obtains the second application that initiates the background operation instruction, and counts the second filtering times that the background operation instruction initiated by the second application is filtered during the call, when the second filtering number exceeds the second preset Times to adjust the resource occupancy rate of the second application.
  • the electronic device may freeze the second application program, where the third preset number of times is greater than the second preset number of times. Freezing the second application program means to stop the second application program from running, does not occupy system resources and cannot initiate an operation of an operation instruction.
  • the electronic device can freeze the second application when the second filtering times exceeds the third preset number, which can ensure the stability of the call process, and the second application can no longer initiate background operation instructions, which can reduce the occupancy rate of system resources .
  • the electronic device counts the third filtering times of the background operation instructions initiated by each second application during the historical call, and sorts each second application according to the order of the third filtering times from high to low, according to Order and obtain a preset number of second applications as target applications, and prohibit the target applications from initiating background operation instructions.
  • the electronic device acquires a preset number of second applications as the target application in order, and prohibits the target application from initiating background operation instructions, which can avoid operations that change the working state of the microphone during the call and improve the stability of the call process.
  • the call processing apparatus includes a state detection module 802, an instruction acquisition module 804, and a processing module 806, where:
  • the state detection module 802 is used to detect the working state of the microphone of the electronic device during the call.
  • the instruction obtaining module 804 is used to obtain a background operation instruction generated by a background application running in the electronic device.
  • the processing module 806 is configured to filter the background operation instruction when the background operation instruction is an instruction to change the working state of the microphone.
  • the instruction acquisition module 804 can also be used to acquire audio operation instructions generated when the electronic device is running, the audio operation instructions are used to control audio; detect the operation mode corresponding to the application program that generates the audio operation instruction; When the operation mode is background operation, the audio operation instruction is used as the background operation instruction.
  • the processing module 806 can also be used to obtain a first application that initiates a call process and a second application that initiates a background operation instruction; obtain first priorities corresponding to the first application and the second application, respectively Level and second priority; when the first priority is higher than the second priority, the background operation instructions are filtered.
  • the processing module 806 can also be used to obtain the first filtering times that the background operation instruction is filtered during the call; when the first filtering times exceeds the first preset number, the background operation information corresponding to the background operation instruction is generated , And display the background operation information; obtain the execution instruction input according to the background operation information; process the background operation instruction according to the execution instruction.
  • the processing module 806 may be further configured to determine the first preset number of times according to at least one of the system occupation rate of the electronic device during the call and the current call duration; when the first filtering number exceeds the first preset At times, the background operation information corresponding to the background operation instruction is generated, and the background operation information is displayed; the execution instruction input according to the background operation information is acquired; and the background operation instruction is processed according to the execution instruction.
  • the processing module 806 can also be used to obtain the second application that initiates the background operation instruction; count the second filtering times that the background operation instruction initiated by the second application is filtered during the call; when the second filtering The number of times exceeds the second preset number of times, and the resource occupancy rate of the second application program is adjusted.
  • the processing module 806 may also be used to freeze the second application when the second number of filtering times exceeds the third preset number of times, where the third preset number of times is greater than the second preset number of times.
  • the processing module 806 can also be used to count the third filtering times that the background operation instructions initiated by each second application during the historical call are filtered; Sort in a low order; obtain a preset number of second applications as the target application according to the sort, and prohibit the target application from initiating background operation instructions.
  • the call processing apparatus can be used to detect the working state of a microphone of an electronic device during a call, and obtain a background operation instruction generated by a background application running in the electronic device.
  • the background operation instruction is to change the microphone
  • the background operation command is filtered, so that the working state of the microphone can be maintained and the stability of the call can be improved.
  • each module in the call processing device is for illustration only. In other embodiments, the call processing device may be divided into different modules as needed to complete all or part of the functions of the call processing device.
  • the electronic device includes a processor and a memory connected by a system bus.
  • the processor is used to provide computing and control capabilities to support the operation of the entire electronic device.
  • the memory may include a non-volatile storage medium and internal memory.
  • the non-volatile storage medium stores an operating system and computer programs.
  • the computer program can be executed by the processor to implement a call processing method provided by the following embodiments.
  • the internal memory provides a cached operating environment for the operating system computer programs in the non-volatile storage medium.
  • the electronic device may be a mobile phone, a tablet computer, a personal digital assistant or a wearable device.
  • the embodiments of the present application also provide a computer-readable storage medium.
  • a computer program is stored thereon, which is characterized in that when the computer program is executed by the processor, the call processing method as described above is realized.
  • An embodiment of the present application also provides an electronic device. As shown in FIG. 10, for ease of description, only parts related to the embodiments of the present application are shown, and specific technical details are not disclosed, please refer to the method part of the embodiments of the present application.
  • the electronic device may be any terminal device including a mobile phone, tablet computer, PDA (Personal Digital Assistant), POS (Point of Sales), in-vehicle computer, wearable device, etc. Taking the electronic device as a mobile phone for example :
  • the mobile phone includes: a radio frequency (Radio Frequency) circuit 1010, a memory 1020, an input unit 1030, a display unit 1040, a sensor 1050, an audio circuit 1060, a wireless fidelity (WiFi) module 1070, a processor 1080 , And power supply 1090 and other components.
  • a radio frequency (Radio Frequency) circuit 1010 the mobile phone includes: a radio frequency (Radio Frequency) circuit 1010, a memory 1020, an input unit 1030, a display unit 1040, a sensor 1050, an audio circuit 1060, a wireless fidelity (WiFi) module 1070, a processor 1080 , And power supply 1090 and other components.
  • WiFi wireless fidelity
  • FIG. 10 does not constitute a limitation on the mobile phone, and may include more or less components than those shown in the figure, or a combination of certain components, or a different component arrangement.
  • the RF circuit 1010 can be used to receive and send signals during sending and receiving information or during a call. It can receive the downlink information of the base station and process it to the processor 1080; it can also send the uplink data to the base station.
  • RF circuits include but are not limited to antennas, at least one amplifier, transceiver, coupler, low noise amplifier (Low Noise Amplifier, LNA), duplexer, and so on.
  • the RF circuit 1010 can also communicate with the network and other devices through wireless communication.
  • the wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile (GSM), General Packet Radio Service (GPRS), and Code Division Multiple Access (Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE)), email, short message service (Short Messaging Service, SMS), etc.
  • GSM Global System of Mobile
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • SMS Short Messaging Service
  • the memory 1020 may be used to store software programs and modules.
  • the processor 1080 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 1020.
  • the memory 1020 may mainly include a program storage area and a data storage area, where the program storage area may store an operating system and at least one function-required application program (such as a sound playback function application program, an image playback function application program, etc.), etc .;
  • the data storage area can store data (such as audio data, address book, etc.) created according to the use of the mobile phone.
  • the memory 1020 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the input unit 1030 may be used to receive input numeric or character information, and generate key signal input related to user settings and function control of the mobile phone 1000.
  • the input unit 1030 may include a touch panel 1031 and other input devices 1032.
  • the touch panel 1031 also known as a touch screen, can collect user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc. on or near the touch panel 1031 Operation), and drive the corresponding connection device according to the preset program.
  • the touch panel 1031 may include a touch detection device and a touch controller.
  • the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into contact coordinates, and then sends To the processor 1080, and can receive the commands sent by the processor 1080 and execute them.
  • the touch panel 1031 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 1030 may also include other input devices 1032.
  • other input devices 1032 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), and the like.
  • the display unit 1040 may be used to display information input by the user or information provided to the user and various menus of the mobile phone.
  • the display unit 1040 may include a display panel 1041.
  • the display panel 1041 may be configured in the form of a liquid crystal display (Liquid Crystal) (LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.
  • the touch panel 1031 may cover the display panel 1041, and when the touch panel 1031 detects a touch operation on or near it, it is transmitted to the processor 1080 to determine the type of touch event, and then the processor 1080 according to The type of touch event provides a corresponding visual output on the display panel 1041.
  • the touch panel 1031 and the display panel 1041 are implemented as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the touch panel 1031 and the display panel 1041 may be integrated to Realize the input and output functions of the mobile phone.
  • the mobile phone 1000 may further include at least one sensor 1050, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor.
  • the ambient light sensor may adjust the brightness of the display panel 1041 according to the brightness of the ambient light.
  • the proximity sensor may close the display panel 1041 and / or when the mobile phone moves to the ear Or backlight.
  • the motion sensor may include an acceleration sensor, which can detect the magnitude of acceleration in various directions through the acceleration sensor, and can detect the magnitude and direction of gravity when at rest, and can be used for applications that recognize mobile phone gestures (such as horizontal and vertical screen switching), and vibration recognition-related functions (such as Pedometer, percussion), etc.
  • the mobile phone can also be equipped with other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor and so on.
  • the audio circuit 1060, the speaker 1061, and the microphone 1062 may provide an audio interface between the user and the mobile phone.
  • the audio circuit 1060 can transmit the received audio data converted electrical signal to the speaker 1061, which converts the speaker 1061 into a sound signal output; on the other hand, the microphone 1062 converts the collected sound signal into an electrical signal, which After receiving, it is converted into audio data, and then processed by the audio data output processor 1080, and then sent to another mobile phone through the RF circuit 1010, or the audio data is output to the memory 1020 for subsequent processing.
  • WiFi is a short-range wireless transmission technology. Mobile phones can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 1070. It provides users with wireless broadband Internet access.
  • FIG. 10 shows the WiFi module 1070, it can be understood that it is not a necessary component of the mobile phone 1000, and may be omitted as needed.
  • the processor 1080 is the control center of the mobile phone, and uses various interfaces and lines to connect the various parts of the entire mobile phone. Various functions and processing data of the mobile phone, so as to monitor the mobile phone as a whole.
  • the processor 1080 may include one or more processing units.
  • the processor 1080 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, user interface, application programs, and the like; the modem processor mainly processes wireless communication. It can be understood that the modem processor may not be integrated into the processor 1080.
  • the mobile phone 1000 further includes a power supply 1090 (such as a battery) for powering various components.
  • a power supply 1090 (such as a battery) for powering various components.
  • the power supply can be logically connected to the processor 1080 through a power management system, so as to realize functions such as charging, discharging, and power management through the power management system.
  • the mobile phone 1000 may further include a camera, a Bluetooth module, and the like.
  • the processor 980 included in the electronic device implements the call processing method as described above when executing the computer program stored in the memory.
  • Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM), which acts as external cache memory.
  • RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR) SDRAM, enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDR double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous Link (Synchlink) DRAM
  • Rambus direct RAM
  • DRAM direct memory bus dynamic RAM
  • RDRAM memory bus dynamic RAM

Abstract

一种通话处理方法,包括:检测电子设备的传声器在通话过程中的工作状态;获取所述电子设备中运行的后台应用程序所生成的后台操作指令;当所述后台操作指令为改变所述传声器的工作状态的指令时,过滤所述后台操作指令。

Description

通话处理方法、计算机可读存储介质和电子设备 技术领域
本申请涉及计算机通信技术领域,特别是涉及一种通话处理方法、计算机可读存储介质和电子设备。
背景技术
随着通信技术的快速发展,电子设备成为人们日常生活不可或缺的通讯设备之一。在通话过程中,可以对电子设备的传声器进行控制,使传声器正常工作或者静音,然而,传统方法中存在通话过程中传声器的状态与预期状态不一致,通话稳定性低的问题。
发明内容
根据本申请的各种实施例提供一种通话处理方法、计算机可读存储介质和电子设备。
一种通话处理方法,包括:
检测电子设备的传声器在通话过程中的工作状态;
获取所述电子设备中运行的后台应用程序所生成的后台操作指令;及
当所述后台操作指令为改变所述传声器的工作状态的指令时,过滤所述后台操作指令。
一个或多个包含计算机可执行指令的计算机可读存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行以下操作:
检测电子设备的传声器在通话过程中的工作状态;
获取所述电子设备中运行的后台应用程序所生成的后台操作指令;及
当所述后台操作指令为改变所述传声器的工作状态的指令时,过滤所述后台操作指令。
一种电子设备,包括存储器及处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行以下操作:
检测电子设备的传声器在通话过程中的工作状态;
获取所述电子设备中运行的后台应用程序所生成的后台操作指令;及
当所述后台操作指令为改变所述传声器的工作状态的指令时,过滤所述后台操作指令。
上述通话处理方法、计算机可读存储介质和电子设备,通过检测电子设备的传声器在通话过程中的工作状态,获取电子设备中运行的后台应用程序所生成的后台操作指令,当后台操作指令为改变传声器的工作状态的指令时,过滤后台操作指令,从而可以保持传声器的工作状态,提高通话稳定性。
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征、目的和优点将从说明书、附图以及权利要求书变得明显。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为一个实施例中通话处理方法的应用环境图。
图2为一个实施例中通话处理方法的流程图。
图3为一个实施例中获取后台操作指令的流程图。
图4为一个实施例中过滤后台操作指令的流程图。
图5为另一个实施例中通话处理方法的流程图。
图6为又一个实施例中通话处理方法的流程图。
图7为一个实施例中通话处理方法的流程图。
图8为一个实施例中通话处理装置的结构框图。
图9为一个实施例中电子设备的结构框图。
图10为与本申请实施例提供的电子设备相关的手机的部分结构的框图。
具体实施方式
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一应用程序称为第二应用程序,且类似地,可将第二应用程序称为第一应用程序。第一应用程序和第二应用程序两者都是应用程序,但其不是同一应用程序。
图1为一个实施例中通话处理方法的应用环境图。如图1所示,该应用环境包括电子设备110。电子设备110安装有传声器。具体地,电子设备110可以检测传声器在通话过程中的工作状态,获取在电子设备110中运行的后台应用程序所生成的后台操作指令,当后台操作指令为改变传声器的工作状态的指令时,过滤后台操作指令。可以理解的是,上述电子设备110可以是手机、电脑、可穿戴设备等,在此不做限定。
图2为一个实施例中通话处理方法的流程图。本实施例中的通话处理方法,以运行于图1中的电子设备110上为例进行描述。如图2所示,通话处理方法包括操作202至操作206。其中:
操作202,检测电子设备的传声器在通话过程中的工作状态。
传声器是用于将声音信号转化为电信号的器件。具体地,传声器可以内置或外置于电子设备,进而电子设备可以通过传声器采集声音信号。通话即为通过至少两个电子设备进行交谈的操作。具体地,通话可以是语音通话也可以是视频通话。传声器的工作状态是指传声器在通话过程中的运作状态。具体地,传声器的工作状态可以包括运行状态、静音状态、关闭状态等。电子设备可以在通话过程中改变传声器的工作状态。
电子设备可以检测传声器在通话过程中的工作状态。具体地,电子设备可以在通话过程实时检测传声器的工作状态,也可以每间隔一段时间检测一次传声器的工作状态等。
操作204,获取电子设备中运行的后台应用程序所生成的后台操作指令。
应用程序是指可完成特定工作的计算机程序。后台应用程序即为在电子设备后台运行的应用程序。应用程序在运行过程中生成多种操作指令,操作指令用于指挥电子设备工作。后台操作指令为后台应用程序发起的操作指令。例如,后台操作指令可以是对通话过程、显示屏、扬声器、应用程序等进行控制的操作指令。电子设备获取运行的后台应用程序所生成的后台操作指令。具体地,电子设备可以直接获取后台应用程序所生成的后台操作指令;也可以收集电子设备运行过程中各个应用程序生成的操作指令,并获取后台应用程序对应的后台操作指令。
操作206,当后台操作指令为改变传声器的工作状态的指令时,过滤后台操作指令。
改变传声器的工作状态的指令即为执行该指令后,传声器的工作状态会发生改变的指令。例如,当通话过程中传声器的工作状态为静音状态时,则使传声器进入运行状态或关 闭状态的指令即为改变传声器工作状态的指令;当通话过程中传声器的工作状态为运行状态时,则使传声器进入关闭状态的指令即为改变传声器工作状态的指令。电子设备可以根据传声器的工作状态检测后台操作指令是否为改变传声器的工作状态的指令。
电子设备过滤后台操作指令是指不执行该后台操作指令的操作。当后台操作指令为改变传声器的工作状态的指令时,电子设备过滤该后台操作指令,具体地,电子设备可以不执行该后台操作指令;也可以关闭发起该后台操作指令的后台应用程序或者冻结该后台应用程序,从而过滤该后台操作指令。
本申请提供的实施例中,通过检测电子设备的传声器在通话过程中的工作状态,获取电子设备中运行的后台应用程序所生成的后台操作指令,当后台操作指令为改变传声器的工作状态的指令时,过滤后台操作指令,从而可以保持传声器的工作状态,避免出现后台应用程序改变传声器的工作状态而导致传声器静音或关闭的情况,提高通话稳定性。
图3为一个实施例中获取后台操作指令的流程图。如图3所示,获取后台操作指令的过程具体包括:
操作302,获取电子设备运行时所生成的音频操作指令,音频操作指令用于对音频进行控制。
音频用于描述音频范围和声音的设备及作用,其中,声音的设备可以包括传声器和扬声器等。对音频进行控制即对音频范围或声音的设备进行控制,具体地,音频操作指令可以包括对音频播放或采集的音量大小、对传声器或扬声器的工作状态等进行控制的指令。例如,音频操作指令可以包括音频播放指令、录音指令、音量增加指令、传声器静音指令等不限于此。电子设备可以获取电子设备运行时生成的音频操作指令,具体地,电子设备可以检测电子设备运行过程中各个应用程序所生成的操作指令,进而获取各个应用程序所生成的操作指令中对音频进行控制的音频操作指令。
在一个实施例中,电子设备也可以获取指定应用程序生成的音频操作指令。例如,电子设备可以获取非系统应用程序如第三方应用程序生成的音频操作指令,也可以获取预设应用程序生成的音频操作指令等,其中,预设应用程序可以是电子设备根据实际应用需求设定的,也可以是电子设备获取的用户输入的应用程序。
操作304,检测生成音频操作指令的应用程序对应的运行模式。
运行模式是指应用程序在电子设备上运行的方式。具体地,运行模式可以包括前台运行和后台运行。其中,前台运行是指应用程序在前台运行,在电子设备上存在可与用户进行交互的界面或窗口;后台运行是指应用程序在电子设备的后台运行,此时应用程序没有界面,但占用系统资源。电子设备可以检测不同应用程序在运行过程中的运行模式,从而电子设备可以获取生成音频操作指令的应用程序对应的运行模式。
操作306,当运行模式为后台运行时,将音频操作指令作为后台操作指令。
当发起音频操作指令的应用程序对应的运行模式为后台运行时,电子设备将该音频操作指令作为后台操作指令。在一个实施例中,电子设备也可以监测处于后台运行的后台应用程序,进而获取后台应用程序发起的音频操作指令作为后台操作指令。进而,在电子设备的通话过程中,当检测到该后台操作指令为改变传声器的工作状态的指令时,过滤该后台操作指令。
通过获取电子设备运行时所生产的音频操作指令,检测生成音频操作指令的应用程序对应的运行模式,当运行模式为后台运行时,将音频操作指令作为后台操作指令,从而可以获得对音频进行控制的后台操作指令。进而,在电子设备的通话过程中,电子设备在检测后台操作指令是否为改变传声器的工作状态的指令时,此时的后台操作指令为对音频进行控制的指令,可以提高后台操作指令的检测效率。
图4为一个实施例中过滤后台操作指令的流程图。如图4所示,在一个实施例中,提供的通话处理方法中过滤后台操作指令的过程可以包括操作402至操作406,其中:
操作402,获取发起通话过程的第一应用程序,及发起后台操作指令的第二应用程序。
第一应用程序可进行通话的应用程序。例如,第一应用程序可以是拨号应用程序、社交应用程序如WeChat、skype等不限于此。第二应用程序即为发起后台操作指令的后台应用程序。电子设备可以获取发起通话过程的第一应用程序及发起后台操作指令的第二应用程序。
操作404,获取第一应用程序和第二应用程序分别对应的第一优先级和第二优先级。
电子设备获取第一应用程序和第二应用程序分别对应的第一优先级和第二优先级。具体地,电子设备可以预存不同应用程序对应的优先级,从而根据第一应用程序和第二应用程序分别获取对应的第一优先级和第二优先级。电子设备可以对安装的各个应用程序进行分类,并为各个分类设定对应的优先级。各个分类下的应用程序可以是一个或多个。在一个实施例中,电子设备也可以获取用户输入的各个应用程序对应的优先级。例如,电子设备可以预存应用程序A、B的优先级为1级,应用程序C的优先级为2级,其中,1级优先级最高,2级优先级低于1级优先级,则电子设备可以根据应用程序获取对应的优先级,若第一应用程序为应用程序B,则第一应用程序对应的第一优先级为1级,若第二应用程序为应用程序C,则对应的第二优先级为2级。
操作406,当第一优先级高于第二优先级时,过滤后台操作指令。
当第一优先级高于第二优先级时,电子设备过滤后台操作指令。具体地,电子设备可以在获取到第一优先级和第二优先级,比较第一优先级和第二优先级的高低,在第一优先级高于第二优先级时,过滤后台操作指令。例如,在上述例子中,第一优先级为1级,第二优先级为2级,则第一优先级高于第二优先级,电子设备可以过滤第二应用程序发起的后台操作指令。在一个实施例中,电子设备可以预设第一优先级与第二优先级相同时,过滤后台操作指令,也可以预设第一优先级与第二优先级相同,执行后台操作指令;从而当第一优先级与第二优先级相同时,电子设备根据预设规则确定是否过滤后台操作指令。
通过获取第一应用程序的第一优先级和第二应用程序的第二优先级,当第一优先级高于第二优先级时,过滤后台操作指令。通过应用程序的优先等级确定是否过滤后台操作指令,可以提高过滤操作的准确性。
图5为另一个实施例中通话处理方法的流程图。如图5所示,在一个实施例中,提供的通话处理方法中还可以包括操作502至操作508。其中:
操作502,获取通话过程中后台操作指令被过滤的第一过滤次数。
电子设备可以检测通话过程中,被过滤的后台操作指令的数量。第一过滤次数即为通话过程中被过滤的后台操作指令的数量。第一过滤次数在通话过程中逐渐增加,通常通话时间越长,第一过滤次数越大。在一个实施例中,电子设备还可以获取通话过程中相同后台操作指令被过滤的次数作为第一过滤次数。
操作504,当第一过滤次数超过第一预设次数时,生成后台操作指令对应的后台操作信息,并展示后台操作信息。
第一预设次数可以根据实际应用需求进行设定。例如,第一预设次数可以是5次、10次、12次、18次等,不限于此。后台操作信息可以是后台操作指令对应的文字信息。电子设备可以在第一过滤次数超过第一预设次数时,生成后台操作指令对应的后台操作信息。具体地,电子设备可以根据后台操作指令包含的操作对象、操作方式将其转化为对应的后台操作信息。后台操作信息可以通过电子设备的显示屏进行展示。
在一个实施例中,提供的通话处理方法中可以根据电子设备在通话过程中的系统占用率和当前通话时长中的至少一种确定第一预设次数。
系统占用率是指电子设备运行的应用程序占用中央处理器资源的大小。系统占用率越高,电子设备当前运行的应用程序越多,反之越少。在一个实施例中,电子设备也可以将电子设备后台运行的应用程序占用中央处理器资源的大小作为系统占用率。当前通话时长 是指本次通话持续的时间长度,当前通话时长随通话的进行逐渐增大。电子设备根据系统占用率和当前通话时长中的至少一种确定第一预设次数。具体地,电子设备可以根据系统占用率确定第一预设次数,其中,系统占用率越大,第一预设次数越大,反之越小;也可以根据通话时长确定第一预设次数,其中,通话时长越大,第一预设次数越大,反之越小;还可以根据系统占用率和通话时长确定第一预设次数,具体地,电子设备可以预设系统占用率和通话时长分别的对应的权重值,根据该权重值确定第一预设次数。例如,电子设备可以预设通话时长小于2分钟的第一预设次数为5次、通话时长大于2分钟小于5分钟的第一预设次数为15次、通话时长大于5分钟小于10分钟的第一预设次数为20次等,从而电子设备可以根据当前通话时长获取对应的第一预设次数。
操作506,获取根据后台操作信息输入的执行指令。
执行指令可以是用户通过点击显示屏上的按钮生成的,也可以是用户通过按压触摸屏上的控件生成的,电子设备可以获取对后台操作信息的执行指令。例如,电子设备可以通过弹窗展示后台操作信息,并在弹窗上设置确定和取消按钮,通过接收用户对确定按钮或取消按钮的触摸操作生成对应的执行指令。
操作508,根据执行指令处理后台操作指令。
电子设备根据执行指令处理后台操作指令。具体地,当执行指令为确定执行指令时,电子设备根据该执行指令执行后台操作指令;当执行指令为取消执行指令时,则电子设备根据该执行指令过滤后台操作指令。例如,当后台操作指令为静音传声器的指令时,电子设备可以在显示屏展示静音传声器的弹窗,并设置确定和取消按钮,根据用户的触摸操作生成对应的执行指令,当执行指令为确定执行指令时,执行后台操作指令,使传声器静音,当执行指令为取消执行指令时,取消执行后台操作指令,保持传声器的工作状态。
通过获取通话过程中后台操作指令被过滤的第一过滤次数,当第一过滤次数超过第一预设次数时,生成并展示后台操作指令对应的操作信息,获取根据后台操作信息输入的执行指令,根据执行指令处理后台操作指令,可以后台操作指令处理的准确性。
如图6所示,在一个实施例中,提供的通话处理方法还可以包括操作602至操作606。其中:
操作602,获取发起后台操作指令的第二应用程序。
第二应用程序为发起后台操作指令的后台应用程序。电子设备可以获取发起后台操作指令的第二应用程序。
操作604,统计在通话过程中第二应用程序发起的后台操作指令被过滤的第二过滤次数。
第二过滤次数为应用程序发起的后台操作指令被过滤的次数。电子设备统计在通话过程中第二应用程序发起的后台操作指令被过滤的第二过滤次数。具体地,电子设备可以在通话过程中过滤后台操作指令后,获取发起该后台操作指令的第二应用程序,将该第二应用程序的第二过滤次数增加1。电子设备可以在每次开始通话时将各个第二应用程序的第二过滤次数置为0。
操作606,当第二过滤次数超过第二预设次数,调节第二应用程序的资源占用率。
第二预设次数可以根据实际应用需求进行设定。例如,第二预设次数可以是4次、7次、10次、12次等,不限于此。资源占用率是指第二应用程序占用中央处理器资源的大小。资源占用率越大,第二应用程序运行越活跃,资源占用率越小,第二应用程序运行越限制。当第二过滤次数超过第二预设次数时,电子设备调节第二应用程序的资源占用率,具体地,电子设备可以降低第二应用程序的资源占用率,从而限制第二应用程序的运行。其中,降低幅度可以根据实际应用需求来设定,也可以根据第二过滤次数超过第二预设次数的大小或者第二应用程序当前的资源占用率来确定等不限于此。例如,电子设备可以将第二应用程序的资源占用率降低5%、10%、15%等不限于此。
通过获取通话过程中各个第二应用程序对应的第二过滤次数,调节超过第二预设次数的第二过滤次数对应的第二应用程序的资源占用率,可以限制第二应用程序的运行,避免第二应用程序频繁发起改变传声器工作状态的后台操作指令。
在一个实施例中,提供的通话处理方法还可以包括:当第二过滤次数超过第三预设次数时,冻结第二应用程序,其中,第三预设次数大于第二预设次数。
第三预设次数大于第二预设次数。具体地,第三预设次数可以根据实际应用需求来设定。例如,当第二预设次数为5时,第三预设次数可以为8;当第二预设次数为6时,第三预设次数可以为10等,不限于此。冻结第二应用程序是指使第二应用程序停止运行,不占用系统资源并且无法发起操作指令的操作。电子设备可以在第二过滤次数超过第三预设次数时,冻结第二应用程序,可以保证通话过程的稳定性,并且该第二应用程序无法再发起后台操作指令,可以减少系统资源的占用率。
如图7所示,在一个实施例中,提供的通话处理方法还可以包括操作702至操作706。其中:
操作702,统计历史通话过程中各个第二应用程序发起的后台操作指令被过滤的第三过滤次数。
第三过滤次数是电子设备的历史过程中第二应用程序发起的后台操作指令被过滤的次数。电子设备统计历史通话过程中各个第二应用程序发起的后台操作指令被过滤的第三过滤次数,具体地,电子设备可以在过滤后台操作指令后,获取发起该后台操作指令的第二应用程序,将该第二应用程序的第三过滤次数增加1。电子设备也可以获取第二应用程序在每次通话过程中发起后台操作指令被过滤的第二过滤次数,将得到的第二过滤次数相加得到该第二应用程序对应的第三过滤次数。
操作704,将各个第二应用程序按照第三过滤次数从高到低的顺序进行排序。
电子设备统计历史通话过程中各个第二应用程序发起的后台操作指令被过滤的第三过滤次数,则可以得到各个第二应用程序对应的第三过滤次数,从而根据第三过滤次数从高到低对各个第二应用程序进行排序。例如,当第二应用程序A、B、C的第三过滤次数分别为24次、10次、35次,则电子设备将第二应用程序按照第三过滤次数从高到低的顺序进行排序可以得到第三二应用C、第二应用程序A、第二应用程序B的排序。
操作706,按照排序获取预设数量的第二应用程序作为目标应用程序,禁止目标应用程序发起后台操作指令。
预设数量可以根据实际应用需求进行设定。例如,预设数量可以是1、2、4、6等不限于此。在上述例子中,当预设数量为2时,则电子设备可以将第二应用程序C和第二应用程序A作为目标应用程序。电子设备禁止目标应用程序发起后台操作指令,具体地,电子设备可以关闭目标应用程序发起后台操作指令的权限,也可以直接对目标应用程序发起的后台操作指令进行拦截。
电子设备按照排序获取预设数量的第二应用程序作为目标应用程序,禁止目标应用程序发起后台操作指令,可以避免在通话过程中出现改变传声器工作状态的操作,可以提高通话过程的稳定性。
在一个实施例中,提供了一种通话处理方法,实现该方法的具体操作如下所述:
首先,电子设备检测传声器在通话过程中的工作状态。传声器的工作状态是指传声器在通话过程中的运作状态。具体地,传声器的工作状态可以包括运行状态、静音状态、关闭状态等。电子设备可以在通话过程中改变传声器的工作状态。电子设备可以检测传声器在通话过程中的工作状态。具体地,电子设备可以在通话过程实时检测传声器的工作状态,也可以每间隔一段时间检测一次传声器的工作状态等。
可选地,电子设备获取运行时所生成的音频操作指令,音频操作指令用于对音频进行控制,检测生成音频操作指令的应用程序对应的运行模式,当运行模式为后台运行时,将 音频操作指令作为后台操作指令。可选地,电子设备也可以监测处于后台运行的后台应用程序,进而获取后台应用程序发起的音频操作指令作为后台操作指令。
接着,电子设备获取运行的后台应用程序所生成的后台操作指令。后台操作指令为后台应用程序发起的操作指令。例如,后台操作指令可以是对通话过程、显示屏、扬声器、应用程序等进行控制的操作指令。电子设备可以直接获取后台应用程序所生成的后台操作指令;也可以收集电子设备运行过程中各个应用程序生成的操作指令,并获取后台应用程序对应的后台操作指令。
接着,当后台操作指令为改变传声器的工作状态的指令时,电子设备过滤后台操作指令。改变传声器的工作状态的指令即为执行该指令后,传声器的工作状态会发生改变的指令。例如,当通话过程中传声器的工作状态为静音状态时,则使传声器进入运行状态或关闭状态的指令即为改变传声器工作状态的指令;当通话过程中传声器的工作状态为运行状态时,则使传声器进入关闭状态的指令即为改变传声器工作状态的指令。电子设备可以不执行该后台操作指令;也可以关闭发起该后台操作指令的后台应用程序或者冻结该后台应用程序,从而过滤该后台操作指令。
可选地,电子设备获取发起通话过程的第一应用程序,及发起后台操作指令的第二应用程序,获取第一应用程序和第二应用程序分别对应的第一优先级和第二优先级,当第一优先级高于第二优先级时,过滤后台操作指令。
可选地,电子设备获取通话过程中后台操作指令被过滤的第一过滤次数,当第一过滤次数超过第一预设次数时,生成后台操作指令对应的后台操作信息,并展示后台操作信息,获取根据后台操作信息输入的执行指令,根据执行指令处理后台操作指令。可选地,电子设备根据在通话过程中的系统占用率和当前通话时长中的至少一种确定第一预设次数。
可选地,电子设备获取发起后台操作指令的第二应用程序,统计在通话过程中第二应用程序发起的后台操作指令被过滤的第二过滤次数,,当第二过滤次数超过第二预设次数,调节第二应用程序的资源占用率。
可选地,当第二过滤次数超过第三预设次数时,电子设备可以冻结第二应用程序,其中,第三预设次数大于第二预设次数。冻结第二应用程序是指使第二应用程序停止运行,不占用系统资源并且无法发起操作指令的操作。电子设备可以在第二过滤次数超过第三预设次数时,冻结第二应用程序,可以保证通话过程的稳定性,并且该第二应用程序无法再发起后台操作指令,可以减少系统资源的占用率。
可选地,电子设备统计历史通话过程中各个第二应用程序发起的后台操作指令被过滤的第三过滤次数,将各个第二应用程序按照第三过滤次数从高到低的顺序进行排序,按照排序获取预设数量的第二应用程序作为目标应用程序,禁止目标应用程序发起后台操作指令。电子设备按照排序获取预设数量的第二应用程序作为目标应用程序,禁止目标应用程序发起后台操作指令,可以避免在通话过程中出现改变传声器工作状态的操作,可以提高通话过程的稳定性。
图8为一个实施例中通话处理装置的结构框图。如图8所示,该通话处理装置包括状态检测模块802、指令获取模块804、处理模块806,其中:
状态检测模块802,用于检测电子设备的传声器在通话过程中的工作状态。
指令获取模块804,用于获取电子设备中运行的后台应用程序所生成的后台操作指令。
处理模块806,用于当后台操作指令为改变传声器的工作状态的指令时,过滤后台操作指令。
在一个实施例中,指令获取模块804还可以用于获取电子设备运行时所生成的音频操作指令,音频操作指令用于对音频进行控制;检测生成音频操作指令的应用程序对应的运行模式;当运行模式为后台运行时,将音频操作指令作为后台操作指令。
在一个实施例中,处理模块806还可以用于获取发起通话过程的第一应用程序,及发 起后台操作指令的第二应用程序;获取第一应用程序和第二应用程序分别对应的第一优先级和第二优先级;当第一优先级高于第二优先级时,过滤后台操作指令。
在一个实施例中,处理模块806还可以用于获取通话过程中后台操作指令被过滤的第一过滤次数;当第一过滤次数超过第一预设次数时,生成后台操作指令对应的后台操作信息,并展示后台操作信息;获取根据后台操作信息输入的执行指令;根据执行指令处理后台操作指令。
在一个实施例中,处理模块806还可以用于根据电子设备在通话过程中的系统占用率和当前通话时长中的至少一种确定第一预设次数;当第一过滤次数超过第一预设次数时,生成后台操作指令对应的后台操作信息,并展示后台操作信息;获取根据后台操作信息输入的执行指令;根据执行指令处理后台操作指令。
在一个实施例中,处理模块806还可以用于获取发起后台操作指令的第二应用程序;统计在通话过程中第二应用程序发起的后台操作指令被过滤的第二过滤次数;当第二过滤次数超过第二预设次数,调节第二应用程序的资源占用率。
在一个实施例中,处理模块806还可以用于当第二过滤次数超过第三预设次数时,冻结第二应用程序,其中,第三预设次数大于第二预设次数。
在一个实施例中,处理模块806还可以用于统计历史通话过程中各个第二应用程序发起的后台操作指令被过滤的第三过滤次数;将各个第二应用程序按照第三过滤次数从高到低的顺序进行排序;按照排序获取预设数量的第二应用程序作为目标应用程序,禁止目标应用程序发起后台操作指令。
本申请实施例提供的通话处理装置,可以用于检测电子设备的传声器在通话过程中的工作状态,获取电子设备中运行的后台应用程序所生成的后台操作指令,当后台操作指令为改变传声器的工作状态的指令时,过滤后台操作指令,从而可以保持传声器的工作状态,提高通话稳定性。
所述通话处理装置中各个模块的划分仅用于举例说明,在其他实施例中,可将通话处理装置按照需要划分为不同的模块,以完成所述通话处理装置的全部或部分功能。
图9为一个实施例中电子设备的内部结构示意图。如图9所示,该电子设备包括通过系统总线连接的处理器和存储器。其中,该处理器用于提供计算和控制能力,支撑整个电子设备的运行。存储器可包括非易失性存储介质及内存储器。非易失性存储介质存储有操作系统和计算机程序。该计算机程序可被处理器所执行,以用于实现以下各个实施例所提供的一种通话处理方法。内存储器为非易失性存储介质中的操作系统计算机程序提供高速缓存的运行环境。该电子设备可以是手机、平板电脑或者个人数字助理或穿戴式设备等。
本申请实施例还提供了一种计算机可读存储介质。其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如上所述的通话处理方法。
本申请实施例还提供了一种电子设备。如图10所示,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该电子设备可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备等任意终端设备,以电子设备为手机为例:
图10为与本申请实施例提供的电子设备相关的手机的部分结构的框图。参考图10,手机包括:射频(Radio Frequency,RF)电路1010、存储器1020、输入单元1030、显示单元1040、传感器1050、音频电路1060、无线保真(wireless fidelity,WiFi)模块1070、处理器1080、以及电源1090等部件。本领域技术人员可以理解,图10所示的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
其中,RF电路1010可用于收发信息或通话过程中,信号的接收和发送,可将基 站的下行信息接收后,给处理器1080处理;也可以将上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路1010还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Divi sion Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE))、电子邮件、短消息服务(Short Messaging Service,SMS)等。
存储器1020可用于存储软件程序以及模块,处理器1080通过运行存储在存储器1020的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器1020可主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能的应用程序、图像播放功能的应用程序等)等;数据存储区可存储根据手机的使用所创建的数据(比如音频数据、通讯录等)等。此外,存储器1020可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
输入单元1030可用于接收输入的数字或字符信息,以及产生与手机1000的用户设置以及功能控制有关的键信号输入。具体地,输入单元1030可包括触控面板1031以及其他输入设备1032。触控面板1031,也可称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1031上或在触控面板1031附近的操作),并根据预先设定的程式驱动相应的连接装置。在一个实施例中,触控面板1031可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1080,并能接收处理器1080发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1031。除了触控面板1031,输入单元1030还可以包括其他输入设备1032。具体地,其他输入设备1032可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)等中的一种或多种。
显示单元1040可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元1040可包括显示面板1041。在一个实施例中,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1041。在一个实施例中,触控面板1031可覆盖显示面板1041,当触控面板1031检测到在其上或附近的触摸操作后,传送给处理器1080以确定触摸事件的类型,随后处理器1080根据触摸事件的类型在显示面板1041上提供相应的视觉输出。虽然在图10中,触控面板1031与显示面板1041是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板1031与显示面板1041集成而实现手机的输入和输出功能。
手机1000还可包括至少一种传感器1050,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1041的亮度,接近传感器可在手机移动到耳边时,关闭显示面板1041和/或背光。运动传感器可包括加速度传感器,通过加速度传感器可检测各个方向上加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换)、振动识别相关功能(比如计步器、敲击)等;此外,手机还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器等。
音频电路1060、扬声器1061和传声器1062可提供用户与手机之间的音频接口。音频电路1060可将接收到的音频数据转换后的电信号,传输到扬声器1061,由扬声器1061转换为声音信号输出;另一方面,传声器1062将收集的声音信号转换为电信号,由音频电路1060接收后转换为音频数据,再将音频数据输出处理器1080处理后,经RF电路1010可以发送给另一手机,或者将音频数据输出至存储器1020以便后续处理。
WiFi属于短距离无线传输技术,手机通过WiFi模块1070可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图10示出了WiFi模块1070,但是可以理解的是,其并不属于手机1000的必须构成,可以根据需要而省略。
处理器1080是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器1020内的软件程序和/或模块,以及调用存储在存储器1020内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。在一个实施例中,处理器1080可包括一个或多个处理单元。在一个实施例中,处理器1080可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等;调制解调处理器主要处理无线通信。可以理解的是,所述调制解调处理器也可以不集成到处理器1080中。
手机1000还包括给各个部件供电的电源1090(比如电池),优选的,电源可以通过电源管理系统与处理器1080逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
在一个实施例中,手机1000还可以包括摄像头、蓝牙模块等。
在本申请实施例中,该电子设备所包括的处理器980执行存储在存储器上的计算机程序时实现如上所述的通话处理方法。
本申请所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。合适的非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDR SDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)。
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。

Claims (24)

  1. 一种通话处理方法,包括:
    检测电子设备的传声器在通话过程中的工作状态;
    获取所述电子设备中运行的后台应用程序所生成的后台操作指令;及
    当所述后台操作指令为改变所述传声器的工作状态的指令时,过滤所述后台操作指令。
  2. 根据权利要求1所述的方法,其特征在于,所述获取所述电子设备中运行的后台应用程序所生成的后台操作指令包括:
    获取所述电子设备运行时所生成的音频操作指令,所述音频操作指令用于对音频进行控制;
    检测生成所述音频操作指令的应用程序对应的运行模式;及
    当所述运行模式为后台运行时,将所述音频操作指令作为所述后台操作指令。
  3. 根据权利要求1中所述的方法,其特征在于,所述过滤所述后台操作指令包括:
    获取发起所述通话过程的第一应用程序,及发起所述后台操作指令的第二应用程序;
    获取所述第一应用程序和第二应用程序分别对应的第一优先级和第二优先级;及
    当所述第一优先级高于所述第二优先级时,过滤所述后台操作指令。
  4. 根据权利要求1所述的方法,其特征在于,还包括:
    获取所述通话过程中所述后台操作指令被过滤的第一过滤次数;
    当所述第一过滤次数超过第一预设次数时,生成所述后台操作指令对应的后台操作信息,并展示所述后台操作信息;
    获取根据所述后台操作信息输入的执行指令;及
    根据所述执行指令处理所述后台操作指令。
  5. 根据权利要求4所述的方法,其特征在于,还包括:
    根据所述电子设备在所述通话过程中的系统占用率和当前通话时长中的至少一种确定所述第一预设次数。
  6. 根据权利要求1所述的方法,其特征在于,还包括:
    获取发起所述后台操作指令的第二应用程序;
    统计在所述通话过程中所述第二应用程序发起的后台操作指令被过滤的第二过滤次数;及
    当所述第二过滤次数超过第二预设次数,调节所述第二应用程序的资源占用率。
  7. 根据权利要求6所述的方法,其特征在于,还包括:
    当所述第二过滤次数超过第三预设次数时,冻结所述第二应用程序,其中,所述第三预设次数大于所述第二预设次数。
  8. 根据权利要求6所述的方法,其特征在于,还包括:
    统计历史通话过程中各个所述第二应用程序发起的后台操作指令被过滤的第三过滤次数;
    将各个所述第二应用程序按照所述第三过滤次数从高到低的顺序进行排序;及
    按照排序获取预设数量的第二应用程序作为目标应用程序,禁止所述目标应用程序发起所述后台操作指令。
  9. 一个或多个包含计算机可执行指令的计算机可读存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行以下操作:
    检测电子设备的传声器在通话过程中的工作状态;
    获取所述电子设备中运行的后台应用程序所生成的后台操作指令;及
    当所述后台操作指令为改变所述传声器的工作状态的指令时,过滤所述后台操作指令。
  10. 根据权利要求9所述的计算机可读存储介质,其特征在于,所述处理器执行所述获取所述电子设备中运行的后台应用程序所生成的后台操作指令时,还执行以下操作:
    获取所述电子设备运行时所生成的音频操作指令,所述音频操作指令用于对音频进行控制;
    检测生成所述音频操作指令的应用程序对应的运行模式;及
    当所述运行模式为后台运行时,将所述音频操作指令作为所述后台操作指令。
  11. 根据权利要求9所述的计算机可读存储介质,其特征在于,所述处理器执行所述过滤所述后台操作指令时,还执行以下操作包括:
    获取发起所述通话过程的第一应用程序,及发起所述后台操作指令的第二应用程序;
    获取所述第一应用程序和第二应用程序分别对应的第一优先级和第二优先级;及
    当所述第一优先级高于所述第二优先级时,过滤所述后台操作指令。
  12. 根据权利要求9所述的计算机可读存储介质,其特征在于,所述处理器还执行以下操作:
    获取所述通话过程中所述后台操作指令被过滤的第一过滤次数;
    当所述第一过滤次数超过第一预设次数时,生成所述后台操作指令对应的后台操作信息,并展示所述后台操作信息;
    获取根据所述后台操作信息输入的执行指令;及
    根据所述执行指令处理所述后台操作指令。
  13. 根据权利要求12所述的计算机可读存储介质,其特征在于,所述处理器还执行以下操作:
    根据所述电子设备在所述通话过程中的系统占用率和当前通话时长中的至少一种确定所述第一预设次数。
  14. 根据权利要求9所述的计算机可读存储介质,其特征在于,所述处理器还执行以下操作:
    获取发起所述后台操作指令的第二应用程序;
    统计在所述通话过程中所述第二应用程序发起的后台操作指令被过滤的第二过滤次数;及
    当所述第二过滤次数超过第二预设次数,调节所述第二应用程序的资源占用率。
  15. 根据权利要求14所述的计算机可读存储介质,其特征在于,所述处理器还执行以下操作:
    当所述第二过滤次数超过第三预设次数时,冻结所述第二应用程序,其中,所述第三预设次数大于所述第二预设次数。
  16. 根据权利要求14所述的计算机可读存储介质,其特征在于,所述处理器还执行以下操作:
    统计历史通话过程中各个所述第二应用程序发起的后台操作指令被过滤的第三过滤次数;
    将各个所述第二应用程序按照所述第三过滤次数从高到低的顺序进行排序;及
    按照排序获取预设数量的第二应用程序作为目标应用程序,禁止所述目标应用程序发起所述后台操作指令。
  17. 一种电子设备,包括存储器及处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行如下操作:
    检测电子设备的传声器在通话过程中的工作状态;
    获取所述电子设备中运行的后台应用程序所生成的后台操作指令;及
    当所述后台操作指令为改变所述传声器的工作状态的指令时,过滤所述后台操作指令。
  18. 根据权利要求17所述的电子设备,其特征在于,所述处理器执行所述获取所述电子设备中运行的后台应用程序所生成的后台操作指令时,还执行如下操作:
    获取所述电子设备运行时所生成的音频操作指令,所述音频操作指令用于对音频进行控制;
    检测生成所述音频操作指令的应用程序对应的运行模式;及
    当所述运行模式为后台运行时,将所述音频操作指令作为所述后台操作指令。
  19. 根据权利要求17所述的电子设备,其特征在于,所述处理器执行所述过滤所述后台操作指令时,还执行如下操作:
    获取发起所述通话过程的第一应用程序,及发起所述后台操作指令的第二应用程序;
    获取所述第一应用程序和第二应用程序分别对应的第一优先级和第二优先级;及
    当所述第一优先级高于所述第二优先级时,过滤所述后台操作指令。
  20. 根据权利要求17所述的电子设备,其特征在于,所述计算机可读指令被所述处理器执行时,使得所述处理器还执行以下操作:
    获取所述通话过程中所述后台操作指令被过滤的第一过滤次数;
    当所述第一过滤次数超过第一预设次数时,生成所述后台操作指令对应的后台操作信息,并展示所述后台操作信息;
    获取根据所述后台操作信息输入的执行指令;及
    根据所述执行指令处理所述后台操作指令。
  21. 根据权利要求20所述的电子设备,其特征在于,所述计算机可读指令被所述处理器执行时,使得所述处理器还执行以下操作:
    根据所述电子设备在所述通话过程中的系统占用率和当前通话时长中的至少一种确定所述第一预设次数。
  22. 根据权利要求17所述的电子设备,其特征在于,所述计算机可读指令被所述处理器执行时,使得所述处理器还执行以下操作:
    获取发起所述后台操作指令的第二应用程序;
    统计在所述通话过程中所述第二应用程序发起的后台操作指令被过滤的第二过滤次数;及
    当所述第二过滤次数超过第二预设次数,调节所述第二应用程序的资源占用率。
  23. 根据权利要求22所述的电子设备,其特征在于,所述计算机可读指令被所述处理器执行时,使得所述处理器还执行以下操作:
    当所述第二过滤次数超过第三预设次数时,冻结所述第二应用程序,其中,所述第三预设次数大于所述第二预设次数。
  24. 根据权利要求22所述的电子设备,其特征在于,所述计算机可读指令被所述处理器执行时,使得所述处理器还执行以下操作:
    统计历史通话过程中各个所述第二应用程序发起的后台操作指令被过滤的第三过滤次数;
    将各个所述第二应用程序按照所述第三过滤次数从高到低的顺序进行排序;及
    按照排序获取预设数量的第二应用程序作为目标应用程序,禁止所述目标应用程序发起所述后台操作指令。
PCT/CN2018/116461 2018-11-20 2018-11-20 通话处理方法、计算机可读存储介质和电子设备 WO2020102982A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201880098069.9A CN113170015B (zh) 2018-11-20 2018-11-20 通话处理方法、通话处理装置、计算机可读存储介质和电子设备
PCT/CN2018/116461 WO2020102982A1 (zh) 2018-11-20 2018-11-20 通话处理方法、计算机可读存储介质和电子设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/116461 WO2020102982A1 (zh) 2018-11-20 2018-11-20 通话处理方法、计算机可读存储介质和电子设备

Publications (1)

Publication Number Publication Date
WO2020102982A1 true WO2020102982A1 (zh) 2020-05-28

Family

ID=70773761

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/116461 WO2020102982A1 (zh) 2018-11-20 2018-11-20 通话处理方法、计算机可读存储介质和电子设备

Country Status (2)

Country Link
CN (1) CN113170015B (zh)
WO (1) WO2020102982A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070004446A1 (en) * 2005-06-30 2007-01-04 M-Systems Flash Disk Pioneers Ltd. Wireless telecommunication device and uses thereof
CN104516760A (zh) * 2014-12-12 2015-04-15 华为技术有限公司 一种操作系统热切换的方法、装置及移动终端
EP2983080A1 (en) * 2014-08-07 2016-02-10 Nokia Technologies OY Audio source control
CN105975344A (zh) * 2016-05-10 2016-09-28 北京小米移动软件有限公司 防止应用过度占用传感器的控制方法及装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161724A (zh) * 2015-03-23 2016-11-23 阿里巴巴集团控股有限公司 音频输出控制方法及装置
CN105577906B (zh) * 2015-04-08 2019-06-11 宇龙计算机通信科技(深圳)有限公司 一种多系统终端通知消息的提示方法及装置
CN105554259B (zh) * 2015-12-11 2019-07-19 北京元心科技有限公司 基于多系统的防止电话冲突方法和智能终端
CN106055074A (zh) * 2016-05-31 2016-10-26 广东欧珀移动通信有限公司 一种应用程序处理方法及装置
CN107870759A (zh) * 2016-09-26 2018-04-03 中兴通讯股份有限公司 一种音频控制方法和装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070004446A1 (en) * 2005-06-30 2007-01-04 M-Systems Flash Disk Pioneers Ltd. Wireless telecommunication device and uses thereof
EP2983080A1 (en) * 2014-08-07 2016-02-10 Nokia Technologies OY Audio source control
CN104516760A (zh) * 2014-12-12 2015-04-15 华为技术有限公司 一种操作系统热切换的方法、装置及移动终端
CN105975344A (zh) * 2016-05-10 2016-09-28 北京小米移动软件有限公司 防止应用过度占用传感器的控制方法及装置

Also Published As

Publication number Publication date
CN113170015B (zh) 2022-07-12
CN113170015A (zh) 2021-07-23

Similar Documents

Publication Publication Date Title
US10831161B2 (en) Method and device for sending communication message
US11625144B2 (en) Method for displaying different application shortcuts on different screens
WO2018045878A1 (zh) 触摸屏参数的调整方法及相关产品
CN108512625B (zh) 摄像头的抗干扰方法、移动终端及存储介质
CN108536490B (zh) 一种应用程序启动方法、移动终端以及计算机存储介质
CN108958695B (zh) 音频输出方法、装置及计算机可读存储介质
CN112997470B (zh) 音频输出控制方法和装置、计算机可读存储介质、电子设备
CN108322602B (zh) 一种处理应用无响应的方法、终端和计算机可读存储介质
CN112486365A (zh) 通知事件更新方法、终端设备以及存储介质
CN112805988B (zh) 通话控制方法和装置、计算机可读存储介质、电子设备
WO2018049901A1 (zh) 数据迁移方法及相关设备
CN107424393B (zh) 移动终端寻找方法、移动终端及存储介质
CN107566631B (zh) 一种音量控制方法、移动终端及计算机可读存储介质
CN107634940B (zh) 一种流量使用的控制方法、终端、服务器及可读存储介质
CN112997471B (zh) 音频通路切换方法和装置、可读存储介质、电子设备
WO2019011297A1 (zh) 查找和搜索fm频道的方法、移动终端及存储装置
CN110891262A (zh) 一种蓝牙配对的方法、系统和终端设备
CN109521916B (zh) 一种基于柔性屏的文件处理方法、移动终端和存储介质
WO2020102982A1 (zh) 通话处理方法、计算机可读存储介质和电子设备
CN115277922A (zh) 处理方法、智能终端及存储介质
CN109739641B (zh) 一种自适应cpu调频加速方法及装置、移动终端及存储介质
WO2020113392A1 (zh) 网络处理方法、计算机可读存储介质和电子设备
CN108446046B (zh) 一种触屏控制方法、终端和计算机可读存储介质
CN112230825A (zh) 分享方法、移动终端及存储介质
CN112261536B (zh) 耳机控制方法、装置、终端设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18940883

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 29/09/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18940883

Country of ref document: EP

Kind code of ref document: A1