CN115866135A - Processing method and device and electronic equipment - Google Patents

Processing method and device and electronic equipment Download PDF

Info

Publication number
CN115866135A
CN115866135A CN202211530473.3A CN202211530473A CN115866135A CN 115866135 A CN115866135 A CN 115866135A CN 202211530473 A CN202211530473 A CN 202211530473A CN 115866135 A CN115866135 A CN 115866135A
Authority
CN
China
Prior art keywords
target parameter
mode
electronic equipment
output mode
ring
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
CN202211530473.3A
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202211530473.3A priority Critical patent/CN115866135A/en
Publication of CN115866135A publication Critical patent/CN115866135A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Telephone Function (AREA)

Abstract

The application discloses a processing method, a processing device and electronic equipment, wherein the method comprises the following steps: obtaining a first target parameter, wherein the first target parameter is used for representing a position relation between a first body and a second body of the electronic equipment; determining a ringtone output mode of the electronic device based on the first target parameter; wherein, if the first target parameter meets a first condition, the ring output mode is a ring mode; the ringtone output mode is a silent mode if the first target parameter satisfies a second condition different from the first condition.

Description

Processing method and device and electronic equipment
Technical Field
The present application relates to data processing technologies, and in particular, to a processing method and apparatus, and an electronic device.
Background
When the current mobile phone calls, the incoming call information is prompted in a ringing mode. However, the single prompting method cannot meet the use requirements of users in various scenes.
Disclosure of Invention
In view of this, the present application provides the following technical solutions:
a method of processing, the method comprising:
obtaining a first target parameter, wherein the first target parameter is used for representing a position relation between a first body and a second body of the electronic equipment;
determining a ringtone output mode of the electronic device based on the first target parameter;
wherein,
if the first target parameter meets a first condition, the ring output mode is a ring mode;
the ringtone output mode is a silent mode if the first target parameter satisfies a second condition different from the first condition.
Optionally, the method further comprises:
obtaining a second target parameter, wherein the second target parameter is used for representing that an operation body holds the electronic equipment;
and determining that the output mode of the ring of the electronic equipment is a mute mode.
Optionally, wherein:
if the second target parameter is detected to exist, determining that the output mode of the ring of the electronic equipment is a mute mode;
and if the second target parameter is detected to be absent, determining the ring output mode of the electronic equipment based on the first target parameter alone.
Optionally, before the obtaining the second target parameter, the method further includes:
obtaining information to be prompted;
determining the current ring output mode as the ring mode.
Optionally, the method further comprises:
obtaining a third target parameter, wherein the third target parameter is used for representing the state of a deformable display screen of the electronic equipment;
and if the first target parameter meets a second condition different from the first condition and the third target parameter is in a screen-off state, the output mode of the ringtone is a ringtone mode.
Optionally, the method further comprises:
obtaining a fourth target parameter, wherein the fourth target parameter is used for representing whether a user with a sight line direction facing the electronic equipment exists in front of the electronic equipment;
and if the first target parameter meets a first condition and the fourth target parameter indicates that a sight line direction exists in front of the electronic equipment and faces to a user of the electronic equipment, the ring tone output mode is a mute mode.
The application also discloses a processing apparatus, the apparatus includes:
the first parameter obtaining module is used for obtaining a first target parameter, and the first target parameter is used for representing the position relation between a first body and a second body of the electronic equipment;
a mode determination module for determining a ringtone output mode of the electronic device based on the first target parameter;
wherein,
if the first target parameter meets a first condition, the ring output mode is a ring mode;
the ringtone output mode is a silent mode if the first target parameter satisfies a second condition different from the first condition.
Optionally, the apparatus further comprises:
the second parameter obtaining module is used for obtaining a second target parameter, and the second target parameter is used for representing that an operation body holds the electronic equipment;
the mode determination module is further to: determining that an output mode of a ringtone of the electronic device is a silent mode in a case where it is determined that the second target parameter exists.
Optionally, the mode determining module is specifically configured to:
if the second target parameter is detected to exist, determining that the output mode of the ring of the electronic equipment is a mute mode; and if the second target parameter is detected to be absent, determining the ring output mode of the electronic equipment based on the first target parameter alone.
Further, the present application also discloses an electronic device, comprising:
a processor;
a memory for storing executable program instructions of the processor;
wherein the executable program instructions comprise: obtaining a first target parameter, wherein the first target parameter is used for representing a position relation between a first body and a second body of the electronic equipment; determining a ringtone output mode of the electronic device based on the first target parameter; wherein, if the first target parameter meets a first condition, the ring output mode is a ring mode; the ringtone output mode is a silent mode if the first target parameter satisfies a second condition different from the first condition.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a flip phone according to an embodiment of the present application;
fig. 2 is a schematic structural view of a slider phone according to an embodiment of the present disclosure;
FIG. 3 is a flow chart of a processing method disclosed in an embodiment of the present application;
FIG. 4 is a schematic diagram of a user-held handset as disclosed in an embodiment of the present application;
FIG. 5 is a flow chart of another processing method disclosed in embodiments of the present application;
FIG. 6 is a flow chart of a third processing method disclosed in the embodiments of the present application;
FIG. 7 is a schematic structural diagram of a processing apparatus according to an embodiment of the disclosure;
fig. 8 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application can be applied to electronic equipment, the product form of the electronic equipment is not limited by the application, the electronic equipment can include but is not limited to smart phones, wearable equipment, notebook computers and the like with different use forms, and the electronic equipment can be selected according to application requirements.
The electronic device to which the processing method is applied has different usage forms in different working states, wherein the different usage forms are implemented based on the first body and the second body which can move relatively. Such as notebook computers, flip phones, slider phones, etc. Fig. 1 is a schematic view of a flip phone, which has a first body and a second body, wherein the first body and the second body can rotate to different angles based on a rotating shaft connecting the first body and the second body, and present different usage forms. Fig. 2 is a schematic view of a structure of a slide phone, which has a first body and a second body, the first body can slide in a translational manner relative to the second body, so that a surface area of the second body is partially displayed, or the first body can completely shield the surface area of the second body, and fig. 2 is shown in a form of the partial display of the second body.
Fig. 3 is a flowchart of a processing method disclosed in an embodiment of the present application. Referring to fig. 3, the processing method may include:
step 301: obtaining a first target parameter, wherein the first target parameter is used for representing a position relation between a first body and a second body of the electronic equipment.
The first target parameter can represent the usage form of the electronic device, and different usage forms of the electronic device can reflect to a certain extent whether the user is using the electronic device, where using the electronic device may mean that the user is at least watching a display screen of the electronic device. In different implementations, the first target parameter has different parameter types and values. As in the implementation of a notebook computer or a flip phone, the first target parameter may be a parameter representing an included angle between the first body and the second body; for example, when the included angle between the first body and the second body of the flip phone is 0 °, it is determined that the phone is in a closed state, and the user does not use the phone; and when the included angle between the first body and the second body of the flip phone is 180 degrees or 120 degrees, the flip phone is determined to be in the open state, and the user is considered to be using the phone. In the implementation of the slider phone, the first target parameter may be a parameter representing a translational sliding distance between the first body and the second body; for example, when the relative displacement between the first body and the second body of the slider phone is 0, it is determined that the phone is in a non-use state; and determining that the mobile phone is in a use state under the youth working condition that the relative displacement of the first body and the second body of the slide phone reaches a set value.
Of course, the foregoing only describes the usage of the electronic device by taking two specific forms of the electronic device, namely, the flip phone and the slider phone as examples, and there may be other different types of electronic devices in practical applications, for example, the electronic device includes a first body that can rotate at any angle and direction relative to a second body, or a first body that can rotate and translate simultaneously relative to the second body; in these implementations, the first target parameter may include a plurality of values to accurately characterize the positional relationship between the first ontology and the second ontology. Therefore, the content and type of the first target parameter are not limited, and the specific implementation of the first target parameter can be determined based on the actual application field.
Step 302: determining a ringtone output mode of the electronic device based on the first target parameter, wherein the ringtone output mode is a ringtone mode if the first target parameter meets a first condition; the ringtone output mode is a silent mode if the first target parameter satisfies a second condition different from the first condition.
In this embodiment, the ring output mode may include a ring mode and a mute mode, and it can be understood that, in the ring mode, when the electronic device receives a certain message that needs to prompt the user, the electronic device outputs corresponding sound data (that is, a prompt ring), so that the user knows that the certain message is received after hearing the prompt ring. In the silent mode, when the electronic device receives a prompt message that prompts a user, the electronic device does not output sound data to meet the needs of a specific scene, such as a meeting scene and a classroom scene.
It should be noted that, the ringing mode and the silent mode are not exclusive except for the difference of whether to output sound data, that is, other prompting modes when a certain message is received in the ringing mode or the silent mode and a prompt needs to be output are not limited. If in the silent mode, the vibration prompt and/or the light prompt can be triggered simultaneously when the message to be prompted is received, so that the user can be prompted about the existence of the message with prompt in a mode of not interfering other people.
If the first target parameter meets the first condition, for example, the included angle between the first body and the second body is 0 °, it may be determined that the user does not use the electronic device currently, and therefore, in this case, the ring output mode is set to the ring mode, so that the device outputs the sound data that can be received by the user after receiving the prompt information. If the first target parameter meets a second condition different from the first condition, for example, an included angle between the first body and the second body is 120 ° or 180 °, it can be determined that the user is currently using the electronic device, that is, the user is watching a display screen of the electronic device, and therefore, when the prompt information is received, the user can be prompted only by briefly outputting information on the display screen, and therefore, the ring output mode is set to the mute mode under the condition, which not only can save the electric quantity and energy of the electronic device, but also can not interfere with other things in the environment.
The processing method of this embodiment can determine a corresponding ring output mode based on the form of the electronic device, prompt the user in a ring mode when the user does not use the electronic device, and prompt the user in a message mode other than the ring mode when the user uses the electronic device; the implementation mode is more humanized, the electric quantity and energy of the electronic equipment can be saved, and the trouble that a user manually switches the ringing mode in different scenes is avoided.
On the basis of the disclosure of the foregoing embodiment, in other implementations, the processing method may further include: and obtaining a second target parameter, wherein the second target parameter is used for representing the step that the operation body holds the electronic equipment. Said determining a ringtone output mode of the electronic device based on the first target parameter may comprise: determining a ringtone output mode of the electronic device based on the first target parameter and the second target parameter.
The second target parameter may be a flag bit, and if the flag bit is 1, it indicates that it is detected that the operation body holds the electronic device; if the flag bit is 0, it indicates that no operating body holds the electronic device. Specifically, the determination of whether the operating body holds the electronic device may be implemented by detecting and analyzing one or more sensors, which may be, but not limited to, a pressure sensor, a temperature sensor, a gravity sensor, an image sensor, and the like. The installation positions of the sensors can be comprehensively determined by combining the conventional holding action and the holding position of the user, so that the edge detection is conveniently and accurately carried out, and the judgment result of whether the operation body holds the electronic equipment is determined. The implementation of how to determine whether the operating body holds the electronic device by using the sensor is not directly related to the core processing logic of the present application, and reference may be made to the detection technology currently existing or possibly implemented in the future, which will not be described in detail herein.
In one implementation, it may be determined that an output mode of a ringtone of the electronic device is a silent mode based on the obtained second target parameter. It will be appreciated that when a user is holding the electronic device, as shown in fig. 4, the electronic device is typically in use. In this case, therefore, when the alert message is received, the user passes the alert contents output on the display screen even without the manner of ring alert, so that the ringtone output mode of the electronic device can be set to the mute mode. Therefore, in the implementation, when the user is detected to hold the electronic equipment, the ring output mode can be set to be the silent mode, and when a certain message is received, the system only controls the display screen to output the prompt content of the message, but does not output any other prompt.
In another implementation, after determining that the output mode of the ring tone of the electronic device is the mute mode based on the obtained second target parameter, when a certain message is received, the system may not only output the prompt content on the display screen, but also trigger the motor to vibrate to output a vibration signal on the premise that no sound prompt is output, so that even if the user temporarily leaves the display screen or the user does not always watch the display screen, the vibration signal may be sensed by the hand holding the electronic device, and thus the message prompt of the certain message received by the system may not be missed. Of course, other types of message prompts, such as light prompts, may also be implemented in the silent mode, which is not limited in the present application.
In one example, assuming that a user holds a flip phone in a folded state (an included angle between a first body and a second body is 0 °), the system determines that a ringtone output mode is a ringtone mode based on a first target parameter, but detects that the user holds the flip phone at the same time, the ringtone output mode is switched to a mute mode, and after receiving a message to be prompted, the system prompts the user to receive the message to be prompted through a vibration signal; when the folding mobile phone is in a notebook state (the included angle between the first body and the second body is 120 °) or a bar state (the included angle between the first body and the second body is 180 °), the system determines that the ringtone output mode is the mute mode based on the first target parameter, and meanwhile, when detecting that the user holds the flip mobile phone by hand, the mute mode of the ringtone output mode is maintained.
It should be noted that, if the processing method described in the present application is applied to a notebook computer, because the system is in a dormant state when the included angle between the first body and the second body of the notebook computer is 0 °, and the system does not have a function of receiving a message in this state, in an application scenario of the notebook computer, as long as it is determined that the included angle between the first body and the second body is 0 ° or less (e.g. 30 °), it is not necessary to detect whether the operating body holds the notebook computer. For the mobile phone device, in the states of opening and closing the cover, the system has no difference about the function of receiving the message, and is suitable for the scheme of determining the ring output mode according to the judgment result of whether the operation body holds the device or not.
In this embodiment, the first target parameter and the second target parameter may be simultaneously combined to determine the ring output mode of the electronic device, where the first target parameter provides an internal reference factor of a device usage form, and the second target parameter provides an external reference factor of a holding state of the electronic device, so that the internal reference factor and the external reference factor are comprehensively considered, and the determination of whether the user is using or touching the electronic device is more accurate, which is helpful for improving the accuracy of automatically configuring the ring output mode.
In the above, the second target parameter may be result data analyzed based on the detection result of the corresponding sensor, which has a fixed storage location. When the electronic equipment is determined to be held by the operation body, the second target parameter is generated and stored in the storage position, so that the second target parameter can be conveniently acquired by other processing processes.
Based on the above, obtaining the second target parameter may be one action instruction executed periodically. To ensure the timeliness of the mode setting, the execution period is not set to be too long, and may be 1 second, for example. In a specific implementation, the storage location may be periodically read, and if it is detected that the second target parameter exists in the storage location, it is indicated that an operation body holds the electronic device, and it is determined that an output mode of a ringtone of the electronic device is a silent mode; if it is detected that the second target parameter does not exist in the storage location, which indicates that no operating body holds the electronic device, the ring output mode of the electronic device may be determined based on the first target parameter alone. That is, in the process of holding the electronic device by the hand of the user, it is determined that the user is using the electronic device, and the system sets the ring output mode to the silent mode; after the user's hand leaves the electronic device, the technical solution of the first embodiment of the present application is returned to, and it is determined that the ring output mode of the electronic device is the ring mode or the mute mode based on the first target parameter only.
The present embodiment preferentially determines whether the user is using the electronic device based on the second target parameter. That is, if the included angle between the first body and the second body of the flip phone is 180 degrees and it is determined that the operation body holds the electronic device, the ring output mode is configured to be the mute mode; if the included angle between the first body and the second body of the flip phone is 180 degrees, and it is determined by detection that no operating body holds the electronic device, the ring output mode can be configured as the ring mode.
The implementation preferentially determines the ring output mode of the electronic equipment based on the second target parameter, and also determines the ring output mode of the electronic equipment based on the first target parameter under the condition that the second target parameter does not exist or the electronic equipment is not held by an operation body; compared with the first target parameter which reflects the use form of the electronic equipment, the second target parameter can reflect whether the user uses the electronic equipment more accurately, and therefore the ring mode of the electronic equipment can be adjusted more accurately.
It should be noted that, in an actual application, an included angle between the first body and the second body of the electronic device is 180 ° or 120 °, in which case, it is possible that the user is using the electronic device, and it is also possible that the user leaves the electronic device after temporarily placing the electronic device on a desktop, and therefore, the specific implementation logic of the processing scheme may be different depending on the type of the application product. For the above scenario, if the electronic device is a flip phone, originally, the user holds the flip phone to open 180 ° or 120 ° in hand, the ring output mode is the silent mode, and when it is detected that the user's hand leaves the flip phone or no operating body holds the flip phone, the user may be considered that the flip phone is not used at the moment, and the ring output mode is adjusted to the ring mode. If the electronic device is a notebook computer, originally, a user holds the 120-degree notebook computer by hand, the ring output mode is a mute mode, and then detects that the hand of the user leaves the notebook computer or no operating body holds the notebook computer, the ring output mode can be controlled to be maintained in the mute mode considering that the hand of the user usually does not hold the device when the notebook computer is in normal use.
Fig. 5 is a flowchart of another processing method disclosed in the embodiments of the present application. Referring to fig. 5, the processing method may include:
step 501: obtaining a first target parameter, wherein the first target parameter is used for representing a position relation between a first body and a second body of the electronic equipment.
Step 502: determining a ringtone output mode of the electronic device based on the first target parameter, wherein the ringtone output mode is a ringtone mode if the first target parameter meets a first condition; the ringtone output mode is a silent mode if the first target parameter satisfies a second condition different from the first condition.
Step 503: and obtaining information to be prompted.
The prompt information may be, but is not limited to, incoming call information, short message information, system push message, application push message, alarm, and the like, and in the present application, the prompt information refers to all information that can be prompted by sound. After obtaining the prompt information, the system needs to output the received prompt information of the to-be-prompted information based on the currently set ring output mode, so that the user can know the arrival of the to-be-prompted information in time without missing important information.
Step 504: and if the current ringtone output mode is determined to be the ringtone mode, obtaining a second target parameter, wherein the second target parameter is used for representing that an operation body holds the electronic equipment.
In this embodiment, after determining that the current ring output mode is the ring mode, a second target parameter is further obtained, and it is determined whether an operation body is currently present to hold the electronic device. And if the current ring output mode is the mute mode, outputting the prompt message of the message to be prompted based on the mute mode directly without performing other judgment processing.
Step 505: determining that a ringtone output mode of the electronic device is a silent mode or a ringtone mode based on the obtained second target parameter.
If it is determined that the operation body currently holds the electronic device based on the second target parameter, it is determined that the user is currently using the electronic device, and it is determined that the ringtone output mode is the silent mode, and the message to be prompted may be prompted at least by outputting a prompt message through the display screen or outputting a vibration signal by the electronic device. If it is determined that the operating body does not currently hold the electronic device based on the second target parameter, it is considered that the user may not currently use the electronic device, and in order that the user does not miss the message to be prompted, it is determined that the ringtone output mode is still the ringtone mode, and the message to be prompted is prompted at least by outputting sound data.
In the processing method of this embodiment, it is further determined whether the user holds the electronic device only before the information to be prompted is really obtained and the ring output is required, and in other cases, it is not required to determine whether the user holds the electronic device; according to the method, on the premise that the user is determined to be using the electronic equipment, the silent mode prompt message is adopted as far as possible, the electric quantity and energy of the system are effectively saved, and the scheme is more reasonable and intelligent.
Fig. 6 is a flowchart of a third processing method disclosed in the embodiment of the present application. As shown in fig. 6, the processing method may include:
step 601: obtaining a first target parameter, wherein the first target parameter is used for representing a position relation between a first body and a second body of the electronic equipment.
Step 602: and obtaining a third target parameter, wherein the third target parameter is used for representing the state of the deformable display screen of the electronic equipment.
The display screen capable of deforming can be arranged on the first body of the electronic equipment, and when the first body moves relative to the second body, the display screen also generates form change, so that the display screen capable of deforming is called. The state of the display screen refers to an operating state of the display screen, and may include, but is not limited to, a screen-off state, a screen-on operation state, a screen-on screen saver state, and the like.
Step 603: determining a ringtone output mode of the electronic device based on the first target parameter and the third target parameter, wherein if the first target parameter meets a first condition, the ringtone output mode is a ringtone mode, if the first target parameter meets a second condition different from the first condition, and the third target parameter is in an off-screen state, the ringtone output mode is a ringtone mode, and if the first target parameter meets the second condition, and the third target parameter is in a bright-screen state, the ringtone output mode is a mute mode.
Considering that in some cases, a user may leave the electronic device in an "open" state, for example, an included angle between a first body and a second body of the notebook computer is 120 °, and the user temporarily leaves to do something else during the use process, if only based on a first target parameter (the included angle is 120 °), it is determined that the notebook computer is in the use state, and it is determined that the ring output mode is set to the silent mode, and if the notebook computer receives a certain communication message at this moment, no sound prompt is given, and the user cannot know the existence of the communication message, which is obviously unreasonable. Therefore, in the implementation, not only the first target parameter but also the third target parameter are obtained, and whether the user is using the electronic device is determined by combining the first target parameter and the third target parameter, and a reasonable decision is made.
When it is determined that the electronic device is in the closed state based on the first target parameter, a ringtone output mode of the electronic device is directly determined to be a ringtone mode. If the user is determined not to use the electronic equipment when the flip phone, the notebook computer or the slide phone is determined to be in the closed state, the ring output mode is directly set as the ring mode.
When the electronic equipment is determined to be in the open state based on the first target parameter, further determining the state of a display screen of the electronic equipment, and if the display screen is in the screen-off state or the screen-on screen saver state, which indicates that the user does not use the electronic equipment currently, determining that the ring output mode of the electronic equipment is the ring mode; and if the display screen is in a bright screen working state, indicating that the user is currently using the electronic equipment, determining that the ring tone output mode of the electronic equipment is a mute mode.
In the embodiment, the ring output mode of the electronic equipment is determined comprehensively by combining the form of the electronic equipment and the display state of the display screen, so that the configuration of the ring output mode is more accurate, and the use requirements of users can be better met.
In other implementations, the processing method may further include: and obtaining a fourth target parameter, wherein the fourth target parameter is used for representing whether a user with a sight line direction facing the electronic equipment exists in front of the electronic equipment. Said determining a ringtone output mode of the electronic device based on the first target parameter may comprise determining a ringtone output mode of the electronic device based on the first target parameter and the fourth target parameter.
If the first target parameter meets a first condition, the ringtone output mode is a ringtone mode, if the first target parameter meets a second condition different from the first condition and the fourth target parameter indicates that a sight line direction is towards a user of the electronic equipment in front of the electronic equipment, the ringtone output mode is a mute mode, and if the first target parameter meets the second condition and the fourth target parameter indicates that the sight line direction is towards the user of the electronic equipment in front of the electronic equipment, the ringtone output mode is the ringtone mode.
When the electronic equipment is determined to be in the open state based on the first target parameter, further determining whether a user with a sight line direction facing the electronic equipment exists in front of the electronic equipment, and if the user does not exist, indicating that the user does not use the electronic equipment currently, determining that the ring output mode of the electronic equipment is a ring mode; and if the ringing signal exists, indicating that the user is currently using the electronic equipment, determining that the ringing output mode of the electronic equipment is a mute mode.
Similarly, the ring output mode of the electronic equipment is comprehensively determined by combining the form of the electronic equipment and whether the sight direction of the electronic equipment is towards the user of the electronic equipment, so that the configuration of the ring output mode is more accurate, and the use requirement of the user can be better met.
The foregoing describes embodiments in which the first target parameter is respectively combined with the second target parameter, the third target parameter, or the fourth target parameter to determine the ring tone output mode of the electronic device, but this does not constitute a fixed limitation to the implementation of the present application. In practical applications, the first target parameter may be at least combined with at least two of the second target parameter, the third target parameter and the fourth target parameter to determine the ring tone output mode of the electronic device, and even the first target parameter may be further combined with other possible target parameters to determine the ring tone output mode of the electronic device. In the implementation of the first target parameter in combination with other target parameters, the decision priority levels of different target parameters may be determined based on an actual application scenario, for example, in the implementation of the first target parameter in combination with "whether there is an operator holding the electronic device" and "whether there is a user implementing the electronic device in front of the electronic device", the decision priority level of determining whether there is a user implementing the electronic device in front of the electronic device "is higher than the decision priority level of" whether there is an operator holding the electronic device ", and when a decision ring mode determined based on whether there is a user implementing the electronic device in front of the electronic device" and a decision ring mode determined based on "whether there is an operator holding the electronic device" conflict, the decision ring mode determined based on "whether there is a user implementing the electronic device in front of the electronic device" is taken as the target ring mode.
While, for purposes of simplicity of explanation, the foregoing method embodiments have been described as a series of acts or combination of acts, it will be appreciated by those skilled in the art that the present application is not limited by the order of acts or acts described, as some steps may occur in other orders or concurrently with other steps in accordance with the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
The method is described in detail in the embodiments disclosed in the present application, and the method of the present application can be implemented by various types of apparatuses, so that an apparatus is also disclosed in the present application, and the following detailed description is given of specific embodiments.
Fig. 7 is a schematic structural diagram of a processing apparatus according to an embodiment of the present disclosure. Referring to fig. 7, the processing device 70 may include:
a first parameter obtaining module 701, configured to obtain a first target parameter, where the first target parameter is used to represent a position relationship between a first ontology and a second ontology of an electronic device.
A mode determination module 702 configured to determine a ringtone output mode of the electronic device based on the first target parameter.
Wherein, if the first target parameter meets a first condition, the ring output mode is a ring mode; the ringtone output mode is a silent mode if the first target parameter satisfies a second condition different from the first condition.
The processing apparatus in this embodiment can determine a corresponding ring output mode based on a form of an electronic device, prompt a user in a ring manner when the user does not use the electronic device, and prompt a message in another prompting manner besides the ring manner when the user uses the electronic device; the implementation mode is more humanized, the electric quantity and energy of the electronic equipment can be saved, and the trouble that a user manually switches the ringing mode in different scenes is avoided.
In one implementation, the processing device may further include: the second parameter obtaining module is used for obtaining a second target parameter, and the second target parameter is used for representing that an operation body holds the electronic equipment; the mode determination module is further to: determining that an output mode of a ringtone of the electronic device is a silent mode in a case where it is determined that the second target parameter exists.
In one implementation, the mode determination module is specifically configured to:
if the second target parameter is detected to exist, determining that the output mode of the ring of the electronic equipment is a mute mode; and if the second target parameter is detected to be absent, determining the ring tone output mode of the electronic equipment based on the first target parameter alone.
In one implementation, the processing device may further include:
and the information to be prompted obtaining module is used for obtaining the information to be prompted. The second parameter obtaining module may be specifically configured to: and under the condition that the current ringtone output mode is determined to be the ringtone mode, obtaining a second target parameter.
In one implementation, the processing device may further include: the third parameter obtaining module is used for obtaining a third target parameter, and the third target parameter is used for representing the state of a deformable display screen of the electronic equipment; the mode determination module is further to: and if the first target parameter meets a second condition different from the first condition and the third target parameter is in a screen-off state, determining that the ringtone output mode is a ringtone mode.
In one implementation, the processing device may further include: the fourth parameter obtaining module is used for obtaining a fourth target parameter, and the fourth target parameter is used for representing whether a user with a sight line direction facing the electronic equipment exists in front of the electronic equipment; the mode determination module is further to: and if the first target parameter meets a second condition different from the first condition and the fourth target parameter indicates that the sight line direction of the electronic equipment faces to the user of the electronic equipment, determining that the ringtone output mode is a mute mode.
The specific implementation of the processing apparatus and each module may refer to the content introduction of the corresponding part in the method embodiment, and will not be described repeatedly herein.
The processing apparatus in any of the above embodiments includes a processor and a memory, the first parameter obtaining module, the mode determining module, the second parameter obtaining module, the third parameter obtaining module, the fourth parameter obtaining module, and the like in the above embodiments are all stored in the memory as program modules, and the processor executes the program modules stored in the memory to implement corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program module from the memory. The kernel can be provided with one or more, and the processing of the return visit data is realized by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), including at least one memory chip.
In an exemplary embodiment, a computer-readable storage medium, which can be directly loaded into the internal memory of a computer and contains software codes, is provided, and the computer program can be loaded into the computer and executed to implement the steps shown in any embodiment of the processing method.
In an exemplary embodiment, a computer program product is also provided, which can be directly loaded into the internal memory of a computer and contains software codes, and the computer program can be loaded into the computer and executed to implement the steps of any of the above-described processing methods.
Further, the embodiment of the application provides an electronic device. Fig. 8 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application. Referring to fig. 8, the electronic device 80 includes at least one processor 801, and at least one memory 802 connected to the processor, a bus 803; the processor and the memory complete mutual communication through a bus; the processor is used for calling the program instructions in the memory to execute the processing method.
Wherein the program instructions comprise: obtaining a first target parameter, wherein the first target parameter is used for representing a position relation between a first body and a second body of the electronic equipment; determining a ringtone output mode of the electronic device based on the first target parameter; wherein, if the first target parameter meets a first condition, the ring output mode is a ring mode; the ringtone output mode is a silent mode if the first target parameter satisfies a second condition different from the first condition.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method of processing, the method comprising:
obtaining a first target parameter, wherein the first target parameter is used for representing a position relation between a first body and a second body of the electronic equipment;
determining a ringtone output mode of the electronic device based on the first target parameter;
wherein,
if the first target parameter meets a first condition, the ring output mode is a ring mode;
the ringtone output mode is a silent mode if the first target parameter satisfies a second condition different from the first condition.
2. The processing method of claim 1, the method further comprising:
obtaining a second target parameter, wherein the second target parameter is used for representing that an operation body holds the electronic equipment;
and determining that the ringtone output mode of the electronic equipment is a silent mode based on the obtained second target parameter.
3. The processing method according to claim 2, wherein:
if the second target parameter is detected to exist, determining that the ring output mode of the electronic equipment is a mute mode;
and if the second target parameter is detected to be absent, determining the ring output mode of the electronic equipment based on the first target parameter alone.
4. The processing method of claim 2, prior to the obtaining a second target parameter, the method further comprising:
obtaining information to be prompted;
determining the current ringtone output mode as a ringtone mode.
5. The processing method of claim 1, the method further comprising:
obtaining a third target parameter, wherein the third target parameter is used for representing the state of a deformable display screen of the electronic equipment;
and if the first target parameter meets a second condition different from the first condition and the third target parameter is in a screen-off state, determining that the ringtone output mode is a ringtone mode.
6. The processing method of claim 1, the method further comprising:
obtaining a fourth target parameter, wherein the fourth target parameter is used for representing whether a user with a sight line direction facing the electronic equipment exists in front of the electronic equipment;
and if the first target parameter meets a second condition different from the first condition and the fourth target parameter indicates that the sight line direction of the electronic equipment faces to the user of the electronic equipment, determining that the ringtone output mode is a mute mode.
7. A processing apparatus, the apparatus comprising:
the first parameter obtaining module is used for obtaining a first target parameter, and the first target parameter is used for representing the position relation between a first body and a second body of the electronic equipment;
a mode determination module for determining a ringtone output mode of the electronic device based on the first target parameter;
wherein,
if the first target parameter meets a first condition, the ring output mode is a ring mode;
the ringtone output mode is a silent mode if the first target parameter satisfies a second condition different from the first condition.
8. The processing apparatus of claim 7, the apparatus further comprising:
the second parameter obtaining module is used for obtaining a second target parameter, and the second target parameter is used for representing that an operation body holds the electronic equipment;
the mode determination module is further to: and in the case that the second target parameter is determined to exist, determining that the output mode of the ring tone of the electronic equipment is a mute mode.
9. The processing device according to claim 8, wherein the mode determination module is specifically configured to:
if the second target parameter is detected to exist, determining that the output mode of the ring of the electronic equipment is a mute mode; and if the second target parameter is detected to be absent, determining the ring output mode of the electronic equipment based on the first target parameter alone.
10. An electronic device, comprising:
a processor;
a memory for storing executable program instructions of the processor;
wherein the executable program instructions comprise: obtaining a first target parameter, wherein the first target parameter is used for representing a position relation between a first body and a second body of the electronic equipment; determining a ringtone output mode of the electronic device based on the first target parameter; wherein, if the first target parameter meets a first condition, the ring output mode is a ring mode; the ringtone output mode is a silent mode if the first target parameter satisfies a second condition different from the first condition.
CN202211530473.3A 2022-11-30 2022-11-30 Processing method and device and electronic equipment Pending CN115866135A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211530473.3A CN115866135A (en) 2022-11-30 2022-11-30 Processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211530473.3A CN115866135A (en) 2022-11-30 2022-11-30 Processing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN115866135A true CN115866135A (en) 2023-03-28

Family

ID=85668940

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211530473.3A Pending CN115866135A (en) 2022-11-30 2022-11-30 Processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN115866135A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201601841U (en) * 2009-12-30 2010-10-06 华旗移动通讯科技(北京)有限公司 Mobile terminal device
CN102833421A (en) * 2012-09-17 2012-12-19 东莞宇龙通信科技有限公司 Mobile terminal and reminding method
CN105493002A (en) * 2013-09-03 2016-04-13 Lg电子株式会社 Display device and control method thereof
CN105721669A (en) * 2016-01-15 2016-06-29 广东欧珀移动通信有限公司 Method, mobile terminal and system for rapidly activating incoming-call muting function
CN106303088A (en) * 2016-09-30 2017-01-04 努比亚技术有限公司 Prompting control method and mobile terminal
CN109600468A (en) * 2019-01-22 2019-04-09 维沃移动通信有限公司 The control method and collapsible terminal of collapsible terminal
CN110866465A (en) * 2019-10-29 2020-03-06 维沃移动通信有限公司 Control method of electronic equipment and electronic equipment
CN110913069A (en) * 2019-11-14 2020-03-24 维沃移动通信有限公司 Call mode switching method and terminal equipment
CN113452840A (en) * 2021-06-24 2021-09-28 深圳市泰衡诺科技有限公司 Control method of mobile terminal, mobile terminal and readable storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201601841U (en) * 2009-12-30 2010-10-06 华旗移动通讯科技(北京)有限公司 Mobile terminal device
CN102833421A (en) * 2012-09-17 2012-12-19 东莞宇龙通信科技有限公司 Mobile terminal and reminding method
CN105493002A (en) * 2013-09-03 2016-04-13 Lg电子株式会社 Display device and control method thereof
CN105721669A (en) * 2016-01-15 2016-06-29 广东欧珀移动通信有限公司 Method, mobile terminal and system for rapidly activating incoming-call muting function
CN106303088A (en) * 2016-09-30 2017-01-04 努比亚技术有限公司 Prompting control method and mobile terminal
CN109600468A (en) * 2019-01-22 2019-04-09 维沃移动通信有限公司 The control method and collapsible terminal of collapsible terminal
CN110866465A (en) * 2019-10-29 2020-03-06 维沃移动通信有限公司 Control method of electronic equipment and electronic equipment
CN110913069A (en) * 2019-11-14 2020-03-24 维沃移动通信有限公司 Call mode switching method and terminal equipment
CN113452840A (en) * 2021-06-24 2021-09-28 深圳市泰衡诺科技有限公司 Control method of mobile terminal, mobile terminal and readable storage medium

Similar Documents

Publication Publication Date Title
US11740694B2 (en) Managing and mapping multi-sided touch
US11886695B2 (en) Notification processing method and electronic device
US10649648B2 (en) Method and apparatus for screen capture processing
CN105807873B (en) Temprature control method and device
RU2644130C2 (en) Text input method and device
US11237703B2 (en) Method for user-operation mode selection and terminals
WO2017071050A1 (en) Mistaken touch prevention method and device for terminal with touch screen
CN109067964B (en) Camera control method and device, mobile terminal and storage medium
EP4184506A1 (en) Audio processing
CN110262692B (en) Touch screen scanning method, device and medium
RU2665300C2 (en) Method and device for processing point reporting of touch screen
US10885298B2 (en) Method and device for optical fingerprint recognition, and computer-readable storage medium
CN107239184B (en) Touch screen touch device and method and mobile terminal
US20210096734A1 (en) Method and device for managing information
CN107046595A (en) Announcement information processing method, device and mobile terminal
CN108803972B (en) Information display method, device, mobile terminal and storage medium
CN108108213A (en) Instruction set performs method and device
JP6407293B2 (en) Keyboard style switching method and apparatus
CN108650413B (en) Projection method, projection device, mobile terminal and storage medium
CN115866135A (en) Processing method and device and electronic equipment
CN110221813A (en) Data connection establishing method, device, storage medium and the electronic equipment of application
CN108132885A (en) Data capture method, device and electronic equipment
CN112148149A (en) Touch screen control method, touch screen control device and storage medium
CN107329604B (en) Mobile terminal control method and device
US12088754B2 (en) Method for controlling mobile terminal, and mobile terminal

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