WO2020206664A1 - 窗口显示方法、装置、电子设备及存储介质 - Google Patents

窗口显示方法、装置、电子设备及存储介质 Download PDF

Info

Publication number
WO2020206664A1
WO2020206664A1 PCT/CN2019/082336 CN2019082336W WO2020206664A1 WO 2020206664 A1 WO2020206664 A1 WO 2020206664A1 CN 2019082336 W CN2019082336 W CN 2019082336W WO 2020206664 A1 WO2020206664 A1 WO 2020206664A1
Authority
WO
WIPO (PCT)
Prior art keywords
shutdown
window
display
currently
window display
Prior art date
Application number
PCT/CN2019/082336
Other languages
English (en)
French (fr)
Inventor
吴汝煜
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
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 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to PCT/CN2019/082336 priority Critical patent/WO2020206664A1/zh
Priority to CN201980089429.3A priority patent/CN113302590B/zh
Publication of WO2020206664A1 publication Critical patent/WO2020206664A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Definitions

  • This application relates to the technical field of electronic equipment, and more specifically, to a window display method, device, electronic equipment, and storage medium.
  • the interface display in the electronic device flashes first, and then the shutdown animation appears, presenting the illusion that the shutdown function is not triggered immediately, which affects the use experience of the electronic device.
  • this application proposes a window display method, device, electronic equipment and storage medium to improve the above problems.
  • an embodiment of the present application provides a window display method.
  • the method includes: receiving a window display instruction; determining whether it is currently in a shutdown processing state; if it is determined that it is currently in a shutdown processing state, prohibiting window display.
  • an embodiment of the present application provides a window display device.
  • the device includes: an instruction receiving module for receiving a window display instruction; a judging module for judging whether it is currently in a shutdown processing state; a display processing module for If it is determined that it is currently in the shutdown processing state, the display of the window is prohibited.
  • an embodiment of the present application provides an electronic device, including: one or more processors; a memory; and one or more programs.
  • the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the aforementioned method.
  • an embodiment of the present application provides a computer-readable storage medium in which program code is stored, and the program code can be invoked by a processor to execute the above-mentioned method.
  • the window display method, device, electronic device, and storage medium provided by the embodiments of the present application determine whether it is currently in a shutdown processing state when a window display instruction is received. If it is currently in the shutdown processing state, the display of the window is prohibited, so as to avoid flashing the display interface before the shutdown animation is displayed.
  • Fig. 1 shows a display switching diagram provided by an embodiment of the present application.
  • Fig. 2 shows a flowchart of a window display method provided by an embodiment of the present application.
  • Fig. 3 shows a flowchart of a window display method provided by another embodiment of the present application.
  • Fig. 4 shows a flowchart of a window display method provided by another embodiment of the present application.
  • Fig. 5 shows a functional module diagram of a window display device provided by an embodiment of the present application.
  • Fig. 6 shows a structural block diagram of an electronic device provided by an embodiment of the present application.
  • Fig. 7 is a storage unit for storing or carrying program code for implementing the window display method according to the embodiment of the present application.
  • the electronic device has insufficient power to trigger the shutdown, the electronic device receives a shutdown button (such as the power button) to trigger the shutdown, and the shutdown virtual button in the system setting interface of the electronic device receives Touch to trigger shutdown, the system settings interface receives a factory reset command to trigger shutdown, etc.
  • a shutdown button such as the power button
  • the shutdown virtual button in the system setting interface of the electronic device receives Touch to trigger shutdown
  • the system settings interface receives a factory reset command to trigger shutdown, etc.
  • the window management service (WindowManagerService, WMS)
  • the window of the Activity component is displayed, and resources such as focus and screen are switched from the previous activated Activity component to the next activated Activity component, that is, WMS sets the window of the previously activated Activity component to invisible and sets the newly activated Activity
  • the window of the component is set to be visible.
  • the AMS module is responsible for the startup and exit of an interface, among which the corresponding concept is activity
  • the WMS module is responsible for the display and destruction of an interface, among which the corresponding concept is window.
  • an application Application, APP
  • AMS will respond to this request, destroy the corresponding activity a, and start a new activity b.
  • WMS will also destroy the corresponding window (window) a, displaying the new The window b, as shown in Figure 1. What is presented on the screen is to consume the interface Surface corresponding to window a on the screen, and display the interface corresponding to window b on the screen.
  • the next interface is an interface corresponding to the newly activated activity, and which activity the newly activated activity is specifically determined according to the switching settings of the activity by the system of the electronic device, and will not be repeated here.
  • the shutdown animation is displayed, and other display interfaces in the electronic device are no longer displayed. For example, if you reset the factory settings in the system setting interface, the shutdown animation should be displayed directly instead of displaying the next interface after the system setting interface is destroyed.
  • the inventor carefully analyzed the interface display of the electronic device system and the shutdown process, and found that when the electronic device is turned off, some interfaces in the electronic device will flash before the shutdown animation is displayed. The reason is that the electronic device system is shut down. When triggered, the electronic device destroys the currently displayed window and displays the next window. However, the normal interface display part of the electronic device is not related to the shutdown animation display part. When the WMS currently displays a new window, it will directly display the new window regardless of whether the shutdown animation is displayed. Although the window is normal, the shutdown animation appears relatively quickly, the shutdown animation is displayed before the new window is displayed or while the new window is displayed, and when the shutdown animation is displayed, the window is not visible even if it is displayed on the screen.
  • the screen is not the interface of the program window, or the interface of the window presented on the screen is covered by the shutdown animation.
  • the new window display is sometimes faster than the shutdown animation, which will cause the next window to flash back to the next window instead of the shutdown immediately after clicking shutdown, and then the shutdown animation will appear .
  • the system setting interface is triggered by resetting to factory settings.
  • the next interface after the system setting interface is destroyed is displayed first, and then the shutdown animation is displayed. Before the shutdown animation is displayed, the next interface flashes.
  • the inventor proposes the window display method, device, electronic device, and storage medium provided by the embodiments of this application. Since the electronic device triggers shutdown, AMS and WMS have not been closed yet, AMS will destroy the currently activated activity and activate The next activity, correspondingly, WMS destroys the window corresponding to the currently active activity and displays the window of the next activity. When the window of the next activity is displayed, it needs to be notified through the window display instruction. Therefore, when the window display instruction is received, it can be judged whether the shutdown is triggered. If the shutdown is triggered, the display of the window can be prohibited to avoid A window flashes during shutdown to avoid the illusion of not entering the shutdown state immediately after the shutdown is triggered.
  • Fig. 2 shows a window display method provided by an embodiment of the present application, and the method can be applied to an electronic device. Specifically, the method includes:
  • Step S110 Receive a window display instruction.
  • the electronic device receives a window display instruction, and the window display instruction is used to instruct the electronic device to display a new window.
  • the specific triggering method of the window display instruction is not limited in the embodiment of this application. For example, when AMS activates a new Activity component, the WMS service is notified to display the window of the Activity component, and when the WMS receives the Activity component When the notification of the component window is displayed, it is judged that the window display instruction is received.
  • Step S120 Determine whether it is currently in a shutdown processing state.
  • the shutdown processing state means that after the electronic device receives the shutdown trigger, it performs processing such as shutting down various programs and shutting down various functions during the shutdown process, until the electronic device is finally shut down.
  • the specific judgment method is not limited. For example, whether the electronic device is in the off state can be determined by the operating state of the electronic device, or can be judged by whether the relevant machine instruction is received within a specified time period.
  • the shutdown instruction may be a shutdown instruction generated when the shutdown is triggered, and the electronic device enters the shutdown processing state under the shutdown instruction.
  • the specific length of the specified duration is not limited in the embodiment of the present application. For example, it can be set based on experience, or set as the time difference between receiving the shutdown instruction and displaying the shutdown animation.
  • Step S130 If it is determined that it is currently in the shutdown processing state, the display of the window is prohibited.
  • the display of the window is prohibited. It is understandable that the display of the prohibited window may be that the display of the window is not performed. For example, the shutdown is triggered by restoring the factory settings on the system setting interface. At this time, the system setting interface is destroyed, and the AMS is notified to display the next interface. AMS receives a window display instruction and prohibits the display of the window.
  • the shutdown trigger is received and the shutdown processing process is entered, when the window display instruction is received, it can be determined that the electronic device is in the shutdown processing state, and the display of the next interface is prohibited, thereby avoiding flashing before the shutdown animation starts to display One interface.
  • a window display instruction when a window display instruction is received, it is determined whether the electronic device is in a shutdown processing state. If it is in the shutdown processing state, it is forbidden to respond to the window display instruction to display the window to avoid flashing other display interfaces before the shutdown animation is displayed.
  • the application also provides an embodiment, in which the embodiment further includes a judgment on whether to continue to prohibit window display. Specifically, please refer to Figure 3.
  • the method includes:
  • Step S210 Receive a window display instruction.
  • Step S220 Determine whether it is currently in a shutdown processing state. If it is determined that it is currently in the shutdown processing state, step S230 is executed; if it is determined that it is not currently in the shutdown processing state, step S250 is executed.
  • Step S230 Prohibit the display of the window.
  • Step S240 Determine whether to continue to prohibit window display. If yes, execute step S230; if not, execute step S250.
  • the window display instruction In the case of receiving a window display instruction, if it is determined that the electronic device is in the shutdown processing state, it indicates that the electronic device is shutting down, and it is possible that the shutdown animation has not started to display. In order not to appear on the display interface of the electronic device that flashes before the shutdown animation starts to display, the window is prohibited In this way, the screen of the electronic device is in a black screen state after entering the shutdown state, so as to avoid the illusion that the user triggers the shutdown without entering the shutdown process.
  • the continuation judgment may be a continuous judgment, or it may be a judgment of a certain period of installation, which is not limited in the embodiment of the present application.
  • the way to determine whether to continue prohibiting the window display may be to determine whether the shutdown animation has started to be displayed. If it is determined that the shutdown animation starts to be displayed, it can be determined that there is no need to continue to prohibit window display.
  • the way to determine whether to continue to prohibit window display may be to determine whether the time in the shutdown processing state reaches the preset duration. If the preset duration is reached, it is likely that the shutdown animation has already begun to be displayed, and the window display can no longer be prohibited. Therefore, if the time in the shutdown processing state reaches the preset duration, it can be determined that there is no need to continue to prohibit window display.
  • the time in the shutdown processing state is the length of time that the electronic device has elapsed from the shutdown trigger to the current time.
  • the specific duration of the preset duration is not limited in the embodiment of the present application, and may be from the shutdown trigger to the shutdown animation display
  • the preset duration may be consistent with the aforementioned specified duration value.
  • the way to determine whether to continue prohibiting window display may be whether the time length from receiving the window display instruction to the current time reaches the preset time length, and if it reaches, it can be determined that there is no need to continue prohibiting window display.
  • the preset length of time can also be set to the length of time that needs to elapse from the start of the shutdown trigger to the display of the shutdown animation, or according to statistics, the selection ratio needs to be set from the start of the shutdown trigger to the display of the shutdown animation.
  • the elapsed time is slightly longer, for example, 2 seconds.
  • the preset time length may be equal to the aforementioned preset time length, and may be equal to the aforementioned specified time length.
  • the way to determine whether to continue to prohibit window display may be to determine whether an instruction to exit the shutdown is received. If it is received, it can be determined that there is no need to continue to prohibit window display.
  • the display of the prohibited window is continued, that is, the window is continued to be not displayed.
  • Step S250 Perform window display.
  • the window display is performed. Specifically, the window can be displayed in response to the window display instruction. For example, in the system setting interface, resetting to factory settings is used to trigger the shutdown, and the system setting interface is destroyed at this time, and the AMS is notified to display the next interface, and the AMS receives the window display instruction. Since the shutdown trigger is received and the shutdown processing process is entered, when the window display instruction is received, it can be determined that the electronic device is in the shutdown processing state, the display of the next interface is prohibited, and the judgment continues to determine whether to prohibit window display. If it is determined that it is not necessary to prohibit window display, the next interface is displayed.
  • the window display is performed in response to the window display instruction.
  • the display of the window is prohibited after the shutdown is triggered to avoid flashing other display interfaces before the shutdown animation is displayed.
  • This application also provides an embodiment, and in this embodiment, it also includes a specific judgment method for judging whether it is currently in the shutdown processing state. Specifically, as shown in FIG. 4, the method provided in this embodiment includes:
  • Step S310 Receive a window display instruction.
  • Step S320 Determine whether the current value of the shutdown indicator variable is the first designated value representing the shutdown processing state. If it is determined that the current value of the shutdown indicator variable is the first specified value, step S330 is executed; if it is determined that the current value of the shutdown indicator variable is the second specified value, step S340 is executed.
  • the shutdown indicator variable can be set to indicate whether the electronic device is in the shutdown processing state that requires window display to be prohibited.
  • the shutdown indicator variable is set to the first specified value, it means that the electronic device is in the shutdown processing state, and the window needs to be prohibited at this time. Display; when the shutdown indicator variable is set to the second specified value, it means that the electronic device can perform window display normally.
  • the specific values of the first designated value and the second designated value are not limited in the embodiment of the present application, and the first designated value and the second designated value may be different from each other.
  • the shutdown indicator variable when a shutdown instruction is received, can be set to the first specified value; when the window can continue to be displayed, or the window can be displayed normally, the shutdown indicator variable can be set to the second specified value .
  • the electronic device is in the shutdown processing state by determining whether the value of the shutdown indicator variable is the first specified value.
  • the value of the shutdown indicator variable is the first designated value
  • normal display can be performed.
  • Step S330 Prohibit the display of the window, and execute step S320.
  • the display of the window is prohibited, and the display of the window is continued to be prohibited by judging whether the current value of the shutdown indicator variable is the first specified value or the second specified value. If the current value of the shutdown indicator variable is the first specified value, continue to prohibit the display of the window, and continue to determine whether the current value of the shutdown indicator variable is the first specified value or the second specified value.
  • the shutdown indicator variable needs to be modified to the second specified value, and the display of the window is continued to return to the native processing flow of the system. Therefore, in the embodiment of the present application, the shutdown indicator variable needs to be modified to the second specified value according to certain conditions.
  • the shutdown indicator variable when the duration of the shutdown indicator variable being set to the first specified value reaches the preset duration, the shutdown indicator variable may be set to the second specified value.
  • a delay of a preset duration can be set at the same time, or a timer can be set.
  • the shutdown indicator variable is reset to the second specified value.
  • the specific duration of the preset duration is not limited.
  • the selection ratio is selected from the start of the shutdown trigger to the The length of time required to elapse between the display of the shutdown animation is slightly longer, for example, it can be set to 2 seconds.
  • the shutdown indicator variable when the time length of receiving the window display instruction reaches the preset time length, the shutdown indicator variable may be set to the second specified value.
  • the preset time length can also be set according to the length of time that needs to elapse from the start of the shutdown trigger to the display of the shutdown animation, or according to statistics, the selection is slightly less than the length of time that needs to elapse from the start of the shutdown trigger to the display of the shutdown animation.
  • the long time may be 2 seconds, for example.
  • the preset time length may be equal to the aforementioned preset time length, and may be equal to the aforementioned specified time length.
  • the shutdown indicator variable is set to the second specified value.
  • the shutdown indicator variable is set to the second specified value.
  • the first implementation and the third implementation are set at the same time. If the first implementation is met first, the shutdown indicator variable is set to the second specified value according to the first implementation, and if the third implementation is met first According to the third implementation manner, the shutdown indicator variable is set to the second specified value. If the shutdown indicator variable is set to the first specified value, and the notification that the shutdown animation has been displayed has not been received, the shutdown indicator variable will still be set when the time after the shutdown indicator variable is set to the first specified value reaches the preset duration Set to the second specified value.
  • Step S340 Perform window display.
  • the window is displayed. Specifically, when the window display instruction is received, the shutdown indicator variable is judged, if it is determined that the shutdown indicator variable is the second specified value, the window display is performed in response to the window display instruction; when the window display instruction is received, the shutdown instruction is issued If it is determined that the shutdown indicator variable is the first specified value, the window display is prohibited, and continue to determine whether the value of the shutdown indicator variable is the first specified value or the second specified value. In the case of prohibiting the window display, if the shutdown indicator variable is determined For the second specified value, the display of the window starts.
  • the window display instruction can be received through WMS, determine whether it is currently in the shutdown state, and determine whether to display or not display the window.
  • a designated interface can be added to the WMS, and a shutdown indicator variable can be set in the designated interface to set whether to enter the shutdown processing state, and the WMS can receive a shutdown command through the designated interface.
  • the system can call the designated interface in the shutdown process to notify that the designated interface is currently in the shutdown processing state, so that the WMS receives the shutdown instruction.
  • the WMS receives the notification that it is in the shutdown processing state, and sets the shutdown indicator variable to the first specified value in the specified interface.
  • the judgment of the shutdown indicator variable is added to the WMS method of displaying the window. If it is determined that the value of the shutdown indicator variable is the first specified value, the window is not displayed.
  • the WMS sets the shutdown indicator variable to the first specified value in the specified interface, it also sets a preset time delay, so that when the delay time reaches the preset time, the shutdown indicator variable is reset Is the second specified value.
  • the specified interface can be called in the shutdown process code to notify the specified interface that the shutdown animation has begun to display.
  • WMS sets the shutdown indicator variable to the second specified value.
  • a shutdown indicator variable is set to indicate whether to prohibit the display of the window. Therefore, when the shutdown is triggered, the current window is destroyed and the next window needs to be displayed, and the window display instruction is received, and the value of the shutdown indicator variable is judged at this time. Because when the shutdown is triggered, the shutdown indicator variable is set to the first specified value, so the judgment result at this time is that the value of the shutdown indicator variable is the first specified value, thereby prohibiting the display of the next window and leaving the screen in a state where no window is displayed , It presents a black screen display effect, avoiding the illusion that the shutdown process is not entered immediately because the window is displayed before the shutdown animation is displayed.
  • the shutdown indicator variable is set to the second specified value, so that when it is determined that the shutdown indicator variable is the second specified value, the window display is turned on and the system returns to the native display process.
  • the shutdown animation has begun to display, even if the window is displayed, the user cannot see the window, and the display effect is not affected.
  • the window display device 400 includes: an instruction receiving module 410 for receiving window display instructions; a judging module 420 for judging whether it is currently in the shutdown processing state; a display processing module 430 for judging It is currently in shutdown processing state, and window display is prohibited.
  • the judging module 420 judges whether it is currently in the shutdown processing state, including: judging whether a related machine instruction is received within a specified time period.
  • the device may also include a value setting module for setting the shutdown indicator variable to a first specified value if a shutdown instruction is received; the judgment module 420 may be used for determining the current value of the shutdown indicator variable Whether it is the first designated value, it is judged whether it is currently in the shutdown processing state.
  • the value setting module may also be used to set the shutdown indicator variable to the second specified value when the time period during which the shutdown indicator variable is set to the first specified value reaches the preset time period.
  • the value setting module can also be used to set the shutdown indicator variable to a second specified value if the shutdown animation has been displayed.
  • the value setting module may also be used to set the shutdown indicator variable to a second specified value if an instruction to exit shutdown is received.
  • the judging module 420 can also be used to judge whether the value of the shutdown indicator variable is the first specified value or the second specified value; if it is the first specified value, the display processing module 430 is used to continue to prohibit window display, if The value of the shutdown indicator variable is the second specified value, and the display processing module 430 is used for window display.
  • the device can be applied to a window management service (WindowManagerService, WMS), and a designated interface is added to the WMS, and the shutdown indicator variable is set in the designated interface.
  • WindowManagerService WMS
  • WMS window management service
  • the coupling between the modules may be electrical, mechanical or other forms of coupling.
  • each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software functional modules.
  • FIG. 6 shows a structural block diagram of an electronic device 500 provided by an embodiment of the present application.
  • the electronic device may be various smart devices that can be shut down, such as a mobile phone, a computer, a tablet, an e-reader, and a smart watch, which is not limited in the embodiment of the present application.
  • the electronic device 500 may include one or more processors 510 (only one is shown in the figure), a memory 520, and one or more programs.
  • the one or more programs are stored in the memory 520 and configured to be executed by the one or more processors 510.
  • the one or more programs are configured to execute the methods described in the foregoing embodiments.
  • the processor 510 may include one or more processing cores.
  • the processor 510 uses various interfaces and lines to connect various parts of the entire electronic device 500, and executes by running or executing instructions, programs, code sets, or instruction sets stored in the memory 520, and calling data stored in the memory 520.
  • the processor 510 may use at least one of digital signal processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA).
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA Programmable Logic Array
  • the processor 510 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), a modem, and the like.
  • the memory 520 may include random access memory (RAM) or read-only memory (Read-Only Memory).
  • the memory 520 may be used to store instructions, programs, codes, code sets or instruction sets.
  • the memory 520 may include a storage program area and a storage data area, where the storage program area may store instructions for implementing an operating system, instructions for implementing at least one function, instructions for implementing each of the foregoing method embodiments, and the like.
  • the data storage area can also be the data created by the electronic device in use.
  • FIG. 7 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • the computer-readable storage medium 600 stores program code, and the program code can be invoked by a processor to execute the method described in the foregoing method embodiment.
  • the computer-readable storage medium 600 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • the computer-readable storage medium 600 includes a non-transitory computer-readable storage medium.
  • the computer-readable storage medium 600 has a storage space for the program code 610 for executing any method steps in the above methods. These program codes can be read out from or written into one or more computer program products.
  • the program code 610 may be compressed in a suitable form, for example.

Landscapes

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

Abstract

一种窗口显示方法、装置、电子设备及存储介质,涉及电子设备技术领域。其中,该方法包括:接收窗口显示指令(S110);判断当前是否处于关机处理状态(S120);若判定当前处于关机处理状态,禁止窗口的显示(S130),从而避免在关机动画显示之前闪现显示界面。

Description

窗口显示方法、装置、电子设备及存储介质 技术领域
本申请涉及电子设备技术领域,更具体地,涉及一种窗口显示方法、装置、电子设备及存储介质。
背景技术
随着技术的发展,手机等电子设备的使用越来越普遍。电子设备通常支持关机功能,在关机后进行关机动画显示,最后实现关机。
但是对于某些电子设备,关机时会先闪一下电子设备中的界面显示,再出现关机动画,呈现关机功能没有立刻被触发的假象,影响电子设备的使用体验。
发明内容
鉴于上述问题,本申请提出了一种窗口显示方法、装置、电子设备及存储介质,以改善上述问题。
第一方面,本申请实施例提供了一种窗口显示方法,所述方法包括:接收窗口显示指令;判断当前是否处于关机处理状态;若判定当前处于关机处理状态,禁止窗口的显示。
第二方面,本申请实施例提供了一种窗口显示装置,所述装置包括:指令接收模块,用于接收窗口显示指令;判断模块,用于判断当前是否处于关机处理状态;显示处理模块,用于若判定当前处于关机处理状态,禁止窗口的显示。
第三方面,本申请实施例提供了一种电子设备,包括:一个或多个处理器;存储器;一个或多个程序。其中所述一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述的方法。
第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述的方法。
本申请实施例提供的窗口显示方法、装置、电子设备及存储介质,在接收到窗口显示指令时,判断当前是否处于关机处理状态。若当前处于关机处理状态,则禁止窗口的显示,从而避免在关机动画显示之前闪现显示界面。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1示出了本申请实施例提供的一种显示切换图。
图2示出了本申请一实施例提供的窗口显示方法的流程图。
图3示出了本申请另一实施例提供的窗口显示方法的流程图。
图4示出了本申请又一实施例提供的窗口显示方法的流程图。
图5示出了本申请实施例提供的窗口显示装置的功能模块图。
图6示出了本申请实施例提供的电子设备的结构框图。
图7是本申请实施例的用于保存或者携带实现根据本申请实施例的窗口显示方法的程序代码的存储单元。
具体实施方式
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。
电子设备有多种关机触发的情况,例如,电子设备电量不足触发关机,电子设备接收到对关机按键(如power按键)的关机按压触发关机,电子设备的系统设置界面中的关机虚拟按键接收到触控触发关机,系统设置界面接收到回复出厂设置命令触发关机等。当电子设备接收到关机触发,可以认为电子设备接收到关机指令,则进入关机处理状态,进行关机。
另外,在Android系统中,同一时刻只有一个Activity组件是处于激活状态的,因此,当Activity管理服务(ActivityManagerService,AMS)激活了一个新的Activity组件时,通知窗口管理服务(WindowManagerService,WMS)将该Activity组件的窗口显示出来,将焦点和屏幕等资源从前一个激活的Activity组件切换到后一个激活的Activity组件,即WMS将前一个激活的Activity组件的窗口设置为不可见,以及将新激活的Activity组件的窗口设置为可见。
也就是说,在android系统里面,AMS模块负责一个界面的启动和退出等,其中对应的概念是activity,WMS模块负责一个界面的显示和销毁等,其中对应的概念是window。若应用程序(Application,APP)发起要求退出一个activity,那么AMS就会响应这个请求,销毁相应的activity a,同时启动新的activity b,另外WMS也会销毁相应的窗口(window)a,显示新的window b,如图1所 示。在屏幕上呈现的即为,消耗window a在屏幕上对应的界面Surface,显示window b在屏幕上对应的界面。从实际操作来看,比如在系统设置界面设置恢复出厂设置,销毁系统设置界面对应的窗口,显示桌面对应的窗口,在窗口对应的界面中,系统设置界面销毁,下一个界面显示。其中,该下一个界面为新激活的activity对应的界面,新激活的activity具体为哪一个activity根据电子设备的系统对activity的切换设置确定,在此不做赘述。
但是,正常情况下,电子设备接收到关机触发,则显示关机动画,不再显示电子设备中其他显示界面。例如,在系统设置界面设置恢复出厂设置,那么应该直接显示关机动画,而不再显示系统设置界面销毁后的下一界面。
因此,发明人仔细分析了电子设备系统的界面显示以及关机的工作过程,发现电子设备关机时,在显示关机动画之前会闪现电子设备中某些界面的原因是,电子设备的系统中,在关机触发时,电子设备销毁当前显示的窗口,显示下一窗口。而电子设备的普通界面显示部分和关机动画显示部分是没有关联的,WMS当前要显示新的窗口时不会管关机动画是否显示,直接显示该新的窗口。虽然窗口正常情况下,关机动画出现得比较快,在新的窗口显示之前或者新的窗口显示的同时显示关机动画,而在关机动画显示时,窗口即使在显示在屏幕上也看不到,即屏幕不会程序窗口的界面,或者说屏幕呈现的窗口的界面被关机动画覆盖。但是,对于某些电子设备,如性能较好的电子设备,新的窗口显示有时比关机动画快,就会造成点击关机后没有立刻关机而是先闪回到下一个窗口,然后再出现关机动画。比如,系统设置界面通过设置恢复出厂设置进行关机触发,先显示一下系统设置界面销毁后的下一界面,再显示关机动画,在显示关机动画之前则闪现了下一界面。
因此,发明人提出了本申请实施例提供的窗口显示方法、装置、电子设备及存储介质,由于电子设备在触发关机时,AMS以及WMS还未被关闭,AMS会销毁当前激活的activity,并激活下一个activity,对应的,WMS销毁当前激活的activity对应的窗口,显示下一个activity的窗口。而在显示下一个activity的窗口时,需要通过窗口显示指令进行通知,因此,可以在接收到窗口显示指令时,判断是否有触发关机,若有触发关机,则可以禁止窗口的显示,从而避免在关机时闪现窗口,避免在关机触发后呈现没有立即进入关机状态的假象。
图2示出了本申请实施例提供的窗口显示方法,该方法可以应用于电子设备。具体的,该方法包括:
步骤S110:接收窗口显示指令。
电子设备接收窗口显示指令,该窗口显示指令用于指示电子设备进行新的窗口的显示。该窗口显示指令的具体触发方式在本申请实施例中并不限定,例如,当AMS激活了一个新的Activity组件时,通知WMS服务将该Activity组件的窗口显示出来,当WMS接收到将该Activity组件的窗口显示出来的通知时,判定接收到窗口显示指令。
步骤S120:判断当前是否处于关机处理状态。
在接收到窗口显示指令的情况下,通过判断是否处于关机处理状态确定是否进行窗口显示。其中,该关机处理状态表示电子设备接收到关机触发后,进行关机过程中的各种程序关闭、各种功能关闭等处理,直到最终实现电子设备的关机。
在本申请实施例中,具体判断方式并不限定,例如,可以通过电子设备的运行状态确定是否处于关机状态,或者可以通过是否在指定时长内接收到有关机指令进行判断。
其中,该关机指令可以是触发关机时所产生的进行关机的指令,在关机指令下电子设备进入关机处理状态。该指定时长的具体长度在本申请实施例中并不限定,例如,可以根据经验设置,或者设置为从接收到关机指令到关机动画进行显示之间的时间差。
步骤S130:若判定当前处于关机处理状态,禁止窗口的显示。
如果判定处于关机状态,有可能是刚刚进入关机状态,即关机刚刚触发,关机动画还未显示,为了避免在关机动画显示之前显示窗口,禁止窗口的显示。可以理解的,该禁止窗口的显示可以是,不进行窗口的显示。例如,在系统设置界面通过设置恢复出厂设置进行关机触发,此时销毁该系统设置界面,通知AMS显示下一界面,AMS接收到窗口显示指令,禁止窗口的显示。因此,由于接收到关机触发,进入关机处理过程,在接收到该窗口显示指令时,可以判定电子设备处于关机处理状态,则禁止下一界面的显示,从而避免在关机动画开始显示之前闪现了下一界面。
在本申请实施例中,接收到窗口显示指令的情况下,对电子设备是否处于关机处理状态进行判断。若是处于关机处理状态,则禁止响应该窗口显示指令进行窗口显示,避免在关机动画显示之前闪现其他显示界面。
本申请还提供了一种实施例,在该实施例中,还包括对是否继续禁止窗口显示的判断。具体的,请参见图3,该方法包括:
步骤S210:接收窗口显示指令。
步骤S220:判断当前是否处于关机处理状态。若判定当前处于关机处理状态,执行步骤S230;若判定当前不是处于关机处理状态,执行步骤S250。
步骤S230:禁止窗口的显示。
步骤S240:判断是否继续禁止窗口显示。若是,执行步骤S230;若否,执行步骤S250。
在接收到窗口显示指令的情况下,若判定处于关机处理状态,表明电子设备正在关机,有可能关机动画还没开始显示,为了不出现在关机动画开始显示前闪现电子设备的显示界面,禁止窗口的显示,从而使电子设备的屏幕在进入关机状态后处于黑屏状态,避免呈现用户触发关机却没进入关机处理的假象。
由于在关机动画开始显示后,即使进行窗口的显示,也不会将关机动画覆盖,电子设备实际显示出来的、用户可以看到的还是关机动画,因此,若关机动画出来后可以不再禁止窗口的显示。因此,电子设备从禁止窗口显示后,可以继续判断是否继续禁止窗口的显示。其中,继续判断可以是持续性的判断,也可以是安装一定的周期判断,在本申请实施例中并不限定。
作为第一种实施方式,由于在关机动画开始显示后可以进行窗口显示,因此,判断是否继续禁止窗口显示的方式可以是,判断关机动画是否已经开始显示。若判定关机动画开始显示,则可以判定不需要继续禁止窗口显示。
作为第二种实施方式,虽然可能在触发关机后关机动画没有立即显示出来,但是在一定时间后关机动画会显示。因此,在该实施方式中,判断是否继续禁止窗口显示的方式可以是,判断处于关机处理状态的时间是否达到预设时长。该若达到预设时长,在关机动画很可能已经开始显示了,可以不再禁止窗口显示,因此,若处于关机处理状态的时间达到预设时长,则可以判定不需要继续禁止窗口显示。其中,处于关机处理状态的时间为电子设备从关机触发开始到当前时间所经历的时间长度,预设时长的具体时长在本申请实施例中并不限定,可以是从关机触发开始到关机动画显示出来之间需要经历的时间长度,或者根据统计,选择比从关机触发开始到关机动画显示出来之间需要经历的时间长度略长的时间,例如可以是2秒。
可选的,该预设时长可以和前述的指定时长的值一致。
作为第三种实施方式,在接收到关机触发时即会销毁一个窗口并通知显示下一窗口,即可以接收到窗口显示指令。虽然在接收到窗口显示指令时关机动画可能没有立即显示出来,但是在一定时间后关机动画会显示。因此,在该实 施方式中,判断是否继续禁止窗口显示的方式可以是,接收到窗口显示指令到当前时间的时间长度是否达到预设时间长度,若达到,则可以判定不需要继续禁止窗口显示。
在该实施方式,该预设时间长度也可以是设置为从关机触发开始到关机动画显示出来之间需要经历的时间长度,或者根据统计,选择比从关机触发开始到关机动画显示出来之间需要经历的时间长度略长的时间,例如可以是2秒。可选的,在该实施方式中,该预设时间长度可以和前述的预设时长相等,可以和前述的指定时长相等。
作为第四种实施方式,用户在触发关机后,可能因为某些原因不想关机,因此会发出退出关机的指令。在退出关机后,电子设备的界面可以正常显示。因此,判断是否继续禁止窗口显示的方式可以是,判断是否接收到退出关机的指令。若接收到,则可以判定不需要继续禁止窗口显示。
若判断结果为需要继续禁止窗口的显示,则继续执行禁止窗口的显示,即继续使窗口不显示。
步骤S250:进行窗口显示。
若是否继续禁止窗口显示的判断结果为不需要继续禁止窗口的显示,则进行窗口显示。具体的,可以响应窗口显示指令进行窗口显示。例如,在系统设置界面通过设置恢复出厂设置进行关机触发,此时销毁该系统设置界面,通知AMS显示下一界面,AMS接收到窗口显示指令。由于接收到关机触发,进入关机处理过程,因此在接收到该窗口显示指令时,可以判定电子设备处于关机处理状态,则禁止下一界面的显示,并继续判断是否要禁止窗口显示。若判定不需要禁止窗口显示,则显示该下一界面。
另外,在本申请实施例中,若在接收到窗口显示指令时,判断当前是否处于关机处理状态的判断结果为当前不是出于关机处理状态,则响应该窗口显示指令进行窗口显示。
本申请实施例中,在关机触发后禁止窗口的显示,以避免在关机动画显示之前闪现其他显示界面。并且,继续判断是否要禁止窗口显示,直到判定不需要禁止窗口显示后,继续窗口显示,减少对系统原生的显示流程的更改。
本申请还提供了一种实施例,在该实施例中,还包括判断当前是否处于关机处理状态的具体判断方式。具体的,如图4所示,该实施例所提供的方法包括:
步骤S310:接收窗口显示指令。
步骤S320:判断关机指示变量的当前值是否为表示关机处理状态的第一指定值。若判定关机指示变量的当前值为所述第一指定值,执行步骤S330;若判定关机指示变量的当前值为第二指定值,执行步骤S340。
电子设备在接收到窗口显示指令的情况下,需要判断当前是否处于关机处理状态。具体的,可以设置关机指示变量用于表示电子设备是否处于需要禁止窗口显示的关机处理状态,其中,关机指示变量设置为第一指定值时,表示电子设备处于关机处理状态,此时需要禁止窗口显示;关机指示变量设置为第二指定值时,表示电子设备可以正常进行窗口显示。当然,第一指定值以及第二指定值的具体值在本申请实施例中并不限定,第一指定值和第二指定值彼此不同即可。
在本申请实施例中,当接收到关机指令,可以将关机指示变量设置为第一指定值;当窗口可以继续显示,或者说窗口可以正常显示时,可以将关机指示变量设置为第二指定值。
因此,可以通过判断关机指示变量的值是否为第一指定值,判断电子设备处于关机处理状态。当判定关机指示变量的值为第一指定值时,判定电子设备处于关机处理状态;当判定关机指示变量不是第一指定值时,可以进行正常显示。
步骤S330:禁止窗口的显示,并执行步骤S320。
当判定关机指示变量的当前值为第一指定值,则禁止窗口的显示,并且继续通过判断关机指示变量的当前值为第一指定值还是第二指定值判断是否继续禁止窗口的显示。若关机指示变量当前的值是第一指定值,继续禁止窗口的显示,并继续判断关机指示变量的当前值为第一指定值还是第二指定值。
另外,在禁止窗口的显示后,到不需要禁止窗口显示时,需要将关机指示变量修改为第二指定值,继续窗口的显示,以回到系统原生的处理流程。因此,本申请实施例中,需要根据一定的条件即将关机指示变量修改为第二指定值。
在第一种具体的实施方式中,可以当关机指示变量设置为第一指定值的时长达到预设时长,将关机指示变量设置为第二指定值。具体的,可以在设置关机指示变量为第一指定值时,同时设置一个预设时长的延时,或者说设置一个计时器。当关机指示变量设置为第一指定值的时间达到预设时长,则将关机指示变量重新设置为第二指定值。其中,预设时长的具体时长并不限定,可以是如前所述,根据从关机触发开始到关机动画显示出来之间需要经历的时间长度设定,或者根据统计,选择比从关机触发开始到关机动画显示出来之间需要经 历的时间长度略长的时间,例如可以是设置为2秒。
在第二种具体的实施方式中,可以在接收到窗口显示指令的时间长度达到预设时间长度时,将关机指示变量设置为第二指定值。该预设时间长度也可以是根据从关机触发开始到关机动画显示出来之间需要经历的时间长度设置,或者根据统计,选择比从关机触发开始到关机动画显示出来之间需要经历的时间长度略长的时间,例如可以是2秒。可选的,在该实施方式中,该预设时间长度可以和前述的预设时长相等,可以和前述的指定时长相等。
在第三种具体的实施方式中,若关机动画开始显示,或者已经显示,则将关机指示变量设置为第二指定值。
在第四种具体的实施方式中,可以是在接收到退出关机的指令时,将关机指示变量设置为第二指定值。
可以理解的,上述多种实施方式可以根据需要进行组合。例如,同时设置上述第一种实施方式以及第三种实施方式,若先满足第一种实施方式,则根据第一种实施方式将关机指示变量设置为第二指定值,若先满足第三种实施方式,则根据第三种实施方式将关机指示变量设置为第二指定值。如在将关机指示变量设置为第一指定值后,一直没接收到关机动画已经显示的通知,则在关机指示变量设置为第一指定值后的时间达到预设时长时,仍然将关机指示变量设置为第二指定值。
另外,上述多种实施方式与前一实施例中判断是否继续禁止窗口显示的方式相似,可以彼此参照,相应的地方在此不再赘述。
步骤S340:进行窗口显示。
在判定关机指示变量为第二指定值时,进行窗口的显示。具体的,在接收到窗口显示指令时,对关机指示变量进行判断,若判定关机指示变量为第二指定值,则响应该窗口显示指令进行窗口显示;在接收到窗口显示指令时,对关机指示变量进行判断,若判定关机指示变量为第一指定值,禁止窗口显示,继续判断关机指示变量的值为第一指定值还是第二指定值,在禁止窗口显示的情况下,若判定关机指示变量为第二指定值,则开始对窗口的显示。
在具体的实施方式中,由于通过WMS进行窗口切换,因此,可以通过WMS接收窗口显示指令,判断当前是否处于关机状态,并确定进行窗口的显示或者不显示。其中,可以在WMS中添加指定接口,在该指定接口中设置关机指示变量,用于设置是否进入关机处理状态,WMS可以通过该指定接口接收关机指令。具体的,当触发关机,系统可以在关机流程中调用该指定接口, 通知该指定接口当前处于关机处理状态,从而使WMS接收到关机指令。WMS接收到处于关机处理状态的通知,在该指定接口中设置关机指示变量为第一指定值。对应的,在WMS显示窗口的方法中添加对关机指示变量的判断,如果判定关机指示变量的值为第一指定值,则不进行窗口的显示。
另外,可选的,WMS在指定接口中设置关机指示变量为第一指定值时,同时设置一个预设时长的延时,以使当延时时间到达预设时长时,该关机指示变量重新设置为第二指定值。
可选的,关机动画显示出来以后,可以在关机流程代码中调用指定接口,通知指定接口关机动画已经开始显示。指定接口接收到该关机动画已经显示的通知时,WMS将关机指示变量设置为第二指定值。
在本申请实施例中,通过设置关机指示变量对是否禁止窗口的显示进行指示。从而,当触发关机后,销毁当前窗口,需要显示下一窗口时,接收到窗口显示指令,此时判断关机指示变量的值。由于在触发关机时,关机指示变量被设置为第一指定值,因此此时判断结果为关机指示变量的值为第一指定值,从而禁止下一窗口的显示,使屏幕处于没有窗口显示的状态,呈现黑屏的显示效果,避免因为在关机动画显示出来以前显示窗口而呈现没有立即进入关机流程的假象。另外,在满足一定条件的情况下,将关机指示变量设置为第二指定值,从而在判定关机指示变量为第二指定值时,开启窗口的显示,回到系统的原生显示流程,此时因为关机动画已经开始显示,即使窗口显示用户也看不到该窗口,不影响显示效果。
本申请实施例还提供了一种窗口显示装置400。具体的,请参见图5,该窗口显示装置400包括:指令接收模块410,用于接收窗口显示指令;判断模块420,用于判断当前是否处于关机处理状态;显示处理模块430,用于若判定当前处于关机处理状态,禁止窗口的显示。
可选的,判断模块420判断当前是否处于关机处理状态,包括:判断是否指定时长内接收到有关机指令。
可选的,该装置还可以包括值设置模块,用于若接收到关机指令,将关机指示变量设置为第一指定值;所述判断模块420可以用于通过判断所述关机指示变量的当前值是否为所述第一指定值,判断当前是否处于关机处理状态。
作为第一种实施方式,值设置模块还可以用于当所述关机指示变量设置为第一指定值的时长达到预设时长,将关机指示变量设置为第二指定值。
作为第二种实施方式,值设置模块还可以用于若关机动画已经显示,将所 述关机指示变量设置为第二指定值。
作为第三种实施方式,值设置模块还可以用于若接收到退出关机的指令,将所述关机指示变量设置为第二指定值。
可选的,判断模块420还可以用于判断所述关机指示变量的值是第一指定值还是第二指定值;若是所述第一指定值,显示处理模块430用于继续禁止窗口显示,若所述关机指示变量的值是第二指定值,显示处理模块430用于进行窗口显示。
可选的,该装置可以应用于窗口管理服务(WindowManagerService,WMS),并且在所述WMS中添加指定接口,在所述指定接口中设置所述关机指示变量。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述的各个方法实施例之间可以相互参照;每个方法实施例中各个实施方式之间也可以相互参照。上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。
请参考图6,其示出了本申请实施例提供的一种电子设备500的结构框图。该电子设备可以是手机、电脑、平板、电子阅读器以及智能手表等各种可以进行关机的智能设备,本申请实施例中并不限定。该电子设备500可以包括一个或多个处理器510(图中仅示出一个),存储器520以及一个或多个程序。其中,所述一个或多个程序被存储在所述存储器520中,并被配置为由所述一个或多个处理器510执行。所述一个或多个程序配置用于执行前述实施例所描述的方法。
处理器510可以包括一个或者多个处理核。处理器510利用各种接口和线路连接整个电子设备500内的各个部分,通过运行或执行存储在存储器520内的指令、程序、代码集或指令集,以及调用存储在存储器520内的数据,执行电子设备500的各种功能和处理数据。可选地,处理器510可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门 阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器510可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。
存储器520可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器520可用于存储指令、程序、代码、代码集或指令集。存储器520可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令、用于实现上述各个方法实施例的指令等。存储数据区还可以电子设备在使用中所创建的数据等。
请参考图7,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读存储介质600中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。
计算机可读存储介质600可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质600包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质600具有执行上述方法中的任何方法步骤的程序代码610的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码610可以例如以适当形式进行压缩。
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。

Claims (20)

  1. 一种窗口显示方法,其特征在于,所述方法包括:
    接收窗口显示指令;
    判断当前是否处于关机处理状态;
    若判定当前处于关机处理状态,禁止窗口的显示。
  2. 根据权利要求1所述的方法,其特征在于,所述判断当前是否处于关机处理状态,包括:
    判断是否指定时长内接收到有关机指令。
  3. 根据权利要求1或2所述的方法,其特征在于,所述判断当前是否处于关机处理状态之前,包括:
    若接收到关机指令,将关机指示变量设置为第一指定值;
    所述判断当前是否处于关机处理状态,包括:
    判断所述关机指示变量的当前值是否为所述第一指定值。
  4. 根据权利要求3所述的方法,其特征在于,当所述关机指示变量设置为第一指定值的时长达到预设时长,将关机指示变量设置为第二指定值。
  5. 根据权利要求3所述的方法,其特征在于,所述若判定当前处于关机处理状态,禁止窗口的显示之后,还包括:
    若关机动画已经显示,将所述关机指示变量设置为第二指定值。
  6. 根据权利要求3所述的方法,其特征在于,所述将关机指示变量设置为第一指定值之后,还包括:
    若接收到退出关机的指令,将所述关机指示变量设置为第二指定值。
  7. 根据权利要求4-6任一项所述的方法,其特征在于,所述若判定处于关机状态,禁止窗口的显示之后,还包括:
    判断所述关机指示变量的值是第一指定值还是第二指定值;
    若是所述第一指定值,继续禁止窗口显示。
  8. 根据权利要求7所述的方法,其特征在于,若所述关机指示变量的值是第二指定值,进行窗口显示。
  9. 根据权利要求3所述的方法,其特征在于,所述方法应用于窗口管理服务(WindowManagerService,WMS),所述方法还包括:
    在所述WMS中添加指定接口,在所述指定接口中设置所述关机指示变量。
  10. 根据权利要求9所述的方法,其特征在于,所述判断当前是否处于关 机状态之前,还包括:
    通过所述指定接口接收关机指令。
  11. 根据权利要求1或2所述的方法,其特征在于,所述若判定当前处于关机处理状态,禁止窗口的显示之后,还包括:
    判断是否继续禁止窗口显示;
    若是,禁止窗口的显示,
    若否,进行窗口显示。
  12. 根据权利要求11所述的方法,其特征在于,所述判断是否继续禁止窗口显示,包括:
    判断关机动画是否已经开始显示;
    若是,判定不需要继续禁止窗口显示。
  13. 根据权利要求11所述的方法,其特征在于,所述判断是否继续禁止窗口显示,包括:
    判断处于关机处理状态的时间是否达到预设时长;
    若达到,判定不需要继续禁止窗口显示。
  14. 根据权利要求11所述的方法,其特征在于,所述判断是否继续禁止窗口显示,包括:
    判断是否接收到退出关机的指令;
    若接收到,判定不需要继续禁止窗口显示。
  15. 根据权利要求1-14任一项所述的方法,其特征在于,若判定当前不是处于关机状态,响应所述窗口显示指令进行窗口显示。
  16. 一种窗口显示装置,其特征在于,所述装置包括:
    指令接收模块,用于接收窗口显示指令;
    判断模块,用于判断当前是否处于关机处理状态;
    显示处理模块,用于若判定当前处于关机处理状态,禁止窗口的显示。
  17. 根据权利要求16所述的装置,其特征在于,所述判断模块判断当前是否处于关机处理状态,包括:
    判断是否指定时长内接收到有关机指令。
  18. 根据权利要求16或17所述的装置,其特征在于,所述装置还包括值设置模块,用于若接收到关机指令,将关机指示变量设置为第一指定值;
    所述判断模块用于通过判断所述关机指示变量的当前值是否为所述第一指定值,判断当前是否处于关机处理状态。
  19. 一种电子设备,其特征在于,包括:
    一个或多个处理器;
    存储器;
    一个或多个程序,其中所述一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行如权利要求1-15任一项所述的方法。
  20. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-15任一项所述的方法。
PCT/CN2019/082336 2019-04-11 2019-04-11 窗口显示方法、装置、电子设备及存储介质 WO2020206664A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2019/082336 WO2020206664A1 (zh) 2019-04-11 2019-04-11 窗口显示方法、装置、电子设备及存储介质
CN201980089429.3A CN113302590B (zh) 2019-04-11 2019-04-11 窗口显示方法、装置、电子设备及存储介质

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/082336 WO2020206664A1 (zh) 2019-04-11 2019-04-11 窗口显示方法、装置、电子设备及存储介质

Publications (1)

Publication Number Publication Date
WO2020206664A1 true WO2020206664A1 (zh) 2020-10-15

Family

ID=72750799

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/082336 WO2020206664A1 (zh) 2019-04-11 2019-04-11 窗口显示方法、装置、电子设备及存储介质

Country Status (2)

Country Link
CN (1) CN113302590B (zh)
WO (1) WO2020206664A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101924830A (zh) * 2010-07-21 2010-12-22 宇龙计算机通信科技(深圳)有限公司 一种移动终端的关机方法、系统及移动终端
US20120198223A1 (en) * 2011-01-27 2012-08-02 Wyse Technology Inc. Automatic retrieval, parsing and application of configuration for a specific-purpose client having a windows-based embedded image with a write-filter
CN103067584A (zh) * 2012-12-26 2013-04-24 东莞宇龙通信科技有限公司 播放开关机动画的方法及其通信终端
CN106162008A (zh) * 2015-04-22 2016-11-23 Tcl集团股份有限公司 一种自动关机的方法、装置及智能电视
CN109032676A (zh) * 2018-07-02 2018-12-18 北京爱国小男孩科技有限公司 一种控制电脑和手机关机方式的方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101924830A (zh) * 2010-07-21 2010-12-22 宇龙计算机通信科技(深圳)有限公司 一种移动终端的关机方法、系统及移动终端
US20120198223A1 (en) * 2011-01-27 2012-08-02 Wyse Technology Inc. Automatic retrieval, parsing and application of configuration for a specific-purpose client having a windows-based embedded image with a write-filter
CN103067584A (zh) * 2012-12-26 2013-04-24 东莞宇龙通信科技有限公司 播放开关机动画的方法及其通信终端
CN106162008A (zh) * 2015-04-22 2016-11-23 Tcl集团股份有限公司 一种自动关机的方法、装置及智能电视
CN109032676A (zh) * 2018-07-02 2018-12-18 北京爱国小男孩科技有限公司 一种控制电脑和手机关机方式的方法

Also Published As

Publication number Publication date
CN113302590B (zh) 2024-04-26
CN113302590A (zh) 2021-08-24

Similar Documents

Publication Publication Date Title
CN106095551B (zh) 展示媒体文件的方法和装置
EP3499367B1 (en) Method and device for starting application
US10552263B2 (en) System running method and intelligent terminal
JP6736130B2 (ja) アンドロイドベースのポップアッププロンプト方法及びデバイス
CN106951335B (zh) 一种进程守护方法和移动终端
CN109905770B (zh) 终端开机启动方法、装置及终端
WO2019047183A1 (zh) 按键显示方法、装置及终端
CN110502324B (zh) 云手机游戏的重启数据的处理方法、系统和存储介质
US10983825B2 (en) Processing for multiple containers are deployed on the physical machine
CN106648678B (zh) 一种系统更新控制方法及装置
CN111752632A (zh) 移动终端的控制方法、装置、移动终端以及存储介质
WO2017219482A1 (zh) 启动方法和装置
WO2020206664A1 (zh) 窗口显示方法、装置、电子设备及存储介质
WO2024007760A1 (zh) 界面显示方法、装置、电子设备及存储介质
CN110570830B (zh) 设备调节方法、装置、存储介质及电子设备
CN109471630B (zh) 一种应用处理方法和设备
CN107765834B (zh) 应用管理方法、装置、存储介质及电子设备
CN115543677A (zh) 一种可纠正错误处理方法、装置、设备及可读存储介质
CN111221633A (zh) 终端控制方法、装置、移动终端及存储介质
KR20190059581A (ko) 화면 캡쳐 작동 동안 워터마크 프로세스를 비활성화하는 프로그램
CN114968010A (zh) 协处理芯片的启动方法、装置、存储介质及电子装置
CN111736928A (zh) 一种画中画模式启动方法、装置及计算机可读存储介质
CN111796939A (zh) 一种处理方法、装置及电子设备
CN110908624A (zh) 一种屏幕异显的控制方法及系统
CN115033307A (zh) 应用启动方法、装置、存储介质及电子设备

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 02.03.2022)

122 Ep: pct application non-entry in european phase

Ref document number: 19924503

Country of ref document: EP

Kind code of ref document: A1