CN106951054B - Application control method and device and mobile terminal - Google Patents

Application control method and device and mobile terminal Download PDF

Info

Publication number
CN106951054B
CN106951054B CN201710142845.8A CN201710142845A CN106951054B CN 106951054 B CN106951054 B CN 106951054B CN 201710142845 A CN201710142845 A CN 201710142845A CN 106951054 B CN106951054 B CN 106951054B
Authority
CN
China
Prior art keywords
application program
resolution
parameter
threshold value
white list
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710142845.8A
Other languages
Chinese (zh)
Other versions
CN106951054A (en
Inventor
袁晓日
易永鹏
苟生俊
郑志勇
甘高亭
杨海
彭德良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710142845.8A priority Critical patent/CN106951054B/en
Publication of CN106951054A publication Critical patent/CN106951054A/en
Priority to PCT/CN2017/106939 priority patent/WO2018161584A1/en
Application granted granted Critical
Publication of CN106951054B publication Critical patent/CN106951054B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3265Power saving in display device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/147Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels
    • 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/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72406User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
    • 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/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
    • 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/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Business, Economics & Management (AREA)
  • Business, Economics & Management (AREA)
  • Multimedia (AREA)
  • Environmental & Geological Engineering (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Telephone Function (AREA)
  • Liquid Crystal Display Device Control (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The embodiment of the invention discloses a method and a device for controlling an application program and a mobile terminal. The method comprises the following steps: when the application program is detected to run, determining whether the application program belongs to a preset white list; when the application program belongs to a preset white list, acquiring a first parameter influencing the viewing experience of a user according to a set period; and comparing the first parameter with a set threshold value, and adjusting the resolution of the application program according to the comparison result. By adopting the technical scheme, the problem that the power consumption of the terminal is higher due to the fact that a higher resolution ratio is still adopted when the user has low requirements on the pictures of the application program can be solved, the power consumption of the terminal is reduced, and the endurance time of the terminal is prolonged.

Description

Application control method and device and mobile terminal
Technical Field
The embodiment of the invention relates to a mobile terminal technology, in particular to a method and a device for controlling an application program and a mobile terminal.
Background
Currently, mobile terminals provide communication services, life services, entertainment services, and the like for more and more users. For example, a user installs an application such as a video player on a mobile terminal to meet the demand for watching videos anytime and anywhere. However, when the mobile terminal plays a video, the CPU and the GPU both operate with a high load and the brightness of the display screen is high, which all cause high power consumption and short endurance time of the mobile terminal.
Disclosure of Invention
The embodiment of the invention provides a control method and device of an application program and a mobile terminal, which can reduce the power consumption of the terminal and prolong the endurance time.
In a first aspect, an embodiment of the present invention provides a method for controlling an application program, including:
when the application program is detected to run, determining whether the application program belongs to a preset white list;
when the application program belongs to a preset white list, acquiring a first parameter influencing the viewing experience of a user according to a set period;
and comparing the first parameter with a set threshold value, and adjusting the resolution of the application program according to the comparison result.
In a second aspect, an embodiment of the present invention further provides an apparatus for controlling an application program, where the apparatus includes:
the application program determining module is used for determining whether the application program belongs to a preset white list or not when the application program is detected to run;
the first parameter acquisition module is used for acquiring first parameters influencing the viewing experience of a user according to a set period when the application program belongs to a preset white list;
and the resolution adjusting module is used for comparing the first parameter with a set threshold value and adjusting the resolution of the application program according to a comparison result.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the following steps when executing the computer program:
when the application program is detected to run, determining whether the application program belongs to a preset white list;
when the application program belongs to a preset white list, acquiring a first parameter influencing the viewing experience of a user according to a set period;
and comparing the first parameter with a set threshold value, and adjusting the resolution of the application program according to the comparison result.
The method comprises the steps of determining whether an application program belongs to a preset white list or not when the application program is detected to run; when the application program belongs to a preset white list, acquiring a first parameter influencing the viewing experience of a user according to a set period; and comparing the first parameter with a set threshold value, and adjusting the resolution of the application program according to the comparison result to realize the dynamic adjustment of the resolution of the application program. By adopting the technical scheme, the problem that the power consumption of the terminal is higher due to the fact that a higher resolution ratio is still adopted when the user has low requirements on the pictures of the application program can be solved, the power consumption of the terminal is reduced, and the endurance time of the terminal is prolonged.
Drawings
Fig. 1a is a flowchart of a control method of an application according to an embodiment of the present invention;
FIG. 1b is a schematic diagram of a display process according to an embodiment of the present invention;
fig. 1c is a schematic diagram of a Vsync display refresh mechanism according to an embodiment of the present invention;
fig. 2 is a flowchart of another control method for an application according to an embodiment of the present invention;
fig. 3 is a flowchart of another control method for an application according to an embodiment of the present invention;
fig. 4 is a block diagram of a control device of an application according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Fig. 1a is a flowchart of an application control method according to an embodiment of the present invention, where the embodiment is applicable to a case of adjusting a resolution of an application, the method may be executed by an application control device, the device may be implemented by software and/or hardware, generally, the device may be integrated in a mobile terminal, and the mobile terminal may be a smart phone, a tablet computer, or the like, and the method includes:
step 110, when detecting that the application program runs, determining whether the application program belongs to a preset white list.
In the embodiment of the invention, the white list is a mode for controlling the application program according to actual conditions, and the application program classified into the white list can be permitted to have certain rights. The application programs in the preset white list can be default applications of the system, and can also be supplementary application programs added by the user according to the needs of the user at the later stage. In the embodiment of the present invention, an application program capable of adjusting resolution is determined by using a white list mode, for example, application identifiers of application programs such as a video application and a game application may be stored through a preset white list.
For a terminal based on an Android system, an application program running in a foreground can be obtained through a method provided by Android. Mypid () and RunningAppProcessInfo, for example, determine the application running in the foreground. And further, acquiring the application identifier of the application program running in the foreground. The application identifier is a unique identifier that is distinguished from other applications by one application, for example, the application identifier may be an identifier distinguished from other applications by an application package name, a process name, or other settings. And querying a preset white list according to the application identifier of the application program running in the foreground, so as to determine whether the application program inputs the preset white list.
And step 120, when the application program belongs to a preset white list, acquiring a first parameter influencing the viewing experience of the user according to a set period.
In this embodiment of the present invention, the first parameter may be a parameter that affects the viewing experience of the user in the current display state of the application program, and may be, for example, display brightness. The obtaining period of the first parameter may be set according to actual requirements, and may be, for example, 1 minute.
Preferably, the first parameter includes: at least one of backlight brightness, ambient light brightness, and gray scale.
The backlight brightness may be a brightness value of light emitted by a backlight light source of a display screen of the mobile terminal, and the backlight brightness of the display screen may be obtained by a method provided by Android, for example, the backlight brightness is obtained by a getbacklight method. The ambient light brightness may be a brightness value of ambient light around the mobile terminal, and may be measured using an ambient light detection sensor of the mobile terminal. The gray scale (i.e., gray scale or color level) may be the gray scale value of the current display frame. The gray scale value refers to the color depth of a pixel point in a black-and-white image, and generally ranges from 0 to 255, white is 255, and black is 0. For a color image displayed in a screen, a gray level histogram of the color image can be determined, and the gray level distribution condition of pixel points in the color image is analyzed according to the gray level histogram. Thus, it can be determined whether the image displayed in the screen is a night view image.
And step 130, comparing the first parameter with a set threshold value, and adjusting the resolution of the application program according to the comparison result.
The set threshold may be an ambient light brightness threshold, a backlight brightness threshold, and a gray scale threshold interval. When the ambient light around the mobile terminal is detected to be lower than the ambient light brightness threshold, the backlight brightness can be automatically reduced to reduce the screen brightness, so that a comfortable viewing experience is provided for a user. Since the human eye can recognize the details of the screen in a darker environment lower than that in a normal environment, if the resolution of the screen is properly reduced, the display effect will not be affected.
When the backlight brightness is lower than the backlight brightness threshold, the details of the image displayed on the screen are not easily observed by the user, and in this case, if the resolution of the screen display image is properly reduced, the display effect is not affected.
Determining a gray value range and a pixel distribution condition corresponding to the night scene image by counting gray level histograms of the multiple night scene images, and determining a gray value threshold interval according to the gray value range and the pixel distribution condition. When the gray value range of the image displayed in the screen belongs to the gray value threshold interval and the pixel distribution condition meets the pixel distribution condition corresponding to the night view image, the currently displayed image is considered to be the night view image, and because the detail information of the night view image is not easy to be observed by the user, at this time, if the resolution of the screen display image is properly reduced, the display effect is not influenced.
Based on the above characteristics, the first parameter may be compared with a set threshold, and the resolution of the application program may be adjusted according to the comparison result. For example, when the first parameter is the brightness of the ambient light, and when the value of the first parameter is smaller than a set threshold (for example, the user may be in a dimly lit room), it may be determined that the current ambient light is dim, and the user's requirement for the resolution of the image may be reduced, so that the resolution of the application may be appropriately reduced. Similarly, if the value of the first parameter is greater than the set threshold (the user may enter a room with sufficient illumination from a dimly lit room), at this time, the backlight brightness of the mobile terminal is adaptively increased, so that some detailed information of the currently displayed picture is easily observed by the user, and therefore, the currently set resolution may not meet the requirement of the currently displayed picture for resolution, and it is necessary to appropriately increase the resolution of the application program, and the operation of adjusting the current resolution of the application program to the original resolution may be performed. For example, when a user plays a game or watches a video in a dark environment, if the current picture is a night view picture, the display detail requirement of the user on the picture is relatively low, and at this time, the resolution of the application program may be appropriately reduced to achieve the purpose of reducing the power consumption of the terminal.
For convenience of understanding, the following description will briefly describe a process from generation to display of a display screen in the Android system, taking the Android system as an example. Fig. 1b is a schematic diagram of a display process according to an embodiment of the present invention.
First, in an Application (Application) layer, each Application program (hereinafter, referred to as Application or APP) includes 1 or more layers, each Application APP1, APP2 … APPN individually executes a layer drawing (Render) operation (i.e., drawing an image on a layer) according to its Application design condition (generally determined by a corresponding installation package APK), and after the drawing operation is completed, each Application sends all the drawn layers to a layer composition module (surfaceflecger) that executes the layer composition operation.
Then, at an application Framework (Framework) layer, all layers (including visible layers and invisible layers) form a layer list, which is defined as ListAll. And the layer synthesis module selects the visible layers from the ListAll to form a visible layer list, which is defined as a DisplayList. Then, the layer composition module finds out a free FB from three frame buffers (BF or buffer for short) that can be recycled in the system, and superimposes layers included in the DisplayList together through composition (composite) operation on the free FB according to application configuration information, such as which layer should be set at the bottom, which layer should be set at the top, which area is a visible area, and which area is a transparent area, to obtain a final picture to be displayed.
Finally, at the Kernel layer, the frame to be displayed may be transmitted to the Display hardware (including the Display controller and the Display screen, so that the frame to be displayed is finally displayed on the Display screen.
In addition, the Android system introduces a synchronization (Vsync) refresh mechanism during the display refresh. Fig. 1c is a schematic diagram of a Vsync display refresh mechanism according to an embodiment of the present invention. Specifically, the Vsync refresh mechanism is a unified management mechanism that inserts a "heartbeat", i.e., a system synchronization (Vsync) signal, in the whole display process, and sends the signal to the CPU to generate a Vsync interrupt, so as to control each layer drawing operation and layer composition operation to be completed according to the heartbeat, thereby incorporating key steps in the whole display process into the Vsync. The frequency of the Vsync signal is currently typically 60 Hz. Assuming that the period of the Vsync signal is T, as shown in fig. 1c, regardless of the transmission delay of the signal, after the first Vsync signal Vsync1 arrives at the CPU, the CPU forwards the first Vsync signal Vsync1 to each application, which starts to perform a drawing operation in response to a user's touch slide on the display screen or the like; and obtaining a plurality of layers drawn by each application after each application finishes the drawing operation. After the second Vsync signal Vsync2 reaches the CPU, the CPU forwards the second Vsync signal Vsync2 to the layer composition module, and the layer composition module starts to perform layer composition operation to combine a plurality of layers drawn by each application, thereby generating a picture to be displayed. After the third Vsync signal Vsync3 reaches the CPU, the system starts to perform a display refresh and finally displays the picture to be displayed on the display screen. As can be seen from the above description, the frequencies of the Vsync signals received by the application program, the layer composition module, and the display screen are consistent and are fixed values set in advance.
In the process of drawing, synthesizing and refreshing display of a layer of a mobile terminal, 3 frame rates exist: rendering frame rate, composition frame rate, and refresh rate.
The drawing frame rate is a frame rate for triggering the layer synthesis module to perform layer synthesis after the layer is drawn, and may be understood as a frame number of layers drawn in unit time (e.g., 1 second). The drawing frame rate comprises the drawing frame rate of an application program and the drawing frame rate of a layer. There may be multiple applications running in the system, and each application may include multiple layers, for example, a video player application typically includes three layers: a layer for displaying video content, which may be defined as U1; two SurfaceView type layers, one for displaying the barrage content, may be defined as U2, and the other for displaying User Interface (UI) controls (e.g., a Play progress bar, a volume control bar, and various control buttons, etc.) and advertisements, may be defined as U3. The drawing frame rate of the application program is the number of times of drawing operations executed in unit time of the application program, wherein one drawing operation may be executed while one or more image layers are drawn. The drawing frame rate of the layer is the number of times of drawing triggered in unit time of the layer with the same number or name (such as the previous U1, U2 or U3).
The synthesis frame rate is a frame rate at which layers drawn by each application are synthesized into a picture to be displayed, and can be understood as a number of picture frames synthesized in unit time.
The refresh rate is the frame rate of refreshing the display screen of the mobile terminal. Typically, the display screen will be refreshed at a refresh rate of 60 Hz.
In this embodiment, the resolution of the image may be reduced when the application executes the layer drawing operation, and the resolution of each layer may also be reduced by the layer synthesis module before the synthesis processing is performed. Wherein the resolution reduction can be realized by image processing related means.
The method comprises the steps of determining whether an application program belongs to a preset white list or not when the application program is detected to run; when the application program belongs to a preset white list, acquiring a first parameter influencing the viewing experience of a user according to a set period; and comparing the first parameter with a set threshold value, and adjusting the resolution of the application program according to the comparison result to realize the dynamic adjustment of the resolution of the application program. By adopting the technical scheme, the problem that the power consumption of the terminal is higher due to the fact that a higher resolution ratio is still adopted when the user has low requirements on the pictures of the application program can be solved, the power consumption of the terminal is reduced, and the endurance time of the terminal is prolonged.
Fig. 2 is a flowchart of another control method for an application according to an embodiment of the present invention, where the method includes:
step 210, when detecting that the application program runs, determining whether the application program belongs to a preset white list.
And step 220, when the application program belongs to a preset white list, performing screen capture processing according to a set period to obtain a screenshot corresponding to the application program picture, and determining the gray value of a pixel point in the screenshot.
In the embodiment of the present invention, the screen capture process may be understood as reading data in the Frame Buffer, and saving the data as one picture. Because the Frame Buffer provides an interface to abstract the display device into a Frame Buffer, the synthesized display Frame is written into the Frame Buffer, and the display Frame can be displayed. By reading the data in the Frame Buffer, the screenshot processing of the application program can be realized. And when the currently started application program is determined to belong to a preset white list, triggering a screenshot thread to start, wherein the screenshot thread can be an execution unit used for acquiring the content currently displayed or to be displayed by the application program, and the screenshot thread is started to realize screenshot processing. Presetting a period, performing screen capture processing on the application program at intervals to obtain a screen capture of the application program, determining a gray histogram of the screen capture, analyzing the gray histogram of the screen capture, and determining the number of pixels and the gray value range corresponding to each gray value in the screen capture.
And step 230, comparing the gray value with a set threshold value, and adjusting the resolution of the application program according to the comparison result.
And comparing the gray value range with a set gray value threshold interval, if the gray value range belongs to the set gray value threshold interval, judging whether the pixel distribution condition is matched with the pixel distribution condition corresponding to a night scene image (pixel points are intensively distributed in a left area of a histogram), if so, determining that the current screen display picture is the night scene image, and adjusting the resolution of the application program to be a second resolution, wherein the second resolution is lower than the original resolution of the application program.
The embodiment of the invention determines the gray value of the screenshot by periodically screenshot the application program and determining whether the resolution of the application program needs to be compared or not according to the gray value by utilizing the acquired screenshot. The method is simple and easy to implement, can more accurately judge the current display picture condition of the application program, can reduce the resolution when displaying the picture of which the pixel points are intensively distributed in the left area of the histogram, can reduce the power consumption of the terminal, can increase the resolution when displaying the picture of which the pixel points are not intensively distributed in the left area of the histogram, achieves the effects of giving consideration to the display effect and reducing the power consumption, and improves the endurance time of the terminal.
Fig. 3 is a flowchart of another control method for an application according to an embodiment of the present invention, where the method includes:
step 310, when the running of the application program is detected, determining whether the application program belongs to a preset white list.
And 320, when the application program belongs to a preset white list, acquiring a first parameter influencing the viewing experience of the user according to a set period.
Step 330, comparing the first parameter with a set parameter threshold.
Illustratively, when the first parameter is the backlight brightness, the acquired backlight brightness value is compared with a set backlight brightness threshold. If the backlight brightness value is lower than the backlight brightness threshold value, a first counter and a first timer are started, and the count value of the first counter is increased by 1. And if the backlight brightness value is detected to be lower than the backlight brightness threshold value again, acquiring the count value of the first timer. When the count value does not exceed the set time length, the count value of the first counter is incremented by 1. And stopping executing the accumulation operation of the first counter when the counting value of the first timer exceeds the set time length until the backlight brightness value is detected to be lower than the backlight brightness threshold value again. Thus, the number of times that the backlight luminance value occurring within the set length of time is lower than the set backlight luminance threshold value can be determined.
It will be appreciated that when the first parameter is ambient light level, the number of times that the value of ambient light below the set threshold value of ambient light level occurs within the set length of time may be determined in a similar manner.
And when the first parameter is gray, determining the gray value of each pixel point in the acquired screenshot of the application program. Therefore, the target interval formed by the gray values with the pixel point number exceeding the set number threshold is determined. And matching the target interval with a set gray value threshold interval, if the target interval belongs to the set gray value threshold interval, considering the screenshot as a night scene image, starting a second counter and a second timer, and adding 1 to the count value of the second counter. And if the night scene image is detected again, acquiring the count value of the second timer. And when the count value does not exceed the set time length, the count value of the second counter is increased by 1. And stopping executing the accumulation operation of the second counter when the counting value of the second timer exceeds the set time length until the backlight brightness value is detected to be lower than the backlight brightness threshold value again. Thus, the number of times the night view image appears within the set time length can be determined.
And 340, determining the frequency that the first parameter is lower than the set parameter threshold value within the set time length.
According to the times that the first parameter appearing in the set time length is lower than the set parameter threshold value, the frequency that the first parameter is lower than the set parameter threshold value in the set time length can be determined.
For example, when the first parameter is the backlight brightness, the frequency of the backlight brightness value being lower than the set backlight brightness threshold value within the set time length may be determined according to the number of times the backlight brightness value appearing within the set time length is lower than the set backlight brightness threshold value.
When the first parameter is the ambient light brightness, the frequency that the ambient light brightness value is lower than the set ambient light brightness threshold value within the set time length may be determined according to the number of times that the ambient light brightness value is lower than the set ambient light brightness threshold value within the set time length.
When the first parameter is gray scale, according to the number of times of the night scene images appearing in the set time length, the frequency that the target interval formed by the gray scale values with the pixel point number exceeding the set number threshold value belongs to the set gray scale value threshold interval in the set time length can be determined.
And step 350, judging whether the frequency exceeds a preset frequency threshold value. If yes, go to step 360; otherwise step 370 is performed.
And step 360, adjusting the resolution of the application program to a second resolution.
Step 370, the resolution of the application is maintained as the first resolution.
Wherein the first resolution is greater than the second resolution.
The embodiment of the invention adopts a method for calculating the frequency that the first parameter is lower than the set parameter threshold value within the set time length to determine whether the resolution ratio needs to be adjusted or not, so that the resolution ratio can be adjusted according to the adjustment. If the frequency of the first parameter lower than the set parameter threshold exceeds the preset frequency threshold, the resolution can be reduced, and the power consumption of the terminal can be reduced. If the current time does not exceed the preset time, the higher resolution ratio is kept unchanged, the effects of considering both the display effect and reducing the power consumption are achieved, and the endurance time of the terminal is prolonged.
Optionally, after the adjusting the resolution of the application program to the second resolution, the method further includes:
if the frequency that the first parameter is lower than the set parameter threshold value within the set time length is lower than the preset frequency threshold value, the resolution of the application program is adjusted to be the first resolution.
If the frequency that the first parameter is lower than the set parameter threshold within the set time length is detected to be lower than the preset frequency threshold, the second resolution is considered to possibly fail to ensure the display effect of the application program, and the resolution can be increased to the first resolution at the moment. Illustratively, assuming a scene where a user plays a game in a dim room, the frequency of the backlight brightness being less than the set parameter threshold exceeds a preset frequency threshold, the resolution of the game application is adjusted to a second resolution (the second resolution is lower than the first resolution). If the user plays the game in a room with sufficient light after a period of time, at the moment, the frequency that the backlight brightness is lower than the set parameter threshold is lower than the preset frequency threshold, the resolution of the game application is adjusted to the first resolution, and a good display effect is ensured.
Fig. 4 is a block diagram of an application control apparatus according to an embodiment of the present invention, where the application control apparatus may be implemented by software and/or hardware, and may be generally integrated in a mobile terminal, and may control the mobile terminal by performing a method for controlling an application. As shown in fig. 4, the apparatus includes an application determining module 410, a first parameter acquiring module 420, and a resolution adjusting module 430.
An application determining module 410, configured to determine whether an application belongs to a preset white list when it is detected that the application runs;
a first parameter obtaining module 420, configured to obtain, according to a set period, a first parameter that affects viewing experience of a user when the application belongs to a preset white list;
and a resolution adjustment module 430, configured to compare the first parameter with a set threshold, and adjust the resolution of the application according to the comparison result.
Further, the first parameter includes: at least one of backlight brightness, ambient light brightness, and gray scale.
Further, the first parameter obtaining module 420 is specifically configured to:
and when the first parameter is gray, performing screen capture processing according to a set period to obtain a screen capture corresponding to an application program picture, and determining the gray value of a pixel point in the screen capture.
Further, the resolution adjustment module 430 is specifically configured to:
judging whether the first parameter is lower than a set parameter threshold value;
starting a timer when the first parameter is detected to be lower than a set parameter threshold value;
judging whether the frequency of the first parameter lower than a set parameter threshold exceeds a preset frequency threshold within a set time length;
if so, adjusting the resolution of the application program to be a second resolution, and forbidding a timer, otherwise, maintaining the resolution of the application program to be the first resolution unchanged; wherein the first resolution is greater than the second resolution.
Further, the resolution adjustment module 430 is further configured to:
after the resolution of the application program is adjusted to the second resolution, if it is detected that the frequency of the first parameter lower than the set parameter threshold within the set time length is lower than a preset frequency threshold, the resolution of the application program is adjusted to the first resolution.
The control device of the application program can execute the control method of the application program provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to a control method of an application program provided in any embodiment of the present invention.
The embodiment of the invention also provides a mobile terminal which can comprise the control device of the application program provided by any embodiment of the invention. Fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention, and as shown in fig. 5, the mobile terminal may include: a housing (not shown), a memory 501, a Central Processing Unit (CPU) 502 (also called a processor, hereinafter referred to as CPU), a computer program stored in the memory 501 and operable on the processor 502, a circuit board (not shown), and a power circuit (not shown). The circuit board is arranged in a space enclosed by the shell; the CPU502 and the memory 501 are provided on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the terminal; the memory 501 is used for storing a computer program which can run on the processor; the CPU502 reads and executes the computer program stored in the memory 501.
The terminal further includes: peripheral interface 503, RF (Radio Frequency) circuitry 505, audio circuitry 506, speakers 511, power management chip 508, input/output (I/O) subsystem 509, touch screen 512, other input/control devices 510, and external port 504, which communicate via one or more communication buses or signal lines 507.
It should be understood that the illustrated terminal 500 is only one example of a terminal, and that the terminal 500 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes the mobile terminal 500 for controlling an application program according to the present embodiment in detail, where the mobile terminal 500 is a mobile phone as an example.
A memory 501, the memory 501 being accessible by the CPU502, the peripheral interface 503, and the like, the memory 501 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 503, the peripheral interface 503 may connect input and output peripherals of the device to the CPU502 and the memory 501.
An I/O subsystem 509, which I/O subsystem 509 may connect input and output peripherals on the device, such as the touch screen 502 (equivalent to the screen in the above embodiment) and other input/control devices 510, to the peripheral interface 503. The I/O subsystem 509 may include a display controller 5091 and one or more input controllers 5092 for controlling other input/control devices 510. Where one or more input controllers 5092 receive electrical signals from or send electrical signals to other input/control devices 510, the other input/control devices 510 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is noted that the input controller 5092 may be connected to any one of: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 512, which is an input interface and an output interface between the user terminal and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 5091 in the I/O subsystem 509 receives electrical signals from the touch screen 512 or transmits electrical signals to the touch screen 512. The touch screen 512 detects a contact on the touch screen, and the display controller 5091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 512, that is, implements a human-computer interaction, and the user interface object displayed on the touch screen 512 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 505 is mainly used to establish communication between the mobile phone and the wireless network (i.e., network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, the RF circuitry 505 receives and transmits RF signals, also referred to as electromagnetic signals, through which the RF circuitry 505 converts electrical signals to or from electromagnetic signals and communicates with communication networks and other devices. The RF circuitry 505 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 506 is mainly used to receive audio data from the peripheral interface 503, convert the audio data into an electric signal, and transmit the electric signal to the speaker 511.
The speaker 511 is used for restoring the voice signal received by the handset from the wireless network through the RF circuit 505 to sound and playing the sound to the user.
And a power management chip 508 for supplying power and managing power to the hardware connected to the CPU502, the I/O subsystem, and the peripheral interfaces.
The CPU502 provided in the embodiment of the present invention implements the following steps when executing the computer program stored in the memory 501:
when the application program is detected to run, determining whether the application program belongs to a preset white list;
when the application program belongs to a preset white list, acquiring a first parameter influencing the viewing experience of a user according to a set period;
and comparing the first parameter with a set threshold value, and adjusting the resolution of the application program according to the comparison result.
The mobile terminal can execute the control method of the application program provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to a control method of an application program provided in any embodiment of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (9)

1. A method for controlling an application program, comprising:
when the application program is detected to run, determining whether the application program belongs to a preset white list;
when the application program belongs to a preset white list, acquiring a first parameter influencing the viewing experience of a user according to a set period; the first parameter comprises at least one of backlight brightness of a display screen and gray scale of a current display picture;
and comparing the first parameter with a set parameter threshold value, and adjusting the resolution of the application program according to the comparison result.
2. The method of claim 1, wherein when the first parameter is gray scale, the obtaining the first parameter affecting the user's viewing experience according to the set period comprises:
and performing screen capture processing according to a set period to obtain a screen capture corresponding to an application program picture, and determining the gray value of a pixel point in the screen capture.
3. The method of claim 1, wherein comparing the first parameter with a set parameter threshold and adjusting the resolution of the application according to the comparison result comprises:
comparing the first parameter with a set parameter threshold value, and determining the frequency that the first parameter is lower than the set parameter threshold value within a set time length;
judging whether the frequency exceeds a preset frequency threshold value;
if so, adjusting the resolution of the application program to be a second resolution, otherwise, maintaining the resolution of the application program to be the first resolution unchanged; wherein the first resolution is greater than the second resolution.
4. The method of claim 3, after adjusting the resolution of the application to the second resolution, further comprising:
if the frequency that the first parameter is lower than the set parameter threshold value within the set time length is lower than the preset frequency threshold value, the resolution of the application program is adjusted to be the first resolution.
5. An apparatus for controlling an application program, comprising:
the application program determining module is used for determining whether the application program belongs to a preset white list or not when the application program is detected to run;
the first parameter acquisition module is used for acquiring first parameters influencing the viewing experience of a user according to a set period when the application program belongs to a preset white list; the first parameter comprises at least one of backlight brightness of a display screen and gray scale of a current display picture;
and the resolution adjusting module is used for comparing the first parameter with a set parameter threshold value and adjusting the resolution of the application program according to a comparison result.
6. The apparatus of claim 5, wherein the first parameter obtaining module is specifically configured to:
and when the first parameter is gray, performing screen capture processing according to a set period to obtain a screen capture corresponding to an application program picture, and determining the gray value of a pixel point in the screen capture.
7. The apparatus of claim 5, wherein the resolution adjustment module is specifically configured to:
comparing the first parameter with a set parameter threshold value, and determining the frequency that the first parameter is lower than the set parameter threshold value within a set time length;
judging whether the frequency exceeds a preset frequency threshold value;
if so, adjusting the resolution of the application program to be a second resolution, otherwise, maintaining the resolution of the application program to be the first resolution unchanged; wherein the first resolution is greater than the second resolution.
8. The apparatus of claim 7, wherein the resolution adjustment module is further configured to:
after the resolution of the application program is adjusted to the second resolution, if it is detected that the frequency of the first parameter lower than the set parameter threshold within the set time length is lower than a preset frequency threshold, the resolution of the application program is adjusted to the first resolution.
9. A mobile terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the computer program implements the steps of:
when the application program is detected to run, determining whether the application program belongs to a preset white list;
when the application program belongs to a preset white list, acquiring a first parameter influencing the viewing experience of a user according to a set period; the first parameter comprises at least one of backlight brightness of a display screen and gray scale of a current display picture;
and comparing the first parameter with a set parameter threshold value, and adjusting the resolution of the application program according to the comparison result.
CN201710142845.8A 2017-03-10 2017-03-10 Application control method and device and mobile terminal Active CN106951054B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710142845.8A CN106951054B (en) 2017-03-10 2017-03-10 Application control method and device and mobile terminal
PCT/CN2017/106939 WO2018161584A1 (en) 2017-03-10 2017-10-19 Application program control method, device, medium, and electronic apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710142845.8A CN106951054B (en) 2017-03-10 2017-03-10 Application control method and device and mobile terminal

Publications (2)

Publication Number Publication Date
CN106951054A CN106951054A (en) 2017-07-14
CN106951054B true CN106951054B (en) 2020-03-10

Family

ID=59467250

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710142845.8A Active CN106951054B (en) 2017-03-10 2017-03-10 Application control method and device and mobile terminal

Country Status (2)

Country Link
CN (1) CN106951054B (en)
WO (1) WO2018161584A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106951054B (en) * 2017-03-10 2020-03-10 Oppo广东移动通信有限公司 Application control method and device and mobile terminal
CN108154853A (en) * 2017-11-27 2018-06-12 国网北京市电力公司 Liquid crystal on silicon shows the control method of equipment
CN108648259B (en) * 2018-03-27 2022-07-15 Oppo广东移动通信有限公司 Image drawing method and device, storage medium and intelligent terminal
CN109147715A (en) * 2018-08-28 2019-01-04 武汉华星光电技术有限公司 For reducing the method for display panel power consumption and the display device of low-power consumption
CN113051010B (en) * 2019-12-28 2023-04-28 Oppo(重庆)智能科技有限公司 Application picture adjustment method and related device in wearable equipment
CN112631140B (en) * 2020-12-15 2022-08-26 重庆电子工程职业学院 Household electricity utilization management control system
CN112612507A (en) * 2020-12-23 2021-04-06 中国工商银行股份有限公司 Gray scale verification method, device, electronic equipment and storage medium
CN115915543B (en) * 2022-11-25 2024-08-30 深圳爱图仕创新科技股份有限公司 Light effect realization method, device, equipment and medium of intelligent lamp
CN117579887B (en) * 2023-11-23 2024-07-26 南月(广州)机器人科技有限公司 Terminal intelligent control system for competition of Internet of things

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103631359A (en) * 2013-11-15 2014-03-12 联想(北京)有限公司 Information processing method and electronic equipment
CN104243720A (en) * 2013-06-24 2014-12-24 中兴通讯股份有限公司 Electricity saving method of terminal device and terminal device
CN104777980A (en) * 2015-04-22 2015-07-15 广东欧珀移动通信有限公司 Method and device for electricity saving of high-resolution terminal
CN104978947A (en) * 2015-07-17 2015-10-14 京东方科技集团股份有限公司 Display state adjusting method, display state adjusting device and display device
CN106097952A (en) * 2016-06-29 2016-11-09 努比亚技术有限公司 A kind of terminal display screen method for adjusting resolution and terminal

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7580033B2 (en) * 2003-07-16 2009-08-25 Honeywood Technologies, Llc Spatial-based power savings
US9158358B2 (en) * 2013-06-04 2015-10-13 Qualcomm Incorporated System and method for intelligent multimedia-based thermal power management in a portable computing device
CN103593155B (en) * 2013-11-06 2016-09-07 华为终端有限公司 Display frame generating method and terminal device
CN103956145B (en) * 2014-03-27 2015-07-08 努比亚技术有限公司 Terminal display mode determining method and apparatus
CN104820537B (en) * 2015-04-22 2018-01-26 广东欧珀移动通信有限公司 A kind of method and device for adjusting display effect of terminal
CN106951054B (en) * 2017-03-10 2020-03-10 Oppo广东移动通信有限公司 Application control method and device and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104243720A (en) * 2013-06-24 2014-12-24 中兴通讯股份有限公司 Electricity saving method of terminal device and terminal device
CN103631359A (en) * 2013-11-15 2014-03-12 联想(北京)有限公司 Information processing method and electronic equipment
CN104777980A (en) * 2015-04-22 2015-07-15 广东欧珀移动通信有限公司 Method and device for electricity saving of high-resolution terminal
CN104978947A (en) * 2015-07-17 2015-10-14 京东方科技集团股份有限公司 Display state adjusting method, display state adjusting device and display device
CN106097952A (en) * 2016-06-29 2016-11-09 努比亚技术有限公司 A kind of terminal display screen method for adjusting resolution and terminal

Also Published As

Publication number Publication date
CN106951054A (en) 2017-07-14
WO2018161584A1 (en) 2018-09-13

Similar Documents

Publication Publication Date Title
CN106951054B (en) Application control method and device and mobile terminal
US10952146B2 (en) Method for dynamically adjusting energy-saving grade of terminal, non-transitory computer-readable storage medium, and terminal
CN106919401B (en) Method and device for dynamically adjusting resolution and mobile terminal
CN106941563B (en) control method and device for refresh rate of mobile terminal and mobile terminal
CN106933328B (en) Method and device for controlling frame rate of mobile terminal and mobile terminal
CN109157839B (en) Frame rate regulation and control method, device, storage medium and terminal
CN106933587B (en) Layer drawing control method and device and mobile terminal
CN106919402B (en) Mobile terminal control method and device and mobile terminal
CN106919358B (en) Display control method and device of mobile terminal and mobile terminal
CN106658691B (en) Display control method and device and mobile terminal
US10863213B2 (en) Method and device for controlling frame rate of electronic device, storage medium, and electronic device
CN106933327B (en) Method and device for controlling frame rate of mobile terminal and mobile terminal
US20180261183A1 (en) Method and apparatus for adjusting backlight brightness of screen, and mobile terminal
CN107484231B (en) Screen parameter adjusting method, device, terminal and computer readable storage medium
US20200008142A1 (en) Method for Controlling Terminal, and Terminal
CN106941621B (en) Mobile terminal control method and device and mobile terminal
US11145238B2 (en) Method for controlling image graphing of terminal, nontransitory computer-readable storage medium, and terminal
CN106657680A (en) Mobile terminal frame rate control method and device and mobile terminal
CN108762465B (en) Frame rate self-adaptive adjusting method and device, storage medium and intelligent terminal
CN106937371B (en) Method and device for saving electricity by switching background gray scales and mobile terminal
CN113163141B (en) Display control method, display control device, television and computer-readable storage medium
CN108693948B (en) Frame rate adjusting method and device, terminal equipment and storage medium
CN113791684B (en) Method for acquiring application frame rate, refreshing device, mobile terminal and storage medium
CN106851017B (en) Method and device for adjusting energy-saving level of terminal and mobile terminal
CN117316079A (en) Display equipment, dimming partition control method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong Opel Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant