WO2021051982A1 - Procédé d'appel d'interface matérielle et dispositif électronique - Google Patents

Procédé d'appel d'interface matérielle et dispositif électronique Download PDF

Info

Publication number
WO2021051982A1
WO2021051982A1 PCT/CN2020/102280 CN2020102280W WO2021051982A1 WO 2021051982 A1 WO2021051982 A1 WO 2021051982A1 CN 2020102280 W CN2020102280 W CN 2020102280W WO 2021051982 A1 WO2021051982 A1 WO 2021051982A1
Authority
WO
WIPO (PCT)
Prior art keywords
hardware interface
hardware
electronic device
interface
indication information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2020/102280
Other languages
English (en)
Chinese (zh)
Inventor
丁超
蔺振超
陈晓轩
涂林林
王劲飞
宁维赛
陈中领
刘磊
姜钦华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of WO2021051982A1 publication Critical patent/WO2021051982A1/fr
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers

Definitions

  • This application relates to the field of electronic devices, and more specifically, to a method for invoking a hardware interface and an electronic device.
  • This application provides a method and electronic device for invoking a hardware interface, with the purpose of facilitating application developers to develop application programs.
  • a method for invoking a hardware interface including: reading first indication information in a code of a first application, where the first indication information is used to indicate related information of a first hardware interface set, and
  • the first hardware interface set includes hardware interfaces of multiple electronic devices, and any two hardware interfaces in the first hardware interface set are of the same type, or part of any two hardware interfaces in the first hardware interface set Or all functions are the same; determine at least one first hardware interface of the electronic device from the first hardware interface set according to the first indication information; call the at least one first hardware interface.
  • the first application may be, for example, a call application, a video playback application, an audio playback application, a security application, a map navigation application, a file transfer application, a shooting application, and so on.
  • the first application may also include music playback, video playback, reading application, application market, gallery, calendar, call, map, navigation, etc. This application does not limit the specific type of the first application.
  • the first set of hardware interfaces includes hardware interfaces of multiple electronic devices.
  • the types of the multiple electronic devices may include, for example, mobile phones, tablets, smart watches, video players, laptops, desktop computers, TVs, and notebooks. At least two of the computers.
  • the types of the hardware interface may include one or more of a mobile communication interface, a screen display interface, a speaker interface, a headphone interface, a fingerprint recognition interface, a positioning interface, a wireless communication interface, and a shooting interface.
  • the functions of the hardware interface may include one or more of a voice call function, a function of displaying an image on a screen, a sound playback function, a fingerprint recognition function, a positioning function, a data transmission function, and a function of capturing scenes around the electronic device.
  • the first application indicates the first hardware interface set through the first indication information, and the electronic device can confirm according to its own parameters (such as version number, electronic device type, etc.) what the first application should actually call Real hardware interface parameters. Therefore, the first application does not need to know in advance the actual hardware interface of the electronic device executing the first application. Moreover, when the first application indicates the first set of hardware interfaces, the first application may be executed on multiple electronic devices. Therefore, the method provided in the embodiments of the present application can reduce the burden of application developers.
  • the first indication information includes information indicating a second hardware interface, and the electronic device does not have the second hardware interface, and in accordance with the Before determining at least one first hardware interface of the electronic device from the first hardware interface set, the method further includes: according to the first instruction information, assigning the second hardware interface to The set of hardware interfaces is determined to be the first set of hardware interfaces.
  • the first indication information may indicate the hardware interface of other electronic devices. Therefore, according to the function or type of the hardware interface of the other electronic device, the electronic device executing the first application can determine that it has Hardware interfaces with the same or similar functions or types, so the first application that was originally specially applied to a specific electronic device can be applied to multiple electronic devices across devices.
  • the first indication information includes information indicating the first function of the hardware interface that the first application needs to call, and in accordance with the first indication Information, before determining at least one first hardware interface of the electronic device from the first hardware interface set, the method further includes: according to the first indication information, matching a hardware interface with the first function The set is determined as the first hardware interface set.
  • the first indication information may indicate the function of the hardware interface that needs to be invoked; according to the function, the electronic device may determine the first set of hardware interfaces that matches the function.
  • the application developer who develops the first application also only needs to understand the function of the hardware interface code, and does not need to develop an application program for a specific electronic device, so the burden of the application developer can be reduced.
  • the first indication information includes information indicating the first type of the hardware interface that the first application needs to call, and according to the first indication information, Before determining at least one first hardware interface of the electronic device from the first hardware interface set, the method further includes: determining, according to the first indication information, a set of hardware interfaces matching the first type Is the first set of hardware interfaces.
  • the first indication information may indicate the type of hardware interface that needs to be called; according to the type, the electronic device can determine the first set of hardware interfaces that matches the type.
  • the application developer who develops the first application also only needs to understand the type of hardware interface code, and does not need to develop an application program for a specific electronic device, so the burden of the application developer can be reduced.
  • the method further includes: reading second indication information in the code of the second application, where the second indication information is used to indicate a second set of hardware interfaces Related information; in the case that the electronic device does not have any hardware interface in the second set of hardware interfaces, call the preset target interface.
  • the preset target interface can be a virtual interface or a physical interface.
  • the call feedback result that the electronic device cannot call the hardware interface will not be obtained, and it will not cause the second application to fail to run (such as the second application running crash or unlimited times). Loop error).
  • the method further includes: reading second indication information in the code of the second application, where the second indication information is used to indicate a second set of hardware interfaces Related information; in the case that the electronic device does not have any hardware interface in the second set of hardware interfaces, presenting alarm information.
  • the presenting alarm information includes presenting alarm information that matches the type or function of the second hardware interface set.
  • the electronic device can learn the type or function of the hardware interface that the first application needs to call, and the alarm information and the type or function of the hardware interface Correspondingly, it is possible to provide users who use the second application with more accurate hardware interface error reporting information.
  • the determining from the first hardware interface set according to the first indication information that the electronic device has at least one first hardware interface includes: The at least one first hardware interface is determined from the first hardware interface set according to the type of the electronic device and the first indication information.
  • determining the hardware interface according to the type of the electronic device can improve the efficiency of calling the hardware interface.
  • the first indication information further includes information indicating the version number of the interface that the first application needs to call.
  • the hardware interface is determined according to the version number of the hardware interface, which can improve the efficiency of calling the hardware interface.
  • a method for invoking a hardware interface includes: reading third indication information in a code of a third application, where the third indication information is used to indicate the hardware interface that the third application needs to call. Function or type; according to the type of the electronic device and the third indication information, at least one third hardware interface of the electronic device is determined from a plurality of hardware interfaces, and the plurality of hardware interfaces includes the Have a hardware interface; call the at least one third hardware interface.
  • the third application may be, for example, a call application, a video playback application, an audio playback application, a security application, a map navigation application, a file transfer application, a shooting application, and so on.
  • the third application may also include music playback, video playback, reading application, application market, gallery, calendar, call, map, navigation, etc. This application does not limit the specific type of the third application.
  • the third set of hardware interfaces includes the hardware interfaces of multiple electronic devices.
  • the types of the multiple electronic devices may include, for example, mobile phones, tablets, smart watches, video players, laptops, desktop computers, TVs, and notebooks. At least two of the computers.
  • the types of hardware interfaces may include: one or more of a mobile communication interface, a screen display interface, a speaker interface, a headphone interface, a fingerprint recognition interface, a positioning interface, a wireless communication interface, and a shooting interface.
  • the functions of the hardware interface may include one or more of a voice call function, a function of displaying an image on a screen, a sound playback function, a fingerprint recognition function, a positioning function, a data transmission function, and a function of capturing scenes around the electronic device.
  • the third application indicates the type or function of the hardware interface that needs to be called through the third indication information, and the electronic device can confirm the third application according to its own parameters (such as version number, electronic device type, etc.) The actual hardware interface parameters that should actually be called. Therefore, the third application does not need to know the real hardware interface of the electronic device executing the third application in advance.
  • the third application may be executed on multiple electronic devices. Therefore, the method provided in the embodiments of the present application can reduce the burden of application developers.
  • the method further includes: reading fourth indication information in the code of the fourth application, where the fourth indication information is used to indicate a fourth hardware interface set Related information; in the case that the electronic device does not have any hardware interface in the fourth hardware interface set, call the preset target interface.
  • the preset target interface can be a virtual interface or a physical interface.
  • the electronic device since the electronic device can call the target interface, it will not get the call feedback result that the electronic device cannot call the hardware interface, and it will not cause the fourth application to fail to run (such as the fourth application crashing or unlimited times. Loop error).
  • the method further includes: reading fourth indication information in the code of the fourth application, where the fourth indication information is used to indicate a fourth hardware interface set Related information; in the case that the electronic device does not have any hardware interface in the fourth hardware interface set, alarm information is presented.
  • the presenting alarm information includes presenting alarm information that matches the type or function of the second hardware interface set.
  • the electronic device since the fourth indication information indicates the fourth hardware interface set, the electronic device can learn the type or function of the hardware interface that the fourth application needs to call, and the alarm information and the type or function of the hardware interface Correspondingly, it is possible to provide users who use the fourth application with more accurate hardware interface error reporting information.
  • the method further includes: the third indication information further includes information indicating the version number of the interface that the third application needs to call.
  • the hardware interface is determined according to the version number of the hardware interface, which can improve the efficiency of calling the hardware interface.
  • an electronic device including: a memory, configured to store a program; a processor, configured to execute the program stored in the memory, and when the program stored in the memory is executed, the processor is configured to execute the following Process: Read the first indication information in the code of the first application, where the first indication information is used to indicate related information of a first hardware interface set, and the first hardware interface set includes hardware interfaces of multiple electronic devices, Any two hardware interfaces in the first hardware interface set are of the same type, or any two hardware interfaces in the first hardware interface set have part or all of the same functions; according to the first instruction information, from At least one first hardware interface of the electronic device is determined in the first hardware interface set; and the at least one first hardware interface is invoked.
  • the first indication information includes information indicating a second hardware interface
  • the electronic device does not have the second hardware interface
  • the processor also uses Before determining at least one first hardware interface of the electronic device from the first hardware interface set according to the first instruction information, it is applied to the second hardware interface according to the first instruction information.
  • the hardware interface set to which the hardware interface belongs is determined as the first hardware interface set.
  • the first indication information includes information indicating the first function of the hardware interface that the first application needs to call
  • the processor is further configured to According to the first instruction information, before at least one first hardware interface of the electronic device is determined from the first hardware interface set, it is applied according to the first instruction information to communicate with the first function
  • the matched hardware interface set is determined as the first hardware interface set.
  • the first indication information includes information indicating the first type of the hardware interface that the first application needs to call
  • the processor is further configured to The first indication information is applied to the one that matches the first type according to the first indication information before determining at least one first hardware interface possessed by the electronic device from the first hardware interface set.
  • the set of hardware interfaces is determined to be the first set of hardware interfaces.
  • the processor is further configured to read the second indication information in the code of the second application, and the second indication information is used to indicate the second hardware Related information of the interface set; the processor is further configured to call a preset target interface when the electronic device does not have any hardware interface in the second hardware interface set.
  • the processor is further configured to read the second indication information in the code of the second application, and the second indication information is used to indicate the second hardware Related information of the interface set; the processor is further configured to be applied to present alarm information when the electronic device does not have any hardware interface in the second hardware interface set.
  • the processor is specifically configured to determine from the first hardware interface set according to the type of the electronic device and the first indication information At least one first hardware interface.
  • the first indication information further includes information indicating the version number of the interface that the first application needs to call.
  • an electronic device including: a memory, configured to store a program; a processor, configured to execute the program stored in the memory, and when the program stored in the memory is executed, the processor is configured to execute The following process: read the third indication information in the code of the third application, where the third indication information is used to indicate the function or type of the hardware interface that the third application needs to call; according to the type of electronic device and the first Three indication information, determining at least one third hardware interface of the electronic device from multiple hardware interfaces, the multiple hardware interfaces including hardware interfaces of the multiple electronic devices; calling the at least one third hardware interface.
  • the processor is further configured to read fourth indication information in the code of the fourth application, and the fourth indication information is used to indicate the fourth hardware Related information of the interface set; the processor is further configured to call the preset target interface when the electronic device does not have any hardware interface in the fourth hardware interface set.
  • the third indication information further includes information indicating the version number of the interface that the third application needs to call.
  • a computer-readable medium stores program code for device execution, and the program code includes a method for executing any one of the first aspect to the second aspect. .
  • a computer program product containing instructions is provided.
  • the computer program product runs on a computer, the computer executes the method in any one of the foregoing first aspect to the second aspect.
  • a chip in a seventh aspect, includes a processor and a data interface.
  • the processor reads instructions stored in a memory through the data interface, and executes any one of the first aspect to the second aspect described above. The method in the implementation mode.
  • the chip may further include a memory in which instructions are stored, and the processor is configured to execute instructions stored on the memory.
  • the processor is configured to execute the method in any one of the implementation manners of the first aspect to the second aspect.
  • FIG. 1 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application.
  • Fig. 2 is a schematic diagram of the software structure of an electronic device provided by an embodiment of the present application.
  • Fig. 3 is a schematic flowchart of a method for invoking a hardware interface provided by an embodiment of the present application.
  • Fig. 4 is a schematic flowchart of a method for invoking a hardware interface provided by an embodiment of the present application.
  • Fig. 5 is a schematic block diagram of a set of hardware interfaces provided by an embodiment of the present application.
  • Fig. 6 is a schematic block diagram of a set of hardware interfaces provided by an embodiment of the present application.
  • Fig. 7 is a schematic flowchart of a method for invoking a hardware interface provided by an embodiment of the present application.
  • Fig. 8 is a schematic flowchart of a method for invoking a hardware interface provided by an embodiment of the present application.
  • Fig. 9 is a schematic block diagram of a set of hardware interfaces provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of the software structure of an electronic device provided by an embodiment of the present application.
  • FIG. 11 is a schematic diagram of a software structure of a hardware interface layer provided by an embodiment of the present application.
  • Fig. 12 is a schematic block diagram of an electronic device provided by an embodiment of the present application.
  • references described in this specification to "one embodiment” or “some embodiments”, etc. mean that one or more embodiments of the present application include a specific feature, structure, or characteristic described in conjunction with the embodiment. Therefore, the sentences “in one embodiment”, “in some embodiments”, “in some other embodiments”, “in some other embodiments”, etc. appearing in different places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless it is specifically emphasized otherwise.
  • the terms “including”, “including”, “having” and their variations all mean “including but not limited to”, unless otherwise specifically emphasized.
  • the electronic device may be a portable electronic device that also contains other functions such as a personal digital assistant and/or a music player function, such as a mobile phone, a tablet computer, and a wearable electronic device with wireless communication function (such as a smart watch) , Video player, etc.
  • portable electronic devices include, but are not limited to, carrying Or portable electronic devices with other operating systems.
  • the above-mentioned portable electronic device may also be other portable electronic devices, such as a laptop computer (Laptop) and the like. It should also be understood that, in some other embodiments, the above-mentioned electronic device may not be a portable electronic device, but a desktop computer, a TV, or a notebook computer.
  • FIG. 1 shows a schematic structural diagram of an electronic device 100.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, 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, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM Subscriber identification module
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU), etc.
  • different processing units may be independent components, or may be integrated in one or more processors.
  • the electronic device 101 may also include one or more processors 110.
  • the controller can generate operation control signals according to the instruction operation code and timing signals, and complete the control of fetching instructions and executing instructions.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in the processor 110 may be a cache memory.
  • the memory can store instructions or data that the processor 110 has just used or used cyclically. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. In this way, repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the electronic device 101 in processing data or executing instructions is improved.
  • the processor 110 may include one or more interfaces.
  • the interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, and a universal asynchronous transceiver (universal asynchronous transceiver) interface.
  • asynchronous receiver/transmitter, UART) interface mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, SIM card interface, and/or USB interface, etc.
  • the USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 101, and can also be used to transfer data between the electronic device 101 and peripheral devices.
  • the USB interface 130 can also be used to connect earphones and play audio through the earphones.
  • the interface connection relationship between the modules illustrated in the embodiment of the present application is merely a schematic description, and does not constitute a structural limitation of the electronic device 100.
  • the electronic device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
  • the charging management module 140 may receive the wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110.
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic wave radiation via the antenna 1.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites.
  • WLAN wireless local area networks
  • BT wireless fidelity
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication technology
  • infrared technology infrared, IR
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 may also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic waves to radiate through the antenna 2.
  • the electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is a microprocessor for image processing, connected to the display 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, and the like.
  • the display screen 194 includes a display panel.
  • the display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
  • the electronic device 100 may include one or more display screens 194.
  • the display screen 194 of the electronic device 100 may be a flexible screen.
  • the flexible screen has attracted much attention due to its unique characteristics and great potential.
  • flexible screens have the characteristics of strong flexibility and bendability, and can provide users with new interactive methods based on bendable characteristics, which can meet users' more needs for electronic devices.
  • the foldable display screen on the electronic device can be switched between a small screen in a folded configuration and a large screen in an unfolded configuration at any time. Therefore, users use the split screen function on electronic devices equipped with foldable display screens more and more frequently.
  • the electronic device 100 can realize a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
  • the ISP is used to process the data fed back by the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing and is converted into an image visible to the naked eye.
  • ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193.
  • the camera 193 is used to capture still images or videos.
  • the object generates an optical image through the lens and is projected to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the electronic device 100 may include one or more cameras 193.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
  • MPEG moving picture experts group
  • MPEG2 MPEG2, MPEG3, MPEG4, and so on.
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • applications such as intelligent cognition of the electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, and so on.
  • the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • the internal memory 121 may be used to store one or more computer programs, and the one or more computer programs include instructions.
  • the processor 110 can execute the above-mentioned instructions stored in the internal memory 121 to enable the electronic device 101 to execute the off-screen display method provided in some embodiments of the present application, as well as various applications and data processing.
  • the internal memory 121 may include a storage program area and a storage data area. Among them, the storage program area can store the operating system; the storage program area can also store one or more applications (such as photo galleries, contacts, etc.) and so on.
  • the data storage area can store data (such as photos, contacts, etc.) created during the use of the electronic device 101.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage components, flash memory components, universal flash storage (UFS), and the like.
  • the processor 110 may execute the instructions stored in the internal memory 121 and/or the instructions stored in the memory provided in the processor 110 to cause the electronic device 101 to execute the instructions provided in the embodiments of the present application.
  • the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
  • the 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, and an ambient light sensor 180L, bone conduction sensor 180M, etc.
  • the pressure sensor 180A is used to sense a pressure signal, and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be provided on the display screen 194.
  • the capacitive pressure sensor may include at least two parallel plates with conductive 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 the pressure according to the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations that act on the same touch position but have different touch operation strengths may correspond to different operation instructions. For example, when a touch operation whose intensity of the touch operation is less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the movement posture of the electronic device 100.
  • the angular velocity of the electronic device 100 around three axes ie, X, Y, and Z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and apply to applications such as horizontal and vertical screen switching, pedometers and so on.
  • the ambient light sensor 180L is used to sense the brightness of the ambient light.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on.
  • the temperature sensor 180J is used to detect temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature.
  • the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
  • the touch sensor 180K is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194.
  • the button 190 includes a power-on button, a volume button, and so on.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • the electronic device 100 may receive key input, and generate key signal input related to user settings and function control of the electronic device 100.
  • FIG. 2 is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface.
  • the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and the system library. As shown in Figure 2, each layer in the software architecture can call the hardware layer, and the hardware layer can include multiple pieces of hardware in Figure 1.
  • the application layer can include a series of application packages. As shown in Figure 2, the application package may include applications such as music playback, video playback, reading applications, application market, gallery, calendar, call, map, and navigation.
  • applications such as music playback, video playback, reading applications, application market, gallery, calendar, call, map, and navigation.
  • the application framework layer provides application programming interfaces (application programming interface, API) and programming frameworks for applications at the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer can include a window manager, a content provider, a view system, a phone manager, a resource manager, and a notification manager.
  • the window manager is used to manage window programs.
  • the window manager can obtain the size of the display, determine whether there is a status bar, lock the screen, take a screenshot, etc.
  • the content provider is used to store and retrieve data, and make these data accessible to applications.
  • the data may include videos, images, audios, phone calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, and so on.
  • the view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
  • the phone manager is used to provide the communication function of the electronic device 100. For example, the management of the call status (including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
  • the notification manager allows the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, and so on.
  • the notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or a scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, text messages are prompted in the status bar, prompt sounds, electronic devices vibrate, and indicator lights flash.
  • Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of Android.
  • the application layer and the application framework layer run in a virtual machine.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library can include multiple functional modules. For example: surface manager (surface manager), media library (media libraries), 3D graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to realize 3D graphics drawing, image rendering, synthesis, and layer processing.
  • the 2D graphics engine is a drawing engine for 2D drawing.
  • the hardware layer may include multiple hardware, such as the display screen 194, the camera 193, the audio module 170, and the sensor module in FIG. 1, where the sensor module may include, for example, the gyroscope sensor 180B, the fingerprint sensor 180H, etc. in FIG.
  • the application layer, the application framework layer, the Android runtime and the system library can all call the hardware in the hardware layer by calling the hardware interface.
  • the application layer calls the display screen 194 by calling the display interface.
  • a hardware interface layer may also be included between the system layer and the hardware layer, and the hardware interface layer includes multiple interfaces for driving the hardware.
  • the interface that drives the display screen the interface that drives the camera, the interface that drives the audio module, the interface that drives the gyroscope sensor, the interface that drives the fingerprint sensor, and so on.
  • the processor or chip inside the electronic device When the processor or chip inside the electronic device reads the code of the application in the application layer, it can call the hardware interface to drive the hardware in the hardware layer and perform corresponding operations.
  • the antenna used for mobile communication can be driven by calling the mobile communication interface, and the uplink and downlink communication data can be transmitted through the antenna used for mobile communication.
  • the processor or chip when running the call application, it can read the code in the call application, so that the mobile communication interface can be called, and the voice call function can be realized by driving the antenna for mobile communication.
  • the display screen can be driven by calling the screen display interface, and images can be displayed on the display screen.
  • the processor or chip when the processor or chip is running a video playback application, it can read the code in the video playback application, so that it can call the screen display interface and play the video on the display screen.
  • the speaker can be driven by calling the speaker interface, and sound can be played through the speaker; or, the earphone (connected externally) can be driven by calling the earphone interface, and the sound can be played through the earphone.
  • the processor or chip when the processor or chip is running an audio playback application, it can read the code in the audio playback application, so that it can call the speaker interface and play audio files through the speaker, or it can call the headphone interface and pass the (externally connected) The headset plays audio files.
  • the fingerprint identification module can be driven by calling the fingerprint identification interface, and the fingerprint can be identified by the fingerprint identification module.
  • the processor or chip when the processor or chip is running a security application, it can read the code in the security application, so that the fingerprint identification interface can be called, and when the fingerprint fed back by the fingerprint identification module matches the preset fingerprint information, the current electronic device's The operation is safe.
  • a global positioning system (GPS) antenna can be driven by calling a position positioning interface, and the current position of the electronic device can be determined through the GPS antenna.
  • GPS global positioning system
  • the processor or chip when the processor or chip is running a map navigation application, it can read the code in the map navigation application, so that the positioning interface can be called, and the driving route can be planned through the positioning information fed back by the GPS antenna.
  • the Bluetooth antenna can be driven by calling the wireless communication interface, and data can be received from other electronic devices through the Bluetooth antenna, or data can be sent to other electronic devices.
  • the processor or chip when the processor or chip is running a file transfer application, it can read the code in the file transfer application, so that it can call the wireless communication interface, and send a file to or receive a file from a neighboring electronic device through a Bluetooth antenna. document.
  • the camera can be driven by calling the shooting interface, and an image or video can be captured by the camera.
  • the processor or the chip when the processor or the chip is running the shooting application, it can read the code in the shooting application, so that the front-facing shooting interface can be called, and a portrait can be taken through the front-facing camera.
  • Figure 3 shows the schematic diagram of the development software for two different types of equipment.
  • the types of devices in FIG. 3 may include, for example, mobile phones, tablet computers, wearable electronic devices with wireless communication functions (such as smart watches), video player desktop computers, TVs, notebook computers, and so on.
  • the first device in FIG. 3 may be a mobile phone
  • the second device may be a TV.
  • the hardware interface one of device one can call hardware one.
  • the hardware interface two of the device two can call the hardware two.
  • the hardware interface one is different from the hardware interface two, so the same program cannot be used.
  • Implement the call of hardware interface one and implement the call of hardware interface two.
  • both the mobile phone’s display screen and the TV’s screen can be used to play videos and display pictures.
  • the mobile phone’s display screen and the TV’s screen can be produced by different screen manufacturers, so the interface of the mobile phone’s display screen is different from that of the TV screen. That is, the same program cannot be used to call the interface of the mobile phone display screen and the interface of the TV screen as well.
  • the system software is usually a program installed and loaded on the electronic device by the device manufacturer before the electronic device leaves the factory. Since the hardware interface one of the device one is different from the hardware interface two of the device two, the system software of the device one is different from the system software of the device two.
  • SDK software development kits
  • an application developer wants to develop a set of applications, such as video playback software, map navigation software, call software, system applications, etc.
  • this set of applications In order to implement the functions of this set of applications on both device one and device two (as shown in Figure 3), it is necessary to develop two different applications of the same type for device one and device two respectively.
  • video playback software 1 for mobile phones
  • video playback software 2 for TVs.
  • the two different applications of the same type may refer to that the two applications may include application one for device one and application two for device two, and the functions of application one and application two are the same or the main functions are the same; but
  • the code, interface and/or function used by application one and application two are different, so application one usually cannot be applied to device two, and application two usually cannot be applied to device First, application one and application two are two different applications.
  • Fig. 4 is a schematic flowchart of a method for invoking a hardware interface provided by an embodiment of the application.
  • Read first indication information in a code of a first application where the first indication information is used to indicate related information of a first hardware interface set, where the first hardware interface set includes hardware interfaces of multiple electronic devices.
  • the types of any two hardware interfaces in the first hardware interface set are the same, or part or all of the functions of any two hardware interfaces in the first hardware interface set are the same.
  • the first application may be, for example, a call application, a video playback application, an audio playback application, a security application, a map navigation application, a file transfer application, a shooting application, and so on.
  • the first application may also include music playback, video playback, reading application, application market, gallery, calendar, call, map, navigation, etc. This application does not limit the specific type of the first application.
  • the first set of hardware interfaces includes hardware interfaces of multiple electronic devices.
  • the types of the multiple electronic devices may include, for example, mobile phones, tablets, smart watches, video players, laptops, desktop computers, TVs, and notebooks. At least two of the computers.
  • the hardware when the first application calls the hardware interface, the hardware may be driven by code. Therefore, the first set of hardware interfaces may be stored in the processor or memory in the form of code.
  • the hardware interface can implement hardware calls through code, so the code can be used to define the hardware interface.
  • a hardware interface definition language HDL
  • HIDL language can be used to call java format code to implement the call of the hardware interface.
  • the electronic device may include a software module or a hard-wired module for identifying the type of the device.
  • the electronic device can use the version number, model, etc. of the electronic device to call the hardware of the electronic device.
  • the hardware interface of a mobile phone is different from that of a watch
  • the hardware interface of a watch is different from that of a TV.
  • the hardware interface is different from the hardware interface of the TV.
  • the hardware interfaces of different electronic devices of the same type may be the same or different.
  • two mobile phones with the same version number may have the same hardware interfaces
  • two mobile phones with the same version number may have different hardware interfaces.
  • the electronic device can identify the type of the chip, so as to call the hardware including the chip, or determine the hardware interface of the hardware including the chip. For another example, the electronic device can identify the version number or model of the hardware to determine whether to call the hardware or determine the hardware interface of the hardware.
  • any two hardware interfaces in the first set of hardware interfaces are of the same type.
  • all the hardware interfaces in the first hardware interface set are mobile communication interfaces.
  • all hardware interfaces in the first hardware interface set are screen display interfaces.
  • all the hardware interfaces in the first hardware interface set are speaker interfaces.
  • all the hardware interfaces in the first hardware interface set are earphone interfaces.
  • all hardware interfaces in the first hardware interface set are fingerprint identification interfaces.
  • all hardware interfaces in the first hardware interface set are positioning interfaces.
  • all hardware interfaces in the first hardware interface set are wireless communication interfaces.
  • all hardware interfaces in the first set of hardware interfaces are shooting interfaces.
  • the type of the first hardware interface set is the same as the type of any hardware interface in the first hardware interface set.
  • all hardware interfaces in the first hardware interface set are mobile communication interfaces, and the type of the first hardware interface set may be mobile communication interfaces.
  • Part of the functions of any two hardware interfaces in the first hardware interface set are the same.
  • all hardware interfaces in the first hardware interface set can be used for voice calls, and due to different mobile communication standards, the first part of the hardware interfaces in the first hardware interface set can be used in global system for mobile communications, GSM) system
  • the second part of the hardware interface in the first set of hardware interfaces can work in the global system for mobile communications (GSM) system, or in code division multiple access , CDMA) system.
  • GSM global system for mobile communications
  • CDMA code division multiple access
  • all hardware interfaces in the first hardware interface set can be used for Bluetooth file transfer, and due to different wireless communication standards, the first part of the hardware interfaces in the first hardware interface set can be used to drive Bluetooth 2.0.
  • the second part of the hardware interface set can be used to drive Bluetooth 4.0.
  • all hardware interfaces in the first hardware interface set can be used to play audio, and the interfaces used to play audio include a speaker interface for driving speakers and a headphone interface for driving headphones. Therefore, the first hardware interface The first part of the hardware interface in the set can be used to drive speakers, and the second part of the hardware interface can be used to drive headphones.
  • all the hardware interfaces in the first hardware interface set can be used for video input, while the high definition multimedia interface (HDMI) can be used for audio input and video input, and the video graphics array (video graphics array, The VGA) interface is only used for video input. Therefore, the first part of the hardware interface in the first hardware interface set can be the interface only for video input, and the second part of the hardware interface can be used for both audio input and video input.
  • HDMI high definition multimedia interface
  • VGA video graphics array
  • all the hardware interfaces in the first hardware interface set can be used to capture images or videos, and the cameras are divided into front cameras and rear cameras, so the first part of the hardware interfaces in the first hardware interface set can be used for Drive the front camera, the second part of the hardware interface can be used to drive the rear camera.
  • the function of the first hardware interface set includes the function of any hardware interface in the first hardware interface set.
  • all hardware interfaces in the first hardware interface set can be used for voice calls, and the functions of the first hardware interface set include voice calls.
  • All functions of any two hardware interfaces in the first hardware interface set are the same.
  • all the hardware interfaces in the first set of hardware interfaces can be used for voice calls, and all can work in the global system for mobile communications (GSM) system, or in code division multiple access (code division multiple access).
  • Division multiple access (CDMA) system works, and all functions implemented by any hardware interface in the first hardware interface set can also be implemented by other hardware interfaces in the first hardware interface set.
  • GSM global system for mobile communications
  • CDMA code division multiple access
  • all hardware interfaces in the first hardware interface set can be used to drive Bluetooth 4.0.
  • all the hardware interfaces in the first set of hardware interfaces can be used to play audio, and all of them can be used to drive headphones.
  • all the hardware interfaces in the first hardware interface set can be used for video input, and all can be used for audio input.
  • all the hardware interfaces in the first hardware interface set can be used to capture images or videos, and all are used to drive the front camera.
  • the function of the first hardware interface set is the same as the function of any hardware interface in the first hardware interface set.
  • all hardware interfaces in the first hardware interface set can be used for voice calls, and the function of the first hardware interface set is voice calls.
  • any two hardware interfaces are of the same type, and the functions that can be implemented by the any two hardware interfaces are usually the same or similar.
  • the first set of hardware interfaces may include multiple hardware interfaces of a certain type of electronic device.
  • the electronic device includes a front camera and a rear camera
  • the first set of hardware interfaces may include a hardware interface 1 for driving the front camera and a hardware interface 2 for driving the rear camera.
  • the electronic device includes multiple multimedia transmission interfaces, which are respectively used to support different multimedia transmission standards (such as HDMI and VGA).
  • Fig. 5 is a schematic diagram of the hardware interfaces in the first set of hardware interfaces.
  • the first set of hardware interfaces includes hardware interface 1, hardware interface 2, hardware interface 3, and hardware interface 4.
  • the hardware interface 1 and the hardware interface 2 are hardware interfaces of the electronic device 501.
  • the hardware interface 3 is a hardware interface of the electronic device 502.
  • the hardware interface 3 and the hardware interface 4 are hardware interfaces of the electronic device 503.
  • the hardware interfaces of different electronic devices can be the same.
  • mobile phone 1 with version number 1 uses hardware 1
  • mobile phone 2 with version number 2 uses hardware 2
  • hardware 1 and hardware 2 are from the same hardware manufacturer
  • hardware 1 and hardware 2 are the same type of hardware. Therefore, the mobile phone 1 and the mobile phone 2 may have the same hardware interface.
  • the first set of hardware interfaces may include multiple hardware interfaces of the same type, and include hardware interfaces of multiple electronic devices.
  • the hardware interface 1, the hardware interface 2, the hardware interface 3, and the hardware interface 4 may all be shooting interfaces.
  • the electronic device 501 may be a mobile phone, the electronic device 502 may be a watch, and the electronic device 503 may be a tablet computer.
  • the hardware interface 1 of the electronic device 501 may be a shooting interface for calling a front camera, and the hardware interface 2 of the electronic device 501 may be a shooting interface for calling a rear camera.
  • the hardware interface 3 of the electronic device 503 may be a shooting interface for calling a front camera, and the hardware interface 4 of the electronic device 503 may be a shooting interface for calling a rear camera.
  • the hardware interface 3 of the electronic device 502 is the same as the hardware interface 3 of the electronic device 503.
  • the first set of hardware interfaces may include a plurality of hardware interfaces with part or all of the same functions, and include hardware interfaces of a plurality of electronic devices.
  • the first indication information includes information indicating a second hardware interface, and the electronic device does not have the second hardware interface, and the first hardware interface is collected from the first hardware interface according to the first indication information.
  • the method further includes: determining, according to the first indication information, the set of hardware interfaces to which the second hardware interface belongs as the first hardware interface set.
  • the electronic device may store related information of the first hardware interface set, and the related information includes the identification of the first hardware interface set and the information of multiple hardware interfaces in the first hardware interface set (such as the identification of each hardware interface, the call parameter Etc.), the multiple hardware interfaces include the second hardware interface.
  • the identification of the first hardware interface set shown in FIG. 5 and the identification of hardware interface 1, the identification of hardware interface 2, the identification of hardware interface 3, the identification of hardware interface 4, and the identification of the first hardware interface set can be saved, respectively.
  • the electronic device 501 since the electronic device 501 does not have the hardware interface 3, the electronic device 501 cannot call the hardware Interface 3, and the electronic device 501 can determine that there is a correspondence between the hardware interface 3 and the first hardware interface set according to the first indication information and the related information of the first hardware interface set, so as to determine the first hardware interface set.
  • Figure 6 shows a schematic diagram of a set of multiple hardware interfaces.
  • the electronic device may store related information of multiple hardware interface sets, and the multiple hardware interface sets include the hardware interface set 601 and the hardware interface set 602 shown in FIG. 6.
  • the type of the hardware interface set 601 is type 1
  • the type of the hardware interface set 602 is type 2.
  • the first indication information includes information indicating the first type of the hardware interface that the first application needs to call. According to the first indication information, it is determined from the first hardware interface set that the electronic device has at least Before a first hardware interface, the method further includes: determining, according to the first indication information, a set of hardware interfaces matching the first type as the first hardware interface set.
  • the first hardware interface set matches the first type, and a possible situation is that the type of the first hardware interface set is the first type.
  • the type of the hardware interface set has been described in detail above, and will not be repeated here.
  • Another possible situation is that the function of the first hardware interface set is the same or similar to the function implemented by the first type.
  • the type indicated by the first indication information is a mobile communication interface
  • the function of the first hardware interface set includes a voice call function
  • the mobile communication interface can also implement the voice call function, so the first hardware interface set matches the first type .
  • the type indicated by the first indication information is a screen display interface
  • the functions of the first set of hardware interfaces include the function of displaying images on the screen
  • the screen display interface can also realize the function of displaying images on the screen.
  • a set of hardware interfaces matches the first type.
  • the type indicated by the first indication information is a speaker interface
  • the function of the first hardware interface set includes a sound playback function
  • the speaker interface can also implement the sound playback function, so the first hardware interface set matches the first type.
  • the type indicated by the first indication information is a headphone interface
  • the function of the first hardware interface set includes a sound playing function
  • the headphone interface can also implement the sound playing function, so the first hardware interface set matches the first type.
  • the type indicated by the first indication information is a fingerprint identification interface
  • the function of the first hardware interface set includes a fingerprint identification function
  • the fingerprint identification interface can also implement the fingerprint identification function. Therefore, the first hardware interface set and the first type match.
  • the type indicated by the first indication information is a positioning interface
  • the function of the first hardware interface set includes a positioning function
  • the positioning interface can also implement the positioning function, so the first hardware interface set matches the first type.
  • the type indicated by the first indication information is a wireless communication interface
  • the function of the first hardware interface set includes a data transmission function
  • the wireless communication interface can also implement the data transmission function. Therefore, the first hardware interface set and the first type match.
  • the type indicated by the first indication information is a shooting interface
  • the function of the first hardware interface set includes capturing the scene around the electronic device, and the shooting interface can also realize the function of capturing the scene around the electronic device. Therefore, the first hardware interface set Matches the first type.
  • the electronic device may determine the first set of hardware interfaces matching the first type according to the first type.
  • the function of the hardware interface set 601 includes function 1, and the function of the hardware interface set 602 includes function 2.
  • the first indication information includes information indicating the first function of the hardware interface that the first application needs to call, and the first function is determined from the first hardware interface set according to the first indication information
  • the method further includes: determining, according to the first indication information, a set of hardware interfaces matching the first function as the first set of hardware interfaces.
  • the first hardware interface set matches the first function, and a possible situation is that the function of the first hardware interface set includes the first type.
  • the functions of the various hardware interface sets have been described in detail above, and will not be repeated here.
  • Another possible situation is that the function of the first hardware interface set is the same or similar to the function implemented by the first type.
  • the function indicated by the first indication information is a voice call function
  • the type of the first hardware interface set is a mobile communication interface
  • the mobile communication interface can implement the voice call function, so the first hardware interface set matches the first type .
  • the function indicated by the first indication information is the function of displaying images on the screen
  • the type of the first hardware interface set is the screen display interface
  • the screen display interface can realize the function of displaying images on the screen.
  • a set of hardware interfaces matches the first type.
  • the function indicated by the first indication information is a sound playback function
  • the type of the first hardware interface set is a speaker interface or a headphone interface
  • the speaker interface or the headphone interface can realize the sound playback function, so the first hardware interface set Matches the first type.
  • the function indicated by the first indication information is a fingerprint recognition function
  • the type of the first hardware interface set is a fingerprint recognition interface
  • the fingerprint recognition interface can realize the fingerprint recognition function, so the first hardware interface set is the same as the first type match.
  • the function indicated by the first indication information is a positioning function
  • the type of the first hardware interface set is a positioning interface
  • the positioning interface can implement the positioning function, so the first hardware interface set matches the first type.
  • the function indicated by the first indication information is a data transmission function
  • the type of the first hardware interface set is a wireless communication interface
  • the wireless communication interface can realize the data transmission function. Therefore, the first hardware interface set is the same as the first type. match.
  • the function indicated by the first indication information is the function of capturing the scene around the electronic device
  • the type of the first hardware interface set is the shooting interface
  • the shooting interface can realize the function of capturing the scene around the electronic device, so the first hardware The set of interfaces matches the first type.
  • the electronic device may determine the first hardware interface set matching the first function according to the first function.
  • the electronic device can select one or more hardware interfaces of the electronic device in the first hardware interface set, that is, the electronic device can select one or more hardware interfaces that the electronic device can call correctly.
  • a hardware interface is, the electronic device can select one or more hardware interfaces that the electronic device can call correctly.
  • the electronic device 501 can determine the hardware interface 1 and the hardware interface 2 from the first hardware interface set, and use both the hardware interface 1 and the hardware interface 2 as the first hardware interface.
  • the electronic device can try the hardware interfaces in the first hardware interface set one by one according to the information of the hardware interfaces in the first hardware interface set, and when the call result is successful, it can determine the at least one first hardware interface. interface.
  • the electronic device 501 can sequentially try from the first hardware interface set whether hardware interface 1, hardware interface 2, hardware interface 3, and hardware interface 4 can be successfully called.
  • Interface 3 and hardware interface 4 are not hardware interfaces of electronic device 501, and electronic device 501 cannot be called correctly, while hardware interface 1 and hardware interface 2 are hardware interfaces of electronic device 501, so electronic device 501 can correctly call hardware interface 1 , Hardware interface 2, so that both hardware interface 1 and hardware interface 2 can be determined as the first hardware interface.
  • the electronic device may determine at least one first hardware interface possessed by the electronic device from the first hardware interface set according to the type of the electronic device.
  • the determining at least one first hardware interface of the electronic device from the first hardware interface set according to the first indication information includes: according to the type of the electronic device and the first hardware interface Indication information, determining the at least one first hardware interface from the first hardware interface set.
  • the first hardware interface set includes hardware interface 1, hardware interface 2, hardware interface 3, and hardware interface 4.
  • the hardware interface 1 and the hardware interface 2 are hardware interfaces of the electronic device 501.
  • the hardware interface 3 is a hardware interface of the electronic device 502.
  • the hardware interface 3 and the hardware interface 4 are hardware interfaces of the electronic device 503.
  • the electronic device 501 may determine both the hardware interface 1 and the hardware interface 2 as the first hardware interface according to its own device type.
  • the first indication information further includes information indicating the version number of the interface that the first application needs to call.
  • the interface corresponding to the Bluetooth antenna of the Bluetooth 2.0 version is different from the interface corresponding to the Bluetooth antenna of the Bluetooth 4.0 version.
  • the electronic device can ignore the Bluetooth 2.0 version.
  • Corresponding interface For example, hardware interface 1 in Figure 5 is a Bluetooth interface of Bluetooth 2.0 version, and hardware interface 2 in Figure 5 is a Bluetooth interface of Bluetooth 4.0 version.
  • the first indication information indicates the Bluetooth 4.0 version, and the electronic device can follow the instructions in the first indication information.
  • the version number of the hardware interface 2 is determined as the first hardware interface.
  • multimedia transmission interface (version number can be HDMI, VGA, etc.), headphone jack (version number can be 2.5mm, 3.5mm, USB-C, etc.), mobile communication interface (version number can be GSM, CDMA, etc.) may also have version numbers.
  • Invoking the first hardware interface may refer to driving the hardware corresponding to the first hardware interface through the first hardware interface.
  • the electronic device reads the first indication information in the code of the call application, and the first indication information is used to indicate the first set of hardware interfaces whose type is a mobile communication interface or whose function is a language call.
  • the electronic device may determine from the first hardware interface set at least one first hardware interface that the electronic device has, and the at least one first hardware interface is a mobile communication interface according to the type of the interface, or the function of the at least one first hardware interface Both include voice calls.
  • the electronic device invokes the at least one first hardware interface, and realizes the voice call function by driving the antenna for mobile communication.
  • the electronic device reads the first instruction information in the code of the video playback application, and the first instruction information is used to indicate the first set of hardware interfaces whose type is a screen display interface, or whose function is to display images on the screen.
  • the electronic device may determine from the first hardware interface set at least one first hardware interface that the electronic device has, and the at least one first hardware interface is a screen display interface according to the type of the interface, or the function of the at least one first hardware interface Both include displaying an image on the screen, so that the electronic device calls the at least one first hardware interface and plays the video on the display screen.
  • the electronic device reads the first indication information in the code of the audio playback application, and the first indication information is used to indicate the first hardware interface set whose type is the speaker interface, or the first hardware interface whose function is to play sound set.
  • the electronic device may determine from the first hardware interface set at least one first hardware interface that the electronic device has, and the at least one first hardware interface is a speaker interface according to the type, or the function of the at least one first hardware interface is all It includes playing a sound, so that the electronic device calls the at least one first hardware interface and plays the audio file through the speaker.
  • the electronic device reads the first indication information in the code of the audio playback application, and the first indication information is used to indicate the first hardware interface set whose type is the headphone interface, or the first hardware interface whose function is to play sound set.
  • the electronic device may determine from the first hardware interface set at least one first hardware interface that the electronic device has, and the at least one first hardware interface is a headphone interface according to the type, or the function of the at least one first hardware interface is all It includes playing a sound, so that the electronic device calls the at least one first hardware interface and plays the audio file through the earphone.
  • the electronic device reads the first indication information in the code of the security application, and the first indication information is used to indicate the first hardware interface set whose type is fingerprint recognition interface, or the first hardware interface whose function is fingerprint recognition set.
  • the electronic device can determine from the first hardware interface set at least one first hardware interface that the electronic device has, and the at least one first hardware interface is a fingerprint recognition interface according to the type of the interface, or the function of the at least one first hardware interface Both include fingerprint recognition, so that the electronic device calls the at least one first hardware interface, and when the fingerprint fed back by the fingerprint recognition module matches the preset fingerprint information, the current operation of the electronic device is considered to be safe.
  • the electronic device reads the first indication information in the code of the map navigation application, and the first indication information is used to indicate the first hardware interface set whose type is positioning interface, or the first hardware interface set whose function is positioning .
  • the electronic device may determine from the first hardware interface set at least one first hardware interface that the electronic device has, and the at least one first hardware interface is a positioning interface according to the type of the interface, or the function of the at least one first hardware interface is all Including positioning, so that the electronic device invokes the at least one first hardware interface, and plans the driving route through the positioning information fed back by the GPS antenna.
  • the electronic device reads the first indication information in the code of the file transfer application, and the first indication information is used to indicate the first hardware interface set whose type is a wireless communication interface, or the first hardware whose function is data transmission. Interface collection.
  • the electronic device can determine from the first hardware interface set at least one first hardware interface that the electronic device has, and the at least one first hardware interface is a wireless communication interface according to the type of the interface, or the function of the at least one first hardware interface Both include data transmission, so that the electronic device calls the at least one first hardware interface, and sends a file to or receives a file sent by a nearby electronic device through a Bluetooth antenna.
  • the electronic device reads the first indication information in the code of the shooting application, the first indication information is used to indicate the first set of hardware interfaces whose type is the shooting interface, or the function is to capture the first part of the scene around the electronic device.
  • the electronic device may determine from the first hardware interface set at least one first hardware interface that the electronic device has, and the at least one first hardware interface is a shooting interface according to the type, or the function of the at least one first hardware interface is all It includes capturing the scene around the electronic device, so that the electronic device calls the at least one first hardware interface, calls the front-facing interface, and shoots the portrait through the front-facing camera.
  • the hardware call mode can also be determined according to the hardware type of the electronic device.
  • the size of the mobile phone display is 5 inches
  • the watch screen size is 40mm, which is different from the mobile phone display size, and you can select hardware call mode 2 for small screens
  • the screen size is 50 inches, which is different from the size of the mobile phone display and the size of the watch screen. You can choose the hardware call mode 3 for the super large screen.
  • the size of the mobile phone display screen includes 4.8 inches, 5 inches, and 5.1 inches. Therefore, different mobile phones can choose different hardware calling modes adapted to different sizes of screens.
  • the first application indicates the first hardware interface set through the first indication information, and the electronic device can confirm according to its own parameters (such as version number, electronic device type, etc.) what the first application should actually call Real hardware interface parameters. Therefore, the first application does not need to know in advance the actual hardware interface of the electronic device executing the first application. Moreover, when the first application indicates the first set of hardware interfaces, the first application may be executed on multiple electronic devices. Therefore, the method provided in the embodiments of the present application can reduce the burden of application developers.
  • Fig. 7 is a schematic flowchart of a method for invoking a hardware interface provided by an embodiment of the application.
  • Read second indication information in a code of a second application where the second indication information is used to indicate related information of a second hardware interface set, where the second hardware interface set includes hardware interfaces of multiple electronic devices.
  • the types of any two hardware interfaces in the second hardware interface set are the same, or part or all of the functions of any two hardware interfaces in the second hardware interface set are the same.
  • the second application may be, for example, a call application, a video playback application, an audio playback application, a security application, a map navigation application, a file transfer application, a shooting application, and so on.
  • the second application may also include music playback, video playback, reading application, application market, gallery, calendar, call, map, navigation, etc. This application does not limit the specific type of the second application.
  • the second set of hardware interfaces includes hardware interfaces of multiple electronic devices.
  • the types of the multiple electronic devices may include, for example, mobile phones, tablets, smart watches, video players, laptops, desktop computers, TVs, and notebooks. At least two of the computers.
  • the hardware interface of a mobile phone is different from that of a watch
  • the hardware interface of a watch is different from that of a TV.
  • the hardware interface is different from the hardware interface of the TV.
  • the hardware interfaces of different electronic devices of the same type may be the same or different.
  • two mobile phones with the same version number may have the same hardware interfaces
  • two mobile phones with the same version number may have different hardware interfaces.
  • step 701 For the specific implementation of step 701, reference may be made to step 401 in the embodiment shown in FIG. 4, which is not repeated here.
  • the second hardware interface set includes hardware interface 5, hardware interface 6, and hardware interface 7, where hardware interface 5, hardware interface 6, and hardware interface 7 are not hardware interfaces of electronic devices.
  • the type of the second hardware interface set is the second type.
  • the electronic device does not have any hardware interface in the second hardware interface set, so the electronic device There is no interface belonging to the second type, or no interface matching the second type.
  • the function of the second hardware interface set is the second function, and in the case that the second application instructs to call the interface with the second function, the electronic device does not have any hardware interface in the second hardware interface set, so The electronic device does not have an interface that can implement the second function, or does not have an interface that matches the second function.
  • the preset target interface can be a virtual interface or a physical interface.
  • the electronic device is a watch
  • the second indication information indicates to call the USB interface
  • the watch does not have a USB interface.
  • the electronic device can call the earphone interface for charging, and the earphone interface is the target interface. Since the electronic device can call the target interface, it will not get the call feedback result that the electronic device cannot call the USB interface, and it will not cause the second application to fail because the electronic device does not have a USB interface (such as the second application running crash or unlimited Cycle error).
  • the electronic device is a TV
  • the second indication information indicates to call a mobile communication interface
  • the TV does not have a mobile communication interface.
  • the electronic device can call a preset virtual interface. Since the electronic device can call the target interface, it will not get the call feedback result that the electronic device cannot call the mobile communication interface, and it will not cause the second application to fail because the electronic device does not have a mobile communication interface (for example, the second application crashes. Or an infinite loop error).
  • the warning information may be, for example, displaying symbols such as " ⁇ " on the screen.
  • the alarm information is presented, and the alarm information that matches the type or function of the second hardware interface set may be presented.
  • the type of the second hardware interface set is a mobile communication interface
  • the displayed alarm information may be "the machine does not have the voice call function”.
  • the type of the second hardware interface set is a fingerprint identification interface
  • the displayed alarm information may be "fingerprint information cannot be obtained”.
  • the type of the second hardware interface set is a positioning interface
  • the displayed alarm information may be "cannot obtain current location information, whether to manually input current location information".
  • the type of the second hardware interface set is a Bluetooth interface
  • the displayed alarm information may be "No Bluetooth device connectable”.
  • the type of the second hardware interface set is the front camera interface
  • the presented warning information may be "An error occurred when calling the front camera, whether to call the rear camera".
  • FIG. 8 is a schematic flowchart of a method for invoking a hardware interface provided by an embodiment of the application.
  • the third application may be, for example, a call application, a video playback application, an audio playback application, a security application, a map navigation application, a file transfer application, a shooting application, and so on.
  • the third application may also include music playback, video playback, reading application, application market, gallery, calendar, call, map, navigation, etc. This application does not limit the specific type of the third application.
  • the third set of hardware interfaces includes the hardware interfaces of multiple electronic devices.
  • the types of the multiple electronic devices may include, for example, mobile phones, tablets, smart watches, video players, laptops, desktop computers, TVs, and notebooks. At least two of the computers.
  • the hardware interface can implement hardware calls through code, so the code can be used to define the hardware interface.
  • a hardware interface definition language HDL
  • the HIDL language can be used to call the code in the java format to implement the call of the hardware interface.
  • different types of electronic devices have different hardware interfaces. For example, the hardware interface of a mobile phone is different from that of a watch, and the hardware interface of a watch is different from that of a TV. The hardware interface is different from the hardware interface of the TV.
  • the hardware interfaces of different electronic devices of the same type may be the same or different.
  • two mobile phones with the same version number may have the same hardware interfaces
  • two mobile phones with the same version number may have different hardware interfaces.
  • the function of the hardware interface may be, for example, a voice call function, a function of displaying an image on a screen, a sound playback function, a fingerprint recognition function, a positioning function, a file transfer function, a function of capturing scenes around the electronic device, and so on.
  • the type of the hardware interface may be, for example, a mobile communication interface, a screen display interface, a speaker interface, a headphone interface, a fingerprint recognition interface, a positioning interface, a wireless communication interface, and a shooting interface.
  • the electronic device determines at least one third hardware interface possessed by the electronic device from a plurality of hardware interfaces, and the plurality of hardware interfaces include those possessed by the plurality of electronic devices.
  • Hardware interface determines at least one third hardware interface possessed by the electronic device from a plurality of hardware interfaces, and the plurality of hardware interfaces include those possessed by the plurality of electronic devices.
  • the function of the hardware interface to be called by the third application indicated by the third indication information is the third function
  • the type of the hardware interface to be called by the third application indicated by the third indication information is the third type. That is, according to the third type indicated by the third indication information, at least one third hardware interface that can be successfully called by the electronic device is determined, and the type or function of the third hardware interface is the same as the third type indicated by the third indication information. Type match. Or, according to the third function indicated by the third indication information, determine at least one third hardware interface that the electronic device can successfully call, and the type or function of the third hardware interface matches the third function indicated by the third indication information .
  • the electronic device may store related information of the multiple hardware interfaces, and the related information includes the function or type of each hardware interface of the multiple hardware interfaces.
  • the related information also includes various parameters required for invoking each hardware interface.
  • the related information also includes the information of the electronic device to which each hardware interface belongs.
  • the related information may also include the identification of each hardware interface. Therefore, after the electronic device reads the third indication information, it can select at least one third hardware interface that meets the requirements from the multiple hardware interfaces according to the type, parameter, model, etc. of the electronic device itself.
  • the electronic device can find at least one third hardware interface from the multiple hardware interfaces according to the related information of the multiple hardware interfaces, and the at least one third hardware interface and the third indication The third function indicated by the information matches.
  • the at least one third hardware interface matches the third function indicated by the third indication information, which may mean that the functions of the at least one third hardware interface are the same as the third function, or that the at least one The type of the third hardware interface matches the third function.
  • the function of the hardware interface indicated by the third indication information is a voice call function
  • the electronic device can find out from multiple hardware interfaces that the electronic device has the ability to implement language calls based on the relevant information of the multiple hardware interfaces.
  • the functional hardware interface for example, the mobile communication interface of the electronic device can be found from multiple hardware interfaces.
  • the function of the hardware interface indicated by the third indication information is the function of displaying an image on the screen
  • the electronic device can find out from the multiple hardware interfaces the The hardware interface that can realize the function of displaying images on the screen, for example, the screen display interface of the electronic device can be found from multiple hardware interfaces.
  • the function of the hardware interface indicated by the third indication information is a sound playback function
  • the electronic device can find out from the multiple hardware interfaces that the electronic device has the function of sound playback according to the related information of the multiple hardware interfaces.
  • the functional hardware interface for example, the speaker interface and earphone interface of the electronic device can be found from multiple hardware interfaces.
  • the function of the hardware interface indicated by the third indication information is the positioning function
  • the electronic device can find out from the multiple hardware interfaces the functions of the electronic device that can realize the positioning function according to the related information of the multiple hardware interfaces.
  • the hardware interface for example, the positioning interface of the electronic device can be found from multiple hardware interfaces.
  • the function of the hardware interface indicated by the third indication information is a wireless communication function
  • the electronic device can find out from the multiple hardware interfaces that the electronic device has the wireless communication function according to the related information of the multiple hardware interfaces.
  • the functional hardware interface for example, the Bluetooth interface of the electronic device can be found from multiple hardware interfaces.
  • the function of the hardware interface indicated by the third indication information is the shooting function
  • the electronic device can find out from the multiple hardware interfaces the functions of the electronic device that can realize the shooting function according to the related information of the multiple hardware interfaces.
  • the hardware interface for example, the front camera interface and the rear camera interface of the electronic device can be found from multiple hardware interfaces.
  • the electronic device can find at least one third hardware interface from the multiple hardware interfaces according to the related information of the multiple hardware interfaces, and the at least one third hardware interface and the third indication information The indicated third type matches.
  • the at least one third hardware interface matches the third type indicated by the third indication information, which may mean that the type of the at least one third hardware interface is the same as the third type, or that the at least one The functions that the third hardware interface can implement match the third type.
  • the third indication information indicates a mobile communication interface
  • the electronic device can find the mobile communication interface of the electronic device from the multiple hardware interfaces according to the related information of the multiple hardware interfaces, or from the multiple hardware interfaces Find the hardware interface of the electronic device that can realize the language call function.
  • the third indication information indicates the screen display interface
  • the electronic device can find the screen display interface of the electronic device from the multiple hardware interfaces according to the related information of the multiple hardware interfaces, or from the multiple hardware interfaces Find the hardware interface of the electronic device that can realize the function of displaying images on the screen.
  • the third indication information indicates a speaker interface
  • the electronic device can find the speaker interface of the electronic device from the multiple hardware interfaces according to the related information of the multiple hardware interfaces, or find from the multiple hardware interfaces The hardware interface of the electronic device that can realize the sound playback function.
  • the third indication information indicates a headphone interface
  • the electronic device can find the headphone interface of the electronic device from the multiple hardware interfaces according to the related information of the multiple hardware interfaces, or find from the multiple hardware interfaces The hardware interface of the electronic device that can realize the sound playback function.
  • the third indication information indicates the positioning interface
  • the electronic device can find the positioning interface of the electronic device from the multiple hardware interfaces according to the related information of the multiple hardware interfaces, or find from the multiple hardware interfaces The hardware interface of the electronic device that can realize the positioning function.
  • the third indication information indicates the Bluetooth interface
  • the electronic device can find the Bluetooth interface of the electronic device from the multiple hardware interfaces according to the related information of the multiple hardware interfaces, or find from the multiple hardware interfaces The hardware interface of the electronic device that can realize the wireless communication function.
  • the third indication information indicates the front camera interface
  • the electronic device can find the front camera interface of the electronic device from the multiple hardware interfaces according to the related information of the multiple hardware interfaces, or from multiple hardware interfaces. Find the hardware interface of the electronic device that can realize the shooting function in the hardware interface.
  • determining at least one third hardware interface of the electronic device from a plurality of hardware interfaces includes: determining, according to the type of the electronic device, the A third set of hardware interfaces matching the type of the electronic device, where the multiple hardware interfaces include hardware interfaces in the third set of hardware interfaces; according to the third indication information, determine at least from the third set of hardware interfaces A third hardware interface.
  • the third hardware interface set matches the type of the electronic device, which may mean that the third hardware interface set includes part or all of the hardware interfaces of the electronic device, and does not include hardware interfaces that the electronic device does not have.
  • the third hardware interface set does not include hardware interfaces that the electronic device does not have.
  • the third hardware interface set may include hardware interfaces of other types of electronic devices. For example, if the third hardware interface matches the mobile phone, then the hardware interfaces in the third hardware interface set are all the hardware interfaces of the mobile phone, and the third hardware interface set will not include hardware interfaces that are not the mobile phone, for example, it will not include the hardware interfaces of the watch. , It will not include the hardware interface of the TV.
  • hardware interface 1, hardware interface 2, hardware interface 3, and hardware interface 4 in hardware interface set 901 are all hardware interfaces of electronic device 1, and hardware interface 5, hardware interface in hardware interface set 902 6.
  • the hardware interface 7 is the hardware interface of the electronic device 2.
  • the electronic device is a watch, and the electronic device can determine a third hardware interface set from a plurality of hardware interface sets according to the type of the electronic device, and the hardware interfaces in the third hardware interface set are all made by the electronic device.
  • Hardware interface; the function of the hardware interface indicated by the third indication information is the voice call function, and the electronic device can determine the hardware interface that can realize the language call function from the third hardware interface set according to the third indication information, or from the third The mobile communication interface is determined in the hardware interface set.
  • the electronic device is a watch, and the electronic device can determine a third hardware interface set from a plurality of hardware interface sets according to the type of the electronic device, and the hardware interfaces in the third hardware interface set are all made by the electronic device.
  • the electronic device is a watch, and the electronic device can determine a third hardware interface set from a plurality of hardware interface sets according to the type of the electronic device, and the hardware interfaces in the third hardware interface set are all made by the electronic device.
  • Hardware interface; the function of the hardware interface indicated by the third instruction information is the sound playback function; the electronic device can determine the hardware interface that can realize the sound playback function from the third hardware interface set according to the third instruction information, or from the third The speaker interface and headphone interface are determined in the hardware interface set.
  • the electronic device is a watch, and the electronic device can determine a third hardware interface set from a plurality of hardware interface sets according to the type of the electronic device, and the hardware interfaces in the third hardware interface set are all made by the electronic device.
  • Hardware interface; the function of the hardware interface indicated by the third indication information is the positioning function; the electronic device can determine the hardware interface that can realize the positioning function from the third hardware interface set according to the third indication information, or from the third hardware interface Determine the positioning interface in the collection.
  • the electronic device is a watch, and the electronic device can determine a third hardware interface set from a plurality of hardware interface sets according to the type of the electronic device, and the hardware interfaces in the third hardware interface set are all made by the electronic device.
  • Hardware interface; the function of the hardware interface indicated by the third indication information is a wireless communication function; the electronic device can determine a hardware interface that can realize the wireless communication function from the third hardware interface set according to the third indication information, or from the third The Bluetooth interface is determined in the hardware interface set.
  • the electronic device is a watch, and the electronic device can determine a third hardware interface set from a plurality of hardware interface sets according to the type of the electronic device, and the hardware interfaces in the third hardware interface set are all made by the electronic device.
  • Hardware interface; the function of the hardware interface indicated by the third instruction information is the shooting function; the electronic device can determine the hardware interface that can realize the shooting function from the third hardware interface set according to the third instruction information, or from the third hardware interface
  • the front camera interface and the rear camera interface are determined in the collection.
  • the electronic device is a watch, and the electronic device can determine a third hardware interface set from a plurality of hardware interface sets according to the type of the electronic device, and the hardware interfaces in the third hardware interface set are all made by the electronic device.
  • the third instruction information indicates the mobile communication interface.
  • the electronic device can determine the mobile communication interface from the third hardware interface set according to the third instruction information, or determine the mobile communication interface from the third hardware interface set that can realize the language call function Hardware interface.
  • the electronic device is a watch, and the electronic device can determine a third hardware interface set from a plurality of hardware interface sets according to the type of the electronic device, and the hardware interfaces in the third hardware interface set are all made by the electronic device.
  • the electronic device is a watch, and the electronic device can determine a third hardware interface set from a plurality of hardware interface sets according to the type of the electronic device, and the hardware interfaces in the third hardware interface set are all made by the electronic device.
  • the electronic device is a watch, and the electronic device can determine a third hardware interface set from a plurality of hardware interface sets according to the type of the electronic device, and the hardware interfaces in the third hardware interface set are all made by the electronic device.
  • the third indication information indicates the headphone interface; the electronic device can determine the headphone interface from the third hardware interface set according to the third indication information, or determine the hardware interface that can realize the sound playback function from the third hardware interface set .
  • the electronic device is a watch, and the electronic device can determine a third hardware interface set from a plurality of hardware interface sets according to the type of the electronic device, and the hardware interfaces in the third hardware interface set are all made by the electronic device.
  • the third instruction information indicates the positioning interface; the electronic device can determine the positioning interface from the third hardware interface set or determine the hardware interface that can implement the positioning function from the third hardware interface set according to the third instruction information.
  • the electronic device is a watch, and the electronic device can determine a third hardware interface set from a plurality of hardware interface sets according to the type of the electronic device, and the hardware interfaces in the third hardware interface set are all made by the electronic device.
  • the third instruction information indicates Bluetooth; the electronic device can determine the Bluetooth interface from the third hardware interface set, or determine the hardware interface that can realize the wireless communication function from the third hardware interface set according to the third instruction information.
  • the electronic device is a watch, and the electronic device can determine a third hardware interface set from a plurality of hardware interface sets according to the type of the electronic device, and the hardware interfaces in the third hardware interface set are all made by the electronic device.
  • step 803 For the specific implementation of step 803, refer to step 403 in the embodiment shown in FIG. 4, which is not repeated here.
  • the method further includes: reading fourth indication information in the code of the fourth application, the fourth function of the hardware interface that the fourth application needs to call; In the case of hardware interfaces that match the four functions, the preset target interface is called, or alarm information is presented.
  • the method further includes: reading fourth indication information in the code of the fourth application, the fourth type of hardware interface that the fourth application needs to call; In the case of hardware interfaces that match the four types, the preset target interface is called, or alarm information is presented.
  • the preset target interface can be a virtual interface or a physical interface.
  • the electronic device is a watch
  • the second indication information indicates to call the USB interface
  • the watch does not have a USB interface.
  • the electronic device can call the earphone interface for charging, and the earphone interface is the target interface. Since the electronic device can call the target interface, it will not get the call feedback result that the electronic device cannot call the USB interface, and it will not cause the second application to fail because the electronic device does not have a USB interface (such as the second application crashing or infinite Cycle error).
  • the electronic device is a TV
  • the second indication information indicates to call a mobile communication interface
  • the TV does not have a mobile communication interface.
  • the electronic device can call a preset virtual interface. Since the electronic device can call the target interface, it will not get the call feedback result that the electronic device cannot call the mobile communication interface, and it will not cause the second application to fail because the electronic device does not have a mobile communication interface (for example, the second application crashes. Or an infinite loop error).
  • the warning information may be, for example, displaying symbols such as " ⁇ " on the screen.
  • the presented alarm information may be determined according to the type or function of the second hardware interface set indicated by the second indication information.
  • the type of the second hardware interface set is a mobile communication interface
  • the displayed alarm information may be "the machine does not have the voice call function”.
  • the type of the second hardware interface set is a fingerprint identification interface
  • the displayed alarm information may be "fingerprint information cannot be obtained”.
  • the type of the second hardware interface set is a positioning interface
  • the displayed alarm information may be "cannot obtain current location information, whether to manually input current location information".
  • the type of the second hardware interface set is a Bluetooth interface
  • the displayed alarm information may be "No Bluetooth device connectable”.
  • the type of the second hardware interface set is the front camera interface
  • the presented warning information may be "An error occurred when calling the front camera, whether to call the rear camera".
  • the third indication information further includes information indicating the version number of the interface that the third application needs to call.
  • FIG. 10 is a block diagram of the software structure of the electronic device 100 according to an embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface.
  • the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and the system library.
  • each layer in the software architecture can call the hardware layer through the hardware interface layer, and the hardware layer may include multiple pieces of hardware in FIG. 1.
  • the application layer, the application framework layer, the Android runtime, the system library, and the hardware layer can refer to the example shown in FIG. 2 and will not be repeated here.
  • a hardware interface layer may also be included between the system layer and the hardware layer.
  • the hardware interface layer includes hardware interfaces of multiple electronic devices, and each hardware interface can drive the hardware of one electronic device. For example, it includes a mobile phone interface for driving a display screen, a watch interface for driving a display screen, a TV interface for driving a display screen, and a mobile phone interface for driving a camera.
  • the processor or chip inside the electronic device When the processor or chip inside the electronic device reads the code of the application program layer, application framework layer, Android runtime, and system library, it can find the hardware interface that the electronic device can call through the hardware interface layer, so as to drive the hardware layer Hardware, and perform the corresponding operations.
  • the hardware interface layer includes the hardware that can be called by the mobile phone, the hardware that can be called by the watch, and the hardware that can be called by the TV.
  • the mobile phone can find the hardware interface that the mobile phone can call in the hardware interface layer to drive the hardware in the hardware layer and execute The corresponding operation.
  • FIG. 11 shows a block diagram of the internal structure of the hardware interface layer.
  • the hardware interface layer may include a hardware interface proxy layer, a hardware interface adaptation layer, and a hardware interface access control layer.
  • the hardware interface proxy layer may include authority control, which is used to confirm whether the hardware interface access request is safe, and can also be used to confirm whether the access object has the authority to access the hardware interface.
  • authority control which is used to confirm whether the hardware interface access request is safe, and can also be used to confirm whether the access object has the authority to access the hardware interface.
  • the hardware interface agent layer can realize safe and reasonable access to the hardware interface layer.
  • the hardware interface adaptation layer includes multiple hardware interfaces.
  • the hardware interface can implement hardware calls through code, so the code can be used to define the hardware interface.
  • a hardware interface definition language HDL
  • the HIDL language can be used to call the code in the java format to implement the call of the hardware interface.
  • the hardware interface adaptation layer includes the multiple hardware interfaces, and the functions that the multiple hardware interfaces can implement are different from each other.
  • Figure 11 shows an example in which the hardware interface adaptation layer includes multiple different types of hardware interfaces.
  • the hardware interface adaptation layer includes a type 1 hardware interface and a type 2 hardware interface.
  • Multiple hardware interfaces in the hardware interface adaptation layer are virtual interfaces.
  • the multiple hardware interfaces in the hardware interface adaptation layer may be used to represent at least one of the above-mentioned first hardware interface set, second hardware interface set, third hardware interface set, and fourth hardware interface set.
  • the hardware interface access control layer is used to determine the hardware interface that the electronic device can call or perform preset operations according to the calling situation of the hardware interface in the hardware interface adaptation layer.
  • the electronic device may include a software module or a hard-wired module for identifying the type of the device. For example, the electronic device can call the hardware of the electronic device or determine the hardware interface of the electronic device by using the version number, model, etc. of the electronic device.
  • the electronic device may include a software module or a hard-wired module for identifying the type of hardware. For example, the electronic device can identify the type of the chip, so as to call the hardware including the chip, or determine the hardware interface of the hardware including the chip. For another example, the electronic device can identify the version number or model of the hardware to determine whether to call the hardware or determine the hardware interface of the hardware.
  • Each hardware interface in the hardware interface adaptation layer has a corresponding relationship with the hardware interfaces of at least two electronic devices.
  • the type 1 hardware interface has a corresponding relationship with the hardware interface 1, the hardware interface 2 of the device 2, and the hardware interface 3 of the device 3.
  • the type 2 hardware interface has a corresponding relationship with the hardware interface 4 of the device 1 and the hardware interface 5 of the device 2.
  • the device 1 can call the hardware interface 1 according to the instruction information.
  • the device 3 can call a preset target interface or present alarm information.
  • the multiple hardware interfaces in the hardware interface access control layer can be used to represent multiple hardware interfaces in the above hardware interface set.
  • the hardware interface access control layer can drive the hardware in the hardware layer to perform corresponding operations according to the code in the application program.
  • FIG. 12 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application.
  • the electronic device 1200 shown in FIG. 12 includes a memory 1201, a processor 1202, a communication interface 1203, and a bus 1204.
  • the memory 1201, the processor 1202, and the communication interface 1203 implement communication connections between each other through the bus 1204.
  • the memory 1201 may be a read only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM).
  • the memory 1201 may store a program.
  • the processor 1202 is configured to execute each step of the image processing method shown in FIG. 4, 7 or 8 in the embodiment of the present application.
  • the processor 1202 may adopt a general central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), a graphics processing unit (GPU), or one or more
  • the integrated circuit is used to execute related programs to implement the image processing method shown in FIG. 4, 7 or 8 in the embodiment of the present application.
  • the processor 1202 may also be an integrated circuit chip with signal processing capability.
  • each step of the image processing method shown in FIG. 4, 7 or 8 in the embodiment of the present application can be completed by an integrated logic circuit of hardware in the processor 1202 or instructions in the form of software.
  • the above-mentioned processor 1202 may also be a general-purpose processor, a digital signal processing (digital signal processing, DSP), an application-specific integrated circuit (ASIC), an off-the-shelf programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, Discrete gates or transistor logic devices, discrete hardware components.
  • DSP digital signal processing
  • ASIC application-specific integrated circuit
  • FPGA field programmable gate array
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a mature storage medium in the field, such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, registers.
  • the storage medium is located in the memory 1201, and the processor 1202 reads the information in the memory 1201, and combines its hardware to complete the functions required by the units included in the electronic device of the embodiment of the present application, or executes Figures 4 and 7 in the embodiment of the present application. Or the image processing method shown in 8.
  • the communication interface 1203 uses a transceiving device such as but not limited to a transceiver to implement communication between the electronic device 1200 and other devices or a communication network.
  • a transceiving device such as but not limited to a transceiver to implement communication between the electronic device 1200 and other devices or a communication network.
  • the information of the neural network to be constructed and the training data required in the process of constructing the neural network can be obtained through the communication interface 1203 (the image to be processed in the embodiment shown in FIG. 4, 7 or 8).
  • the bus 1204 may include a path for transferring information between various components of the electronic device 1200 (for example, the memory 1201, the processor 1202, and the communication interface 1203).
  • the acquisition module in the electronic device may be equivalent to the communication interface 1203 in the electronic device 1200; the processing module in the electronic device may be equivalent to the processor 1202.
  • the disclosed system, device, and method may be implemented in other ways.
  • the device embodiments described above are merely illustrative, for example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or It can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of the present application essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disks or optical disks and other media that can store program codes. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

La présente invention concerne un procédé d'appel d'une interface matérielle et un dispositif électronique dans le domaine des dispositifs électroniques. Le procédé d'appel d'une interface matérielle consiste : à lire des premières informations d'indication dans un code d'une première application, les premières informations d'indication étant utilisées pour indiquer des informations associées d'un premier ensemble d'interfaces matérielles, le premier ensemble d'interfaces matérielles comprenant des interfaces matérielles d'une pluralité de dispositifs électroniques, et deux interfaces matérielles quelconques dans le premier ensemble d'interfaces matérielles étant du même type, ou une partie ou la totalité des fonctions de deux interfaces matérielles quelconques dans le premier ensemble d'interfaces matérielles étant les mêmes ; à déterminer au moins une première interface matérielle du dispositif électronique à partir du premier ensemble d'interfaces matérielles en fonction des premières informations d'indication ; et à appeler au moins une première interface matérielle. La présente invention concerne un procédé d'appel d'une interface matérielle et un dispositif électronique, et vise à aider les développeurs d'application à développer des programmes d'application.
PCT/CN2020/102280 2019-09-18 2020-07-16 Procédé d'appel d'interface matérielle et dispositif électronique Ceased WO2021051982A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910883684.7A CN110780929B (zh) 2019-09-18 2019-09-18 调用硬件接口的方法及电子设备
CN201910883684.7 2019-09-18

Publications (1)

Publication Number Publication Date
WO2021051982A1 true WO2021051982A1 (fr) 2021-03-25

Family

ID=69383794

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/102280 Ceased WO2021051982A1 (fr) 2019-09-18 2020-07-16 Procédé d'appel d'interface matérielle et dispositif électronique

Country Status (2)

Country Link
CN (2) CN110780929B (fr)
WO (1) WO2021051982A1 (fr)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110780929B (zh) * 2019-09-18 2024-05-03 华为技术有限公司 调用硬件接口的方法及电子设备
CN111813724B (zh) * 2020-05-20 2023-06-30 北京元心科技有限公司 Hidl接口适配系统、方法及相应设备、存储介质
CN111918135B (zh) * 2020-06-23 2024-11-15 青岛海尔多媒体有限公司 用于配置参数校验的方法及装置、电视机
CN113312103A (zh) * 2021-05-31 2021-08-27 浙江商汤科技开发有限公司 智能摄像机的软件定义方法及装置、电子设备和存储介质
CN114817115A (zh) * 2022-05-20 2022-07-29 深圳市广和通无线通信软件有限公司 串口通信方法及相关装置
CN119851368B (zh) * 2025-01-10 2025-12-26 重庆长安科技有限责任公司 图像数据处理方法、装置、车载设备、存储介质及产品

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103164207A (zh) * 2011-12-16 2013-06-19 深圳市快播科技有限公司 基于安卓系统的跨硬件平台的应用程序开发方法和系统
US8918841B2 (en) * 2011-08-31 2014-12-23 At&T Intellectual Property I, L.P. Hardware interface access control for mobile applications
CN105224489A (zh) * 2015-11-12 2016-01-06 南威软件股份有限公司 一种硬件设备的集成管理系统
CN106649164A (zh) * 2016-12-29 2017-05-10 南威软件股份有限公司 一种硬件接口管理方法
CN108415856A (zh) * 2018-02-08 2018-08-17 广东欧珀移动通信有限公司 设备兼容方法及相关装置
CN110780929A (zh) * 2019-09-18 2020-02-11 华为技术有限公司 调用硬件接口的方法及电子设备

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103984540A (zh) * 2014-04-14 2014-08-13 美的集团股份有限公司 生成硬件接口运行程序的方法及装置
CN104281455A (zh) * 2014-10-11 2015-01-14 北京金山安全软件有限公司 一种接口调用方法、装置及终端
CN104615410A (zh) * 2015-01-22 2015-05-13 北京彩云动力教育科技有限公司 一种多类型硬件接口指令处理方法及系统
CN104866383B (zh) * 2015-05-29 2018-11-23 北京金山安全软件有限公司 一种接口调用方法、装置及终端
US20180095605A1 (en) * 2016-09-30 2018-04-05 International Business Machines Corporation Generating a Mixed reality Interface to Expose Object Functionality
CN108415863A (zh) * 2018-02-01 2018-08-17 广东欧珀移动通信有限公司 电子装置的硬件兼容实现方法及相关产品
CN108829379B (zh) * 2018-05-31 2021-09-10 天津大学 一种多硬件接口通讯协议软件按需自动生成方法
CN109684103A (zh) * 2018-12-17 2019-04-26 上海曼恒数字技术股份有限公司 一种接口调用方法、装置、服务器及存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8918841B2 (en) * 2011-08-31 2014-12-23 At&T Intellectual Property I, L.P. Hardware interface access control for mobile applications
CN103164207A (zh) * 2011-12-16 2013-06-19 深圳市快播科技有限公司 基于安卓系统的跨硬件平台的应用程序开发方法和系统
CN105224489A (zh) * 2015-11-12 2016-01-06 南威软件股份有限公司 一种硬件设备的集成管理系统
CN106649164A (zh) * 2016-12-29 2017-05-10 南威软件股份有限公司 一种硬件接口管理方法
CN108415856A (zh) * 2018-02-08 2018-08-17 广东欧珀移动通信有限公司 设备兼容方法及相关装置
CN110780929A (zh) * 2019-09-18 2020-02-11 华为技术有限公司 调用硬件接口的方法及电子设备

Also Published As

Publication number Publication date
CN112214294B (zh) 2022-01-14
CN110780929B (zh) 2024-05-03
CN110780929A (zh) 2020-02-11
CN112214294A (zh) 2021-01-12

Similar Documents

Publication Publication Date Title
CN109814766B (zh) 一种应用显示方法及电子设备
WO2020259452A1 (fr) Procédé d'affichage plein écran pour terminal mobile et appareil
WO2021213164A1 (fr) Procédé d'interaction entre des interfaces d'application, dispositif électronique et support de stockage lisible par ordinateur
CN113994317A (zh) 一种用户界面布局方法及电子设备
WO2021051982A1 (fr) Procédé d'appel d'interface matérielle et dispositif électronique
WO2021036735A1 (fr) Procédé d'affichage d'interface utilisateur et dispositif électronique
WO2021249053A1 (fr) Procédé de traitement d'image et appareil associé
WO2021063237A1 (fr) Procédé de commande de dispositif électronique et dispositif électronique
WO2020093988A1 (fr) Procédé de traitement d'image et dispositif électronique
WO2020173370A1 (fr) Procédé pour déplacer des icônes d'applications et dispositif électronique
WO2022068483A1 (fr) Procédé et appareil de démarrage d'application, et dispositif électronique
WO2021036770A1 (fr) Procédé de traitement d'écran partagé et dispositif terminal
CN114553814B (zh) 处理推送消息的方法和装置
WO2021159746A1 (fr) Procédé et système de partage de fichiers et dispositif associé
WO2021190524A1 (fr) Procédé de traitement de capture d'écran, interface utilisateur graphique et terminal
EP4224298A1 (fr) Procédé d'affichage d'écran et dispositif électronique
CN112437341B (zh) 一种视频流处理方法及电子设备
WO2021057203A1 (fr) Procédé d'opération et dispositif électronique
WO2022095744A1 (fr) Procédé de commande d'affichage vr, dispositif électronique et support de stockage lisible par ordinateur
WO2021052311A1 (fr) Procédé d'affichage d'une interface utilisateur en fonction de la couleur d'un boîtier arrière, et dispositif électronique
WO2022143180A1 (fr) Procédé d'affichage collaboratif, dispositif terminal et support de stockage lisible par ordinateur
WO2022022381A1 (fr) Procédé et appareil de génération de motifs graffitis, dispositif électronique et support de stockage
WO2024109481A1 (fr) Procédé de commande de fenêtre et dispositif électronique
CN115480849A (zh) 用户界面布局方法及相关设备
WO2024152910A1 (fr) Procédé d'enregistrement vidéo et dispositif électronique

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: 20865275

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20865275

Country of ref document: EP

Kind code of ref document: A1