CN108055397A - Realize method, electronic equipment and the computer readable storage medium of do-not-disturb functionality - Google Patents

Realize method, electronic equipment and the computer readable storage medium of do-not-disturb functionality Download PDF

Info

Publication number
CN108055397A
CN108055397A CN201711277388.XA CN201711277388A CN108055397A CN 108055397 A CN108055397 A CN 108055397A CN 201711277388 A CN201711277388 A CN 201711277388A CN 108055397 A CN108055397 A CN 108055397A
Authority
CN
China
Prior art keywords
information
key
telephone number
interruption
initiator
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
CN201711277388.XA
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711277388.XA priority Critical patent/CN108055397A/en
Publication of CN108055397A publication Critical patent/CN108055397A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/26Devices for calling a subscriber
    • H04M1/27Devices whereby a plurality of signals may be stored simultaneously
    • H04M1/274Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc
    • H04M1/2745Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips
    • H04M1/27467Methods of retrieving data
    • H04M1/2748Methods of retrieving data by matching character strings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the present application discloses a kind of method for realizing do-not-disturb functionality, is related to the communications field, including:When receiving short message or listening to incoming call, the telephone number of the initiator of the short message or incoming call is obtained;The minimum identity information of the initiator is extracted from the telephone number, and searching whether there is the number information to match with the minimum identity information of the initiator in default interruption-free information record file, the minimum identity information of the initiator is the number segment that initiator's identity can be identified in the telephone number;If there are the number informations, output information notice, information notice do not receive short message for notice or listen to incoming call.The embodiment of the present application also discloses a kind of electronic equipment and computer readable storage medium, realizes do-not-disturb functionality, can improve the lookup speed of interruption-free number, avoid failing to judge.

Description

Realize method, electronic equipment and the computer readable storage medium of do-not-disturb functionality
Technical field
This application involves a kind of communications field more particularly to method for realizing do-not-disturb functionality, electronic equipment and computers Readable storage medium storing program for executing.
Background technology
With the development of technology, people are surrounded by numerous and complicated information, and substantial amounts of information enters people's by electronic equipment Life, in order to make people's thanking you for your hospitality from junk information, electronic equipment needs to have do-not-disturb functionality.
At present, realize that the method for do-not-disturb functionality is generally, when electronic equipment receives short message or listens to incoming call, if short When the telephone number of the promoter of letter or incoming call is arranged to interruption-free, then output information does not notify.This interruption-free realization side Formula, generally existing judge whether short message or the telephone number for the promoter that sends a telegram here are arranged to interruption-free time-consuming and is susceptible to leakage The problem of sentencing.
The content of the invention
The application provides a kind of method for realizing do-not-disturb functionality, electronic equipment and computer readable storage medium, realizes Do-not-disturb functionality, can to solve the problems, such as interruption-free number searching time-consuming and easily fails to judge.
The embodiment of the present application first aspect provides a kind of method for realizing do-not-disturb functionality, including:
When receiving short message or listening to incoming call, the telephone number of the initiator of the short message or incoming call is obtained;
The minimum identity information of the initiator is extracted from the telephone number, and in default interruption-free information record Search whether there is the number information to match with the minimum identity information of the initiator, the minimum of the initiator in file Identity information is the number segment that initiator's identity can be identified in the telephone number;
If there are the number information, output information does not notify, described information notice for notify to receive short message or Listen to incoming call.
The application second aspect provides a kind of electronic equipment, including:
Acquisition module, for when receiving short message or listening to incoming call, obtaining the initiator's of the short message or incoming call Telephone number;
Extraction module, for extracting the minimum identity of initiator letter from the telephone number that the acquisition module obtains Breath;
Searching module, for searching whether to exist with the initiator most in default interruption-free information record file The number information that small identity information matches;
Processing module, if for there are the number information, controlling not output information notice, described information notice is used for Notice receives short message or listens to incoming call.
The application third aspect provides a kind of electronic equipment, including:Memory, processor and storage are on a memory simultaneously The computer program that can be run on a processor, which is characterized in that when the processor performs the computer program, in realization The method that the realization do-not-disturb functionality of the embodiment of the present application first aspect offer is provided.
The application fourth aspect provides a kind of computer readable storage medium, is stored thereon with computer program, described When computer program is executed by processor, the side for the realization do-not-disturb functionality that above-mentioned the embodiment of the present application first aspect provides is realized Method.
The above-mentioned implementation method provided by the embodiments of the present application for realizing do-not-disturb functionality, electronic equipment or computer storage are situated between Matter by using the minimum identity information for including the number segment that can identify initiator's identity in telephone number, is exempted to beat default It disturbs and searches whether there is the number information to match with minimum identity information in information record file, when on the one hand reducing lookup The digit of number information compared is needed, therefore the lookup speed of interruption-free number can be improved, on the other hand, is initiated by identifying The number segment of square identity can avoid failing to judge while ensureing to search accuracy.
Description of the drawings
Fig. 1 is the flow diagram of the method for the realization do-not-disturb functionality that one embodiment of the application provides;
Fig. 2 is the flow diagram of the method for the realization do-not-disturb functionality that another embodiment of the application provides;
Fig. 3 is the signal that prompting frame interface is set in the method for the realization do-not-disturb functionality that another embodiment of the application provides Figure;
Fig. 4 is the structure diagram for the electronic equipment that one embodiment of the application provides;
Fig. 5 is the structure diagram for the electronic equipment that another embodiment of the application provides;
Fig. 6 is the hardware structure diagram for the electronic equipment that one embodiment of the application provides.
Specific embodiment
Purpose, feature, advantage to enable the application is more apparent and understandable, implements below in conjunction with the application The attached drawing that example provides, is clearly and completely described technical solution provided by the embodiments of the present application, it is clear that described reality It is only some embodiments of the present application to apply example, and not all embodiments.Based on the embodiment that the application provides, art technology Personnel's all other embodiments obtained without making creative work, shall fall in the protection scope of this application.
Referring to Fig. 1, the flow diagram of the method for the realization do-not-disturb functionality that Fig. 1, which is one embodiment of the application, to be provided, This method can be applied in electronic equipment, and electronic equipment includes:Smart mobile phone with short message and phone receive capabilities, tablet electricity The electronic data-processing equipment that brain, smartwatch etc. can use on the move.As shown in Figure 1, this method mainly includes following step Suddenly:
101st, when receiving short message or listening to incoming call, the telephone number of the initiator of the short message or incoming call is obtained;
Specifically, being preset with radio receiver in electronic equipment, event and incoming call are received to short message by radio receiver When the relevant broadcasts of event are monitored, when the broadcast of the broadcast or calling event that listen to short message reception event, in response to Event in the broadcast listened to obtains the telephone number of the short message of reception or the promoter of incoming call.
102nd, the minimum identity information of the initiator is extracted from the telephone number, and in default interruption-free information record Search whether there is the number information to match with the minimum identity information in file;
Usual telephone number is made of multiple characters and number, for ease of distinguishing different telephone numbers, can generally be incited somebody to action Telephone number is divided into multiple number segments, and each number segment includes multiple numbers or, character and multiple several combinatorics on words, different Number segment for identifying different meanings, some number segments are for the network of the supplier of identification telephone numbers, some numbers Section is used for the ownership place of identification telephone numbers, and the number segment also having is for owner of identification telephone numbers etc..
In this present embodiment, minimum identity information, alternatively, it can be appreciated that for matching minimum of interruption-free number It is can be used for the identity for identifying the initiator of the short message received or incoming call in the telephone number one or more numbers with value Code section.
It should be noted that default interruption-free information record file independently of short message session or incoming call session, in short message The short message is deleted in record or the incoming call is deleted in message registration, will not be changed in default interruption-free information record file The number information of record, thus by the telephone number for being provided with interruption-free send short message deleted from Message Record or The message registration that will be provided with the telephone number of interruption-free is deleted, and will not cause what the interruption-free of the telephone number was set Failure.
Optionally, which can be the number of system database or nonsystematic database According to library file or other kinds of file, for example, it may be form, chained list, storehouse etc. have the file of storage function.It can manage Solution, since the data stored in system database are more numerous and diverse, there are call relations between multiple application programs.When this is exempted from When bothering the database file or other kinds of file that information record file is non-system database, since it is not necessary to modify systems The information of database, therefore would not also be related to the compatibility issue with other applications.
If the 103rd, there are the number information, output information does not notify.
Specifically, information notice, for notifying to receive short message or listen to incoming call, which can be example Such as, the vibration of electronic equipment, actions or the default text information of output such as pipe, glisten.
Optionally, it is arranged to the short message that the number of interruption-free is sent if it is determined that receiving, is notified except information is not sent Outside, also the short message is indicated in short message record, it is to be arranged to the number of interruption-free to send to prompt the user short message Short message, for example, adding in the printed words of " refuse messages " in the content of the short message.
Optionally, it is arranged to the short message that the number of interruption-free is sent if it is determined that receiving, is notified except information is not sent Outside, during the short breath of information deposit is not recorded also, and message is sent to the number, the sender of the information is prompted to be arranged to Interruption-free, and the sender is prompted not send message to the electronic equipment again, for example, content can be sent to the sender For the short message of " you have been arranged to interruption-free, do not disturb ".
Optionally, it is arranged to the incoming call that the number of interruption-free is initiated if it is determined that receiving, is notified except information is not sent Outside, incoming call can also be automatically hung up.Further, also message can be sent to the number, the promoter of the incoming call is prompted to be set For interruption-free, and the sender is prompted not initiate to send a telegram here to the electronic equipment again.
In the embodiment of the present application, by using the minimum body for including the number segment that initiator's identity can be identified in telephone number Part information searches whether that there is the number to match with minimum identity information believes in default interruption-free information record file Breath, the digit for the number information that needs compare when on the one hand reducing lookup, therefore the lookup speed of interruption-free number can be improved, On the other hand, can be avoided failing to judge while ensureing to search accuracy by identifying the number segment of initiator's identity.
Referring to Fig. 2, the flow signal of the method for the realization do-not-disturb functionality that Fig. 2, which is another embodiment of the application, to be provided Figure, this method can be applied to electronic equipment, and electronic equipment includes:With short message and phone receive capabilities, and with interruption-free The electronic data-processing equipment that smart mobile phone, tablet computer, smartwatch of function etc. can use on the move.
201st, the setting in response to triggering instructs, and extracts the minimum body in the telephone number to be placed that setting instruction is directed toward Part information;
Specifically, setting operation that can be based on user in default interruption-free sets interface is instructed to trigger.It is appreciated that , telephone number to be placed is made of multiple characters and number, and multiple characters and number are grouped according to function, can be obtained To multiple number segments, each number segment and set of number, alternatively, corresponding with multiple several combinatorics on words with one group of character.When this sets When putting instruction and being triggered, the minimum identity information in extraction user input or selected telephone number to be placed.The minimum identity Information is the one or more number segments for owner's identity that the telephone number to be placed can be identified in the telephone number to be placed.
Optionally, in other embodiments, telephone number to be placed can be, but not limited to include:Country origin number segment, net Network identification number section, area code number segment and Subscriber Number section.Wherein country origin number segment is for identifying different countries, such as:+ 86 or 086 represents China.Network Recognition number section is for identifying telephone number belonging network, such as:Mobile network, communication network etc. Deng.Area code number segment is used to identify the ownership place of telephone number, such as:Beijing, Tianjin, Shanghai etc..Subscriber Number section is used In identification user.Heterogeneous networks, the user of different ownership place can possess identical Subscriber Number section.
The minimum identity information in telephone number to be placed is extracted, can specifically extract the country origin number in the telephone number Arbitrary group of section, Network Recognition number section, area code number segment and any one or more number segments in Subscriber Number section It closes, as the minimum identity information.
For purposes of illustration only, it is illustrated exemplified by using domestic 11 telephone numbers as telephone number to be placed, not to electricity The concrete form of words number makes limitation, and the 1-3 positions of the telephone number are Network Recognition number section, and 4-7 are area code Number segment, 8-11 are Subscriber Number section.In practical applications, can extract telephone number 4-7 are used as the phone number The minimum identity information of code can also extract the 8-11 minimum identity informations as the telephone number of telephone number, 4-11 conducts of telephone number can be extracted, 1-11 of telephone number can also be extracted as the telephone number most Small identity information.
202nd, corresponding second key assignments is set for the telephone number to be placed in default interruption-free information record file Right, second key-value pair is using the minimum identity information in the telephone number to be placed as key, using the telephone number to be placed as value;
In this present embodiment, default interruption-free information record file is independently of short message session or incoming call session, in short message The short message is deleted in record or the incoming call is deleted in message registration, will not be changed in default interruption-free information record file The number information of record, thus by the telephone number for being provided with interruption-free send short message deleted from Message Record or The message registration that will be provided with the telephone number of interruption-free is deleted, and will not cause what the interruption-free of the telephone number was set Failure.
Specifically, the interruption-free information record file can be the number of system database or nonsystematic database According to library file or other kinds of file, for example, it may be form, chained list, storehouse etc. have the file of storage function.It can manage Solution, since the data stored in system database are more numerous and diverse, there are call relations between multiple application programs.When this is exempted from When bothering the database file or other kinds of file that information record file is non-system database, since it is not necessary to modify systems The information of database, therefore would not also be related to the compatibility issue with other applications.
Interruption-free number is stored in a manner of key-value pair in interruption-free information record file, and the key-value pair is with interruption-free number Minimum identity information in code is key (key), using the complete information of interruption-free number as value (value).It should be understood that one In a key-value pair, same key can correspond to a value simultaneously, can also correspond to multiple values simultaneously.
As an example it is assumed that the form of the key-value pair is:{ String (minN1), Set (S1) }, wherein minN1 is key, Namely the minimum identity information in telephone number to be placed, S1 are value, i.e., whole number informations of telephone number to be placed. Assuming that telephone number S1 to be placed is 13505409870, wherein minimum identity information minN1 is 05409870, then the phone number The key-value pair of code is { String (05409870), Set (13505409870) }.
Optionally, in other embodiments, before for the telephone number to be placed, corresponding second key-value pair is set, Can also first check in interruption-free information record file whether have existed corresponding key-value pair.Specifically, in response to triggering Instruction is set, after extracting the minimum identity information in the telephone number to be placed that setting instruction is directed toward, is believed in the interruption-free The 3rd key-value pair for having using the minimum identity information in the telephone number to be placed as key is searched whether in breath record file. If there are the 3rd key-value pairs, increase to using the telephone number to be placed as value in the 3rd key-value pair.If there is no should 3rd key-value pair, then perform step 202 again:It sets and corresponds to for the telephone number to be placed in the interruption-free information record file The second key-value pair.In this way, the key-value pair of repetition can be avoided the occurrence of, the complexity of interruption-free information record DCA document content architecture is reduced Degree further improves the speed and efficiency of lookup.
Exemplified by still with { String (minN1), Set (S1) }, it is assumed that telephone number S1 to be placed is+8613505409870, Wherein minimum identity information minN1 is 13505409870, then searches interruption-free information record text first with 13505409870 It whether there is the key-value pair with 13505409870 for key in part, if there is { String (13505409870), Set (13505409870) }, then+8613505409870 are increased in the key-value pair, as a result { String (13505409870), Set (13505409870 ,+8613505409870) }.It is such as not present, is then+8613505409870 wounds Build corresponding key-value pair { String (13505409870), Set (+8613505409870) }.
It should be understood that the concrete form of above-mentioned key-value pair in practical applications can be without being limited thereto, the present embodiment is not to it It is specifically limited.
It should be noted that step 201 and step 202 can perform before step 203, can also step 203 it Random time point afterwards performs, that is to say, that user can carry out the setting operation of interruption-free number at any time.
203rd, when receiving short message or listening to incoming call, the telephone number of the initiator of the short message or incoming call is obtained, and The minimum identity information of the initiator is extracted from the telephone number, the minimum identity information of the initiator is in the telephone number The number segment of initiator's identity can be identified;
Specifically, being preset with radio receiver in electronic equipment, event and incoming call are received to short message by radio receiver When the relevant broadcasts of event are monitored, when the broadcast of the broadcast or calling event that listen to short message reception event, in response to Event in the broadcast listened to obtains the telephone number of the short message of reception or the promoter of incoming call, and from the telephone number Extract the minimum identity information of the initiator.Specific extracting method can refer to extraction setting in step 201 and instruct that is directed toward to wait to set The related content of the minimum identity information in telephone number is put, details are not described herein again.
204th, search whether to exist in the interruption-free information record file using the minimum identity information of the initiator as key The first key-value pair;
It searches whether to exist in interruption-free information record file with the initiation of the short message received or the incoming call listened to The minimum identity information of side is the first key-value pair of key.If in the presence of the telephone number for illustrating the initiator may be interruption-free Number then performs step 205.If being not present, the telephone number for illustrating the initiator is not interruption-free number, is then performed Step 207.Like this, by using minimum identity information, it is only necessary to which matching the part number in telephone number can exempt from non- It bothers number quickly to determine, so as to improve the speed of non-interruption-free number searching.
205th, judge to whether there is the value consistent with the telephone number in first key-value pair;
If exist in interruption-free information record file with the minimum of the short message received or the initiator of the incoming call listened to Identity information is the first key-value pair of key, then the telephone number for illustrating the initiator may be interruption-free number, and then judging should With the presence or absence of the value consistent with the telephone number in first key-value pair, whether to further confirm that the telephone number of the initiator For interruption-free number, so as to ensure the accuracy of judging result.If exist in first key-value pair consistent with the telephone number Value, then perform step 206.If step 207 is performed there is no the value consistent with the telephone number in first key-value pair.
206th, the number information for existing and matching with the minimum identity information of the initiator is confirmed, output information is not led to Know;
If specifically, in first key-value pair exist the value consistent with the telephone number of the initiator, confirm in the presence of with The number information that the minimum identity information of the initiator matches, output information notice, information notice do not connect for notice It receives short message or listens to incoming call, for example, it may be the vibration of electronic equipment, actions or the default word such as pipe, glisten Information.
207th, the number information for being not present and matching with the minimum identity information of the initiator is confirmed, and output notice is believed Breath.
If specifically, the using the minimum identity information of the initiator as key is not present in the interruption-free information record file One key-value pair, if alternatively, confirming to be not present there is no the value consistent with the telephone number of the initiator in first key-value pair The number information to match with the minimum identity information of the initiator, and output notice information.
In a practical application, if user selects some session to set interruption-free, session contact people's phone number is obtained Code N1, and according to minimum identity information rule (or, smallest match value rule), the smallest match value minN1 in N1 is intercepted, then Using minN1 as key, { String (minN1), Set (S1) } key-value pair is established, and N1 is added in S1, so as to complete to exempt from Bother the setting of number.
Then, after new message is received, the contact number N2 of the short message is obtained, and it is regular according to smallest match value, Intercept the smallest match value minN2 in N2.Then the key-value pair { String (minN2), Set (S2) } that minN2 is key is searched, If being not present, it is not interruption-free number to confirm N2, and output information notifies.If in the presence of, it is regular by numbers match, judge N2 Whether it is stored in S2, if finding, it is interruption-free number to confirm N2, and output information does not notify, if not finding, confirms N2 not It is interruption-free number, output information notifies.
Optionally, in other embodiments, it is not present what is matched with the minimum identity information of the initiator if confirming Number information then before output notice information, can also search whether to exist in default contacts list with initiator's The associated person information that telephone number matches.If there is the connection to match with the telephone number of the initiator in the contacts list It is people's information, then exports the notification information.If it is not present what is matched with the telephone number of the initiator in the contacts list Associated person information then exports the notification information and prompt message, and the prompt message is for prompting the sender as stranger, with side User is helped to choose whether to need to receive calls or check short message.
Optionally, if there is no the associated person information to match with the telephone number in the contacts list, exporting It can prompt the user whether to need to carry out interruption-free setting to current telephone number after the notification information and prompt message.Specifically , output sets prompt message, and whether which is that the sender sets interruption-free information for prompting.In response to Setting instruction based on setting prompt message triggering, performs step 201 and step 202, to complete to remember in the interruption-free information It records in file and corresponding key-value pair is set for the sender.
It should be noted that telephone number to be placed is stored in interruption-free information record file in a manner of key-value pair In, and pass through key-value pair and search whether the phone for being present in the promoter of information or incoming call in the interruption-free information record file The consistent value of number, in a first aspect, since minimum identity information is country origin number segment, the Network Recognition number in telephone number Any combination of section, area code number segment and any one or more number segments in Subscriber Number section, therefore minimum identity letter The digit of breath is less than the digit of complete telephone number, searches whether to deposit in the interruption-free information record file so as to reduce , it is necessary to the time of consumption when being the consistent value of the telephone number of the promoter of information or incoming call.Second aspect, due to exempting to beat It disturbs in information record file, a key can correspond to multiple values, i.e., one minimum identity information can record multiple to be placed Telephone number, therefore the quantity of the minimum identity information compared is needed to reduce, so as to further reduce in the interruption-free information When searching whether the consistent value of the telephone number for being present in the promoter of information or incoming call in record file, it is necessary to consumption when Between.The third aspect if after the minimum identity information is compared, does not find the target minimum identity information, then can directly think The telephone number of the promoter is not present in the interruption-free information record file, further reduces in the interruption-free information record , it is necessary to the time of consumption when searching whether the consistent value of the telephone number for being present in the promoter of information or incoming call in file.The Four aspects, if after the minimum identity information compare, find the target minimum identity information, then only by destination phone numbers and The telephone number of the promoter is compared, the phone which records for record with the target minimum identity information Number reduces the quantity for the telephone number that needs compare, and further reduces and is searched in the interruption-free information record file , it is necessary to the time of consumption during with the presence or absence of the consistent value of the telephone number in information or the promoter of incoming call.
For the clearer explanation implementation method provided in this embodiment for realizing do-not-disturb functionality, realized below with mobile phone It is illustrated exemplified by the method for do-not-disturb functionality.When mobile phone receives short message or listens to incoming call, the short message or incoming call are obtained Promoter telephone number, it is assumed that the telephone number be 4445556666.
Number segment and subscriber-coded number segment are equally encoded as minimum identity information using area, extracted from the telephone number 5556666 are used as key, and search whether the first key assignments for having with 5556666 for key in interruption-free identity information records file It is right, if in the presence of, the value there are 4445556666 is searched whether in first key-value pair, if in the presence of, then it is assumed that telephone number 4445556666 are arranged to interruption-free, and output information does not notify mobile phone.
If in interruption-free message file be not present with 5556666 for key the first key-value pair or be key with 5556666 4445556666 value is not present in first key-value pair, then searches whether that there are telephone numbers in the contacts list of mobile phone 4445556666。
If in the presence of output information notice, mobile phone output prompt tone generates and vibrates and show on a display screen the electricity of incoming call Talk about number and the telephone number corresponding name of contact person in contacts list.
If being not present, output information notice and prompting notice, mobile phone output prompt tone, generate vibration and on a display screen It shows the telephone number of incoming call, and shows setting prompting frame as shown in Figure 3 on a display screen, the prompting frame prompting user electricity Words number is strange number, and prompts the user to choose whether the strange number being arranged to interruption-free.When listening in Fig. 3 really When determining the click event of key, create in interruption-free information record file for the telephone number 4445556666 and make with 5556666 For key, the key-value pair for being value with 4445556666.
In the present embodiment, by using the minimum identity for including the number segment that initiator's identity can be identified in telephone number Information searches whether there is the number information to match with minimum identity information in default interruption-free information record file, The digit for the number information that needs compare when on the one hand reducing lookup, therefore the lookup speed of interruption-free number can be improved, separately On the one hand, can be avoided failing to judge while ensureing to search accuracy by identifying the number segment of initiator's identity.In addition, into One step, after the telephone number for the promoter for not finding information or incoming call in interruption-free information record file, by pre- If contacts list in search the telephone number of the promoter, and do not find the phone of the promoter in contacts list During number, prompt message is exported, to prompt the sender as stranger, it is achieved thereby that the prompting function of strange number.It goes forward side by side One step, when promoter is stranger, prompt whether to be that the sender sets interruption-free information, and in response to being based on the setting The setting of prompt message triggering is instructed is arranged to interruption-free by the strange number, realizes to the quick of the interruption-free of strange number It sets.
Referring to Fig. 4, Fig. 4 is the structure diagram for the electronic equipment that one embodiment of the application provides, for convenience of description, It illustrates only and the relevant part of the embodiment of the present application.The exemplary electronic equipments of Fig. 4 can be that foregoing embodiment illustrated in fig. 1 provides Realization do-not-disturb functionality method executive agent.The exemplary electronic equipments of Fig. 4, mainly include:Acquisition module 301, extraction Module 302, searching module 303 and processing module 304.
Acquisition module 301, for when receiving short message or listening to incoming call, obtaining the initiator's of the short message or incoming call Telephone number.
Extraction module 302, for acquisition module 301 obtain telephone number in extract the initiator minimum identity letter Breath.
Searching module 303, for searching whether to exist in default interruption-free information record file with the initiator's The number information that minimum identity information matches.
Processing module 304, if for there are the number information, controlling not output information notice, information notice is used for Notice receives short message or listens to incoming call.
Specifically, when receiving short message or listening to incoming call, acquisition module 301 obtains the initiator of the short message or incoming call Telephone number, and pass through the minimum identity information that extraction module 302 extracts initiator from the telephone number.Then, search Module 303 searches whether to be present in the matched number letter of the minimum identity information in default interruption-free information record file Breath controls not output information notice if being not present by processing module 304.
The details of the present embodiment not to the greatest extent, refers to the description of foregoing embodiment illustrated in fig. 1, details are not described herein again.
In the embodiment of the present application, by using the minimum body for including the number segment that initiator's identity can be identified in telephone number Part information searches whether that there is the number to match with minimum identity information believes in default interruption-free information record file Breath, the digit for the number information that needs compare when on the one hand reducing lookup, therefore the lookup speed of interruption-free number can be improved, On the other hand, can be avoided failing to judge while ensureing to search accuracy by identifying the number segment of initiator's identity.
Referring to Fig. 5, Fig. 5 is the structure diagram for the electronic equipment that another embodiment of the application provides, for the ease of saying It is bright, it illustrates only and the relevant part of the embodiment of the present application.The exemplary electronic equipments of Fig. 5 can be real shown in earlier figures 1 and Fig. 2 The executive agent of the method for the realization do-not-disturb functionality of example offer is provided.The exemplary electronic equipments of Fig. 5, and in embodiment illustrated in fig. 4 The difference of electronic equipment essentially consist in:
Further, searching module 303, specifically for searching whether to exist in the interruption-free information record file with this The minimum identity information of initiator is the first key-value pair of key, if there are first key-value pairs, is judged in first key-value pair If with the presence or absence of in the value consistent with the telephone number and first key-value pair exist the value consistent with the telephone number, Confirm the number information for existing and matching with the minimum identity information of the initiator.
Further, extraction module 302 are additionally operable to the setting instruction in response to triggering, extract what setting instruction was directed toward Minimum identity information in telephone number to be placed;
The electronic equipment further includes:
Setup module 401, for being that telephone number setting to be placed is corresponding in the interruption-free information record file Second key-value pair, second key-value pair is using the minimum identity information in the telephone number to be placed as key, with the phone to be placed Number is value;
Searching module 303 is additionally operable to search whether to exist in the interruption-free information record file with the phone to be placed Minimum identity information in number is the 3rd key-value pair of key;
Setup module 401 is additionally operable to there are during three key-value pairs, then increase to the telephone number to be placed as value It is if to be placed for this in the interruption-free information record file in the 3rd key-value pair and there is no the 3rd key-value pair Telephone number sets corresponding second key-value pair.
Further, extraction module 302, specifically for country origin number segment, the Network Recognition number in extraction telephone number Section, area code number segment and any one number segment or any combination number segment of multiple number segments in Subscriber Number section, Minimum identity information as the initiator.
Further, searching module 303, if being additionally operable to, there is no numbers that the minimum identity information with the initiator matches Code letter, then search whether there is the associated person information to match with the telephone number in default contacts list;
The electronic equipment further includes:
Output module 402, if for there is the associated person information to match with the telephone number in the contacts list, It is defeated if the associated person information to match with the telephone number is not present in output notice information and the contacts list Go out the notification information and prompt message, which is stranger for prompting the sender;
Output module 402 is additionally operable to output and sets prompt message, and whether which is the transmission for prompting Side sets interruption-free information;
Extraction module 302 is additionally operable to instruct in response to the setting triggered based on the setting prompt message, extracts the setting and refer to Make the minimum identity information in the telephone number to be placed being directed toward.
The details of the present embodiment not to the greatest extent, refers to description of the earlier figures 1 to embodiment illustrated in fig. 4, details are not described herein again.
In the embodiment of the present application, by using the minimum body for including the number segment that initiator's identity can be identified in telephone number Part information searches whether that there is the number to match with minimum identity information believes in default interruption-free information record file Breath, the digit for the number information that needs compare when on the one hand reducing lookup, therefore the lookup speed of interruption-free number can be improved, On the other hand, can be avoided failing to judge while ensureing to search accuracy by identifying the number segment of initiator's identity.In addition, Further, after the telephone number for the promoter for not finding information or incoming call in interruption-free information record file, by The telephone number of the promoter is searched in default contacts list, and does not find the electricity of the promoter in contacts list When talking about number, prompt message is exported, to prompt the sender as stranger, it is achieved thereby that the prompting function of strange number.And Further, when promoter is stranger, prompt whether to be that the sender sets interruption-free information, and set in response to being based on this The strange number is arranged to interruption-free by the setting instruction for putting prompt message triggering, is realized to the fast of the interruption-free of strange number Speed is set.
Referring to Fig. 6, Fig. 6 is the hardware structure diagram of electronic equipment provided by the embodiments of the present application.
Electronic equipment described in the present embodiment, including:
Memory 501, processor 502 and the computer program that can be run on memory 501 and on a processor is stored in, When processor performs the computer program, realization do-not-disturb functionality described in earlier figures 1 and embodiment illustrated in fig. 2 is realized Method.
Further, which further includes:
At least one input equipment 503;At least one output equipment 504.
Above-mentioned memory 501,502 input equipment 503 of processor and output equipment 504 are connected by bus 505.
Wherein, input equipment 503 concretely touch panel, physical button or mouse etc..Output equipment 504 is specific It can be display screen.
Memory 501 can be high random access memory body (RAM, Random Access Memory) memory, Can be non-labile memory (non-volatile memory), such as magnetic disk storage.Memory 501 is for storage one Group executable program code, processor 502 are coupled with memory 501.
Further, the embodiment of the present application additionally provides a kind of computer readable storage medium, the computer-readable storage Medium can be disposed in the electronic equipment in the various embodiments described above, which can be earlier figures 6 Memory in illustrated embodiment.Computer program is stored on the computer readable storage medium, which is held by processor The method that the realization do-not-disturb functionality described in earlier figures 1 and embodiment illustrated in fig. 2 is realized during row.Further, the computer Can storage medium can also be USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory The various media that can store program code such as device (RAM, Random Access Memory), magnetic disc or CD.
In multiple embodiments provided herein, it should be understood that disclosed electronic equipment and method, Ke Yitong Other modes are crossed to realize.For example, embodiments described above is only schematical, for example, the division of the module, only Only a kind of division of logic function can have other dividing mode in actual implementation, such as multiple module or components can be tied It closes or is desirably integrated into another system or some features can be ignored or does not perform.It is another, it is shown or discussed Mutual coupling or direct-coupling or communication linkage can be by some interfaces, the INDIRECT COUPLING or communication chain of module It connects, can be electrical, machinery or other forms.
The module illustrated as separating component may or may not be physically separate, be shown as module The component shown may or may not be physical module, you can be located at a place or can also be distributed to multiple On network module.Some or all of module therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each function module in each embodiment of the application can be integrated in a processing module, it can also That modules are individually physically present, can also two or more modules be integrated in a module.Above-mentioned integrated mould The form that hardware had both may be employed in block is realized, can also be realized in the form of software function module.
It it should be noted that for foregoing each method embodiment, describes, therefore it is all expressed as a series of for simplicity Combination of actions, but those skilled in the art should know, the application and from the limitation of described sequence of movement because According to the application, some steps may be employed other orders or be carried out at the same time.Secondly, those skilled in the art should also know It knows, embodiment described in this description belongs to preferred embodiment, and involved action and module might not all be this Shens It please be necessary.
In the above-described embodiments, all emphasize particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiments.
It is method, electronic equipment and the computer-readable storage medium to realization do-not-disturb functionality provided herein above The description of matter, for those of ordinary skill in the art, according to the thought of the embodiment of the present application, in specific embodiment and application There will be changes in scope, to sum up, this specification content should not be construed as the limitation to the application.

Claims (14)

  1. A kind of 1. method for realizing do-not-disturb functionality, which is characterized in that the described method includes:
    When receiving short message or listening to incoming call, the telephone number of the initiator of the short message or incoming call is obtained;
    The minimum identity information of the initiator is extracted from the telephone number, and in default interruption-free information record file In search whether there is the number information to match with the minimum identity information of the initiator, the minimum identity of the initiator Information is that the number segment of initiator's identity can be identified in the telephone number;
    If there are the number informations, output information notice, described information notice do not receive short message or monitoring for notice To incoming call.
  2. 2. the method as described in claim 1, which is characterized in that key-value pair is stored in the interruption-free information record file, The key-value pair using in default interruption-free number can identity user identity number segment as key, with the complete of the interruption-free number Whole information is value, the minimum identity for searching whether to have with the initiator in default interruption-free information record file The number information of information match, specifically includes:
    Search whether to exist the using the minimum identity information of the initiator as key in the interruption-free information record file One key-value pair;
    If there are first key-value pairs, judge in first key-value pair with the presence or absence of consistent with the telephone number Value;
    If there is the value consistent with the telephone number in first key-value pair, confirm in the presence of the minimum with the initiator The number information that identity information matches.
  3. 3. method as claimed in claim 2, which is characterized in that the method further includes:
    Setting in response to triggering instructs, and extracts the minimum identity letter in the telephone number to be placed that instruction is set to be directed toward Breath;
    It is that telephone number to be set sets corresponding second key-value pair in the interruption-free information record file, described the Two key-value pairs are using the minimum identity information in telephone number to be set as key, using telephone number to be set as value.
  4. 4. method as claimed in claim 3, which is characterized in that the setting in response to triggering instructs, and extracts the setting Instruct be directed toward telephone number to be placed in minimum identity information and it is described be institute in the interruption-free information record file Between stating corresponding second key-value pair of telephone number setting to be placed, including:
    It searches whether to exist in the interruption-free information record file and be believed with the minimum identity in telephone number to be set Cease the 3rd key-value pair for key;
    If there are the 3rd key-value pairs, increase to telephone number to be set as value in the 3rd key-value pair;
    If there is no the 3rd key-value pairs, it is electricity to be set in the interruption-free information record file to perform described Talk about the step of number sets corresponding second key-value pair.
  5. 5. the method as described in claim 1 or 3, which is characterized in that described that the initiator is extracted from the telephone number Minimum identity information or, it is described extraction it is described set instruction be directed toward telephone number to be placed in minimum identity information, bag It includes:
    In country origin number segment, Network Recognition number section, area code number segment and Subscriber Number section in extraction telephone number Any combination number segment of any one number segment or multiple number segments, the minimum identity information as the initiator.
  6. 6. the method as described in claim 3 or 4, which is characterized in that described to be looked into default interruption-free information record file It looks for after the number information to match with the presence or absence of the minimum identity information with the initiator, further includes:
    If there is no the number information that the minimum identity information with the initiator matches, in default contacts list Search whether there is the associated person information to match with the telephone number;
    If there is the associated person information to match with the telephone number in the contacts list, the notice letter is exported Breath;
    If the notice letter is exported there is no the associated person information to match with the telephone number in the contacts list Breath and prompt message, the prompt message are stranger for prompting described sender.
  7. 7. method as claimed in claim 6, which is characterized in that if being not present and the phone in the contacts list The associated person information that number matches, then export the notification information and prompt message further includes afterwards:
    Output sets prompt message, and whether the setting prompt message is that described sender sets interruption-free information for prompting;
    In response to the setting instruction triggered based on the setting prompt message, the execution extraction is described to set treating for instruction direction The step of minimum identity information in telephone number is set, until it is the hair in the interruption-free information record file to complete The side of sending sets corresponding key-value pair.
  8. 8. a kind of electronic equipment, which is characterized in that including:
    Acquisition module, for when receiving short message or listening to incoming call, obtaining the phone of the initiator of the short message or incoming call Number;
    Extraction module, for extracting the minimum identity information of the initiator from the telephone number that the acquisition module obtains;
    Searching module, for searching whether the minimum body for having with the initiator in default interruption-free information record file The number information of part information match;
    Processing module, if for there are the number information, controlling not output information notice, described information notifies to notify It receives short message or listens to incoming call.
  9. 9. electronic equipment as claimed in claim 8, which is characterized in that
    The searching module, specifically for searching whether to exist in the interruption-free information record file with the initiator's Minimum identity information is the first key-value pair of key, if there are first key-value pair, judge in first key-value pair whether If in the presence of in the value consistent with the telephone number and first key-value pair exist the value consistent with the telephone number, Then confirm the number information to match in the presence of the minimum identity information with the initiator.
  10. 10. electronic equipment as claimed in claim 8, which is characterized in that
    The extraction module is additionally operable to the setting instruction in response to triggering, extracts the phone to be placed that instruction is set to be directed toward Minimum identity information in number;
    The electronic equipment further includes:
    Setup module, for being that telephone number to be set sets corresponding second in the interruption-free information record file Key-value pair, second key-value pair is using the minimum identity information in telephone number to be set as key, with electricity to be set Number is talked about as value;
    The searching module is additionally operable to search whether to exist in the interruption-free information record file with phone to be set Minimum identity information in number is the 3rd key-value pair of key;
    The setup module is additionally operable to there are during three key-value pair, then using telephone number to be set as value increase If into the 3rd key-value pair and there is no the 3rd key-value pair, it is in the interruption-free information record file Telephone number to be set sets corresponding second key-value pair.
  11. 11. electronic equipment as claimed in claim 10, which is characterized in that
    The extraction module, specifically for extracting the country origin number segment in telephone number, Network Recognition number section, area code number Code section and any one number segment or any combination number segment of multiple number segments in Subscriber Number section, as the initiator Minimum identity information.
  12. 12. electronic equipment as claimed in claim 11, which is characterized in that
    The searching module, if being additionally operable to there is no the number letter that the minimum identity information with the initiator matches, Search whether there is the associated person information to match with the telephone number in default contacts list;
    The electronic equipment further includes:
    Output module, if for there is the associated person information to match with the telephone number in the contacts list, it is defeated If the associated person information to match with the telephone number is not present in information of putting up a notice and the contacts list, The notification information and prompt message are exported, the prompt message is stranger for prompting described sender;
    The output module is additionally operable to output and sets prompt message, and whether the setting prompt message is the hair for prompting The side of sending sets interruption-free information;
    The extraction module is additionally operable to instruct in response to the setting triggered based on the setting prompt message, extracts the setting Instruct the minimum identity information in the telephone number to be placed being directed toward.
  13. 13. a kind of electronic equipment, including:Memory, processor and storage are on a memory and the meter that can run on a processor Calculation machine program, which is characterized in that when the processor performs the computer program, realize any one of claim 1 to 7 Each step in the method for the realization do-not-disturb functionality.
  14. 14. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program When being executed by processor, each step in the method for the realization do-not-disturb functionality described in any one of claim 1 to 7 is realized Suddenly.
CN201711277388.XA 2017-12-06 2017-12-06 Realize method, electronic equipment and the computer readable storage medium of do-not-disturb functionality Pending CN108055397A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711277388.XA CN108055397A (en) 2017-12-06 2017-12-06 Realize method, electronic equipment and the computer readable storage medium of do-not-disturb functionality

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711277388.XA CN108055397A (en) 2017-12-06 2017-12-06 Realize method, electronic equipment and the computer readable storage medium of do-not-disturb functionality

Publications (1)

Publication Number Publication Date
CN108055397A true CN108055397A (en) 2018-05-18

Family

ID=62122365

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711277388.XA Pending CN108055397A (en) 2017-12-06 2017-12-06 Realize method, electronic equipment and the computer readable storage medium of do-not-disturb functionality

Country Status (1)

Country Link
CN (1) CN108055397A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108055404A (en) * 2017-12-25 2018-05-18 广东欧珀移动通信有限公司 Reminder announced method, apparatus, terminal and storage medium
US11272051B2 (en) 2017-12-25 2022-03-08 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for notification reminder, terminal, and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040043762A1 (en) * 2002-09-04 2004-03-04 Jae-Min Kim System and method for processing information and data in mobile telephone
CN101227511A (en) * 2008-01-30 2008-07-23 中兴通讯股份有限公司 Terminal and method for recognizing and controlling nuisance call
CN101262675A (en) * 2008-04-24 2008-09-10 中兴通讯股份有限公司 Method for mobile phone to prevent from spam
CN102694900A (en) * 2012-06-18 2012-09-26 奇智软件(北京)有限公司 Phone call intercepting method and device
CN103152738A (en) * 2011-12-07 2013-06-12 腾讯科技(深圳)有限公司 Method and device of intelligent intercept
CN103345469A (en) * 2013-05-24 2013-10-09 联动优势科技有限公司 Storing and inquiring method and device of number sets
CN104270521A (en) * 2014-09-26 2015-01-07 北京奇虎科技有限公司 Method for processing incoming call number and mobile terminal
CN106777178A (en) * 2016-12-22 2017-05-31 上海大汉三通无线通信有限公司 The storage method and querying method of a kind of phone number

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040043762A1 (en) * 2002-09-04 2004-03-04 Jae-Min Kim System and method for processing information and data in mobile telephone
CN101227511A (en) * 2008-01-30 2008-07-23 中兴通讯股份有限公司 Terminal and method for recognizing and controlling nuisance call
CN101262675A (en) * 2008-04-24 2008-09-10 中兴通讯股份有限公司 Method for mobile phone to prevent from spam
CN103152738A (en) * 2011-12-07 2013-06-12 腾讯科技(深圳)有限公司 Method and device of intelligent intercept
CN102694900A (en) * 2012-06-18 2012-09-26 奇智软件(北京)有限公司 Phone call intercepting method and device
CN103345469A (en) * 2013-05-24 2013-10-09 联动优势科技有限公司 Storing and inquiring method and device of number sets
CN104270521A (en) * 2014-09-26 2015-01-07 北京奇虎科技有限公司 Method for processing incoming call number and mobile terminal
CN106777178A (en) * 2016-12-22 2017-05-31 上海大汉三通无线通信有限公司 The storage method and querying method of a kind of phone number

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108055404A (en) * 2017-12-25 2018-05-18 广东欧珀移动通信有限公司 Reminder announced method, apparatus, terminal and storage medium
CN108055404B (en) * 2017-12-25 2019-10-25 Oppo广东移动通信有限公司 Reminder announced method, apparatus, terminal and storage medium
US11272051B2 (en) 2017-12-25 2022-03-08 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for notification reminder, terminal, and storage medium

Similar Documents

Publication Publication Date Title
US20180242141A1 (en) Euicc and activation method thereof, internet of things system, remote subscription management platform
CN105491539B (en) Message pushes management method and device
CN104580179B (en) A kind of message treatment method, device and server
CN104809816B (en) Pickup processing method, pickup perform method, pickup method and apparatus and system
CN103336924A (en) Starting lock for mobile terminal application program
CN103856324B (en) The method and electronic equipment of a kind of identity validation, communication request
CN106034138A (en) Remote service calling method and remote service calling device
CN106406947B (en) The method and device that prevents system service process from restarting, mobile terminal
CN105978775A (en) Speech control system and speech control method
CN104244198A (en) Prompting method and device for on-state of call
CN103179283A (en) Method and system for implementing shortcut key operation on mobile telephone status bar short message notice
CN107613091A (en) A kind of method and terminal for establishing communication
WO2015154452A1 (en) Method and terminal for remotely querying information about contact person
CN108055397A (en) Realize method, electronic equipment and the computer readable storage medium of do-not-disturb functionality
CN104010086B (en) The processing method of call-information and device, terminal installation between terminal
US20240089923A1 (en) Paging Method, Electronic Device, and Non-Transitory Readable Storage Medium
CN106027739A (en) Incoming call processing method and device, and terminal
CN106792600A (en) A kind of information processing method, mobile terminal, netscape messaging server Netscape
CN104394526A (en) Method for recovering data service and electronic apparatus
CN104184871A (en) Method and device for prompting crank call number
CN104348948B (en) Information processing method and electronic equipment
CN108243085B (en) Method and device for pushing and setting communication group state identifier
CN104244220A (en) Communication service processing method and communication terminal
CN106572236A (en) Method for transferring usage habit setting between terminals and system thereof
CN107743114B (en) Network access method, device and system

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180518

RJ01 Rejection of invention patent application after publication