Access request processing method, device and equipment

By introducing a mode management mechanism into the terminal device, dynamically managing the use permissions of the audio device, the problem that the audio device cannot be switched freely after being occupied by a certain application is solved, and automatic access permission management and data security between applications are realized.

CN119556880APending Publication Date: 2025-03-04LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411750555.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2025-03-04

AI Technical Summary

Technical Problem

In existing terminal devices, after the audio device is occupied by a certain application, other applications cannot switch freely, resulting in poor user experience.

Method used

By introducing a mode management mechanism in the electronic device, an application in the first state is determined and the use permissions of the audio device are dynamically managed according to its state, so that multiple applications can dynamically manage access permissions according to the user's wishes.

Benefits of technology

It realizes automatic access permission management of audio devices between different applications, avoids complex operations, and ensures data security and user experience between applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119556880A_ABST
    Figure CN119556880A_ABST
Patent Text Reader

Abstract

The invention provides an access request processing method, device and equipment, and is applied to the technical field of audio management. The access request processing method comprises the steps that under the condition that the electronic equipment is in a first mode, a first application in a first state is determined, and when the first application is in the first state, a first device of the electronic equipment can respond to a use request of the first application; if the second application requests to use the first device of the electronic equipment, the first device does not respond to the use request of the second application and keeps responding to the use request of the first application according to the first state of the first application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of audio management technology, and in particular to a method, device and equipment for processing an access request. Background Art

[0002] At present, when an application in a terminal device obtains audio data, it usually needs to call an audio device (such as a microphone, etc.). If the audio device is already occupied by an application, then when other applications want to use the audio device, it will prompt that the audio device is occupied, and the audio device cannot be switched freely with the switching of applications. Summary of the invention

[0003] In view of this, the present disclosure provides a method, apparatus and device for processing an access request.

[0004] According to a first aspect of the present disclosure, there is provided a method for processing an access request, which is applied to an electronic device, comprising: when the electronic device is in a first mode, determining a first application in a first state, wherein when the first application is in the first state, a first device of the electronic device is able to respond to a request for use of the first application; if a second application requests to use the first device of the electronic device, based on the first state of the first application, the first device does not respond to the request for use of the second application and maintains responding to the request for use of the first application.

[0005] According to an embodiment of the present disclosure, when the electronic device is in a first mode, determining a first application in a first state includes: displaying a first interface, receiving a user's selection of the first application on the first interface, so that the first application is in the first state, and the first interface displays multiple applications that can use the first device; the first device is an audio device, and the first device of the electronic device responds to a request to use the first application, including: the audio device of the electronic device receives and outputs audio data of the first application, and / or the audio device of the electronic device receives and outputs voice input from the user to the first application.

[0006] According to an embodiment of the present disclosure, the second application requests to use the first device of the electronic device, including any of the following: the user starts the second application or the user triggers the function associated with the second application and the first device, so that the second application is in an active state to request to use the first device of the electronic device.

[0007] According to an embodiment of the present disclosure, a user selection of a second application is received on a first interface, so that the second application is in a first state, and the first device can respond to a use request of the second application and not respond to a use request of the first application.

[0008] According to an embodiment of the present disclosure, the method also includes: in response to a request from a second application to use a first device of the electronic device, displaying an interface related to the first interface, receiving a user's selection of the second application on the interface related to the first interface, so that the second application is in a first state, wherein when the second application is in the first state, the first device is able to respond to the second application's use request and not respond to the first application's use request.

[0009] According to an embodiment of the present disclosure, the method also includes: when the electronic device is in the second mode, if the second application requests to use the first device of the electronic device, the first device responds to the use request of the second application and does not respond to the use request of the first application.

[0010] According to an embodiment of the present disclosure, the method further includes: displaying multiple applications in the first interface in a preset order according to the degree of association between the user and the multiple applications respectively, wherein the degree of association represents the frequency of use of the multiple applications by the user.

[0011] According to an embodiment of the present disclosure, multiple applications are displayed in a first interface in a preset order, including: generating an identifier of each application according to attribute information of the multiple applications; and displaying the identifiers of the multiple applications in the first interface in a preset order according to the association.

[0012] A second aspect of the present disclosure provides an access request processing device, including: a determination module, for determining a first application in a first state when the electronic device is in a first mode, wherein when the first application is in the first state, the first device of the electronic device can respond to a request for use of the first application; a processing module, for if a second application requests to use the first device of the electronic device, according to the first state of the first application, the first device does not respond to the second application's request for use and continues to respond to the first application's request for use.

[0013] The third aspect of the present disclosure provides an electronic device, comprising: a first device for responding to a request for use of an application of the electronic device; a configuration module for placing the electronic device in a first mode or a second mode, and if the electronic device is in the first mode, placing the first application in a first state according to user input; a processing module for controlling the first device to respond to the request for use of the first application when the first application is in the first state, and when a second application requests to use the first device of the electronic device, if it is determined that the first application is in the first state, controlling the first device not to respond to the request for use of the second application and to maintain responding to the request for use of the first application.

[0014] A fourth aspect of the present disclosure further provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the above-mentioned method for processing access requests.

[0015] A fifth aspect of the present disclosure further provides a computer program product, including a computer program, which implements the above-mentioned access request processing method when executed by a processor.

[0016] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0018] Figure 1 A flowchart schematically illustrates a method for processing an access request according to an embodiment of the present disclosure;

[0019] Figure 2 A schematic diagram schematically shows a method for processing an access request in a first mode according to an embodiment of the present disclosure;

[0020] Figure 3 A schematic diagram schematically shows a method for processing an access request in the second mode according to an embodiment of the present disclosure;

[0021] Figure 4 The structure block diagram of the access request processing device according to the embodiment of the present disclosure is schematically shown;

[0022] Figure 5 The structure diagram of the electronic device according to the embodiment of the present disclosure is schematically shown;

[0023] Figure 6 A schematic diagram schematically shows a method for processing an access request according to an embodiment of the present disclosure;

[0024] Figure 7 The following schematically shows the flow of audio data according to an embodiment of the present disclosure;

[0025] Figure 8 A block diagram of an electronic device suitable for implementing a method for processing an access request according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0026] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0027] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0028] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.

[0029] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0030] The embodiments of the present disclosure provide a method, apparatus and device for processing an access request. Before introducing the technical solution provided by the embodiments of the present disclosure, the related technologies involved in the present disclosure are first described.

[0031] In the related art, currently, when an application in a terminal device obtains audio data, it usually needs to call an audio device (e.g., a microphone, etc.). If the audio device is already occupied by an application, then when other applications want to use the audio device, it will prompt that the audio device is occupied, and the audio device cannot be switched freely with the switching of applications.

[0032] For example, when using a first application (e.g., a conference application) for an online meeting, the first application will occupy the microphone resources. If someone calls the social application (the second application) at this time, or other applications also need to access the microphone, it will prompt that the microphone is occupied and cannot be switched freely. You need to mute the microphone of the current first application before using social applications or other applications. If each application handles microphone muting differently, it is also possible that after muting the microphone in the first application, the second application or other applications will also be muted at the same time, resulting in a poor user experience.

[0033] To address the above issues, the following approaches can be adopted.

[0034] The first type: The audio device of the laptop is usually in shared mode, that is, multiple applications can use the audio device at the same time. However, shared mode not only requires converting audio data, but also mixing data from multiple shared mode applications. While introducing delays, it also causes information confusion. For example, the speech originally intended to be in the first application (for example, the conference application) is actually transmitted to the second application (for example, the social application).

[0035] The second type: The audio device of the mobile phone is usually in preemptive mode, that is, the second application can preempt the access rights of the microphone of the first application. For example, if you are talking in the first application (social application), if you answer the call in the second application (phone), the call in the social application can only be hung up.

[0036] An embodiment of the present disclosure provides an application to an electronic device, including: when the electronic device is in a first mode, determining a first application in a first state, wherein when the first application is in the first state, a first device of the electronic device can respond to a use request of the first application; if a second application requests to use the first device of the electronic device, according to the first state of the first application, the first device does not respond to the use request of the second application and maintains responding to the use request of the first application. Multiple applications that can use the first device are managed through a specific mode, so that multiple applications can dynamically manage access rights to the first device according to the user's wishes. According to the user's operation on the second application, the second application can meet the first state to access the first device, and different applications can automatically access the first device without complicated operations, and different applications obtain data in the first device with privacy, ensuring data security between various applications.

[0037] The following will be passed Figure 1~Figure 3 The method for processing the access request of the disclosed embodiment is described in detail.

[0038] Figure 1 The flowchart schematically shows a method for processing an access request according to an embodiment of the present disclosure.

[0039] like Figure 1 As shown, the method for processing an access request of this embodiment is applied to an electronic device, and the method includes operations S210 to S220.

[0040] In operation S210, when the electronic device is in the first mode, a first application in a first state is determined, wherein the first application is in the first state and a first device of the electronic device can respond to a use request of the first application.

[0041] For example, the electronic device may be a mobile phone, a tablet computer, a wearable device such as a smart watch, a smart bracelet, a Bluetooth headset, etc., a smart home device such as a TV, a smart screen, a game console, a smart speaker, a smart projector, a smart TV box, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc. The disclosed embodiments do not impose any special restrictions on the specific device form of the electronic device.

[0042] The first device may be a function shared by multiple applications in the electronic device, for example, the first device may be an audio device including audio collection and / or playback functions. The first device may also be a positioning device.

[0043] The first mode may be a manual mode. For example, a user needs to manually select an application in a specific interface to switch between different applications to use the first device. The embodiment of the present disclosure does not limit the first mode and can be set according to different requirements.

[0044] The first state may be an application manually selected through a specific interface in the first mode. In the first state, the first application can access the first device, and the first device can respond to a use request of the first application.

[0045] For example, when the computer is in manual mode and the first device is an audio device, the user manually selects the conference application through a specific interface, and the conference application can access the audio device. That is, the user can speak in the conference application through the microphone of the audio device, and can also obtain the sound of others speaking in the conference application through the speaker of the audio device.

[0046] In operation S220, if the second application requests to use the first device of the electronic device, according to the first state of the first application, the first device does not respond to the use request of the second application and keeps responding to the use request of the first application.

[0047] Exemplarily, the second application may be an application that can use the first device of the electronic device. In the case where the first device is an audio device, the second application may be a social application, a video player, etc.

[0048] The first device does not respond to the use request of the second application and continues to respond to the use request of the first application. It can be understood that the second application is not in the first state, the second application cannot access the audio device, cannot obtain the audio data generated by the second application from the audio device, and the sound of the user speaking to the second application cannot be transmitted to the audio device. It can also be understood that although the second application is in the first state, the second application's use authority to the first device is lower than the first application's use authority to the first device.

[0049] If the second application is not in the first state, that is, the user does not select the second application through the specific interface in the first mode, the second application cannot be in the first state. For example, if the user starts the social application by double-clicking on the computer desktop, the social application cannot be in the first state. Or if the user switches the social application running in the background to the active state through a process, the social application cannot be in the first state. Or if the user opens the social application by accessing the website, the social application cannot be in the first state.

[0050] For example, when the computer is in manual mode and the first device is an audio device, the user manually selects the conference application through a specific interface. At this time, the conference application can access the audio device. That is, the user can speak in the conference application through the microphone of the audio device, and can also obtain the sound of others speaking in the conference application through the speaker of the audio device. In the case of an incoming call from a social application, if the user clicks the answer button of the social application, the social application cannot use the audio device, and the conference application is still using the audio device. That is, although the user clicks the answer button of the social application, he cannot hear the other party's voice, and the user's voice cannot be transmitted to the other party. However, the user can continue to hear the voice of others speaking in the conference application, and the user's voice can be heard by others in the conference application.

[0051] When the second application is in the first state, but the second application has a lower permission to use the first device than the first application. For example, when the computer is in manual mode and the first device is an audio device, the user manually selects the application of the conference application through a specific interface, and at this time, the conference application can access the audio device. That is, the user can speak in the conference application through the microphone of the audio device, and can also obtain the sound of others speaking in the conference application through the speaker of the audio device. In the case of a call from a social application, if the user manually selects the application of the social application through a specific interface, but because the social application has a lower permission to use the audio device than the conference application, the social application cannot use the audio device, and the conference application is still using the audio device. That is, although the user clicks the answer button of the social application, he cannot hear the other party's voice, and the user's voice cannot be transmitted to the other party. However, the user can continue to hear the voices of other people speaking in the conference application, and the user's voice can be heard by other people in the conference application.

[0052] If the user manually selects a social application through a specific interface, and the social application has greater permission to use the audio device than the conference application. At this time, the permission to use the audio device can be switched from the conference application to the social application. That is, the user cannot speak in the conference application through the microphone of the audio device, nor can the user obtain the sound of others speaking in the conference application through the speaker of the audio device. After the user clicks the answer button of the social application, the user can hear the other party's voice, and the user's voice can also be transmitted to the other party. The user's voice will not be transmitted to the conference application and heard by others.

[0053] It is understandable that by managing multiple applications that can use the first device in a specific mode, multiple applications can dynamically manage access rights to the first device according to the user's wishes. According to the user's operation on the second application, the second application can meet the first state to access the first device, and different applications can automatically access the first device without complicated operations. The data obtained by different applications on the first device is private, ensuring data security between various applications.

[0054] Figure 2 A schematic diagram schematically shows a method for processing an access request in a first mode according to an embodiment of the present disclosure.

[0055] As described above, in operation S210, when the electronic device is in the first mode, a first application in the first state is determined. In one achievable manner, the operation may further include operation S211.

[0056] In operation S211, a first interface is displayed, and a user's selection of a first application on the first interface is received, so that the first application is in a first state, and the first interface displays a plurality of applications that can use the first device.

[0057] For example, a first interface may be provided on the electronic device display interface, and all or part of the applications associated with the first device may be displayed on the first interface. The user may put the first application in the first state by clicking on the first application in the first interface.

[0058] Reference Figure 2 , the desktop of the computer displays a first interface, which displays social applications, conference applications, browsers, etc. The user clicks on the conference application in the first interface, which can put the conference application in the first state, that is, the conference application can use the speaker and microphone of the audio device. At this time, the conference application is in exclusive mode for the use of the audio device. The conference application can output audio data through the speaker and can also collect audio data through the microphone. Other applications do not have the permission to use the audio device.

[0059] In some embodiments, when the first device is an audio device, the first device of the electronic device responds to a request to use the first application, including: the audio device of the electronic device receives and outputs audio data of the first application, and / or the audio device of the electronic device receives user voice input and outputs it to the first application.

[0060] For example, continue to Figure 2 In the case where the first device is an audio device, when the first application issues an access request to the first device, the audio device can receive audio data of the first application and output it to the user; and can also receive voice input by the user to the audio device. It can also receive audio data of the first application and output it to the user and receive voice input by the user to the audio device.

[0061] For example, when the computer is in the first mode, the user selects the conference application through the first interface. At this time, the conference application can access the audio device. That is, the user can speak in the conference application through the microphone of the audio device, and can also obtain the sound of others speaking in the conference application through the speaker of the audio device. When the user selects the conference application, the service process can control the application to obtain audio data from the audio buffer 3 (Endpoint Buffer). The specific implementation process can be as follows: the audio interface 4 may include: management interface (MM Device API), audio stream (Wave Xxx Func), topology interface (Device TopologyAPI), volume interface (Endpoint Volume API), etc. The audio interface 4 obtains audio data through various interfaces and then caches it in the audio buffer. The audio driver 2 controls the conference application to read the audio data from the audio buffer 3, and plays it to the user through the audio adapter 1 by controlling the speaker. At the same time, the audio adapter 1 collects the user's speaking voice by controlling the microphone and transmits it to the other party through the audio interface 4.

[0062] As described above, in operation S220, the second application requests to use the first device of the electronic device. In one possible implementation, the operation may further include operation S221a.

[0063] In operation S221a, the user starts the second application so that the second application is in an active state to request to use the first device of the electronic device.

[0064] For example, the user can double-click the social application icon on the computer desktop to open the social application and make the social application active to request to use the audio device. At this time, the social application cannot be in the first state and cannot obtain the permission to use the audio device.

[0065] Or if the user switches the social application running in the background to an active state through a process, the social application cannot be in the first state and cannot obtain the permission to use the audio device.

[0066] As described above, in operation S220, the second application requests to use the first device of the electronic device. In one possible implementation, the operation may further include operation S221b.

[0067] In operation S221b, the user triggers a function of associating the second application with the first device, so that the second application is in an active state to request to use the first device of the electronic device.

[0068] For example, when the second application is a social application, if a call from the social application comes in, options for answering and hanging up the call from the social application will appear on the computer desktop. If the user clicks the answer option to connect to the voice call of the social application, even if the user clicks the answer option, the social application cannot be in the first state and cannot obtain permission to use the audio device.

[0069] Therefore, only by clicking on the application that wants to use the audio device through the first interface can the social application be placed in the first state to obtain the permission to use the audio device.

[0070] In some embodiments, putting the second application in the first state can be achieved by the following operations: receiving a user's selection of the second application on the first interface, so that the second application is in the first state, and the first device can respond to the use request of the second application and not respond to the use request of the first application.

[0071] For example, if the first application is currently using the first device, the user can select the second application in the first interface to put the second application in the first state, and then switch the usage permission of the first device from the first application to the second application. After the switch is completed, the first device will not respond to the usage request of the first application, and can only respond to the usage request of the second application.

[0072] For example, the conference application is currently using the audio device. If the user clicks on the first interface to select the application of the social application. At this time, the use permission of the audio device can be switched from the conference application to the social application. Then the user cannot speak in the conference application through the microphone of the audio device, nor can the user obtain the sound of others speaking in the conference application through the speaker of the audio device. After the user clicks the answer button of the social application, the user can hear the voice of the other party speaking on the social application phone, and the user's voice can also be transmitted to the other party. The user's voice will not be transmitted to the conference application and heard by others.

[0073] In some embodiments, the method for processing access requests in the embodiments of the present disclosure further includes:

[0074] In response to a second application request to use the first device of the electronic device, an interface related to the first interface is displayed, and a user's selection of the second application on the interface related to the first interface is received, so that the second application is in a first state, wherein when the second application is in the first state, the first device can respond to the second application's use request and not respond to the first application's use request.

[0075] For example, at the current moment, the conference application is using the audio device. When the second application is a social application, if a call from the social application comes in at this time, the computer desktop will appear with options for answering and hanging up the social application call. If the user clicks the answer option, it means that the user wants to connect to the social application, so that the user can normally answer the social application call. After the user clicks the answer option, the first interface can pop up to remind the user to switch to the social application through the first interface, so that the social application can be in the first state and obtain the right to use the audio device.

[0076] Alternatively, after the user clicks the answer option, a prompt message may pop up. For example, the prompt message may include: switch the permission of the audio device from the conference application to the social application, and provide options of yes and no. If the user clicks the yes option in the prompt message, the permission of the audio device may be switched from the conference application to the social application. The user may conduct a normal call on the social application.

[0077] Figure 3 A schematic diagram schematically shows a method for processing an access request in the second mode according to an embodiment of the present disclosure.

[0078] As described above, the method for processing an access request according to the embodiment of the present disclosure may further include operation S310.

[0079] In operation S310, when the electronic device is in the second mode (Active Mode), if a second application requests to use a first device of the electronic device, the first device responds to the use request of the second application and does not respond to the use request of the first application.

[0080] Exemplarily, the electronic device may be set to the second mode, and the user may also use the second mode to switch the application's permission to use the first device.

[0081] like Figure 3 As shown, the second mode may be an active mode, where the user can double-click on the system desktop to select an application, making the selected application active. That is, the user double-clicks on the system desktop to select an application, making the selected application the focus window of the system, and the focus window represents the application window that the user is currently interacting with in the display interface.

[0082] For example, at the current moment, the conference application is using the audio device. When the second application is a social application, the user double-clicks the social application icon on the computer system desktop, and the chat window of the social application is displayed on the top of the desktop. The social application is then placed in the first state, and the use authority of the audio device is switched from the conference application to the social application. The user clicks on the social application call answering option to make a normal social application call. At this time, the social application can use the audio device, but the conference application cannot use the audio device. The user cannot speak in the conference application through the microphone of the audio device, nor can he obtain the sound of others speaking in the conference application through the speaker of the audio device. The user can hear the voice of the other party speaking on the social application call, and the user's voice can also be transmitted to the other party.

[0083] When the user selects the conference application, the service process can control the application to obtain audio data from the audio buffer 3. The specific implementation process can be as follows: the audio interface 4 may include: management interface, audio stream, topology interface, volume interface, etc. The audio interface 4 obtains audio data through various interfaces and then caches it in the audio buffer. The audio driver 2 controls the conference application to read audio data from the audio buffer 3, and plays it to the user through the audio adapter 1 by controlling the speaker. At the same time, the audio adapter 1 collects the user's speaking voice by controlling the microphone and transmits it to the other party through the audio interface 4.

[0084] In some embodiments, the method for processing an access request according to the embodiment of the present disclosure may further include operation S410.

[0085] In operation S410, an identifier of a first application is highlighted in a first interface to distinguish an application currently using the first device from other applications.

[0086] Exemplarily, when the electronic device is in the first mode, continue to refer to Figure 2 , the applications in the first interface can be displayed according to the application identifiers, and the application currently using the first device can be displayed in a highlighted form, so that the user can quickly distinguish the application currently using the first device from other applications. In other embodiments, a colored box can be added around the application identifier currently using the first device, so that the user can quickly distinguish the application currently using the first device from other applications.

[0087] In some embodiments, the method for processing an access request according to the embodiment of the present disclosure may further include operation S510.

[0088] In operation S510, a plurality of applications are displayed in a first interface in a preset order according to the associations between the user and the plurality of applications, respectively, wherein the associations represent the frequency of use of the plurality of applications by the user.

[0089] Exemplarily, when the electronic device is in the first mode, continue to refer to Figure 2 , multiple applications in the first interface can be sorted according to the number of times the user uses the application per unit time, and multiple applications can be sorted from high to low according to the user's usage frequency, and the application with the highest user usage ranking can be arranged in the first place.

[0090] It should be noted that the arrangement order of multiple applications in the first interface may change over time. For example, if the usage frequency of social applications is higher than that of conference applications in the first historical period, the social applications may be arranged in front of the conference applications in real time. If the usage frequency of social applications is lower than that of conference applications in the second historical period, the conference applications may be arranged in front of the social applications in real time.

[0091] As described above, in operation S510, a plurality of applications are displayed in the first interface in a preset order. In one achievable manner, the operation may further include operations S511 to S512.

[0092] In operation S511, an identification of each application is generated according to the attribute information of the plurality of applications.

[0093] In operation S512, the identifications of the plurality of applications are displayed in the first interface in a preset order according to the relevance.

[0094] Exemplarily, the attribute information of an application may be a characteristic of the application. The attribute information may be commonly used to describe and distinguish different applications. For example, the attribute information may be the name, chart, path, handle, etc. of the application.

[0095] For example, when displaying multiple applications in the first interface, the application icons can be used as application identifiers. The multiple application identifiers are arranged in descending order in the first interface according to the frequency of use of the corresponding applications by the user. When the user subsequently selects an application to use the first device, the user can distinguish different applications according to the application icons.

[0096] If the social application is used more frequently than the conference application, and the conference application is used more frequently than the video player, the corresponding icons of the three may be displayed in the first interface in the order of the social application, the conference application, and the video player.

[0097] In some embodiments, when multiple application settings in the first interface use priority for the first device, the method for processing access requests in the embodiments of the present disclosure may further include operations S610 to S640.

[0098] In operation S610, priorities of a plurality of applications in a first interface for use by a first device are obtained.

[0099] In operation S620, when the priority of the second application is lower than the priority of the first application, pending confirmation information is generated, where the pending confirmation information indicates whether the user switches the usage authority of the first device from the first application to the second application.

[0100] In operation S630, in response to a user's confirmation operation on the information to be confirmed, the use authority for the first device is switched from the current first application to the second application.

[0101] In operation S640, in response to a negative operation of the user on the information to be confirmed, the use permission of the first application to the first device is maintained.

[0102] For example, if priorities for using the first device authority are set between various applications in the first interface, the following operations may be performed to switch the use authority of different applications to the first device.

[0103] For example, when the conference application is in the first state, the social application requests to use the audio device, and the user selects the application of the social application by clicking in the first interface. If the social application's permission to use the audio device is higher than the conference application's permission to use the audio device, the permission to use the audio device can be directly switched from the conference application to the social application. If the social application's permission to use the audio device is lower than the conference application's permission to use the audio device, at this time, a prompt box (pending confirmation information) may pop up, and a prompt content will appear in the prompt box: switch the permission to use the audio device from the conference application to the social application, and give the operation options of "yes" and "no". If the user clicks "yes", the permission to use the audio device can be switched from the conference application to the social application. If the user clicks "no", the permission to use the audio device cannot be switched from the conference application to the social application, and the conference application's permission to use the audio device continues to be maintained.

[0104] Based on the above access request processing method, the present disclosure also provides an access request processing device. Figure 7 The device is described in detail.

[0105] Figure 7 The structure block diagram of the access request processing device according to the embodiment of the present disclosure is schematically shown.

[0106] like Figure 7 As shown, the access request processing device 300 of this embodiment includes a determination module 310 and a processing module 320 .

[0107] The determination module 310 is used to determine a first application in a first state when the electronic device is in a first mode, wherein the first application is in the first state and the first device of the electronic device can respond to a use request of the first application. In one embodiment, the determination module 310 can be used to perform the operation S210 described above, which will not be repeated here.

[0108] The processing module 320 is used for, if the second application requests to use the first device of the electronic device, according to the first state of the first application, the first device does not respond to the use request of the second application and maintains responding to the use request of the first application. In one embodiment, the processing module 320 can be used to perform the operation S220 described above, which will not be repeated here.

[0109] According to an embodiment of the present disclosure, any multiple modules in the determination module 310 and the processing module 320 can be combined into one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the determination module 310 and the processing module 320 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application-specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in any appropriate combination of any of them. Alternatively, at least one of the determination module 310 and the processing module 320 can be at least partially implemented as a computer program module, and when the computer program module is run, the corresponding function can be executed.

[0110] Based on the above access request processing method, the present disclosure also provides an electronic device. Figure 5 The electronic device is described in detail.

[0111] Figure 5 The structural diagram of an electronic device according to an embodiment of the present disclosure is schematically shown.

[0112] like Figure 5 As shown, the electronic device 400 of this embodiment includes a first device 401 , a configuration module 402 and a processing module 403 .

[0113] The first device 401 is used to respond to a use request of an application of the electronic device 400;

[0114] A configuration module 402, configured to enable the electronic device 400 to be in a first mode or a second mode, and if the electronic device 400 is in the first mode, enable the first application to be in a first state according to a user input;

[0115] The processing module 403 is used to control the first device 401 to respond to the use request of the first application when the first application is in the first state. When the second application requests to use the first device 401 of the electronic device, if it is determined that the first application is in the first state, control the first device 401 not to respond to the use request of the second application and continue to respond to the use request of the first application.

[0116] For example, the description of the electronic device 400 and the first device 401, namely the processing module 403, can refer to Figure 1 The instructions in the article will not be repeated here.

[0117] The configuration module 402 may be a program that enables the electronic device 400 to be in the first mode or the second mode. For example, the configuration module 402 may be installed as a plug-in on a computer. When the user opens the plug-in, he or she may select the first mode or the second mode of the computer application to manage the audio device usage rights of the application associated with the audio device (i.e., the first device 401). It should be noted here that if the application itself has the right to seize the use of the audio device by other applications, after the configuration module 402 is installed, the original right to seize the use of the audio device by other applications is shielded, so that the application is under unified management.

[0118] Figure 6 A schematic diagram schematically shows a method for processing an access request according to an embodiment of the present disclosure.

[0119] like Figure 6 As shown, the first device is an audio device as an example. After the electronic device has a configuration module, the user can choose to work in the first mode or the second mode. The user can switch applications through the system display interface. The electronic device can be divided into three application layers during the application process, including: display layer, driver layer and audio interface layer.

[0120] The display layer is used for the user to select different applications to use the audio device in the first mode or the second mode of the display interface.

[0121] The driver layer is used to collect the properties of multiple applications associated with the audio device in advance through the audio driver, such as the path, icon, handle, group parameters, etc. of the application, and generate an identifier corresponding to each application in the first interface according to the properties of the multiple applications, so that the user can identify different applications.

[0122] The audio interface layer is used to collect audio data or output data information of audio devices.

[0123] After the user selects the permission for the social application to use the audio device, the driver will return the audio data of the audio buffer corresponding to the audio interface layer according to the social application selected by the user on the display interface.

[0124] It is understandable that the disclosed embodiment processes the audio session at the driver bottom layer by calling the system interface without considering the behavior of different applications. When the application is in the first state, the audio stream data can be obtained and the audio data in the audio buffer can be accessed, ensuring the security of audio data of different applications.

[0125] Figure 7 The figure schematically shows a flow diagram of audio data according to an embodiment of the present disclosure.

[0126] like Figure 7 As shown, the microphone is connected to the electronic device via the audio interface 4. The microphone collects the user's speaking voice. The audio interface 4 converts the input analog signal into a digital signal and sends it to the audio buffer 3. The audio driver 2 manages the audio data read from the audio buffer 3 and processes the format conversion, delay compensation, etc. of these data. The audio driver 3 transmits the processed audio data to the audio adapter 1, which converts it into an analog signal and outputs it to the speaker. Conversely, the microphone can also input an analog signal into the electronic device via the audio interface 4, the audio adapter 1 converts it into a digital signal, and the audio driver 2 stores the data in the audio buffer 3, which is finally transmitted to the operating system or application for processing.

[0127] The following operations can be performed to realize the operation of the electronic device in the first mode and the second mode respectively.

[0128] First, a background service program can be developed to enumerate all audio sessions and set corresponding properties (such as name and icon) for each session. Then, this information will be displayed on the first interface, and different applications can be distinguished by grouping parameters, session names and icons.

[0129] In the case of the first mode, according to the application selected by the user, the handle of the application selected by the user is identified, and the use authority of the audio device can be switched according to the user's selection.

[0130] In the second mode, when the user is using a social application to make a call, the social application can be used as the current active window. When it is necessary to temporarily enable a conference application to access the microphone, the conference application can be set as the active window. When the system service detects that the active window is the conference application, it obtains the handle of the current active window conference application and can switch the use permission of the audio device according to the user's choice.

[0131] If an application in an inactive window wants to use the audio device, when the application in the inactive window obtains the audio buffer size (Audio Buffer Size), the returned Buffer size is 0, indicating that the inactive window cannot obtain the audio data of the microphone.

[0132] Continue to refer to Figure 2 , Figure 3 and Figure 7 , each application in the first mode and the second mode has exclusive access to the audio device. That is, when one application uses the audio device, another application cannot use the audio device and cannot obtain audio data from the audio buffer of the audio device. Therefore, compared with the audio data in the shared mode, the audio data obtained by the application in the exclusive mode in the audio buffer is independent, and the audio data between multiple applications does not interfere.

[0133] Figure 8 A block diagram of an electronic device suitable for implementing a method for processing an access request according to an embodiment of the present disclosure is schematically shown.

[0134] like Figure 8 As shown, the electronic device 500 according to an embodiment of the present disclosure includes a processor 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 to a random access memory (RAM) 503. The processor 501 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (for example, an application-specific integrated circuit (ASIC)), etc. The processor 501 may also include an onboard memory for caching purposes. The processor 501 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0135] In RAM 503, various programs and data required for the operation of electronic device 500 are stored. Processor 501, ROM 502 and RAM 503 are connected to each other via bus 504. Processor 501 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 502 and / or RAM 503. It should be noted that the program can also be stored in one or more memories other than ROM 502 and RAM 503. Processor 501 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in one or more memories.

[0136] According to an embodiment of the present disclosure, the electronic device 500 may further include an input / output (I / O) interface 505, which is also connected to the bus 504. The electronic device 500 may further include one or more of the following components connected to the I / O interface 505: an input portion 506 including a keyboard, a mouse, etc.; an output portion 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 508 including a hard disk, etc.; and a communication portion 509 including a network interface card such as a LAN card, a modem, etc. The communication portion 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage portion 508 as needed.

[0137] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.

[0138] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, it may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 502 and / or RAM 503 described above and / or one or more memories other than ROM 502 and RAM 503.

[0139] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the access request processing method provided by the embodiment of the present disclosure.

[0140] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 501. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0141] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 509, and / or installed from the removable medium 511. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0142] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the processor 501, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.

[0143] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).

[0144] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0145] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.

[0146] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A method for processing an access request, applied to an electronic device, comprising: When the electronic device is in the first mode, determining a first application in a first state, wherein when the first application is in the first state, a first device of the electronic device can respond to a use request of the first application; If a second application requests to use the first device of the electronic device, according to the first state of the first application, the first device does not respond to the use request of the second application and continues to respond to the use request of the first application.

2. The method according to claim 1, wherein when the electronic device is in the first mode, determining a first application in a first state comprises: displaying a first interface, receiving a user's selection of the first application on the first interface, so that the first application is in the first state, and the first interface displays a plurality of applications that can use the first device; The first device is an audio device, and the first device of the electronic device responds to the use request of the first application, including: The audio device of the electronic device receives and outputs the audio data of the first application, and / or the audio device of the electronic device receives the user's voice input and outputs it to the first application.

3. The method according to claim 1, wherein the second application requests to use the first device of the electronic device, comprising any one of the following: The user starts the second application or the user triggers a function of the second application associated with the first device, so that the second application is in an active state to request to use the first device of the electronic device.

4. The method according to claim 2 receives a user's selection of the second application on the first interface, so that the second application is in the first state, and the first device can respond to the use request of the second application and not respond to the use request of the first application.

5. The method according to claim 3, further comprising: In response to the second application requesting to use the first device of the electronic device, an interface related to the first interface is displayed, and a user's selection of the second application on the interface related to the first interface is received, so that the second application is in the first state, wherein when the second application is in the first state, the first device is able to respond to the second application's use request and not respond to the first application's use request.

6. The method according to claim 1, further comprising: When the electronic device is in the second mode, if the second application requests to use the first device of the electronic device, the first device responds to the use request of the second application and does not respond to the use request of the first application.

7. The method according to claim 2, further comprising: The multiple applications are displayed in the first interface in a preset order according to the association degrees between the user and the multiple applications respectively, wherein the association degrees represent the usage frequencies of the multiple applications by the user.

8. The method according to claim 7, wherein displaying the plurality of applications in the first interface in a preset order comprises: Generating an identification of each of the applications according to the attribute information of the multiple applications; as well as The identifiers of the multiple applications are displayed in the first interface in a preset order according to the association degree.

9. A device for processing an access request, comprising: a determining module, configured to determine, when the electronic device is in the first mode, a first application in a first state, wherein when the first application is in the first state, a first device of the electronic device can respond to a use request of the first application; A processing module is used for, if a second application requests to use the first device of the electronic device, according to the first state of the first application, the first device does not respond to the use request of the second application and continues to respond to the use request of the first application.

10. An electronic device comprising: A first device, for responding to a use request of an application of an electronic device; a configuration module, configured to place the electronic device in a first mode or a second mode, and if the electronic device is in the first mode, place the first application in a first state according to a user input; The processing module is used to control the first device to respond to the use request of the first application when the first application is in the first state, and when a second application requests to use the first device of the electronic device, if it is determined that the first application is in the first state, control the first device not to respond to the use request of the second application and to continue to respond to the use request of the first application.