WO2020151408A1 - Contact displaying method and related device - Google Patents
Contact displaying method and related device Download PDFInfo
- Publication number
- WO2020151408A1 WO2020151408A1 PCT/CN2019/125805 CN2019125805W WO2020151408A1 WO 2020151408 A1 WO2020151408 A1 WO 2020151408A1 CN 2019125805 W CN2019125805 W CN 2019125805W WO 2020151408 A1 WO2020151408 A1 WO 2020151408A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- electronic device
- user
- frequency
- designated
- address book
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/26—Devices for calling a subscriber
- H04M1/27—Devices whereby a plurality of signals may be stored simultaneously
- H04M1/274—Devices 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/2745—Devices 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/725—Cordless telephones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/725—Cordless telephones
- H04M1/73—Battery saving arrangements
Definitions
- This application relates to the field of communication technology, and in particular to a method and related device for displaying contacts.
- This application provides a method and related device for displaying contacts, which allows users to quickly find frequently used relatives.
- the present application provides a method for displaying contacts, including: first, a first electronic device receives a first input operation. Then, in response to the first input operation, the first electronic device adds the contact information of the first user in the address book application of the first electronic device. Wherein, the contact information of the first user includes the phone number and name of the first user, and the contact information of the first user is stored in the first position in the address book application. Then, the first electronic device determines whether the name of the first user in the address book application is a designated nickname, and if so, and the degree of association between the first electronic device and the first user is greater than a first threshold, the first user The name and/or phone number of is displayed in a designated location, which is different from the first location.
- the degree of association between the first electronic device and the first user is determined by the following parameters: the frequency of calls between the first electronic device and the first user, and when the first electronic device and the first user are in the same geographic location on legal holidays The frequency of the location and the frequency of connecting the first electronic device and the second electronic device of the first user to the same network during legal holidays.
- the first electronic device screens out the frequently used relative contacts in the address book application (ie, the first user), and displays the names and phone numbers of the frequently used relative contacts in some specific locations, which can facilitate the user to quickly It is convenient for users to find the contact information of frequently used relatives.
- the designated nicknames include grandpa, grandma, dad, mom, husband, wife, daughter, son, baby, brother, sister, brother, sister, uncle, aunt, aunt, uncle, aunt, aunt, uncle, uncle or uncle.
- the designated location includes a favorite interface in the address book application, and/or a shortcut menu displayed around an icon of the address book application in the main interface of the first electronic device, and/or the The frequently used contact interface in the address book application, and/or the first display area of the contact display interface in the address book application. In this way, displaying the name and/or phone number of the first user in the designated location can facilitate the user to quickly search.
- the method further includes: the first electronic device receives a long press operation or a pressing operation on the address book application icon. In response to the long press operation or the pressing operation, the first electronic device displays the shortcut menu around the address book application icon. In this way, the first electronic device can quickly display the name and/or phone number of the first user according to the user's operation (for example, long press, press), so that the user can find the contact information of the first user.
- the user's operation for example, long press, press
- the method further includes: the first electronic device receives a second input operation for the name and/or phone number of the first user displayed in the designated area. In response to the second input operation, the first electronic device calls the second electronic device of the first user. In this way, it is convenient for the user to quickly find the contact information of the frequently used relatives and dial the phone of the first user.
- the method further includes: the first electronic device receives a third input operation for the name and/or phone number of the first user displayed in the designated area.
- the first electronic device opens an editing window in the short message application where the first electronic device sends a short message to the first user. In this way, it is convenient for the user to find the contact information of the frequently used relatives and to edit the information to be sent to the first user.
- the first electronic device judging whether the name of the first user in the address book application is a designated nickname includes: the first electronic device judging the last name of the first user in the address book application Or whether one of the names is the designated nickname.
- the method further The method includes: the first electronic device determines whether the intimacy of the first user is greater than a third threshold, and if so, the first electronic device displays the name and/or phone number of the first user in the designated location; wherein, the The degree of intimacy between the first electronic device and the first user is determined by the frequency with which the designated nickname appears in the information exchange between the first electronic device and the first user and the appearance of the designated nickname in the voice communication between the first electronic device and the first user. The frequency of the specified nickname is determined.
- the first electronic device can be based on the frequency of the designated nickname in the information exchange with the first user and the number of the designated nickname in the voice communication. Frequency, more accurate screening of frequently used relatives and contacts.
- the method further includes: the first electronic device sending at least one of the following information of the first electronic device to the server: an address book, a call record with the electronic device of the first user, Location information or network connection information; the first electronic device receives the degree of association between the first electronic device and the first user sent by the server; wherein the degree of association between the first electronic device and the first user is determined by the server according to The following parameters are determined: the frequency of the call between the first electronic device and the first user, the frequency of the first electronic device and the first user in the same geographic location on the legal holiday, and the frequency of the first electronic device and the first user on the legal holiday The frequency at which the second electronic device of the first user is connected to the same network is determined; wherein the frequency of the call between the first electronic device and the first user is determined by the server according to the call record between the first electronic device and the first user, and The frequency of the same geographic location during a legal holiday is determined by the server according to the location information of the first electronic device and the location information of the first user’s
- the frequency of connecting to the same network on the legal holiday is determined by the server according to the first electronic device.
- the location information of an electronic device and the location information of the second electronic device of the first user are determined. In this way, allowing the server to complete the calculation of the degree of association between the first electronic device and the first user can reduce the power consumption of the first electronic device.
- the degree of association between the first electronic device and the first user is determined according to the following formula:
- F is the degree of association between the first electronic device and the first user
- X is the call frequency between the first electronic device and the first user
- Y is the first electronic device and the first user on the legal holiday.
- Z is the frequency at which the first electronic device and the second electronic device of the first user connect to the same network during the legal holiday
- A is the weight corresponding to the call frequency
- B is The weight corresponding to the frequency at the same geographic location during the legal holiday
- C is the weight corresponding to the frequency connecting to the same network during the legal holiday.
- the intimacy between the first electronic device and the first user is determined according to the following formula:
- N is the intimacy between the first electronic device and the first user
- R is the frequency at which the designated nickname appears in the information exchange between the first electronic device and the first user
- S is the first electronic device
- D is the weight corresponding to the frequency with which the designated nickname appears in the information exchange
- E is the weight with the frequency with which the designated nickname appears in the voice communication.
- the present application provides an electronic device.
- the electronic device is a first electronic device and includes: one or more processors, a memory, and a touch screen; the memory, the touch screen, and the one or more
- the processor is coupled, and the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors invoke the computer instructions to make the first electronic device execute: first, receive a first input operation. Then, in response to the first input operation, the contact information of the first user is added to the address book application of the first electronic device. Wherein, the contact information of the first user includes the phone number and name of the first user, and the contact information of the first user is stored in the first position in the address book application.
- the degree of association between the first electronic device and the first user is determined by the following parameters: the frequency of calls between the first electronic device and the first user, and when the first electronic device and the first user are in the same geographic location on legal holidays The frequency of the location and the frequency at which the first electronic device and the electronic device of the first user are connected to the same network during legal holidays.
- the first electronic device screens out the frequently used relative contacts in the address book application (ie, the first user), and displays the names and phone numbers of the frequently used relative contacts in some specific locations, which can facilitate the user to quickly It is convenient for users to find the contact information of frequently used relatives.
- the designated nicknames include grandpa, grandma, father, mother, husband, wife, daughter, son, baby, brother, sister, brother, sister, uncle, aunt, aunt, uncle, aunt, uncle, uncle, uncle Or uncle.
- the designated location includes a favorite interface in the address book application, and/or a shortcut menu displayed around an icon of the address book application in the main interface of the first electronic device, and/or the The frequently used contact interface in the address book application, and/or the first display area of the contact display interface in the address book application. In this way, displaying the name and/or phone number of the first user in the designated location can facilitate the user to quickly search.
- the first electronic device is further configured to execute when the designated location includes the shortcut menu: first, receive a long-press operation or a press operation on the icon of the address book application. Then, in response to the long press operation or the pressing operation, the shortcut menu is displayed around the icon of the address book application.
- the first electronic device can quickly display the name and/or phone number of the first user according to the user's operation (for example, long press, press), so that the user can find the contact information of the first user.
- the first electronic device further performs: receiving a second input operation of the name and/or phone number of the first user displayed in the designated area. In response to the second input operation, the second electronic device of the first user is called. In this way, it is convenient for the user to quickly find the contact information of the frequently used relatives and dial the phone of the first user.
- the first electronic device further performs: receiving a third input operation of the name and/or phone number of the first user displayed in the designated area.
- a third input operation of the name and/or phone number of the first user displayed in the designated area.
- an edit window for the first electronic device to send a short message to the first user in the short message application is opened. In this way, it is convenient for the user to find the contact information of the frequently used relatives and to edit the information to be sent to the first user.
- determining whether the name of the first user in the address book application is a designated nickname includes: determining whether one of the surname or first name of the first user in the address book application is the designated nickname.
- the first electronic device It is also used for execution: firstly, it is judged whether the intimacy of the first user is greater than the third threshold, and if so, the name and/or phone number of the first user are displayed at the designated location. Wherein, the intimacy between the first electronic device and the first user is determined by the frequency at which the designated nickname appears in the information exchange between the first electronic device and the first user and the voice communication between the first electronic device and the first user Determine the frequency of the specified nickname in.
- the first electronic device can be based on the frequency of the designated nickname in the information exchange with the first user and the number of the designated nickname in the voice communication. Frequency, more accurate screening of frequently used relatives and contacts.
- the first electronic device is also used to perform: first, send at least one of the following information of the first electronic device to the server: address book, call records with the first user's electronic device, Location information or network connection information. Then, receiving the degree of association between the first electronic device and the first user sent by the server.
- the degree of association between the first electronic device and the first user is determined by the server according to the following parameters: the frequency of calls between the first electronic device and the first user, and the first electronic device and the first electronic device on the legal holiday. The frequency of the user in the same geographic location and the frequency of connecting the first electronic device and the electronic device of the first user to the same network during the legal holiday are determined.
- the frequency of the call between the first electronic device and the first user is determined by the server according to the call record of the first electronic device and the first user, and the frequency of the call in the same geographic location on the legal holiday is determined by the server according to the The location information of an electronic device and the location information of the second electronic device of the first user are determined.
- the frequency of connecting to the same network on the legal holiday is determined by the server according to the location information of the first electronic device and the second electronic device of the first user.
- the location information of the device is determined. In this way, allowing the server to complete the calculation of the degree of association between the first electronic device and the first user can reduce the power consumption of the first electronic device.
- the degree of association between the first electronic device and the first user is determined according to the following formula:
- F is the degree of association between the first electronic device and the first user
- X is the call frequency between the first electronic device and the first user
- Y is the first electronic device and the first user on the legal holiday.
- Z is the frequency at which the first electronic device and the second electronic device of the first user connect to the same network during the legal holiday
- A is the weight corresponding to the call frequency
- B is The weight corresponding to the frequency at the same geographic location during the legal holiday
- C is the weight corresponding to the frequency connecting to the same network during the legal holiday.
- the intimacy between the first electronic device and the first user is determined according to the following formula:
- N is the intimacy between the first electronic device and the first user
- R is the frequency at which the designated nickname appears in the information exchange between the first electronic device and the first user
- S is the first electronic device
- D is the weight corresponding to the frequency with which the designated nickname appears in the information exchange
- E is the weight with the frequency with which the designated nickname appears in the voice communication.
- an embodiment of the present application provides a computer storage medium, including computer instructions, which when the computer instructions run on an electronic device, cause the electronic device to execute displaying contacts in any one of the possible implementations of the first aspect.
- the embodiments of the present application provide a computer program product, which when the computer program product runs on a computer, causes the computer to execute the method for displaying contacts in any one of the possible implementations of the first aspect.
- FIG. 1 is a schematic structural diagram of an electronic device provided by an embodiment of the application.
- Figure 2 is a schematic diagram of a software architecture provided by an embodiment of the application.
- FIG. 3 is a schematic diagram of the architecture of a communication system provided by an embodiment of the application.
- FIG. 4 is a schematic flowchart of a method for displaying contacts according to an embodiment of the application.
- Figures 5A-5C are schematic diagrams of a set of interfaces provided by an application embodiment
- FIGS. 6A-6C are schematic diagrams of another set of interfaces provided by embodiments of this application.
- FIGS. 7A-7B are schematic diagrams of another set of interfaces provided by an embodiment of this application.
- 8A-8B are schematic diagrams of another set of interfaces provided by an embodiment of this application.
- first and second are only used for descriptive purposes, and cannot be understood as implying or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, the features defined with “first” and “second” may explicitly or implicitly include one or more of these features. In the description of the embodiments of the present application, unless otherwise specified, “multiple” The meaning is two or more.
- FIG. 1 shows a schematic diagram of the structure of an electronic device 100.
- the electronic device 100 shown in FIG. 1 is only an example, and the electronic device 100 may have more or fewer components than those shown in FIG. 1, two or more components may be combined, or Can have different component configurations.
- the various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.
- the electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2.
- Mobile communication module 150 wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display 194, And subscriber identification module (subscriber identification module, SIM) card interface 195 and so on.
- SIM subscriber identification module
- the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light Sensor 180L, bone conduction sensor 180M, etc.
- the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100.
- the electronic device 100 may include more or fewer components than those shown in the figure, or combine certain components, or split certain components, or arrange different components.
- the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
- the processor 110 may include one or more processing units.
- the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait.
- AP application processor
- modem processor modem processor
- GPU graphics processing unit
- image signal processor image signal processor
- ISP image signal processor
- controller memory
- video codec digital signal processor
- DSP digital signal processor
- NPU neural-network processing unit
- the different processing units may be independent devices or integrated in one or more processors.
- the controller may be the nerve center and command center of the electronic device 100.
- the controller can generate operation control signals according to the instruction operation code and timing signals, and complete the control of fetching and executing instructions.
- a memory may also be provided in the processor 110 to store instructions and data.
- the memory in the processor 110 is a cache memory.
- the memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
- the processor 110 may include one or more interfaces.
- the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (PCM) interface, and a universal asynchronous transmitter (universal asynchronous transmitter) interface.
- I2C integrated circuit
- I2S integrated circuit built-in audio
- PCM pulse code modulation
- UART mobile industry processor interface
- MIPI mobile industry processor interface
- GPIO general-purpose input/output
- SIM subscriber identity module
- USB Universal Serial Bus
- the I2C interface is a two-way synchronous serial bus, which includes a serial data line (SDA) and a serial clock line (SCL).
- the processor 110 may include multiple sets of I2C buses.
- the processor 110 may couple the touch sensor 180K, charger, flash, camera 193, etc., through different I2C bus interfaces.
- the processor 110 may couple the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through an I2C bus interface to implement the touch function of the electronic device 100.
- the I2S interface can be used for audio communication.
- the processor 110 may include multiple sets of I2S buses.
- the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170.
- the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
- the PCM interface can also be used for audio communication to sample, quantize and encode analog signals.
- the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
- the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
- the UART interface is a universal serial data bus used for asynchronous communication.
- the bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication.
- the UART interface is generally used to connect the processor 110 and the wireless communication module 160.
- the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function.
- the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a Bluetooth headset.
- the MIPI interface can be used to connect the processor 110 with the display screen 194, the camera 193 and other peripheral devices.
- the MIPI interface includes a camera serial interface (camera serial interface, CSI), a display serial interface (display serial interface, DSI), and so on.
- the processor 110 and the camera 193 communicate through a CSI interface to implement the shooting function of the electronic device 100.
- the processor 110 and the display screen 194 communicate through a DSI interface to realize the display function of the electronic device 100.
- the GPIO interface can be configured through software.
- the GPIO interface can be configured as a control signal or as a data signal.
- the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and so on.
- GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
- the USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
- the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through the headphones. This interface can also be used to connect other electronic devices, such as AR devices.
- the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely illustrative, and does not constitute a structural limitation of the electronic device 100.
- the electronic device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
- the charging management module 140 is used to receive charging input from the charger.
- the charger can be a wireless charger or a wired charger.
- the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
- the charging management module 140 may receive the wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
- the power management module 141 is used for connecting the battery 142, the charging management module 140 and the processor 110.
- the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
- the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
- the power management module 141 may also be provided in the processor 110.
- the power management module 141 and the charging management module 140 may also be provided in the same device.
- the wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
- the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
- Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
- antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
- the antenna can be used in combination with a tuning switch.
- the mobile communication module 150 may provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100.
- the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
- the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
- the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic wave radiation via the antenna 1.
- at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
- at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
- the modem processor may include a modulator and a demodulator.
- the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
- the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
- the low-frequency baseband signal is processed by the baseband processor and then passed to the application processor.
- the application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display 194.
- the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
- the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites.
- WLAN wireless local area networks
- BT wireless fidelity
- GNSS global navigation satellite system
- FM frequency modulation
- NFC near field communication technology
- infrared technology infrared, IR
- the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
- the wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
- the wireless communication module 160 may also receive the signal to be sent from the processor 110, perform frequency modulation, amplify, and convert it into electromagnetic waves to radiate through the antenna 2.
- the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
- the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
- the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
- GPS global positioning system
- GLONASS global navigation satellite system
- BDS Beidou navigation satellite system
- QZSS quasi-zenith satellite system
- SBAS satellite-based augmentation systems
- the electronic device 100 implements a display function through a GPU, a display screen 194, and an application processor.
- the GPU is a microprocessor for image processing, connected to the display 194 and the application processor.
- the GPU is used to perform mathematical and geometric calculations for graphics rendering.
- the processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
- the display screen 194 is used to display images, videos, etc.
- the display screen 194 includes a display panel.
- the display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
- LCD liquid crystal display
- OLED organic light-emitting diode
- active-matrix organic light-emitting diode active-matrix organic light-emitting diode
- AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diode (QLED), etc.
- the electronic device 100 may include one or N display screens 194, and N is a positive integer greater than one.
- the electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
- the ISP is used to process the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transfers the electrical signal to the ISP for processing and is converted into an image visible to the naked eye.
- ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
- the ISP may be provided in the camera 193.
- the camera 193 is used to capture still images or videos.
- the object generates an optical image through the lens and projects it to the photosensitive element.
- the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
- CMOS complementary metal-oxide-semiconductor
- the photosensitive element converts the optical signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital image signal.
- ISP outputs digital image signals to DSP for processing.
- DSP converts digital image signals into standard RGB, YUV and other formats.
- the electronic device 100 may include one or N cameras 193, and N is a positive integer greater than one.
- Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
- Video codecs are used to compress or decompress digital video.
- the electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in a variety of encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
- MPEG moving picture experts group
- NPU is a neural-network (NN) computing processor.
- NN neural-network
- applications such as intelligent cognition of the electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
- the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
- the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
- the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
- the processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121.
- the internal memory 121 may include a storage program area and a storage data area.
- the storage program area can store an operating system, at least one application program (such as a sound playback function, an image playback function, etc.) required by at least one function.
- the data storage area can store data (such as audio data, phone book, etc.) created during the use of the electronic device 100.
- the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.
- UFS universal flash storage
- the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
- the audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
- the audio module 170 can also be used to encode and decode audio signals.
- the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
- the speaker 170A also called a “speaker” is used to convert audio electrical signals into sound signals.
- the electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
- the receiver 170B also called a "handset" is used to convert audio electrical signals into sound signals.
- the electronic device 100 answers a call or voice message, it can receive the voice by bringing the receiver 170B close to the human ear.
- the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electric signals.
- the user can approach the microphone 170C through the mouth to make a sound, and input the sound signal to the microphone 170C.
- the electronic device 100 may be provided with at least one microphone 170C. In some other embodiments, the electronic device 100 may be provided with two microphones 170C, which can implement noise reduction functions in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
- the earphone interface 170D is used to connect wired earphones.
- the earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, and a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
- OMTP open mobile terminal platform
- CTIA cellular telecommunications industry association of the USA, CTIA
- the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
- the pressure sensor 180A may be provided on the display screen 194.
- the capacitive pressure sensor may include at least two parallel plates with conductive materials.
- the electronic device 100 determines the intensity of the pressure according to the change in capacitance.
- the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
- the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
- touch operations that act on the same touch location but have different touch operation strengths may correspond to different operation instructions. For example: when a touch operation whose intensity of the touch operation is less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
- the gyro sensor 180B may be used to determine the movement posture of the electronic device 100.
- the angular velocity of the electronic device 100 around three axes ie, x, y, and z axes
- the gyro sensor 180B can be used for image stabilization.
- the gyroscope sensor 180B detects the shake angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse movement to achieve anti-shake.
- the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
- the air pressure sensor 180C is used to measure air pressure.
- the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
- the magnetic sensor 180D includes a Hall sensor.
- the electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip holster.
- the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D.
- the automatic unlocking of the flip cover is set according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover.
- the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and apply to applications such as horizontal and vertical screen switching, pedometers and so on.
- the electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
- the proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode.
- the light emitting diode may be an infrared light emitting diode.
- the electronic device 100 emits infrared light to the outside through the light emitting diode.
- the electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100.
- the electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
- the proximity light sensor 180G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
- the ambient light sensor 180L is used to sense the brightness of the ambient light.
- the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light.
- the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
- the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touch.
- the fingerprint sensor 180H is used to collect fingerprints.
- the electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, etc.
- the temperature sensor 180J is used to detect temperature.
- the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 executes to reduce the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
- the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature.
- the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
- Touch sensor 180K also called “touch panel”.
- the touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
- the touch sensor 180K is used to detect touch operations acting on or near it.
- the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
- the visual output related to the touch operation can be provided through the display screen 194.
- the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194.
- the bone conduction sensor 180M can acquire vibration signals.
- the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice.
- the bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal.
- the bone conduction sensor 180M may also be provided in the earphone, combined with the bone conduction earphone.
- the audio module 170 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 180M, and realize the voice function.
- the application processor can analyze the heart rate information based on the blood pressure beating signal obtained by the bone conduction sensor 180M, and realize the heart rate detection function.
- the button 190 includes a power button, a volume button, and so on.
- the button 190 may be a mechanical button. It can also be a touch button.
- the electronic device 100 may receive key input, and generate key signal input related to user settings and function control of the electronic device 100.
- the motor 191 can generate vibration prompts.
- the motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback.
- touch operations that act on different applications can correspond to different vibration feedback effects.
- Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects.
- Different application scenarios for example: time reminder, receiving information, alarm clock, game, etc.
- the touch vibration feedback effect can also support customization.
- the indicator 192 can be an indicator light, which can be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
- the SIM card interface 195 is used to connect to the SIM card.
- the SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100.
- the electronic device 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
- the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
- the same SIM card interface 195 can insert multiple cards at the same time. The types of the multiple cards can be the same or different.
- the SIM card interface 195 can also be compatible with different types of SIM cards.
- the SIM card interface 195 may also be compatible with external memory cards.
- the electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
- the electronic device 100 adopts an eSIM, that is, an embedded SIM card.
- the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
- the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
- the embodiment of the present invention takes an Android system with a layered architecture as an example to exemplify the software structure of the electronic device 100.
- FIG. 2 is a software structure block diagram of an electronic device 100 according to an embodiment of the present invention.
- the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers is through software interface.
- the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
- the application layer can include a series of application packages.
- the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
- the application framework layer provides application programming interfaces (application programming interface, API) and programming frameworks for applications in the application layer.
- the application framework layer includes some predefined functions.
- the application framework layer can include a window manager, a content provider, a view system, a phone manager, a resource manager, and a notification manager.
- the window manager is used to manage window programs.
- the window manager can obtain the size of the display, determine whether there is a status bar, lock the screen, take a screenshot, etc.
- the content provider is used to store and retrieve data, and make these data accessible to applications.
- the data may include video, image, audio, phone calls made and received, browsing history and bookmarks, phone book, etc.
- the view system includes visual controls, such as controls that display text and controls that display pictures.
- the view system can be used to build applications.
- the display interface can be composed of one or more views.
- a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
- the phone manager is used to provide the communication function of the electronic device 100. For example, the management of the call status (including connecting, hanging up, etc.).
- the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, etc.
- the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a short stay without user interaction.
- the notification manager is used to notify the download completion, message reminder, etc.
- the notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or a scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window.
- the status bar prompts text messages, sounds prompts, electronic equipment vibrates, and indicator lights flash.
- Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
- the core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of Android.
- the application layer and application framework layer run in a virtual machine.
- the virtual machine executes the java files of the application layer and the application framework layer as binary files.
- the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
- the system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
- surface manager surface manager
- media library Media Libraries
- 3D graphics processing library for example: OpenGL ES
- 2D graphics engine for example: SGL
- the surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
- the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
- the media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
- the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing.
- the 2D graphics engine is a drawing engine for 2D drawing.
- the kernel layer is the layer between hardware and software.
- the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
- the corresponding hardware interrupt is sent to the kernel layer.
- the kernel layer processes touch operations into original input events (including touch coordinates, time stamps of touch operations, etc.).
- the original input events are stored in the kernel layer.
- the application framework layer obtains the original input event from the kernel layer, and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation and the control corresponding to the click operation is the control of the camera application icon as an example, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer.
- the camera 193 captures still images or videos.
- the electronic device can support the user to manually add to the favorites of the address book, that is, the electronic device can receive the user's input operation on the contact options in the address book, and in response to the input operation, the electronic device can contact relatives in the address book People are added to the favorites of the address book. If the user needs to communicate with relatives, he can directly open the favorites and select the relatives in the favorites to communicate. In this way, although it is convenient for the user to quickly find some frequently used relatives, the user is required to collect the contacts one by one in the early stage, and the steps are complicated. Currently, the electronic device can also determine whether it is a frequently-used contact according to the frequency of calls with a contact in the address book.
- the electronic device can display the frequently-used contact on the top. In this way, since the call frequency is used as the judgment basis, the electronic device can only judge whether the contact is a frequently used contact through the communication frequency, and cannot distinguish whether it is a frequently used relative contact.
- the embodiments of the present application provide a method and related device for displaying contacts, which can utilize the frequency of calls between the first electronic device and the contact, and the frequency of the first electronic device and the contact at the same location during legal holidays.
- the frequency with which the second electronic device of the contact is connected to the same network during statutory holidays, and whether the remark name of the contact in the address book application is a designated nickname, etc. comprehensively screen out frequently used relative contacts. After the first electronic device screens out the frequently used relative contacts, the frequently used relative contacts can be displayed at the designated location. In this way, it is convenient for users to quickly find frequently used relatives.
- the following describes a communication system 300 provided by an embodiment of the present application.
- the communication system 300 may include a first electronic device 301, a second electronic device 302, and a server 303. among them,
- the structures of the first electronic device 301 and the second electronic device 302 may be the same as the electronic device 100 shown in FIG. 1 or FIG. 2 above.
- the first electronic device 301 may be the owner's mobile phone
- the second electronic device 302 may be the mobile phone of a contact in the address book of the first electronic device 301.
- the second electronic device The device 302 is not limited to one, and there may be multiple devices.
- the server 303 may be a physical server (physical server) or a cloud server (cloud server).
- the server 303 may receive the address book, call history, location information, and network connection sent by the first electronic device 301 and the second electronic device 302. Information and other data.
- the server 303 can also process and calculate the address book, call history, location information, network connection information and other data sent by the first electronic device 301 and the second electronic device 302.
- FIG. 4 shows a schematic flowchart of a contact display provided in an embodiment of the present application.
- the first user is a user corresponding to the second electronic device.
- the method for displaying contacts provided by the embodiment of the present application may include:
- the first electronic device receives a first input operation.
- the first input operation may be an operation (for example, click) for clicking the contact addition control 524 in FIG. 5B described below.
- the first electronic device adds contact information of the user corresponding to the second electronic device in the address book application.
- the contact information of the user corresponding to the second electronic device includes the phone number and name of the user corresponding to the first electronic device
- the contact information of the user corresponding to the first electronic device is stored in the address book application In the first position.
- the contact display column 528 in the contact interface 520 in FIG. 5B For details, reference may be made to the embodiment shown in FIG. 5B described later, which will not be repeated here.
- S403 The first electronic device sends the address book, call records, location information, and network connection information to the server.
- the first electronic device may periodically send at least one of the following information of the first electronic device to the server: address book, call history, location information, or network connection information. Wherein, the period can be one day, one week, etc., which is not limited here.
- the first electronic device may send the address book, call records, location information, and network connection information to the server in stages. For example, the first electronic device may send the updated address book to the server when the address book is updated. When the call record is updated, the first electronic device may send the updated call record to the server.
- the first electronic device may send the location information of the place where the first electronic device stays for more than a certain time every day to the server.
- the first electronic device may also send network connection information of the wireless network (including Wi-Fi and Bluetooth) that the first electronic device is connected to every day to the server.
- the first electronic device may obtain the location information of the first electronic device through positioning methods such as GPS positioning, Wi-Fi positioning, base station positioning, and the like.
- the address book includes information of one or more contacts, and the information of the one or more contacts includes the name and phone number of the first user.
- the call record of the first electronic device includes the number of calls between the first electronic device and the second electronic device within a period of time (for example, one day, one week, one month, etc.), and the duration of each call.
- the location information of the first electronic device includes location information of locations where the first electronic device stays longer than a certain time during legal holidays (such as Saturdays, Sundays, May Day holidays, November holidays, etc.).
- the network connection information of the first electronic device includes the identification of the network device in the wireless network to which the first electronic device is connected (for example, the MAC address of the router in the Wi-Fi network, or the MAC address of the electronic device connected to Bluetooth, or WLAN direct connection The MAC address of the connected electronic device), and the time when the first electronic device is connected to the wireless network.
- the second electronic device sends the phone number of the second electronic device, the location information of the second electronic device, and the network connection information of the second electronic device to the server.
- the address book of the first electronic device stores the phone number of the second electronic device (for example, "186 XXXX 0124") and the name of the user corresponding to the second electronic device (for example, "wife").
- the second electronic device may periodically (for example, the cycle may be one day, one week, one month, etc.) send the location information of the second electronic device and the network connection information of the second electronic device to the server.
- the network connection information of the second electronic device includes the identification of the network device in the wireless network connected to the second electronic device (for example, the MAC address of the router in the Wi-Fi network, or the MAC address of the electronic device connected to Bluetooth, or the WLAN direct Connect the MAC address of the connected electronic device), and the time when the first electronic device is connected to the wireless network.
- the second electronic device may also obtain the location information of the second electronic device through positioning methods such as GPS positioning, Wi-Fi positioning, and base station positioning.
- the server counts the call frequency of the user corresponding to the first electronic device and the second electronic device, the frequency of legal holidays in the same geographic location, and the frequency of legal holidays connecting to the same network.
- the server may calculate the call frequency of the user corresponding to the first electronic device and the second electronic device based on the call record of the first electronic device and the phone number of the second electronic device.
- the call frequency can be the average number of calls per day, or the number of calls per week, etc., which is not limited here.
- the call frequency of the user corresponding to the first electronic device and the second electronic device may be 0.4 times/day. The examples are only used to explain the application and should not constitute a limitation.
- statutory holidays can include holidays, weekends, etc.
- Statutory holidays can include statutory holidays such as New Year's Day, Spring Festival, Labor Day, and National Day, as well as Saturday and Sunday.
- the server may obtain the location of the first electronic device on the legal holiday from the location information of the first electronic device.
- the server may obtain the location of the second electronic device on the legal holiday from the location information of the second electronic device.
- the server compares the location of the first electronic device on the legal holiday with the location of the second electronic device on the legal holiday, and determines the frequency of the first electronic device and the second electronic device at the same geographic location on the legal holiday.
- the frequency of the legal holiday in the same geographic location may be the average number of times that the legal holiday is in the same geographic location every day.
- the rule for calculating the number of times at the same geographic location may be: on a day of a legal holiday, if the length of time that the first electronic device and the second electronic device are at the same geographic location at the same time exceeds a preset time threshold (for example, 1 Hours, 2 hours, etc.) are counted as one time.
- a preset time threshold for example, 1 Hours, 2 hours, etc.
- the location of the second electronic device during legal holidays that is, the location of the second electronic corresponding user (first user) during the legal holidays.
- the server can determine the frequency at which the first electronic device and the second electronic device are simultaneously connected to the same network during legal holidays based on the network connection information of the first electronic device and the network connection information of the second electronic device.
- the frequency of simultaneous connection to the same network during the legal holiday may be the average number of simultaneous connections to the same network per day during the legal holiday.
- the rule for calculating the number of times connected to the same network may be: in a day of a legal holiday, if both the first electronic device and the second electronic device have been connected to the same network at the same time, it is recorded as one time.
- the foregoing rule for calculating the number of times connected to the same network is only an example for explaining this application, and should not constitute a limitation. In some embodiments, there may be other rules for calculating the number of times.
- the network connection information of the first electronic device may include the MAC address of the Wi-Fi access point (AP) to which the first electronic device is connected, and the second electronic device
- the network connection information may include the MAC address of the Wi-Fi access point to which the second electronic device is connected.
- the server can determine whether the MAC address of the Wi-Fi access point connected to the first electronic device is the same as the MAC address of the Wi-Fi access point connected to the second electronic device. If they are the same, the server determines that the first electronic device and the second electronic device are simultaneously connected to the same network.
- the network connection information of the first electronic device may include the MAC address of the device connected to the first electronic device through Bluetooth technology and the MAC address of the first electronic device, and the network of the second electronic device
- the connection information may include the MAC address of the device to which the first electronic device is connected through Bluetooth technology and the MAC address of the second electronic device.
- the server can determine whether the MAC address of the device connected to the first electronic device through Bluetooth technology is the same as the MAC address of the second electronic device, or the server can determine whether the MAC address of the first electronic device is connected to the second electronic device through Bluetooth technology The MAC address of the device is the same. If so, the server can determine that the first electronic device and the second electronic device are simultaneously connected to the same network.
- the network connection information of the first electronic device may include the MAC address of the device connected by the first electronic device through the WLAN direct connection technology and the MAC address of the first electronic device.
- the network connection information of the second electronic device may include the MAC address of the device connected by the first electronic device through the WLAN direct connection technology and the MAC address of the second electronic device.
- the server can determine whether the MAC address of the device directly connected to the first electronic device via WLAN is the same as the MAC address of the second electronic device, or the server can determine whether the MAC address of the first electronic device is the same as the MAC address of the second electronic device Or the server may determine whether the MAC address of the first electronic device is the same as the MAC address of the device connected to the second electronic device through the WLAN direct connection technology. If so, the server can determine that the first electronic device and the second electronic device are simultaneously connected to the same network.
- the server calculates the degree of association F between the user corresponding to the first electronic device and the user corresponding to the second electronic device according to the frequency of calls, the frequency of legal holidays in a geographic location, and the frequency of legal holidays connecting to the same network.
- the server can set the first weight for the call frequency of the first electronic device and the second electronic device, and set the second weight for the frequency at which the first electronic device and the second electronic device are in the same geographic location on legal holidays, which is the first
- the frequency at which the electronic device and the second electronic device are connected to the same network on legal holidays is set with a third weight.
- the server calculates the degree of association F between the first electronic device and the second electronic device according to the following formula (1):
- F is the degree of relevance between the first electronic device and the second electronic device
- X is the call frequency of the first device and the second electronic device
- Y is the first electronic device and the second electronic device in the same geographic location during legal holidays
- Z is the frequency at which the first electronic device and the second electronic device are connected to the same network on legal holidays
- A is the first weight
- B is the second weight
- C is the third weight.
- Judgment factor value (times/day) Judgment factor weight Call frequency 2 0.5 Frequency of statutory holidays in the same geographic location 2 0.3 The frequency of connecting to the same network on statutory holidays 3 0.2
- the call frequency X between the first electronic device and the second electronic device is 2 (times/day), and the first weight A is 0.5.
- the first electronic device and the second electronic device are The frequency Y of the same geographic location is 2 (times/day), and the second weight B is 0.3.
- the frequency Z of the first electronic device and the second electronic device connecting to the same network on legal holidays is 3 (times/day),
- the three weight C is 0.2.
- the server sends the correlation degree F between the user corresponding to the first electronic device and the user corresponding to the second electronic device to the first electronic device.
- the first electronic device determines that the name of the user corresponding to the second electronic device in the address book is a designated nickname. If yes, the first electronic device executes step S409; if not, the first electronic device executes step S410.
- the first electronic device may, after receiving the degree of association F between the user corresponding to the first electronic device and the user corresponding to the second electronic device sent by the server, determine that the address book of the first electronic device corresponds to the user corresponding to the second electronic device Whether to remark as the nickname of relatives.
- the first electronic device may also determine the user corresponding to the second electronic device in the address book (ie, the first user) before receiving the correlation degree F between the user corresponding to the first electronic device and the user corresponding to the second electronic device sent by the server. Is the name of the designated nickname.
- the designated nickname can include words containing grandpa, grandma, father, mother, husband, wife, daughter, son, baby, brother, sister, younger brother, sister, uncle, aunt, aunt, uncle, aunt, aunt, uncle, or aunt The title.
- the examples are only used to explain the application and should not constitute a limitation.
- the first electronic device may determine whether one of the surname or first name of the first user in the address book application is the above-mentioned designated nickname, if so, the first electronic device executes step S409; if not, the first electronic device The device executes step S410.
- the first electronic device determines whether the degree of association F between the users corresponding to the first electronic device and the second electronic device is greater than a first threshold. If yes, the first electronic device executes step S414.
- the first electronic device can determine the relationship between the corresponding users of the first electronic device and the second electronic device Whether the correlation degree F of is greater than the first threshold. If so, the first electronic device displays the name and/or phone number of the user corresponding to the second electronic device at the designated location.
- the first threshold may be 1, 1.5, 2, 3, etc. or greater, which is not limited here.
- the correlation degree F between the user corresponding to the first electronic device and the user corresponding to the second electronic device is 2.2
- the first threshold value is 2
- the examples are only used to explain the application and should not constitute a limitation.
- the first electronic device determines whether the degree of association F between the corresponding users of the first electronic device and the second electronic device is greater than a second threshold. If yes, the first electronic device executes step S411.
- the first electronic device can determine that the user corresponding to the first electronic device corresponds to the user corresponding to the second electronic device Whether the degree of association F between users is greater than the second threshold. If so, the first electronic device counts the frequency of the designated nickname in the information exchange with the second electronic device and the frequency of the designated nickname in the voice communication.
- the second threshold value may be different from the above-mentioned first threshold value or the same, and the second threshold value may be 1, 1.5, 2, 3, etc. or greater, which is not limited here.
- the degree of association F between the first electronic device and the second electronic device is 2.2
- the second threshold value is 2.1
- the degree of association F (2.2) between the first electronic device and the second electronic device is greater than the second threshold (2.1) )
- the first electronic device executes step S411.
- the first electronic device counts the frequency of the designated nickname in the information exchange between the first electronic device and the user corresponding to the second electronic device and the frequency of the designated nickname in the voice communication.
- information exchange includes text messaging, WeChat text messaging, and QQ text messaging.
- Voice communication includes telephone voice communication, WeChat voice message communication, WeChat voice call communication, QQ voice message communication, QQ voice call communication, etc.
- the account of the third-party communication application software such as WeChat or QQ corresponding to the user of the second electronic device is bound to the phone number of the second electronic device.
- the first electronic device can use the phone number of the second electronic device to obtain information exchange records between the first electronic device and the user corresponding to the second electronic device (ie, the first user) from the third-party communication application software.
- the first electronic device may calculate the frequency of the words of the designated nickname from text information such as short messages, WeChat text messages, QQ text messages, etc. exchanged between the user corresponding to the first electronic device and the user corresponding to the second electronic device.
- the frequency of the designated nickname in the information exchange may be the average number of times the designated nickname appears in the text information exchanged between the first electronic device and the user corresponding to the second electronic device every day.
- the frequency of the designated nickname in the information exchange between the user corresponding to the first electronic device and the user corresponding to the second electronic device may be 6 times per day.
- the first electronic device can count the voice information of the designated nickname from voice information such as telephone calls, WeChat voice messages, WeChat voice calls, QQ voice messages, QQ voice calls, etc. of the voice communication between the user corresponding to the first electronic device and the user corresponding to the second electronic device. How often the word appears.
- the frequency of the designated nickname in the information exchange may be the average number of times the designated nickname appears in the voice information exchanged between the user corresponding to the first electronic device and the user corresponding to the second electronic device per day.
- the frequency of the designated nickname in the voice communication between the user corresponding to the first electronic device and the user corresponding to the second electronic device may be 3 times/day.
- the first electronic device calculates the intimacy N of the user corresponding to the first electronic device and the second electronic device according to the frequency of the designated nickname in the information exchange and the frequency of the designated nickname in the voice communication.
- the first electronic device may set a fourth weight for the frequency of the designated nickname in the information exchange, and set the fifth weight for the frequency of the designated nickname in the voice communication.
- the first electronic device calculates the intimacy N between the first electronic device and the second electronic device according to the following formula (2):
- N is the intimacy between the user corresponding to the first electronic device and the user corresponding to the second electronic device
- R is the frequency of the designated nickname in the information exchange between the user corresponding to the first electronic device and the user corresponding to the second electronic device
- S is the first The frequency of the designated nickname used in the voice communication between one electronic device and the second electronic device
- D is the fourth weight
- E is the fifth weight.
- Judgment factor value (times/day) Judgment factor weight Frequency of designated nicknames in information exchange 6 0.6 Frequency of using designated nicknames in voice communication 3 0.4
- the frequency R of the designated nickname in the information exchange between the user corresponding to the first electronic device and the user corresponding to the second electronic device is 6 (times/day)
- the fourth weight D is 0.6
- the first electronic device The frequency S of using the designated nickname in the voice communication between the user corresponding to the device and the user corresponding to the second electronic device is 3 (times/day)
- the fifth weight E is 0.4.
- the first electronic device determines whether the intimacy N between the corresponding users of the first electronic device and the second electronic device is greater than a third threshold. If yes, the first electronic device executes step S414.
- the third threshold may be 1, 2, 3, etc. or greater, which is not limited here.
- the intimacy N between the user corresponding to the first electronic device and the user corresponding to the second electronic device is 4.8
- the third threshold is 4, then the intimacy between the user corresponding to the first electronic device and the user corresponding to the second electronic device is
- the degree N (which is 4.8) is greater than the third threshold (which is 4)
- the first electronic device may execute step S414.
- the examples are only used to explain the application and should not constitute a limitation.
- the first electronic device displays the name and/or phone number of the user corresponding to the second electronic device at the designated location.
- the designated location includes the favorite interface in the address book application (for example, the favorite interface 530 shown in FIG. 5C), and/or the shortcut menu displayed around the address book application icon in the main interface of the first electronic device (for example, the frequently used contact menu 820 of relatives shown in FIG. 8B), and/or the frequently used contact interface in the address book application (for example, the frequently used contact interface 650 shown in FIG. 6C), and/or the communication
- the first display area of the contact display interface in the recording application for example, the display area 620 of relatives' frequent contacts shown in FIG. 6A).
- the first electronic device may receive an input operation, and in response to the input operation, the first electronic device may display a collection interface 530 of the address book as shown in FIG. 5C.
- a main interface 510 is displayed on the touch screen of the first electronic device.
- the main interface displays a page with application icons
- the application icon page includes multiple application icons (for example, weather Application icon, stock application icon, calculator application icon, setting application icon, mail application icon, Alipay application icon, Facebook application icon, browser application icon, gallery application icon, music application icon, video application icon, application store icon) .
- application icons for example, weather Application icon, stock application icon, calculator application icon, setting application icon, mail application icon, Alipay application icon, Facebook application icon, browser application icon, gallery application icon, music application icon, video application icon, application store icon
- page indicators below the multiple application icons to indicate the positional relationship between the currently displayed page and other pages.
- There are multiple tray icons below the page indicators for example, dial-up application icon, contact application icon, information application icon, Camera application icon), the tray icon remains displayed when switching.
- the first electronic device may receive an input operation 512 (for example, click) of the user on the contact application icon 511, and in response to the input operation 512, the first electronic device may display a contact interface 520 as shown in FIG. 5B on the touch screen. .
- an input operation 512 for example, click
- the first electronic device may display a contact interface 520 as shown in FIG. 5B on the touch screen.
- the touch screen of the first electronic device displays a contact interface 520, and a dial control 521, a contact control 522, and a favorite control 523 are displayed below the contact interface 520.
- the contact interface 520 displays a contact adding control 524, a group display column 525, a contact card holder display column 526, a my business card display column 527, and one or more contact display columns 528.
- the dial control 521 can be used to receive a user's input operation (for example, a single click), so that the dial interface can be displayed on the touch screen of the first electronic device.
- the contact control 522 can be used to receive an input operation (for example, a single click) of the user, so that the contact interface 520 can be displayed on the touch screen of the first electronic device.
- the favorite control 523 can be used to receive a user's input operation (for example, a single click), so that the contact favorite interface can be displayed on the touch screen of the first electronic device.
- the contact adding control 524 may be used to receive an input operation (for example, a single click) from the user to add a new contact.
- the name of the contact is displayed in the contact display column 528, and the name and phone number of the contact can also be displayed.
- the multiple contact information display columns can be arranged from top to bottom in the order from "A" to "Z” according to the first letter or pinyin of the first letter of the contact's name.
- the contact display column whose first character is a symbol in a contact’s name can be arranged before the contact display column whose initial letter or pinyin’s initial letter is "A”, or it can be arranged in the first letter or pinyin’s initial letter as After the "Z" contact is displayed, there is no limitation here.
- the first electronic device may receive an input operation 529 (for example, clicking) of the user on the favorite control 523, and in response to the input operation 529, the first electronic device may display a favorite interface 530 as shown in FIG. 5C on the touch screen.
- an input operation 529 for example, clicking
- the first electronic device may display a favorite interface 530 as shown in FIG. 5C on the touch screen.
- the favorite interface 530 may include one or more favorite contact display columns 531, a display area 540 for frequently used contacts of relatives, and a favorite contact add control 534.
- the add favorite contact control 534 can be used to receive the user's input to add a contact to be displayed in the favorite interface 530.
- the display area 540 for frequently used contacts of relatives displays one or more display columns 541 for frequently used contacts of relatives.
- the display column 541 for frequently used contacts of relatives displays the names of frequently used contacts of relatives (for example, wife, daughter, mother, dad, etc.), and the telephone numbers of frequently used contacts of relatives.
- the name of the remarks of the one or more frequent contacts of relatives includes the name of the remarks of the user associated with the second electronic device.
- the name of the user remarks associated with the second electronic device may be "wife", and the phone number associated with the second electronic device may be "186 XXXX 0124".
- the examples are only used to explain the application and should not constitute a limitation.
- the first interface may be the contact interface 610 of the address book as shown in FIG. 6A, and the designated position of the first interface may be the display area 620 of the relative contact frequently used in the contact interface 610.
- the first electronic device may receive the user's input operation (for example, click) on the contact application icon 511 in FIG. 5A, and in response to the input operation (for example, click), the first electronic device may display the contact as shown in FIG. 6A Interface 610.
- the user's input operation for example, click
- the input operation for example, click
- the contact interface 610 displays a dial control 611, a contact control 612, a favorite control 613, a contact adding control 614, a group display bar 615, a business card holder display bar 616, and my A business card display column 617, one or more contact display columns 618, and a relative frequent contact display area 620.
- the display area 620 for frequently used contacts of relatives displays the names of one or more frequently used contacts of relatives (for example, wife, daughter, mom, dad, etc.), and the phone numbers of frequently used contacts of relatives.
- the name of the remarks of the one or more frequent contacts of relatives includes the name of the remarks of the user associated with the second electronic device.
- the name of the user remarks associated with the second electronic device may be a wife, and the phone number associated with the second electronic device may be "186 XXXX 0124".
- the first interface may be the frequently used contact interface 650 of the address book as shown in FIG. 6C, and the designated position of the first interface may be the frequently used contact of relatives in the frequently used contact interface 650 as shown in FIG. 6C.
- People display area 660 may be the frequently used contact interface 650 of the address book as shown in FIG. 6C, and the designated position of the first interface may be the frequently used contact of relatives in the frequently used contact interface 650 as shown in FIG. 6C.
- the first electronic device may receive an input operation (for example, click) of the user on the contact application icon 511 in FIG. 5A, and in response to the input operation (for example, click), the first electronic device may display a display as shown in FIG. 6B.
- Show contact interface 630 wherein, as shown in FIG. 6B, the touch screen of the first electronic device also displays a dial control 631, a contact control 632, a favorite control 633, and a frequently used contact control 634 below the contact interface 630.
- the contact interface 630 is associated with the contact control 632. When the contact interface 630 is displayed on the touch screen of the first electronic device, the contact control 632 is enabled.
- the contact interface 630 includes a group display column 635, a name card holder display column 636, a my business card display column 637, and one or more contact display columns 638.
- the first electronic device may receive an input operation 640 (for example, a click) of the user on the common contact control 634, and in response to the input operation 640, the first electronic device may display a common contact interface 650 as shown in FIG. 6C.
- the frequently used contact interface 650 includes a display area 660 for frequently used contacts of relatives.
- the display area 620 for frequently used contacts of relatives displays the names of one or more frequently used contacts of relatives (for example, wife, daughter, mom, dad, etc.), and the phone numbers of frequently used contacts of relatives.
- the name of the remarks of the one or more frequent contacts of relatives includes the name of the remarks of the user associated with the second electronic device.
- the name of the user remarks associated with the second electronic device may be a wife, and the phone number associated with the second electronic device may be "186 XXXX 0124".
- the first electronic device may also quickly display the favorite interface 530 as shown in FIG. 5C or the frequently used contact interface as shown in FIG. 6C through the process steps shown in FIG. 7A and FIG. 7B 650.
- the first electronic device displays the main interface 510 through the touch screen.
- the first electronic device may receive an input operation 712 (for example, a long press) of the user on the contact application icon 511, and in response to the input operation 712, the first electronic device may display a contact shortcut menu 720 as shown in FIG. 7B.
- the shortcut menu 720 includes frequently-used contact options 721 and other options (for example, my business card option, business card scanning option, new contact option, etc.).
- the first electronic device may receive an input operation 722 (for example, click) of the user for the frequently-used contact option 721.
- the first electronic device may display a favorite interface 530 as shown in FIG. 5C or as shown in FIG. 6C.
- the frequently used contact interface 650 shown.
- the first interface may be the main interface 810 as shown in FIG. 8B, and the designated position of the first interface may be the menu 820 of relatives frequently used contacts as shown in FIG. 8B.
- the first electronic device displays a main interface 810.
- the main interface 810 is the same as the main interface 510 shown in FIG. 5A. Therefore, the text description part of the main interface 510 described above is also applicable.
- the specific content can refer to the embodiment shown in FIG. 5A, which will not be repeated here.
- the first electronic device may receive an input operation 812 (for example, a long press) of the user on the contact application icon 811 in the main interface 810, and in response to the input operation 812, the first electronic device may display the frequently used contacts of relatives as shown in FIG. 8B People menu 820.
- an input operation 812 for example, a long press
- the first electronic device may determine whether the pressing duration of the input operation 812 is greater than a first time threshold, and if so, the first electronic device The device may display a menu 820 of frequently used contacts of relatives as shown in FIG. 8B.
- the first electronic device can determine whether the pressing pressure of the input operation 812 is greater than the first pressure threshold, and if so, then The first electronic device may display a menu 820 of frequent contacts of relatives as shown in FIG. 8B.
- the menu 820 of frequent contacts of relatives may include one or more options 821 of frequent contacts of relatives.
- the one or more frequent contact options for relatives 821 displays the names of the frequently used contacts of the relatives (such as wife, daughter, mom, dad, etc.).
- the name of the frequently used contacts of each relative is associated with a phone number.
- the name of the remarks of the one or more frequent contacts of relatives includes the name of the remarks of the user associated with the second electronic device.
- the name of the user remark associated with the second electronic device may be "wife".
- the first electronic device When the first electronic device receives the user's input operation (for example, click) on the option 821 (for example, the "wife" option) of the relatives frequently used contacts, in response to the input operation (for example, click) of the option 821 for the relatives frequently used contacts, the first electronic device The device can make a call or send a message to the electronic device (for example, the second electronic device) corresponding to the relative frequent contact option 821.
- the user's input operation for example, click
- the option 821 for example, the "wife” option
- the first electronic device can make a call or send a message to the electronic device (for example, the second electronic device) corresponding to the relative frequent contact option 821.
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Telephone Function (AREA)
Abstract
Disclosed by the present application is a contact displaying method, comprising: a first electronic device first receives a first input operation; then, in response to the first input operation, contact information of a first user is added to an address book application; next, it is determined whether the name of the first user in the address book application is a designated nickname; if so, and an association degree between the first electronic device and the first user is greater than a first threshold, the name and/or a telephone number of the first user is displayed in a designated location, and the designated location is different from a first location, wherein the association degree between the first electronic device and the first user is determined by the following parameters: call frequency between the first electronic device and the first user, the frequency of the first electronic device and the first user in the same geographical location during legal holidays, and the frequency of the first electronic device and a second electronic device of the first user connecting to the same network during legal holidays. Hence, users can quickly find frequently used family contacts.
Description
本申请要求在2019年1月24日提交中国国家知识产权局、申请号为201910067480.6、发明名称为“一种显示联系人的方法及相关装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the State Intellectual Property Office of China, the application number is 201910067480.6, and the invention title is "a method and related device for displaying contacts" on January 24, 2019, the entire content of which is by reference Incorporated in this application.
本申请涉及通信技术领域,尤其涉及一种显示联系人的方法及相关装置。This application relates to the field of communication technology, and in particular to a method and related device for displaying contacts.
随着通信技术的进步,手机已经成为人们生活中不可或缺的工具。当用户需要使用手机给亲人打电话时,会遇到如下几个问题:1、如果手机中存储的联系人就是亲人的昵称。比如妈、老公,因为昵称拼音的首字母排在居中的位置,所以每次搜寻的时候需要通过字母索引或滑动屏幕一会儿或者需要用户操作好几个步骤才能寻找到目标号码。2、部分用户出于隐私安全考虑,会直接用亲人的姓名保存为联系人,这样,也同样存在寻找亲人号码时步骤繁琐的问题。With the advancement of communication technology, mobile phones have become an indispensable tool in people's lives. When a user needs to use a mobile phone to call a relative, he will encounter the following problems: 1. If the contact stored in the mobile phone is the nickname of the relative. For example, mom and husband, because the first letter of the pinyin of the nickname is in the center position, each time you search, you need to search through the alphabet or swipe the screen for a while or you need to operate several steps to find the target number. 2. For privacy and security considerations, some users will directly save their relatives' names as contacts. In this way, there is also the problem of cumbersome steps when looking for relatives' numbers.
发明内容Summary of the invention
本申请提供了一种显示联系人的方法及相关装置,可以让用户快速地查找到常用的亲属联系人。This application provides a method and related device for displaying contacts, which allows users to quickly find frequently used relatives.
第一方面,本申请提供了一种显示联系人的方法,包括:首先,第一电子设备接收第一输入操作。然后,响应于该第一输入操作,该第一电子设备在该第一电子设备的通讯录应用中添加第一用户的联系人信息。其中,该第一用户的联系人信息包括该第一用户的电话号码和姓名,该第一用户的联系人信息被保存在该通讯录应用中的第一位置。接着,该第一电子设备判断该通讯录应用中该第一用户的姓名是否为指定昵称,若是,且该第一电子设备与该第一用户的关联度大于第一阈值,将该第一用户的姓名和/或电话号码显示在指定位置,该指定位置不同于该第一位置。其中,该第一电子设备与该第一用户的关联度由以下参数确定:该第一电子设备与该第一用户的通话频率、法定节假日时该第一电子设备与该第一用户在同一地理位置的频率和法定节假日时该第一电子设备与该第一用户的第二电子设备连接同一网络的频率。In a first aspect, the present application provides a method for displaying contacts, including: first, a first electronic device receives a first input operation. Then, in response to the first input operation, the first electronic device adds the contact information of the first user in the address book application of the first electronic device. Wherein, the contact information of the first user includes the phone number and name of the first user, and the contact information of the first user is stored in the first position in the address book application. Then, the first electronic device determines whether the name of the first user in the address book application is a designated nickname, and if so, and the degree of association between the first electronic device and the first user is greater than a first threshold, the first user The name and/or phone number of is displayed in a designated location, which is different from the first location. Wherein, the degree of association between the first electronic device and the first user is determined by the following parameters: the frequency of calls between the first electronic device and the first user, and when the first electronic device and the first user are in the same geographic location on legal holidays The frequency of the location and the frequency of connecting the first electronic device and the second electronic device of the first user to the same network during legal holidays.
本申请中,第一电子设备筛选出通讯录应用中常用的亲属联系人(即第一用户),并将该常用的亲属联系人的姓名和电话号码显示在一些特定的位置,可以方便用户快速找到常用的亲属联系人的联系人信息,为用户提供了方便。In this application, the first electronic device screens out the frequently used relative contacts in the address book application (ie, the first user), and displays the names and phone numbers of the frequently used relative contacts in some specific locations, which can facilitate the user to quickly It is convenient for users to find the contact information of frequently used relatives.
在一种可能的实现方式中,该指定昵称包括爷爷、奶奶、爸、妈、老公、老婆、女儿、儿子、宝贝、哥、姐、弟、妹、叔、姨、姑、舅、婶、舅妈、伯父或伯母。In one possible implementation, the designated nicknames include grandpa, grandma, dad, mom, husband, wife, daughter, son, baby, brother, sister, brother, sister, uncle, aunt, aunt, uncle, aunt, aunt , Uncle or aunt.
在一种可能的实现方式中,该指定位置包括该通讯录应用中的收藏界面,和/或该第一电子设备的主界面中通讯录应用图标的周围显示的快捷菜单,和/或该该通讯录应用中的常用联系人界面,和/或该通讯录应用中联系人显示界面的第一显示区域。这样,将第一用户的姓名和/或电话号码显示指定位置,可以方便用户快速查找。In a possible implementation, the designated location includes a favorite interface in the address book application, and/or a shortcut menu displayed around an icon of the address book application in the main interface of the first electronic device, and/or the The frequently used contact interface in the address book application, and/or the first display area of the contact display interface in the address book application. In this way, displaying the name and/or phone number of the first user in the designated location can facilitate the user to quickly search.
在一种可能的实现方式中,当该指定位置包括该快捷菜单时,该方法还包括:该第一电子设备接收针对该通讯录应用图标的长按操作或按压操作。响应于该长按操作或该按压操作,该第一电子设备在该通讯录应用图标的周围显示该快捷菜单。这样,第一电子设备可以根据用户的操作(例如长按、按压),快捷的显示出第一用户的姓名和/或电话号码,方便用户查找到第一用户的联系方式。In a possible implementation manner, when the designated location includes the shortcut menu, the method further includes: the first electronic device receives a long press operation or a pressing operation on the address book application icon. In response to the long press operation or the pressing operation, the first electronic device displays the shortcut menu around the address book application icon. In this way, the first electronic device can quickly display the name and/or phone number of the first user according to the user's operation (for example, long press, press), so that the user can find the contact information of the first user.
在一种可能的实现方式中,该方法还包括:第一电子设备接收针对该指定区域显示的该第一用户的姓名和/或电话号码的第二输入操作。响应于该第二输入操作,第一电子设备呼叫第一用户的第二电子设备。这样,可以方便用户快速找到常用的亲属联系人的联系信息,并拨打第一用户的电话。In a possible implementation manner, the method further includes: the first electronic device receives a second input operation for the name and/or phone number of the first user displayed in the designated area. In response to the second input operation, the first electronic device calls the second electronic device of the first user. In this way, it is convenient for the user to quickly find the contact information of the frequently used relatives and dial the phone of the first user.
在一种可能的实现方式中,该方法还包括:第一电子设备接收针对该指定区域显示的该第一用户的姓名和/或电话号码的第三输入操作。响应于该第三输入操作,第一电子设备打开短信应用中第一电子设备向第一用户发送短信的编辑窗口。这样,可以方便用户找到常用的亲属联系人的联系信息,并编辑向第一用户待发送的信息。In a possible implementation manner, the method further includes: the first electronic device receives a third input operation for the name and/or phone number of the first user displayed in the designated area. In response to the third input operation, the first electronic device opens an editing window in the short message application where the first electronic device sends a short message to the first user. In this way, it is convenient for the user to find the contact information of the frequently used relatives and to edit the information to be sent to the first user.
在一种可能的实现方式中,该第一电子设备判断该通讯录应用中该第一用户的姓名是否为指定昵称,包括:该第一电子设备判断该通讯录应用中该第一用户的姓氏或者名字中的一个是否为该指定昵称。In a possible implementation, the first electronic device judging whether the name of the first user in the address book application is a designated nickname includes: the first electronic device judging the last name of the first user in the address book application Or whether one of the names is the designated nickname.
在一种可能的实现方式中,若该通讯录应用中该第一用户的姓名与该指定昵称不同,且该第一电子设备与该第一用户的关联度大于第二阈值时,该方法还包括:该第一电子设备判断该第一用户的亲密度是否大于第三阈值,若是,则该第一电子设备将该第一用户的姓名和/或电话号码显示在该指定位置;其中,该第一电子设备与该第一用户的亲密度由该第一电子设备与该第一用户的信息交流中出现该指定昵称的频率和该第一电子设备与该第一用户的语音交流中出现该指定昵称的频率确定。这样,当第一电子设备的通讯录应用中对第一用户备注的姓名不是指定昵称时,第一电子设备可以根据与第一用户的信息交流中出现指定昵称的频率和语音交流中指定昵称的频率,更加准确的筛选出了常用的亲属联系人。In a possible implementation, if the name of the first user in the address book application is different from the designated nickname, and the degree of association between the first electronic device and the first user is greater than a second threshold, the method further The method includes: the first electronic device determines whether the intimacy of the first user is greater than a third threshold, and if so, the first electronic device displays the name and/or phone number of the first user in the designated location; wherein, the The degree of intimacy between the first electronic device and the first user is determined by the frequency with which the designated nickname appears in the information exchange between the first electronic device and the first user and the appearance of the designated nickname in the voice communication between the first electronic device and the first user. The frequency of the specified nickname is determined. In this way, when the name noted to the first user in the address book application of the first electronic device is not a designated nickname, the first electronic device can be based on the frequency of the designated nickname in the information exchange with the first user and the number of the designated nickname in the voice communication. Frequency, more accurate screening of frequently used relatives and contacts.
在一种可能的实现方式中,该方法还包括:该第一电子设备向服务器发送该第一电子设备的以下信息中的至少一个:通讯录、与该第一用户的电子设备的通话记录、位置信息或网络连接信息;该第一电子设备接收该服务器发送的该第一电子设备与该第一用户的关联度;其中,该第一电子设备与该第一用户的关联度由该服务器根据以下参数确定:该第一电子设备与该第一用户的通话频率和该法定节假日时该第一电子设备与该第一用户在同一地理位置的频率和该法定节假日时该第一电子设备与该第一用户的第二电子设备连接同一网络的频率确定;其中,该第一电子设备与该第一用户的通话频率由该服务器根据该第一电子设备与该第一用户的通话记录确定,该法定节假日时在同一地理位置的频率由该服务器根据该第一电子设备的位置信息和该第一用户的第二电子设备的位置信息确定,该法定节假日连接同一网络的频率由该服务器根据该第一电子设备的位置信息和该第一用户的第二电子设备的位置信息确定。这样,让服务器完成计算第一电子设备与第一用户的关联度,可以降低第一电子设备的功耗。In a possible implementation, the method further includes: the first electronic device sending at least one of the following information of the first electronic device to the server: an address book, a call record with the electronic device of the first user, Location information or network connection information; the first electronic device receives the degree of association between the first electronic device and the first user sent by the server; wherein the degree of association between the first electronic device and the first user is determined by the server according to The following parameters are determined: the frequency of the call between the first electronic device and the first user, the frequency of the first electronic device and the first user in the same geographic location on the legal holiday, and the frequency of the first electronic device and the first user on the legal holiday The frequency at which the second electronic device of the first user is connected to the same network is determined; wherein the frequency of the call between the first electronic device and the first user is determined by the server according to the call record between the first electronic device and the first user, and The frequency of the same geographic location during a legal holiday is determined by the server according to the location information of the first electronic device and the location information of the first user’s second electronic device. The frequency of connecting to the same network on the legal holiday is determined by the server according to the first electronic device. The location information of an electronic device and the location information of the second electronic device of the first user are determined. In this way, allowing the server to complete the calculation of the degree of association between the first electronic device and the first user can reduce the power consumption of the first electronic device.
在一种可能的实现方式中,该第一电子设备与该第一用户的关联度根据以下公式确定:In a possible implementation manner, the degree of association between the first electronic device and the first user is determined according to the following formula:
F=X×A+Y×B+Z×CF=X×A+Y×B+Z×C
其中,F为该第一电子设备与该第一用户之间的关联度,X为该第一电子设备和该第一用户的通话频率,Y为该法定节假日时该第一电子设备和该第一用户在同一个地理位置的频 率,Z为该法定节假日时该第一电子设备和该第一用户的第二电子设备连接同一个网络的频率,A为该通话频率对应的权值,B为该法定节假日时处于同一个地理位置的频率对应的权值,C为该法定节假日时连接同一个网络的频率对应的权值。Where F is the degree of association between the first electronic device and the first user, X is the call frequency between the first electronic device and the first user, and Y is the first electronic device and the first user on the legal holiday. The frequency of a user in the same geographic location, Z is the frequency at which the first electronic device and the second electronic device of the first user connect to the same network during the legal holiday, A is the weight corresponding to the call frequency, and B is The weight corresponding to the frequency at the same geographic location during the legal holiday, and C is the weight corresponding to the frequency connecting to the same network during the legal holiday.
在一种可能的实现方式中,该第一电子设备与该第一用户的亲密度根据以下公式确定:In a possible implementation manner, the intimacy between the first electronic device and the first user is determined according to the following formula:
N=R×D+S×EN=R×D+S×E
其中,N为该第一电子设备与该第一用户之间的亲密度,R为该第一电子设备与该第一用户的信息交流中出现该指定昵称的频率,S为该第一电子设备与该第一用户的语音交流中出现该指定昵称的频率,D为该信息交流中出现该指定昵称的频率对应的权值,E为该语音交流中出现该指定昵称的频率对应的权值。Where N is the intimacy between the first electronic device and the first user, R is the frequency at which the designated nickname appears in the information exchange between the first electronic device and the first user, and S is the first electronic device The frequency with which the designated nickname appears in the voice communication with the first user, D is the weight corresponding to the frequency with which the designated nickname appears in the information exchange, and E is the weight with the frequency with which the designated nickname appears in the voice communication.
第二方面,本申请提供了一种电子设备,该电子设备为第一电子设备,包括:一个或多个处理器、存储器、触控屏;该存储器、该触控屏与该一个或多个处理器耦合,该存储器用于存储计算机程序代码,该计算机程序代码包括计算机指令,该一个或多个处理器调用该计算机指令以使得该第一电子设备执行:首先,接收第一输入操作。然后,响应于该第一输入操作,在该第一电子设备的通讯录应用中添加第一用户的联系人信息。其中,该第一用户的联系人信息包括该第一用户的电话号码和姓名,该第一用户的联系人信息被保存在该通讯录应用中的第一位置。接着,判断该通讯录应用中该第一用户的姓名是否为指定昵称,若是,且该第一电子设备与该第一用户的关联度大于第一阈值,将该第一用户的姓名和/或电话号码显示在指定位置,该指定位置不同于该第一位置。其中,该第一电子设备与该第一用户的关联度由以下参数确定:该第一电子设备与该第一用户的通话频率、法定节假日时该第一电子设备与该第一用户在同一地理位置的频率和法定节假日时该第一电子设备与该第一用户的电子设备连接同一网络的频率。In a second aspect, the present application provides an electronic device. The electronic device is a first electronic device and includes: one or more processors, a memory, and a touch screen; the memory, the touch screen, and the one or more The processor is coupled, and the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors invoke the computer instructions to make the first electronic device execute: first, receive a first input operation. Then, in response to the first input operation, the contact information of the first user is added to the address book application of the first electronic device. Wherein, the contact information of the first user includes the phone number and name of the first user, and the contact information of the first user is stored in the first position in the address book application. Then, it is determined whether the name of the first user in the address book application is a designated nickname, and if so, and the degree of association between the first electronic device and the first user is greater than a first threshold, the name and/or name of the first user The phone number is displayed at the designated location, which is different from the first location. Wherein, the degree of association between the first electronic device and the first user is determined by the following parameters: the frequency of calls between the first electronic device and the first user, and when the first electronic device and the first user are in the same geographic location on legal holidays The frequency of the location and the frequency at which the first electronic device and the electronic device of the first user are connected to the same network during legal holidays.
本申请中,第一电子设备筛选出通讯录应用中常用的亲属联系人(即第一用户),并将该常用的亲属联系人的姓名和电话号码显示在一些特定的位置,可以方便用户快速找到常用的亲属联系人的联系人信息,为用户提供了方便。In this application, the first electronic device screens out the frequently used relative contacts in the address book application (ie, the first user), and displays the names and phone numbers of the frequently used relative contacts in some specific locations, which can facilitate the user to quickly It is convenient for users to find the contact information of frequently used relatives.
在一种实现方式中,该指定昵称包括爷爷、奶奶、爸、妈、老公、老婆、女儿、儿子、宝贝、哥、姐、弟、妹、叔、姨、姑、舅、婶、舅妈、伯父或伯母。In one implementation, the designated nicknames include grandpa, grandma, father, mother, husband, wife, daughter, son, baby, brother, sister, brother, sister, uncle, aunt, aunt, uncle, aunt, aunt, uncle Or aunt.
在一种可能的实现方式中,该指定位置包括该通讯录应用中的收藏界面,和/或该第一电子设备的主界面中通讯录应用图标的周围显示的快捷菜单,和/或该该通讯录应用中的常用联系人界面,和/或该通讯录应用中联系人显示界面的第一显示区域。这样,将第一用户的姓名和/或电话号码显示指定位置,可以方便用户快速查找。In a possible implementation, the designated location includes a favorite interface in the address book application, and/or a shortcut menu displayed around an icon of the address book application in the main interface of the first electronic device, and/or the The frequently used contact interface in the address book application, and/or the first display area of the contact display interface in the address book application. In this way, displaying the name and/or phone number of the first user in the designated location can facilitate the user to quickly search.
在一种可能的实现方式中,该第一电子设备还用于当该指定位置包括该快捷菜单时,执行:首先,接收针对该通讯录应用图标的长按操作或按压操作。然后,响应于该长按操作或该按压操作,在该通讯录应用图标的周围显示该快捷菜单。这样,第一电子设备可以根据用户的操作(例如长按、按压),快捷的显示出第一用户的姓名和/或电话号码,方便用户查找到第一用户的联系方式。In a possible implementation manner, the first electronic device is further configured to execute when the designated location includes the shortcut menu: first, receive a long-press operation or a press operation on the icon of the address book application. Then, in response to the long press operation or the pressing operation, the shortcut menu is displayed around the icon of the address book application. In this way, the first electronic device can quickly display the name and/or phone number of the first user according to the user's operation (for example, long press, press), so that the user can find the contact information of the first user.
在一种可能的实现方式中,第一电子设备还执行:接收针对该指定区域显示的该第一用户的姓名和/或电话号码的第二输入操作。响应于该第二输入操作,呼叫第一用户的第二电子设备。这样,可以方便用户快速找到常用的亲属联系人的联系信息,并拨打第一用户的电话。In a possible implementation manner, the first electronic device further performs: receiving a second input operation of the name and/or phone number of the first user displayed in the designated area. In response to the second input operation, the second electronic device of the first user is called. In this way, it is convenient for the user to quickly find the contact information of the frequently used relatives and dial the phone of the first user.
在一种可能的实现方式中,第一电子设备还执行:接收针对该指定区域显示的该第一用 户的姓名和/或电话号码的第三输入操作。响应于该第三输入操作,打开短信应用中第一电子设备向第一用户发送短信的编辑窗口。这样,可以方便用户找到常用的亲属联系人的联系信息,并编辑向第一用户待发送的信息。In a possible implementation manner, the first electronic device further performs: receiving a third input operation of the name and/or phone number of the first user displayed in the designated area. In response to the third input operation, an edit window for the first electronic device to send a short message to the first user in the short message application is opened. In this way, it is convenient for the user to find the contact information of the frequently used relatives and to edit the information to be sent to the first user.
在一种实现方式中,该判断该通讯录应用中该第一用户的姓名是否为指定昵称,包括:判断该通讯录应用中该第一用户的姓氏或者名字中的一个是否为该指定昵称。In an implementation manner, determining whether the name of the first user in the address book application is a designated nickname includes: determining whether one of the surname or first name of the first user in the address book application is the designated nickname.
在一种实现方式中,若该通讯录应用中该第一用户的姓名与该指定昵称不同,且该第一电子设备与该第一用户的关联度大于第二阈值时,该第一电子设备还用于执行:首先,判断该第一用户的亲密度是否大于第三阈值,若是,则将该第一用户的姓名和/或电话号码显示在该指定位置。其中,该第一电子设备与该第一用户的亲密度由该第一电子设备与该第一用户的信息交流中出现该指定昵称的频率和该第一电子设备与该第一用户的语音交流中出现该指定昵称的频率确定。这样,当第一电子设备的通讯录应用中对第一用户备注的姓名不是指定昵称时,第一电子设备可以根据与第一用户的信息交流中出现指定昵称的频率和语音交流中指定昵称的频率,更加准确的筛选出了常用的亲属联系人。In one implementation, if the name of the first user in the address book application is different from the designated nickname, and the degree of association between the first electronic device and the first user is greater than a second threshold, the first electronic device It is also used for execution: firstly, it is judged whether the intimacy of the first user is greater than the third threshold, and if so, the name and/or phone number of the first user are displayed at the designated location. Wherein, the intimacy between the first electronic device and the first user is determined by the frequency at which the designated nickname appears in the information exchange between the first electronic device and the first user and the voice communication between the first electronic device and the first user Determine the frequency of the specified nickname in. In this way, when the name noted to the first user in the address book application of the first electronic device is not a designated nickname, the first electronic device can be based on the frequency of the designated nickname in the information exchange with the first user and the number of the designated nickname in the voice communication. Frequency, more accurate screening of frequently used relatives and contacts.
在一种实现方式中,该第一电子设备还用于执行:首先,向服务器发送该第一电子设备的以下信息中的至少一个:通讯录、与该第一用户的电子设备的通话记录、位置信息或网络连接信息。然后,接收该服务器发送的该第一电子设备与该第一用户的关联度。其中,该第一电子设备与该第一用户的关联度由该服务器根据以下参数确定:该第一电子设备与该第一用户的通话频率和该法定节假日时该第一电子设备与该第一用户在同一地理位置的频率和该法定节假日时该第一电子设备与该第一用户的电子设备连接同一网络的频率确定。其中,该第一电子设备与该第一用户的通话频率由该服务器根据该第一电子设备与该第一用户的通话记录确定,该法定节假日时在同一地理位置的频率由该服务器根据该第一电子设备的位置信息和该第一用户的第二电子设备的位置信息确定,该法定节假日连接同一网络的频率由该服务器根据该第一电子设备的位置信息和该第一用户的第二电子设备的位置信息确定。这样,让服务器完成计算第一电子设备与第一用户的关联度,可以降低第一电子设备的功耗。In an implementation manner, the first electronic device is also used to perform: first, send at least one of the following information of the first electronic device to the server: address book, call records with the first user's electronic device, Location information or network connection information. Then, receiving the degree of association between the first electronic device and the first user sent by the server. Wherein, the degree of association between the first electronic device and the first user is determined by the server according to the following parameters: the frequency of calls between the first electronic device and the first user, and the first electronic device and the first electronic device on the legal holiday. The frequency of the user in the same geographic location and the frequency of connecting the first electronic device and the electronic device of the first user to the same network during the legal holiday are determined. Wherein, the frequency of the call between the first electronic device and the first user is determined by the server according to the call record of the first electronic device and the first user, and the frequency of the call in the same geographic location on the legal holiday is determined by the server according to the The location information of an electronic device and the location information of the second electronic device of the first user are determined. The frequency of connecting to the same network on the legal holiday is determined by the server according to the location information of the first electronic device and the second electronic device of the first user. The location information of the device is determined. In this way, allowing the server to complete the calculation of the degree of association between the first electronic device and the first user can reduce the power consumption of the first electronic device.
在一种实现方式中,该第一电子设备与该第一用户的关联度根据以下公式确定:In an implementation manner, the degree of association between the first electronic device and the first user is determined according to the following formula:
F=X×A+Y×B+Z×CF=X×A+Y×B+Z×C
其中,F为该第一电子设备与该第一用户之间的关联度,X为该第一电子设备和该第一用户的通话频率,Y为该法定节假日时该第一电子设备和该第一用户在同一个地理位置的频率,Z为该法定节假日时该第一电子设备和该第一用户的第二电子设备连接同一个网络的频率,A为该通话频率对应的权值,B为该法定节假日时处于同一个地理位置的频率对应的权值,C为该法定节假日时连接同一个网络的频率对应的权值。Where F is the degree of association between the first electronic device and the first user, X is the call frequency between the first electronic device and the first user, and Y is the first electronic device and the first user on the legal holiday. The frequency of a user in the same geographic location, Z is the frequency at which the first electronic device and the second electronic device of the first user connect to the same network during the legal holiday, A is the weight corresponding to the call frequency, and B is The weight corresponding to the frequency at the same geographic location during the legal holiday, and C is the weight corresponding to the frequency connecting to the same network during the legal holiday.
在一种实现方式中,该第一电子设备与该第一用户的亲密度根据以下公式确定:In an implementation manner, the intimacy between the first electronic device and the first user is determined according to the following formula:
N=R×D+S×EN=R×D+S×E
其中,N为该第一电子设备与该第一用户之间的亲密度,R为该第一电子设备与该第一用户的信息交流中出现该指定昵称的频率,S为该第一电子设备与该第一用户的语音交流中出现该指定昵称的频率,D为该信息交流中出现该指定昵称的频率对应的权值,E为该语音交流中出现该指定昵称的频率对应的权值。Where N is the intimacy between the first electronic device and the first user, R is the frequency at which the designated nickname appears in the information exchange between the first electronic device and the first user, and S is the first electronic device The frequency with which the designated nickname appears in the voice communication with the first user, D is the weight corresponding to the frequency with which the designated nickname appears in the information exchange, and E is the weight with the frequency with which the designated nickname appears in the voice communication.
第三方面,本申请实施例提供了一种计算机存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行上述第一方面任一项可能的实现方式中的显示联系 人的方法。In a third aspect, an embodiment of the present application provides a computer storage medium, including computer instructions, which when the computer instructions run on an electronic device, cause the electronic device to execute displaying contacts in any one of the possible implementations of the first aspect. Methods.
第四方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行上述第一方面任一项可能的实现方式中的显示联系人的方法。In a fourth aspect, the embodiments of the present application provide a computer program product, which when the computer program product runs on a computer, causes the computer to execute the method for displaying contacts in any one of the possible implementations of the first aspect.
图1为本申请实施例提供的一种电子设备的结构示意图;FIG. 1 is a schematic structural diagram of an electronic device provided by an embodiment of the application;
图2为本申请实施例提供的一种软件架构示意图;Figure 2 is a schematic diagram of a software architecture provided by an embodiment of the application;
图3为本申请实施例提供的一种通信系统的架构示意图;FIG. 3 is a schematic diagram of the architecture of a communication system provided by an embodiment of the application;
图4为本申请实施例提供的一种显示联系人的方法流程示意图;FIG. 4 is a schematic flowchart of a method for displaying contacts according to an embodiment of the application;
图5A-5C为申请实施例提供的一组界面示意图;Figures 5A-5C are schematic diagrams of a set of interfaces provided by an application embodiment;
图6A-6C为本申请实施例提供的另一组界面示意图;6A-6C are schematic diagrams of another set of interfaces provided by embodiments of this application;
图7A-7B为本申请实施例提供的另一组界面示意图;7A-7B are schematic diagrams of another set of interfaces provided by an embodiment of this application;
图8A-8B为本申请实施例提供的另一组界面示意图。8A-8B are schematic diagrams of another set of interfaces provided by an embodiment of this application.
下面将结合附图对本申请实施例中的技术方案进行清除、详尽地描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;文本中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,另外,在本申请实施例的描述中,“多个”是指两个或多于两个。The technical solutions in the embodiments of the present application will be cleared and described in detail below in conjunction with the drawings. Among them, in the description of the embodiments of the present application, unless otherwise specified, "/" means or, for example, A/B can mean A or B; "and/or" in the text is only a description of related objects The association relationship of indicates that there may be three relationships, for example, A and/or B, which may indicate: A alone exists, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of this application , "Multiple" means two or more than two.
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为暗示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征,在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。Hereinafter, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as implying or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, the features defined with “first” and “second” may explicitly or implicitly include one or more of these features. In the description of the embodiments of the present application, unless otherwise specified, “multiple” The meaning is two or more.
图1示出了电子设备100的结构示意图。FIG. 1 shows a schematic diagram of the structure of an electronic device 100.
下面以电子设备100为例对实施例进行具体说明。应该理解的是,图1所示电子设备100仅是一个范例,并且电子设备100可以具有比图1中所示的更多的或者更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。Hereinafter, the embodiment will be described in detail by taking the electronic device 100 as an example. It should be understood that the electronic device 100 shown in FIG. 1 is only an example, and the electronic device 100 may have more or fewer components than those shown in FIG. 1, two or more components may be combined, or Can have different component configurations. The various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.
电子设备100可以包括:处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2. Mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display 194, And subscriber identification module (subscriber identification module, SIM) card interface 195 and so on. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light Sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件, 或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than those shown in the figure, or combine certain components, or split certain components, or arrange different components. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait. Among them, the different processing units may be independent devices or integrated in one or more processors.
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller may be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction operation code and timing signals, and complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 to store instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (PCM) interface, and a universal asynchronous transmitter (universal asynchronous transmitter) interface. receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / Or Universal Serial Bus (USB) interface, etc.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。The I2C interface is a two-way synchronous serial bus, which includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple sets of I2C buses. The processor 110 may couple the touch sensor 180K, charger, flash, camera 193, etc., through different I2C bus interfaces. For example, the processor 110 may couple the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through an I2C bus interface to implement the touch function of the electronic device 100.
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, the processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function. In some embodiments, the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a Bluetooth headset.
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface, DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。The MIPI interface can be used to connect the processor 110 with the display screen 194, the camera 193 and other peripheral devices. The MIPI interface includes a camera serial interface (camera serial interface, CSI), a display serial interface (display serial interface, DSI), and so on. In some embodiments, the processor 110 and the camera 193 communicate through a CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate through a DSI interface to realize the display function of the electronic device 100.
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured through software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and so on. GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through the headphones. This interface can also be used to connect other electronic devices, such as AR devices.
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely illustrative, and does not constitute a structural limitation of the electronic device 100. In some other embodiments of the present application, the electronic device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is used to receive charging input from the charger. Among them, the charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive the charging input of the wired charger through the USB interface 130. In some embodiments of wireless charging, the charging management module 140 may receive the wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used for connecting the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may also be provided in the same device.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna can be used in combination with a tuning switch.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 may provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic wave radiation via the antenna 1. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110. In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信 号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is processed by the baseband processor and then passed to the application processor. The application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites. System (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 may also receive the signal to be sent from the processor 110, perform frequency modulation, amplify, and convert it into electromagnetic waves to radiate through the antenna 2.
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 implements a display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode). AMOLED, flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or N display screens 194, and N is a positive integer greater than one.
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used to process the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transfers the electrical signal to the ISP for processing and is converted into an image visible to the naked eye. ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the camera 193.
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电 信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it to the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital image signal. ISP outputs digital image signals to DSP for processing. DSP converts digital image signals into standard RGB, YUV and other formats. In some embodiments, the electronic device 100 may include one or N cameras 193, and N is a positive integer greater than one.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in a variety of encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural-network (NN) computing processor. By learning from the structure of biological neural networks, such as the transfer mode between human brain neurons, it can quickly process input information and can continuously learn by itself. Through the NPU, applications such as intelligent cognition of the electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。The internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. Among them, the storage program area can store an operating system, at least one application program (such as a sound playback function, an image playback function, etc.) required by at least one function. The data storage area can store data (such as audio data, phone book, etc.) created during the use of the electronic device 100. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。The speaker 170A, also called a "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a call or voice message, it can receive the voice by bringing the receiver 170B close to the human ear.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The microphone 170C, also called "microphone", "microphone", is used to convert sound signals into electric signals. When making a call or sending a voice message, the user can approach the microphone 170C through the mouth to make a sound, and input the sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In some other embodiments, the electronic device 100 may be provided with two microphones 170C, which can implement noise reduction functions in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工 业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone interface 170D is used to connect wired earphones. The earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, and a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be provided on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors and so on. The capacitive pressure sensor may include at least two parallel plates with conductive materials. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch location but have different touch operation strengths may correspond to different operation instructions. For example: when a touch operation whose intensity of the touch operation is less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B may be used to determine the movement posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (ie, x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyroscope sensor 180B detects the shake angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip holster. In some embodiments, when the electronic device 100 is a flip machine, the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Furthermore, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the automatic unlocking of the flip cover is set.
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and apply to applications such as horizontal and vertical screen switching, pedometers and so on.
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。Distance sensor 180F, used to measure distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light to the outside through the light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。The ambient light sensor 180L is used to sense the brightness of the ambient light. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touch.
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, etc.
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J 检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 executes to reduce the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In some other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also called "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”. The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. The visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194.
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal. In some embodiments, the bone conduction sensor 180M may also be provided in the earphone, combined with the bone conduction earphone. The audio module 170 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 180M, and realize the voice function. The application processor can analyze the heart rate information based on the blood pressure beating signal obtained by the bone conduction sensor 180M, and realize the heart rate detection function.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The button 190 includes a power button, a volume button, and so on. The button 190 may be a mechanical button. It can also be a touch button. The electronic device 100 may receive key input, and generate key signal input related to user settings and function control of the electronic device 100.
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 can generate vibration prompts. The motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback. For example, touch operations that act on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminder, receiving information, alarm clock, game, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 can be an indicator light, which can be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。The SIM card interface 195 is used to connect to the SIM card. The SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100. The electronic device 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. The same SIM card interface 195 can insert multiple cards at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication. In some embodiments, the electronic device 100 adopts an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiment of the present invention takes an Android system with a layered architecture as an example to exemplify the software structure of the electronic device 100.
图2是本发明实施例的电子设备100的软件结构框图。FIG. 2 is a software structure block diagram of an electronic device 100 according to an embodiment of the present invention.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接 口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers is through software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
应用程序层可以包括一系列应用程序包。The application layer can include a series of application packages.
如图2所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。As shown in Figure 2, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides application programming interfaces (application programming interface, API) and programming frameworks for applications in the application layer. The application framework layer includes some predefined functions.
如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。As shown in Figure 2, the application framework layer can include a window manager, a content provider, a view system, a phone manager, a resource manager, and a notification manager.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。The window manager is used to manage window programs. The window manager can obtain the size of the display, determine whether there is a status bar, lock the screen, take a screenshot, etc.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。The content provider is used to store and retrieve data, and make these data accessible to applications. The data may include video, image, audio, phone calls made and received, browsing history and bookmarks, phone book, etc.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls that display text and controls that display pictures. The view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide the communication function of the electronic device 100. For example, the management of the call status (including connecting, hanging up, etc.).
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, etc.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify the download completion, message reminder, etc. The notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or a scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, the status bar prompts text messages, sounds prompts, electronic equipment vibrates, and indicator lights flash.
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of Android.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and application framework layer run in a virtual machine. The virtual machine executes the java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。The system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files. The media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing.
2D图形引擎是2D绘图的绘图引擎。The 2D graphics engine is a drawing engine for 2D drawing.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
下面结合捕获拍照场景,示例性说明电子设备100软件以及硬件的工作流程。In the following, the workflow of the software and hardware of the electronic device 100 will be exemplified in conjunction with capturing a photo scene.
当触摸传感器180K接收到触摸操作,相应的硬件中断被发给内核层。内核层将触摸操作加工成原始输入事件(包括触摸坐标,触摸操作的时间戳等信息)。原始输入事件被存储在内核层。应用程序框架层从内核层获取原始输入事件,识别该输入事件所对应的控件。以该触摸操作是触摸单击操作,该单击操作所对应的控件为相机应用图标的控件为例,相机应用调用应用框架层的接口,启动相机应用,进而通过调用内核层启动摄像头驱动,通过摄像头193捕获静态图像或视频。When the touch sensor 180K receives a touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes touch operations into original input events (including touch coordinates, time stamps of touch operations, etc.). The original input events are stored in the kernel layer. The application framework layer obtains the original input event from the kernel layer, and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation and the control corresponding to the click operation is the control of the camera application icon as an example, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer. The camera 193 captures still images or videos.
目前,电子设备可以支持用户手动添加至通讯录的收藏夹中,即电子设备可以接收用户对通讯录中联系人选项的输入操作,响应于该输入操作,电子设备可以将通讯录中的亲属联系人添加至通讯录的收藏夹中,若用户需要与亲属联系人进行通讯,可以直接打开收藏夹,选取收藏夹中的亲属联系人进行通讯。这样,虽然可以方便用户快速的找到一些常用的亲属联系人,但是前期需要用户对联系人一个一个的收藏,步骤比较繁杂。当前,电子设备还可以根据与通讯录中联系人的通话频率,来确定是否为常用联系人,若为常用联系人,则电子设备可以将该常用联系人置顶显示。这样,由于用通话频率作为判断依据,电子设备通过通讯频率只能够判断出联系人是否为常用联系人,无法区分是否为常用的亲属联系人。At present, the electronic device can support the user to manually add to the favorites of the address book, that is, the electronic device can receive the user's input operation on the contact options in the address book, and in response to the input operation, the electronic device can contact relatives in the address book People are added to the favorites of the address book. If the user needs to communicate with relatives, he can directly open the favorites and select the relatives in the favorites to communicate. In this way, although it is convenient for the user to quickly find some frequently used relatives, the user is required to collect the contacts one by one in the early stage, and the steps are complicated. Currently, the electronic device can also determine whether it is a frequently-used contact according to the frequency of calls with a contact in the address book. If it is a frequently-used contact, the electronic device can display the frequently-used contact on the top. In this way, since the call frequency is used as the judgment basis, the electronic device can only judge whether the contact is a frequently used contact through the communication frequency, and cannot distinguish whether it is a frequently used relative contact.
基于上述问题,本申请实施例提供了一种显示联系人的方法及相关装置,可以实现利用第一电子设备与联系人的通话频率、法定节假日时第一电子设备与联系人在同一位置的频率、法定节假日时与联系人的第二电子设备连接同一网络的频率、通讯录应用中联系人的备注姓名是否为指定昵称等因素综合筛选出常用的亲属联系人。在第一电子设备筛选出该常用的亲属联系人之后,可以将该常用的亲属联系人在指定位置上显示。这样,可以方便用户快速的找到常用的亲属联系人。Based on the above problems, the embodiments of the present application provide a method and related device for displaying contacts, which can utilize the frequency of calls between the first electronic device and the contact, and the frequency of the first electronic device and the contact at the same location during legal holidays. , The frequency with which the second electronic device of the contact is connected to the same network during statutory holidays, and whether the remark name of the contact in the address book application is a designated nickname, etc., comprehensively screen out frequently used relative contacts. After the first electronic device screens out the frequently used relative contacts, the frequently used relative contacts can be displayed at the designated location. In this way, it is convenient for users to quickly find frequently used relatives.
下面介绍本申请实施例提供的一种通信系统300。The following describes a communication system 300 provided by an embodiment of the present application.
本申请实施例提供的联系人管理方法可以应用于如图3所示的通信系统300。如图3所示,该通信系统300可以包括第一电子设备301、第二电子设备302和服务器303。其中,The contact management method provided by the embodiment of the present application can be applied to the communication system 300 shown in FIG. 3. As shown in FIG. 3, the communication system 300 may include a first electronic device 301, a second electronic device 302, and a server 303. among them,
第一电子设备301和第二电子设备302的结构可以如上述图1或图2所示的电子设备100。在本申请实施例中,第一电子设备301可以是机主的手机,第二电子设备302可以是第一电子设备301上通讯录中联系人的手机,在该通信系统300中,第二电子设备302不限于一个,可以有多个。The structures of the first electronic device 301 and the second electronic device 302 may be the same as the electronic device 100 shown in FIG. 1 or FIG. 2 above. In the embodiment of the present application, the first electronic device 301 may be the owner's mobile phone, and the second electronic device 302 may be the mobile phone of a contact in the address book of the first electronic device 301. In the communication system 300, the second electronic device The device 302 is not limited to one, and there may be multiple devices.
服务器303可以是物理服务器(physical server),也可以是云服务器(cloud server),服务器303可以接收第一电子设备301和第二电子设备302各自发送的通讯录、通话记录、位置信息、网络连接信息等数据。服务器303还可以对第一电子设备301和第二电子设备302发送的通讯录、通话记录、位置信息、网络连接信息等数据进行处理及运算。The server 303 may be a physical server (physical server) or a cloud server (cloud server). The server 303 may receive the address book, call history, location information, and network connection sent by the first electronic device 301 and the second electronic device 302. Information and other data. The server 303 can also process and calculate the address book, call history, location information, network connection information and other data sent by the first electronic device 301 and the second electronic device 302.
下面将基于上述图3所述的通信系统300,对本申请实施例提供的显示联系人的方法进行详细介绍。The method for displaying contacts provided in the embodiment of the present application will be described in detail below based on the communication system 300 described in FIG. 3.
请参见图4,图4示出了本申请实施例中提供的一种显示联系人的流程示意图。其中,第一用户为第二电子设备对应用户。如图4所示,本申请实施例提供的显示联系人的方法可以包括:Please refer to FIG. 4, which shows a schematic flowchart of a contact display provided in an embodiment of the present application. The first user is a user corresponding to the second electronic device. As shown in FIG. 4, the method for displaying contacts provided by the embodiment of the present application may include:
S401、第一电子设备接收第一输入操作。S401: The first electronic device receives a first input operation.
该第一输入操作可以是针对点击下述图5B中联系人添加控件524的操作(例如点击)。The first input operation may be an operation (for example, click) for clicking the contact addition control 524 in FIG. 5B described below.
S402、第一电子设备在通讯录应用中添加第二电子设备对应用户的联系人信息。S402: The first electronic device adds contact information of the user corresponding to the second electronic device in the address book application.
其中,该第二电子设备对应用户(即第一用户)的联系人信息包括第一电子设备对应用户的电话号码和姓名,该第一电子设备对应用户的联系人信息被保存在该通讯录应用中的第一位置。该第一位置可以参考图5B中的联系人界面520中的联系人显示栏528处,具体可以参考后述图5B所示实施例,在此不赘述。Wherein, the contact information of the user corresponding to the second electronic device (ie, the first user) includes the phone number and name of the user corresponding to the first electronic device, and the contact information of the user corresponding to the first electronic device is stored in the address book application In the first position. For the first position, reference may be made to the contact display column 528 in the contact interface 520 in FIG. 5B. For details, reference may be made to the embodiment shown in FIG. 5B described later, which will not be repeated here.
S403、第一电子设备发送通讯录、通话记录、位置信息、网络连接信息给服务器。S403: The first electronic device sends the address book, call records, location information, and network connection information to the server.
第一电子设备可以周期性的向服务器发送第一电子设备的以下信息中的至少一个:通讯录、通话记录、位置信息或网络连接信息。其中,该周期可以是一天、一个星期等,在此不作限定。第一电子设备可以分次向服务器发送通讯录、通话记录、位置信息、网络连接信息。例如,第一电子设备可以在通讯录有更新时,向服务器发送更新后的通讯录。第一电子设备可以在通话记录有更新时,向服务器发送更新后的通话记录。第一电子设备可以将第一电子设备每天停留时间大于一定时间的地点的位置信息发送给服务器。第一电子设备还可以将第一电子设备每天连接的无线网络(包括Wi-Fi、蓝牙)的网络连接信息发送给服务器。第一电子设备可以通过GPS定位、Wi-Fi定位、基站定位等定位方式获取到第一电子设备的位置信息。The first electronic device may periodically send at least one of the following information of the first electronic device to the server: address book, call history, location information, or network connection information. Wherein, the period can be one day, one week, etc., which is not limited here. The first electronic device may send the address book, call records, location information, and network connection information to the server in stages. For example, the first electronic device may send the updated address book to the server when the address book is updated. When the call record is updated, the first electronic device may send the updated call record to the server. The first electronic device may send the location information of the place where the first electronic device stays for more than a certain time every day to the server. The first electronic device may also send network connection information of the wireless network (including Wi-Fi and Bluetooth) that the first electronic device is connected to every day to the server. The first electronic device may obtain the location information of the first electronic device through positioning methods such as GPS positioning, Wi-Fi positioning, base station positioning, and the like.
其中,通讯录中包括有一个或多个联系人的信息,该一个或多个联系人的信息包括第一用户的姓名和电话号码。第一电子设备的通话记录包括在一段时间(例如一天、一个星期、一个月等)内,第一电子设备与第二电子设备的通话次数,以及每次通话的时长。第一电子设备的位置信息包括第一电子设备法定节假日时(例如周六、周天、五一假期、十一假期等)停留时间大于一定时间的地点的位置信息。第一电子设备的网络连接信息包括第一电子设备所连接无线网络中网络设备的标识(例如Wi-Fi网路中路由器的MAC地址,或者蓝牙所连接的电子设备的MAC地址,或者WLAN直连所连接的电子设备的MAC地址),以及第一电子设备连接无线网络的时间。Wherein, the address book includes information of one or more contacts, and the information of the one or more contacts includes the name and phone number of the first user. The call record of the first electronic device includes the number of calls between the first electronic device and the second electronic device within a period of time (for example, one day, one week, one month, etc.), and the duration of each call. The location information of the first electronic device includes location information of locations where the first electronic device stays longer than a certain time during legal holidays (such as Saturdays, Sundays, May Day holidays, November holidays, etc.). The network connection information of the first electronic device includes the identification of the network device in the wireless network to which the first electronic device is connected (for example, the MAC address of the router in the Wi-Fi network, or the MAC address of the electronic device connected to Bluetooth, or WLAN direct connection The MAC address of the connected electronic device), and the time when the first electronic device is connected to the wireless network.
S404、第二电子设备发送第二电子设备的电话号码、第二电子设备的位置信息、以及第二电子设备的网络连接信息给服务器。S404: The second electronic device sends the phone number of the second electronic device, the location information of the second electronic device, and the network connection information of the second electronic device to the server.
其中,第一电子设备的通讯录中存储有第二电子设备的电话号码(例如,“186 XXXX 0124”),以及对第二电子设备对应用户备注的姓名(例如“老婆”)。第二电子设备可以周期性(例如周期可以是一天、一个星期、一个月等)的向服务器发送第二电子设备的位置信息和第二电子设备的网络连接信息。其中,第二电子设备的网络连接信息包括第二电子设备所连接无线网络中网络设备的标识(例如Wi-Fi网络中路由器的MAC地址,或者蓝牙所连接的电子设备的MAC地址,或者WLAN直连所连接的电子设备的MAC地址),以及第一电子设备连接无线网络的时间。第二电子设备也可以通过GPS定位、Wi-Fi定位、基站定位等定位方式获取到第二电子设备的位置信息。The address book of the first electronic device stores the phone number of the second electronic device (for example, "186 XXXX 0124") and the name of the user corresponding to the second electronic device (for example, "wife"). The second electronic device may periodically (for example, the cycle may be one day, one week, one month, etc.) send the location information of the second electronic device and the network connection information of the second electronic device to the server. Wherein, the network connection information of the second electronic device includes the identification of the network device in the wireless network connected to the second electronic device (for example, the MAC address of the router in the Wi-Fi network, or the MAC address of the electronic device connected to Bluetooth, or the WLAN direct Connect the MAC address of the connected electronic device), and the time when the first electronic device is connected to the wireless network. The second electronic device may also obtain the location information of the second electronic device through positioning methods such as GPS positioning, Wi-Fi positioning, and base station positioning.
S405、服务器统计第一电子设备与第二电子设备对应用户的通话频率、法定节假日在同一个地理位置的频率、法定节假日连接同一个网络的频率。S405. The server counts the call frequency of the user corresponding to the first electronic device and the second electronic device, the frequency of legal holidays in the same geographic location, and the frequency of legal holidays connecting to the same network.
服务器可以根据第一电子设备的通话记录,以及第二电子设备的电话号码,统计出第一电子设备与第二电子设备对应用户的通话频率。其中,该通话频率可以是平均每天通话的次 数、还可以是每周通话的次数等,在此不作限定。示例性的,第一电子设备与第二电子设备对应用户的通话频率可以是0.4次/天。示例仅仅用于解释本申请,不应构成限定。The server may calculate the call frequency of the user corresponding to the first electronic device and the second electronic device based on the call record of the first electronic device and the phone number of the second electronic device. Wherein, the call frequency can be the average number of calls per day, or the number of calls per week, etc., which is not limited here. Exemplarily, the call frequency of the user corresponding to the first electronic device and the second electronic device may be 0.4 times/day. The examples are only used to explain the application and should not constitute a limitation.
其中,法定节假日可以包括假期、周末等。法定节假日可以包括元旦节、春节、劳动节、国庆节等法定节日,也可以包括周六和周日。Among them, statutory holidays can include holidays, weekends, etc. Statutory holidays can include statutory holidays such as New Year's Day, Spring Festival, Labor Day, and National Day, as well as Saturday and Sunday.
服务器可以从第一电子设备的位置信息中,获取到第一电子设备在法定节假日所处的位置。服务器可以从第二电子设备的位置信息中,获取到第二电子设备在法定节假日所处的位置。服务器通过比对第一电子设备在法定节假日所处的位置和第二电子设备在法定节假日所处的位置,确定出第一电子设备和第二电子设备在法定节假日同时在同一个地理位置的频率。其中,该法定节假日在同一个地理位置的频率可以是法定节假日中平均每天同时处于同一个地理位置的次数。在一种实现方式中,处于同一个地理位置的次数计算规则可以是:法定节假日的一天中,若第一电子设备和第二电子设备同时处于同一地理位置的时长超过预设时间阈值(例如1小时、2小时等)记为一次。上述处于同一个地理位置的次数计算规则仅仅是用于解释本申请的一种示例,不应构成限定,在一些实施例中,还可以有其他的次数计算规则。The server may obtain the location of the first electronic device on the legal holiday from the location information of the first electronic device. The server may obtain the location of the second electronic device on the legal holiday from the location information of the second electronic device. The server compares the location of the first electronic device on the legal holiday with the location of the second electronic device on the legal holiday, and determines the frequency of the first electronic device and the second electronic device at the same geographic location on the legal holiday. . The frequency of the legal holiday in the same geographic location may be the average number of times that the legal holiday is in the same geographic location every day. In one implementation, the rule for calculating the number of times at the same geographic location may be: on a day of a legal holiday, if the length of time that the first electronic device and the second electronic device are at the same geographic location at the same time exceeds a preset time threshold (for example, 1 Hours, 2 hours, etc.) are counted as one time. The foregoing rule for calculating the times at the same geographic location is only an example for explaining the application, and should not constitute a limitation. In some embodiments, there may be other rules for calculating the times.
在本申请实施例中,法定节假日时第二电子设备所处的位置,即法定节假日时第二电子对应用户(第一用户)所处的位置。In the embodiment of the present application, the location of the second electronic device during legal holidays, that is, the location of the second electronic corresponding user (first user) during the legal holidays.
服务器可以根据第一电子设备的网络连接信息、第二电子设备的网络连接信息,确定出第一电子设备和第二电子设备在法定节假日同时连上同一个网络的频率。其中,该法定节假日同时连接同一个网络的频率可以是法定节假日中平均每天同时连上同一个网络的次数。在一种实现方式中,连上同一网络的次数计算规则可以是:法定节假日的一天中,若第一电子设备和第二电子设备都同时连上过同一网络,则记为一次。上述连上同一个网络的次数计算规则仅仅是用于解释本申请的一种示例,不应构成限定,在一些实施例中,还可以有其他的次数计算规则。The server can determine the frequency at which the first electronic device and the second electronic device are simultaneously connected to the same network during legal holidays based on the network connection information of the first electronic device and the network connection information of the second electronic device. Wherein, the frequency of simultaneous connection to the same network during the legal holiday may be the average number of simultaneous connections to the same network per day during the legal holiday. In one implementation, the rule for calculating the number of times connected to the same network may be: in a day of a legal holiday, if both the first electronic device and the second electronic device have been connected to the same network at the same time, it is recorded as one time. The foregoing rule for calculating the number of times connected to the same network is only an example for explaining this application, and should not constitute a limitation. In some embodiments, there may be other rules for calculating the number of times.
示例性的,若该网络包括Wi-Fi网络,第一电子设备的网络连接信息可以包括第一电子设备所连接的Wi-Fi接入点(access point,AP)的MAC地址,第二电子设备的网络连接信息可以包括第二电子设备所连接的Wi-Fi接入点的MAC地址。服务器可以判断第一电子设备所连接Wi-Fi接入点的MAC地址是否与第二电子设备所连接Wi-Fi接入点的MAC地址相同。若相同,则服务器确定该第一电子设备和第二电子设备同时连上了同一个网络。示例仅仅用于解释本申请,不应构成限定。Exemplarily, if the network includes a Wi-Fi network, the network connection information of the first electronic device may include the MAC address of the Wi-Fi access point (AP) to which the first electronic device is connected, and the second electronic device The network connection information may include the MAC address of the Wi-Fi access point to which the second electronic device is connected. The server can determine whether the MAC address of the Wi-Fi access point connected to the first electronic device is the same as the MAC address of the Wi-Fi access point connected to the second electronic device. If they are the same, the server determines that the first electronic device and the second electronic device are simultaneously connected to the same network. The examples are only used to explain the application and should not constitute a limitation.
示例性的,若该网络包括蓝牙网络,第一电子设备的网络连接信息可以包括第一电子设备通过蓝牙技术所连接的设备的MAC地址以及第一电子设备的MAC地址,第二电子设备的网络连接信息可以包括第一电子设备通过蓝牙技术所连接的设备的MAC地址以及第二电子设备的MAC地址。服务器可以判断第一电子设备通过蓝牙技术所连接的设备的MAC地址是否与第二电子设备的MAC地址相同,或者服务器可以判断第一电子设备的MAC地址是否与第二电子设备通过蓝牙技术所连接的设备的MAC地址相同。若是,则服务器可以确定该第一电子设备和第二电子设备同时连上了同一个网络。Exemplarily, if the network includes a Bluetooth network, the network connection information of the first electronic device may include the MAC address of the device connected to the first electronic device through Bluetooth technology and the MAC address of the first electronic device, and the network of the second electronic device The connection information may include the MAC address of the device to which the first electronic device is connected through Bluetooth technology and the MAC address of the second electronic device. The server can determine whether the MAC address of the device connected to the first electronic device through Bluetooth technology is the same as the MAC address of the second electronic device, or the server can determine whether the MAC address of the first electronic device is connected to the second electronic device through Bluetooth technology The MAC address of the device is the same. If so, the server can determine that the first electronic device and the second electronic device are simultaneously connected to the same network.
示例性的,若该网络包括WLAN直连的网络,第一电子设备的网络连接信息可以包括第一电子设备通过WLAN直连技术所连接的设备的MAC地址以及第一电子设备的MAC地址,第二电子设备的网络连接信息可以包括第一电子设备通过WLAN直连技术所连接的设备的MAC地址以及第二电子设备的MAC地址。服务器可以判断第一电子设备通过WLAN直连 所连接的设备的MAC地址是否与第二电子设备的MAC地址相同,或者服务器可以判断第一电子设备的MAC地址是否与第二电子设备的MAC地址相同,或者服务器可以判断第一电子设备的MAC地址是否与第二电子设备通过WLAN直连技术所连接的设备的MAC地址相同。若是,则服务器可以确定该第一电子设备和第二电子设备同时连上了同一个网络。Exemplarily, if the network includes a WLAN direct connection network, the network connection information of the first electronic device may include the MAC address of the device connected by the first electronic device through the WLAN direct connection technology and the MAC address of the first electronic device. The network connection information of the second electronic device may include the MAC address of the device connected by the first electronic device through the WLAN direct connection technology and the MAC address of the second electronic device. The server can determine whether the MAC address of the device directly connected to the first electronic device via WLAN is the same as the MAC address of the second electronic device, or the server can determine whether the MAC address of the first electronic device is the same as the MAC address of the second electronic device Or the server may determine whether the MAC address of the first electronic device is the same as the MAC address of the device connected to the second electronic device through the WLAN direct connection technology. If so, the server can determine that the first electronic device and the second electronic device are simultaneously connected to the same network.
S406、服务器根据通话频率、法定节假日在一个地理位置的频率、法定节假日连接同一个网络的频率,计算第一电子设备对应用户和第二电子设备对应用户之间的关联度F。S406: The server calculates the degree of association F between the user corresponding to the first electronic device and the user corresponding to the second electronic device according to the frequency of calls, the frequency of legal holidays in a geographic location, and the frequency of legal holidays connecting to the same network.
服务器可以为第一电子设备和第二电子设备的通话频率设置第一权值,为第一电子设备和第二电子设备在法定节假日处于同一个地理位置的频率设置第二权值,为第一电子设备和第二电子设备的在法定节假日连接同一个网络的频率设置第三权值。服务器根据下列公式(1),计算出第一电子设备和第二电子设备的关联度F:The server can set the first weight for the call frequency of the first electronic device and the second electronic device, and set the second weight for the frequency at which the first electronic device and the second electronic device are in the same geographic location on legal holidays, which is the first The frequency at which the electronic device and the second electronic device are connected to the same network on legal holidays is set with a third weight. The server calculates the degree of association F between the first electronic device and the second electronic device according to the following formula (1):
F=X×A+Y×B+Z×C 公式(1)F=X×A+Y×B+Z×C Formula (1)
其中,F为第一电子设备和第二电子设备的关联度,X为第一设备和第二电子设备的通话频率,Y为第一电子设备和第二电子设备在法定节假日处于同一个地理位置的频率,Z为第一电子设备和第二电子设备在法定节假日连接同一个网络的频率,A为第一权值,B为第二权值,C为第三权值。Among them, F is the degree of relevance between the first electronic device and the second electronic device, X is the call frequency of the first device and the second electronic device, and Y is the first electronic device and the second electronic device in the same geographic location during legal holidays Z is the frequency at which the first electronic device and the second electronic device are connected to the same network on legal holidays, A is the first weight, B is the second weight, and C is the third weight.
示例性的,如下表1所示:Exemplary, as shown in Table 1 below:
表1Table 1
关联度判断因素Relevance factors | 判断因素的值(次/天)Judgment factor value (times/day) | 判断因素的权重Judgment factor weight |
通话频率Call frequency | 22 | 0.50.5 |
法定节假日处于同一地理位置的频率Frequency of statutory holidays in the same geographic location | 22 | 0.30.3 |
法定节假日连接同一个网络的频率The frequency of connecting to the same network on |
33 | 0.20.2 |
由上表1可以看出,第一电子设备与第二电子设备的通话频率X为2(次/天),第一权值A为0.5,第一电子设备与第二电子设备在法定节假日处于同一地理位置的频率Y为2(次/天),第二权值B为0.3,第一电子设备与第二电子设备在法定节假日连接同一个网络的频率Z为3(次/天),第三权值C为0.2。结合上述公式(1)可得,第一电子设备对应用户与第二电子设备对应用户之间的关联度F为2.2。It can be seen from Table 1 that the call frequency X between the first electronic device and the second electronic device is 2 (times/day), and the first weight A is 0.5. The first electronic device and the second electronic device are The frequency Y of the same geographic location is 2 (times/day), and the second weight B is 0.3. The frequency Z of the first electronic device and the second electronic device connecting to the same network on legal holidays is 3 (times/day), The three weight C is 0.2. Combining the above formula (1), it can be obtained that the correlation degree F between the user corresponding to the first electronic device and the user corresponding to the second electronic device is 2.2.
S407、服务器向第一电子设备发送第一电子设备对应用户与第二电子设备对应用户之间的关联度F。S407: The server sends the correlation degree F between the user corresponding to the first electronic device and the user corresponding to the second electronic device to the first electronic device.
S408、第一电子设备判断通讯录中对第二电子设备对应用户的姓名为指定昵称。若是,则第一电子设备执行步骤S409;若否,则第一电子设备执行步骤S410。S408: The first electronic device determines that the name of the user corresponding to the second electronic device in the address book is a designated nickname. If yes, the first electronic device executes step S409; if not, the first electronic device executes step S410.
其中,第一电子设备可以在接收到服务器发送的第一电子设备对应用户与第二电子设备对应用户之间的关联度F之后,判断第一电子设备的通讯录中对第二电子设备对应用户是否备注为亲人昵称。第一电子设备也可以在接收到服务器发送的第一电子设备对应用户与第二电子设备对应用户之间的关联度F之前,判断通讯录中对第二电子设备对应用户(即第一用户)的姓名是否为指定昵称。其中,指定昵称可以包括含有爷爷、奶奶、爸、妈、老公、老婆、女儿、儿子、宝贝、哥、姐、弟、妹、叔、姨、姑、舅、婶、舅妈、伯父或伯母等字眼的称呼。示例仅仅用于解释本申请,不应构成限定。The first electronic device may, after receiving the degree of association F between the user corresponding to the first electronic device and the user corresponding to the second electronic device sent by the server, determine that the address book of the first electronic device corresponds to the user corresponding to the second electronic device Whether to remark as the nickname of relatives. The first electronic device may also determine the user corresponding to the second electronic device in the address book (ie, the first user) before receiving the correlation degree F between the user corresponding to the first electronic device and the user corresponding to the second electronic device sent by the server. Is the name of the designated nickname. Among them, the designated nickname can include words containing grandpa, grandma, father, mother, husband, wife, daughter, son, baby, brother, sister, younger brother, sister, uncle, aunt, aunt, uncle, aunt, aunt, uncle, or aunt The title. The examples are only used to explain the application and should not constitute a limitation.
在一些实施例中,第一电子设备可以判断通讯录应用中第一用户的姓氏或者名字中的一个是否为上述指定昵称,若是,则第一电子设备执行步骤S409;若否,则第一电子设备执行步骤S410。In some embodiments, the first electronic device may determine whether one of the surname or first name of the first user in the address book application is the above-mentioned designated nickname, if so, the first electronic device executes step S409; if not, the first electronic device The device executes step S410.
S409、第一电子设备判断第一电子设备和第二电子设备对应用户之间的关联度F是否大于第一阈值。若是,则第一电子设备执行步骤S414。S409: The first electronic device determines whether the degree of association F between the users corresponding to the first electronic device and the second electronic device is greater than a first threshold. If yes, the first electronic device executes step S414.
若在第一电子设备的通讯录中,对第二电子设备对应用户(即第一用户)的备注为亲人昵称,则第一电子设备可以判断第一电子设备和第二电子设备对应用户之间的关联度F是否大于第一阈值。若是,则第一电子设备在指定位置显示第二电子设备对应用户的姓名和/或电话号码。其中,第一阈值可以是1、1.5、2、3等或者更大,在此不作限定。If in the address book of the first electronic device, the remarks for the user corresponding to the second electronic device (ie, the first user) are the nicknames of relatives, the first electronic device can determine the relationship between the corresponding users of the first electronic device and the second electronic device Whether the correlation degree F of is greater than the first threshold. If so, the first electronic device displays the name and/or phone number of the user corresponding to the second electronic device at the designated location. Wherein, the first threshold may be 1, 1.5, 2, 3, etc. or greater, which is not limited here.
示例性的,第一电子设备对应用户与第二电子设备对应用户之间的关联度F为2.2,第一阈值为2,第一电子设备对应用户与第二电子设备对应用户之间的关联度F(为2.2)大于第一阈值(为2),则第一电子设备执行步骤S414。示例仅仅用于解释本申请,不应构成限定。Exemplarily, the correlation degree F between the user corresponding to the first electronic device and the user corresponding to the second electronic device is 2.2, the first threshold value is 2, and the correlation degree between the user corresponding to the first electronic device and the user corresponding to the second electronic device If F (=2.2) is greater than the first threshold (=2), the first electronic device executes step S414. The examples are only used to explain the application and should not constitute a limitation.
S410、第一电子设备判断第一电子设备和第二电子设备对应用户之间的关联度F是否大于第二阈值。若是,则第一电子设备执行步骤S411。S410. The first electronic device determines whether the degree of association F between the corresponding users of the first electronic device and the second electronic device is greater than a second threshold. If yes, the first electronic device executes step S411.
若在第一电子设备的通讯录中,对第二电子设备对应用户(即第一用户)的备注不为指定昵称,则第一电子设备可以判断第一电子设备对应用户和第二电子设备对应用户之间的关联度F是否大于第二阈值。若是,则第一电子设备统计与第二电子设备的信息交流中出现指定昵称的频率和语音交流中使用指定昵称的频率。其中,第二阈值可以与上述第一阈值不相同,也可以相同,第二阈值可以是1、1.5、2、3等或者更大,在此不作限定。If in the address book of the first electronic device, the remark for the user corresponding to the second electronic device (ie, the first user) is not a designated nickname, the first electronic device can determine that the user corresponding to the first electronic device corresponds to the user corresponding to the second electronic device Whether the degree of association F between users is greater than the second threshold. If so, the first electronic device counts the frequency of the designated nickname in the information exchange with the second electronic device and the frequency of the designated nickname in the voice communication. Wherein, the second threshold value may be different from the above-mentioned first threshold value or the same, and the second threshold value may be 1, 1.5, 2, 3, etc. or greater, which is not limited here.
示例性的,第一电子设备与第二电子设备的关联度F为2.2,第二阈值为2.1,第一电子设备与第二电子设备的关联度F(为2.2)大于第二阈值(为2.1),则第一电子设备执行步骤S411。Exemplarily, the degree of association F between the first electronic device and the second electronic device is 2.2, the second threshold value is 2.1, and the degree of association F (2.2) between the first electronic device and the second electronic device is greater than the second threshold (2.1) ), the first electronic device executes step S411.
S411、第一电子设备统计第一电子设备与第二电子设备对应用户的信息交流中出现指定昵称的频率和语音交流中出现指定昵称的频率。S411. The first electronic device counts the frequency of the designated nickname in the information exchange between the first electronic device and the user corresponding to the second electronic device and the frequency of the designated nickname in the voice communication.
其中,信息交流包括短信交流、微信文字消息交流、QQ文字消息交流等。语音交流包括电话语音交流、微信语音消息交流、微信语音通话交流、QQ语音消息交流、QQ语音通话交流等。其中,第二电子设备对应用户的微信或QQ等第三方通讯应用软件的账号与第二电子设备的电话号码绑定。也即是说,第一电子设备可以利用第二电子设备的电话号码,从第三方通讯应用软件中获取到第一电子设备与第二电子设备对应用户(即第一用户)的信息交流记录。Among them, information exchange includes text messaging, WeChat text messaging, and QQ text messaging. Voice communication includes telephone voice communication, WeChat voice message communication, WeChat voice call communication, QQ voice message communication, QQ voice call communication, etc. Wherein, the account of the third-party communication application software such as WeChat or QQ corresponding to the user of the second electronic device is bound to the phone number of the second electronic device. In other words, the first electronic device can use the phone number of the second electronic device to obtain information exchange records between the first electronic device and the user corresponding to the second electronic device (ie, the first user) from the third-party communication application software.
第一电子设备可以从第一电子设备对应用户与第二电子设备对应用户交流的短信、微信文字消息、QQ文字消息等文字信息中统计出指定昵称的字眼出现的频率。其中,信息交流中出现指定昵称的频率可以是平均每天第一电子设备与第二电子设备对应用户交流的文字信息中出现指定昵称的次数。示例性的,第一电子设备对应用户与第二电子设备对应用户的信息交流中出现指定昵称的频率可以是6次/天。示例仅仅用于解释本申请,不应构成限定。The first electronic device may calculate the frequency of the words of the designated nickname from text information such as short messages, WeChat text messages, QQ text messages, etc. exchanged between the user corresponding to the first electronic device and the user corresponding to the second electronic device. Wherein, the frequency of the designated nickname in the information exchange may be the average number of times the designated nickname appears in the text information exchanged between the first electronic device and the user corresponding to the second electronic device every day. Exemplarily, the frequency of the designated nickname in the information exchange between the user corresponding to the first electronic device and the user corresponding to the second electronic device may be 6 times per day. The examples are only used to explain the application and should not constitute a limitation.
第一电子设备可以从第一电子设备对应用户与第二电子设备对应用户的语音交流的电话通话、微信语音消息、微信语音通话、QQ语音消息、QQ语音通话等语音信息中统计出指定昵称的字眼出现的频率。其中,信息交流中出现指定昵称的频率可以是平均每天第一电子设备对应用户与第二电子设备对应用户交流的语音信息中出现指定昵称的次数。示例性的,第一电子设备对应用户与第二电子设备对应用户的语音交流中出现指定昵称的频率可以是3次/ 天。示例仅仅用于解释本申请,不应构成限定。The first electronic device can count the voice information of the designated nickname from voice information such as telephone calls, WeChat voice messages, WeChat voice calls, QQ voice messages, QQ voice calls, etc. of the voice communication between the user corresponding to the first electronic device and the user corresponding to the second electronic device. How often the word appears. Wherein, the frequency of the designated nickname in the information exchange may be the average number of times the designated nickname appears in the voice information exchanged between the user corresponding to the first electronic device and the user corresponding to the second electronic device per day. Exemplarily, the frequency of the designated nickname in the voice communication between the user corresponding to the first electronic device and the user corresponding to the second electronic device may be 3 times/day. The examples are only used to explain the application and should not constitute a limitation.
S412、第一电子设备根据信息交流中出现指定昵称的频率和语音交流中使用指定昵称的频率,计算出第一电子设备与第二电子设备对应用户的亲密度N。S412. The first electronic device calculates the intimacy N of the user corresponding to the first electronic device and the second electronic device according to the frequency of the designated nickname in the information exchange and the frequency of the designated nickname in the voice communication.
第一电子设备可以为信息交流中出现指定昵称的频率设置第四权值,为语音交流中使用指定昵称的频率设置第五权值。第一电子设备根据下列公式(2),计算出第一电子设备和第二电子设备的亲密度N:The first electronic device may set a fourth weight for the frequency of the designated nickname in the information exchange, and set the fifth weight for the frequency of the designated nickname in the voice communication. The first electronic device calculates the intimacy N between the first electronic device and the second electronic device according to the following formula (2):
N=R×D+S×E 公式(2)N=R×D+S×E Formula (2)
其中,N为第一电子设备对应用户和第二电子设备对应用户之间的亲密度,R为第一电子设备对应用户与第二电子设备对应用户信息交流中出现指定昵称的频率,S为第一电子设备与第二电子设备语音交流中使用指定昵称的频率,D为第四权值,E为第五权值。Where N is the intimacy between the user corresponding to the first electronic device and the user corresponding to the second electronic device, R is the frequency of the designated nickname in the information exchange between the user corresponding to the first electronic device and the user corresponding to the second electronic device, and S is the first The frequency of the designated nickname used in the voice communication between one electronic device and the second electronic device, D is the fourth weight, and E is the fifth weight.
示例性的,如下表2所示:Exemplary, as shown in Table 2 below:
表2Table 2
亲密度判断因素Intimacy factor | 判断因素的值(次/天)Judgment factor value (times/day) | 判断因素的权重Judgment factor weight |
信息交流中出现指定昵称的频率Frequency of designated nicknames in information exchange | 66 | 0.60.6 |
语音交流中使用指定昵称的频率Frequency of using designated nicknames in |
33 | 0.40.4 |
由上表2可以看出,第一电子设备对应用户与第二电子设备对应用户的信息交流中出现指定昵称的频率R为6(次/天),第四权值D为0.6,第一电子设备对应用户与第二电子设备对应用户的语音交流中使用指定昵称的频率S为3(次/天),第五权值E为0.4。结合上述公式(2)可得,第一电子设备对应用户与第二电子设备对应用户之间的亲密度N为4.8。It can be seen from Table 2 above that the frequency R of the designated nickname in the information exchange between the user corresponding to the first electronic device and the user corresponding to the second electronic device is 6 (times/day), the fourth weight D is 0.6, and the first electronic device The frequency S of using the designated nickname in the voice communication between the user corresponding to the device and the user corresponding to the second electronic device is 3 (times/day), and the fifth weight E is 0.4. Combining the above formula (2), it can be obtained that the intimacy N between the user corresponding to the first electronic device and the user corresponding to the second electronic device is 4.8.
S413、第一电子设备判断第一电子设备与第二电子设备对应用户之间的亲密度N是否大于第三阈值。若是,则第一电子设备执行步骤S414。S413: The first electronic device determines whether the intimacy N between the corresponding users of the first electronic device and the second electronic device is greater than a third threshold. If yes, the first electronic device executes step S414.
其中,第三阈值可以是1、2、3等或者更大,在此不作限定。Wherein, the third threshold may be 1, 2, 3, etc. or greater, which is not limited here.
示例性的,第一电子设备对应用户与第二电子设备对应用户之间的亲密度N为4.8,第三阈值为4,则第一电子设备对应用户与第二电子设备对应用户之间的亲密度N(为4.8)大于第三阈值(为4),第一电子设备可以执行步骤S414。示例仅仅用于解释本申请,不应构成限定。Exemplarily, the intimacy N between the user corresponding to the first electronic device and the user corresponding to the second electronic device is 4.8, and the third threshold is 4, then the intimacy between the user corresponding to the first electronic device and the user corresponding to the second electronic device is When the degree N (which is 4.8) is greater than the third threshold (which is 4), the first electronic device may execute step S414. The examples are only used to explain the application and should not constitute a limitation.
S414、第一电子设备在指定位置显示第二电子设备对应用户的姓名和/或电话号码。S414: The first electronic device displays the name and/or phone number of the user corresponding to the second electronic device at the designated location.
其中,指定位置包括所述通讯录应用中的收藏界面(例如图5C所示的收藏界面530),和/或所述第一电子设备的主界面中通讯录应用图标的周围显示的快捷菜单(例如图8B所示的亲属常用联系人菜单820),和/或所述所述通讯录应用中的常用联系人界面(例如图6C所示的常用联系人界面650),和/或所述通讯录应用中联系人显示界面的第一显示区域(例如图6A所示的亲属常用联系人显示区域620)。Wherein, the designated location includes the favorite interface in the address book application (for example, the favorite interface 530 shown in FIG. 5C), and/or the shortcut menu displayed around the address book application icon in the main interface of the first electronic device ( For example, the frequently used contact menu 820 of relatives shown in FIG. 8B), and/or the frequently used contact interface in the address book application (for example, the frequently used contact interface 650 shown in FIG. 6C), and/or the communication The first display area of the contact display interface in the recording application (for example, the display area 620 of relatives' frequent contacts shown in FIG. 6A).
在一种实现方式中,第一电子设备可以接收输入操作,响应于该输入操作,第一电子设备可以显示如图5C所示的通讯录的收藏界面530。In an implementation manner, the first electronic device may receive an input operation, and in response to the input operation, the first electronic device may display a collection interface 530 of the address book as shown in FIG. 5C.
示例性的,如图5A所示,第一电子设备的触控屏上显示了主界面510,该主界面显示了一个放置有应用图标页面,该应用图标页面包括多个应用图标(例如,天气应用图标、股票应用图标、计算器应用图标、设置应用图标、邮件应用图标、支付宝应用图标、脸书应用图 标、浏览器应用图标、图库应用图标、音乐应用图标、视频应用图标、应用商店图标)。多个应用图标下方还包括页面指示符,以表明当前显示的页面与其他页面的位置关系,页面指示符的下方有多个托盘图标(例如,拨号应用图标、联系人应用图标、信息应用图标、相机应用图标),托盘图标在切换时保持显示。Exemplarily, as shown in FIG. 5A, a main interface 510 is displayed on the touch screen of the first electronic device. The main interface displays a page with application icons, and the application icon page includes multiple application icons (for example, weather Application icon, stock application icon, calculator application icon, setting application icon, mail application icon, Alipay application icon, Facebook application icon, browser application icon, gallery application icon, music application icon, video application icon, application store icon) . There are also page indicators below the multiple application icons to indicate the positional relationship between the currently displayed page and other pages. There are multiple tray icons below the page indicators (for example, dial-up application icon, contact application icon, information application icon, Camera application icon), the tray icon remains displayed when switching.
第一电子设备可以接收用户针对联系人应用图标511的输入操作512(例如点击),响应于该输入操作512,第一电子设备可以在触控屏上显示如图5B所示的联系人界面520。The first electronic device may receive an input operation 512 (for example, click) of the user on the contact application icon 511, and in response to the input operation 512, the first electronic device may display a contact interface 520 as shown in FIG. 5B on the touch screen. .
如图5B所示,第一电子设备的触控屏显示有联系人界面520,该联系人界面520的下方显示有拨号控件521、联系人控件522、收藏控件523。该联系人界面520上显示有联系人添加控件524、群组显示栏525、名片夹显示栏526、我的名片显示栏527、一个或多个联系人显示栏528。其中,拨号控件521可用于接收用户的输入操作(例如单击),以使第一电子设备的触控屏上可以显示拨号界面。联系人控件522可用于接收用户的输入操作(例如单击),以使第一电子设备的触控屏上可以显示该联系人界面520。收藏控件523可用于接收用户的输入操作(例如单击),以使第一电子设备的触控屏上可以显示联系人收藏界面。联系人添加控件524可用于接收用户的输入操作(例如单击),以添加新的联系人。As shown in FIG. 5B, the touch screen of the first electronic device displays a contact interface 520, and a dial control 521, a contact control 522, and a favorite control 523 are displayed below the contact interface 520. The contact interface 520 displays a contact adding control 524, a group display column 525, a contact card holder display column 526, a my business card display column 527, and one or more contact display columns 528. The dial control 521 can be used to receive a user's input operation (for example, a single click), so that the dial interface can be displayed on the touch screen of the first electronic device. The contact control 522 can be used to receive an input operation (for example, a single click) of the user, so that the contact interface 520 can be displayed on the touch screen of the first electronic device. The favorite control 523 can be used to receive a user's input operation (for example, a single click), so that the contact favorite interface can be displayed on the touch screen of the first electronic device. The contact adding control 524 may be used to receive an input operation (for example, a single click) from the user to add a new contact.
其中,该联系人显示栏528中显示有联系人的姓名,也可以显示联系人的姓名和电话号码。当有多个联系人显示栏时,这多个联系人信息显示栏可以按照联系人的姓名按照首字母或拼音的首字母从“A”至“Z”的顺序,从上往下排列。其中,联系人的姓名中首字符为符号的联系人显示栏,可以排列在首字母或拼音的首字母为“A”的联系人显示栏之前,也可以排在首字母或拼音的首字母为“Z”的联系人显示栏之后,在此不作限定。Wherein, the name of the contact is displayed in the contact display column 528, and the name and phone number of the contact can also be displayed. When there are multiple contact display columns, the multiple contact information display columns can be arranged from top to bottom in the order from "A" to "Z" according to the first letter or pinyin of the first letter of the contact's name. Among them, the contact display column whose first character is a symbol in a contact’s name can be arranged before the contact display column whose initial letter or pinyin’s initial letter is "A", or it can be arranged in the first letter or pinyin’s initial letter as After the "Z" contact is displayed, there is no limitation here.
第一电子设备可以接收用户针对收藏控件523的输入操作529(例如点击),响应于该输入操作529,第一电子设备可以在触控屏上显示如图5C所示的收藏界面530。The first electronic device may receive an input operation 529 (for example, clicking) of the user on the favorite control 523, and in response to the input operation 529, the first electronic device may display a favorite interface 530 as shown in FIG. 5C on the touch screen.
如图5C所示,该收藏界面530可以包括一个或多个收藏联系人显示栏531、亲属常用联系人显示区域540、添加收藏联系人控件534。该添加收藏联系人控件534可用于接收用户的输入添加联系人显示在该收藏界面530中。其中,该亲属常用联系人显示区域540显示有一个或多个亲属常用联系人显示栏541。亲属常用联系人显示栏541显示有亲属常用联系人备注的姓名(例如老婆、女儿、妈、爸等)、以及亲属常用联系人的电话号码等。其中,该一个或多个亲属常用联系人备注的姓名包括第二电子设备关联用户备注的姓名。例如,第二电子设备关联用户备注的姓名可以是“老婆”,第二电子设备关联的电话号码可以是“186 XXXX 0124”。示例仅仅用于解释本申请,不应构成限定。As shown in FIG. 5C, the favorite interface 530 may include one or more favorite contact display columns 531, a display area 540 for frequently used contacts of relatives, and a favorite contact add control 534. The add favorite contact control 534 can be used to receive the user's input to add a contact to be displayed in the favorite interface 530. Wherein, the display area 540 for frequently used contacts of relatives displays one or more display columns 541 for frequently used contacts of relatives. The display column 541 for frequently used contacts of relatives displays the names of frequently used contacts of relatives (for example, wife, daughter, mother, dad, etc.), and the telephone numbers of frequently used contacts of relatives. Wherein, the name of the remarks of the one or more frequent contacts of relatives includes the name of the remarks of the user associated with the second electronic device. For example, the name of the user remarks associated with the second electronic device may be "wife", and the phone number associated with the second electronic device may be "186 XXXX 0124". The examples are only used to explain the application and should not constitute a limitation.
在一种实现方式中,第一界面可以是如图6A所示的通讯录的联系人界面610,第一界面的指定位置可以是联系人界面610的亲属常用联系人显示区域620。In an implementation manner, the first interface may be the contact interface 610 of the address book as shown in FIG. 6A, and the designated position of the first interface may be the display area 620 of the relative contact frequently used in the contact interface 610.
第一电子设备可以接收用户针对如图5A中联系人应用图标511的输入操作(例如点击),响应于该输入操作(例如点击),第一电子设备可以显示出如图6A所示的联系人界面610。The first electronic device may receive the user's input operation (for example, click) on the contact application icon 511 in FIG. 5A, and in response to the input operation (for example, click), the first electronic device may display the contact as shown in FIG. 6A Interface 610.
示例性的,如图6A所示,该联系人界面610显示有拨号控件611、联系人控件612、收藏控件613、联系人添加控件614、群组显示栏615、名片夹显示栏616、我的名片显示栏617、一个或多个联系人显示栏618、亲属常用联系人显示区域620。其中,该亲属常用联系人显示区域620显示有一个或多个亲属常用联系人备注的姓名(例如老婆、女儿、妈、爸等)、以及亲属常用联系人的电话号码等。其中,该一个或多个亲属常用联系人备注的姓名包括第二电子设备关联用户备注的姓名。例如,第二电子设备关联用户备注的姓名可以是老婆,第二电 子设备关联的电话号码可以是“186 XXXX 0124”。示例仅仅用于解释本申请,不应构成限定。Exemplarily, as shown in FIG. 6A, the contact interface 610 displays a dial control 611, a contact control 612, a favorite control 613, a contact adding control 614, a group display bar 615, a business card holder display bar 616, and my A business card display column 617, one or more contact display columns 618, and a relative frequent contact display area 620. Wherein, the display area 620 for frequently used contacts of relatives displays the names of one or more frequently used contacts of relatives (for example, wife, daughter, mom, dad, etc.), and the phone numbers of frequently used contacts of relatives. Wherein, the name of the remarks of the one or more frequent contacts of relatives includes the name of the remarks of the user associated with the second electronic device. For example, the name of the user remarks associated with the second electronic device may be a wife, and the phone number associated with the second electronic device may be "186 XXXX 0124". The examples are only used to explain the application and should not constitute a limitation.
在一种实现方式中,第一界面可以是如图6C所示的通讯录的常用联系人界面650,第一界面的指定位置可以是如图6C所示常用联系人界面650中的亲属常用联系人显示区域660。In one implementation, the first interface may be the frequently used contact interface 650 of the address book as shown in FIG. 6C, and the designated position of the first interface may be the frequently used contact of relatives in the frequently used contact interface 650 as shown in FIG. 6C. People display area 660.
示例性的,第一电子设备可以接收用户针对如图5A中联系人应用图标511的输入操作(例如点击),响应于该输入操作(例如点击),第一电子设备可以显示出如图6B所示的联系人界面630。其中,如图6B所示,第一电子设备的触控屏在联系人界面630的下方还显示有拨号控件631、联系人控件632、收藏控件633、常用联系人控件634。其中,该联系人界面630与该联系人控件632关联,当第一电子设备的触控屏显示出联系人界面630时,该联系人控件632使能。该联系人界面630包括群组显示栏635、名片夹显示栏636、我的名片显示栏637、一个或多个联系人显示栏638。Exemplarily, the first electronic device may receive an input operation (for example, click) of the user on the contact application icon 511 in FIG. 5A, and in response to the input operation (for example, click), the first electronic device may display a display as shown in FIG. 6B. Show contact interface 630. Wherein, as shown in FIG. 6B, the touch screen of the first electronic device also displays a dial control 631, a contact control 632, a favorite control 633, and a frequently used contact control 634 below the contact interface 630. The contact interface 630 is associated with the contact control 632. When the contact interface 630 is displayed on the touch screen of the first electronic device, the contact control 632 is enabled. The contact interface 630 includes a group display column 635, a name card holder display column 636, a my business card display column 637, and one or more contact display columns 638.
第一电子设备可以接收用户针对该常用联系人控件634的输入操作640(例如点击),响应于该输入操作640,第一电子设备可以显示出如图6C所示的常用联系人界面650。其中,如图6C所示,该常用联系人界面650包括亲属常用联系人显示区域660。其中,该亲属常用联系人显示区域620显示有一个或多个亲属常用联系人备注的姓名(例如老婆、女儿、妈、爸等)、以及亲属常用联系人的电话号码等。其中,该一个或多个亲属常用联系人备注的姓名包括第二电子设备关联用户备注的姓名。例如,第二电子设备关联用户备注的姓名可以是老婆,第二电子设备关联的电话号码可以是“186 XXXX 0124”。示例仅仅用于解释本申请,不应构成限定。The first electronic device may receive an input operation 640 (for example, a click) of the user on the common contact control 634, and in response to the input operation 640, the first electronic device may display a common contact interface 650 as shown in FIG. 6C. Wherein, as shown in FIG. 6C, the frequently used contact interface 650 includes a display area 660 for frequently used contacts of relatives. Wherein, the display area 620 for frequently used contacts of relatives displays the names of one or more frequently used contacts of relatives (for example, wife, daughter, mom, dad, etc.), and the phone numbers of frequently used contacts of relatives. Wherein, the name of the remarks of the one or more frequent contacts of relatives includes the name of the remarks of the user associated with the second electronic device. For example, the name of the user remarks associated with the second electronic device may be a wife, and the phone number associated with the second electronic device may be "186 XXXX 0124". The examples are only used to explain the application and should not constitute a limitation.
在一种实现方式中,第一电子设备还可以通过如图7A、图7B所示的流程步骤,快速的显示出如图5C所示的收藏界面530或如图6C所示的常用联系人界面650。In an implementation manner, the first electronic device may also quickly display the favorite interface 530 as shown in FIG. 5C or the frequently used contact interface as shown in FIG. 6C through the process steps shown in FIG. 7A and FIG. 7B 650.
示例性的,如图7A所示,第一电子设备通过触控屏显示出了主界面510,其中,针对主界面510的文字描述可以参考前述图5A所示实施例的文字部分,在此不再赘述。第一电子设备可以接收用户针对联系人应用图标511的输入操作712(例如长按),响应于该输入操作712,第一电子设备可以显示出如图7B所示的联系人快捷菜单720。Exemplarily, as shown in FIG. 7A, the first electronic device displays the main interface 510 through the touch screen. For the text description of the main interface 510, please refer to the text part of the embodiment shown in FIG. 5A. Repeat it again. The first electronic device may receive an input operation 712 (for example, a long press) of the user on the contact application icon 511, and in response to the input operation 712, the first electronic device may display a contact shortcut menu 720 as shown in FIG. 7B.
如图7B所示,该快捷菜单720包括常用联系人选项721和其他选项(例如我的名片选项、扫名片选项、新建联系人选项等)。第一电子设备可以接收用户针对该常用联系人选项721的输入操作722(例如点击),响应于该输入操作722,第一电子设备可以显示如图5C所示的收藏界面530或如图6C所示的常用联系人界面650。以上示例仅仅用于解释本申请,不应构成限定。As shown in FIG. 7B, the shortcut menu 720 includes frequently-used contact options 721 and other options (for example, my business card option, business card scanning option, new contact option, etc.). The first electronic device may receive an input operation 722 (for example, click) of the user for the frequently-used contact option 721. In response to the input operation 722, the first electronic device may display a favorite interface 530 as shown in FIG. 5C or as shown in FIG. 6C. The frequently used contact interface 650 shown. The above examples are only used to explain the application and should not constitute a limitation.
在一种实现方式中,第一界面可以是如图8B所示的主界面810,第一界面的指定位置可以是如图8B所示的亲属常用联系人菜单820。In an implementation manner, the first interface may be the main interface 810 as shown in FIG. 8B, and the designated position of the first interface may be the menu 820 of relatives frequently used contacts as shown in FIG. 8B.
示例性的,如图8A所示,第一电子设备显示出了主界面810,该主界面810与上述图5A所示的主界面510相同,因此,上述针对主界面510的文字描述部分也适用于主界面810,具体内容可以参考前述图5A所示实施例,在此不再赘述。Exemplarily, as shown in FIG. 8A, the first electronic device displays a main interface 810. The main interface 810 is the same as the main interface 510 shown in FIG. 5A. Therefore, the text description part of the main interface 510 described above is also applicable. For the main interface 810, the specific content can refer to the embodiment shown in FIG. 5A, which will not be repeated here.
第一电子设备可以接收用户针对主界面810中联系人应用图标811的输入操作812(例如长按),响应于该输入操作812,第一电子设备可以显示出如图8B所示的亲属常用联系人菜单820。The first electronic device may receive an input operation 812 (for example, a long press) of the user on the contact application icon 811 in the main interface 810, and in response to the input operation 812, the first electronic device may display the frequently used contacts of relatives as shown in FIG. 8B People menu 820.
示例性的,当该输入操作812为长按操作时,响应于该该输入操作812,第一电子设备可以判断该该输入操作812的按压时长是否大于第一时间阈值,若是,则第一电子设备可以显示出如图8B所示的亲属常用联系人菜单820。在一种实现方式中,当该输入操作812为按压操作时,响应于该该输入操作812,第一电子设备可以判断该该输入操作812的按压压力度是否大于第一压力阈值,若是,则第一电子设备可以显示出如图8B所示的亲属常用联系人菜单820。Exemplarily, when the input operation 812 is a long-press operation, in response to the input operation 812, the first electronic device may determine whether the pressing duration of the input operation 812 is greater than a first time threshold, and if so, the first electronic device The device may display a menu 820 of frequently used contacts of relatives as shown in FIG. 8B. In one implementation, when the input operation 812 is a pressing operation, in response to the input operation 812, the first electronic device can determine whether the pressing pressure of the input operation 812 is greater than the first pressure threshold, and if so, then The first electronic device may display a menu 820 of frequent contacts of relatives as shown in FIG. 8B.
如图8B所示,该亲属常用联系人菜单820可以包括一个或多个亲属常用联系人选项821。其中,该一个或多个亲属常用联系人选项821显示有亲属常用联系人备注的姓名(例如老婆、女儿、妈、爸等)、其中,每一个亲属常用联系人备注的姓名关联有一个电话号码。其中,该一个或多个亲属常用联系人备注的姓名包括第二电子设备关联用户备注的姓名。例如,第二电子设备关联用户备注的姓名可以是“老婆”。当第一电子设备接收用户针对亲属常用联系人选项821(例如“老婆”选项)的输入操作(例如点击),响应于该针对亲属常用联系人选项821的输入操作(例如点击),第一电子设备可以向该亲属常用联系人选项821对应的电子设备(例如第二电子设备)拨打电话或发送信息。上述示例仅仅用于解释本申请,不应构成限定。As shown in FIG. 8B, the menu 820 of frequent contacts of relatives may include one or more options 821 of frequent contacts of relatives. Among them, the one or more frequent contact options for relatives 821 displays the names of the frequently used contacts of the relatives (such as wife, daughter, mom, dad, etc.). Among them, the name of the frequently used contacts of each relative is associated with a phone number. . Wherein, the name of the remarks of the one or more frequent contacts of relatives includes the name of the remarks of the user associated with the second electronic device. For example, the name of the user remark associated with the second electronic device may be "wife". When the first electronic device receives the user's input operation (for example, click) on the option 821 (for example, the "wife" option) of the relatives frequently used contacts, in response to the input operation (for example, click) of the option 821 for the relatives frequently used contacts, the first electronic device The device can make a call or send a message to the electronic device (for example, the second electronic device) corresponding to the relative frequent contact option 821. The above examples are only used to explain the application and should not constitute a limitation.
通过本申请实施例,可以实现利用机主的设备(第一电子设备)与联系人的设备(第二电子设备)的通话频率、信息沟通交流中昵称出现的频率、通话开始时使用昵称的频率综合判断该联系人是否为机主的常用亲属联系人。在机主的设备判断为该联系人是常用亲属联系人之后,可以将该联系人的信息(包括电话号码)在特定的界面位置上显示。这样,可以方便用户快速的与该常用亲属联系人进行通话。Through the embodiments of this application, it is possible to use the frequency of calls between the owner's device (first electronic device) and the contact's device (second electronic device), the frequency of nicknames appearing in information communication, and the frequency of using nicknames at the beginning of a call. Comprehensively judge whether the contact person is a frequent relative contact of the owner. After the device owner's device determines that the contact is a common relative contact, the information (including the phone number) of the contact can be displayed on a specific interface position. In this way, it is convenient for the user to quickly talk to the frequently used relative contacts.
以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。The above embodiments are only used to illustrate the technical solutions of the present application, not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still compare the previous embodiments. The recorded technical solutions are modified, or some of the technical features are equivalently replaced; these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims (20)
- 一种显示联系人的方法,其特征在于,包括:A method for displaying contacts, characterized in that it comprises:第一电子设备接收第一输入操作;The first electronic device receives the first input operation;响应于所述第一输入操作,所述第一电子设备在所述第一电子设备的通讯录应用中添加第一用户的联系人信息;其中,所述第一用户的联系人信息包括所述第一用户的电话号码和姓名,所述第一用户的联系人信息被保存在所述通讯录应用中的第一位置;In response to the first input operation, the first electronic device adds the contact information of the first user in the address book application of the first electronic device; wherein the contact information of the first user includes the The phone number and name of the first user, and the contact information of the first user is stored in the first position in the address book application;所述第一电子设备判断所述通讯录应用中所述第一用户的姓名是否为指定昵称,若是,且所述第一电子设备与所述第一用户的关联度大于第一阈值,将所述第一用户的姓名和/或电话号码显示在指定位置,所述指定位置不同于所述第一位置;其中,所述第一电子设备与所述第一用户的关联度由以下参数确定:所述第一电子设备与所述第一用户的通话频率、法定节假日时所述第一电子设备与所述第一用户在同一地理位置的频率和法定节假日时所述第一电子设备与所述第一用户的第二电子设备连接同一网络的频率。The first electronic device determines whether the name of the first user in the address book application is a designated nickname, and if so, and the degree of association between the first electronic device and the first user is greater than a first threshold, the The name and/or phone number of the first user are displayed in a designated location, and the designated location is different from the first location; wherein the degree of association between the first electronic device and the first user is determined by the following parameters: The frequency of the call between the first electronic device and the first user, the frequency of the first electronic device and the first user in the same geographic location on legal holidays, and the frequency of the first electronic device and the first user on legal holidays The frequency at which the second electronic device of the first user is connected to the same network.
- 根据权利要求1所述的方法,其特征在于,所述指定昵称包括爷爷、奶奶、爸、妈、老公、老婆、女儿、儿子、宝贝、哥、姐、弟、妹、叔、姨、姑、舅、婶、舅妈、伯父或伯母。The method according to claim 1, wherein the designated nicknames include grandpa, grandma, father, mother, husband, wife, daughter, son, baby, brother, sister, brother, sister, uncle, aunt, aunt, Uncle, aunt, aunt, uncle or aunt.
- 根据权利要求1所述的方法,其特征在于,所述指定位置包括所述通讯录应用中的收藏界面,和/或所述第一电子设备的主界面中通讯录应用图标的周围显示的快捷菜单,和/或所述所述通讯录应用中的常用联系人界面,和/或所述通讯录应用中联系人显示界面的第一显示区域。The method according to claim 1, wherein the designated location includes a favorite interface in the address book application, and/or shortcuts displayed around the address book application icon in the main interface of the first electronic device Menu, and/or the frequently used contact interface in the address book application, and/or the first display area of the contact display interface in the address book application.
- 根据权利要求3所述的方法,其特征在于,当所述指定位置包括所述快捷菜单时,所述方法还包括:The method according to claim 3, wherein when the designated location includes the shortcut menu, the method further comprises:所述第一电子设备接收针对所述通讯录应用图标的长按操作或按压操作;Receiving, by the first electronic device, a long press operation or a pressing operation on the icon of the address book application;响应于所述长按操作或所述按压操作,所述第一电子设备在所述通讯录应用图标的周围显示所述快捷菜单。In response to the long press operation or the pressing operation, the first electronic device displays the shortcut menu around the address book application icon.
- 根据权利要求1或2所述的方法,其特征在于,所述第一电子设备判断所述通讯录应用中所述第一用户的姓名是否为指定昵称,包括:The method according to claim 1 or 2, wherein the first electronic device judging whether the name of the first user in the address book application is a designated nickname comprises:所述第一电子设备判断所述通讯录应用中所述第一用户的姓氏或者名字中的一个是否为所述指定昵称。The first electronic device determines whether one of the last name or first name of the first user in the address book application is the designated nickname.
- 根据权利要求1-5任一权利要求所述的方法,其特征在于,若所述通讯录应用中所述第一用户的姓名与所述指定昵称不同,且所述第一电子设备与所述第一用户的关联度大于第二阈值时,所述方法还包括:The method according to any one of claims 1-5, wherein if the name of the first user in the address book application is different from the designated nickname, and the first electronic device is different from the When the degree of association of the first user is greater than the second threshold, the method further includes:所述第一电子设备判断所述第一用户的亲密度是否大于第三阈值,若是,则所述第一电子设备将所述第一用户的姓名和/或电话号码显示在所述指定位置;The first electronic device determines whether the intimacy of the first user is greater than a third threshold, and if so, the first electronic device displays the name and/or phone number of the first user in the designated location;其中,所述第一电子设备与所述第一用户的亲密度由所述第一电子设备与所述第一用户 的信息交流中出现所述指定昵称的频率和所述第一电子设备与所述第一用户的语音交流中出现所述指定昵称的频率确定。Wherein, the degree of intimacy between the first electronic device and the first user is determined by the frequency at which the designated nickname appears in the information exchange between the first electronic device and the first user and the relationship between the first electronic device and the user. The frequency of the designated nickname in the voice communication of the first user is determined.
- 根据权利要求1或6所述的方法,其特征在于,所述方法还包括:The method according to claim 1 or 6, wherein the method further comprises:所述第一电子设备向服务器发送所述第一电子设备的以下信息中的至少一个:通讯录、与所述第一用户的电子设备的通话记录、位置信息或网络连接信息;Sending, by the first electronic device, at least one of the following information of the first electronic device to the server: an address book, call records with the electronic device of the first user, location information, or network connection information;所述第一电子设备接收所述服务器发送的所述第一电子设备与所述第一用户的关联度;Receiving, by the first electronic device, the degree of association between the first electronic device and the first user sent by the server;其中,所述第一电子设备与所述第一用户的关联度由所述服务器根据以下参数确定:所述第一电子设备与所述第一用户的通话频率和所述法定节假日时所述第一电子设备与所述第一用户在同一地理位置的频率和所述法定节假日时所述第一电子设备与所述第一用户的第二电子设备连接同一网络的频率确定;Wherein, the degree of association between the first electronic device and the first user is determined by the server according to the following parameters: the frequency of calls between the first electronic device and the first user and the first time on the legal holiday The frequency of an electronic device and the first user in the same geographic location and the frequency of connecting the first electronic device and the second electronic device of the first user to the same network on the legal holiday;其中,所述第一电子设备与所述第一用户的通话频率由所述服务器根据所述第一电子设备与所述第一用户的通话记录确定,所述法定节假日时在同一地理位置的频率由所述服务器根据所述第一电子设备的位置信息和所述第一用户的第二电子设备的位置信息确定,所述法定节假日连接同一网络的频率由所述服务器根据所述第一电子设备的位置信息和所述第一用户的第二电子设备的位置信息确定。Wherein, the frequency of the call between the first electronic device and the first user is determined by the server according to the call record of the first electronic device and the first user, and the frequency of the call in the same geographic location on the legal holiday Determined by the server according to the location information of the first electronic device and the location information of the second electronic device of the first user, the frequency of connecting to the same network on the legal holidays is determined by the server according to the first electronic device The location information of and the location information of the second electronic device of the first user are determined.
- 根据权利要求1或6或7任一权利要求所述的方法,其特征在于,所述第一电子设备与所述第一用户的关联度根据以下公式确定:The method according to any one of claims 1 or 6 or 7, wherein the degree of association between the first electronic device and the first user is determined according to the following formula:F=X×A+Y×B+Z×CF=X×A+Y×B+Z×C其中,F为所述第一电子设备与所述第一用户之间的关联度,X为所述第一电子设备和所述第一用户的通话频率,Y为所述法定节假日时所述第一电子设备和所述第一用户在同一个地理位置的频率,Z为所述法定节假日时所述第一电子设备和所述第一用户的第二电子设备连接同一个网络的频率,A为所述通话频率对应的权值,B为所述法定节假日时处于同一个地理位置的频率对应的权值,C为所述法定节假日时连接同一个网络的频率对应的权值。Wherein, F is the degree of association between the first electronic device and the first user, X is the call frequency between the first electronic device and the first user, and Y is the first electronic device during the legal holiday. The frequency at which an electronic device and the first user are in the same geographic location, Z is the frequency at which the first electronic device and the second electronic device of the first user are connected to the same network during the legal holiday, and A is For the weight corresponding to the call frequency, B is the weight corresponding to the frequency in the same geographic location during the legal holiday, and C is the weight corresponding to the frequency connecting to the same network during the legal holiday.
- 根据权利要求6所述的方法,其特征在于,所述第一电子设备与所述第一用户的亲密度根据以下公式确定:The method according to claim 6, wherein the intimacy between the first electronic device and the first user is determined according to the following formula:N=R×D+S×EN=R×D+S×E其中,N为所述第一电子设备与所述第一用户之间的亲密度,R为所述第一电子设备与所述第一用户的信息交流中出现所述指定昵称的频率,S为所述第一电子设备与所述第一用户的语音交流中出现所述指定昵称的频率,D为所述信息交流中出现所述指定昵称的频率对应的权值,E为所述语音交流中出现所述指定昵称的频率对应的权值。Where, N is the intimacy between the first electronic device and the first user, R is the frequency of the designated nickname in the information exchange between the first electronic device and the first user, and S is The frequency at which the designated nickname appears in the voice communication between the first electronic device and the first user, D is the weight corresponding to the frequency at which the designated nickname appears in the information exchange, and E is the frequency in the voice communication The weight corresponding to the frequency of the specified nickname.
- 一种电子设备,所述电子设备为第一电子设备,其特征在于,包括:一个或多个处理器、存储器、触控屏;所述存储器、所述触控屏与所述一个或多个处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,所述一个或多个处理器调用所述计算机指令以使得所述第一电子设备执行:An electronic device, the electronic device being a first electronic device, characterized in that it comprises: one or more processors, a memory, a touch screen; the memory, the touch screen, and the one or more The processor is coupled, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors invoke the computer instructions to cause the first electronic device to execute:接收第一输入操作;Receive the first input operation;响应于所述第一输入操作,在所述第一电子设备的通讯录应用中添加第一用户的联系人 信息;其中,所述第一用户的联系人信息包括所述第一用户的电话号码和姓名,所述第一用户的联系人信息被保存在所述通讯录应用中的第一位置;In response to the first input operation, add the contact information of the first user to the address book application of the first electronic device; wherein, the contact information of the first user includes the phone number of the first user And name, the contact information of the first user is stored in the first location in the address book application;判断所述通讯录应用中所述第一用户的姓名是否为指定昵称,若是,且所述第一电子设备与所述第一用户的关联度大于第一阈值,将所述第一用户的姓名和/或电话号码显示在指定位置,所述指定位置不同于所述第一位置;其中,所述第一电子设备与所述第一用户的关联度由以下参数确定:所述第一电子设备与所述第一用户的通话频率、法定节假日时所述第一电子设备与所述第一用户在同一地理位置的频率和法定节假日时所述第一电子设备与所述第一用户的电子设备连接同一网络的频率。Determine whether the name of the first user in the address book application is a designated nickname, if so, and the degree of association between the first electronic device and the first user is greater than a first threshold, the name of the first user And/or the phone number is displayed in a designated location, the designated location is different from the first location; wherein the degree of association between the first electronic device and the first user is determined by the following parameters: the first electronic device The frequency of calls with the first user, the frequency at which the first electronic device and the first user are in the same geographic location during legal holidays, and the frequency of the first electronic device and the first user's electronic equipment during legal holidays How often to connect to the same network.
- 根据权利要求10所述的电子设备,其特征在于,所述指定昵称包括爷爷、奶奶、爸、妈、老公、老婆、女儿、儿子、宝贝、哥、姐、弟、妹、叔、姨、姑、舅、婶、舅妈、伯父或伯母。The electronic device according to claim 10, wherein the designated nicknames include grandpa, grandma, father, mother, husband, wife, daughter, son, baby, brother, sister, brother, sister, uncle, aunt, aunt , Uncle, aunt, aunt, uncle or aunt.
- 根据权利要求10所述的电子设备,其特征在于,所述指定位置包括所述通讯录应用中的收藏界面,和/或所述第一电子设备的主界面中通讯录应用图标的周围显示的快捷菜单,和/或所述所述通讯录应用中的常用联系人界面,和/或所述通讯录应用中联系人显示界面的第一显示区域。The electronic device according to claim 10, wherein the designated location includes a favorite interface in the address book application, and/or an icon displayed around the address book application icon in the main interface of the first electronic device The shortcut menu, and/or the frequently used contact interface in the address book application, and/or the first display area of the contact display interface in the address book application.
- 根据权利要求12所述的电子设备,其特征在于,所述第一电子设备还用于当所述指定位置包括所述快捷菜单时,执行:The electronic device according to claim 12, wherein the first electronic device is further configured to execute when the designated location includes the shortcut menu:接收针对所述通讯录应用图标的长按操作或按压操作;Receiving a long press operation or a pressing operation on the icon of the address book application;响应于所述长按操作或所述按压操作,在所述通讯录应用图标的周围显示所述快捷菜单。In response to the long press operation or the pressing operation, the shortcut menu is displayed around the icon of the address book application.
- 根据权利要求10或11所述的电子设备,其特征在于,所述判断所述通讯录应用中所述第一用户的姓名是否为指定昵称,包括:The electronic device according to claim 10 or 11, wherein the determining whether the name of the first user in the address book application is a designated nickname comprises:判断所述通讯录应用中所述第一用户的姓氏或者名字中的一个是否为所述指定昵称。Determine whether one of the surname or first name of the first user in the address book application is the designated nickname.
- 根据权利要求10-14任一权利要求所述的电子设备,其特征在于,若所述通讯录应用中所述第一用户的姓名与所述指定昵称不同,且所述第一电子设备与所述第一用户的关联度大于第二阈值时,所述第一电子设备还用于执行:The electronic device according to any one of claims 10-14, wherein if the name of the first user in the address book application is different from the designated nickname, and the first electronic device is different from the designated nickname, When the degree of association of the first user is greater than the second threshold, the first electronic device is further configured to execute:判断所述第一用户的亲密度是否大于第三阈值,若是,则将所述第一用户的姓名和/或电话号码显示在所述指定位置;Judging whether the intimacy of the first user is greater than a third threshold, and if so, displaying the name and/or phone number of the first user in the designated location;其中,所述第一电子设备与所述第一用户的亲密度由所述第一电子设备与所述第一用户的信息交流中出现所述指定昵称的频率和所述第一电子设备与所述第一用户的语音交流中出现所述指定昵称的频率确定。Wherein, the degree of intimacy between the first electronic device and the first user is determined by the frequency at which the designated nickname appears in the information exchange between the first electronic device and the first user and the relationship between the first electronic device and the user. The frequency of the designated nickname in the voice communication of the first user is determined.
- 根据权利要求10或15所述的电子设备,其特征在于,所述第一电子设备还用于执行:The electronic device according to claim 10 or 15, wherein the first electronic device is further configured to execute:向服务器发送所述第一电子设备的以下信息中的至少一个:通讯录、与所述第一用户的电子设备的通话记录、位置信息或网络连接信息;Sending at least one of the following information of the first electronic device to the server: an address book, call records with the electronic device of the first user, location information, or network connection information;接收所述服务器发送的所述第一电子设备与所述第一用户的关联度;Receiving the degree of association between the first electronic device and the first user sent by the server;其中,所述第一电子设备与所述第一用户的关联度由所述服务器根据以下参数确定:所述第一电子设备与所述第一用户的通话频率和所述法定节假日时所述第一电子设备与所述第一用户在同一地理位置的频率和所述法定节假日时所述第一电子设备与所述第一用户的电子设备连接同一网络的频率确定;Wherein, the degree of association between the first electronic device and the first user is determined by the server according to the following parameters: the frequency of calls between the first electronic device and the first user and the first time on the legal holiday Determine the frequency of an electronic device and the first user in the same geographic location and the frequency of connecting the first electronic device and the electronic device of the first user to the same network on the legal holiday;其中,所述第一电子设备与所述第一用户的通话频率由所述服务器根据所述第一电子设备与所述第一用户的通话记录确定,所述法定节假日时在同一地理位置的频率由所述服务器根据所述第一电子设备的位置信息和所述第一用户的第二电子设备的位置信息确定,所述法定节假日连接同一网络的频率由所述服务器根据所述第一电子设备的位置信息和所述第一用户的第二电子设备的位置信息确定。Wherein, the frequency of the call between the first electronic device and the first user is determined by the server according to the call record of the first electronic device and the first user, and the frequency of the call in the same geographic location on the legal holiday Determined by the server according to the location information of the first electronic device and the location information of the second electronic device of the first user, the frequency of connecting to the same network on the legal holidays is determined by the server according to the first electronic device The location information of and the location information of the second electronic device of the first user are determined.
- 根据权利要求10或15或16任一权利要求所述的电子设备,其特征在于,所述第一电子设备与所述第一用户的关联度根据以下公式确定:The electronic device according to any one of claims 10, 15, or 16, wherein the degree of association between the first electronic device and the first user is determined according to the following formula:F=X×A+Y×B+Z×CF=X×A+Y×B+Z×C其中,F为所述第一电子设备与所述第一用户之间的关联度,X为所述第一电子设备和所述第一用户的通话频率,Y为所述法定节假日时所述第一电子设备和所述第一用户在同一个地理位置的频率,Z为所述法定节假日时所述第一电子设备和所述第一用户的第二电子设备连接同一个网络的频率,A为所述通话频率对应的权值,B为所述法定节假日时处于同一个地理位置的频率对应的权值,C为所述法定节假日时连接同一个网络的频率对应的权值。Wherein, F is the degree of association between the first electronic device and the first user, X is the call frequency between the first electronic device and the first user, and Y is the first electronic device during the legal holiday. The frequency at which an electronic device and the first user are in the same geographic location, Z is the frequency at which the first electronic device and the second electronic device of the first user are connected to the same network during the legal holiday, and A is For the weight corresponding to the call frequency, B is the weight corresponding to the frequency in the same geographic location during the legal holiday, and C is the weight corresponding to the frequency connecting to the same network during the legal holiday.
- 根据权利要求15所述的电子设备,其特征在于,所述第一电子设备与所述第一用户的亲密度根据以下公式确定:The electronic device according to claim 15, wherein the intimacy between the first electronic device and the first user is determined according to the following formula:N=R×D+S×EN=R×D+S×E其中,N为所述第一电子设备与所述第一用户之间的亲密度,R为所述第一电子设备与所述第一用户的信息交流中出现所述指定昵称的频率,S为所述第一电子设备与所述第一用户的语音交流中出现所述指定昵称的频率,D为所述信息交流中出现所述指定昵称的频率对应的权值,E为所述语音交流中出现所述指定昵称的频率对应的权值。Where, N is the intimacy between the first electronic device and the first user, R is the frequency of the designated nickname in the information exchange between the first electronic device and the first user, and S is The frequency at which the designated nickname appears in the voice communication between the first electronic device and the first user, D is the weight corresponding to the frequency at which the designated nickname appears in the information exchange, and E is the frequency in the voice communication The weight corresponding to the frequency of the specified nickname.
- 一种计算机存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1至9任一项所述的方法。A computer storage medium, characterized by comprising computer instructions, which when the computer instructions run on an electronic device, causes the electronic device to execute the method according to any one of claims 1 to 9.
- 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1至9任一项所述的方法。A computer program product, characterized in that, when the computer program product runs on a computer, the computer is caused to execute the method according to any one of claims 1 to 9.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910067480.6A CN109756614A (en) | 2019-01-24 | 2019-01-24 | A kind of method and relevant apparatus showing contact person |
CN201910067480.6 | 2019-01-24 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020151408A1 true WO2020151408A1 (en) | 2020-07-30 |
Family
ID=66406037
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/125805 WO2020151408A1 (en) | 2019-01-24 | 2019-12-17 | Contact displaying method and related device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109756614A (en) |
WO (1) | WO2020151408A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113490060A (en) * | 2020-09-09 | 2021-10-08 | 青岛海信电子产业控股股份有限公司 | Display device and method for determining common contact |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109756614A (en) * | 2019-01-24 | 2019-05-14 | 华为技术有限公司 | A kind of method and relevant apparatus showing contact person |
CN114726956B (en) * | 2022-04-11 | 2024-03-19 | 中国联合网络通信集团有限公司 | Telephone incoming call processing method and device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101951426A (en) * | 2010-09-10 | 2011-01-19 | 宇龙计算机通信科技(深圳)有限公司 | Contact person grouping method and terminal |
CN102014203A (en) * | 2010-10-14 | 2011-04-13 | 宇龙计算机通信科技(深圳)有限公司 | Contact person menu intelligent generation method, system and mobile terminal |
CN102857605A (en) * | 2012-07-23 | 2013-01-02 | 北京小米科技有限责任公司 | Grouping method and apparatus of contacts |
US20150269164A1 (en) * | 2014-03-24 | 2015-09-24 | Samsung Electronics Co., Ltd. | Electronic device and contact display method therefor |
CN106302924A (en) * | 2016-09-18 | 2017-01-04 | 乐视控股(北京)有限公司 | The sort method of contact person and device |
CN107613084A (en) * | 2017-10-09 | 2018-01-19 | 陈包容 | The methods, devices and systems that a kind of address book contact is grouped automatically |
CN109756614A (en) * | 2019-01-24 | 2019-05-14 | 华为技术有限公司 | A kind of method and relevant apparatus showing contact person |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103501374B (en) * | 2013-09-27 | 2016-03-02 | 中国联合网络通信集团有限公司 | Telephone directory sequencing method and device, terminal |
US9516115B2 (en) * | 2014-12-05 | 2016-12-06 | Software 263 Technology (Beijing) Co., Ltd. | Softphone user interface system and method |
CN105979057A (en) * | 2016-07-27 | 2016-09-28 | 乐视控股(北京)有限公司 | Contact sorting method and device |
EP3301887A1 (en) * | 2016-09-28 | 2018-04-04 | Thomson Licensing | Method and apparatus for building favorite telephone list for multiple devices |
CN106550085A (en) * | 2016-12-09 | 2017-03-29 | 北京小米移动软件有限公司 | Contact person's display methods and device |
CN107124501A (en) * | 2017-06-22 | 2017-09-01 | 深圳传音通讯有限公司 | The management method and device of contact person |
CN107592399A (en) * | 2017-09-26 | 2018-01-16 | 广东欧珀移动通信有限公司 | The display methods and mobile terminal of a kind of contact person |
-
2019
- 2019-01-24 CN CN201910067480.6A patent/CN109756614A/en not_active Withdrawn
- 2019-12-17 WO PCT/CN2019/125805 patent/WO2020151408A1/en active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101951426A (en) * | 2010-09-10 | 2011-01-19 | 宇龙计算机通信科技(深圳)有限公司 | Contact person grouping method and terminal |
CN102014203A (en) * | 2010-10-14 | 2011-04-13 | 宇龙计算机通信科技(深圳)有限公司 | Contact person menu intelligent generation method, system and mobile terminal |
CN102857605A (en) * | 2012-07-23 | 2013-01-02 | 北京小米科技有限责任公司 | Grouping method and apparatus of contacts |
US20150269164A1 (en) * | 2014-03-24 | 2015-09-24 | Samsung Electronics Co., Ltd. | Electronic device and contact display method therefor |
CN106302924A (en) * | 2016-09-18 | 2017-01-04 | 乐视控股(北京)有限公司 | The sort method of contact person and device |
CN107613084A (en) * | 2017-10-09 | 2018-01-19 | 陈包容 | The methods, devices and systems that a kind of address book contact is grouped automatically |
CN109756614A (en) * | 2019-01-24 | 2019-05-14 | 华为技术有限公司 | A kind of method and relevant apparatus showing contact person |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113490060A (en) * | 2020-09-09 | 2021-10-08 | 青岛海信电子产业控股股份有限公司 | Display device and method for determining common contact |
CN113490060B (en) * | 2020-09-09 | 2023-08-01 | 青岛海信电子产业控股股份有限公司 | Display equipment and method for determining common contact person |
Also Published As
Publication number | Publication date |
---|---|
CN109756614A (en) | 2019-05-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11450322B2 (en) | Speech control method and electronic device | |
WO2021017889A1 (en) | Display method of video call appliced to electronic device and related apparatus | |
WO2020224485A1 (en) | Screen capture method and electronic device | |
WO2021213164A1 (en) | Application interface interaction method, electronic device, and computer readable storage medium | |
WO2020134869A1 (en) | Electronic device operating method and electronic device | |
WO2020155014A1 (en) | Smart home device sharing system and method, and electronic device | |
US11785128B2 (en) | Caller identification display method based on application, and terminal device | |
CN110401767B (en) | Information processing method and apparatus | |
CN113961157B (en) | Display interaction system, display method and equipment | |
US20230351048A1 (en) | Application Permission Management Method and Apparatus, and Electronic Device | |
WO2021052204A1 (en) | Address book-based device discovery method, audio and video communication method, and electronic device | |
WO2020259554A1 (en) | Learning-based keyword search method, and electronic device | |
CN114115770B (en) | Display control method and related device | |
US20230168802A1 (en) | Application Window Management Method, Terminal Device, and Computer-Readable Storage Medium | |
WO2021031865A1 (en) | Call method and apparatus | |
WO2020151408A1 (en) | Contact displaying method and related device | |
WO2022143180A1 (en) | Collaborative display method, terminal device, and computer readable storage medium | |
WO2020192716A1 (en) | System language switching method and related apparatus | |
US20230418630A1 (en) | Operation sequence adding method, electronic device, and system | |
WO2022022674A1 (en) | Application icon layout method and related apparatus | |
CN117724863A (en) | Target signal processing method and electronic equipment | |
WO2022042774A1 (en) | Profile picture display method and electronic device | |
CN112840680A (en) | Position information processing method and related device | |
CN116048236B (en) | Communication method and related device | |
WO2024021691A1 (en) | Display method and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19911017 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19911017 Country of ref document: EP Kind code of ref document: A1 |