This application claims the benefit of priority under 35 U.S.C. 119 to Chinese Application No 201410153254.7, filed on 16 Apr. 2014; which application is incorporated herein by reference in its entirety.
The present disclosure relates to electronic technology, and more particularly, to an information processing method and an electronic device.
With the prevalence of consumer electronic products, users become more and more dependent on electronic devices such as mobile phones. These electronic devices have become necessary tools in our lives. A number of applications are installed in an electronic device. Such applications generally need to be displayed on a display unit of the electronic device.
It is an object of the present disclosure to provide an information processing method and an electronic device.
In a first aspect, an information processing method is provided. The method is applied in an electronic device including a display unit and a first controller and having a first application installed thereon. The method comprises: displaying a first image of the first application on the display unit of the electronic device while the first application is running, the first image including a first region and a second region; detecting a time variation and changing the first region of the first image in response to the time variation; and activating the first controller to change the second region of the first image depending on an amount of the time variation after the time variation reaches a first predetermined threshold.
In an embodiment, the first region of the first image is changed per time unit, and the step of detecting the time variation and changing the first region of the first image in response to the time variation comprises: retrieving, during the i-th time unit, the i-th first buffered image data corresponding to the i-th time unit and writing the i-th first buffered image data into the first region, where i denotes an index.
In an embodiment, the electronic device further comprises a second controller and a real-time clock configured to issue a first interruption command per time unit, and the step of detecting the time variation and changing the first region of the first image in response to the time variation comprises: detecting the i-th first interruption command issued by the real-time clock in the i-th time unit; retrieving, in response to the i-th first interruption command, the i-th first buffered image data corresponding to the i-th time unit using the second controller; and writing the i-th first buffered image data into the first region, where i denotes an index.
In an embodiment, the electronic device further comprises a real-time clock configured to issue a first interruption command per time unit, and the first threshold comprises M time units, and the step of activating the first controller to change the second region of the first image depending on an amount of the time variation after the time variation reaches the first predetermined threshold comprises: detecting the i-th first interruption command issued by the real-time clock in the i-th time unit; retrieving, when it is determined that i is equal to M, the second buffered image data in response to the M-th first interruption command using the first controller; and controlling the second controller to write the second buffered image data into the second region.
In an embodiment, the second controller has a memory comprising a first memory area for storing the first buffered image data and a second memory area for storing the second buffered image data.
In an embodiment, the first application is a clock application displaying variations of a second hand, the time unit is one second, and the first threshold is 60 seconds, the real-time clock is configured to issue a first interruption command per second, and the first buffered image data comprises buffered data displayed for 0 to 59 seconds.
In an embodiment, the real-time clock of the electronic device comprises a first real-time clock, the first real-time clock being a real-time clock within the first controller and being connected to the first controller, or the real-time clock of the electronic device comprises the first real-time clock and an additional second real-time clock that is connected to the first controller.
In a second aspect, an electronic device is provided. The electronic device includes a display unit and a first controller and has a first application installed thereon. The electronic device comprises: a displaying unit configured to display a first image of the first application while the first application is running, the first image including a first region and a second region; a first changing unit configured to detect a time variation and change the first region of the first image in response to the time variation; and a second changing unit configured to activate the first controller to change the second region of the first image depending on an amount of the time variation after the time variation reaches a first predetermined threshold.
In an embodiment, the first region of the first image is changed per time unit, and the first changing unit is configured to retrieve, during the i-th time unit, the i-th first buffered image data corresponding to the i-th time unit and write the i-th first buffered image data into the first region, where i denotes an index.
In an embodiment, the electronic device further comprises a second controller and a real-time clock configured to issue a first interruption command per time unit, wherein the first changing unit comprises: a first detecting module configured to detect the i-th first interruption command issued by the real-time clock in the i-th time unit; a first retrieving module configured to retrieve, in response to the i-th first interruption command, the i-th first buffered image data corresponding to the i-th time unit using the second controller; and a first writing module configured to write the i-th first buffered image data into the first region, where i denotes an index.
In an embodiment, the electronic device further comprises a real-time clock configured to issue a first interruption command per time unit, wherein the first threshold comprises M time units, and the second changing unit comprises: a first detecting module configured to detect the i-th first interruption command issued by the real-time clock in the i-th time unit; a second retrieving unit configured to retrieve, when it is determined that i is equal to M, the second buffered image data in response to the M-th first interruption command using the first controller; and a second writing module configured to control the second controller to write the second buffered image data into the second region using the first controller.
In an embodiment, the second controller has a memory comprising a first memory area for storing the first buffered image data and a second memory area for storing the second buffered image data.
In an embodiment, the first application is a clock application displaying variations of a second hand, the time unit is one second, and the first threshold is 60 seconds, the real-time clock is configured to issue a first interruption command per second, and the first buffered image data comprises buffered data displayed for 0 to 59 seconds.
In an embodiment, the real-time clock of the electronic device comprises a first real-time clock, the first real-time clock being a real-time clock within the first controller and being connected to the first controller, or the real-time clock of the electronic device comprises the first real-time clock and an additional second real-time clock that is connected to the first controller.
In the embodiments of the present disclosure, a first image of the first application is displayed on the display unit of the electronic device while the first application is running. The first image includes a first region and a second region. A time variation is detected and the first region of the first image is changed in response to the time variation. After the time variation reaches a first predetermined threshold, the first controller is activated to change the second region of the first image depending on an amount of the time variation. In this way, it is possible to save memory, improve operation efficiency and reduce power consumption while displaying.
The solutions of the present disclosure will be further detailed with reference to the figures and embodiments.
According to this embodiment, an information processing method is provided. The method is applied in an electronic device including a display unit and a first controller and having a first application installed thereon.
At step S101, a first image of the first application is displayed on the display unit of the electronic device while the first application is running. The first image includes a first region and a second region.
Here, the electronic device can be a mobile phone, a tablet computer, a notebook computer or an e-reader.
Here, the first application can be any application having a display interface displayed on the display unit of the electronic device as the first image. The first application can be a game application, a clock application or an application for displaying advertisements, etc.
Here, as shown in
At step S102, a time variation is detected and the first region of the first image is changed in response to the time variation.
At step S103, after the time variation reaches a first predetermined threshold, the first controller is activated to change the second region of the first image depending on an amount of the time variation.
Here, the time variation can be detected as follows. For example, the current time can be obtained and the time variation can be detected when the current time is identical to a defined time threshold. At this time, the first region of the first image is changed. It is to be noted that the electronic device typically includes at least one real-time clock, which can be implemented by a crystal oscillator circuit. Hence, in an embodiment of the present disclosure, the time variation can be detected by obtaining the time variation of the crystal oscillator. It can be appreciated by those skilled in the art that the time variation can be detected using any of various existing techniques and the description thereof will be omitted here for simplicity.
Here, the first region of the first image can be changed by the first controller in response to the time variation. For example, after the time variation reaches a defined time threshold, the first controller can be activated to change the first region. Alternatively, the changing operation can be performed by another controller, e.g., a second controller. After the time variation reaches a defined time threshold, the second controller can be activated to change the first region. It can be appreciated by those skilled in the art that the first region of the first image can be changed using any of other techniques and the description thereof will be omitted here for simplicity.
The solution according to this embodiment can be applied in the following scenario. As an example, the first application is an application for presenting advertisements. At the time 00:00:00, the display content of the first image of the first application is a Chinese character “”, as shown in
”. That is, the character “
” has been displayed for 40 seconds. At the time 00:01:00, the display content is changed into a Chinese character “
”. That is, the character “
” has been displayed for 20 seconds. At the time 00:01:20, the display content is changed into a Chinese character “
”. That is, the character “
” has been displayed for 20 seconds. Then, at the time 00:01:40, the display content is changed into a Chinese character “
”. That is, the character “
” has been displayed for 20 seconds. In this way, during the period from 00:00:00 to 00:01:39, the Chinese characters “
” have been displayed sequentially. Conventionally, the first image of the first application is changed entirely over time, i.e., the entire first image is changed each time the content of the first image is changed (i.e., at 00:00:00, 00:00:40, 00:01:00 and 00:01:20), without dividing the first image into two regions. In contrast, with the embodiment of the present disclosure, the first image is first divided into at least two regions depending on the frequencies or periods at which their respective contents are changed. Then, only the content in the first region 11 needs to be changed each time the content of the first image is changed (i.e., at 00:00:00, 00:00:40, 00:01:00 and 00:01:20), without changing the content in the second region 12.
In the embodiment of the present disclosure, a first image of the first application is displayed on the display unit of the electronic device while the first application is running. The first image includes a first region and a second region. A time variation is detected and the first region of the first image is changed in response to the time variation. After the time variation reaches a first predetermined threshold, the first controller is activated to change the second region of the first image depending on an amount of the time variation. Thus, the first image to be displayed for the first application can be divided into different regions depending on the frequencies or periods at which their respective contents are changed. The content in each region can be changed individually when it needs to be changed. In this way, it is possible to save memory, improve operation speed and improve user experience.
According to this embodiment, an information processing method is provided. The method is applied in an electronic device including a display unit and a first controller and having a first application installed thereon.
At step S201, a first image of the first application is displayed on the display unit of the electronic device while the first application is running. The first image includes a first region and a second region.
Here, the first region of the first image can be changed per time unit.
Here, the first application can be any application having a display interface displayed on the display unit of the electronic device as the first image. The first application can be a game application, a clock application or an application for displaying advertisements, etc.
Here, as shown in
At step S202, during the i-th time unit, the i-th first buffered image data corresponding to the i-th time unit is retrieved and the i-th first buffered image data is written into the first region, where i denotes an index.
At step S203, a time variation is detected and, after the time variation reaches a first predetermined threshold, the first controller is activated to change the second region of the first image depending on an amount of the time variation.
The solution according to this embodiment can be applied in the following scenario. Further to the example given in the first embodiment where the first application is an application for presenting advertisements, at the time 00:00:00, the display content of the first image of the first application is a Chinese character “”, as shown in
”. That is, the character “
” has been displayed for 20 seconds. At the time 00:00:40, the display content is changed into a Chinese character “
”. That is, the character “
” has been displayed for 20 seconds. At the time 00:01:00, the display content is changed into a Chinese character “
”. That is, the character “
” has been displayed for 20 seconds. Then, at the time 00:01:20, the display content is changed into a Chinese character “
”. That is, the character “
” has been displayed for 20 seconds. In this way, during the period from 00:00:00 to 00:01:19, the Chinese characters “
” have been displayed sequentially. Conventionally, the first image of the first application is changed entirely over time, i.e., the entire first image is changed each time the content of the first image is changed (i.e., at 00:00:00, 00:00:20, 00:00:40 and 00:01:20), without dividing the first image into two regions. In contrast, with the embodiment of the present disclosure, the first image is first divided into at least two regions depending on the frequencies or periods at which their respective contents are changed. Then, only the content in the first region 11 needs to be changed each time the content of the first image is changed (i.e., at 00:00:00, 00:00:20, 00:00:40 and 00:01:00), without changing the content in the second region 12.
In this embodiment, the first region of the first image is changed per time unit. In the above example, the content in the first region is changed every 20 seconds. In an implementation, a circuit for generating time units, e.g., a crystal oscillator circuit issuing a pulse signal every 20 seconds, can be incorporated into the electronic device and the content in the first region can be changed in response to obtaining such signal. It can be appreciated by those skilled in the art that the changing of the first region per time unit can be implemented in other ways, which will not be detailed here for simplicity.
According to this embodiment, an information processing method is provided. The method is applied in an electronic device including a display unit, a real-time clock, a first controller and a second controller and having a first application installed thereon. The real-time clock is configured to issue a first interruption command per time unit.
At step S301, a first image of the first application is displayed on the display unit of the electronic device while the first application is running. The first image includes a first region and a second region.
Here, the first application can be any application having a display interface displayed on the display unit of the electronic device as the first image. The first application can be a game application, a clock application or an application for displaying advertisements, etc.
Here, the real-time clock (RTC) is a series of pulses generated by a clock circuit consisting of a crystal oscillator and related circuits (referred to as crystal oscillator circuit) in a main board of the electronic device. These pulses can be used for generating a system clock. It can be understood by those skilled in the art and the details thereof will be omitted here.
At step S321, the i-th first interruption command issued by the real-time clock in the i-th time unit is detected, where i denotes an index.
Here, the first interruption command can be a pulse signal generated by the RTC.
At step S322, in response to the i-th first interruption command, the i-th first buffered image data corresponding to the i-th time unit is retrieved using the second controller.
At step S323, the i-th first buffered image data is written into the first region.
At step S303, a time variation is detected and, after the time variation reaches a first predetermined threshold, the first controller is activated to change the second region of the first image depending on an amount of the time variation.
In this embodiment, the operations of changing the contents in the first and second regions are performed by two different controllers, respectively, i.e., the first region is changed by the second controller, while the second region is changed by the first controller. In an implementation, the first controller can be a Graphic Processing Unit (GPU), which can be implemented by a Micro Control Unit (MCU) or a single chip machine, or an Accelerated Processing Unit (APU). When the first controller is a GPU, the second controller can be a display controller, e.g., a Liquid Crystal Display (LCD) controller.
Here, the LCD controller can provide the electronic device with a continuous display data stream; otherwise the electronic device can display no image or distorted images. The LCD controller can be implemented by an MCU or a display memory, etc.
Here, in the example where the first controller is a GPU and the second controller is a LCD controller, the step S303 of activating the first controller to change the second region of the first image includes activating the GPU to control the LCD controller to change the second region of the first image.
The technical effects of the embodiment of the present disclosure will be described with reference to the example where the first controller is a GPU and the second controller is a LCD controller. When the first application is running on the electronic device, the display interface is continuously updated over time. In order to update the display interface, the first application continuously wakes the GPU. Then, the GPU stores the content to be displayed in a memory of the LCD controller in a form of buffered image data, such that the LCD controller can read and display the buffered image data on the display unit. Conventionally, in doing so, the GPU is continuously woken to switch the display interface of the first application. In contrast, with the solution according to the embodiment of the present disclosure, the first image to be displayed for the first application is first divided into different regions, i.e., the first region and the second region, depending on frequencies or periods at which they are changed. The frequency at which the first region is changed is relatively high and the frequency at which the second region is changed is relatively low. Then, the LCD controller changes the first region in response to the first interruption command issued by the real-time clock. Finally, the GPU changes the second region. It can be seen that, when the first application switches the display interface, the GPU does not need to be woken each time the display interface is changed; rather, it only needs to be woken when the second region is to be changed. As shown in
In the embodiment of the present disclosure, as shown in
In an embodiment of the present disclosure, the electronic device can include one RTC, i.e., the first RTC. As shown in
In an embodiment of the present disclosure, the electronic device can include two RTCs, i.e., a first RTC and an additional second RTC as shown in
Based on the above first to third embodiments, according to this embodiment, an information processing method is provided. The method is applied in an electronic device including a display unit, a real-time clock, a first controller and a second controller and having a first application installed thereon. The real-time clock is configured to issue a first interruption command per time unit. A first threshold includes M time units.
At step S401, a first image of the first application is displayed on the display unit of the electronic device while the first application is running. The first image includes a first region and a second region.
Here, the first application can be any application having a display interface displayed on the display unit of the electronic device as the first image. The first application can be a game application, a clock application or an application for displaying advertisements, etc.
Here, the real-time clock (RTC) is a series of pulses generated by a clock circuit consisting of a crystal oscillator circuit in a main board of the electronic device. These pulses can be used for generating a system clock. It can be understood by those skilled in the art and the details thereof will be omitted here.
At step S402, the i-th first interruption command issued by the real-time clock in the i-th time unit is detected, where i denotes an index.
At step S403, when it is determined that i is smaller than M, the i-th first buffered image data corresponding to the i-th time unit is retrieved in response to the i-th first interruption command and written into the first region using the second controller.
A step S404, when it is determined that i is equal to M, the second buffered image data is retrieved in response to the M-th first interruption command using the first controller, and the first controller controls the second controller to write the second buffered image data into the second region.
In the embodiment of the present disclosure, as shown in
In an embodiment of the present disclosure, the electronic device can include one RTC, i.e., the first RTC. As shown in
With the prevalence of consumer electronic products, users become more and more dependent on electronic devices such as mobile phones. These electronic devices have taken the place of watches as timing tools. However, the operation of an electronic device is dependent on its battery. Hence, the battery is very important to the electronic device. Given the capacity of the battery, the manufacture of the electronic device desires to reduce the power consumption, thereby increasing the battery lifetime.
According to this embodiment, an information processing method is provided. The method is applied in an electronic device including a display unit, a real-time clock, a first controller and a second controller. The real-time clock is configured to issue a first interruption command per time unit. The electronic device has a clock application installed thereon. When executed, the clock application displays a clock involving variations of its hour hand, minute hand and second hand. Accordingly, the time unit is one second and the real-time clock issues a first interruption command per second.
At step S501, a first image of the clock application is displayed on the display unit of the electronic device while the clock application is running. The first image includes a first region and a second region.
Here, the first application can be any application having a display interface displayed on the display unit of the electronic device as the first image. The first application can be a game application, a clock application or an application for displaying advertisements, etc.
Here, the real-time clock (RTC) is a series of pulses generated by a clock circuit consisting of a crystal oscillator circuit in a main board of the electronic device. These pulses can be used for generating a system clock. It can be understood by those skilled in the art and the details thereof will be omitted here.
At step S502, the i-th first interruption command issued by the real-time clock in the i-th time unit is detected, where i denotes an index.
At step S503, when it is determined that i is smaller than or equal to 59, the i-th first buffered image data corresponding to the i-th time unit is retrieved in response to the i-th first interruption command and written into the first region using the second controller.
Here, the i-th first buffered image data corresponds to the first buffered image data for the i-th second.
A step S504, when it is determined that i is equal to 60, i is set to zero and the second buffered image data is retrieved in response to the 0-th first interruption command using the first controller, and the first controller controls the second controller to write the second buffered image data into the second region. Then the method returns to the step S502.
The embodiment of the present disclosure can be applied in the following scenario.
In the embodiment of the present disclosure, as shown in
In an embodiment of the present disclosure, the electronic device can include one RTC, i.e., the first RTC. As shown in
According to this embodiment, an electronic device is provided. The electronic device includes a display unit and a first controller and has a first application installed thereon.
The displaying unit 601 is configured to display a first image of the first application while the first application is running. The first image includes a first region and a second region.
Here, the electronic device can be a mobile phone, a tablet computer, a notebook computer or an e-reader, etc.
Here, the first application can be any application having a display interface displayed on the display unit of the electronic device as the first image. The first application can be a game application, a clock application or an application for displaying advertisements, etc.
Here, as shown in
The first changing unit 602 is configured to detect a time variation and change the first region of the first image in response to the time variation.
The second changing unit 603 is configured to activate the first controller to change the second region of the first image depending on an amount of the time variation after the time variation reaches a first predetermined threshold.
Here, the time variation can be detected as follows. For example, the current time can be obtained and the time variation can be detected when the current time is identical to a defined time threshold. At this time, the first region of the first image is changed. It is to be noted that the electronic device typically includes at least one real-time clock, which can be implemented by a crystal oscillator circuit. Hence, in an embodiment of the present disclosure, the time variation can be detected by obtaining the time variation of the crystal oscillator. It can be appreciated by those skilled in the art that the time variation can be detected using any of various existing techniques and the description thereof will be omitted here.
Here, the first region of the first image can be changed by the first controller in response to the time variation. For example, after the time variation reaches a defined time threshold, the first controller can be activated to change the first region. Alternatively, the changing operation can be performed by another controller, e.g., a second controller. After the time variation reaches a defined time threshold, the second controller can be activated to change the first region. It can be appreciated by those skilled in the art that the first region of the first image can be changed using any of various existing techniques and the description thereof will be omitted here.
The solution according to this embodiment can be applied in the following scenario. As an example, the first application is an application for presenting advertisements. At the time 00:00:00, the display content of the first image of the first application is a Chinese character “”, as shown in
”. That is, the character “
” has been displayed for 40 seconds. At the time 00:01:00, the display content is changed into a Chinese character “
”. That is, the character “
” has been displayed for 20 seconds. At the time 00:01:20, the display content is changed into a Chinese character “
”. That is, the character “
” has been displayed for 20 seconds. Then, at the time 00:01:40, the display content is changed into a Chinese character “
”. That is, the character “
” has been displayed for 20 seconds. In this way, during the period from 00:00:00 to 00:01:39, the Chinese characters “
” have been displayed sequentially. Conventionally, the first image of the first application is changed entirely over time, i.e., the entire first image is changed each time the content of the first image is changed (i.e., at 00:00:00, 00:00:40, 00:01:00 and 00:01:20), without dividing the first image into two regions. In contrast, with the embodiment of the present disclosure, the first image is first divided into at least two regions depending on the frequencies or periods at which their respective contents are changed. Then, only the content in the first region 11 needs to be changed each time the content of the first image is changed (i.e., at 00:00:00, 00:00:40, 00:01:00 and 00:01:20), without changing the content in the second region 12.
In the embodiment of the present disclosure, a first image of the first application is displayed on the display unit of the electronic device while the first application is running. The first image includes a first region and a second region. A time variation is detected and the first region of the first image is changed in response to the time variation. After the time variation reaches a first predetermined threshold, the first controller is activated to change the second so region of the first image depending on an amount of the time variation. Thus, the first image to be displayed for the first application can be divided into different regions depending on the frequencies or periods at which their respective contents are changed. The content in each region can be changed individually when it needs to be changed. In this way, it is possible to save memory, improve operation speed and improve user experience.
According to this embodiment, an electronic device is provided. The electronic device includes a display unit and a first controller and has a first application installed thereon.
The electronic device includes a display unit, a first changing unit and a second changing unit.
The displaying unit is configured to display a first image of the first application while the first application is running. The first image includes a first region and a second region. The first region of the first image is changed per time unit.
The first changing unit is configured to retrieve, during the i-th time unit, the i-th first buffered image data corresponding to the i-th time unit and write the i-th first buffered image data into the first region, where i denotes an index.
The second changing unit is configured to detect a time variation and activate the first controller to change the second region of the first image depending on an amount of the time variation after the time variation reaches a first predetermined threshold.
The solution according to this embodiment can be applied in the following scenario. Further to the example given in the first embodiment where the first application is an application for presenting advertisements, at the time 00:00:00, the display content of the first image of the first application is a Chinese character “”, as shown in
”. That is, the character “
” has been displayed for 20 seconds. At the time 00:00:40, the display content is changed into a Chinese character “
”. That is, the character “
” has been displayed for 20 seconds. At the time 00:01:00, the display content is changed into a Chinese character “
”. That is, the character “
” has been displayed for 20 seconds. Then, at the time 00:01:20, the display content is changed into a Chinese character “
”. That is, the character “
” has been displayed for 20 seconds. In this way, during the period from 00:00:00 to 00:01:19, the Chinese characters “
” have been displayed sequentially. Conventionally, the first image of the first application is changed entirely over time, i.e., the entire first image is changed each time the content of the first image is changed (i.e., at 00:00:00, 00:00:20, 00:00:40 and 00:01:20), without dividing the first image into two regions. In contrast, with the embodiment of the present disclosure, the first image is first divided into at least two regions depending on the frequencies or periods at which their respective contents are changed. Then, only the content in the first region 11 needs to be changed each time the content of the first image is changed (i.e., at 00:00:00, 00:00:20, 00:00:40 and 00:01:00), without changing the content in the second region 12.
In this embodiment, the first region of the first image is changed per time unit. In the above example, the content in the first region is changed every 20 seconds. In an implementation, a circuit for generating time units, e.g., a crystal oscillator circuit issuing a pulse signal every 20 seconds, can be incorporated into the electronic device and the content in the first region can be changed in response to obtaining such signal. It can be appreciated by those skilled in the art that the changing of the first region per time unit can be implemented in other ways, which will not be detailed here.
According to this embodiment, an electronic device is provided. The electronic device includes a display unit, a real-time clock, a first controller and a second controller and has a first application installed thereon. The real-time clock is configured to issue a first interruption command per time unit.
The displaying unit 701 is configured to display a first image of the first application on the display unit of the electronic device while the first application is running. The first image includes a first region and a second region.
Here, the first region of the first image is changed per time unit.
Here, the first application can be any application having a display interface displayed on the display unit of the electronic device as the first image. The first application can be a game application, a clock application or an application for displaying advertisements, etc.
Here, as shown in
The first detecting module 721 is configured to detect the i-th first interruption command issued by the real-time clock in the i-th time unit.
The first retrieving module 722 is configured to retrieve, in response to the i-th first interruption command, the i-th first buffered image data corresponding to the i-th time unit using the second controller.
The first writing module 723 is configured to write the i-th first buffered image data into the first region, where i denotes an index.
The second changing unit 703 is configured to detect a time variation and activate the first controller to change the second region of the first image depending on an amount of the time variation after the time variation reaches a first predetermined threshold.
The solution according to this embodiment can be applied in the following scenario. Further to the example given in the first embodiment where the first application is an application for presenting advertisements, at the time 00:00:00, the display content of the first image of the first application is a Chinese character “”, as shown in
”. That is, the character “
” has been displayed for 20 seconds. At the time 00:00:40, the display content is changed into a Chinese character “
”. That is, the character “
” has been displayed for 20 seconds. At the time 00:01:00, the display content is changed into a Chinese character “
”. That is, the character “
” has been displayed for 20 seconds. Then, at the time 00:01:20, the display content is changed into a Chinese character “
”. That is, the character “
” has been displayed for 20 seconds. In this way, during the period from 00:00:00 to 00:01:19, the Chinese characters “
” have been displayed sequentially. Conventionally, the first image of the first application is changed entirely over time, i.e., the entire first image is changed each time the content of the first image is changed (i.e., at 00:00:00, 00:00:20, 00:00:40 and 00:01:20), without dividing the first image into two regions. In contrast, with the embodiment of the present disclosure, the first image is first divided into at least two regions depending on the frequencies or periods at which their respective contents are changed. Then, only the content in the first region 11 needs to be changed each time the content of the first image is changed (i.e., at 00:00:00, 00:00:20, 00:00:40 and 00:01:00), without changing the content in the second region 12.
In this embodiment, the first region of the first image is changed per time unit. In the above example, the content in the first region is changed every 20 seconds. In an implementation, a circuit for generating time units, e.g., a crystal oscillator circuit issuing a pulse signal every 20 seconds, can be incorporated into the electronic device and the content in the first region can be changed in response to obtaining such signal. It can be appreciated by those skilled in the art that the changing of the first region per time unit can be implemented in other ways, which will not be detailed here.
Based on the above method embodiments and sixth to eighth embodiments, according to this embodiment, an electronic device is provided. The electronic device includes a display unit, a real-time clock, a first controller and a second controller and has a first application installed thereon. The real-time clock is configured to issue a first interruption command per time unit. A first threshold includes M time units.
The displaying unit 801 is configured to display a first image of the first application while the first application is running. The first image includes a first region and a second region.
Here, the first application can be any application having a display interface displayed on the display unit of the electronic device as the first image. The first application can be a game application, a clock application or an application for displaying advertisements, etc.
Here, the real-time clock (RTC) is a series of pulses generated by a clock circuit consisting of a crystal oscillator circuit in a main board of the electronic device. These pulses can be used for generating a system clock. It can be understood by those skilled in the art and the details thereof will be omitted here.
The first detecting module 821 is configured to detect the i-th first interruption command issued by the real-time clock in the i-th time unit, where i denotes an index.
Here, the first interruption command can be a pulse signal generated by the RTC.
The first retrieving module 822 is configured to retrieve, in response to the i-th first interruption command when it is determined that i is smaller than M, the i-th first buffered image data corresponding to the i-th time unit using the second controller.
The first writing module 823 is configured to write the i-th first buffered image data into the first region.
The second retrieving unit 831 is configured to retrieve, when it is determined that i is equal to M, the second buffered image data in response to the M-th first interruption command using the first controller.
The second writing module 832 is configured to control the second controller to write the second buffered image data into the second region using the first controller.
In this embodiment, the operations of changing the contents in the first and second regions are performed by two different controllers, respectively, i.e., the first region is changed by the second controller, while the second region is changed by the first controller. In an implementation, the first controller can be a GPU, which can be implemented by an MCU or a single chip machine, or an APU. When the first controller is a GPU, the second controller can be a display controller, e.g., a LCD controller.
The LCD controller can provide the electronic device with a continuous display data stream; otherwise the electronic device can display no image or distorted images. The LCD controller can be implemented by an MCU or a display memory.
Here, in the example where the first controller is a GPU and the second controller is a LCD controller, the step S303 of activating the first controller to change the second region of the first image includes activating the GPU to control the LCD controller to change the second region of the first image.
The technical effects of the embodiment of the present disclosure will be described with reference to the example where the first controller is a GPU and the second controller is a LCD controller. When the first application is running on the electronic device, the display interface is continuously updated over time. In order to update the display interface, the first application continuously wakes the GPU. Then, the GPU stores the content to be displayed in a memory of the LCD controller in a form of buffered image data, such that the LCD controller can read and display the buffered image data on the display unit. Conventionally, in doing so, the GPU is continuously woken to switch the display interface of the first application. In contrast, with the solution according to the embodiment of the present disclosure, the first image to be displayed for the first application is first divided into different regions, i.e., the first region and the second region, depending on frequencies or periods at which they are changed. The frequency at which the first region is changed is relatively high and the frequency at which the second region is changed is relatively low. Then, the LCD controller changes the first region in response to the first interruption command issued by the real-time clock. Finally, the GPU changes the second region. It can be seen that, when the first application switches the display interface, the GPU does not need to be woken each time the display interface is changed; rather, it only needs to be woken when the second region is to be changed. As shown in
In the embodiment of the present disclosure, as shown in
In an embodiment of the present disclosure, the electronic device can include one RTC, i.e., the first RTC. As shown in
In an embodiment of the present disclosure, the electronic device can include two RTCs, i.e., a first RTC and an additional second RTC as shown in
With the prevalence of consumer electronic products, users become more and more dependent on electronic devices such as mobile phones. These electronic devices have taken the place of watches as timing tools. However, the operation of an electronic device is dependent on its battery. Hence, the battery is very important to the electronic device. Given the capacity of the battery, the manufacture of the electronic device desires to reduce the power consumption, thereby increasing the battery lifetime.
According to this embodiment, an electronic device is provided. The electronic device includes a display unit, a real-time clock, a first controller and a second controller. The real-time clock is configured to issue a first interruption command per time unit. The electronic device has a clock application installed thereon. When executed, the clock application displays a clock involving variations of its hour hand, minute hand and second hand. Accordingly, the time unit is one second and the real-time clock issues a first interruption command per second.
The electronic device includes a display unit, a first changing unit and a second changing unit. The first changing unit includes a first detecting module, a first retrieving module and a first writing module. The second changing unit includes a second retrieving module and a second writing module.
The displaying unit is configured to display a first image of the clock application on the display unit of the electronic device while the clock application is running. The first image includes a first region and a second region.
Here, the first application can be any application having a display interface displayed on the display unit of the electronic device as the first image. The first application can be a game application, a clock application or an application for displaying advertisements, etc.
Here, the real-time clock (RTC) is a series of pulses generated by a clock circuit consisting of a crystal oscillator circuit in a main board of the electronic device. These pulses can be used for generating a system clock. It can be understood by those skilled in the art and the details thereof will be omitted here.
The first detecting module is configured to detect the i-th first interruption command issued by the real-time clock in the i-th time unit, where i denotes an index.
Here, the first interruption command can be a pulse signal generated by the RTC.
The first retrieving module is configured to retrieve, in response to the i-th first interruption command when it is determined that i is smaller than 59, the i-th first buffered image data corresponding to the i-th time unit using the second controller.
The first writing module is configured to write the i-th first buffered image data into the first region.
Here, the i-th first buffered image data corresponds to the first buffered image data for the i-th second.
The second retrieving unit is configured to, when it is determined that i is equal to 60, set i to zero and retrieve the second buffered image data in response to the 0-th first interruption command using the first controller.
The second writing module is configured to control the second controller to write the second buffered image data into the second region using the first controller and trigger the first detecting module.
The embodiment of the present disclosure can be applied in the following scenario.
In the embodiment of the present disclosure, as shown in
In an embodiment of the present disclosure, the electronic device can include one RTC, i.e., the first RTC. As shown in
It can be appreciated from the embodiments of the present application that the disclosed device and method can be implemented in alternative ways. The device embodiments as described above are illustrative only. For example, while the units have been divided in accordance with their logical functions, other divisions are possible in practice. For example, more than one unit or element can be combined or can be integrated into another system, or some features can be ignored or omitted. In addition, the coupling, direct coupling or communicative connection between various components as shown or discussed can be an indirect coupling or communicative connection via some interface, device or unit and can be electrical, mechanical or in another form.
The units described above as separated may or may not be physically separated. The components shown as units may or may not be physical units. They can be co-located or can be distributed over a number of network elements. Depending on actual requirements, some or all of the units can be selected to achieve the object of the present disclosure.
Further, all the functional units in various embodiments of the present disclosure can be integrated within one processing unit, or each of these units can be a separate unit, or two or more units can be integrated into one unit. Such integrated unit can be implemented in hardware, possibly in combination with software functional units.
It can be appreciated by those skilled in the art that some or all of the steps in the method embodiment as described above can be implemented by hardware following instructions of a program. Such program can be stored in a computer readable storage medium and, when executed, performs the steps of the above method embodiment. The storage medium may be any of various medium capable of storing program codes, such as a mobile storage device, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disc.
Alternatively, the integrated units of the present disclosure as described above can be implemented as software functional modules and sold or used as standalone produces. In this case, they can be stored in a computer readable storage medium. In view of this, the technical solutions according to the embodiments of the present application, or in other words a part thereof which makes contribution over the prior art, can be substantially embodied in a form of software product. The computer software product can be stored in a storage medium containing instructions which cause a computer device (which can be a personal computer, a server, a network device or the like) to perform one or more methods according to the embodiments of the present application or particular parts thereof. The storage medium may be any of various mediums capable of storing program codes, such as a mobile storage device, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disc.
While the embodiments of the present disclosure have been described above, the scope of the present disclosure is not limited thereto. Various modifications and alternatives can be made by those skilled in the art without departing from the scope of the present disclosure. These modifications and alternatives are to be encompassed by the scope of the present disclosure which is only defined by the claims as attached.
Number | Date | Country | Kind |
---|---|---|---|
201410153254.7 | Apr 2014 | CN | national |