WO2023131070A1 - Electronic device management method, electronic device, and readable storage medium - Google Patents

Electronic device management method, electronic device, and readable storage medium Download PDF

Info

Publication number
WO2023131070A1
WO2023131070A1 PCT/CN2022/143843 CN2022143843W WO2023131070A1 WO 2023131070 A1 WO2023131070 A1 WO 2023131070A1 CN 2022143843 W CN2022143843 W CN 2022143843W WO 2023131070 A1 WO2023131070 A1 WO 2023131070A1
Authority
WO
WIPO (PCT)
Prior art keywords
function
electronic device
interface
camera
display
Prior art date
Application number
PCT/CN2022/143843
Other languages
French (fr)
Chinese (zh)
Inventor
于志新
Original Assignee
荣耀终端有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 荣耀终端有限公司 filed Critical 荣耀终端有限公司
Publication of WO2023131070A1 publication Critical patent/WO2023131070A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present application provides a management method for an electronic device, the method is executed by a first electronic device, the first electronic device includes at least two display screens, including: detecting a first operation on the first electronic device, the first An operation request to start the first function of the first electronic device, the first function is used to make the first display screen and the second display screen of the first electronic device display the same picture, the first display screen and the second display screen are at least two Any two of the display screens are located on different surfaces; in response to the first operation, it is judged whether the second function of the first electronic device is currently on, and the second function is used to make the current display interface of the first electronic device The screen is projected on the second electronic device, and the current display interface of the first electronic device is the current display interface of the first display screen or the current display interface of the second display screen; when the second function is currently off, the first Function.
  • closing the first function includes: displaying a third interface, the third interface is used to prompt the user whether to close the first function; A third operation of the electronic device, the third operation requests to turn off the first function; in response to the third operation, turn off the first function.
  • the third interface can display a "Yes” or “No” button.
  • the user can click the "Yes” button to confirm that the first function is closed, or click the "No” button to confirm that the first function is not closed. In this way, in the first electronic When the device is in low battery, abnormal temperature and other scenarios, the user can choose to continue to use the first function, or choose to turn off the first function, thereby improving the user experience.
  • the electronic device when one or more programs are executed by the processor, the electronic device is made to perform the following steps: detect the camera opening operation, start the camera application; detect in the camera application to the first operation on the first electronic device.
  • the electronic device when one or more programs are executed by the processor, the electronic device is made to perform the following steps: in response to the second operation, determine that the first function is currently Whether it is in the open state; when the first function is currently in the open state, after the first function is closed, the second function is opened.
  • the electronic device when one or more programs are executed by the processor, the electronic device is made to perform the following steps: when it is detected that the temperature of the electronic device is higher than the second When the threshold value is reached, the first function is turned off.
  • the electronic device when one or more programs are executed by the processor, the electronic device is made to perform the following steps: display a third interface, and the third interface is used to prompt Whether the user closes the first function; detects a third operation on the electronic device, and the third operation requests to close the first function; in response to the third operation, closes the first function.
  • the electronic device when one or more programs are executed by the processor, the electronic device is made to perform the following steps: receiving a call request, and the call request comes from the third electronic device device; turn off the first function.
  • the electronic device when one or more programs are executed by the processor, the electronic device is made to perform the following steps: when it is detected that the application program of the electronic device cannot run , turn off the first function.
  • the present application provides a computer program product, which, when the computer program product is run on an electronic device, causes the electronic device to execute any possible electronic device management method in the first aspect above.
  • FIG. 4 is a schematic flowchart of an example of using the first function provided by the embodiment of the present application.
  • FIG. 5 is a schematic diagram of an example when the second function of the mobile phone 100 is turned on provided in the embodiment of the present application;
  • FIG. 6 is a schematic flowchart of an example of a management method for electronic equipment provided by an embodiment of the present application.
  • FIG. 8 is a schematic flow chart of another example of a method for managing electronic equipment provided by an embodiment of the present application.
  • FIG. 9 is a software structural block diagram of an example mobile phone 100 provided by the embodiment of the present application.
  • Fig. 10 shows a schematic diagram of interaction between various software structures in Fig. 9 to implement the method of the present application
  • Fig. 11 shows another schematic diagram of interaction between various software structures in Fig. 9 to realize the method of the present application
  • Fig. 12 shows another schematic diagram of interaction between various software structures in Fig. 9 to realize the method of the present application
  • Fig. 14 shows another schematic diagram of interaction between various software structures in Fig. 9 to realize the method of the present application
  • Fig. 15 shows another schematic diagram of interaction between various software structures in Fig. 9 to realize the method of the present application
  • FIG. 16 shows another schematic diagram of interaction among various software structures in FIG. 9 to implement the method of the present application.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and A subscriber identification module (subscriber identification module, SIM) card interface 195 and the like.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is a cache memory.
  • the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
  • the I2S interface can be used for audio communication.
  • processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled to the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc.
  • the processor 110 communicates with the camera 193 through the CSI interface to realize the shooting function of the electronic device 100 .
  • the processor 110 communicates with the display screen 194 through the DSI interface to realize the display function of the electronic device 100 .
  • the USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100 , and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna may be used in conjunction with a tuning switch.
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is passed to the application processor after being processed by the baseband processor.
  • the application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
  • the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband 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, GNSS, WLAN, NFC , FM, and/or IR techniques, etc.
  • GSM global system for mobile communications
  • GPRS general packet radio service
  • code division multiple access code division multiple access
  • CDMA broadband Code division multiple access
  • WCDMA wideband code division multiple access
  • time division code division multiple access time-division code division multiple access
  • TD-SCDMA time-division code division multiple access
  • the electronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the electronic device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
  • Receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the receiver 170B can be placed close to the human ear to receive the voice.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view short messages is executed. When a touch operation whose intensity is greater than or equal to the first pressure threshold acts on the icon of the short message application, the instruction of creating a new short message is executed.
  • the gyro sensor 180B can be used to determine the motion posture of the electronic device 100 .
  • the angular velocity of the electronic device 100 around three axes may be determined by the gyro sensor 180B.
  • the gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shaking angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shaking of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip leather case.
  • the electronic device 100 when the electronic device 100 is a clamshell machine, the electronic device 100 can detect opening and closing of the clamshell according to the magnetic sensor 180D.
  • features such as automatic unlocking of the flip cover are set.
  • the electronic device 100 can use the proximity light sensor 180G to detect that the user is holding the electronic device 100 close to the ear to make a call, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode, automatic unlock and lock screen in pocket mode.
  • the touch sensor 180K is also called “touch device”.
  • the touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. For example, the touch sensor 180K acquires a user's touch operation of clicking the button of the cooperative photographing function, and then transmits the operation to the processor 110, and the processor 110 determines that the touch event is "starting the cooperative photographing function".
  • the touch sensor 180K transmits the operation to the processor 110, and the processor 110 determines that this touch event is "turn off the cooperative photo taking function".
  • the visual output related to the touch operation can be provided through the display screen 194 .
  • the touch sensor 180K can also be disposed on the surface of the mobile phone 100 , which is different from the position of the display screen 194 . This application is not limited to this.
  • the bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 180M can also contact the human pulse and receive the blood pressure beating signal. In some embodiments, the bone conduction sensor 180M can also be disposed in the earphone, combined into a bone conduction earphone.
  • the audio module 170 can analyze the voice signal based on the vibration signal of the vibrating bone mass of the vocal part acquired by the bone conduction sensor 180M, so as to realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, so as to realize the heart rate detection function.
  • the SIM card interface 195 is used for connecting a SIM card.
  • the SIM card can be connected and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 .
  • the electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards may be the same or different.
  • the SIM card interface 195 is also compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as calling and data communication.
  • the electronic device 100 adopts an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • the camera application in the folding screen mobile phone 100 is taken as an example for description. It can be understood that the technical solutions of the present application are also applicable to other applications on electronic equipment, not limited to camera applications.
  • the camera P2 is called the front camera
  • the camera P1 and the camera P3 are called It's called the rear camera.
  • the camera P1 is not enabled, and correspondingly, the camera P2 is called a front camera, and the camera P3 is called a rear camera.
  • the inner screen area A-1 and the inner screen area A-2 can display different content.
  • the inner screen area A-1 and the outer screen B display the captured preview images at the same time.
  • the inner screen area A-2 can display photo albums.
  • the above-mentioned first function applied to the camera application is called the collaborative photo taking function.
  • the portrait mode 12 may include a cooperative shooting function 1105, and may also include other functions, such as a beauty function, a special effect function (not shown in the figure), and the like.
  • the portrait mode can keep the face of the subject clear, and at the same time blur the background, thereby highlighting the subject.
  • Step 1401 the user opens the camera application.
  • Step 1509 when the system coordination function is turned off, enable the coordination camera function.
  • Step 1602 the system management module (MainViewPage) sends a request to the display management module to obtain the current state of the cooperative photographing function.
  • Step 1604 when the collaborative photographing function is off, the system management module enables the system collaborative function.
  • Step 1605 when the cooperative photographing function is enabled, the system management module sends information that the system cooperative function is enabled to the camera management class. After receiving the information, the camera management class sends the information to the abnormal scene processing module (handleAbnormalSceneExitCollaborateMode) of the camera application, so that the abnormal scene processing module handles the situation.
  • the abnormal scene processing module handleAbnormalSceneExitCollaborateMode
  • Step 1608 the coordinated display management module closes the window for coordinated display in the external screen.
  • Step 1609 after closing the window for coordinated display, the coordinated display management module uses a callback function (onDisplayChanged) to call back the information that the external screen of the mobile phone 100 is closed to the display management module.
  • the display management module sends the information that the cooperative camera function of the mobile phone 100 is disabled to the system management module.
  • the functional modules of the electronic device may be divided according to the above method example.
  • each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
  • the above integrated modules may be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic, and is only a logical function division, and there may be other division methods in actual implementation.
  • This embodiment also provides a computer program product, which, when running on a computer, causes the computer to execute the above-mentioned related steps, so as to implement the method in the above-mentioned embodiment.
  • the electronic device, computer-readable storage medium, computer program product or chip provided in this embodiment is all used to execute the corresponding method provided above, therefore, the beneficial effects it can achieve can refer to the above-mentioned The beneficial effects of the corresponding method will not be repeated here.
  • a unit described as a separate component may or may not be physically separated, and a component shown as a unit may be one physical unit or multiple physical units, which may be located in one place or distributed to multiple different places. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

Abstract

The embodiments of the present application belong to the technical field of terminals. Provided are an electronic device management method, an electronic device, and a readable storage medium. The method comprises: a first electronic device detecting a first operation for the first electronic device, wherein the first operation requests the enabling of a first function of the first electronic device, and the first function is used for enabling a first display screen and a second display screen of the first electronic device to display the same picture; in response to the first operation, determining whether a second function of the first electronic device is currently in an enabled state, wherein the second function is used for enabling the current display interface of the first electronic device to be projected on a second electronic device, and the current display interface of the first electronic device is the current display interface of the first display screen or the current display interface of the second display screen; and when the second function is currently in a disabled state, enabling the first function. In this way, various functions of an electronic device can be managed in different usage scenarios, thereby realizing the optimization of the usage scenarios.

Description

一种电子设备的管理方法、电子设备及可读存储介质Method for managing electronic equipment, electronic equipment, and readable storage medium
本申请要求于2022年01月06日提交国家知识产权局、申请号为202210013508.X、申请名称为“一种电子设备的管理方法、电子设备及可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202210013508.X and the application name "A Management Method for Electronic Equipment, Electronic Equipment and Readable Storage Medium" submitted to the State Intellectual Property Office on January 06, 2022 , the entire contents of which are incorporated in this application by reference.
技术领域technical field
本申请涉及终端技术领域,具体涉及一种电子设备的管理方法、电子设备及可读存储介质。The present application relates to the technical field of terminals, and in particular to a management method of electronic equipment, electronic equipment and a readable storage medium.
背景技术Background technique
随着电子设备的不断发展,目前出现了具有折叠屏的电子设备。具有折叠屏的电子设备因其屏幕可以折叠,从而可以实现多种功能,如何在不同的使用场景下管理多种功能是目前需要解决的问题。With the continuous development of electronic devices, electronic devices with folding screens appear at present. Electronic devices with folding screens can realize multiple functions because their screens can be folded. How to manage multiple functions in different usage scenarios is a problem that needs to be solved at present.
发明内容Contents of the invention
本申请提供一种电子设备的管理方法、电子设备及可读存储介质,该方法能够在不同的使用场景下管理电子设备的多种功能,实现应用场景的优化。The present application provides a management method of an electronic device, an electronic device and a readable storage medium. The method can manage various functions of the electronic device in different use scenarios, and realize the optimization of the application scenarios.
第一方面,本申请提供一种电子设备的管理方法,该方法由第一电子设备执行,第一电子设备包括至少两个显示屏,包括:检测到对第一电子设备的第一操作,第一操作请求开启第一电子设备的第一功能,第一功能用于使第一电子设备的第一显示屏与第二显示屏显示相同的画面,第一显示屏与第二显示屏为至少两个显示屏中的任意两个位于不同面的显示屏;响应于第一操作,判断第一电子设备的第二功能当前是否处于开启状态,第二功能用于使第一电子设备的当前显示界面被投屏在第二电子设备上,第一电子设备的当前显示界面为第一显示屏的当前显示界面或第二显示屏的当前显示界面;当第二功能当前处于关闭状态时,开启第一功能。In a first aspect, the present application provides a management method for an electronic device, the method is executed by a first electronic device, the first electronic device includes at least two display screens, including: detecting a first operation on the first electronic device, the first An operation request to start the first function of the first electronic device, the first function is used to make the first display screen and the second display screen of the first electronic device display the same picture, the first display screen and the second display screen are at least two Any two of the display screens are located on different surfaces; in response to the first operation, it is judged whether the second function of the first electronic device is currently on, and the second function is used to make the current display interface of the first electronic device The screen is projected on the second electronic device, and the current display interface of the first electronic device is the current display interface of the first display screen or the current display interface of the second display screen; when the second function is currently off, the first Function.
基于上述技术方案,用户请求开启第一电子设备的第一功能时,若第二功能为关闭状态,则开启第一功能,若第二功能为开启状态,则第一功能无法开启。通过对第一电子设备的第一功能和第二功能进行管理,使得第一电子设备在不同的使用场景下使用时,均能够处于良好的运行状态,实现场景优化,提升用户体验。Based on the above technical solution, when the user requests to turn on the first function of the first electronic device, if the second function is turned off, the first function is turned on, and if the second function is turned on, the first function cannot be turned on. By managing the first function and the second function of the first electronic device, the first electronic device can be in a good running state when used in different usage scenarios, realizing scenario optimization and improving user experience.
可选地,第一显示屏中显示的画面和第二显示屏中显示的画面可以同比例显示,即按照相同的宽高比进行显示。Optionally, the picture displayed on the first display screen and the picture displayed on the second display screen may be displayed in the same proportion, that is, they may be displayed according to the same aspect ratio.
可选地,第二显示屏显示的画面为第一显示屏显示的画面的镜像画面。Optionally, the picture displayed on the second display screen is a mirror image of the picture displayed on the first display screen.
结合第一方面,在第一方面的某些实现方式中,检测到对第一电子设备的第一操作包括:检测到相机打开操作,启动相机应用;在相机应用中检测到对第一电子设备的第一操作。With reference to the first aspect, in some implementations of the first aspect, detecting the first operation on the first electronic device includes: detecting the opening operation of the camera, and starting the camera application; detecting the first operation on the first electronic device in the camera application the first operation.
结合第一方面和上述实现方式,在第一方面的某些实现方式中,相机应用的应用界面显示第一功能的开启按钮,第一操作为对开启按钮的点击操作。With reference to the first aspect and the foregoing implementation manners, in some implementation manners of the first aspect, the application interface of the camera application displays an activation button of the first function, and the first operation is a click operation on the activation button.
结合第一方面和上述实现方式,在第一方面的某些实现方式中,在判断所述第一电子设备的第二功能当前是否处于开启状态之后,该方法还包括:当第二功能处于开启状态时,显示第一界面,第一界面用于引导用户关闭第二功能;检测到关闭第二功能的操作;响应于关闭第二功能的操作,关闭第二功能后,开启第一功能。With reference to the first aspect and the above-mentioned implementation manners, in some implementation manners of the first aspect, after judging whether the second function of the first electronic device is currently on, the method further includes: when the second function is on state, the first interface is displayed, and the first interface is used to guide the user to close the second function; the operation of closing the second function is detected; in response to the operation of closing the second function, after closing the second function, the first function is opened.
基于上述方案,当第一电子设备不支持用户的操作时,可以提示用户如何操作,以满足用户的需求,提升用户体验。Based on the above solution, when the first electronic device does not support the user's operation, it may prompt the user how to operate, so as to meet the user's needs and improve user experience.
结合第一方面和上述实现方式,在第一方面的某些实现方式中,在开启第一功能之后,方法还包括:检测到对第一电子设备的第二操作,第二操作请求开启第二功能;响应于第二操作,关闭第一功能后,开启第二功能。With reference to the first aspect and the above-mentioned implementation manners, in some implementation manners of the first aspect, after enabling the first function, the method further includes: detecting a second operation on the first electronic device, and the second operation requests enabling the second function; in response to the second operation, after the first function is turned off, the second function is turned on.
结合第一方面和上述实现方式,在第一方面的某些实现方式中,响应于第二操作,关闭第一功能后,开启第二功能,包括:响应于第二操作,判断第一功能当前是否处于开启状态;当第一功能当前处于开启状态时,关闭第一功能后,开启第二功能。In combination with the first aspect and the above-mentioned implementation manners, in some implementation manners of the first aspect, in response to the second operation, after the first function is turned off, the second function is turned on, including: in response to the second operation, judging that the first function is currently Whether it is in the open state; when the first function is currently in the open state, after the first function is closed, the second function is opened.
也就是说,第一功能和第二功能同时被请求开启时,优先使用第二功能。That is to say, when the first function and the second function are requested to be turned on at the same time, the second function is used preferentially.
结合第一方面和上述实现方式,在第一方面的某些实现方式中,当第一功能当前处于开启状态时,该方法还包括:显示第二界面,第二界面用于引导用户确认关闭第一功能;检测到用户确认关闭第一功能的操作;响应于确认关闭第一功能的操作,关闭第一功能。With reference to the first aspect and the above implementation manners, in some implementation manners of the first aspect, when the first function is currently enabled, the method further includes: displaying a second interface, the second interface is used to guide the user to confirm that the first function is turned off. A function; detecting the user's operation of confirming to close the first function; in response to the operation of confirming to close the first function, closing the first function.
结合第一方面和上述实现方式,在第一方面的某些实现方式中,当第一功能当前处于开启状态时,该方法还包括:在检测到第一电子设备的电量低于第一阈值时,关闭第一功能。With reference to the first aspect and the above-mentioned implementation manners, in some implementation manners of the first aspect, when the first function is currently on, the method further includes: when detecting that the power of the first electronic device is lower than the first threshold , turn off the first function.
结合第一方面和上述实现方式,在第一方面的某些实现方式中,当第一功能当前处于开启状态时,该方法还包括:在检测到第一电子设备的温度高于第二阈值时,关闭第一功能。With reference to the first aspect and the above-mentioned implementation manners, in some implementation manners of the first aspect, when the first function is currently on, the method further includes: when it is detected that the temperature of the first electronic device is higher than the second threshold , turn off the first function.
在第一电子设备处于低电量、异常温度等场景时,可自动关闭第一功能,从而使第一电子设备的系统可以正常运行。When the first electronic device is in low battery, abnormal temperature and other scenarios, the first function can be automatically turned off, so that the system of the first electronic device can operate normally.
结合第一方面和上述实现方式,在第一方面的某些实现方式中,关闭第一功能,包括:显示第三界面,第三界面用于提示用户是否关闭第一功能;检测到对第一电子设备的第三操作,第三操作请求关闭第一功能;响应于第三操作,关闭第一功能。In combination with the first aspect and the above implementation manners, in some implementation manners of the first aspect, closing the first function includes: displaying a third interface, the third interface is used to prompt the user whether to close the first function; A third operation of the electronic device, the third operation requests to turn off the first function; in response to the third operation, turn off the first function.
第三界面可以显示“是”或“否”的按钮,用户可以点击“是”按钮以确认关闭第一功能,也可以点击“否”按钮以确认不关闭第一功能,如此,在第一电子设备处于低电量、异常温度等场景时,用户可以选择继续使用第一功能,也可以选择关闭第一功能,从而提升用户体验。The third interface can display a "Yes" or "No" button. The user can click the "Yes" button to confirm that the first function is closed, or click the "No" button to confirm that the first function is not closed. In this way, in the first electronic When the device is in low battery, abnormal temperature and other scenarios, the user can choose to continue to use the first function, or choose to turn off the first function, thereby improving the user experience.
结合第一方面和上述实现方式,在第一方面的某些实现方式中,当第一功能当前处于开启状态时,该方法还包括:接收到通话请求,通话请求来自第三电子设备;关闭第一功能。In combination with the first aspect and the above-mentioned implementation manners, in some implementation manners of the first aspect, when the first function is currently enabled, the method further includes: receiving a call request, and the call request comes from a third electronic device; a function.
可以理解,在进行通话时,可以不使用第一功能,则当用户使用第一电子设备进行通话时,第一电子设备可以关闭第一功能,从而减少第一电子设备运行的进程,可以节省电子设备的电量消耗,提高用户体验。It can be understood that the first function may not be used during a call, and when the user uses the first electronic device to make a call, the first electronic device may turn off the first function, thereby reducing the running process of the first electronic device and saving energy. Device power consumption, improve user experience.
结合第一方面和上述实现方式,在第一方面的某些实现方式中,当第一功能当前处于开启状态时,该方法还包括:在检测到第一电子设备的相机应用无法运行时,关闭第一功能。With reference to the first aspect and the above-mentioned implementation manners, in certain implementation manners of the first aspect, when the first function is currently enabled, the method further includes: when it is detected that the camera application of the first electronic device cannot run, shutting down the first function.
第二方面,本申请提供一种电子设备,包括:至少两个显示屏;一个或多个处理器;一个或多个存储器;安装有多个应用程序的模块;存储器存储有一个或多个程序,当一个或者多个程序被处理器执行时,使得电子设备执行如下步骤:检测到对电子设备的第一操作,第一操作请求开启电子设备的第一功能,第一功能用于使电子设备的第一显示屏与第二显示屏显示相同的画面,第一显示屏与第二显示屏为电子设备的任意两个位于不同面的显示屏;响应于第一操作,判断第一电子设备的第二功能当前是否处于开启状态,第二功能用于使电子设备的当前显示界面被投屏在第二电子设备上,电子设备的当前显示界面为第一显示屏的当前显示界面或第二显示屏的当前显示界面;当第二功能当前处于关闭状态时,开启第一功能。In a second aspect, the present application provides an electronic device, including: at least two display screens; one or more processors; one or more memories; a module with multiple application programs installed; the memory stores one or more programs , when one or more programs are executed by the processor, the electronic device is made to perform the following steps: a first operation on the electronic device is detected, the first operation requests to start a first function of the electronic device, and the first function is used to make the electronic device The first display screen and the second display screen display the same picture, and the first display screen and the second display screen are any two display screens on different sides of the electronic device; in response to the first operation, it is judged that the first electronic device Whether the second function is currently on. The second function is used to project the current display interface of the electronic device on the second electronic device. The current display interface of the electronic device is the current display interface of the first display screen or the second display The current display interface of the screen; when the second function is currently off, the first function is turned on.
结合第二方面,在第二方面的某些实现方式中,当一个或者多个程序被处理器执行时,使得电子设备执行如下步骤:检测到相机打开操作,启动相机应用;在相机应用中检测到对第一电子设备的第一操作。With reference to the second aspect, in some implementations of the second aspect, when one or more programs are executed by the processor, the electronic device is made to perform the following steps: detect the camera opening operation, start the camera application; detect in the camera application to the first operation on the first electronic device.
相机应用的应用界面显示第一功能的开启按钮,第一操作为对开启按钮的点击操作。The application interface of the camera application displays an activation button of the first function, and the first operation is a click operation on the activation button.
结合第二方面和上述实现方式,在第二方面的某些实现方式中,当一个或者多个程序被处理器执行时,使得电子设备执行如下步骤:当第二功能处于开启状态时,显示第一界面,第一界面用于引导用户关闭第二功能;检测到关闭第二功能的操作;响应于关闭第二功能的操作,关闭第二功能后,开启第一功能。With reference to the second aspect and the above-mentioned implementation manners, in some implementation manners of the second aspect, when one or more programs are executed by the processor, the electronic device is made to perform the following steps: when the second function is on, display the first An interface, the first interface is used to guide the user to close the second function; the operation to close the second function is detected; in response to the operation to close the second function, after the second function is closed, the first function is opened.
结合第二方面和上述实现方式,在第二方面的某些实现方式中,当一个或者多个程序被处理器执行时,使得电子设备执行如下步骤:检测到对电子设备的第二操作,第二操作请求开启第二功能;响应于第二操作,关闭第一功能后,开启第二功能。With reference to the second aspect and the above-mentioned implementation manners, in some implementation manners of the second aspect, when one or more programs are executed by the processor, the electronic device is made to perform the following steps: the second operation on the electronic device is detected, and the second operation on the electronic device is detected. The second operation requests to turn on the second function; in response to the second operation, after the first function is turned off, the second function is turned on.
结合第二方面和上述实现方式,在第二方面的某些实现方式中,当一个或者多个程序被处理器执行时,使得电子设备执行如下步骤:响应于第二操作,判断第一功能当前是否处于开启状态;当第一功能当前处于开启状态时,关闭第一功能后,开启第二功能。With reference to the second aspect and the above-mentioned implementation manners, in some implementation manners of the second aspect, when one or more programs are executed by the processor, the electronic device is made to perform the following steps: in response to the second operation, determine that the first function is currently Whether it is in the open state; when the first function is currently in the open state, after the first function is closed, the second function is opened.
结合第二方面和上述实现方式,在第二方面的某些实现方式中,当一个或者多个程序被处理器执行时,使得电子设备执行如下步骤:显示第二界面,第二界面用于引导用户确认关闭第一功能;检测到用户确认关闭第一功能的操作;响应于确认关闭第一功能的操作,关闭第一功能。In combination with the second aspect and the above-mentioned implementation manners, in some implementation manners of the second aspect, when one or more programs are executed by the processor, the electronic device is made to perform the following steps: display the second interface, and the second interface is used to guide The user confirms to close the first function; an operation of the user confirming to close the first function is detected; in response to the operation of confirming to close the first function, the first function is closed.
结合第二方面和上述实现方式,在第二方面的某些实现方式中,当一个或者多个程序被处理器执行时,使得电子设备执行如下步骤:在检测到电子设备的电量低于第一阈值时,关闭第一功能。With reference to the second aspect and the above-mentioned implementation manners, in some implementation manners of the second aspect, when one or more programs are executed by the processor, the electronic device is made to perform the following steps: when it is detected that the power of the electronic device is lower than the first When the threshold value is reached, the first function is turned off.
结合第二方面和上述实现方式,在第二方面的某些实现方式中,当一个或者多个程序被处理器执行时,使得电子设备执行如下步骤:在检测到电子设备的温度高于第二阈值时,关闭第一功能。With reference to the second aspect and the above-mentioned implementation manners, in some implementation manners of the second aspect, when one or more programs are executed by the processor, the electronic device is made to perform the following steps: when it is detected that the temperature of the electronic device is higher than the second When the threshold value is reached, the first function is turned off.
结合第二方面和上述实现方式,在第二方面的某些实现方式中,当一个或者多个程序被处理器执行时,使得电子设备执行如下步骤:显示第三界面,第三界面用于提示用户是否关闭第一功能;检测到对电子设备的第三操作,第三操作请求关闭第一功能;响应于第三操作,关闭第一功能。In combination with the second aspect and the above-mentioned implementation manners, in some implementation manners of the second aspect, when one or more programs are executed by the processor, the electronic device is made to perform the following steps: display a third interface, and the third interface is used to prompt Whether the user closes the first function; detects a third operation on the electronic device, and the third operation requests to close the first function; in response to the third operation, closes the first function.
结合第二方面和上述实现方式,在第二方面的某些实现方式中,当一个或者多个程序被处理器执行时,使得电子设备执行如下步骤:接收到通话请求,通话请求来自第三电子设备;关闭第一功能。In combination with the second aspect and the above-mentioned implementation manners, in some implementation manners of the second aspect, when one or more programs are executed by the processor, the electronic device is made to perform the following steps: receiving a call request, and the call request comes from the third electronic device device; turn off the first function.
结合第二方面和上述实现方式,在第二方面的某些实现方式中,当一个或者多个程序被处理器执行时,使得电子设备执行如下步骤:在检测到电子设备的应用程序无法运行时,关闭第一功能。In combination with the second aspect and the above implementation manners, in some implementation manners of the second aspect, when one or more programs are executed by the processor, the electronic device is made to perform the following steps: when it is detected that the application program of the electronic device cannot run , turn off the first function.
第三方面,本申请提供一种装置,该装置包含在电子设备中,该装置具有实现上述各方面及上述各方面的可能实现方式中电子设备行为的功能。功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块或单元。例如,显示模块或单元、检测模块或单元、处理模块或单元等。In a third aspect, the present application provides an apparatus, which is included in an electronic device, and has a function of implementing the above aspects and the behavior of the electronic equipment in possible implementations of the above aspects. The functions may be implemented by hardware, or may be implemented by executing corresponding software through hardware. Hardware or software includes one or more modules or units corresponding to the functions described above. For example, a display module or unit, a detection module or unit, a processing module or unit, etc.
第四方面,本申请提供一种计算机可读存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行上述第一方面任一项可能的电子设备的管理方法。In a fourth aspect, the present application provides a computer-readable storage medium, including computer instructions. When the computer instructions are run on the electronic device, the electronic device is made to execute any possible electronic device management method in the first aspect above.
第五方面,本申请提供一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行上述第一方面任一项可能的电子设备的管理方法。In a fifth aspect, the present application provides a computer program product, which, when the computer program product is run on an electronic device, causes the electronic device to execute any possible electronic device management method in the first aspect above.
本申请中,第一电子设备包括至少两个显示屏,第一显示屏与第二显示屏为至少两个显示屏中的任意两个位于不同面的显示屏。第一电子设备检测到对第一电子设备的第一操作,第一操作请求开启第一电子设备的第一功能,第一功能用于使第一电子设备的第一显示屏与第二显示屏显示相同的画面,响应于第一操作,判断第一电子设备的第二功能当前是否处于开启状态,第二功能用于使第一电子设备的当前显示界面被投屏在第二电子设备上,第一电子设备的当前显示界面为第一显示屏的当前显示界面或第二显示屏的当前显示界面;当第二功能当前处于关闭状态时,开启第一功能。In the present application, the first electronic device includes at least two display screens, and the first display screen and the second display screen are any two display screens on different sides of the at least two display screens. The first electronic device detects a first operation on the first electronic device, and the first operation requests to start the first function of the first electronic device, and the first function is used to make the first display screen and the second display screen of the first electronic device Displaying the same screen, in response to the first operation, judging whether the second function of the first electronic device is currently on, the second function is used to project the current display interface of the first electronic device on the second electronic device, The current display interface of the first electronic device is the current display interface of the first display screen or the current display interface of the second display screen; when the second function is currently off, the first function is turned on.
基于上述技术方案,用户请求开启第一电子设备的第一功能时,若第二功能为关闭状态,则第一电子设备开启第一功能,第一电子设备通过对第一功能和第二功能进行管理,避免第一电子设备不支持将第一显示屏的显示画面同时显示在第二显示屏与第二电子设备上时,第一功能和第二功能发生冲突的问题,使得第一电子设备在不同的使用场景下使用时,均能够处于良好的运行状态,实现应用场景优化,提升用户体验。Based on the above technical solution, when the user requests to turn on the first function of the first electronic device, if the second function is off, the first electronic device turns on the first function, and the first electronic device activates the first function and the second function Management, to avoid the conflict between the first function and the second function when the first electronic device does not support displaying the display screen of the first display screen on the second display screen and the second electronic device at the same time, so that the first electronic device When used in different usage scenarios, it can be in a good running state, realize the optimization of application scenarios, and improve the user experience.
附图说明Description of drawings
图1中的申请实施例提供的一例电子设备的结构示意图;A schematic structural diagram of an example of electronic equipment provided by the application embodiment in Figure 1;
图2是本申请实施例提供的一例手机100的显示屏展开时的正面与背面以及显示屏折叠时的示意图;FIG. 2 is a schematic diagram of the front and back of the mobile phone 100 when the display screen is unfolded and the display screen when the display screen is folded according to the embodiment of the present application;
图3是本申请实施例提供的一例手机100的第一功能开启与关闭时的示意图;FIG. 3 is a schematic diagram of an example of the first function of the mobile phone 100 being turned on and off provided in the embodiment of the present application;
图4中是本申请实施例提供的一例使用第一功能的流程示意图;FIG. 4 is a schematic flowchart of an example of using the first function provided by the embodiment of the present application;
图5是本申请实施例提供的一例手机100的第二功能开启时的示意图;FIG. 5 is a schematic diagram of an example when the second function of the mobile phone 100 is turned on provided in the embodiment of the present application;
图6是本申请实施例提供的一例电子设备的管理方法的示意性流程图;FIG. 6 is a schematic flowchart of an example of a management method for electronic equipment provided by an embodiment of the present application;
图7是本申请实施例提供的一例提示界面的示意图;Fig. 7 is a schematic diagram of an example prompt interface provided by the embodiment of the present application;
图8是本申请实施例提供的又一例电子设备的管理方法的示意性流程图;FIG. 8 is a schematic flow chart of another example of a method for managing electronic equipment provided by an embodiment of the present application;
图9是本申请实施例提供的一例手机100的软件结构框图;FIG. 9 is a software structural block diagram of an example mobile phone 100 provided by the embodiment of the present application;
图10示出了图9中各个软件结构之间的配合实现本申请方法的一种交互示意图;Fig. 10 shows a schematic diagram of interaction between various software structures in Fig. 9 to implement the method of the present application;
图11示出了图9中各个软件结构之间的配合实现本申请方法的另一种交互示意图;Fig. 11 shows another schematic diagram of interaction between various software structures in Fig. 9 to realize the method of the present application;
图12示出了图9中各个软件结构之间的配合实现本申请方法的又一种交互示意图;Fig. 12 shows another schematic diagram of interaction between various software structures in Fig. 9 to realize the method of the present application;
图13示出了图9中各个软件结构之间的配合实现本申请方法的又一种交互示意图;Fig. 13 shows another schematic diagram of interaction between various software structures in Fig. 9 to implement the method of the present application;
图14示出了图9中各个软件结构之间的配合实现本申请方法的又一种交互示意图;Fig. 14 shows another schematic diagram of interaction between various software structures in Fig. 9 to realize the method of the present application;
图15示出了图9中各个软件结构之间的配合实现本申请方法的又一种交互示意图;Fig. 15 shows another schematic diagram of interaction between various software structures in Fig. 9 to realize the method of the present application;
图16示出了图9中各个软件结构之间的配合实现本申请方法的又一种交互示意图。FIG. 16 shows another schematic diagram of interaction among various software structures in FIG. 9 to implement the method of the present application.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明的一部分,而不是全部的实施例。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the present invention, but not all embodiments.
应当理解的是,本申请提及的“多个”是指两个或两个以上。在本申请的描述中,除非另有说明,“/”表示或的意思,比如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,比如,A和/或B,可以表示:单独存在A,同时存在A和B, 单独存在B这三种情况。另外,为了便于清楚描述本申请的技术方案,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。It should be understood that the "plurality" mentioned in this application means two or more. In the description of this application, unless otherwise specified, "/" means or means, for example, A/B can mean A or B; "and/or" in this article is just a description of the relationship between associated objects, Indicates that there may be three relationships, for example, A and/or B, may indicate: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in order to clearly describe the technical solution of the present application, words such as "first" and "second" are used to distinguish the same or similar items with basically the same function and effect. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference.
示例性的,图1为本申请实施例提供的一种电子设备100的结构示意图。Exemplarily, FIG. 1 is a schematic structural diagram of an electronic device 100 provided in an embodiment of the present application.
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and A subscriber identification module (subscriber identification module, SIM) card interface 195 and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。The I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flashlight, the camera 193 and the like through different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to realize the touch function of the electronic device 100 .
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 . In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through the Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通 过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communication, sampling, quantizing and encoding the analog signal. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 and the wireless communication module 160 . For example: the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 . MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc. In some embodiments, the processor 110 communicates with the camera 193 through the CSI interface to realize the shooting function of the electronic device 100 . The processor 110 communicates with the display screen 194 through the DSI interface to realize the display function of the electronic device 100 .
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193 , the display screen 194 , the wireless communication module 160 , the audio module 170 , the sensor module 180 and so on. The GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100 , and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules shown in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 . In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is configured to receive a charging input from a charger. Wherein, the charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger through the USB interface 130 . In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 is charging the battery 142 , it can also supply power to the electronic device through the power management module 141 .
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 . The power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , the display screen 194 , the camera 193 , and the wireless communication module 160 . The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 may also be disposed in the processor 110 . In some other embodiments, the power management module 141 and the charging management module 140 may also be set in the same device.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be realized by the antenna 1 , the antenna 2 , the mobile communication module 150 , the wireless communication module 160 , a modem processor, a baseband processor, and the like.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。 Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G/6G等无线通信的解 决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G/6G applied on the electronic device 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves and radiate them through the antenna 1 . In some embodiments, at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。A modem processor may include a modulator and a demodulator. Wherein, the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is passed to the application processor after being processed by the baseband processor. The application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 . In some embodiments, the modem processor may be a stand-alone device. In some other embodiments, the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite, etc. applied on the electronic device 100. System (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband 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, GNSS, WLAN, NFC , FM, and/or IR techniques, etc. The GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数,显示屏194可以折叠。The display screen 194 is used to display images, videos and the like. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1, and the display screen 194 can be folded.
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used for processing the data fed back by the camera 193 . For example, when taking a picture, open the shutter, the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be located in the camera 193 .
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects it to the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. DSP converts digital image signals into standard RGB, YUV and other image signals. In some embodiments, the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in various encoding formats, for example: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。The NPU is a neural-network (NN) computing processor. By referring to the structure of biological neural networks, such as the transfer mode between neurons in the human brain, it can quickly process input information and continuously learn by itself. Applications such as intelligent cognition of the electronic device 100 can be realized through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。The internal memory 121 may be used to store computer-executable program codes including instructions. The internal memory 121 may include an area for storing programs and an area for storing data. Wherein, the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like. The storage data area can store data created during the use of the electronic device 100 (such as audio data, phonebook, etc.) and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like. The processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。Speaker 170A, also referred to as a "horn", is used to convert audio electrical signals into sound signals. Electronic device 100 can listen to music through speaker 170A, or listen to hands-free calls.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。 Receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or a voice message, the receiver 170B can be placed close to the human ear to receive the voice.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can put his mouth close to the microphone 170C to make a sound, and input the sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In some other embodiments, the electronic device 100 may be provided with two microphones 170C, which may also implement a noise reduction function in addition to collecting sound signals. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions, etc.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone interface 170D is used for connecting wired earphones. The earphone interface 170D can be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal. In some embodiments, pressure sensor 180A may be disposed on display screen 194 . There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may be comprised of at least two parallel plates with conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view short messages is executed. When a touch operation whose intensity is greater than or equal to the first pressure threshold acts on the icon of the short message application, the instruction of creating a new short message is executed.
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B can be used to determine the motion posture of the electronic device 100 . In some embodiments, the angular velocity of the electronic device 100 around three axes (ie, x, y and z axes) may be determined by the gyro sensor 180B. The gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shaking angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetic sensor 180D includes a Hall sensor. The electronic device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 100 is a clamshell machine, the electronic device 100 can detect opening and closing of the clamshell according to the magnetic sensor 180D. Furthermore, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, features such as automatic unlocking of the flip cover are set.
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes). The magnitude and direction of gravity can be detected when the electronic device 100 is stationary. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。The distance sensor 180F is used to measure the distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F for distance measurement to achieve fast focusing.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes. The light emitting diodes may be infrared light emitting diodes. The electronic device 100 emits infrared light through the light emitting diode. Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it may be determined that there is an object near the electronic device 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100 . The electronic device 100 can use the proximity light sensor 180G to detect that the user is holding the electronic device 100 close to the ear to make a call, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode, automatic unlock and lock screen in pocket mode.
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。The ambient light sensor 180L is used for sensing ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket, so as to prevent accidental touch.
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access to application locks, take pictures with fingerprints, answer incoming calls with fingerprints, and the like.
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to implement a temperature treatment strategy. For example, when the temperature reported by the temperature sensor 180J exceeds the threshold, the electronic device 100 may reduce the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In some other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 caused by the low temperature. In some other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。例如,触摸传感器180K获取用户点击协同拍照功能按钮的触摸操作,然后将该操作传递给处理器110,由处理器110确定该触摸事件为“开启协同拍照功能”。当用户再一次点击协同拍照按钮时,由触摸传感器180K将该操作传递给处理器110,由处理器110确定此次触摸事件为“关闭协同拍照功能”。在一些实施例中,可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K还可以设置于手机100的表面,与显示屏194所处位置不同。本申请对此不作限制。The touch sensor 180K is also called "touch device". The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”. The touch sensor 180K is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. For example, the touch sensor 180K acquires a user's touch operation of clicking the button of the cooperative photographing function, and then transmits the operation to the processor 110, and the processor 110 determines that the touch event is "starting the cooperative photographing function". When the user clicks the cooperative photo taking button again, the touch sensor 180K transmits the operation to the processor 110, and the processor 110 determines that this touch event is "turn off the cooperative photo taking function". In some embodiments, the visual output related to the touch operation can be provided through the display screen 194 . In some other embodiments, the touch sensor 180K can also be disposed on the surface of the mobile phone 100 , which is different from the position of the display screen 194 . This application is not limited to this.
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 180M can also contact the human pulse and receive the blood pressure beating signal. In some embodiments, the bone conduction sensor 180M can also be disposed in the earphone, combined into a bone conduction earphone. The audio module 170 can analyze the voice signal based on the vibration signal of the vibrating bone mass of the vocal part acquired by the bone conduction sensor 180M, so as to realize the voice function. The application processor can analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, so as to realize the heart rate detection function.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The keys 190 include a power key, a volume key and the like. The key 190 may be a mechanical key. It can also be a touch button. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100 .
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 can generate a vibrating reminder. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as taking pictures, playing audio, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 194 . Different application scenarios (for example: time reminder, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195 也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。The SIM card interface 195 is used for connecting a SIM card. The SIM card can be connected and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 . The electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1. SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards may be the same or different. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calling and data communication. In some embodiments, the electronic device 100 adopts an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that, the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.
本申请实施例的方法适用于任何具有第一功能与第二功能的多屏电子设备,该多屏电子设具有至少两个显示屏,且至少两个显示屏安装在电子设备不同的两面上,例如折叠屏手机、平板电脑等等,本申请对此不作限制。下文为了便于描述,将以电子设备100为折叠屏手机100进行说明,并将折叠屏手机100简称为手机100。The method of the embodiment of the present application is applicable to any multi-screen electronic device with the first function and the second function, the multi-screen electronic device has at least two display screens, and the at least two display screens are installed on two different sides of the electronic device, For example, foldable screen mobile phones, tablet computers, etc., which are not limited in this application. In the following, for the convenience of description, the electronic device 100 will be described as the folding screen mobile phone 100 , and the folding screen mobile phone 100 will be referred to as the mobile phone 100 for short.
示例性的,图2中的(a)示出了一种手机100的显示屏展开时的正面示意图,当手机100的折叠屏展开时,手机100的显示屏可以变成一个完整的平面,手机100水平放置时显示屏所处的平面可以平行于水平面。可以将图2的(a)中所示的显示屏称为内屏,在手机100处于展开状态时,内屏可以分为内屏区域A-1以及内屏区域A-2,内屏区域A-1与内屏区域A-2以转轴为分界线。手机100的内屏区域A-1或者内屏区域A-2上可以设置摄像头P2,本申请对此不作限制。Exemplarily, (a) in FIG. 2 shows a schematic front view of a mobile phone 100 when the display screen is unfolded. When the folding screen of the mobile phone 100 is unfolded, the display screen of the mobile phone 100 can become a complete plane. 100 When placed horizontally, the plane where the display screen is located may be parallel to the horizontal plane. The display screen shown in (a) of FIG. 2 can be referred to as an inner screen. When the mobile phone 100 is in an unfolded state, the inner screen can be divided into an inner screen area A-1 and an inner screen area A-2. The inner screen area A -1 and the inner screen area A-2 take the rotating shaft as the dividing line. The camera P2 may be set on the inner screen area A-1 or the inner screen area A-2 of the mobile phone 100, which is not limited in this application.
图2中的(b)示出了一种手机100的显示屏展开时的背面示意图,背面包括外屏B和手机外壳,外屏B与手机外壳上均可以设置有摄像头。外屏B与内屏区域A-1相对设置,手机外壳与内屏区域A-2相对设置。或者外屏B与内屏区域A-2相对设置,手机外壳与内屏区域A-1相对设置。同时外屏B上设置有摄像头P1。手机外壳位于外屏B的一侧,手机外壳上设置有摄像头P3,摄像头P3包括一个或多个摄像头,比如包括3个摄像头。(b) in FIG. 2 shows a schematic view of the back of the mobile phone 100 when the display screen is unfolded. The back side includes an outer screen B and a mobile phone casing, and cameras can be arranged on the outer screen B and the mobile phone casing. The outer screen B is set opposite to the inner screen area A-1, and the mobile phone shell is set opposite to the inner screen area A-2. Or the outer screen B is set opposite to the inner screen area A-2, and the mobile phone shell is set opposite to the inner screen area A-1. At the same time, the external screen B is provided with a camera P1. The mobile phone casing is located on one side of the outer screen B, and a camera P3 is arranged on the mobile phone casing. The camera P3 includes one or more cameras, for example, three cameras.
图2中的(c)示出了一种手机100的显示屏折叠时的示意图,内屏区域A-1向内屏区域A-2的方向转动,或者内屏区域A-2向内屏区域A-1的方向转动,以使手机100折叠,手机100处于折叠状态时,内屏A-1和内屏A-2不对用户显示,外屏B对用户显示。(c) in FIG. 2 shows a schematic diagram of a mobile phone 100 when the display screen is folded. The inner screen area A-1 rotates toward the inner screen area A-2, or the inner screen area A-2 rotates toward the inner screen area. The direction of A-1 is rotated so that the mobile phone 100 is folded. When the mobile phone 100 is in the folded state, the inner screen A-1 and the inner screen A-2 are not displayed to the user, and the outer screen B is displayed to the user.
本申请实施例中,第一功能用于使得手机的第一显示屏与第二显示屏显示相同的画面,其中,第一显示屏为外屏B,第二显示屏可以为内屏区域A-1与内屏区域A-2形成的整体内屏A,也可以是内屏区域A-1,或者也可以是内屏区域A-2。In the embodiment of the present application, the first function is used to make the first display screen and the second display screen of the mobile phone display the same picture, wherein the first display screen is the outer screen B, and the second display screen can be the inner screen area A- The integral inner screen A formed by 1 and the inner screen area A-2 may also be the inner screen area A-1, or may also be the inner screen area A-2.
以折叠屏手机100中的相机应用为例进行说明。可以理解,本申请的技术方案也适用于电子设备上的其他应用,不限于相机应用。The camera application in the folding screen mobile phone 100 is taken as an example for description. It can be understood that the technical solutions of the present application are also applicable to other applications on electronic equipment, not limited to camera applications.
为了方便描述,在下面的描述中,假设拍摄者面对内屏A,被拍摄者面对外屏B为例进行说明,对应地,将摄像头P2称为前置摄像头,将摄像头P1和摄像头P3称为后置摄像头。或者,当内屏A处于展开状态时,摄像头P1不启用,对应地,将摄像头P2称为前置摄像头,将摄像头P3称为后置摄像头。For the convenience of description, in the following description, it is assumed that the photographer faces the inner screen A and the subject faces the outer screen B as an example. Correspondingly, the camera P2 is called the front camera, and the camera P1 and the camera P3 are called It's called the rear camera. Alternatively, when the inner screen A is in the unfolded state, the camera P1 is not enabled, and correspondingly, the camera P2 is called a front camera, and the camera P3 is called a rear camera.
可以理解,本申请的方法也适用于拍摄者面对外屏A,而被拍摄者面对内屏B的情景,此时,对应地,将摄像头P2称为后置摄像头,将摄像头P1和摄像头P3称为前置摄像头。或者,摄像头P1不启用,将摄像头P2称为后置摄像头,将摄像头P3称为前置摄像头。或者,摄像头P3不启用,将摄像头P2称为后置摄像头,将摄像头P1称为前置摄像头。It can be understood that the method of the present application is also applicable to the scene where the photographer faces the outer screen A and the subject faces the inner screen B. At this time, correspondingly, the camera P2 is called the rear camera, and the camera P1 and the camera P3 is called the front camera. Alternatively, the camera P1 is not enabled, the camera P2 is called a rear camera, and the camera P3 is called a front camera. Alternatively, the camera P3 is not enabled, the camera P2 is called a rear camera, and the camera P1 is called a front camera.
示例性的,图3中的(a)示出了一种手机100的第一功能开启时的示意图,拍摄者10利用手机100的后置摄像头P1对被拍摄者20拍照时,在朝向拍摄者的内屏A中显示摄像头P1拍摄到的拍摄画面101a,同时在朝向被拍摄者的折叠屏手机100的外屏B中,显示拍摄画面101a的 镜像画面101b。如此,被拍摄者20在外屏B的镜像画面101b中看到的被拍摄者20的姿态、被拍摄者20在整个拍摄画面所处的位置等信息,与用户10在内屏的拍摄画面101a中看到的相同。其中,外屏B显示的拍摄画面的镜像画面可以通过对内屏A显示的拍摄画面进行复制或镜像处理得到。另外,为了在外屏B中显示拍摄画面101a的完整镜像画面,拍摄画面101a与镜像画面101b的尺寸比(例如长宽比)可以相同。通过这种方式,使拍摄者在使用折叠屏手机100对被拍摄者拍照时,被拍摄者也可以通过外屏B显示的画面直观地看到拍摄效果,被拍摄者可以直接根据外屏B显示的画面,来调整自己姿势、位置以得到更好的拍摄效果。Exemplarily, (a) in FIG. 3 shows a schematic diagram when the first function of the mobile phone 100 is turned on. When the photographer 10 uses the rear camera P1 of the mobile phone 100 to take pictures of the subject 20, The shooting screen 101a captured by the camera P1 is displayed on the inner screen A of the mobile phone, and at the same time, the mirror image 101b of the shooting screen 101a is displayed on the outer screen B of the folding screen mobile phone 100 facing the subject. In this way, information such as the posture of the subject 20 seen by the subject 20 on the mirror image screen 101b of the outer screen B, the position of the subject 20 in the entire shooting screen, and the like in the shooting screen 101a of the inner screen of the user 10 See the same. Wherein, the mirror image of the shooting picture displayed on the outer screen B can be obtained by duplicating or mirroring the shooting picture displayed on the inner screen A. In addition, in order to display a complete mirror image of the shooting image 101a on the outer screen B, the size ratio (eg aspect ratio) of the shooting image 101a and the mirror image 101b may be the same. In this way, when the photographer uses the folding screen mobile phone 100 to take pictures of the subject, the subject can also intuitively see the shooting effect through the picture displayed on the outer screen B, and the subject can directly display the picture according to the outer screen B. to adjust your posture and position to get a better shooting effect.
图3中的(b)示出了一种手机100的第一功能关闭时的示意图,在第一功能关闭的情况下,内屏A显示拍摄到的预览画面,外屏B可以显示当前时间、网络状态、电量等信息,或者显示默认锁屏画面、桌面等等,本申请对此不作限制。(b) in Fig. 3 shows a schematic diagram when the first function of the mobile phone 100 is turned off. When the first function is turned off, the inner screen A displays the captured preview image, and the outer screen B can display the current time, Information such as network status and battery power, or displaying the default lock screen, desktop, etc., is not limited by this application.
图3中的(c)与(d)示出了一种手机100的相机应用界面,该界面包括当前拍摄到的拍摄画面和位于相机应用界面两侧的一些功能按钮,这些功能按钮中包括用于启动协同拍照功能的协同拍照按钮,比如处于关闭状态的协同拍照按钮02。处于关闭状态的协同拍照按钮02用于指示此时协同拍照功能关闭,外屏A显示时间等信息。比如处于开启状态的协同拍照按钮03,处于开启状态的协同拍照按钮03用于指示此时协同拍照功能开启。(c) and (d) in Fig. 3 show a kind of camera application interface of mobile phone 100, and this interface comprises the photographing picture that is captured currently and some function buttons that are positioned at the two sides of camera application interface, and these function buttons include The cooperative photographing button for starting the cooperative photographing function, such as the collaborative photographing button 02 in the off state. The cooperative photographing button 02 in the off state is used to indicate that the cooperative photographing function is closed at this time, and the external screen A displays information such as time. For example, the coordinated photographing button 03 in the on state is used to indicate that the coordinated photographing function is enabled at this time.
本申请实施例中,用户可以在相机应用界面中执行第一操作以开启协同拍照功能,第一操作可以是点击相机应用界面中与协同拍照相关的按钮,或者,也可以是语音指令等,在此不做限制。In this embodiment of the application, the user can perform a first operation in the camera application interface to enable the collaborative photo taking function. The first operation can be clicking a button related to the collaborative photo taking in the camera application interface, or it can also be a voice command. This is not limited.
例如,图4示出了手机100开启协同拍照功能的一种实现过程。如图4中的(a),用户在应用程序界面点击相机应用以开启相机应用。打开相机应用后,内屏A显示相机应用界面。用户点击处于关闭状态的协同拍照按钮02,用户点击协同拍照按钮02后,响应于用户的点击操作,手机100启动协同拍照功能。For example, FIG. 4 shows an implementation process in which the mobile phone 100 enables the collaborative photo taking function. As shown in (a) of FIG. 4 , the user clicks the camera application on the application program interface to start the camera application. After opening the camera application, the inner screen A displays the camera application interface. The user clicks the collaborative photo-taking button 02 which is in the off state. After the user clicks the collaborative photo-taking button 02 , the mobile phone 100 activates the collaborative photo-taking function in response to the user's clicking operation.
此时,如图4中的(b)所示,处于关闭状态的协同拍摄拍照02切换为处于开启状态的协同拍照按钮03。如图4中的(c)所示,手机100外屏B显示上述内屏A的拍摄画面101a的镜像画面101b。At this time, as shown in (b) in FIG. 4 , the coordinated photographing and photographing button 02 in the off state is switched to the coordinated photographing button 03 in the on state. As shown in (c) of FIG. 4 , the outer screen B of the mobile phone 100 displays a mirror image 101b of the shooting screen 101a of the inner screen A above.
当用户再次点击处于开启状态的协同拍照按钮03后,响应于用户的点击操作,手机100关闭协同拍照功能,处于开启状态的协同拍照按钮03重新切换为处于关闭状态的协同拍照按钮02,此时,如图4中的(d)所示,手机100的外屏B显示时间。After the user clicks the collaborative photo taking button 03 in the on state again, in response to the user's click operation, the mobile phone 100 turns off the cooperative photo taking function, and the cooperative photo taking button 03 in the on state is re-switched to the cooperative photo taking button 02 in the off state. , as shown in (d) in FIG. 4 , the external screen B of the mobile phone 100 displays the time.
相机应用中包括多种拍摄模式,以满足拍照需求。需要说明的是,在一些拍摄模式中,手机100支持使用协同拍照功能,例如录像模式、电影模式。在其他拍摄模式中,手机100不支持使用协同拍照功能,例如自拍模式。The camera application includes a variety of shooting modes to meet the needs of taking pictures. It should be noted that, in some shooting modes, the mobile phone 100 supports the use of a cooperative photo taking function, such as video recording mode and movie mode. In other shooting modes, the mobile phone 100 does not support the collaborative camera function, such as the Selfie mode.
相机应用根据用户选择的拍摄模式以及开启的摄像头,判断当前相机模式是否支持协同拍照功能。例如,在当前相机模式是电影模式的情况下,支持协同拍照功能。在当前相机模式是自拍模式的情况下,不支持协同拍照功能。又例如,在相机应用开启的是后置摄像头的情况下,支持协同拍照功能。在相机应用开启的是前置摄像头的情况下,不支持协同拍照功能。The camera application judges whether the current camera mode supports the collaborative photo taking function according to the shooting mode selected by the user and the enabled camera. For example, in the case that the current camera mode is a movie mode, a collaborative photo taking function is supported. When the current camera mode is the selfie mode, the collaborative photo taking function is not supported. For another example, when the camera application is enabled with the rear camera, the collaborative photo taking function is supported. When the camera application is enabled with the front camera, the collaborative photo taking function is not supported.
若在协同拍照功能开启后,用户从相机模式中选择不支持协同拍照功能的模式,手机100的协同拍照功能自动关闭,例如当用户将拍摄模式从电影模式切换至自拍模式时,外屏B不再显示内屏A的拍摄的预览画面。If the user selects a mode that does not support the collaborative camera function from the camera modes after the collaborative camera function is enabled, the collaborative camera function of the mobile phone 100 is automatically turned off. For example, when the user switches the shooting mode from the movie mode to the selfie mode, the outer screen B Then display the preview screen of the shot on the inner screen A.
在一种实现方式中,内屏区域A-1与内屏区域A-2可以显示不同的内容,例如,在拍照时,内屏区域A-1与外屏B同时显示拍摄到的预览画面,内屏区域A-2可以显示相册。上述应用于相 机应用中的第一功能称为协同拍照功能。In one implementation, the inner screen area A-1 and the inner screen area A-2 can display different content. For example, when taking pictures, the inner screen area A-1 and the outer screen B display the captured preview images at the same time. The inner screen area A-2 can display photo albums. The above-mentioned first function applied to the camera application is called the collaborative photo taking function.
本申请实施例中,第二功能用于使手机100的当前显示画面被投屏在第二电子设备上,第二电子设备可以是电脑200。以下可以将第二功能称为系统协同功能。In the embodiment of the present application, the second function is used to project the current display screen of the mobile phone 100 on the second electronic device, and the second electronic device may be the computer 200 . Hereinafter, the second function may be referred to as a system coordination function.
示例性的,图5示出了一种手机100的第二功能开启时的示意图。手机100与电脑200可以通过NFC、扫码、蓝牙等方式连接。例如,从手机100的底部向上滑动,可以出现“多设备协同”按钮,点击“多设备协同”按钮,手机100显示可与手机100建立协同连接的电子设备列表,当电子设备列表中包括电脑200时,点击电脑200,从而手机100与电脑200建立协同连接。手机100与电脑200建立连接后,在电脑200的桌面上会出现一个手机窗口,手机窗口显示手机100的内屏A或外屏B的当前显示界面。手机100的第二功能可以在折叠状态或者展开状态下使用。当手机100在折叠态下开启第一功能时,可引导用户将手机100的显示屏展开。Exemplarily, FIG. 5 shows a schematic diagram of a mobile phone 100 when the second function is turned on. The mobile phone 100 and the computer 200 can be connected through NFC, code scanning, bluetooth and other methods. For example, slide upwards from the bottom of the mobile phone 100, and a "multi-device coordination" button may appear. Click the "multi-device coordination" button, and the mobile phone 100 displays a list of electronic devices that can establish a cooperative connection with the mobile phone 100. When the list of electronic devices includes a computer 200 , click on the computer 200, so that the mobile phone 100 and the computer 200 establish a coordinated connection. After the mobile phone 100 establishes a connection with the computer 200, a mobile phone window will appear on the desktop of the computer 200, and the mobile phone window displays the current display interface of the internal screen A or external screen B of the mobile phone 100. The second function of the mobile phone 100 can be used in a folded state or an unfolded state. When the first function is enabled on the mobile phone 100 in the folded state, the user may be guided to unfold the display screen of the mobile phone 100 .
本申请实施例中,手机100的协同拍照功能使内屏A显示的画面分流显示在外屏B上,手机100的系统协同功能使内屏A显示的画面分流显示在电脑200上。用户可能在协同拍照功能开启的状态下请求开启系统协同功能,或者用户可能在系统协同功能开启的状态下请求开启协同拍照功能。当手机100不支持将内屏A显示的画面同时分流到自身的外屏B与电脑200上时,协同拍照功能与系统协同功能将不能同时使用。In the embodiment of the present application, the cooperative camera function of the mobile phone 100 makes the picture displayed on the inner screen A split and displayed on the outer screen B, and the system coordination function of the mobile phone 100 makes the picture displayed on the inner screen A split and displayed on the computer 200 . The user may request to enable the system collaboration function when the collaborative camera function is enabled, or the user may request to enable the collaborative camera function when the system collaboration function is enabled. When the mobile phone 100 does not support the simultaneous shunting of the images displayed on the inner screen A to its own outer screen B and the computer 200, the collaborative camera function and the system collaborative function cannot be used at the same time.
图6示出了本申请实施例提供的一种电子设备的管理方法。当手机100接收到用户请求时,手机100判断用户的请求操作开启的是协同拍照功能还是系统协同功能。当用户的请求操作请求开启协同拍照功能时,手机100需要判断当前系统协同功能是否处于开启状态,在系统协同功能处于关闭状态时,手机100开启协同拍照功能。在系统协同功能处于开启状态时,协同拍照功能不可使用。FIG. 6 shows a method for managing electronic equipment provided by an embodiment of the present application. When the mobile phone 100 receives the user's request, the mobile phone 100 judges whether the user's requested operation enables the coordinated photographing function or the system coordinated function. When the user's request operation requests to enable the collaborative photographing function, the mobile phone 100 needs to determine whether the current system cooperative function is enabled, and when the system coordinated function is disabled, the mobile phone 100 enables the coordinated photographing function. When the system collaboration function is turned on, the collaborative camera function cannot be used.
在一种实现方式中,在系统协同功能处于开启状态时,手机100可以向用户发出提示,提示用户关闭系统协同功能。示例性的,图7中的(a)示出了一种提示界面。在系统协同功能处于开启状态时,若用户请求开启协同拍照功能,则弹出提示框01,提示框01显示“协同拍照功能无法开启,请先关闭系统协同功能”,并显示“去关闭”按钮和“取消”按钮。用户可以点击“去关闭”按钮,执行用于关闭系统协同功能的操作。或者,用户可以点击“取消”按钮,放弃开启协同拍照功能。In an implementation manner, when the system coordination function is enabled, the mobile phone 100 may issue a prompt to the user to prompt the user to disable the system coordination function. Exemplarily, (a) in FIG. 7 shows a prompt interface. When the system collaboration function is enabled, if the user requests to enable the collaborative camera function, a prompt box 01 will pop up, and the prompt box 01 displays "The collaborative camera function cannot be enabled, please turn off the system collaborative function first", and displays the "Close" button and "Cancel" button. The user can click the "Close" button to perform an operation for closing the system coordination function. Alternatively, the user can click the "Cancel" button to give up enabling the collaborative photo taking function.
当用户的请求操作请求开启系统协同功能时,手机100需要判断当前协同拍照功能是否处于开启状态,在协同拍照功能处于关闭状态时,手机100开启系统协同功能。在协同拍照功能处于开启状态时,手机100先关闭协同拍照功能,然后开启系统协同功能。When the user's request operation requests to enable the system coordination function, the mobile phone 100 needs to determine whether the current coordinated photographing function is enabled, and when the coordinated photographing function is disabled, the mobile phone 100 enables the system coordinated function. When the collaborative photographing function is turned on, the mobile phone 100 first disables the collaborative photographing function, and then activates the system collaborative function.
在一种实现方式中,手机100可以向用户发出提示,提示用户协同拍照功能将被关闭。示例性的,图7中的(b)示出了一种提示界面。在协同拍照功能处于开启状态时,若用户请求开启系统协同功能,则弹出提示框02,提示框02显示“协同拍照功能将被关闭,确认是否开启系统协同功能”,并显示“是”按钮和“否”按钮。用户可以点击“是”按钮,则手机100开启系统协同功能。或者,用户可以点击“否”按钮,放弃开启系统协同功能。In an implementation manner, the mobile phone 100 may issue a prompt to the user, prompting the user that the collaborative photo taking function will be turned off. Exemplarily, (b) in FIG. 7 shows a prompt interface. When the collaborative camera function is enabled, if the user requests to enable the system collaborative function, a prompt box 02 will pop up, and the prompt box 02 will display "The collaborative camera function will be closed, confirm whether to enable the system collaborative function", and display the "Yes" button and "No" button. The user can click the "Yes" button, and the mobile phone 100 starts the system coordination function. Alternatively, the user may click the "No" button to give up enabling the system collaboration function.
图8示出了本申请实施例提供的一种电子设备的管理方法。当手机100的协同拍照功能处于开启状态时,在手机100的使用过程中,手机100的电量和温度等会发生变化。当手机100检测到自身的电量低于第一阈值,例如,手机100的电量低于30%,或者,当手机100检测到自身的温度高于第二阈值,手机100将关闭协同拍照功能。FIG. 8 shows a method for managing an electronic device provided by an embodiment of the present application. When the collaborative photographing function of the mobile phone 100 is turned on, the power and temperature of the mobile phone 100 will change during the use of the mobile phone 100 . When the mobile phone 100 detects that its own power is lower than the first threshold, for example, the power of the mobile phone 100 is lower than 30%, or when the mobile phone 100 detects that its own temperature is higher than the second threshold, the mobile phone 100 will turn off the cooperative camera function.
在一种实现方式中,手机100的协同拍照功能处于开启状态的情况下,当手机100检测到自身的电量低于第一阈值时,或者,当手机100检测到自身的温度高于第二阈值时,手机100可以 向用户发出提示,提示用户手机100当前可用性较差。示例性的,当手机100的电量较低时,手机100弹出提示框,提示框显示“当前电量较低,是否关闭协同拍照功能”,并显示“是”按钮和“否”按钮。用户可以点击“是”按钮,则手机100响应于该操作关闭协同拍照功能。或者,用户可以点击“否”按钮,手机100响应于该操作继续开启协同拍照功能。其中,手机100显示的包括提示框的界面对应于第三界面,用户点击“是”按钮的操作对应于第三操作。In one implementation, when the collaborative camera function of the mobile phone 100 is turned on, when the mobile phone 100 detects that its own power is lower than the first threshold, or when the mobile phone 100 detects that its own temperature is higher than the second threshold , the mobile phone 100 may send a prompt to the user, prompting the user that the current usability of the mobile phone 100 is poor. Exemplarily, when the power of the mobile phone 100 is low, a prompt box pops up on the mobile phone 100, and the prompt box displays "the current power is low, do you want to disable the collaborative photo taking function" and displays a "Yes" button and a "No" button. The user may click the "Yes" button, and the mobile phone 100 will close the collaborative photo taking function in response to the operation. Alternatively, the user may click the "No" button, and the mobile phone 100 continues to enable the collaborative photo taking function in response to the operation. Wherein, the interface including the prompt box displayed on the mobile phone 100 corresponds to the third interface, and the user's operation of clicking the "Yes" button corresponds to the third operation.
除此之外,手机100可能会接收到来自第三电子设备的通话请求,在手机100的协同拍照功能处于开启状态的情况下,手机100接收到通话请求时,则手机100自动关闭协同拍照功能。In addition, the mobile phone 100 may receive a call request from the third electronic device. When the collaborative camera function of the mobile phone 100 is turned on, when the mobile phone 100 receives a call request, the mobile phone 100 automatically turns off the collaborative camera function. .
在一种实现方式中,在手机100的协同拍照功能处于开启状态的情况下,手机100接收到通话请求时,判断用户是否接受通话请求,若用户接受该通话请求,手机100与第三电子设备建立通话连接,则手机100自动关闭协同拍照功能。若用户未接受该通话请求,手机100继续开启协同拍照功能。当通话结束后,手机100可以重新开启协同拍照功能,恢复到通话前相机应用所处的状态。In one implementation, when the collaborative camera function of the mobile phone 100 is turned on, when the mobile phone 100 receives a call request, it judges whether the user accepts the call request. If the user accepts the call request, the mobile phone 100 and the third electronic device When the call connection is established, the mobile phone 100 automatically turns off the collaborative photo taking function. If the user does not accept the call request, the mobile phone 100 continues to enable the collaborative photo taking function. After the call is over, the mobile phone 100 can re-enable the collaborative photo taking function, and restore the state of the camera application before the call.
需要说明的是,上述关闭协同拍照功能只是关闭相机应用的一个功能,关闭协同拍照功能后,相机可以继续在前台运行。It should be noted that the above-mentioned disabling of the cooperative photo taking function is only a function of disabling the camera application. After the cooperative photo taking function is turned off, the camera can continue to run in the foreground.
除此之外,当手机100检测到相机应用出现故障无法运行时,如相机应用自动退到后台运行,手机100自动关闭协同拍照功能。In addition, when the mobile phone 100 detects that the camera application fails to run, for example, the camera application automatically retreats to run in the background, and the mobile phone 100 automatically disables the collaborative photo taking function.
为了更清楚地了解上述方法在手机100上的实现细节,下面结合图9至图16来介绍手机100中各软件/硬件部件配合实现上述方法的过程。In order to understand the implementation details of the above method on the mobile phone 100 more clearly, the process of implementing the above method through cooperation of various software/hardware components in the mobile phone 100 will be introduced below with reference to FIG. 9 to FIG. 16 .
图9是本申请实施例的手机100的软件结构框图,分层框架将软件分为若干层,每一层都有清晰的角色和分工,层与层之间通过软件接口通信。在一些实施例中,可以将手机100的系统分为应用程序层10,应用程序框架层20,硬件层30。FIG. 9 is a block diagram of the software structure of the mobile phone 100 according to the embodiment of the present application. The layered framework divides the software into several layers, each layer has a clear role and division of labor, and the layers communicate through software interfaces. In some embodiments, the system of the mobile phone 100 can be divided into an application program layer 10 , an application program framework layer 20 , and a hardware layer 30 .
应用程序层10可以包括一系列应用程序包,例如,应用程序包可以包括相机应用,相机应用程序包括功能模块,逻辑模块和相机管理类。The application layer 10 may include a series of application packages. For example, the application package may include a camera application, and the camera application may include function modules, logic modules and camera management classes.
功能模块包括相机应用的多个拍摄模式,例如拍照模式11、人像模式12、录像模式13、电影模式14、自拍模式等等。其中,拍照模式11、人像模式12、录像模式13以及电影模式14均支持协同拍照功能1105。The functional modules include a plurality of shooting modes of the camera application, such as a photographing mode 11, a portrait mode 12, a video recording mode 13, a movie mode 14, a Selfie mode, and the like. Among them, the photographing mode 11 , the portrait mode 12 , the video recording mode 13 and the movie mode 14 all support the collaborative photographing function 1105 .
可以理解,在一些实施例中,拍照模式11可以包括智慧识物1101、人工智能(artificial intelligence,AI)摄影1102,滤镜功能1103,闪光灯功能1104、协同拍摄功能1105等功能,用户可根据需求选择上述功能,达到相应的目的。It can be understood that, in some embodiments, the photographing mode 11 may include functions such as intelligent object recognition 1101, artificial intelligence (AI) photography 1102, filter function 1103, flash function 1104, and collaborative shooting function 1105. Select the above functions to achieve the corresponding purpose.
例如,用户可以在拍照模式11下,选择开启智慧识物1101功能,来识别图像中的物体。具体地,用户在拍照模式11下开启智慧识物功能后,只需将摄像头对准所拍摄的物体,当手机100识别出该物体时,便会在手机内屏B显示该物体的名称(比如“杜鹃花”)或者种类(“狗狗”)。在其他实施例中,用户也可以开启滤镜功能1103,以对所拍摄的物体进行美化处理。本申请对此不作限制。For example, the user can choose to enable the function of smart recognition 1101 in the camera mode 11 to identify objects in the image. Specifically, after the user turns on the smart object recognition function in the camera mode 11, the user only needs to point the camera at the object to be photographed, and when the mobile phone 100 recognizes the object, the name of the object will be displayed on the internal screen B of the mobile phone (such as "Azalea") or species ("Doggie"). In other embodiments, the user can also enable the filter function 1103 to beautify the captured object. This application is not limited to this.
在一些实施例中,人像模式12可以包括协同拍摄功能1105,还可以包括其他功能,例如美颜功能、特殊效果功能(图中未示出)等。当用户选择人像模式12进行拍摄时,人像模式能使被摄人物的脸保持清晰,同时对背景做虚化,从而突显拍摄主体。In some embodiments, the portrait mode 12 may include a cooperative shooting function 1105, and may also include other functions, such as a beauty function, a special effect function (not shown in the figure), and the like. When the user selects the portrait mode 12 for shooting, the portrait mode can keep the face of the subject clear, and at the same time blur the background, thereby highlighting the subject.
在一些实施例中,录像模式13可以包括多景录像功能1301,闪光灯功能1104,滤镜功能1103,协同拍摄功能1105等。其中,当用户开启多景录像功能1301时,手机100的前后置摄像头同时 开启,可使用户利用前后置摄像头,同时对多个对象进行录像。例如用户可以开启多景录像功能1301后,可以同时录制下前置摄像头P2拍摄到的图像以及后置摄像头P3拍摄到的图像,以详细记录用户所处场景。此外,用户也可以开启闪光灯功能1104,在较暗的场景下,提高成像效果,例如用户在比较昏暗的地方拍摄时,可以打开闪光灯功能1104,增加曝光时长,提高所拍摄物体的成像效果。In some embodiments, the recording mode 13 may include a multi-view recording function 1301 , a flash function 1104 , a filter function 1103 , a collaborative shooting function 1105 and so on. Wherein, when the user turns on the multi-view recording function 1301, the front and rear cameras of the mobile phone 100 are turned on at the same time, allowing the user to use the front and rear cameras to simultaneously record multiple objects. For example, the user can record the images captured by the front camera P2 and the images captured by the rear camera P3 at the same time after enabling the multi-scene recording function 1301, so as to record the scene where the user is located in detail. In addition, the user can also turn on the flash function 1104 to improve the imaging effect in darker scenes. For example, when the user is shooting in a dark place, the user can turn on the flash function 1104 to increase the exposure time and improve the imaging effect of the object being photographed.
在一些实施例中,电影模式14可以包括颜色查找(look up table,LUT)功能1401,4K高动态光照渲染图像(high-dynamic range,HDR)功能1402,慢动作功能1403,闪光灯功能1104,协同拍摄功能1105等。其中,颜色查找功能1401实质为用户所拍摄的物体实现调色功能,以使用户拍摄的物体色彩更加丰富。而4K HDR功能1402中,4K指的是分辨率(4096像素×2160像素),HDR则是一种图像渲染技术,目的在于实现场景照明和模拟光线的反射折射,以使物体表现的更加真实,4K HDR用于改善拍摄画面质量,提高图像分辨率和物体真实度。慢动作功能1403则为了提高拍摄的趣味性,用户通过慢动作功能1403能够增加所拍摄图像的美感和真实感。In some embodiments, the movie mode 14 may include a color lookup (look up table, LUT) function 1401, a 4K high-dynamic light rendering image (high-dynamic range, HDR) function 1402, a slow motion function 1403, a flash function 1104, a collaborative Shooting function 1105 etc. Among them, the color search function 1401 essentially realizes the color adjustment function for the objects photographed by the user, so as to enrich the colors of the objects photographed by the user. In the 4K HDR function 1402, 4K refers to the resolution (4096 pixels × 2160 pixels), and HDR is an image rendering technology, the purpose of which is to achieve scene lighting and simulate the reflection and refraction of light to make objects appear more realistic. 4K HDR is used to improve the quality of shooting pictures, improve image resolution and object realism. The slow motion function 1403 is to improve the fun of shooting, and the user can increase the beauty and realism of the captured image through the slow motion function 1403 .
此外,相机应用通过逻辑模块中相应的控制逻辑来实现上述功能的开启和关闭以及控制手机100内外屏的协同显示。逻辑模块在手机100的状态符合预先设置的控制逻辑时,开启或者关闭协同拍照功能,比如,逻辑模块包括电量控制逻辑1501,温度控制逻辑1502,通话控制逻辑1503,故障控制逻辑1504,系统变化控制逻辑1505,以及协同拍照开关控制逻辑1506。In addition, the camera application implements the opening and closing of the above functions and controls the coordinated display of the internal and external screens of the mobile phone 100 through the corresponding control logic in the logic module. When the state of the mobile phone 100 conforms to the preset control logic, the logic module enables or disables the cooperative photo taking function. For example, the logic module includes power control logic 1501, temperature control logic 1502, call control logic 1503, fault control logic 1504, system change control Logic 1505, and cooperative camera switch control logic 1506.
当手机100的电量过低时,相机应用通过电量控制逻辑1501来关闭协同拍照功能。当手机100的温度过高时,相机应用通过温度控制逻辑1502来关闭协同拍照功能。当手机100接收到来电时,相机应用通过通话控制逻辑1503来关闭协同拍照功能。当手机100的相机无法运行时,相机应用通过故障控制逻辑1504来关闭协同拍照功能。When the power of the mobile phone 100 is too low, the camera application uses the power control logic 1501 to disable the cooperative photo taking function. When the temperature of the mobile phone 100 is too high, the camera application uses the temperature control logic 1502 to disable the cooperative photo taking function. When the mobile phone 100 receives an incoming call, the camera application uses the call control logic 1503 to disable the collaborative photo taking function. When the camera of the mobile phone 100 fails to operate, the camera application uses the failure control logic 1504 to disable the cooperative photo taking function.
相机应用通过系统变化控制逻辑1505来协调第一功能和第二功能的使用。在协同拍照功能开启的状态下,用户开启系统协同功能时,触发系统变化控制逻辑1505关闭协同拍照功能。另外,在协同拍照功能开启时,触发系统变化控制逻辑1505以确认系统协同功能是否开启。The camera application coordinates the use of the first function and the second function through system change control logic 1505 . When the collaborative photographing function is enabled, when the user activates the system collaborative function, the system change control logic 1505 is triggered to disable the collaborative photographing function. In addition, when the coordinated photographing function is enabled, the system change control logic 1505 is triggered to confirm whether the system coordinated function is enabled.
相机应用通过协同拍摄开关控制逻辑1506来检测协同拍照开关的开启或关闭,根据协同拍照开关的开启或关闭,控制协同拍照功能的开启与关闭。The camera application detects the on or off of the cooperative photographing switch through the cooperative photographing switch control logic 1506, and controls the cooperative photographing function to be turned on or off according to whether the cooperative photographing switch is turned on or off.
在本申请的一些实施例中,协同拍照开关可以为图3所示的协同拍照按钮02或协同拍照按钮03。用户可以通过点击如图3中的(d)所示的手机内屏A上处于关闭状态的协同拍照按钮02,触发协同拍照开关控制逻辑1506,以开启相机应用的协同拍照功能1105。另外,用户可以通过点击如图3中的(c)所示的手机内屏A上处于开启状态的协同拍照按钮03触发协同拍照开关控制逻辑1506,以关闭相机应用的协同拍照功能1105。In some embodiments of the present application, the coordinated photo-taking switch may be the coordinated photo-taking button 02 or the coordinated photo-taking button 03 shown in FIG. 3 . The user can trigger the cooperative photo switch control logic 1506 by clicking the closed cooperative photo button 02 on the mobile phone inner screen A as shown in (d) in FIG. 3 to enable the cooperative photo function 1105 of the camera application. In addition, the user can trigger the cooperative photo switch control logic 1506 by clicking the cooperative photo button 03 in the on-state on the mobile phone inner screen A as shown in (c) in FIG. 3 to close the cooperative photo function 1105 of the camera application.
可以理解,在一些实施例中,协同拍照开关还可以为其他样式的开关,协同拍照开关的显示状态可以根据协同拍照功能的开启和关闭而发生改变。例如,在协同拍照功能开启时,协同拍照开关为凸起状态,在协同拍照功能关闭时,协同拍照开关恢复原状。本申请对此不作限制。It can be understood that, in some embodiments, the cooperative photo taking switch can also be a switch of other styles, and the display state of the cooperative photo taking switch can be changed according to whether the cooperative photo taking function is turned on or off. For example, when the cooperative photographing function is turned on, the coordinated photographing switch is in a raised state, and when the coordinated photographing function is turned off, the coordinated photographing switch returns to its original state. This application is not limited to this.
相机管理类为管理相机应用的功能的模块。异常场景处理模块16接收手机100的异常信息,以触发逻辑模块中的控制逻辑。功能开启模块17与功能关闭模块18分别用于实现开启相机应用的协同拍照功能1105和关闭相机应用的协同拍照功能1105。The camera management class is a module that manages the functions of the camera application. The abnormal scene processing module 16 receives the abnormal information of the mobile phone 100 to trigger the control logic in the logic module. The function enabling module 17 and the function disabling module 18 are respectively used for enabling the coordinated photographing function 1105 of the camera application and disabling the coordinated photographing function 1105 of the camera application.
可以理解,应用程序层10还可以包括其他应用,例如视频应用、聊天应用等,本申请对此不作限制。It can be understood that the application program layer 10 may also include other applications, such as video applications, chat applications, etc., which are not limited in this application.
应用程序框架层20为应用程序层的应用程序提供应用编程接口(application programming  interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。本申请实施例中,框架层包括相机API21,数据流切换模块22,相机服务模块23,信息接收模块24,和显示管理模块(DisplayManager)25,协同显示管理模块26,协同监听模块27,以及系统管理模块28。The application framework layer 20 provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions. In the embodiment of the present application, the framework layer includes a camera API 21, a data stream switching module 22, a camera service module 23, an information receiving module 24, a display management module (DisplayManager) 25, a cooperative display management module 26, a cooperative monitoring module 27, and a system Management module 28.
相机API21为摄像头模块31的程序接口,相机应用可以通过调用相机API21,来调用摄像头模块31进行拍摄。相机API21还可以为其他应用程序提供接口,例如,相册与相机API连接,用户在使用相机应用时,可以在相机应用的界面进入相册中。The camera API 21 is a program interface of the camera module 31 , and the camera application can call the camera module 31 to take pictures by calling the camera API 21 . The camera API 21 can also provide interfaces for other applications, for example, the photo album is connected to the camera API, and the user can enter the photo album through the interface of the camera application when using the camera application.
数据流切换模块22用于实现相机的各种数据流的切换,例如将拍照数据流切换为视频数据流。The data stream switching module 22 is used to realize the switching of various data streams of the camera, for example, switching the photographing data stream to the video data stream.
相机服务模块23可以监控相机应用的运行情况,当相机应用无法运行时,将该信息传递给逻辑模块,从而触发故障控制逻辑1504来关闭协同拍照功能。The camera service module 23 can monitor the running status of the camera application, and when the camera application fails to run, transmit the information to the logic module, thereby triggering the failure control logic 1504 to disable the collaborative photographing function.
信息接收模块24包括电池信息接收模块(BatteryInfoReceiver)和温度信息接收模块(OverHotReceiver),用于接收电池电量信息、手机100的温度信息等信息,在确定电池电量较低或者手机100温度过高后,将信息传递给相机应用的异常场景处理模块16,以触发逻辑模块中对应的控制逻辑。信息接收模块24还包括通话信息接收模块,用于接收手机100的通话信息,在接收到手机100的通话信息后,将信息传递给相机应用的异常场景处理模块16,以触发逻辑模块中对应的控制逻辑。The information receiving module 24 includes a battery information receiving module (BatteryInfoReceiver) and a temperature information receiving module (OverHotReceiver), for receiving information such as battery power information, temperature information of the mobile phone 100, after determining that the battery power is low or the temperature of the mobile phone 100 is too high, The information is transmitted to the abnormal scene processing module 16 of the camera application to trigger the corresponding control logic in the logic module. The information receiving module 24 also includes a call information receiving module, which is used to receive the call information of the mobile phone 100. After receiving the call information of the mobile phone 100, the information is passed to the abnormal scene processing module 16 of the camera application, so as to trigger the corresponding call information in the logic module. control logic.
此外,显示管理模块25实时监控手机100的内屏A和外屏B的使用状态,以监控手机100的协同拍照功能与系统协同功能是否为开启状态。相机应用从显示管理模块25获取系统协同功能的状态,然后根据获取的状态以及预先设置的控制逻辑,确定是否开启协同拍照功能。例如,当用户开启协同拍照功能时,相机管理类从显示管理模块25获取系统协同功能的状态,当系统协同功能当前为开启状态时,触发系统变化控制逻辑1505,执行无法开启协同拍照功能的逻辑,当系统协同功能当前为关闭状态时,执行开启协同拍照功能的逻辑。In addition, the display management module 25 monitors the use status of the inner screen A and the outer screen B of the mobile phone 100 in real time, so as to monitor whether the coordinated camera function and the system coordinated function of the mobile phone 100 are enabled. The camera application obtains the state of the system coordination function from the display management module 25, and then determines whether to enable the cooperative photographing function according to the obtained state and the preset control logic. For example, when the user enables the collaborative camera function, the camera management class obtains the status of the system collaborative function from the display management module 25, and when the system collaborative function is currently enabled, the system change control logic 1505 is triggered to execute the logic that the collaborative camera function cannot be enabled , when the system collaboration function is currently disabled, execute the logic of enabling the collaborative camera function.
显示管理模块25在协同拍照功能开启后,当感知到外屏被点亮时通过状态回调的方式通知相机应用,以便于相机应用刷新协同拍照开关的显示状态。After the cooperative photo taking function is enabled, the display management module 25 notifies the camera application through a state callback when sensing that the external screen is lit, so that the camera application can refresh the display state of the cooperative photo taking switch.
协同监听模块27用于监听相机应用中协同拍照开关为开启状态还是关闭状态。The coordinated monitoring module 27 is used to monitor whether the coordinated photo taking switch in the camera application is on or off.
协同显示管理模块26用于将内屏的预览画面显示在外屏上,实现内屏A和外屏B的协同显示,比如可以通过创建分屏管理类和界面基类,来实现内屏A和外屏B的协同显示。在一些实施例中,协同显示管理模块26可以为外屏B创建对应的显示图层(diaplay),并将该图层作为拍摄画面的镜像画面的载体显示在手机外屏B,使用该图层显示拍摄画面的镜像画面。The collaborative display management module 26 is used to display the preview image of the internal screen on the external screen to realize the collaborative display of the internal screen A and the external screen B. Coordinated display of screen B. In some embodiments, the cooperative display management module 26 can create a corresponding display layer (diaplay) for the external screen B, and display this layer on the external screen B of the mobile phone as the carrier of the mirror image of the shooting picture. Displays a mirror image of the shooting screen.
协同显示管理模块26可以为相机应用的协同拍照功能1105提供相关接口,协同拍照功能1105启动后,可以通过调用协同显示管理模块26的相关接口,来实现内屏A和外屏B的协同显示。协同拍照功能1105关闭后,可以通过调用协同显示管理模块26的相关接口,来关闭外屏B的协同显示窗口。The collaborative display management module 26 can provide relevant interfaces for the collaborative photographing function 1105 of the camera application. After the cooperative photographing function 1105 is started, the cooperative display of the inner screen A and the outer screen B can be realized by calling the relevant interface of the collaborative display management module 26 . After the cooperative photographing function 1105 is closed, the cooperative display window of the external screen B can be closed by calling the relevant interface of the cooperative display management module 26 .
系统管理模块28用于控制系统协同功能的开启与关闭。当系统协同功能被请求开启时,系统管理模块28从显示管理模块25获取协同拍照功能的状态,当协同拍照功能当前为开启状态时,执行关闭协同拍照功能后开启系统协同功能的逻辑。当协同拍照功能当前为关闭状态时,执行开启系统协同功能的逻辑。The system management module 28 is used to control the opening and closing of the system coordination function. When the system coordination function is requested to be turned on, the system management module 28 obtains the status of the coordination photography function from the display management module 25, and when the coordination photography function is currently enabled, executes the logic of turning off the coordination photography function and then enabling the system coordination function. When the collaborative camera function is currently off, execute the logic of enabling the system collaborative function.
可以理解,应用程序框架层20还可以包括其他模块,例如视图管理器(图中未示出)、无线保真通信模块(wireless fidelity,Wi-Fi)(图中未示出),本申请对此不作限制。It can be understood that the application framework layer 20 may also include other modules, such as a view manager (not shown in the figure), a wireless fidelity communication module (wireless fidelity, Wi-Fi) (not shown in the figure). This is not limited.
硬件层30包括摄像头模块31、图像信号处理(image signal processor,ISP)驱动32、显示接口(display port)驱动33、传感器(sensor)模块34、以及通信模块35。The hardware layer 30 includes a camera module 31, an image signal processor (image signal processor, ISP) driver 32, a display port driver 33, a sensor module 34, and a communication module 35.
在本申请实施例中,摄像头模块31包括上文所述的摄像头P1、摄像头P2和摄像头P3。在另一些实施例中,还可以包括其他摄像头。In the embodiment of the present application, the camera module 31 includes the above-mentioned camera P1, camera P2, and camera P3. In other embodiments, other cameras may also be included.
ISP驱动32则用于对手机100的图像传感器传输的信号做处理。例如,将图像传感器反馈的图像的电信号转换为肉眼可见的图像。ISP驱动32还可以对图像的噪点、亮度等进行算法优化。ISP驱动32还可以对拍摄场景的曝光、色温等参数进行优化,或者以实现对图像的防抖处理,增强图像的显示效果。The ISP driver 32 is used to process the signal transmitted by the image sensor of the mobile phone 100 . For example, the electrical signal of the image fed back by the image sensor is converted into an image visible to the naked eye. The ISP driver 32 can also perform algorithm optimization on image noise and brightness. The ISP driver 32 can also optimize parameters such as exposure and color temperature of the shooting scene, or implement anti-shake processing on the image to enhance the display effect of the image.
DP驱动33则是外接显示器接入手机100的接口,手机100通过DP驱动33可以实现与外接显示器连接,并将手机100上显示的图像同步显示在外接显示器上。The DP driver 33 is an interface for connecting the external display to the mobile phone 100. The mobile phone 100 can be connected to the external display through the DP driver 33, and the images displayed on the mobile phone 100 can be synchronously displayed on the external display.
在本申请实施例中,传感器模块34包括了温度传感器和电源管理模块,温度传感器用于检测手机100的温度。电源管理模块用于监测电池的电量。In the embodiment of the present application, the sensor module 34 includes a temperature sensor and a power management module, and the temperature sensor is used to detect the temperature of the mobile phone 100 . The power management module is used to monitor the power of the battery.
通信模块35包括移动通信模块和无线通信模块,使得手机100可以接收来自第三电子设备的通话请求,与第三电子设备通信。并且,使得手机100可以与电脑200建立通信连接,以实现第二功能。The communication module 35 includes a mobile communication module and a wireless communication module, so that the mobile phone 100 can receive a call request from the third electronic device and communicate with the third electronic device. Moreover, the mobile phone 100 can establish a communication connection with the computer 200 to realize the second function.
可以理解的是,手机100的软件框架还可以包括内核层(图中未示出)、硬件抽象层(图中未示出)。It can be understood that the software framework of the mobile phone 100 may also include a kernel layer (not shown in the figure) and a hardware abstraction layer (not shown in the figure).
可以理解,上述软件结构仅为示例性的,并不构成对手机100软件结构的限制,在其他实施例中,手机100还可以具有更多或更少的结构,本申请对此不作限制。It can be understood that the above software structure is only exemplary and does not constitute a limitation on the software structure of the mobile phone 100. In other embodiments, the mobile phone 100 may have more or less structures, which are not limited by this application.
为了更直观地了解上述各软件模块之间配合实现上述方法的过程。具体地,下面以图10所示的交互图为例,介绍协同拍照功能处于开启状态时,在电池电量过低的情况下关闭协同拍照功能的过程。In order to more intuitively understand the process of cooperation between the above software modules to realize the above method. Specifically, the following uses the interaction diagram shown in FIG. 10 as an example to introduce the process of disabling the collaborative photographing function when the battery power is too low when the collaborative photographing function is enabled.
步骤1001,电量管理模块(LowBatteryControler)检测到手机100的电池电量低于第一阈值。Step 1001, the power management module (LowBatteryControler) detects that the battery power of the mobile phone 100 is lower than a first threshold.
电量管理模块包括电源管理模块和电池信息接收模块。电源管理模块用于监测电池的电量,电池信息接收模块判断电池的电量是否低于第一阈值。The power management module includes a power management module and a battery information receiving module. The power management module is used to monitor the power of the battery, and the battery information receiving module judges whether the power of the battery is lower than the first threshold.
步骤1002,电量管理模块将电池电量低于第一阈值的检测结果传递给相机管理类(AppUtill)。相机管理类接收到检测结果后,将检测结果发送给相机应用的异常场景处理模块(handleAbnormalSceneExitCollaborateMode),以使异常场景处理模块对电池电量低的情况进行处理。Step 1002, the power management module transmits the detection result that the battery power is lower than the first threshold to the camera management class (AppUtill). After the camera management class receives the detection result, it sends the detection result to the abnormal scene processing module (handleAbnormalSceneExitCollaborateMode) of the camera application, so that the abnormal scene processing module can handle the situation of low battery power.
步骤1003,异常场景处理模块触发电量控制逻辑1501,确定关闭协同拍照功能。Step 1003, the abnormal scene processing module triggers the power control logic 1501, and determines to disable the collaborative photo taking function.
步骤1004,异常场景处理模块将关闭协同拍照功能的指令发送给功能关闭模块(exitCollaborateMode)。功能关闭模块将关闭协同拍照功能的指令发送给协同显示管理模块(CollaborationPresentation)。Step 1004, the abnormal scene processing module sends an instruction to close the collaborative photographing function to the function closing module (exitCollaborateMode). The function disabling module sends an instruction to disabling the collaborative photographing function to the collaborative display management module (CollaborationPresentation).
步骤1005,协同显示管理模块关闭外屏中用于协同显示的窗口。Step 1005, the coordinated display management module closes the window for coordinated display in the external screen.
步骤1006,在关闭用于协同显示的窗口后,协同显示管理模块使用一个回调函数(onDisplayChanged),将手机100的外屏中用于协同显示的窗口关闭的信息回调给显示管理模块。Step 1006, after closing the window for coordinated display, the coordinated display management module uses a callback function (onDisplayChanged) to call back the closing information of the window for coordinated display on the external screen of the mobile phone 100 to the display management module.
为了更直观地了解上述各软件模块之间配合实现上述方法的过程。具体地,下面以图11所示的交互图为例,介绍协同拍照功能处于开启状态时,在手机100温度过高的情况下关闭协同拍照 功能的过程。In order to more intuitively understand the process of cooperation between the above software modules to realize the above method. Specifically, the following uses the interaction diagram shown in FIG. 11 as an example to introduce the process of disabling the collaborative photo taking function when the temperature of the mobile phone 100 is too high when the collaborative photo taking function is turned on.
步骤1101,温度管理模块(OverTemperatureControler)检测到手机100的温度高于第二阈值。Step 1101, the temperature management module (OverTemperatureControler) detects that the temperature of the mobile phone 100 is higher than a second threshold.
温度管理模块包括温度传感器和温度信息接收模块。温度传感器检测手机100的温度。温度信息接收模块判断手机100的温度是否高于第二阈值。The temperature management module includes a temperature sensor and a temperature information receiving module. The temperature sensor detects the temperature of the mobile phone 100 . The temperature information receiving module determines whether the temperature of the mobile phone 100 is higher than a second threshold.
步骤1102,温度管理模块将手机100的温度高于第二阈值的检测结果传递给相机管理类(AppUtill)。相机管理类接收到该检测结果后,将该信息发送给相机应用的异常场景处理模块(handleAbnormalSceneExitCollaborateMode),以使异常场景处理模块对手机100温度过高的情况进行处理。Step 1102, the temperature management module transmits the detection result that the temperature of the mobile phone 100 is higher than the second threshold to the camera management class (AppUtill). After the camera management class receives the detection result, it sends the information to the abnormal scene processing module (handleAbnormalSceneExitCollaborateMode) of the camera application, so that the abnormal scene processing module handles the situation that the temperature of the mobile phone 100 is too high.
步骤1103,异常场景处理模块触发温度控制逻辑1502,确定关闭协同拍照功能。 Step 1103, the abnormal scene processing module triggers the temperature control logic 1502, and determines to disable the collaborative photo taking function.
步骤1104,异常场景处理模块将关闭协同拍照功能的指令发送给功能关闭模块(exitCollaborateMode)。功能关闭模块将关闭协同拍照功能的指令发送给协同显示管理模块(CollaborationPresentation)。Step 1104, the abnormal scene processing module sends an instruction to close the collaborative photographing function to the function closing module (exitCollaborateMode). The function disabling module sends an instruction to disabling the collaborative photographing function to the collaborative display management module (CollaborationPresentation).
步骤1105,协同显示管理模块关闭外屏中用于协同显示的窗口。Step 1105, the coordinated display management module closes the window for coordinated display in the external screen.
步骤1106,在关闭用于协同显示的窗口后,协同显示管理模块使用一个回调函数(onDisplayChanged),将手机100的外屏关闭的信息回调给显示管理模块。Step 1106, after closing the window for coordinated display, the coordinated display management module uses a callback function (onDisplayChanged) to call back the information that the external screen of the mobile phone 100 is closed to the display management module.
为了更直观地了解上述各软件模块之间配合实现上述方法的过程。具体地,下面以图12所示的交互图为例,介绍协同拍照功能处于开启状态时,在相机应用运行故障的情况下关闭协同拍照功能的过程。In order to more intuitively understand the process of cooperation between the above software modules to realize the above method. Specifically, the following uses the interaction diagram shown in FIG. 12 as an example to introduce the process of disabling the collaborative photographing function when the camera application fails to operate when the collaborative photographing function is enabled.
步骤1201,相机服务模块(CameraOnErrorProcessor)检测到相机应用运行出现故障。Step 1201, the camera service module (CameraOnErrorProcessor) detects that the camera application fails.
步骤1202,相机服务模块将相机应用运行出现故障的检测结果传递给相机管理类。相机管理类接收到检测结果后,将检测结果发送给相机应用的异常场景处理模块。Step 1202, the camera service module transmits the detection result that the camera application fails to run to the camera management class. After the camera management class receives the detection result, it sends the detection result to the abnormal scene processing module of the camera application.
步骤1203,异常场景处理模块触发故障控制逻辑1504,确定关闭协同拍照功能。In step 1203, the abnormal scene processing module triggers the fault control logic 1504, and determines to disable the cooperative photographing function.
步骤1204,异常场景处理模块将关闭协同拍照功能的指令发送给功能关闭模块。功能关闭模块将关闭协同拍照功能的指令发送给协同显示管理模块。Step 1204, the abnormal scene processing module sends an instruction to disable the collaborative photographing function to the function disabling module. The function disabling module sends an instruction to disabling the cooperative photographing function to the cooperative display management module.
步骤1205,协同显示管理模块关闭外屏中用于协同显示的窗口。Step 1205, the coordinated display management module closes the window for coordinated display in the external screen.
步骤1206,在关闭用于协同显示的窗口后,协同显示管理模块使用一个回调函数(onDisplayChanged),将手机100的外屏关闭的信息回调给显示管理模块。Step 1206, after closing the window for coordinated display, the coordinated display management module uses a callback function (onDisplayChanged) to call back the information that the external screen of the mobile phone 100 is closed to the display management module.
为了更直观地了解上述各软件模块之间配合实现上述方法的过程。具体地,下面以图13所示的交互图为例,介绍协同拍照功能处于开启状态时,手机100接收到通话请求的情况下关闭协同拍照功能的过程。In order to more intuitively understand the process of cooperation between the above software modules to realize the above method. Specifically, the following uses the interaction diagram shown in FIG. 13 as an example to introduce the process of disabling the collaborative photographing function when the mobile phone 100 receives a call request when the collaborative photographing function is enabled.
步骤1301,通信处理模块检测到手机100接收到通话请求。Step 1301, the communication processing module detects that the mobile phone 100 receives a call request.
通信处理模块包括通信模块和通话信息接收模块。The communication processing module includes a communication module and a call information receiving module.
步骤1302,通信处理模块将手机100接收到通话请求的检测结果传递给相机管理类(AppUtill)。相机管理类接收到检测结果后,将检测结果发送给相机应用的异常场景处理模块。Step 1302, the communication processing module transmits the detection result of the call request received by the mobile phone 100 to the camera management class (AppUtill). After the camera management class receives the detection result, it sends the detection result to the abnormal scene processing module of the camera application.
步骤1303,异常场景处理模块触发通话控制逻辑1503,确定关闭协同拍照功能。Step 1303, the abnormal scene processing module triggers the call control logic 1503, and determines to disable the cooperative photo taking function.
步骤1304,异常场景处理模块将关闭协同拍照功能的指令发送给功能关闭模块。功能关闭模块将关闭协同拍照功能的指令发送给协同显示管理模块。Step 1304, the abnormal scene processing module sends an instruction to disable the collaborative photographing function to the function disabling module. The function disabling module sends an instruction to disabling the cooperative photographing function to the cooperative display management module.
步骤1305,协同显示管理模块关闭外屏中用于协同显示的窗口。Step 1305, the coordinated display management module closes the window for coordinated display in the external screen.
步骤1306,在关闭用于协同显示的窗口后,协同显示管理模块使用一个回调函数 (onDisplayChanged),将手机100的外屏关闭的信息回调给显示管理模块。Step 1306, after closing the window for coordinated display, the coordinated display management module uses a callback function (onDisplayChanged) to call back the information that the external screen of the mobile phone 100 is closed to the display management module.
为了更直观地了解上述各软件模块之间配合实现上述方法的过程。具体地,下面以图14所示的交互图为例,介绍开启协同拍照功能的一种实现过程。In order to more intuitively understand the process of cooperation between the above software modules to realize the above method. Specifically, the following uses the interaction diagram shown in FIG. 14 as an example to introduce an implementation process of enabling the collaborative photographing function.
步骤1401,用户打开相机应用。 Step 1401, the user opens the camera application.
比如,用户可以通过点击相机应用的应用图标,来打开相机应用。当然,也可以通过其他方式打开相机应用,比如通过语音指令或手势指令来打开相机应用。For example, the user may open the camera application by clicking the application icon of the camera application. Of course, the camera application can also be opened in other ways, such as opening the camera application by voice command or gesture command.
步骤1402,相机应用启动,并告知协同监听模块。In step 1402, the camera application starts and notifies the cooperative monitoring module.
步骤1403,协同监听模块(CollaborateOnClickListener)检测到前次关闭相机应用时,相机应用的协同拍照功能处于开启状态。Step 1403, the collaborative monitoring module (CollaborateOnClickListener) detects that when the camera application is closed last time, the collaborative photographing function of the camera application is in an on state.
步骤1404,协同监听模块向相机管理类发送开启协同拍照功能的指令。相机管理类将开启协同拍照功能的指令发送给功能开启模块(enterCollaborationMode)。Step 1404, the cooperative monitoring module sends an instruction to enable the cooperative photographing function to the camera management class. The camera management class sends an instruction to enable the collaborative photographing function to the function enabling module (enterCollaborationMode).
步骤1405,功能开启模块向查询模块(isCastingsState)发送获取系统协同功能的当前状态的请求。查询模块向显示管理模块发送获取系统协同功能的当前状态的请求。Step 1405, the function opening module sends a request to the query module (isCastingsState) to acquire the current state of the system coordination function. The query module sends a request for obtaining the current state of the system coordination function to the display management module.
所述请求用于获取系统协同功能的当前状态。The request is used to obtain the current state of the system coordination function.
步骤1406,显示管理模块向查询模块返回响应,该响应包括系统协同功能的当前状态。查询模块向功能开启模块返回包括系统协同功能的当前状态的响应。Step 1406, the display management module returns a response to the query module, and the response includes the current status of the system coordination function. The query module returns a response including the current state of the system coordination function to the function enabling module.
步骤1407,当系统协同功能为开启状态时,向用户显示提示信息。Step 1407, when the system coordination function is enabled, display prompt information to the user.
如图7中的(a)所示,手机100提示用户当前系统协同功能当前处于开启状态,如需开启协同拍照功能,则需要先关闭系统协同功能。As shown in (a) of FIG. 7 , the mobile phone 100 prompts the user that the current system coordination function is currently enabled, and if the collaborative camera function needs to be enabled, the system coordination function needs to be disabled first.
步骤1408,当系统协同功能为关闭状态时,开启协同拍照功能。Step 1408, when the system coordination function is off, enable the coordination camera function.
为了更直观地了解上述各软件模块之间配合实现上述方法的过程。具体地,下面以图15所示的交互图为例,介绍开启协同拍照功能的另一种实现过程。In order to more intuitively understand the process of cooperation between the above software modules to realize the above method. Specifically, the following uses the interaction diagram shown in FIG. 15 as an example to introduce another implementation process of enabling the collaborative photographing function.
步骤1501:用户打开相机应用。Step 1501: The user opens the camera application.
步骤1502:相机应用启动。Step 1502: The camera application starts.
步骤1503,协同监听模块检测到前次关闭相机应用时,相机应用的协同拍照功能处于关闭状态。In step 1503, the cooperative monitoring module detects that the cooperative photographing function of the camera application was closed when the camera application was closed last time.
步骤1504,用户点击协同拍照按钮。Step 1504, the user clicks the collaborative photo taking button.
比如,如图3中的(d)图所示,用户点击处于关闭状态的协同拍照按钮02。For example, as shown in (d) of FIG. 3 , the user clicks the collaborative photo-taking button 02 which is in an off state.
在用户点击协同拍照按钮后,协同监听模块可以检测到协同拍照按钮的开启指令,根据该开启指令,开启协同拍照功能。After the user clicks the collaborative photo shooting button, the cooperative monitoring module can detect the activation instruction of the collaborative photo shooting button, and activate the collaborative photo taking function according to the activation instruction.
步骤1505,协同监听模块将开启协同拍照功能的指令发送给相机管理类。相机管理类将开启协同拍照功能的指令发送给功能开启模块。Step 1505, the cooperative monitoring module sends an instruction to enable the cooperative photographing function to the camera management class. The camera management class sends an instruction to enable the collaborative photo taking function to the function enabling module.
步骤1506,功能开启模块向查询模块(isCastingsState)发送获取系统协同功能的当前状态的请求。查询模块向显示管理模块发送获取系统协同功能的当前状态的请求。Step 1506, the function enabling module sends a request to the query module (isCastingsState) to acquire the current state of the system coordination function. The query module sends a request for obtaining the current state of the system coordination function to the display management module.
步骤1507,显示管理模块向查询模块返回响应,该响应包括系统协同功能的当前状态。查询模块向功能开启模块返回包括系统协同功能的当前状态的响应。Step 1507, the display management module returns a response to the query module, and the response includes the current status of the system coordination function. The query module returns a response including the current state of the system coordination function to the function enabling module.
步骤1508,当系统协同功能为开启状态时,向用户显示提示信息。Step 1508, when the system coordination function is enabled, display prompt information to the user.
步骤1509,当系统协同功能为关闭状态时,开启协同拍照功能。Step 1509, when the system coordination function is turned off, enable the coordination camera function.
为了更直观地了解上述各软件模块之间配合实现上述方法的过程。具体地,下面以图16所示 的交互图为例,介绍开启系统协同功能的一种实现过程。In order to more intuitively understand the process of cooperation between the above software modules to realize the above method. Specifically, the following uses the interaction diagram shown in Figure 16 as an example to introduce an implementation process for enabling the system collaboration function.
步骤1601,用户开启系统协同功能。Step 1601, the user enables the system coordination function.
步骤1602,系统管理模块(MainViewPage)向显示管理模块发送获取协同拍照功能的当前状态的请求。Step 1602, the system management module (MainViewPage) sends a request to the display management module to obtain the current state of the cooperative photographing function.
步骤1603,显示管理模块向系统协同功能管理模块返回响应,该响应包括协同拍照功能的当前状态。Step 1603, the display management module returns a response to the system coordination function management module, and the response includes the current status of the coordination camera function.
步骤1604,当协同拍照功能为关闭状态时,系统管理模块开启系统协同功能。Step 1604, when the collaborative photographing function is off, the system management module enables the system collaborative function.
步骤1605,当协同拍照功能为开启状态时,系统管理模块向相机管理类发送系统协同功能开启的信息。相机管理类接收到信息后,将该信息发送给相机应用的异常场景处理模块(handleAbnormalSceneExitCollaborateMode),以使异常场景处理模块对该情况进行处理。Step 1605, when the cooperative photographing function is enabled, the system management module sends information that the system cooperative function is enabled to the camera management class. After receiving the information, the camera management class sends the information to the abnormal scene processing module (handleAbnormalSceneExitCollaborateMode) of the camera application, so that the abnormal scene processing module handles the situation.
步骤1606,异常场景处理模块触发系统变化控制逻辑1505,确定关闭协同拍照功能。Step 1606, the abnormal scene processing module triggers the system change control logic 1505, and determines to disable the collaborative photographing function.
步骤1607,异常场景处理模块将关闭协同拍照功能的指令发送给功能关闭模块(exitCollaborateMode)。功能关闭模块将关闭协同拍照功能的指令发送给协同显示管理模块(CollaborationPresentation)。Step 1607, the abnormal scene processing module sends an instruction to close the collaborative photographing function to the function closing module (exitCollaborateMode). The function disabling module sends an instruction to disabling the collaborative photographing function to the collaborative display management module (CollaborationPresentation).
步骤1608,协同显示管理模块关闭外屏中用于协同显示的窗口。Step 1608, the coordinated display management module closes the window for coordinated display in the external screen.
步骤1609,在关闭用于协同显示的窗口后,协同显示管理模块使用一个回调函数(onDisplayChanged),将手机100的外屏关闭的信息回调给显示管理模块。显示管理模块将手机100的协同拍照功能关闭的信息发送给系统管理模块。Step 1609, after closing the window for coordinated display, the coordinated display management module uses a callback function (onDisplayChanged) to call back the information that the external screen of the mobile phone 100 is closed to the display management module. The display management module sends the information that the cooperative camera function of the mobile phone 100 is disabled to the system management module.
步骤1610,系统管理模块开启系统协同功能。Step 1610, the system management module starts the system coordination function.
本实施例可以根据上述方法示例对电子设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块可以采用硬件的形式实现。需要说明的是,本实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In this embodiment, the functional modules of the electronic device may be divided according to the above method example. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The above integrated modules may be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic, and is only a logical function division, and there may be other division methods in actual implementation.
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。It should be noted that all relevant content of the steps involved in the above method embodiments can be referred to the function description of the corresponding function module, and will not be repeated here.
本实施例提供的电子设备,用于执行上述电子设备的管理方法,因此可以达到与上述实现方法相同的效果。在采用集成的单元的情况下,电子设备可以包括处理模块、存储模块和通信模块。其中,处理模块可以用于对电子设备的动作进行控制管理,例如,可以用于支持电子设备执行处理单元执行的步骤。存储模块可以用于支持电子设备执行存储程序代码和数据等。通信模块,可以用于支持电子设备与其他设备的通信。The electronic device provided in this embodiment is used to implement the above-mentioned electronic device management method, so the same effect as the above-mentioned implementation method can be achieved. In the case of an integrated unit, the electronic device may include a processing module, a memory module and a communication module. Wherein, the processing module may be used to control and manage the actions of the electronic device, for example, may be used to support the electronic device to execute the steps performed by the processing unit. The memory module can be used to support electronic devices to execute stored program codes and data, and the like. The communication module can be used to support the communication between the electronic device and other devices.
其中,处理模块可以是处理器或控制器。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,数字信号处理(digital signal processing,DSP)和微处理器的组合等等。存储模块可以是存储器。通信模块具体可以为射频电路、蓝牙芯片、Wi-Fi芯片等与其他电子设备交互的设备。Wherein, the processing module may be a processor or a controller. It can implement or execute the various illustrative logical blocks, modules and circuits described in connection with the present disclosure. The processor can also be a combination of computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (digital signal processing, DSP) and a microprocessor, and the like. The storage module may be a memory. Specifically, the communication module may be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, and a Wi-Fi chip.
在一个实施例中,当处理模块为处理器,存储模块为存储器时,本实施例所涉及的电子设备可以为具有图1所示结构的设备。In one 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 FIG. 1 .
本实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机指令,当该计算机指令在电子设备上运行时,使得电子设备执行上述相关方法步骤实现上述实施例中的方 法。This embodiment also provides a computer-readable storage medium, where computer instructions are stored in the computer-readable storage medium, and when the computer instructions are run on the electronic device, the electronic device executes the above-mentioned relevant method steps to realize the steps in the above-mentioned embodiments. method.
本实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的方法。This embodiment also provides a computer program product, which, when running on a computer, causes the computer to execute the above-mentioned related steps, so as to implement the method in the above-mentioned embodiment.
另外,本申请的实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中的方法。In addition, an embodiment of the present application also provides a device, which may specifically be a chip, a component or a module, and the device may include a connected processor and a memory; wherein the memory is used to store computer-executable instructions, and when the device is running, The processor can execute the computer-executable instructions stored in the memory, so that the chip executes the methods in the foregoing method embodiments.
其中,本实施例提供的电子设备、计算机可读存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。Wherein, the electronic device, computer-readable storage medium, computer program product or chip provided in this embodiment is all used to execute the corresponding method provided above, therefore, the beneficial effects it can achieve can refer to the above-mentioned The beneficial effects of the corresponding method will not be repeated here.
通过以上实施方式的描述,所属领域的技术人员可以了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Through the description of the above embodiments, those skilled in the art can understand that for the convenience and brevity of the description, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned functions can be assigned by different Completion of functional modules means that the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or It may be integrated into another device, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。A unit described as a separate component may or may not be physically separated, and a component shown as a unit may be one physical unit or multiple physical units, which may be located in one place or distributed to multiple different places. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If an integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the software product is stored in a storage medium Among them, several instructions are included to make a device (which may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the methods in various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes such as U disk, mobile hard disk, read only memory (ROM), random access memory (random access memory, RAM), magnetic disk or optical disk.
应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and/or components, but does not exclude one or more other Presence or addition of features, wholes, steps, operations, elements, components and/or collections thereof.
如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in this specification and the appended claims, the term "if" may be construed, depending on the context, as "when" or "once" or "in response to determining" or "in response to detecting ". Similarly, the phrase "if determined" or "if [the described condition or event] is detected" may be construed, depending on the context, to mean "once determined" or "in response to the determination" or "once detected [the described condition or event] ]” or “in response to detection of [described condition or event]”.
另外,在本申请说明书和所附权利要求书的描述中,术语“第一”、“第二”、“第三”等仅用于 区分描述,而不能理解为指示或暗示相对重要性。In addition, in the description of the specification and appended claims of this application, the terms "first", "second", "third" and so on are only used to distinguish descriptions, and should not be understood as indicating or implying relative importance.
在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。Reference to "one embodiment" or "some embodiments" or the like in the specification of the present application means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in other embodiments," etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless specifically stated otherwise. The terms "including", "comprising", "having" and variations thereof mean "including but not limited to", unless specifically stated otherwise.
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above content is only the specific implementation of the application, but the scope of protection of the application is not limited thereto. Anyone familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the application, and should covered within the scope of protection of this application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims (15)

  1. 一种电子设备的管理方法,其特征在于,所述方法由第一电子设备执行,所述第一电子设备包括至少两个显示屏,包括:A management method for electronic equipment, characterized in that the method is executed by a first electronic equipment, and the first electronic equipment includes at least two display screens, including:
    检测到对所述第一电子设备的第一操作,所述第一操作请求开启所述第一电子设备的第一功能,所述第一功能用于使所述第一电子设备的第一显示屏与第二显示屏显示相同的画面,所述第一显示屏与所述第二显示屏为所述至少两个显示屏中的任意两个位于不同面的显示屏;A first operation on the first electronic device is detected, and the first operation requests to start a first function of the first electronic device, and the first function is used to make the first display of the first electronic device The screen and the second display screen display the same picture, and the first display screen and the second display screen are any two display screens located on different sides of the at least two display screens;
    响应于第一操作,判断所述第一电子设备的第二功能当前是否处于开启状态,所述第二功能用于使所述第一电子设备的当前显示界面被投屏在第二电子设备上,所述第一电子设备的当前显示界面为所述第一显示屏的当前显示界面或所述第二显示屏的当前显示界面;In response to the first operation, it is judged whether the second function of the first electronic device is currently on, and the second function is used to project the current display interface of the first electronic device on the second electronic device , the current display interface of the first electronic device is the current display interface of the first display screen or the current display interface of the second display screen;
    当所述第二功能当前处于关闭状态时,开启所述第一功能。When the second function is currently in the off state, the first function is turned on.
  2. 根据权利要求1所述的方法,其特征在于,检测到对所述第一电子设备的第一操作,包括:The method according to claim 1, wherein detecting the first operation on the first electronic device comprises:
    检测到相机打开操作,启动相机应用;Detect the opening operation of the camera and start the camera application;
    在所述相机应用中检测到对所述第一电子设备的第一操作。A first operation on the first electronic device is detected in the camera application.
  3. 根据权利要求2所述的方法,其特征在于,所述相机应用的应用界面显示所述第一功能的开启按钮,所述第一操作为对所述开启按钮的点击操作。The method according to claim 2, wherein the application interface of the camera application displays an activation button of the first function, and the first operation is a click operation on the activation button.
  4. 根据权利要求1至3任一项所述的方法,其特征在于,在判断所述第一电子设备的第二功能当前是否处于开启状态之后,所述方法还包括:The method according to any one of claims 1 to 3, wherein after judging whether the second function of the first electronic device is currently on, the method further comprises:
    当所述第二功能处于开启状态时,显示第一界面,所述第一界面用于引导用户关闭所述第二功能;When the second function is turned on, displaying a first interface, the first interface is used to guide the user to turn off the second function;
    检测到关闭所述第二功能的操作;an operation to deactivate said second function is detected;
    响应于所述关闭所述第二功能的操作,关闭所述第二功能后,开启所述第一功能。In response to the operation of turning off the second function, after turning off the second function, turn on the first function.
  5. 根据权利要求1至4任一项所述的方法,其特征在于,在开启所述第一功能之后,所述方法还包括:The method according to any one of claims 1 to 4, characterized in that, after enabling the first function, the method further comprises:
    检测到对所述第一电子设备的第二操作,所述第二操作请求开启所述第二功能;detecting a second operation on the first electronic device, the second operation requesting to enable the second function;
    响应于所述第二操作,关闭所述第一功能后,开启所述第二功能。In response to the second operation, after the first function is turned off, the second function is turned on.
  6. 根据权利要求5所述的方法,其特征在于,所述响应于所述第二操作,关闭所述第一功能后,开启所述第二功能,包括:The method according to claim 5, wherein in response to the second operation, after turning off the first function, turning on the second function comprises:
    响应于所述第二操作,判断所述第一功能当前是否处于开启状态;In response to the second operation, determine whether the first function is currently on;
    当所述第一功能当前处于开启状态时,关闭所述第一功能后,开启所述第二功能。When the first function is currently on, the second function is turned on after the first function is turned off.
  7. 根据权利要求6所述的方法,其特征在于,当所述第一功能当前处于开启状态时,所述方法还包括:The method according to claim 6, wherein when the first function is currently in an on state, the method further comprises:
    显示第二界面,所述第二界面用于引导用户确认关闭所述第一功能;displaying a second interface, where the second interface is used to guide the user to confirm closing the first function;
    检测到用户确认关闭所述第一功能的操作;Detecting that the user confirms the operation of closing the first function;
    响应于所述确认关闭所述第一功能的操作,关闭所述第一功能。In response to the operation of confirming that the first function is turned off, the first function is turned off.
  8. 根据权利要求1至7任一项所述的方法,其特征在于,当所述第一功能当前处于开启状态时,所述方法还包括:The method according to any one of claims 1 to 7, wherein when the first function is currently on, the method further comprises:
    在检测到所述第一电子设备的电量低于第一阈值时,关闭所述第一功能。When it is detected that the electric quantity of the first electronic device is lower than a first threshold, the first function is turned off.
  9. 根据权利要求1至8任一项所述的方法,其特征在于,当所述第一功能当前处于开启状态时,所述方法还包括:The method according to any one of claims 1 to 8, wherein when the first function is currently on, the method further comprises:
    在检测到所述第一电子设备的温度高于第二阈值时,关闭所述第一功能。When it is detected that the temperature of the first electronic device is higher than a second threshold, the first function is turned off.
  10. 根据权利要求8或9所述的方法,其特征在于,所述关闭所述第一功能,包括:The method according to claim 8 or 9, wherein the closing the first function comprises:
    显示第三界面,所述第三界面用于提示用户是否关闭所述第一功能;displaying a third interface, where the third interface is used to prompt the user whether to close the first function;
    检测到对所述第一电子设备的第三操作,所述第三操作请求关闭所述第一功能;detecting a third operation on the first electronic device, the third operation requesting to close the first function;
    响应于所述第三操作,关闭所述第一功能。In response to the third operation, the first function is turned off.
  11. 根据权利要求1至10任一项所述的方法,其特征在于,当所述第一功能当前处于开启状态时,所述方法还包括:The method according to any one of claims 1 to 10, wherein when the first function is currently on, the method further comprises:
    接收到通话请求,所述通话请求来自第三电子设备;receiving a call request, the call request comes from the third electronic device;
    在接收到通话请求后,关闭所述第一功能。After receiving the call request, close the first function.
  12. 根据权利要求1至11任一项所述的方法,其特征在于,当所述第一功能当前处于开启状态时,所述方法还包括:The method according to any one of claims 1 to 11, wherein when the first function is currently on, the method further comprises:
    在检测到所述第一电子设备的相机应用无法运行时,关闭所述第一功能。When it is detected that the camera application of the first electronic device cannot run, the first function is closed.
  13. 一种电子设备,其特征在于,包括:至少两个显示屏,所述至少两个显示屏中的第一显示屏与第二显示屏为任意两个位于不同面的显示屏;一个或多个处理器;一个或多个存储器;安装有多个应用程序的模块;所述存储器存储有一个或多个程序,当所述一个或者多个程序被所述处理器执行时,使得所述电子设备执行权利要求1至12中任一项所述的电子设备的管理方法。An electronic device, characterized in that it includes: at least two display screens, the first display screen and the second display screen in the at least two display screens are any two display screens located on different sides; one or more A processor; one or more memories; a module with multiple application programs installed; the memory stores one or more programs, and when the one or more programs are executed by the processor, the electronic device Executing the electronic device management method described in any one of claims 1 to 12.
  14. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1至12中任一项所述的电子设备的管理方法。A computer-readable storage medium, characterized in that the computer-readable storage medium stores computer instructions, and when the computer instructions are run on an electronic device, the electronic device executes any one of claims 1-12. A method for managing electronic equipment.
  15. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1至12中任一项所述的电子设备的管理方法。A computer program product, characterized in that, when the computer program product is run on a computer, the computer is made to execute the electronic device management method according to any one of claims 1 to 12.
PCT/CN2022/143843 2022-01-06 2022-12-30 Electronic device management method, electronic device, and readable storage medium WO2023131070A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210013508.XA CN115567630B (en) 2022-01-06 2022-01-06 Electronic equipment management method, electronic equipment and readable storage medium
CN202210013508.X 2022-01-06

Publications (1)

Publication Number Publication Date
WO2023131070A1 true WO2023131070A1 (en) 2023-07-13

Family

ID=84736528

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/143843 WO2023131070A1 (en) 2022-01-06 2022-12-30 Electronic device management method, electronic device, and readable storage medium

Country Status (2)

Country Link
CN (1) CN115567630B (en)
WO (1) WO2023131070A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117111796A (en) * 2023-04-28 2023-11-24 荣耀终端有限公司 Collaborative display method, equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1806229A (en) * 2003-06-10 2006-07-19 索尼爱立信移动通信日本株式会社 Conflict management program, storage medium for conflict management program storage, conflict management method, and electronic apparatus
CN108174042A (en) * 2018-01-23 2018-06-15 北京珠穆朗玛移动通信有限公司 Image pickup method, mobile terminal and the device of mobile terminal
CN111124342A (en) * 2019-12-27 2020-05-08 西安万像电子科技有限公司 Screen projection method and equipment
CN111324327A (en) * 2020-02-20 2020-06-23 华为技术有限公司 Screen projection method and terminal equipment
CN113590059A (en) * 2020-04-30 2021-11-02 青岛海信移动通信技术股份有限公司 Screen projection method and mobile terminal

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9083781B2 (en) * 2004-11-15 2015-07-14 Bascule Development Ag Llc Portable image-capturing device with embedded projector
CN105554537A (en) * 2015-12-08 2016-05-04 青岛海信电器股份有限公司 Control method and control device
CN107766023A (en) * 2017-10-19 2018-03-06 广东欧珀移动通信有限公司 Method for information display, device, terminal and storage medium
CN114666435B (en) * 2019-04-19 2023-03-28 华为技术有限公司 Method for using enhanced function of electronic device, chip and storage medium
CN110221798A (en) * 2019-05-29 2019-09-10 华为技术有限公司 A kind of throwing screen method, system and relevant apparatus
CN110381195A (en) * 2019-06-05 2019-10-25 华为技术有限公司 A kind of throwing screen display methods and electronic equipment
CN114237530A (en) * 2020-01-21 2022-03-25 华为技术有限公司 Display method and related device of folding screen

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1806229A (en) * 2003-06-10 2006-07-19 索尼爱立信移动通信日本株式会社 Conflict management program, storage medium for conflict management program storage, conflict management method, and electronic apparatus
CN108174042A (en) * 2018-01-23 2018-06-15 北京珠穆朗玛移动通信有限公司 Image pickup method, mobile terminal and the device of mobile terminal
CN111124342A (en) * 2019-12-27 2020-05-08 西安万像电子科技有限公司 Screen projection method and equipment
CN111324327A (en) * 2020-02-20 2020-06-23 华为技术有限公司 Screen projection method and terminal equipment
CN113590059A (en) * 2020-04-30 2021-11-02 青岛海信移动通信技术股份有限公司 Screen projection method and mobile terminal

Also Published As

Publication number Publication date
CN115567630B (en) 2023-06-16
CN115567630A (en) 2023-01-03

Similar Documents

Publication Publication Date Title
CN110401766B (en) Shooting method and terminal
CN112532857B (en) Shooting method and equipment for delayed photography
WO2020259452A1 (en) Full-screen display method for mobile terminal, and apparatus
WO2020125410A1 (en) Image processing method and electronic device
JP2023514962A (en) DISPLAY METHOD AND RELATED APPARATUS FOR FOLDABLE SCREEN
WO2021036771A1 (en) Electronic device having foldable screen, and display method
WO2021036585A1 (en) Flexible screen display method and electronic device
WO2021063311A1 (en) Display control method for electronic device having foldable screen, and electronic device
WO2022100610A1 (en) Screen projection method and apparatus, and electronic device and computer-readable storage medium
WO2022042770A1 (en) Method for controlling communication service state, terminal device and readable storage medium
WO2022001258A1 (en) Multi-screen display method and apparatus, terminal device, and storage medium
WO2020118490A1 (en) Automatic screen-splitting method, graphical user interface, and electronic device
WO2023103951A1 (en) Display method for foldable screen and related apparatus
WO2021208723A1 (en) Full-screen display method and apparatus, and electronic device
WO2023241209A1 (en) Desktop wallpaper configuration method and apparatus, electronic device and readable storage medium
WO2021042878A1 (en) Photography method and electronic device
WO2023056795A1 (en) Quick photographing method, electronic device, and computer readable storage medium
CN114115770A (en) Display control method and related device
WO2022143180A1 (en) Collaborative display method, terminal device, and computer readable storage medium
WO2023131070A1 (en) Electronic device management method, electronic device, and readable storage medium
CN114500901A (en) Double-scene video recording method and device and electronic equipment
WO2022135144A1 (en) Self-adaptive display method, electronic device, and storage medium
CN113923372B (en) Exposure adjusting method and related equipment
WO2022068505A1 (en) Photographing method and electronic device
CN114827098A (en) Method and device for close shooting, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22918511

Country of ref document: EP

Kind code of ref document: A1