Method and device for displaying locked interface and mobile terminal
AssigneeBeijing Kingsoft Internet Security Software Co., Ltd.
InventorYongchao Zeng
Life of this patent
Estimating the term…
Abstract
The present disclosure relates to a method and a device for displaying a locked interface, and a mobile terminal. The method includes: presenting an unlocking interface to a user, so that the user inputs an unlocking password through the unlocking interface; in a process of receiving the unlocking password, comparing a received part of the unlocking password with a set unlocking password to determine a correct degree value of the received part of the unlocking password; and displaying a locked content interface and/or the unlocking interface according to the correct degree value.
Claims9
A method for displaying a locked interface, comprising:
- presenting an unlocking interface to a user, so that the user inputs an unlocking password through the unlocking interface;
- in a process of receiving the unlocking password, comparing a received part of the unlocking password with a set unlocking password to determine a correct degree value of the received part of the unlocking password;
- and
- displaying a locked content interface and/or the unlocking interface according to the correct degree value,
- wherein displaying a locked content interface and/or the unlocking interface according to the correct degree value comprises:
- displaying the unlocking interface when the correct degree value is less than a first threshold value, where the first threshold value is less than 100%;
- determining a blending ratio according to the correct degree value when the correct degree value is between the first threshold value and 100%, and blending transparently the locked content interface with the unlocking interface according to the blending ratio to display a blended interface;
- and
- displaying the locked content interface when the correct degree reaches 100%;
- wherein, blending transparently the locked content interface with the unlocking interface according to the blending ratio to display a blended interface comprises:
- separating three color components of red, blue and green of pixels comprised in the locked content interface and three color components of red, blue and green of pixels comprised in the unlocking interface;
- multiplying the three color components of the pixels comprised in the locked content interface by the blending ratio respectively to obtain a first array of the three color components of the pixels comprised in the locked content interface;
- multiplying the three color components of the pixels comprised in the unlocking interface by an inverse value of the blending ratio respectively to obtain a second array of the three color components of the pixels comprised in the unlocking interface;
- adding values of the three color components in the first array together with values of the three color components in the second array respectively according to the corresponding color components to obtain a third array of the three color components;
- merging the three color components of red, blue and green into each pixel to output according to values of the three color components in the third array;
- or dividing values of the three color components in the third array by the blending ratio to obtain a fourth array of the three color components, and merging the three color components of red, blue and green into each pixel to output according to values of the three color components in the fourth array.
A mobile terminal, comprising:
- a housing, a processor, a receiver, a memory, a circuit board and a power supply circuit, wherein,
- the circuit board is enclosed by the housing;
- the processor and the memory are positioned on the circuit board;
- the power supply circuit is configured to provide power for respective circuits or components of the mobile terminal;
- the memory is configured to store executable program codes;
- the processor is configured to run a program corresponding to the executable program codes by reading the executable program codes stored in the memory, to perform the a method for displaying a locked interface;
- wherein the method comprises:
- presenting an unlocking interface to a user, so that the user inputs an unlocking password through the unlocking interface;
- in a process of receiving the unlocking password, comparing a received part of the unlocking password with a set unlocking password to determine a correct degree value of the received part of the unlocking password;
- and
- displaying a locked content interface and/or the unlocking interface according to the correct degree value,
- wherein displaying a locked content interface and/or the unlocking interface according to the correct degree value comprises:
- displaying the unlocking interface when the correct degree value is less than a first threshold value, where the first threshold value is less than 100%;
- determining a blending ratio according to the correct degree value when the correct degree value is between the first threshold value and 100%, and blending transparently the locked content interface with the unlocking interface according to the blending ratio to display a blended interface;
- and
- displaying the locked content interface when the correct degree reaches 100%, and
- the receiver is configured to receive the unlocking password;
- wherein the processor is configured to blend transparently the locked content interface with the unlocking interface according to the blending ratio to display a blended interface by acts of:
- separating three color components of red, blue and green of pixels comprised in the locked content interface and three color components of red, blue and green of pixels comprised in the unlocking interface;
- multiplying the three color components of the pixels comprised in the locked content interface by the blending ratio respectively to obtain a first array of the three color components of the pixels comprised in the locked content interface;
- multiplying the three color components of the pixels comprised in the unlocking interface by an inverse value of the blending ratio respectively to obtain a second array of the three color components of the pixels comprised in the unlocking interface;
- adding values of the three color components in the first array together with values of the three color components in the second array respectively according to the corresponding color components to obtain a third array of the three color components;
- merging the three color components of red, blue and green into each pixel to output according to values of the three color components in the third array;
- or dividing values of the three color components in the third array by the blending ratio to obtain a fourth array of the three color components, and merging the three color components of red, blue and green into each pixel to output according to values of the three color components in the fourth array.
A non-transitory computer-readable storage medium, configured to store one or more modules that, when the one or more modules are executed by an electronic device, cause the electronic device to perform a method for displaying a locked interface the method comprising:
- presenting an unlocking interface to a user, so that the user inputs an unlocking password through the unlocking interface;
- in a process of receiving the unlocking password, comparing a received part of the unlocking password with a set unlocking password to determine a correct degree value of the received part of the unlocking password;
- and
- displaying a locked content interface and/or the unlocking interface according to the correct degree value,
- wherein displaying a locked content interface and/or the unlocking interface according to the correct degree value comprises:
- displaying the unlocking interface when the correct degree value is less than a first threshold value, where the first threshold value is less than 100%;
- determining a blending ratio according to the correct degree value when the correct degree value is between the first threshold value and 100%, and blending transparently the locked content interface with the unlocking interface according to the blending ratio to display a blended interface;
- and
- displaying the locked content interface when the correct degree reaches 100%;
- wherein, blending transparently the locked content interface with the unlocking interface according to the blending ratio to display a blended interface comprises:
- separating three color components of red, blue and green of pixels comprised in the locked content interface and three color components of red, blue and green of pixels comprised in the unlocking interface;
- multiplying the three color components of the pixels comprised in the locked content interface by the blending ratio respectively to obtain a first array of the three color components of the pixels comprised in the locked content interface;
- multiplying the three color components of the pixels comprised in the unlocking interface by an inverse value of the blending ratio respectively to obtain a second array of the three color components of the pixels comprised in the unlocking interface;
- adding values of the three color components in the first array together with values of the three color components in the second array respectively according to the corresponding color components to obtain a third array of the three color components;
- merging the three color components of red, blue and green into each pixel to output according to values of the three color components in the third array;
- or dividing values of the three color components in the third array by the blending ratio to obtain a fourth array of the three color components, and merging the three color components of red, blue and green into each pixel to output according to values of the three color components in the fourth array.
Dependencies are inferred from the claim text.