Cross-language compilation method and device

    公开(公告)号:US12061885B2

    公开(公告)日:2024-08-13

    申请号:US17484504

    申请日:2021-09-24

    CPC classification number: G06F8/51 G06F8/315 G06F8/434 G06F9/4552

    Abstract: A compilation method includes obtaining a source program code. The source program code includes a first function in a first language code and a second function in a second language code. The first language code is a native language. The second language code is a non-native language. The method also includes generating a third language code based on the source program code. The third language code includes a third function, a fourth function and a fifth function. The third function is generated based on the first function. The fourth function is generated based on the second function. The fifth function is generated based on the first function and the second function. Executing the third function invokes the fourth function via the fifth function.

    Application Icon Moving Method and Electronic Device

    公开(公告)号:US20220197482A1

    公开(公告)日:2022-06-23

    申请号:US17432801

    申请日:2020-02-20

    Abstract: An application icon moving method and an electronic device, where after a first application is installed in the electronic device, the electronic device displays an interface including an icon of the first application, when receiving a second operation from a user on the icon of the first application, the electronic device displays a management menu around the icon of the first application, where the management menu includes one or more of an identifier of a sub-screen of a home screen of the electronic device or an identifier of a folder included in a sub-screen. The electronic device receives a third operation from the user on a first identifier included in the management menu, and move, in response to the third operation, the icon of the first application to a sub-screen or a folder corresponding to the first identifier.

    System service timeout processing method, and apparatus

    公开(公告)号:US11693701B2

    公开(公告)日:2023-07-04

    申请号:US16651909

    申请日:2017-09-30

    CPC classification number: G06F9/5022 G06F9/4812 G06F9/5083

    Abstract: Embodiments of this application relate to the field of communications technologies, and provide a system service timeout processing method and an apparatus. The method includes: when a target system service thread in at least one system service thread times out, determining, by a terminal, a first application process communicating with the target system service thread, where the timeout of the target system service thread includes at least one of the following: a locked object occupied by the target system service thread is not released within a preset time, and the target system service thread is blocked; and ending, by the terminal, the first application process.

    Application icon moving method and electronic device

    公开(公告)号:US11474664B2

    公开(公告)日:2022-10-18

    申请号:US17432801

    申请日:2020-02-20

    Abstract: An application icon moving method and an electronic device, where after a first application is installed in the electronic device, the electronic device displays an interface including an icon of the first application, when receiving a second operation from a user on the icon of the first application, the electronic device displays a management menu around the icon of the first application, where the management menu includes one or more of an identifier of a sub-screen of a home screen of the electronic device or an identifier of a folder included in a sub-screen. The electronic device receives a third operation from the user on a first identifier included in the management menu, and move, in response to the third operation, the icon of the first application to a sub-screen or a folder corresponding to the first identifier.

    Memory reclaiming method and apparatus

    公开(公告)号:US10901890B2

    公开(公告)日:2021-01-26

    申请号:US16171304

    申请日:2018-10-25

    Inventor: Junmin Zhao

    Abstract: Example memory reclaiming methods and apparatuses are provided to resolve a problem that application data is lost and a restart speed of an application becomes slower in a manner of reclaiming a memory by killing the application. One example memory reclaiming method includes determining an application program that occupies a to-be-reclaimed memory and selecting at least one virtual address space segment according to a running state of the application program. A virtual address space that is in the selected at least one virtual address space segment and that is occupied by the application program is reclaimed. The application program is not directly killed, but instead, only a memory occupied by application data that can be cleared in the running state is reclaimed according to the running state of the application program. Therefore, less application data is lost.

    System Service Timeout Processing Method, and Apparatus

    公开(公告)号:US20200264933A1

    公开(公告)日:2020-08-20

    申请号:US16651909

    申请日:2017-09-30

    Abstract: Embodiments of this application relate to the field of communications technologies, and provide a system service timeout processing method and an apparatus. The method includes: when a target system service thread in at least one system service thread times out, determining, by a terminal, a first application process communicating with the target system service thread, where the timeout of the target system service thread includes at least one of the following: a locked object occupied by the target system service thread is not released within a preset time, and the target system service thread is blocked; and ending, by the terminal, the first application process.

    Touch event processing method and apparatus, and terminal device

    公开(公告)号:US10379671B2

    公开(公告)日:2019-08-13

    申请号:US15559401

    申请日:2015-03-19

    Abstract: According to a touch event processing method and apparatus, and a terminal device, if a multi-point touch event that is not processed and that is to be discarded exists, and an application program running in a foreground is a key application program, touch points falling within a target control response area of the application program running in the foreground are determined in touch points of the multi-point touch event. Then, a new touch event is obtained according to the touch points falling within the target control response area, and the new touch event is re-transferred to the application program running in the foreground, so that the application program running in the foreground responds to the new touch event. This resolves a problem that, in some scenarios, a touchscreen does not respond to a touch operation performed by a user.

    TOUCH EVENT PROCESSING METHOD AND APPARATUS, AND TERMINAL DEVICE

    公开(公告)号:US20180088731A1

    公开(公告)日:2018-03-29

    申请号:US15559401

    申请日:2015-03-19

    Abstract: According to a touch event processing method and apparatus, and a terminal device, if a multi-point touch event that is not processed and that is to be discarded exists, and an application program running in a foreground is a key application program, touch points falling within a target control response area of the application program running in the foreground are determined in touch points of the multi-point touch event. Then, a new touch event is obtained according to the touch points falling within the target control response area, and the new touch event is re-transferred to the application program running in the foreground, so that the application program running in the foreground responds to the new touch event. This resolves a problem that, in some scenarios, a touchscreen does not respond to a touch operation performed by a user.

Patent Agency Ranking