CN111061546A - Power amplifier management method, device, terminal equipment and storage medium - Google Patents

Power amplifier management method, device, terminal equipment and storage medium Download PDF

Info

Publication number
CN111061546A
CN111061546A CN201911018726.7A CN201911018726A CN111061546A CN 111061546 A CN111061546 A CN 111061546A CN 201911018726 A CN201911018726 A CN 201911018726A CN 111061546 A CN111061546 A CN 111061546A
Authority
CN
China
Prior art keywords
power amplifier
attribute
authority
application
application program
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201911018726.7A
Other languages
Chinese (zh)
Inventor
刘均
罗文思
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch Technology Co Ltd
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 Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN201911018726.7A priority Critical patent/CN111061546A/en
Publication of CN111061546A publication Critical patent/CN111061546A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues

Abstract

The application discloses a power amplifier management method, a device, a terminal device and a storage medium, wherein the method is applied to the terminal device, the terminal device is provided with a power amplifier module, and the power amplifier management method comprises the following steps: acquiring a power amplifier calling request sent by an application program; detecting whether the power amplifier module is called; if the power amplifier module is called, judging whether the application program can call the power amplifier module according to the power amplifier calling request; and if the power amplifier module can be called by the application program, generating first feedback information and sending the first feedback information to the application program, wherein the first feedback information is information informing that the power amplifier module can be called by the application program.

Description

Power amplifier management method, device, terminal equipment and storage medium
Technical Field
The present application relates to the field of power amplifier management technologies, and in particular, to a power amplifier management method and apparatus, a terminal device, and a storage medium.
Background
Various application programs can be installed on existing terminal devices such as mobile phones, computers and music players, wherein part of the application programs need to call the power amplification function of the terminal device when in use, namely, the power amplification module of the terminal device needs to be used for voice playing.
If the application program to be squashed is an application program for voice call, and the user is squashed by another application program during the call, it is not desirable for the user, so that providing a flexible and reasonable power amplifier management method is a popular research topic being researched by those skilled in the art.
Disclosure of Invention
The present application mainly aims to provide a power amplifier management method, device, terminal device and storage medium, and aims to provide a flexible and reasonable power amplifier management method.
In order to achieve the above object, the present application provides a power amplifier management method, which is applied to a terminal device, where the terminal device is provided with a power amplifier module, and the power amplifier management method includes:
acquiring a power amplifier calling request sent by an application program;
detecting whether the power amplifier module is called;
if the power amplifier module is called, judging whether the application program can call the power amplifier module according to the power amplifier calling request;
and if the power amplifier module can be called by the application program, generating first feedback information and sending the first feedback information to the application program, wherein the first feedback information is information informing that the power amplifier module can be called by the application program.
Preferably, the determining whether the application program can call the power amplifier module according to the power amplifier call request includes:
calling a preset authority policy table according to the power amplifier calling request;
acquiring a first application permission of the application program according to the permission policy table, and determining that the permission attribute of the first application permission is an exclusive permission attribute or a shared permission attribute;
acquiring a second application permission of a current application program according to the permission policy table, and determining that the permission attribute of the second application permission is an exclusive permission attribute or a shared permission attribute, wherein the current application program is the application program calling the power amplifier module;
and comparing and analyzing the first application permission and the second application permission, and executing a corresponding calling strategy according to the comparison and analysis result.
Preferably, the executing the corresponding invoking policy according to the comparative analysis result specifically includes:
if the authority attribute of the first application authority is an exclusive authority attribute and the authority attribute of the second application authority is a sharing authority attribute, judging that the power amplifier module can be called and called by the application program;
if the authority attribute of the first application authority is a sharing authority attribute and the authority attribute of the second application authority is a sharing authority attribute, judging that the power amplifier module can be called and called by the application program;
and if the authority attribute of the first application authority is a sharing authority attribute and the authority attribute of the second application authority is an exclusive authority attribute, judging that the power amplifier module cannot be called by the application program and forbidding calling.
Preferably, the executing the corresponding invoking policy according to the comparative analysis result specifically includes:
if the authority attribute of the first application authority is an exclusive authority attribute and the authority attribute of the second application authority is an exclusive authority attribute, judging whether the attribute level of the exclusive authority attribute of the first application authority is lower than the attribute level of the exclusive authority attribute of the second application authority;
if the attribute level of the exclusive permission attribute of the first application permission is lower than the attribute level of the exclusive permission attribute of the second application permission, judging that the power amplifier module cannot be called by the application program and forbidding calling;
and if the attribute level of the exclusive right attribute of the first application right is higher than or equal to the attribute level of the exclusive right attribute of the second application right, judging that the power amplifier module can be called by the application program and executing the calling.
Preferably, the method further comprises:
and if the power amplifier module is not called, calling the power amplifier module according to the power amplifier calling request.
Preferably, the method further comprises:
and if the application program cannot call the power amplifier module, generating second feedback information and sending the second feedback information to the application program, wherein the second feedback information is information informing that the application program cannot call the power amplifier module.
Preferably, before the obtaining the power amplifier call request sent by the application program, the method further includes:
acquiring an authority policy table setting instruction;
and setting a corresponding application program to call the authority attribute of the power amplifier module and the attribute grade corresponding to the authority attribute according to the authority policy table setting instruction so as to generate an authority policy table and store the authority policy table.
This application still provides a power amplifier management device, is applied to terminal equipment, terminal equipment still is provided with the power amplifier module, power amplifier management device includes:
the request acquisition module is used for acquiring a power amplifier calling request sent by an application program;
the detection module is used for detecting whether the power amplifier module is called or not;
the judging module is used for judging whether the application program can call the power amplifier module according to the power amplifier calling request if the power amplifier module is called;
the first feedback module is configured to generate first feedback information and send the first feedback information to the application program if the application program can call the power amplifier module, where the first feedback information is information that the application program can call the power amplifier module.
Preferably, the determining module is further configured to:
calling a preset authority policy table according to the power amplifier calling request;
acquiring a first application permission of the application program according to the permission policy table, and determining that the permission attribute of the first application permission is an exclusive permission attribute or a shared permission attribute;
acquiring a second application permission of a current application program according to the permission policy table, and determining that the permission attribute of the second application permission is an exclusive permission attribute or a shared permission attribute, wherein the current application program is the application program calling the power amplifier module;
and comparing and analyzing the first application permission and the second application permission, and executing a corresponding calling strategy according to the comparison and analysis result.
Preferably, the determining module is further configured to:
if the authority attribute of the first application authority is an exclusive authority attribute and the authority attribute of the second application authority is a sharing authority attribute, judging that the power amplifier module can be called and called by the application program;
if the authority attribute of the first application authority is a sharing authority attribute and the authority attribute of the second application authority is a sharing authority attribute, judging that the power amplifier module can be called and called by the application program;
and if the authority attribute of the first application authority is a sharing authority attribute and the authority attribute of the second application authority is an exclusive authority attribute, judging that the power amplifier module cannot be called by the application program and forbidding calling.
Preferably, the determining module is further configured to:
if the authority attribute of the first application authority is an exclusive authority attribute and the authority attribute of the second application authority is an exclusive authority attribute, judging whether the attribute level of the exclusive authority attribute of the first application authority is lower than the attribute level of the exclusive authority attribute of the second application authority;
when the attribute level of the exclusive right attribute of the first application right is lower than the attribute level of the exclusive right attribute of the second application right, judging that the power amplifier module cannot be called by the application program and forbidding calling;
and if the attribute level of the exclusive right attribute of the first application right is higher than or equal to the attribute level of the exclusive right attribute of the second application right, judging that the power amplifier module can be called by the application program and executing the calling.
Preferably, the power amplifier management device further includes a direct calling module, configured to call the power amplifier module according to the power amplifier calling request if the power amplifier module is not called.
Preferably, the power amplifier management device further includes a second feedback module, configured to:
and if the application program cannot call the power amplifier module, generating second feedback information and sending the second feedback information to the application program, wherein the second feedback information is information informing that the application program cannot call the power amplifier module.
Preferably, the power amplifier management device further includes a setting module, and the setting module is configured to:
acquiring an authority policy table setting instruction;
setting an authority attribute and an attribute grade corresponding to the authority attribute, which are used for calling the power amplifier module by a corresponding application program according to the authority policy table setting instruction so as to generate an authority policy table;
and storing the authority policy table.
This application still provides a terminal equipment, terminal equipment is provided with the power amplifier module, terminal equipment still includes:
the memory is used for storing a power amplifier management program which can be executed by the computer;
the processor is used for calling the power amplifier management program stored in the memory to execute the power amplifier management method.
The application also provides a storage medium, the storage medium stores a power amplifier management program executable by a computer, and the processor can execute the power amplifier management method when calling the power amplifier management program.
Compared with the prior art, the power amplifier management method provided by the application is applied to the terminal equipment, the method is used for detecting whether the power amplifier module of the terminal equipment is called or not by obtaining the power amplifier calling request of the application program, judging whether the application program sending the power amplifier request can call the power amplifier module or not according to the power amplifier request when the power amplifier module is called, and generating corresponding feedback information to enable the application program to use the power amplifier module if the power amplifier module can be called, so that the situation that the power amplifier module is interrupted by other relatively secondary application programs when the power amplifier module is used by the relatively important application program is avoided, and the flexible and reasonable use of the power amplifier function of the terminal equipment is realized.
Drawings
Fig. 1A is a schematic structural diagram of a terminal device provided in the present application;
fig. 1B is a block diagram of a structure corresponding to the terminal device provided in fig. 1A;
fig. 2 is a flowchart illustrating steps of a power amplifier management method according to the present application;
FIG. 3 is a flowchart illustrating sub-steps of step S3 in FIG. 2;
FIG. 4A is a flowchart illustrating sub-steps of one embodiment of step S34 of FIG. 3;
FIG. 4B is a flowchart illustrating sub-steps of another embodiment of step S34 in FIG. 3;
fig. 5 is a block diagram of a power amplifier management apparatus according to an embodiment of the present application;
fig. 6 is a block diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that the descriptions in this application referring to "first", "second", etc. are for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present application.
The application provides a power amplifier management method, a power amplifier management device, a terminal device and a storage medium, wherein the power amplifier management method is applied to the terminal device, the terminal device is provided with a power amplifier module, and the power amplifier management method comprises the following steps: acquiring a power amplifier calling request sent by an application program; detecting whether the power amplifier module is called; if the power amplifier module is called, judging whether the application program can call the power amplifier module according to the power amplifier calling request; and if the power amplifier module can be called by the application program, generating first feedback information and sending the first feedback information to the application program, wherein the first feedback information is information informing that the power amplifier module can be called by the application program.
This application calls the request and detects terminal equipment's power amplifier module through the power amplifier that obtains application and whether has been called, then judge the application that sends this power amplifier request according to the power amplifier request when the power amplifier module has been called whether can call the power amplifier module, if can call then generate corresponding feedback information so that the application uses this power amplifier module, thereby avoid when having comparatively important application to use the power amplifier module by other comparatively minor applications interrupt the power amplifier module and use, the flexibility of terminal equipment power amplifier function has been realized, the rational use.
Referring to fig. 1A-1B, the terminal device 10 is provided with a power amplifier management device 101 and a power amplifier module 102. The power amplifier module 102 is configured to play an audio signal, an authority policy table is provided in the power amplifier management device 101, and is configured to acquire an Application 103 installed in the terminal device 10, which is also called a power amplifier module power amplifier call request sent by an APP (Application), and determine whether the Application 103 can call the power amplifier module 102 according to the power amplifier call request, if so, generate feedback information and send the feedback information to the Application 103, so that the Application 103 calls the power amplifier module 102. The power amplifier management device 101 is used for uniformly managing the power amplifier calling permission of the power amplifier module 102 called by the application program 103, whether the application program 103 sending the power amplifier calling request directly calls the power amplifier module 102 can be analyzed according to the permission level of the power amplifier calling permission, so that the situation that the use of the power amplifier module 102 is interrupted by other relatively minor application programs 103 when the power amplifier module 102 is used by the relatively important application program 103 is avoided, and the flexible and reasonable use of the power amplifier function of the terminal equipment 10 is realized.
Referring to fig. 2, fig. 2 is a diagram of a power amplifier management method provided in the present application, which is applied to a terminal device 10, and the power amplifier management method includes:
step S1: and acquiring a power amplifier calling request sent by an application program.
The power amplifier management device 101 of the terminal device 10 obtains a power amplifier call request sent by the application program 103, where the power amplifier call request is sent to the power amplifier management device 101 of the terminal device 10 after the application program 103 is triggered, where the application program 103 may be an application program installed in the terminal device 10 or an application program installed in another terminal device, and the another terminal device is a generic name of the terminal device except the terminal device 10. The triggering operation of the application 103 may be a user clicking the application 103 or waking up by sound, a specific gesture, or shaking the terminal device 10 at a specific frequency or angle, which is not limited herein.
Step S2: and detecting whether the power amplifier module is called or not.
In some embodiments, the power amplifier management device 101 of the terminal device 10 may record whether the power amplifier module 102 has been called and generate a corresponding power amplifier record table, where the power amplifier record table records whether the current power amplifier module 102 is called and is called by which application 103, and by calling the power amplifier record table, it may be known whether the power amplifier module 102 is called and which application is called.
Step S3: and if the power amplifier module is called, judging whether the application program can call the power amplifier module according to the power amplifier calling request.
If the power amplifier module 102 is called, the power amplifier management device 101 of the terminal device 10 determines whether the corresponding application 103 can call the power amplifier module 102 according to the power amplifier call request sent by the application 103.
Referring to fig. 3, in some embodiments, the determining whether the application can invoke the power amplifier module according to the power amplifier invoking request includes:
step S31: calling a preset authority policy table according to the power amplifier calling request;
step S32: acquiring a first application permission of the application program according to the permission policy table, and determining that the permission attribute of the first application permission is an exclusive permission attribute or a shared permission attribute;
step S33: acquiring a second application permission of a current application program according to the permission policy table, and determining that the permission attribute of the second application permission is an exclusive permission attribute or a shared permission attribute, wherein the current application program is the application program calling the power amplifier module;
step S34: and comparing and analyzing the first application permission and the second application permission, and executing a corresponding calling strategy according to the comparison and analysis result.
Referring to fig. 4A, in some embodiments, the executing the corresponding invoking policy according to the comparison analysis result specifically includes:
step S341 a: if the authority attribute of the first application authority is an exclusive authority attribute and the authority attribute of the second application authority is a sharing authority attribute, judging that the power amplifier module can be called and called by the application program;
step S342 a: if the authority attribute of the first application authority is a sharing authority attribute and the authority attribute of the second application authority is a sharing authority attribute, judging that the power amplifier module can be called and called by the application program;
step S343 a: and if the authority attribute of the first application authority is a sharing authority attribute and the authority attribute of the second application authority is an exclusive authority attribute, judging that the power amplifier module cannot be called by the application program and forbidding calling.
Referring to fig. 4B, in some embodiments, the executing the corresponding invoking policy according to the comparison analysis result specifically includes:
step S341 b: if the authority attribute of the first application authority is an exclusive authority attribute and the authority attribute of the second application authority is an exclusive authority attribute, judging whether the attribute level of the exclusive authority attribute of the first application authority is lower than the attribute level of the exclusive authority attribute of the second application authority;
step S342 b: if the attribute level of the exclusive permission attribute of the first application permission is lower than the attribute level of the exclusive permission attribute of the second application permission, judging that the power amplifier module cannot be called by the application program and forbidding calling;
step S343 b: and if the attribute level of the exclusive right attribute of the first application right is higher than or equal to the attribute level of the exclusive right attribute of the second application right, judging that the power amplifier module can be called by the application program and executing the calling.
In this embodiment, the application 103 is installed in the terminal device 10 as an example.
The terminal device 10 is preset with an authority attribute of the application 103 and an authority policy table corresponding to the attribute level of the authority attribute, where the authority attribute includes an exclusive authority attribute and a shared authority attribute, and the exclusive authority attribute has an attribute level.
When the power amplifier module 102 is called, the priority of the application 103 with the exclusive right attribute is higher than that of the application 103 with the shared right attribute, and the exclusive right attribute has attribute level differentiation.
When the permission attributes of both applications 103 are exclusive permission attributes, the application 103 having a higher level of exclusive permission attribute has a higher priority than the application 103 having a lower level of exclusive permission attribute. That is, when the application 103 with the shared permission attribute is using the power amplifier module 102, if another application 103 with the exclusive permission attribute issues a request for calling the power amplifier module 102, the application 103 with the shared permission attribute stops using the power amplifier module 102, and the application 103 with the exclusive permission attribute independently uses the power amplifier module 102.
When the permission attributes of both applications 103 are shared permission attributes, the priorities of both applications 103 are the same. That is, when the application 103 having the shared permission attribute is using the power amplifier module 102, if another application 103 having the shared permission attribute sends a request for calling the power amplifier module 102, the two applications 103 use the power amplifier module 102 together.
Illustratively, the permission policy table of the application 103 installed in the terminal device 10 may be shown by the following table:
application program Properties Attribute ranking
First application program Exclusive attributes 10
Second application program Exclusive attributes 9
Third application program Sharing attributes /
Fourth application program Sharing attributes /
Fifth application program Exclusive attributes 10
The application program, the attribute corresponding to the application program, and the attribute level corresponding to the attribute may be set as needed, and the application program may be a telephone program, a WeChat program, a QQ program, a music player program, a navigation program, or the like.
For example, the attribute corresponding to the first application is an exclusive attribute, and the attribute level is 10. The attribute corresponding to the second application program is an exclusive attribute, the attribute level is 9, and the higher the attribute level is, the higher the corresponding priority is. The attribute corresponding to the third application program is a shared attribute, and the attribute corresponding to the fourth application program is a shared attribute. The attribute corresponding to the fifth application is an exclusive attribute, and the attribute level is 10 levels.
When the first application program is using the power amplifier module 102, if the terminal device 10 receives a power amplifier call request sent by the second application program to the terminal device 10, it is known that the authority attribute of the first application program is the exclusive authority attribute, the authority attribute of the second application program is the exclusive authority attribute, and the exclusive authority attribute level of the first application program is higher than the exclusive authority attribute level of the first application program according to the preset authority policy table, and it is determined that the second application program is not available to call the power amplifier module 102 and call is prohibited.
When the second application is using the power amplifier module 102, if the terminal device 10 receives that the first application sends a power amplifier call request to the terminal device 10, it is known that the permission attribute of the first application is the exclusive permission attribute, the permission attribute of the second application is the exclusive permission attribute, and the exclusive permission attribute level of the first application is higher than the exclusive permission attribute level of the first application, and it is determined that the first application can call the power amplifier module 102 and execute the call.
When the second application program is using the power amplifier module 102, if the terminal device 10 receives a power amplifier call request sent by a third application program to the terminal device 10, it is known that the authority attribute of the second application program is an exclusive authority attribute and the authority attribute of the third application program is a shared authority attribute according to the preset authority policy table, and it is determined that the third application program cannot call the power amplifier module 102 and call is prohibited.
When the power amplifier module 102 is being used by the third application program, if the terminal device 10 receives a power amplifier call request sent by the second application program to the terminal device 10, it is known that the authority attribute of the second application program is the exclusive authority attribute and the authority attribute of the third application program is the shared authority attribute according to the preset authority policy table, and it is determined that the power amplifier module 102 can be called by the second application program and call is executed.
When the power amplifier module 102 is being used by the third application program, if the terminal device 10 receives a power amplifier call request sent by the fourth application program to the terminal device 10, it is known that the permission attribute of the third application program is the sharing permission attribute and the permission attribute of the fourth application program is the sharing permission attribute according to the preset permission policy table, and it is determined that the power amplifier module 102 can be called by the fourth application program and call is executed.
When the first application program is using the power amplifier module 102, if the terminal device 10 receives a power amplifier call request sent by the fifth application program to the terminal device 10, it is known that the permission attribute of the first application program is the exclusive permission attribute, the permission attribute of the fifth application program is the exclusive permission attribute, and the exclusive permission attribute level of the first application program is equal to the exclusive permission attribute level of the second non-application program according to the preset permission policy table, and it is determined that the fifth application program can call the power amplifier module 102 and execute the call.
Step S4: and if the power amplifier module can be called by the application program, generating first feedback information and sending the first feedback information to the application program, wherein the first feedback information is information informing that the power amplifier module can be called by the application program.
Referring back to fig. 1, in some embodiments, the method further includes:
step S5: and if the application program cannot call the power amplifier module, generating second feedback information and sending the second feedback information to the application program, wherein the second feedback information is information informing that the application program cannot call the power amplifier module.
If the power amplifier module cannot be called by the application program 103 which currently sends the power amplifier calling request, the terminal device 10 generates second feedback information and sends the second feedback information to the application program, wherein the second feedback information is information which informs that the application program cannot call the power amplifier module 102.
Referring back to fig. 1, in some embodiments, the method further includes:
step S6: and if the power amplifier module is not called, calling the power amplifier module according to the power amplifier calling request.
If the current power amplifier module 102 is not called, the application program 103 sending the power amplifier calling request is informed to call the power amplifier module 102 according to the power amplifier calling request.
In some embodiments, before the obtaining the power amplifier call request sent by the application program, the method further includes:
acquiring an authority policy table setting instruction;
and setting a corresponding application program to call the authority attribute of the power amplifier module and the attribute grade corresponding to the authority attribute according to the authority policy table setting instruction so as to generate an authority policy table and store the authority policy table.
Illustratively, the terminal device 10 receives an authority policy table setting instruction transmitted to the terminal device 10 by the user by manipulating the terminal device 10 or by a remote input device.
The terminal device 10 sets the authority attribute of the power amplifier module called by the corresponding application program and the attribute grade corresponding to the authority attribute according to the authority policy table setting instruction so as to generate an authority policy table and store the authority policy table.
For example, the permission policy table setting instruction is to set the permission attribute of the first application installed in the terminal device 10 to be an exclusive permission attribute, and the attribute level is level 10; the permission attribute of the second application program is an exclusive permission attribute, and the attribute level is 9 levels; the permission attribute of the third application program is a sharing permission attribute; the first application program, the second application program and the third application program can be set as required, for example, the first application program is a telephone program, the second application program is a WeChat program, and the third application program is a QQ program.
And the application program 103 with the exclusive right attribute according to the setting instruction of the right policy table can only call the power amplifier module 102 independently, and cannot share the power amplifier module 102 with other application programs 103. The application program 103 with the shared permission attribute can use the same power amplifier module 102 with other application programs, and the permission of the exclusive permission attribute is higher than the shared permission attribute, and when the application program 103 is the exclusive permission attribute, the higher the attribute level is, the higher the corresponding permission is.
The terminal device 10 records the setting instruction of the user according to the user and forms an authority policy table for storage, so that when the power amplifier module 102 needs to be called by the application program 103, whether the corresponding application program 103 can call the power amplifier module 102 can be automatically judged according to the authority policy table, if yes, the call is executed, and if not, the call is prohibited.
Referring to fig. 5, in some embodiments, the power amplifier management apparatus 101 includes:
a request obtaining module 1011, configured to obtain a power amplifier call request sent by an application program;
a detecting module 1012, configured to detect whether the power amplifier module has been called;
a determining module 1013, configured to determine, according to the power amplifier call request, whether the application program can call the power amplifier module if the power amplifier module has been called;
a first feedback module 1014, configured to generate first feedback information and send the first feedback information to the application program if the application program can call the power amplifier module, where the first feedback information is information that the application program can call the power amplifier module.
In some embodiments, the determining module 1013 is further configured to:
calling a preset authority policy table according to the power amplifier calling request;
acquiring a first application permission of the application program according to the permission policy table, and determining that the permission attribute of the first application permission is an exclusive permission attribute or a shared permission attribute;
acquiring a second application permission of a current application program according to the permission policy table, and determining that the permission attribute of the second application permission is an exclusive permission attribute or a shared permission attribute, wherein the current application program is the application program calling the power amplifier module;
and comparing and analyzing the first application permission and the second application permission, and executing a corresponding calling strategy according to the comparison and analysis result.
In some embodiments, the determining module 1013 is further configured to:
if the authority attribute of the first application authority is an exclusive authority attribute and the authority attribute of the second application authority is a sharing authority attribute, judging that the power amplifier module can be called and called by the application program;
if the authority attribute of the first application authority is a sharing authority attribute and the authority attribute of the second application authority is a sharing authority attribute, judging that the power amplifier module can be called and called by the application program;
and if the authority attribute of the first application authority is a sharing authority attribute and the authority attribute of the second application authority is an exclusive authority attribute, judging that the power amplifier module cannot be called by the application program and forbidding calling.
In some embodiments, the determining module 1013 is further configured to:
if the authority attribute of the first application authority is an exclusive authority attribute and the authority attribute of the second application authority is an exclusive authority attribute, judging whether the attribute level of the exclusive authority attribute of the first application authority is lower than the attribute level of the exclusive authority attribute of the second application authority;
if the attribute level of the exclusive permission attribute of the first application permission is lower than the attribute level of the exclusive permission attribute of the second application permission, judging that the power amplifier module cannot be called by the application program and forbidding calling;
and if the attribute level of the exclusive right attribute of the first application right is higher than or equal to the attribute level of the exclusive right attribute of the second application right, judging that the power amplifier module can be called by the application program and executing the calling.
In some embodiments, the power amplifier management apparatus 101 further includes a second feedback module 1015, configured to generate second feedback information and send the second feedback information to the application program if the application program may not invoke the power amplifier module, where the second feedback information is information that informs that the application program may not invoke the power amplifier module.
In some embodiments, the power amplifier management apparatus 101 further includes a direct calling module 1016, configured to call the power amplifier module according to the power amplifier calling request if the power amplifier module is not called.
In some embodiments, the power amplifier management apparatus 101 further includes a setting module 1017, configured to:
acquiring an authority policy table setting instruction;
and setting a corresponding application program to call the authority attribute of the power amplifier module and the attribute grade corresponding to the authority attribute according to the authority policy table setting instruction so as to generate an authority policy table and store the authority policy table.
Referring to fig. 6, the present application further provides that the terminal device 20 further includes a memory 204 and a processor 205, wherein the memory 204 and the processor 205 are communicatively connected through a bus.
The memory 204 includes at least one type of readable storage medium, which includes flash memory, hard disk, multi-media card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, and the like. The memory 204 may in some embodiments be an internal memory of the terminal device 20, for example a hard disk of the terminal device 20. The memory 204 may also be an external storage device of the terminal device 20 in other embodiments, such as a plug-in hard disk provided on the terminal device 20, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and so on.
The memory 204 may be used to store not only the application software installed in the terminal device 20 and various data, such as codes of a computer readable program, but also temporarily store data that has been output or will be output, that is, the first memory may be used as a storage medium storing a power amplifier management program executable by a computer.
The processor 205 may be a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor or other data Processing chip in some embodiments, and the processor 205 may call the power amplifier management program stored in the memory 204 to implement the following method steps:
acquiring a power amplifier calling request sent by an application program;
detecting whether the power amplifier module is called;
if the power amplifier module is called, judging whether the application program can call the power amplifier module according to the power amplifier calling request;
and if the power amplifier module can be called by the application program, generating first feedback information and sending the first feedback information to the application program, wherein the first feedback information is information informing that the power amplifier module can be called by the application program.
In some embodiments, the processor 205 is further configured to implement the following method steps:
calling a preset authority policy table according to the power amplifier calling request;
acquiring a first application permission of the application program according to the permission policy table, and determining that the permission attribute of the first application permission is an exclusive permission attribute or a shared permission attribute;
acquiring a second application permission of a current application program according to the permission policy table, and determining that the permission attribute of the second application permission is an exclusive permission attribute or a shared permission attribute, wherein the current application program is the application program calling the power amplifier module;
and comparing and analyzing the first application permission and the second application permission, and executing a corresponding calling strategy according to the comparison and analysis result.
In some embodiments, the processor 205 is further configured to implement the following method steps:
if the authority attribute of the first application authority is an exclusive authority attribute and the authority attribute of the second application authority is a sharing authority attribute, judging that the power amplifier module can be called and called by the application program;
if the authority attribute of the first application authority is a sharing authority attribute and the authority attribute of the second application authority is a sharing authority attribute, judging that the power amplifier module can be called and called by the application program;
and if the authority attribute of the first application authority is a sharing authority attribute and the authority attribute of the second application authority is an exclusive authority attribute, judging that the power amplifier module cannot be called by the application program and forbidding calling.
In some embodiments, the processor 205 is further configured to implement the following method steps:
if the authority attribute of the first application authority is an exclusive authority attribute and the authority attribute of the second application authority is an exclusive authority attribute, judging whether the attribute level of the exclusive authority attribute of the first application authority is lower than the attribute level of the exclusive authority attribute of the second application authority;
if the attribute level of the exclusive permission attribute of the first application permission is lower than the attribute level of the exclusive permission attribute of the second application permission, judging that the power amplifier module cannot be called by the application program and forbidding calling;
and if the attribute level of the exclusive right attribute of the first application right is higher than or equal to the attribute level of the exclusive right attribute of the second application right, judging that the power amplifier module can be called by the application program and executing the calling.
In some embodiments, the processor 205 is further configured to implement the following method steps:
and if the power amplifier module is not called, calling the power amplifier module according to the power amplifier calling request.
In some embodiments, the processor 205 is further configured to implement the following method steps:
and if the application program cannot call the power amplifier module, generating second feedback information and sending the second feedback information to the application program, wherein the second feedback information is information informing that the application program cannot call the power amplifier module.
In some embodiments, the processor 205 is further configured to implement the following method steps:
acquiring an authority policy table setting instruction;
and setting a corresponding application program to call the authority attribute of the power amplifier module and the attribute grade corresponding to the authority attribute according to the authority policy table setting instruction so as to generate an authority policy table and store the authority policy table.
The application also provides a storage medium, the storage medium stores a power amplifier management program executable by a computer, and when the power amplifier management program is called by a processor, the following power amplifier management method steps can be realized or executed:
acquiring a power amplifier calling request sent by an application program;
detecting whether the power amplifier module is called;
if the power amplifier module is called, judging whether the application program can call the power amplifier module according to the power amplifier calling request;
and if the power amplifier module can be called by the application program, generating first feedback information and sending the first feedback information to the application program, wherein the first feedback information is information informing that the power amplifier module can be called by the application program.
In some embodiments, the processor is further configured to implement the following method steps:
calling a preset authority policy table according to the power amplifier calling request;
acquiring a first application permission of the application program according to the permission policy table, and determining that the permission attribute of the first application permission is an exclusive permission attribute or a shared permission attribute;
acquiring a second application permission of a current application program according to the permission policy table, and determining that the permission attribute of the second application permission is an exclusive permission attribute or a shared permission attribute, wherein the current application program is the application program calling the power amplifier module;
and comparing and analyzing the first application permission and the second application permission, and executing a corresponding calling strategy according to the comparison and analysis result.
In some embodiments, the processor is further configured to implement the following method steps:
if the authority attribute of the first application authority is an exclusive authority attribute and the authority attribute of the second application authority is a sharing authority attribute, judging that the power amplifier module can be called and called by the application program;
if the authority attribute of the first application authority is a sharing authority attribute and the authority attribute of the second application authority is a sharing authority attribute, judging that the power amplifier module can be called and called by the application program;
and if the authority attribute of the first application authority is a sharing authority attribute and the authority attribute of the second application authority is an exclusive authority attribute, judging that the power amplifier module cannot be called by the application program and forbidding calling.
In some embodiments, the processor is further configured to implement the following method steps:
if the authority attribute of the first application authority is an exclusive authority attribute and the authority attribute of the second application authority is an exclusive authority attribute, judging whether the attribute level of the exclusive authority attribute of the first application authority is lower than the attribute level of the exclusive authority attribute of the second application authority;
if the attribute level of the exclusive permission attribute of the first application permission is lower than the attribute level of the exclusive permission attribute of the second application permission, judging that the power amplifier module cannot be called by the application program and forbidding calling;
and if the attribute level of the exclusive right attribute of the first application right is higher than or equal to the attribute level of the exclusive right attribute of the second application right, judging that the power amplifier module can be called by the application program and executing the calling.
In some embodiments, the processor is further configured to implement the following method steps:
and if the power amplifier module is not called, calling the power amplifier module according to the power amplifier calling request.
In some embodiments, the processor is further configured to implement the following method steps:
and if the application program cannot call the power amplifier module, generating second feedback information and sending the second feedback information to the application program, wherein the second feedback information is information informing that the application program cannot call the power amplifier module.
In some embodiments, the processor is further configured to implement the following method steps:
acquiring an authority policy table setting instruction;
and setting a corresponding application program to call the authority attribute of the power amplifier module and the attribute grade corresponding to the authority attribute according to the authority policy table setting instruction so as to generate an authority policy table and store the authority policy table.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (10)

1. A power amplifier management method is applied to terminal equipment which is provided with a power amplifier module, and is characterized by comprising the following steps:
acquiring a power amplifier calling request sent by an application program;
detecting whether the power amplifier module is called;
if the power amplifier module is called, judging whether the application program can call the power amplifier module according to the power amplifier calling request;
and if the power amplifier module can be called by the application program, generating first feedback information and sending the first feedback information to the application program, wherein the first feedback information is information informing that the power amplifier module can be called by the application program.
2. The method of claim 1, wherein the determining whether the application can invoke the power amplifier module according to the power amplifier invoking request comprises:
calling a preset authority policy table according to the power amplifier calling request;
acquiring a first application permission of the application program according to the permission policy table, and determining that the permission attribute of the first application permission is an exclusive permission attribute or a shared permission attribute;
acquiring a second application permission of a current application program according to the permission policy table, and determining that the permission attribute of the second application permission is an exclusive permission attribute or a shared permission attribute, wherein the current application program is the application program calling the power amplifier module;
and comparing and analyzing the first application permission and the second application permission, and executing a corresponding calling strategy according to the comparison and analysis result.
3. The method of claim 2, wherein executing the corresponding calling policy according to the comparative analysis result specifically comprises:
if the authority attribute of the first application authority is an exclusive authority attribute and the authority attribute of the second application authority is a sharing authority attribute, judging that the power amplifier module can be called and called by the application program;
if the authority attribute of the first application authority is a sharing authority attribute and the authority attribute of the second application authority is a sharing authority attribute, judging that the power amplifier module can be called and called by the application program;
and if the authority attribute of the first application authority is a sharing authority attribute and the authority attribute of the second application authority is an exclusive authority attribute, judging that the power amplifier module cannot be called by the application program and forbidding calling.
4. The method of claim 2, wherein executing the corresponding calling policy according to the comparative analysis result specifically comprises:
if the authority attribute of the first application authority is an exclusive authority attribute and the authority attribute of the second application authority is an exclusive authority attribute, judging whether the attribute level of the exclusive authority attribute of the first application authority is lower than the attribute level of the exclusive authority attribute of the second application authority;
if the attribute level of the exclusive permission attribute of the first application permission is lower than the attribute level of the exclusive permission attribute of the second application permission, judging that the power amplifier module cannot be called by the application program and forbidding calling;
and if the attribute level of the exclusive right attribute of the first application right is higher than or equal to the attribute level of the exclusive right attribute of the second application right, judging that the power amplifier module can be called by the application program and executing the calling.
5. The method of claim 1, wherein the method further comprises:
and if the power amplifier module is not called, calling the power amplifier module according to the power amplifier calling request.
6. The method of claim 1, wherein the method further comprises:
and if the application program cannot call the power amplifier module, generating second feedback information and sending the second feedback information to the application program, wherein the second feedback information is information informing that the application program cannot call the power amplifier module.
7. The method of any of claims 1-6, wherein prior to the obtaining the power amplifier call request issued by the application, the method further comprises:
acquiring an authority policy table setting instruction;
and setting a corresponding application program to call the authority attribute of the power amplifier module and the attribute grade corresponding to the authority attribute according to the authority policy table setting instruction so as to generate an authority policy table and store the authority policy table.
8. The utility model provides a power amplifier management device, is applied to terminal equipment, terminal equipment still is provided with the power amplifier module, its characterized in that, power amplifier management device includes:
the request acquisition module is used for acquiring a power amplifier calling request sent by an application program;
the detection module is used for detecting whether the power amplifier module is called or not;
the judging module is used for judging whether the application program can call the power amplifier module according to the power amplifier calling request if the power amplifier module is called;
the first feedback module is configured to generate first feedback information and send the first feedback information to the application program if the application program can call the power amplifier module, where the first feedback information is information that the application program can call the power amplifier module.
9. The utility model provides a terminal equipment, terminal equipment is provided with the power amplifier module, its characterized in that, terminal equipment still includes:
the memory is used for storing a power amplifier management program which can be executed by the computer;
the processor is configured to invoke a power amplifier management program stored in the memory to perform the power amplifier management method according to any one of claims 1 to 7.
10. A storage medium, wherein the storage medium stores a power amplifier management program executable by a computer, and a processor executes the power amplifier management method according to any one of claims 1 to 7 when the power amplifier management program is called.
CN201911018726.7A 2019-10-24 2019-10-24 Power amplifier management method, device, terminal equipment and storage medium Pending CN111061546A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911018726.7A CN111061546A (en) 2019-10-24 2019-10-24 Power amplifier management method, device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911018726.7A CN111061546A (en) 2019-10-24 2019-10-24 Power amplifier management method, device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111061546A true CN111061546A (en) 2020-04-24

Family

ID=70297641

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911018726.7A Pending CN111061546A (en) 2019-10-24 2019-10-24 Power amplifier management method, device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111061546A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111816206A (en) * 2020-07-24 2020-10-23 黄君任 Vehicle-mounted music using system, method and storage medium
CN113821312A (en) * 2020-06-19 2021-12-21 北京字节跳动网络技术有限公司 Player management method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101140527A (en) * 2006-09-05 2008-03-12 中兴通讯股份有限公司 Audio driver sound management method
CN101192203A (en) * 2006-11-30 2008-06-04 中兴通讯股份有限公司 Mobile phones audio frequency playing method
CN102572060A (en) * 2010-12-07 2012-07-11 基信康信息技术(上海)有限公司 Processing method for mobile phone sound
CN102930889A (en) * 2012-10-26 2013-02-13 北京世纪联成科技有限公司 Sound conflict processing method based on vehicle-mounted information entertainment system
US20140012936A1 (en) * 2012-07-05 2014-01-09 Hitachi, Ltd. Computer system, cache control method and computer program
CN105530171A (en) * 2015-12-23 2016-04-27 腾讯科技(深圳)有限公司 Method and apparatus for playing instant message sound on vehicle-mounted terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101140527A (en) * 2006-09-05 2008-03-12 中兴通讯股份有限公司 Audio driver sound management method
CN101192203A (en) * 2006-11-30 2008-06-04 中兴通讯股份有限公司 Mobile phones audio frequency playing method
CN102572060A (en) * 2010-12-07 2012-07-11 基信康信息技术(上海)有限公司 Processing method for mobile phone sound
US20140012936A1 (en) * 2012-07-05 2014-01-09 Hitachi, Ltd. Computer system, cache control method and computer program
CN102930889A (en) * 2012-10-26 2013-02-13 北京世纪联成科技有限公司 Sound conflict processing method based on vehicle-mounted information entertainment system
CN105530171A (en) * 2015-12-23 2016-04-27 腾讯科技(深圳)有限公司 Method and apparatus for playing instant message sound on vehicle-mounted terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113821312A (en) * 2020-06-19 2021-12-21 北京字节跳动网络技术有限公司 Player management method and device
CN111816206A (en) * 2020-07-24 2020-10-23 黄君任 Vehicle-mounted music using system, method and storage medium
CN111816206B (en) * 2020-07-24 2023-12-15 黄君任 System, method and storage medium for using vehicle-mounted music

Similar Documents

Publication Publication Date Title
US9336054B2 (en) Method and apparatus for configuring resource
US9749329B2 (en) Network connection managing device, system and method
CN106507445B (en) Wireless fidelity Wi-Fi scanning method and mobile terminal
US10452867B2 (en) System function invoking method and apparatus, and terminal
KR20150062686A (en) Spam filtering method of electronic apparatus and electronic appparatus thereof
CN103383620B (en) Show method and the mobile terminal of help information on mobile terminals
US10853490B2 (en) Method and apparatus for managing hardware resource access in an electronic device
CN111061546A (en) Power amplifier management method, device, terminal equipment and storage medium
KR102157858B1 (en) Apparatas and method for reducing a power consumption in an electronic device
EP3021250B1 (en) Electronic device and method for suggesting response manual in occurrence of denial
WO2020248602A1 (en) Blockchain-based relationship binding method, apparatus and device
CN113779545A (en) Data cross-process sharing method, terminal equipment and computer readable storage medium
CN110727941B (en) Privacy data protection method and device, terminal equipment and storage medium
CN110619221B (en) Virtual authorization method, device, terminal equipment and storage medium
CN104572007A (en) Method for adjusting sound volume of terminal
CN108197002A (en) Mobile equipment is without burying point data statistical method, system, terminal and medium
CN104571856A (en) Terminal
CN105389093B (en) A kind of warning banner removing method and mobile terminal
KR101505893B1 (en) Mobile terminal, method and program for providing a virtual setup screen
CN106203087B (en) Injection protection method, system, terminal and storage medium
CN106250096B (en) Method and device for automatically playing music by audio equipment
CN105787302B (en) A kind of processing method of application program, device and electronic equipment
CN114063968A (en) Audio device selection method and device and electronic device
CN113613226A (en) Connection method and device of Bluetooth equipment, electronic equipment and storage medium
US20140351944A1 (en) Software protecting system and electronic device using the same

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination