This application claims priority to Chinese Patent Application No. 202210653682.0, filed with the China National Intellectual Property Administration on Jun. 10, 2022 and entitled “INCOMING CALL DISPLAY METHOD AND ELECTRONIC DEVICE”, which is incorporated herein by reference in its entirety.
This application relates to the field of terminal technologies, and in particular, to an incoming call display method and an electronic device.
With the continuous development of an electronic device, use of the electronic device becomes indispensable for people's life. For example, a mobile phone is a call device (that is, a device that can connect a mobile communication network) that has a mobile communication capability, and a person can use the mobile phone to make a call. A personal computer is an electronic device that has a strong computing capability, and a person can use the personal computer for office work. A tablet computer is a large-screen portable device, and a person can use the tablet computer for light-loaded office work and entertainment.
Usually, among electronic devices frequently used by people, the mobile phone is used for making and answering a call, and another electronic device (for example, the personal computer or the tablet computer) that does not have the mobile communication capability cannot provide a function of making and answering a call. In view of this, how to better enable an electronic device without a call capability to have the call capability is a problem to be solved.
Embodiments of this application provide an incoming call display method and an electronic device, so that an electronic device that does not have a mobile communication capability can be endowed with a call capability, and display device information of an electronic device that is actually called. In this way, a user can immediately learn which electronic device is called.
According to a first aspect, this application provides an incoming call display method. The method is performed by a first electronic device, a short-distance communication connection is established between the first electronic device and a second electronic device, the first electronic device and the second electronic device both have an independent mobile communication capability, and the method includes:
In this implementation, the first electronic device has the independent mobile communication capability, that is, the first electronic device can independently receive an incoming call of another electronic device. For example, when the third electronic device calls the first electronic device, the third electronic device is a calling party, and the first electronic device is an answering party. In this case, the first electronic device can present an incoming call interface of the incoming call (namely, the first incoming call). The incoming call interface of the first incoming call may display a phone number (namely, a phone number of a SIM card installed in the third electronic device) of the calling party, and may further display controls such as an answering control and a hang-up control.
In addition to independently receiving the incoming call of the another electronic device, the first electronic device can further receive an incoming call event synchronized by the another electronic device. For example, when the third electronic device calls the second electronic device (that is, the second incoming call), the third electronic device is a calling party, and the second electronic device is an answering party. The second electronic device can synchronize an incoming call event to the first electronic device, and the user can answer the second incoming call by using the first electronic device. In this case, the first electronic device may present an incoming call interface of the second incoming call. Different from the incoming call interface of the first incoming call, the incoming call interface of the second incoming call may further display the device information (for example, the device name and/or device type) of the second electronic device and the first incoming call mark in addition to a phone number of the calling party. Optionally, different from a normal incoming call mark, the first incoming call mark may be some special symbols, for example, a flash symbol, and indicates that the incoming call is an incoming call synchronized by the second electronic device, and is not an incoming call independently received by the first electronic device.
For a specific implementation of a case in which the first electronic device receives the second incoming call event sent by the second electronic device, refer to descriptions in the following second aspect.
Therefore, when the first electronic device receives the second incoming call event sent by the second electronic device, the second electronic device synchronizes the incoming call event that includes the device name and the device type to the first electronic device, so that the first electronic device can display the device information of the second electronic device that synchronizes the incoming call. In this way, the user can immediately learn which electronic device is called, which is convenient for the user to determine whether to answer the call, thereby improving user use experience.
According to a second aspect, this application provides an incoming call display method. The method is performed by a first electronic device, a short-distance communication connection is established between the first electronic device and a second electronic device, the first electronic device does not have an independent mobile communication capability, the second electronic device has an independent mobile communication capability, and the method includes: receiving a second incoming call event sent by the second electronic device, where the second incoming call event is generated by second electronic device based on a second incoming call received by the second electronic device; in response to the second incoming call event, presenting an incoming call interface of the second incoming call, where the incoming call interface of the second incoming call displays a phone number of a calling party of the second incoming call, a device name and/or a device type of the second electronic device, and a first incoming call mark, and the first incoming call mark indicates that the second incoming call is an incoming call that is received by the second electronic device and forwarded to the first electronic device.
In this implementation, the first electronic device does not have an independent mobile communication capability, but the first electronic device can receive an incoming call event synchronized by another electronic device, for example, can receive the second incoming call event synchronized by the second electronic device, and present the incoming call interface of the second incoming call. The incoming call interface of the second incoming call further displays device information (for example, the device name and/or the device type) of the second electronic device and the first incoming call mark in addition to the phone number of the calling party. The user can answer the incoming call by using the first electronic device. In this way, a mobile communication capability is endowed to the first electronic device. In addition, the first electronic device displays the device information of the second electronic device that synchronizes the incoming call, so that the user can immediately learn which electronic device is called, which is convenient for the user to decide whether to answer the incoming call, thereby improving user use experience.
With reference to the second aspect, in some implementations of the second aspect, the incoming call interface of the second incoming call further displays subscriber identification module SIM card information of the phone number of an answering party corresponding to the second incoming call in the second electronic device.
Optionally, the SIM card information and the device name and/or the device type of the second electronic device may be alternately displayed in the incoming call interface of the second incoming call.
It can be learned from the foregoing description, the answering party of the second incoming call is the second electronic device, and the phone number of the answering party corresponds to a SIM card in the second electronic device. For example, a SIM card 1 in the second electronic device corresponds to the phone number of the answering party, and therefore, information of the SIM card can be displayed in the incoming call interface of the second incoming call. In this way, in addition to learning which electronic device is called, the user can further learn which SIM card in the electronic device is called. This further improves user use experience.
With reference to the second aspect, in some implementations of the second aspect, the incoming call interface of the second incoming call is presented in a display of the first electronic device in a full-screen display manner, or is displayed in the display of the first electronic device in a notification bar display manner.
The incoming call interface of the second incoming call may be displayed in the full-screen manner, or may be displayed in the notification bar manner. When displayed in the notification bar manner, the incoming call interface of the second incoming call does not affect display content of another application running on the first electronic device.
In a feasible implementation, when the incoming call interface of the second incoming call is displayed in the full-screen manner, the incoming call interface of the second incoming call further displays a first answering control, and the first answering control displays the first incoming call mark.
In this implementation, if the incoming call interface of the second incoming call is displayed in the full-screen manner, the first incoming call mark can be displayed in the first answering control in the incoming call interface. For example, when the first incoming call mark is a flash symbol, the flash symbol is displayed in the answering control, and can be used to distinguish between an incoming call synchronized by the second electronic device and an incoming call independently answered by the first electronic device, to further prompt the user an incoming call type of the incoming call.
In another feasible implementation, when the incoming call interface of the second incoming call is displayed in the notification bar display manner, the first incoming call mark includes a first icon, and a display location of the first icon is in front of a display location of the device name and/or the device type of the second electronic device.
In this implementation, if the incoming call interface of the second incoming call is displayed in the notification bar manner, one first icon may be first displayed in the incoming call interface, for example, an icon that is different from the flash symbol and also can indicate that the incoming call is an incoming call synchronized by the second electronic device. The icon may be displayed in front of the device name and/or the device type of the second electronic device, to prompt the user.
Then, after the first icon is displayed for preset duration (for example, 1 to 2 seconds), a second icon may be displayed in the incoming call interface of the second incoming call. In this case, the incoming call interface of the second incoming call further displays a first answering control, and the second icon is displayed on the first answering control. The second icon may be the foregoing flash symbol.
Optionally, when the second icon and the first answering control are displayed, the first icon disappears. In other words, in the incoming call interface of the second incoming call, the first icon is first displayed, and the second icon and the first answering control are switched to and displayed. Optionally, in this case, in a location at which the first icon is displayed, an incoming call icon of a normal incoming call may be switched to and displayed.
Therefore, in the incoming call interface of the second incoming call, in addition to the device information of the second electronic device, a mark that indicates that a current incoming call is an incoming call synchronized by the second electronic device may be further displayed. In this way, the user can immediately learn that another electronic device is currently called, and further learn which electronic device is called, thereby improving user use experience.
With reference to the second aspect, in some implementations of the second aspect, after the presenting an incoming call interface of the second incoming call, the method further includes: receiving a first touch operation by the user on the first answering control; and in response to the first touch operation, presenting a call interface of the second incoming call, where the call interface of the second incoming call displays the phone number of the calling party of the second incoming call, the device name and/or the device type of the second electronic device, and call duration.
If the user answers the second incoming call on the first electronic device, the first electronic device may present the call interface of the second incoming call. The device name and/or the device type of the second electronic device may also be displayed in the call interface, so that the user can check in real-time in a call process which electronic device is currently called, thereby improving user use experience.
With reference to the second aspect, in some implementations of the second aspect, after the presenting a call interface of the second incoming call, the method further includes: receiving a third incoming call event sent by the second electronic device, where the third incoming call event is generated by second electronic device based on a third incoming call received by the second electronic device; and in response to the third incoming call event, simultaneously presenting the call interface of the second incoming call and an incoming call interface of the third incoming call, where the incoming call interface of the third incoming call displays a phone number of a calling party of the third incoming call, the device name and/or the device type of the second electronic device, and a second incoming call mark, and the third incoming call mark indicates that the third incoming call is an incoming call that is received by the second electronic device and forwarded to the first electronic device.
In this implementation, in a process in which the user uses the first electronic device to answer the second incoming call, if the second electronic device further receives a new incoming call (namely, the third incoming call), the second electronic device may also synchronize the third incoming call event to the first electronic device. In this case, the first electronic device may simultaneously present the call interface of the second incoming call and the incoming call interface of the third incoming call. In addition to the phone number of the calling party, the device information (for example, the device name and/or device type) of the second electronic device and the second incoming call mark may be further displayed in the incoming call interface of the third incoming call. Therefore, the first electronic device displays the device information of the second electronic device that synchronizes the incoming call, so that the user can immediately learn which electronic device is called for the new incoming call, which is convenient for the user to decide whether to switch to answering the new incoming call, thereby improving user use experience.
With reference to the second aspect, in some implementations of the second aspect, the incoming call interface of the third incoming call includes a second answering control, and after the presenting the call interface of the second incoming call and an incoming call interface of the third incoming call, the method further includes: receiving a second touch operation by the user on the second answering control; and in response to the second touch operation, presenting a call interface of the third incoming call, where the call interface of the third incoming call displays the phone number of the calling party of the third incoming call, the device name and/or the device type of the second electronic device, call duration, and call status information of the second incoming call, and the call status information indicates that the call corresponding to the second incoming call is in an on-hold state.
If the user switch to answering the third incoming call when answering the second incoming call, the phone number of the calling party of the third incoming call, the device name and/or the device type of the second electronic device, and the call status information of the second incoming call are displayed in the call interface of the third incoming call, and the second incoming call is in the on-hold state. Therefore, even if the user switches an answered incoming call, the device name and/or the device type of the second electronic device is still displayed in the interface of the first electronic device, to facilitate checking by the user at any time.
With reference to the second aspect, in some implementations of the second aspect, the call interface of the second incoming call includes a hang-up control, and the method further includes: receiving a third touch operation by the user on the hang-up control; and in response to the third touch operation, generating and displaying a call record corresponding to the second incoming call, where the call record includes the device name and/or the device type of the second electronic device.
When the user hangs up the second incoming call, the first electronic device can still generate a call record corresponding to the second incoming call, and the call record also includes the device name and/or the device type of the second electronic device. Therefore, by checking the call record, the user can conveniently recognize whether a call record is a call record of an incoming call synchronized by another electronic device, or is a call record of an incoming call independently answered by the first electronic device.
With reference to the second aspect, in some implementations of the second aspect, the method further includes: receiving a call making operation by the user; and in response to the call making operation, invoking the mobile communication capability of the second electronic device to make a call, and presenting a call making interface, where the call making interface displays a called phone number and the device name and/or the device type of the second electronic device.
When the first electronic device does not have the independent mobile communication capability, if the user still wants to make a call by using the first electronic device, the mobile communication capability of the second electronic device may be synchronized to display a dialing interface. In the dialing interface, the user can perform a call making operation, and a call making interface is presented, where the device name and/or the device type of the second electronic device is displayed on the call making interface. Therefore, the user can learn which electronic device is actually used to make the call, thereby improving user use experience.
According to a third aspect, this application provides an incoming call display method. The method is performed by a second electronic device, a short-distance is established between a first electronic device and the second electronic device, the second electronic device has an independent mobile communication capability, and the method includes: if a second incoming call is received, generating a second incoming call event based on first information, where the first information includes a phone number of a calling party of the second incoming call, a device name and/or a device type of the second electronic device, and SIM card information of a phone number of an answering party corresponding to the second incoming call in the second electronic device; and sending the second incoming call event to the first electronic device.
In this implementation, the second electronic device can independently receive an incoming call (namely, the second incoming call) of another electronic device. For example, when a third electronic device calls the second electronic device, the third electronic device is a calling party, and the second electronic device is an answering party. In this case, the second electronic device can generate the second incoming call event based on the phone number of the calling party, the device name and/or the device type of the second electronic device, and the SIM card information of the phone number of the answering party corresponding to the second incoming call in the second electronic device, and sends the incoming call event to the first electronic device, so that a user answers the incoming call by using the first electronic device. The first electronic device is endowed with a mobile communication capability.
According to a fourth aspect, this application provides an apparatus. The apparatus is included in an electronic device, and the apparatus has a function of implementing behaviors of the electronic device in the first aspect and the possible implementations in the first aspect, or a function of implementing behaviors of the electronic device in the second aspect and the possible implementations in the second aspect, or a function of implementing behaviors of the electronic device in the third aspect and the possible implementations in the third aspect. The functions may be implemented by using hardware, or may be implemented by hardware executing corresponding software. The hardware or the software includes one or more modules or units corresponding to the functions, for example, a receiving module or unit and a processing module or unit.
According to a fifth aspect, this application provides an electronic device. The electronic device includes: a processor, a memory, and an interface. the processor, the memory, and the interface coordinate with each other, so that the electronic device performs any one of the methods in the technical solutions in the first aspect, or performs any one of the methods in the technical solutions in the second aspect, or performs any one of the methods in the technical solutions in the third aspect.
According to a sixth aspect, this application provides a call system, including a first electronic device and a second electronic device between which a short-distance communication connection is established, the second electronic device has an independent mobile communication capability, the first electronic device is configured to perform any one of the methods in the technical solutions in the first aspect, or perform any one of the methods in the technical solutions in the second aspect, the second electronic device is configured to perform any one of the methods in the technical solutions in the third aspect.
According to a seventh aspect, this application provides a chip, including a processor. The processor is configured to read and execute a computer program stored in a memory, to perform the method in the first aspect and any possible implementation of the first aspect, or the method in the second aspect and any possible implementation of the second aspect, or the method in the third aspect and any possible implementation of the third aspect.
Optionally, the chip further includes a memory, where the memory is connected to the processor through a circuit or a wire.
Further, optionally, the chip further includes a communication interface.
According to an eighth aspect, this application provides a computer-readable storage medium. The computer-readable storage medium stores computer program code. When the computer program code is executed by a processor, the processor is enabled to perform any one of the methods in the technical solutions in the first aspect, or any one of the methods in the technical solutions in the second aspect, or any one of the methods in the technical solutions in the third aspect.
According to a ninth aspect, this application provides a computer program product. The computer program product includes: computer program code, where when the computer program code is run on an electronic device, the electronic device is enabled to perform any one of the methods in the technical solutions in the first aspect, or any one of the methods in the technical solutions in the second aspect, or any one of the methods in the technical solutions in the third aspect.
Technical solutions in embodiments of this application are described below with reference to the accompanying drawings in the embodiments of this application. In the descriptions of the embodiments of this application, “/” means “or” unless otherwise specified. For example, A/B may represent A or B. In this specification, “and/or” describes only an association relationship for describing associated objects and indicates that three relationships may exist. For example, A and/or B may represent the following three cases: Only A exists, both A and B exist, and only B exists. In addition, in the descriptions of the embodiments of this application, “a plurality of” represents two or more.
The terms “first”, “second”, and “third” mentioned below are merely intended for an objective of description, and shall not be understood as an indication or implication of relative importance or implicit indication of the quantity of indicated technical features. Therefore, a feature limited by “first”, “second”, or “third” may explicitly or implicitly include one or more of the features.
With continuous development of an electronic device, use of the electronic device becomes indispensable for people's life. For example, a mobile phone is a call device that has a mobile communication capability, that is, a device that can be connected to a mobile communication network, and can be used by a person to make or answer a call. Usually, one or more phone cards (namely, subscriber identification module (subscriber identification module, SIM card) cards) need to be inserted into the mobile phone, and a phone number of a user of an opposite party is entered by using a dialing keyboard provided by a call application in the mobile phone, or the phone number of the user of the opposite party is found by using a contact application in the mobile phone, and then a call is made to the user of the opposite party based on a communication capability of the phone card. In addition, when receiving a call made by the user of the opposite party, a user may answer the call by entering a call interface by using an answering control in the mobile phone. For example,
However, in an electronic device without a mobile communication capability, for example, an electronic device like a personal computer, a tablet computer, and a smart watch, the user cannot perform an operation of making and answering a call. Based on this, a super call capability is proposed. The super call capability can enable an electronic device without a call capability to have the call capability, so that the user can use an electronic device like a personal computer or a tablet computer to make and answer a call. In a process of using a super call function, if an electronic device other than a called mobile phone is used for answering a call, for example, a tablet computer is used for answering, an incoming call interface of the user of the opposite party may further be displayed on an interface of the tablet computer. For example,
Usually, the reason why an electronic device like a tablet computer has a call capability is that a trust relationship is established between the tablet computer and a called mobile phone, so that the mobile phone can synchronize an incoming call event to the electronic device like the tablet computer. However, as shown in
In order to resolve the above problem, an embodiment of this application provides an incoming call display method. The method may be applied to a scenario in which a user answer or make a call by using an electronic device without a mobile communication capability, and device information of a called electronic device is displayed on an incoming call interface of the electronic device. For example, the user uses a personal computer in a study or a living room at home, that is, uses an electronic device without a mobile communication capability to play a game or do office work, and a mobile phone is placed in another room. When a user of an opposite party calls the mobile phone of the user, the mobile phone may synchronize an incoming call event to the personal computer, and further synchronize device information (such as a device name and a type) of the mobile phone. In this way, the user can immediately know which mobile phone or which phone number of the user is called, to determine whether to answer the call. This improves user experience.
Alternatively, the incoming call display method provided in this embodiment of this application may further be applied in a scenario in which a user has a plurality of electronic devices that have a mobile communication capability, and when an electronic device is called, another electronic device is used for answering. For example, the user uses a mobile phone 1 to play a game in a bedroom, and a mobile phone 2 is placed in a living room. When a user of an opposite party calls the mobile phone 2 of the user, the mobile phone 2 may synchronize an incoming call event to the mobile phone 1, and further synchronize device information of the mobile phone 2, so that the user can use the mobile phone 1 to answer.
In other words, when an electronic device that has the mobile communication capability receives an incoming call, the electronic device may synchronize an incoming call event to all other electronic devices that have established a trust relationship with the electronic device. The electronic device that has the mobile communication capability is an electronic device that can access a mobile communication network. For example, the mobile communication network may be a long term evolution (long term evolution, LTE) network, a 5th (5th generation, 5G) mobile communication network, a future mobile communication network, a network formed by merging a plurality of mobile communication networks, or the like. This is not limited in this embodiment of this application. The 5G alternatively be referred to as new radio (new radio, NR). That is, the electronic device that has the mobile communication capability can implement a communication connection with another device through a mobile communication network, to provide a function of a voice call, short message receiving and sending, and Internet access for a user. It should be noted that the voice call herein and the foregoing function of making a call refer to a call service provided by the mobile communication network, and are not a network call implemented through the Internet. Correspondingly, an electronic device without the mobile communication capability is an electronic device that cannot access a mobile communication network.
The electronic device that has the mobile communication capability and the electronic device without the mobile communication capability may be specifically a mobile phone, a tablet computer, a personal computer (personal computer, PC), a wearable device, an in-vehicle device, an augmented reality (augmented reality, AR) device/a virtual reality (virtual reality, VR) device, a notebook computer, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook, a personal digital assistant (personal digital assistant, PDA), or the like. Specific types of the electronic devices are not limited in embodiments of this application.
For example, the electronic device is a mobile phone.
The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural-network processing unit (neural-network processing unit, NPU). Different processing units may be separate devices, or may be integrated into one or more processors.
The controller may be a nerve center and a command center of the electronic device 100. The controller may generate an operation control signal according to instruction operation code and a time-sequence signal, and control fetching and executing of instructions.
A memory may further be disposed in the processor 110, and the memory is configured to store instructions and data. In some embodiments, the memory in processor 110 is a cache memory. The memory may store instructions or data recently used or cyclically used by the processor 110. If the processor 110 needs to use the instructions or the data again, the processor may directly invoke the instructions or the data from the memory. In this way, repeated access is avoided, and waiting time of the processor 110 is reduced, thereby improving system efficiency.
In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (inter-integrated circuit, I2C) interface, an inter-integrated circuit sound (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver/transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (general-purpose input/output, GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, a universal serial bus (universal serial bus, USB) interface, and/or the like.
A wireless communication function of the electronic device 100 may be implemented by using the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, the baseband processor, and the like.
The antenna 1 and the antenna 2 are configured to transmit and receive an electromagnetic wave signal. Structures of the antenna 1 and the antenna 2 in
The mobile communication module 150 may provide a solution to wireless communication such as 2G/3G/4G/5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (low noise amplifier, LNA), and the like. The mobile communication module 150 may receive an electromagnetic wave by using the antenna 1, perform processing such as filtering and amplification on the received electromagnetic wave, and send the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may further amplify a signal modulated by the modem processor, and convert the signal into an electromagnetic wave by using the antenna 1 for radiation. In some embodiments, at least some function modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the function modules of the mobile communication module 150 may be disposed in a same device as at least some modules of the processor 110.
The wireless communication module 160 may provide a solution to wireless communication applied to the electronic device 100, for example, a wireless local area network (wireless local area network, WLAN) (for example, a wireless fidelity (wireless fidelity, Wi-Fi) network), Bluetooth (Bluetooth, BT), a global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication (near field communication, NFC), and an infrared (infrared, IR) technology. The wireless communication module 160 may be one or more components into which at least one communication processing module is integrated. The wireless communication module 160 receives an electromagnetic wave by using the antenna 2, performs frequency modulation on and filters the electromagnetic wave signal, and sends a processed signal to the processor 110. The wireless communication module 160 may further receive a to-be-sent signal from the processor 110, perform frequency modulation on and amplify the to-be-sent signal, and convert the to-be-sent signal into an electromagnetic wave by using the antenna 2 for radiation.
In some embodiments, the antenna 1 and the mobile communication module 150 of the electronic device 100 are coupled, and the antenna 2 and the wireless communication module 160 of the electronic device 100 are coupled, so that the electronic device 100 can communicate with a network and another device by using a wireless communication technology. The wireless communication technology may include a global system for mobile communications (global system for mobile communications, GSM), a general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, a GNSS, a WLAN, NFC, FM, an IR technology, and/or the like. The GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi-zenith satellite system, QZSS), and/or satellite based augmentation systems (satellite based augmentation systems, SBAS).
The electronic device 100 implements a display function by using the GPU, the display 194, the application processor, and the like. The GPU is a microprocessor for image processing and connects the display 194 and the application processor. The GPU is configured to perform mathematical and geometric calculations, and is configured to render graphics. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The internal memory 121 may be configured to store computer executable program code, where the executable program code includes instructions. The processor 110 runs the instructions stored in the internal memory 121, to implement various function applications and data processing of the electronic device 100. The internal memory 121 may include a program storage area and a data storage area. The program storage area may store an operating system, an application required by at least one function (for example, a sound playback function and an image display function), and the like. The data storage region may store data (such as audio data and an address book) and the like created when the electronic device 100 is used. In addition, the internal memory 121 may include a high-speed random access memory, and may alternatively include a non-volatile memory, for example, at least one magnetic disk storage device, a flash memory device, or a universal flash storage (universal flash storage, UFS).
The SIM card interface 195 is configured to connect a SIM card. The SIM card may be inserted into the SIM card interface 195 or plugged from the SIM card interface 195, to come into contact with or be separated from the electronic device 100. The electronic device 100 may support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support a nano SIM card, a micro SIM card, a SIM card, and the like. A plurality of cards may be inserted into a same SIM card interface 195 at the same time. The plurality of cards may be of a same type or different types. The SIM card interface 195 may further be compatible with different types of SIM cards. The SIM card interface 195 may further be compatible with an external memory card. The electronic device 100 interacts with a network by using the SIM card, to implement functions such as a call and data communication. In some embodiments, the electronic device 100 uses an eSIM, that is, an embedded SIM card. The eSIM card may be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
It may be understood that the structure shown in this embodiment of this application does not constitute a specific limitation on the electronic device 100. In some other embodiments of this application, the electronic device 100 may include more or fewer components than those shown in the figure, or some components may be combined, or some components may be divided, or different component arrangements may be used. The components in the figure may be implemented by hardware, software, or a combination of software and hardware.
It may be understood that,
For ease of description, in the following embodiments, an electronic device that has the mobile communication capability is referred to as a second electronic device, an electronic device to which the second electronic device synchronizes an incoming call event is referred to as a first electronic device (that is, the second electronic device may synchronize the incoming call event to the first electronic device, and a user can answer an incoming call by using the first electronic device), and the first electronic device may have the mobile communication capability, or may not have the mobile communication capability. A quantity of the second electronic devices may be one or more, and a quantity of the first electronic device may also be one or more. It can be learned from the foregoing that the reason why the first electronic device that does not have the mobile communication capability can be endowed with a call capability is that the first electronic device establishes a trust relationship with the second electronic device. Therefore, the following first describes a process in which the first electronic device establishes the trust relationship with the second electronic device.
In a feasible implementation, when a same user account is logged in on the first electronic device and the second electronic device, it may be considered that the trust relationship is established between the first electronic device and the second electronic device. For example, two mobile phones of a same user, or a mobile phone, a tablet computer, and a notebook computer of a same user may be connected by logging in to a user account of the user.
In another feasible implementation, near field connection may be performed between the first electronic device and the second electronic device to establish the trust relationship. For example, the near filed connection may be that the electronic devices are connected in a same local area network, where the same local area network may be a same WLAN, or may be in a same wired local area network, or may be a local area network formed through combining wired connection and wireless connection. This is not limited herein. For another example, the near field connection may be that the electronic devices are connected by using a short-range communication technology, for example, are connected by using a short-range communication technology like Bluetooth and Wi-Fi. This is not limited herein.
Optionally, the trust relationship established between the first electronic device and the second electronic device may combine the foregoing two examples. For example, as shown in
The first electronic device and the second electronic device between which the trust relationship is established can form a trust chain. Electronic devices in the trust chain may perform data synchronization, where data synchronization includes but is not limited to synchronization of an incoming call alarm, synchronization of a call record, and the like. The following describes in detail a process of an incoming call display method provided in an embodiment of this application based on the first electronic device and the second electronic device between which the trust relationship is established.
When the second electronic device receives an incoming call of a user of an opposite party, the second electronic device may synchronize an incoming call event to the first electronic device. The synchronized incoming call event includes information such an incoming call user name, an incoming call number, a number registration location, and an operator, and further includes a device name and a type of the second electronic device. After receiving the incoming call event synchronized by the second electronic device, the first electronic device may display the information included in the incoming call event in a current interface.
For example, the first electronic device is a mobile phone 1, and the second electronic device is a mobile phone 2. When the mobile phone 1 receives an incoming call, the mobile phone 1 may synchronize an incoming call event to the mobile phone 2, and the mobile phone 2 displays information included in the incoming call event in a current interface.
For another example, the second electronic device is a mobile phone 1, and the second electronic device is a PC. When the mobile phone 1 receives an incoming call, the mobile phone 1 may synchronize an incoming call event to the PC, and the PC displays information included in the incoming call event in a current interface.
In the scenario, if a plurality of SIM cards are inserted in the second electronic device, in addition to the information shown in
For example, the first electronic device is a mobile phone 1, and the second electronic device is a tablet computer. When the mobile phone 1 receives an incoming call, the mobile phone 1 may synchronize an incoming call event to the tablet computer, and the tablet computer displays information included in the incoming call event in a current interface.
From the interfaces shown in
In this scenario, the second electronic device synchronizes the incoming call event that includes the device name and the type to the first electronic device, so that the electronic device can display device information of the second electronic device that synchronizes the incoming call. In this way, the user can immediately learn which electronic device is called, which is convenient for the user to determine whether to answer the call, thereby improving user use experience.
When the second electronic device receives an incoming call of a user of an opposite party, the second electronic device may synchronize an incoming call event to the first electronic device. The synchronized incoming call event includes information such an incoming call user name, an incoming call number, a number registration location, and an operator, and further includes a device name and a type of the second electronic device. When the electronic device currently displays an interface of another application, for example, the user uses the first electronic device to do office work of watch a video, if the first electronic device displays the synchronized incoming call event in a full-screen manner, running of the another application may be affected. Therefore, to avoid affecting a current use state of the user, after receiving the incoming call event synchronized by the second electronic device, the first electronic device may display the information included in the incoming call event above a current interface.
In a feasible implementation, when displaying the information of the incoming call event, the first electronic device may first display a super call identification icon, and then switch to an incoming call icon. For example, the first electronic device is a mobile phone 1, and the second electronic device is a tablet computer. When the mobile phone 1 receives an incoming call, the mobile phone 1 may synchronize the incoming call event to the tablet computer, and the tablet computer displays information included in the incoming call event above a current interface.
For another example, the second electronic device is a mobile phone 2, and the first electronic device is a PC. When the mobile phone 2 receives an incoming call, the mobile phone 2 may synchronize the incoming call event to the PC, and the PC displays information included in the incoming call event above a current interface.
Optionally, considering a size of a notification bar, when displaying the information of the incoming call event, the first electronic device may only display the incoming call user name and the device name and the type of the second electronic device, and does not display information such as the phone number and the registration location shown in
In the scenario, if a plurality of SIM cards are inserted in the second electronic device, in addition to the foregoing information, the incoming call event synchronized by the second electronic device to the first electronic device may further include information of a currently called SIM card. For example, a SIM card 1 and a SIM card 2 are inserted in the second electronic device. If a number corresponding to the SIM card 2 is currently called by the user of the opposite party, the second electronic device may synchronize information of the SIM card 2 to the first electronic device, where the synchronized information of the SIM card includes but is not limited to a card number, an operator to which the card number belongs, and the like.
For example, the second electronic device is a mobile phone 1, and the first electronic device is a tablet computer. When the mobile phone 1 receives an incoming call, the mobile phone 1 may synchronize the incoming call event to the tablet computer, and the tablet computer displays information included in the incoming call event above a current interface.
From the interfaces shown in
In this scenario, the second electronic device synchronizes the incoming call event that includes the device name and the type to the first electronic device, so that the electronic device can display device information of the second electronic device that synchronizes the incoming call. In this way, the user can immediately learn which electronic device is called, which is convenient for the user to determine whether to answer the call, thereby improving user use experience.
When the user answers the incoming call on the first electronic device, for example, taps the answering control 54 shown in
For example, the second electronic device is a mobile phone 1, and the first electronic device is a mobile phone 2. After the mobile phone 2 answers an incoming call synchronized by the mobile phone 1, the mobile phone 2 may display information included in the incoming call event and current call duration in a current interface.
In the scenario, if a plurality of SIM cards are inserted in the second electronic device, and a number corresponding to a SIM card 2 is currently used for the call with the user of the opposite party, information of the SIM card 2 may be further displayed on the call interface of the first electronic device.
For example, the second electronic device is a mobile phone 1, and the first electronic device is a tablet computer. As shown in
In the scenario, after the first electronic device answers the incoming call, the first electronic device may display information such as the device name and the type of the second electronic device in the call interface, so that the user can check which mobile phone is called at any time in a call process, thereby improving user use experience.
In a process in which the user is performing a call with one user of an opposite party, a case in which another opposite party also calls the user may occur. In this case, the user may hold a current call, and prioritize answering an incoming call of another opposite party. This function is usually referred to as call on-hold. In this embodiment of this application, when the user uses the first electronic device to answer an incoming call synchronized by the second electronic device (in this case, the first electronic device displays the call interface shown in the scenario 3 described above), if the second electronic device receives a new incoming call, the second electronic device may also synchronize an incoming call event of the new incoming call to the first electronic device, where the synchronized incoming call event also includes the device name and the type of the second electronic device. In this case, the incoming call information of the current call and the incoming call information of the new incoming call may be displayed on the interface of the first electronic device.
For example, the second electronic device is a mobile phone 1, and the first electronic device is a mobile phone 2. The user is answering an incoming call 1 synchronized by the mobile phone 1 by using the mobile phone 2, and the mobile phone 1 further synchronize an incoming call 2 to the mobile phone 2. In this case, the mobile phone 2 may simultaneously display information of the incoming call 1 and information of the incoming call 2 in a current interface.
Optionally, in
Then, if the user answers the incoming call 2 by using the mobile phone 2, the incoming call 1 is held on. In this case, for a display interface of the mobile phone 2, refer to
In the scenario, after the first electronic device answers an incoming call, if the second electronic device further synchronizes a new incoming call, the first electronic device may simultaneously display information of a plurality of incoming calls in the incoming call interface, and display the device information of the second electronic device. In this way, the user can check which call is currently performed at any time in a call process, and which device synchronizes the call. This improves user use experience.
The foregoing scenarios describe related scenarios in which the first electronic device answers a call. In addition, a first electronic device without a mobile communication capability may further make a call by using a mobile communication capability of a second electronic device. Usually, a manner of making a call includes calling by using a dialing keyboard, making a call by using a contact, making a call by using a call record, and the like. In this case, to make a call by using the first electronic device, the second electronic device needs to synchronize information such as a dialing keyboard, a contact, and a call record to the first electronic device. After receiving the information such as the dialing keyboard, the contact, and the call record synchronized by the second electronic device, the first electronic device may choose any one of the manners to make a call.
For example, the second electronic device is a mobile phone 1, and the first electronic device is a tablet computer. Refer to (a) in
For a manner of making a call by using a contact, refer to (b) in
For a manner of making a call by using a call record, refer to (c) in
When synchronizing the information such as the dialing keyboard, the contact, and the call record, the second electronic device may further synchronize device information (for example, a device name and a type) of the second electronic device to the first electronic device. In this way, when the first electronic device makes a call, the first electronic device may further display the device information of the second electronic device in a dialing interface. It may be understood that because the first electronic device does not have the mobile communication capability, when receiving a call making operation of the user, the first electronic device may send the call making event to the second electronic device, and use the mobile communication capability of the second electronic device to make a call.
For example, it is assumed that the first electronic device is a tablet computer, and the user has performed a call making operation on the tablet computer.
It may be understood that
In an embodiment, for the manner of making a call by using a call record, the first electronic device may receive a call record synchronized by the second electronic device. In addition, after the first electronic device answer a call in the manner of the third scenario described above, the first electronic device may further generate a call record based on an answering time. For the call record generated by the first electronic device, the call record belongs to a super call, and it can be learned from the descriptions in the foregoing embodiment that when answering a call, the first electronic device may display the device name and the type of the used second electronic device. Therefore, the device name and the type of the second electronic device may be further displayed in the call record. Further, when a plurality of SIM card are inserted in the second electronic device, SIM card information of the second electronic device may be further displayed in a call record interface of the first electronic device. It may be understood that call records of all electronic devices in a trust chain may be synchronized for each other. For example, after one electronic device answers a call, all of the rest electronic devices may record that the call is answered. After one electronic device rejects a call, all of the rest electronic devices may record that the call is rejected. When all of the electronic devices do not answer a call, all of the electronic device may record that the call is not answered.
For example, the second electronic device is a mobile phone 1, and the first electronic device is a tablet computer. The mobile phone 1 synchronizes a call record to the tablet computer, and the tablet computer generates a call record of the tablet computer. For a call record interface displayed on the tablet computer, refer to
In the example, the tablet computer may display the call record at a left side of a display, and display a dialing keyboard at a right side, so that the user can quickly dial a number when the user needs to make a call by using the dialing keyboard. Optionally, a super call identifier may be displayed on the dialing control 71 in the dialing keyboard, for example, a flash symbol in the figure.
In the scenario, when the first electronic device makes a call by using the call capability of the second electronic device, the first electronic device may display the device information of the second electronic device, so that when making a call, the user can check which device is currently performing calling at any time. This improves user use experience.
The foregoing five scenarios are scenarios to which the incoming call display method provided in embodiments of this application is applicable. However, the incoming call display method is not limited to the foregoing five scenarios. In an interface related to an incoming call, if it is needed, the first electronic device may display the device information of the second electronic device for the user to check. To support implementation of the foregoing scenarios, in this embodiment of this application, an architecture of a software system of the electronic device 100 is further provided. The software system of the electronic device 100 may use a layered architecture, an event-driven architecture, a micro core architecture, a micro service architecture, or a cloud architecture. In this embodiment of this application, the software structure of the electronic device 100 is illustrated by using an Android system with a layered architecture as an example.
The application packages may include applications such as camera, gallery, calendar, call, maps, navigation, WLAN, Bluetooth, music, videos, and short messages.
The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications at the application layer. The application framework layer includes some predefined functions.
As shown in
The distributed service management module can provide a distributed connection capability of the electronic device, that is, two or more electronic devices may establish a trust connection by using a distributed service management module of each other, and a trust chain is formed after the trust connection is established. The distributed call service module can provide a distributed call function, that is, between two or more electronic devices between which a trust connection is established, through mutual interaction by using the distributed call service module, call information may be synchronized, or a function of invoking a call function of each other may be implemented. For example, the forgoing second electronic device may synchronize an incoming call event to the first electronic device, or the first electronic device makes a call by using a call capability of the second electronic device. The device service description module may perform registration and maintenance of mobile communication capability information of the electronic device.
The communication module may provide a communication function for the electronic device, that is, the electronic device may invoke a mobile communication capability or invoke a communication interface by using the communication module. For example, the communication module can answer a call, hang up a call, or the like by invoking a capability of a related module in the Android system. In addition, the communication module may further start an interface during an incoming call by invoking a related module, for example, a drawing and rendering module, a display processing module (not shown in the figure), and the like. The communication module may be used to invoke a module related to the mobile communication capability to implement the mobile communication capability.
In addition, in some embodiments that are not shown, the application framework layer may further include a window manager device, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like. The window manager is configured to manage a window application. The window manager may obtain a size of a display, determine whether there is a status bar, perform screen locking, take a screenshot of the screen, and the like. The content provider is configured to store and obtain data and make the data accessible to an application. The data may include a video, an image, audio, made and answered calls, a browse history, a bookmark, an address book, and the like. The resource manager provides various resources such as a localized character string, an icon, an image, a layout file, and a video file for an application. The view system includes visual controls such as a control for displaying a text and a control for display an image. The view system may be configured to construct an application. A display interface may include one or more views. For example, an incoming call notification interface may be included, and may include a view for displaying a text and a view for displaying an image. The notification manager enables an application to display, in the status bar, notification information that may be used to convey a message of a notification type, where the message may disappear automatically after a short stay without user interaction. For example, the notification manager is configured to provide a notification of download completion and a message notification. The notification manager may alternatively be a notification that appears on a top status bar of the system in a form of a graph or a scroll bar text, for example, a notification of an application running on a background, or may be a notification that appears on the display in a form of a dialog window. For example, text information is prompted in the status bar, a prompt tone is made, the electronic device vibrates, or an indicator light flash.
The Android runtime includes a core library and a virtual machine. The Android runtime is responsible for scheduling and managing the Android system.
The core library includes two parts. One part is a performance function that the Java language needs to invoke, and the other part is a core library of Android.
The application layer and the application framework layer are run in the virtual machine. The virtual machine executes Java files of the application layer and the application framework layer as binary files. The virtual machine is used to execute functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection. The system library may include a plurality of function modules, a surface manager (surface manager), a media library (media library), a three-dimensional graphics processing library (for example, OpenGL ES), and a 2D graphics engine (for example, SGL). The surface manager is configured to manage a display subsystem, and provide fusion of 2D and 3D layers to a plurality of applications. The media library supports playback and recording in a plurality of common audio and video formats, and further supports a static image file, and the like. The media library may support a plurality of audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG. The three-dimensional graphics processing library is configured to implement three-dimensional graphics drawing, image rendering, composition, layer processing, and the like. The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. System security, memory management, process management, a network protocol stack, a driving model, and the like all depend on the kernel layer. The kernel layer includes at least a display driver, a camera driver, an audio driver, a sensor driver, and the like.
It should be noted that for software structures of the first electronic device and the second electronic device, refer to
For ease of understanding of implementation processes of the foregoing five scenarios, in the following embodiments of this application, for example, the terminal device having the structures in
The scenario 1 and the scenario 2 are both scenarios in which when the second electronic device receives an incoming call, the second electronic device synchronizes the incoming call event to the first electronic device, so that the first electronic device displays an incoming call display interface. For implementation processes of the two scenarios, refer to
S201: A second distributed call service module of the second electronic device registers a service to a second distributed service management module of the second electronic device.
S202: A first distributed call service module of the first electronic device registers a service to a first distributed service management module of the first electronic device.
If an incoming call event needs to be synchronize between the first electronic device and the second electronic device, a service corresponding to synchronization of an incoming call event needs to be registered in the distributed service management module first.
Optionally, after the electronic devices complete service registration, distributed service management modules of the electronic devices may communication with each other, to exchange and store device information of the electronic devices. For example, the second distributed service management module of the second electronic device may obtain device information of the first electronic device, for example, information such as a device name and a device ID, and store the information, for example, store the information in a simultaneous ringing device list.
Optionally, the simultaneous ringing device list may be stored in a distributed service management module of a mobile phone in a form of a format, or may be stored in the distributed service management module of the mobile phone in another form.
In a feasible implementation, the simultaneous ringing device list may only include information of an electronic device that is in a trust chain and in an on-line state. For example, the distributed service management module of the electronic device may periodically check on-line states of electronic devices in the trust chain, refresh, based on a check result, electronic devices included in the simultaneous ringing device list, add information of an electronic device that is on-line but is not included in the current simultaneous ringing device list, and delete information of an electronic device that is off-line and is in the current simultaneous ringing device list.
S203: When the second electronic device receives an incoming call of a user of an opposite party, a second communication module of the second electronic device sends an incoming call event to the second distributed call service module of the second electronic device.
S204: After receiving the incoming call event, the second distributed call service module of the second electronic device sends the incoming call event to the first distributed call service module of the first electronic device.
Optionally, the incoming call event includes information such an incoming call user name, an incoming call number, a number registration location, and an operator, and further includes a device name and a type of the second electronic device. Optionally, the second electronic device may obtain the information such as the device name and the type from a system file of the second electronic device.
S205: The first distributed call service module of the first electronic device sends the incoming call event to the first communication module of the first electronic device.
S206: The first communication module of the first electronic device starts an incoming call display interface in a call application of the first electronic device based on the incoming call event, to preset a prompt manner to prompt the incoming call.
Optionally, the incoming call display interface may be any one of the interfaces shown in
In the foregoing embodiment, the second electronic device synchronizes the incoming call event that includes the device name and the type to the first electronic device, so that the first electronic device can display the device information of the second electronic device that synchronizes the incoming call. In this way, the user can immediately learn which electronic device is called, which is convenient for the user to determine whether to answer the call, thereby improving user use experience.
The three scenarios are scenarios in which the user enters a call state after the first electronic device answers the incoming call. It is assumed that the user taps an answering control (for example, the answering control 54 in
S301: In response to an answering operation of the user, the call application of the first electronic device sends a first answering instruction to the first distributed call service module of the first electronic device.
The first answering instruction is used to indicate that the user has answered the current incoming call.
S302: The first distributed call service module of the first electronic device sends the first answering instruction to the second distributed call service module of the second electronic device.
S303: The second distributed call service module of the second electronic device sends the first answering instruction to the second communication module of the second electronic device.
S304: In response to the first answering instruction, the second communication module of the second electronic device invokes an Android system capability to answer the incoming call.
For a technology in which the communication module invokes the Android system capability to answer the incoming call, refer to an existing related technology. Details are not described herein.
S305: The second communication module of the second electronic device sends first call activation information to the second distributed call service module of the second electronic device.
The first call activation information is used to indicate that a call corresponding to the current incoming call is activated, that is, answered.
Optionally, after receiving the first call activation information, the second distributed call service module of the second electronic device may further bond identification information of the current call with an ID of a device (namely, the first electronic device) that process the call, that is, establish an association relationship between the identification information of the current call and the ID of the device that processes the call, to facilitate subsequent management of the call, for example, query for the device that processes the call based on the call identification information.
S306: The second distributed call service module of the second electronic device performs real-time voice information transmission with the first distributed call service module of the first electronic device through a pre-established voice transmission channel.
Optionally, after registering the service, the second distributed call service module of the second electronic device and the first distributed call service module of the first electronic device may establish a voice transmission channel to transmit real-time voice information.
S307: In this case, the second distributed call service module of the second electronic device sends the first call activation information to the first distributed call service module of the first electronic device.
S308: The first distributed call service module of the first electronic device sends the first call activation information to the first communication module of the first electronic device.
S309: The first communication module of the first electronic device refreshes a display information in the call application based on the first call activation information, to start a call interface.
Optionally, the call interface displayed by the first electronic device may be the interface shown in
Optionally, because when receiving an incoming call, the second electronic device synchronizes an incoming call event to all first electronic devices in a trust chain, if one first electronic device answers the incoming call, other electronic devices do not need to continue to display an incoming call display interface. Therefore, after the first electronic device answers the incoming call, the second distributed call service module of the second electronic device may further send an incoming call display stop instruction to another first electronic device other than the device that answers the incoming call. The instruction is used to notify the another electronic device that the incoming call is answered, and instruct the another electronic device to stop incoming call display.
In the foregoing embodiment, after the first electronic device answers an incoming call, the first electronic device may display the information such as the device name and the type of the second electronic device in the call interface. In this way, the user can check which mobile phone is called at any time in a call process. This improves user use experience.
The foregoing fourth scenario is a scenario in which when the user is answering a call of a user of an opposite party, another user of an opposite party also calls the user, and a current call is held on. For an implementation process of the scenario, refer to
S401: The call application of the first electronic device displays a call interface.
S402: The second communication module of the second electronic device sends a new incoming call event to the second distributed call service module of the second electronic device.
S403: After receiving the new incoming call event, the second distributed call service module of the second electronic device sends the new incoming call event to the first distributed call service module of the first electronic device.
Optionally, the new incoming call event includes information such an incoming call user name, an incoming call number, a number registration location, and an operator, and further includes the device name and the type of the second electronic device.
S404: The first distributed call service module of the first electronic device sends the new incoming call event to the first communication module of the first electronic device.
S405: The first communication module of the first electronic device refreshes the call interface in the call application of the first electronic device based on the new incoming call event.
Optionally, for a displayed refreshed call interface, refer to
If the user answers a new incoming call on the first electronic device, the following steps need to be further performed.
S406: In response to an answering operation of the user, the call application of the first electronic device sends a second answering instruction to the first distributed call service module of the first electronic device.
The second answering instruction is used to indicate that the user has answered the new incoming call.
S407: The first distributed call service module of the first electronic device sends the second answering instruction to the second distributed call service module of the second electronic device.
S408: The second distributed call service module of the second electronic device sends the second answering instruction to the second communication module of the second electronic device.
S409: In response to the second answering instruction, the second communication module of the second electronic device invokes the Android system capability to answer the incoming call.
S410: The second communication module of the second electronic device sends second call activation information to the second distributed call service module of the second electronic device.
S411: The second distributed call service module of the second electronic device performs real-time voice information transmission with the first distributed call service module of the first electronic device through the pre-established voice transmission channel.
S412: The second distributed call service module of the second electronic device sends the second call activation information to the first distributed call service module of the first electronic device.
S413: The first distributed call service module of the first electronic device sends the second call activation information to the first communication module of the first electronic device.
S414: The first communication module of the first electronic device refreshes the call interface in the call application again based on the second call activation information.
For implementation processes of the steps S406 to S414, refer to the foregoing process of S301 to S309. Details are not described herein again. Optionally, for a display effect of refreshing the call interface again by the first electronic device, refer to the
In this embodiment, after the first electronic device answers an incoming call, if the second electronic device further synchronizes a new incoming call, the first electronic device may simultaneously display information of a plurality of incoming calls in the incoming call interface, and display the device information of the second electronic device. In this way, the user can check which call is currently performed at any time in a call process, and which device synchronizes the call. This improves user use experience.
The foregoing fifth scenario is a scenario in which the first electronic device that does not has the mobile communication capability can make a call by using the mobile communication capability of the second electronic device. This requires the second electronic device to synchronize information such as a dialing keyboard, a contact, a call record to the first electronic device. For an implementation process, refer to
S501: The second distributed call service module of the second electronic device queries mobile communication capability information of the second electronic device.
The mobile communication capability information may include an available phone card, that is, a phone card whose state is an available state, or a phone card that is disposed in an electronic device and can enable the electronic device to access a corresponding mobile communication system.
S502: The second distributed call service module of the second electronic device sends the mobile communication capability information of the second electronic device and dialable information to the first distributed call service module of the first electronic device.
Optionally, the dialable information may include information such as a dialing keyboard, a contact, and a call record.
S503: The first distributed call service module of the first electronic device sends the mobile communication capability information of the second electronic device and the dialable information to the call application of the first electronic device.
S504: After receiving the mobile communication capability information and the dialable information, the call application of the first electronic device displays a dialing interface.
Optionally, for the dialing interface displayed by the first electronic device, refer to the interface shown in
If the user input a dialing operation in the interface shown in
S505: In response to the dialing operation of the user, the call application of the first electronic device sends a dialing instruction to the first distributed call service module of the first electronic device.
S506: The first distributed call service module of the first electronic device determines an available phone card based on the mobile communication capability information of the second electronic device.
Optionally, when it is determined that there is no available phone card, the first distributed call service module of the first electronic device may indicate the call application that a dialing control used to trigger a super call function is unavailable. When it is determined that there is an available phone card, the first distributed call service module of the first electronic device may indicate the call application that the dialing control used to trigger a super call function is available.
S507: The first distributed call service module of the first electronic device sends the dialing instruction to the second distributed call service module of the second electronic device.
The dialing instruction may carry information of the determined available phone card, to instruct the second electronic device to use the available phone card for dialing.
S508: The second distributed call service module of the second electronic device indicates the second communication module of the second electronic device to make a call by using the available phone card.
The second communication module of the second electronic device may perform dialing by indicating the second communication module of the second electronic device to invoke a modem.
When the second electronic device starts to perform dialing, the following steps may be further performed.
S509: The second distributed call service module of the second electronic device sends dialing information to the first distributed call service module of the first electronic device.
Optionally, the dialing information may include the device name and the type of the second electronic device.
S510: The first distributed call service module of the first electronic device sends the dialing information to the first communication module of the first electronic device.
S511: The first communication module of the first electronic device starts a call making interface in the call application of the first electronic device based on the dialing information.
Optionally, for the call making interface displayed on the first electronic device, refer to
It can be learned from the foregoing fifth scenario that the first electronic device may further generate a call record and receive a call record synchronized by the second electronic device. For implementation steps of the process may be shown in
S601: In response to a hang-up operation of the user, the call application of the first electronic device sends a hang-up instruction to the first communication module.
S602: The first communication module of the first electronic device generates a first call record according to the hang-up instruction.
Optionally, the first call record may include an incoming call user name or a calling user name, a call time, the device information of the used second electronic device, SIM card information, a registration location of a SIM card, and the like. The first call record is a record of a call answered by using the first electronic device.
S603: The first communication module of the first electronic device sends the first call record to the first distributed call service module of the first electronic device.
S604: The second distributed call service module of the second electronic device sends a second call record to the first distributed call service module of the first electronic device.
The second call record may include a call record generated by the second electronic device, or may include a call record that is received by the second electronic device and that is synchronized by another electronic device. It should be noted that an execution sequence of a process of S601 to S603 and a process of S604 is not limited in this embodiment of this application.
S605: The first distributed call service module of the first electronic device sends the first call record and the second call record to the first communication module of the first electronic device.
S606: The first communication module of the first electronic device starts a call record interface in the call application.
Optionally, for the call record interface displayed on the first electronic device, refer to
In the embodiment, when the first electronic device makes a call by using the call capability of the second electronic device, the first electronic device may display the device information of the second electronic device, so that when making a call, the user can check which device is currently performing calling at any time. This improves user use experience.
The foregoing describes an example of an incoming call display method according to an embodiment of this application. It may be understood that to implement the foregoing functions, the electronic device includes corresponding hardware structures and/or software modules for performing the functions. A person skilled in the art should be easily aware that, in combination with the units and algorithm steps of the examples described in the embodiments disclosed in this specification, this application can be implemented by hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving hardware depends on particular applications and design constraints of the technical solutions. A person of skill in the art may use different methods to implement the described functions with reference to embodiments for each particular application, but it should not be considered that the implementation goes beyond the scope of this application.
In embodiments of this application, function modules of the electronic device may be divided based on the foregoing method example. For example, each function module may be divided according to each function, or two or more functions may be integrated into one processing module. The integrated module may be implemented in the form of hardware, or may be implemented in a form of a software function module. It should be noted that in embodiments of this application, the module division is an example, and is merely logical function division, and there may be other division manners during actual implementation.
It should be noted that all related content of the steps in the foregoing method embodiments may be referenced to function descriptions of corresponding function modules. Details are not described herein again.
The electronic device provided in this embodiment is configured to perform the incoming call display method, and therefore may achieve the same effect as the foregoing method.
During use of an integrated unit, the electronic device may include a processing module, a storage module, and a communication module. The processing module is configured to control and manage an operation of the electronic device. The storage module may be configured to support the electronic device to store program code and data, or the like. The communication module may be configured to support communication between the electronic device and another device.
The processing module may be a processor or a controller. The processing module may implement or perform various examples of logic blocks, modules, and circuits described with reference to content disclosed in this application. The processor may alternatively be a combination for implementing computing functions, for example, a combination of one or more microprocessors, a combination of digital signal processing (digital signal processing, DSP) and microprocessors, or the like. The storage module may be a memory. The communication module may specifically be a device, such as a radio frequency circuit, a Bluetooth chip, and/or a Wi-Fi chip, that interacts with another electronic device.
In an embodiment, when the processing module is a processor and the storage module is a memory, the electronic device involved in this embodiment may be a device having the structure shown in
An embodiment of this application provides a computer-readable storage medium. A computer program is stored in the computer-readable storage medium, and the computer program, when executed by a processor, enables the processor to perform the incoming call display method according to any one of the foregoing embodiments.
An embodiment of this application further provides a computer program product. When the computer program product runs on a computer, the computer is enabled to perform the related steps, to implement the incoming call display method in the foregoing embodiments.
In addition, an embodiment of this application further provides an apparatus. The apparatus may be specifically a chip, a component, or a module. The apparatus may include a processor and a memory that are connected. The memory is configured to store computer-executable instructions. When the apparatus runs, the processor may execute the computer-executable instructions stored in the memory, to enable the chip to perform the incoming call display method in the foregoing method embodiments.
The electronic device, the computer-readable storage medium, the computer program product, or the chip provided in the embodiments may be configured to perform the corresponding method provided above. Therefore, for beneficial effects that can be achieved, refer to the beneficial effects of the corresponding method provided above. Details are not described herein again.
Based on the foregoing descriptions of the implementations, a person skilled in the art may clearly understand that, for the purpose of convenient and brief description, division of the foregoing function modules is taken as an example for illustration. In actual application, the foregoing functions can be allocated to different function modules and implemented according to a requirement, that is, an inner structure of an apparatus is divided into different function modules to implement all or some of the functions described above.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the described apparatus embodiment is merely an example. For example, the module or the unit division is merely a logical function division and may be other division during actual implementation. For example, a plurality of units or components may be combined or integrated into another apparatus, or some features may be ignored or not performed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented by using some interfaces. The indirect couplings or communication connections between the apparatuses or units may be implemented in electronic, mechanical, or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may be one or more physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of embodiments.
In addition, function units in embodiments of this application may be integrated into one processing unit, or each of the units may be physically separated, or two or more units may be integrated into one unit. The integrated unit may be implemented in the form of hardware, or may be implemented in a form of a software function unit.
If the integrated unit is implemented in the form of a software function unit and sold or used as an independent product, the integrated unit may be stored in a readable storage medium. Based on such an understanding, the technical solutions in embodiments of this application essentially, or the part contributing to the prior art, or all or some of the technical solutions may be implemented in the form of a software product. The software product is stored in a storage medium and includes several instructions for instructing a device (which may be a single-chip microcomputer, a chip, or the like) or a processor (processor) to perform all or some of the steps of the methods described in the embodiments of the present invention. The storage medium includes: any medium that can store program code, such as a USB flash drive, a removable hard disk, a read only memory (read only memory, ROM), a random access memory (random access memory, RAM), a magnetic disk, or a compact disc.
The foregoing descriptions are merely specific implementations of this application, but are not intended to limit the protection scope of this application. Any variation or replacement readily figured out by a person skilled in the art within the technical scope disclosed in this application shall fall within the protection scope of this application. Therefore, the protection scope of this application shall be subject to the protection scope of the claims.
Number | Date | Country | Kind |
---|---|---|---|
202210653682.0 | Jun 2022 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2023/087347 | 4/10/2023 | WO |