Abstract:
A method includes: obtaining a refresh request of an application, where the refresh request is used to instruct to refresh display data of the application; transferring the refresh request to a display daemon by using a render thread of the application; when communication duration between the render thread and the display daemon is greater than a first time threshold, determining that an exception occurs in the render thread; and when duration in which the display daemon processes the refresh request is greater than a second time threshold, determining that an exception occurs in the display daemon.
Abstract:
A method includes: obtaining a refresh request of an application, where the refresh request is used to instruct to refresh display data of the application; transferring the refresh request to a display daemon by using a render thread of the application; when communication duration between the render thread and the display daemon is greater than a first time threshold, determining that an exception occurs in the render thread; and when duration in which the display daemon processes the refresh request is greater than a second time threshold, determining that an exception occurs in the display daemon.
Abstract:
A processing method and an apparatus, applied to the process of Binder communication, to resolve a problem that a normal communication service of an Android system is affected due to Binder thread exhaustion. The processing method comprises: when a. quantity of application threads in an application process of an application is greater than or equal to a first threshold, determining a quantity of Binder threads, the Binder threads are occupied by the application process, the application process is in each interface in a system server process (S301), wherein one application thread in the application process corresponds to one Binder thread in the system server process; and keeping a quantity of Binder threads not greater than a second threshold, the Binder threads are occupied by the application process, the application process is in at least one interface in the system server process (S302).
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.
Abstract:
A display method includes a terminal that detects a first trigger event, and determines, based on the first trigger event, that a first application is in a large-screen display mode. The terminal obtains an internal element of a control on a first user interface. The terminal determines a scaling size of the element, and determines a layout of the internal element of the control based on the scaling size of the element and a screen size in the large-screen display mode. The terminal draws a second user interface based on the scaling size of the element and the layout of the internal element of the control, and displays the second user interface.
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.
Abstract:
A method and a system for displaying corresponding icons of application programs, and a terminal in which the method for displaying corresponding icons of application programs includes recording data that is generated in a process in which application programs stored in the terminal are used, to generate related usage data of the application programs, storing the generated related usage data, calculating, according to the related usage data, priorities of the application programs, sorting the application programs according to the calculated priorities of the application programs, and displaying, according to a predetermined rule in a preset area on a desktop of the terminal, icons of a preset quantity of application programs ranking top.