CN108255369B - Method and device for displaying fingerprint icon in screen and computer readable storage medium - Google Patents

Method and device for displaying fingerprint icon in screen and computer readable storage medium Download PDF

Info

Publication number
CN108255369B
CN108255369B CN201810012521.7A CN201810012521A CN108255369B CN 108255369 B CN108255369 B CN 108255369B CN 201810012521 A CN201810012521 A CN 201810012521A CN 108255369 B CN108255369 B CN 108255369B
Authority
CN
China
Prior art keywords
state
mobile terminal
determining
current
display
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
CN201810012521.7A
Other languages
Chinese (zh)
Other versions
CN108255369A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201810012521.7A priority Critical patent/CN108255369B/en
Publication of CN108255369A publication Critical patent/CN108255369A/en
Application granted granted Critical
Publication of CN108255369B publication Critical patent/CN108255369B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure relates to a display method and device of an on-screen fingerprint icon and a computer readable storage medium, and relates to the technical field of mobile terminals. The method comprises the following steps: detecting the current state of the mobile terminal through a sensor arranged in the mobile terminal; determining the state of the fingerprint icon based on the current state of the mobile terminal; the states of the fingerprint icons comprise a display state and a non-display state, the display state is used for indicating that the fingerprint icons are displayed in the display screen of the mobile terminal, and the non-display state is used for indicating that the fingerprint icons are not displayed in the display screen of the mobile terminal. Therefore, in the embodiment of the disclosure, whether the fingerprint icon is displayed in the display screen can be determined according to the state of the mobile terminal, so that the fingerprint icon does not need to be displayed on the display screen in a normally bright mode, the time for displaying the fingerprint icon on the display screen is reduced, and the problems of screen burn and image retention of the display screen caused by long display time can be effectively solved.

Description

Method and device for displaying fingerprint icon in screen and computer readable storage medium
Technical Field
The present disclosure relates to the field of mobile terminal technologies, and in particular, to a method and an apparatus for displaying an on-screen fingerprint icon, and a computer-readable storage medium.
Background
As more and more mobile terminals begin to adopt full-screen, the on-screen fingerprint identification technology has become the trend of the mobile terminal fingerprint identification technology. The in-screen fingerprint identification technology is that a fingerprint identification chip is arranged in a display screen of the mobile terminal, and a user performs fingerprint identification by touching the display screen. Currently, due to the limitation of the technology of the fingerprint identification chip, when the in-screen fingerprint identification technology is adopted, the display screen of the mobile terminal needs to adopt an OLED (Organic Light-Emitting Diode) display screen, and the fingerprint identification chip can be disposed on a lower layer of a certain area of the OLED display screen. When the mobile terminal is in a screen-off state, the area provided with the fingerprint identification chip can display the fingerprint icon in a normally bright mode, so that a user can start a fingerprint unlocking function by touching the fingerprint icon.
Disclosure of Invention
In order to overcome the problems of screen burning and image sticking caused by the constant bright display of the fingerprint icons in the screen in the related art, the disclosure provides a display method and device of the fingerprint icons in the screen and a computer readable storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided a method for displaying an on-screen fingerprint icon, the method including:
detecting the current state of the mobile terminal through a sensor arranged in the mobile terminal;
determining the state of a fingerprint icon based on the current state of the mobile terminal;
the states of the fingerprint icons comprise a display state and a non-display state, the display state is used for indicating that the fingerprint icons are displayed in the display screen of the mobile terminal, and the non-display state is used for indicating that the fingerprint icons are not displayed in the display screen of the mobile terminal.
Optionally, an acceleration sensor is disposed in the mobile terminal;
the detecting the current state of the mobile terminal through a sensor arranged in the mobile terminal comprises the following steps:
when receiving a first acceleration collected by the acceleration sensor at the current moment, obtaining a second acceleration collected last time before the current moment;
if the difference value between the first acceleration and the second acceleration is smaller than a first preset value, determining that the current state of the mobile terminal is a static state;
and if the difference value between the first acceleration and the second acceleration is larger than a second preset value, determining that the current state of the mobile terminal is a violent motion state.
Optionally, the determining the state of the fingerprint icon based on the current state of the mobile terminal includes:
when the current state of the mobile terminal is the static state or the violent motion state, determining that the state of the fingerprint icon is a non-display state;
and when the current state of the mobile terminal is not the static state and not the violent motion state, determining that the state of the fingerprint icon is a display state.
Optionally, a touch sensor is arranged at a designated position of a side frame of the mobile terminal;
the detecting the current state of the mobile terminal through a sensor arranged in the mobile terminal comprises the following steps:
detecting a touch signal by the touch sensor, the touch signal being a signal generated when a user touches the designated location;
if the touch signal is detected, determining that the current state of the mobile terminal is a handheld state;
and if the touch signal is not detected, determining that the current state of the mobile terminal is not a handheld state.
Optionally, the determining the state of the fingerprint icon based on the current state of the mobile terminal includes:
when the current state of the mobile terminal is a handheld state, determining that the state of the fingerprint icon is a display state;
and when the current state of the mobile terminal is not the handheld state, determining that the state of the fingerprint icon is a non-display state.
Optionally, a distance sensor is arranged in the mobile terminal;
the detecting the current state of the mobile terminal through a sensor arranged in the mobile terminal comprises the following steps:
detecting the distance between the mobile terminal and a shelter through the distance sensor at the current moment;
when the distance between the mobile terminal and a shelter is smaller than a preset distance, determining that the current state of the mobile terminal is a sheltered state;
correspondingly, the determining the state of the fingerprint icon based on the current state of the mobile terminal comprises:
and when the current state of the mobile terminal is the shielded state, determining that the state of the fingerprint icon is the non-display state.
Optionally, after the detecting, by the distance sensor, the distance between the mobile terminal and a shelter at the current moment, the method further includes:
when the distance between the mobile terminal and a shelter is not smaller than the preset distance, acquiring the state of the mobile terminal which is determined for the last time before the current moment;
when the state of the mobile terminal which is determined last time before the current moment is a shielded state, determining that the current state of the mobile terminal is a shielding release state;
correspondingly, the determining the state of the fingerprint icon based on the current state of the mobile terminal comprises:
and when the current state of the mobile terminal is the shielding release state, determining that the state of the fingerprint icon is the display state.
According to a second aspect of the embodiments of the present disclosure, there is provided a display apparatus of an on-screen fingerprint icon, the apparatus including:
the mobile terminal comprises a detection module, a processing module and a control module, wherein the detection module is used for detecting the current state of the mobile terminal through a sensor arranged in the mobile terminal;
the determining module is used for determining the state of the fingerprint icon based on the current state of the mobile terminal;
the states of the fingerprint icons comprise a display state and a non-display state, the display state is used for indicating that the fingerprint icons are displayed in the display screen of the mobile terminal, and the non-display state is used for indicating that the fingerprint icons are not displayed in the display screen of the mobile terminal.
Optionally, an acceleration sensor is disposed in the mobile terminal;
the detection module comprises:
the first acquisition submodule is used for acquiring a second acceleration acquired last time before the current moment when receiving the first acceleration acquired by the acceleration sensor at the current moment;
the first determining submodule is used for determining that the current state of the mobile terminal is a static state if the difference value between the first acceleration and the second acceleration is smaller than a first preset value;
the first determining submodule is further configured to determine that the current state of the mobile terminal is a severe motion state if a difference between the first acceleration and the second acceleration is greater than a second preset value.
Optionally, the determining module includes:
the second determining submodule is used for determining that the state of the fingerprint icon is a non-display state when the current state of the mobile terminal is the static state or the violent motion state;
the second determining submodule is further configured to determine that the state of the fingerprint icon is a display state when the current state of the mobile terminal is not the static state and not the violent motion state.
Optionally, a touch sensor is arranged at a designated position of a side frame of the mobile terminal;
the detection module comprises:
a first detection sub-module, configured to detect a touch signal through the touch sensor, where the touch signal is a signal generated when a user touches the designated location;
the third determining submodule is used for determining that the current state of the mobile terminal is a handheld state if the touch signal is detected;
the third determining submodule is further configured to determine that the current state of the mobile terminal is not a handheld state if the touch signal is not detected.
Optionally, the determining module includes:
the fourth determining submodule is used for determining that the state of the fingerprint icon is a display state when the current state of the mobile terminal is a handheld state;
the fourth determining submodule is further configured to determine that the state of the fingerprint icon is a non-display state when the current state of the mobile terminal is not a handheld state.
Optionally, a distance sensor is arranged in the mobile terminal;
the detection module comprises:
the second detection submodule is used for detecting the distance between the mobile terminal and a shelter through the distance sensor at the current moment;
the fifth determining submodule is used for determining that the current state of the mobile terminal is a shielded state when the distance between the mobile terminal and a shielding object is smaller than the preset distance;
accordingly, the determining means comprises:
and the sixth determining submodule is used for determining that the state of the fingerprint icon is a non-display state when the current state of the mobile terminal is a blocked state.
Optionally, the detection module further includes:
the second obtaining submodule is used for obtaining the state of the mobile terminal which is determined for the last time before the current time when the distance between the mobile terminal and the shelter is not smaller than the preset distance;
the fifth determining submodule is further configured to determine that the current state of the mobile terminal is an occlusion release state when the state of the mobile terminal determined last before the current time is an occluded state;
accordingly, the determining means comprises:
and the sixth determining submodule is used for determining that the state of the fingerprint icon is a display state when the current state of the mobile terminal is the shielding release state.
According to a third aspect of the embodiments of the present disclosure, there is provided a display apparatus of an on-screen fingerprint icon, the apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the steps of any one of the methods of the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon instructions which, when executed by a processor, implement the steps of any one of the methods of the first aspect described above.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product which, when run on a computer, causes the computer to perform any of the methods of the first aspect described above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: in the embodiment of the disclosure, the state of the mobile terminal may be detected by a sensor disposed in the mobile terminal, and then, the state of the fingerprint icon may be determined based on the state of the mobile terminal, where the state of the fingerprint icon includes a display state and a non-display state, the display state is used to indicate that the fingerprint icon is displayed in the display screen of the mobile terminal, and the non-display state is used to indicate that the fingerprint icon is displayed in the display screen of the mobile terminal.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow chart illustrating a method of displaying an on-screen fingerprint icon in accordance with an exemplary embodiment.
FIG. 2 is a flow chart illustrating a method of displaying an on-screen fingerprint icon in accordance with an exemplary embodiment.
FIG. 3 is a flow chart illustrating a method of displaying an on-screen fingerprint icon in accordance with an exemplary embodiment.
FIG. 4 is a flowchart illustrating a method of displaying an on-screen fingerprint icon in accordance with an exemplary embodiment.
FIG. 5A is a block diagram illustrating a display device of an on-screen fingerprint icon according to one exemplary embodiment.
FIG. 5B is a block diagram illustrating a detection module according to an exemplary embodiment.
FIG. 5C is a block diagram illustrating a detection module according to an exemplary embodiment.
FIG. 5D is a block diagram illustrating a detection module according to an exemplary embodiment.
FIG. 6 is a block diagram illustrating a display device of an on-screen fingerprint icon in accordance with an exemplary embodiment.
Detailed Description
To make the objects, technical solutions and advantages of the present disclosure more apparent, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
Before explaining the embodiments of the present disclosure in detail, an application scenario of the embodiments of the present disclosure will be described.
Currently, fingerprint recognition technology has been widely used in mobile terminals. The fingerprint identification technology can be mainly divided into three types, namely key-type fingerprint identification, glass inner layer fingerprint identification and in-screen fingerprint identification, the key-type fingerprint identification mainly means that a fingerprint identification chip is arranged on a rear panel of the mobile terminal or a Home key of the mobile terminal, the glass inner layer fingerprint identification means that the fingerprint identification chip is arranged on a lower layer of a glass panel of the mobile terminal, and the in-screen fingerprint identification means that the fingerprint identification chip is arranged in a display screen of the mobile terminal. When the fingerprint identification technology in the screen is adopted, the fingerprint icon can be displayed in the area of the display screen provided with the fingerprint identification chip, so that a user can conveniently touch the fingerprint icon in the area to start the fingerprint unlocking function. The method for displaying the fingerprint icon in the screen provided by the embodiment of the disclosure can be used in the application scene, namely, the fingerprint icon is displayed in the area of the display screen provided with the fingerprint identification chip.
In the related art, when the mobile terminal is in a screen-off state, a fingerprint icon is displayed in an area where the fingerprint identification chip is arranged in the mobile terminal in a normally bright mode, and thus, the area is continuously in a screen-on state for a long time, so that serious afterimage and screen burning problems can occur to an OLED display screen.
Next, a method for displaying an on-screen fingerprint icon according to an embodiment of the present disclosure will be described.
Fig. 1 is a flowchart illustrating a method for displaying an on-screen fingerprint icon, which may be used in a mobile terminal, as shown in fig. 1, according to an exemplary embodiment, and includes the following steps.
In step 101, a current state of the mobile terminal is detected by a sensor provided in the mobile terminal.
The mobile terminal can be provided with one or more of an acceleration sensor, a gravity sensor, a touch sensor, a distance sensor and an optical sensor, and a fingerprint identification chip is arranged below a display screen of the mobile terminal.
In the embodiment of the disclosure, the mobile terminal may obtain different current states of the mobile terminal through different sensors. For example, a motion state of the mobile terminal may be detected using an acceleration sensor and/or a gravity sensor, or whether the mobile terminal is currently in a hand-held state may be detected using a touch sensor, or whether the mobile terminal is currently in an occluded state may be detected using a distance sensor and/or an optical sensor.
In addition, in the embodiment of the present disclosure, the mobile terminal may detect whether the mobile terminal is currently in a standby screen, and when detecting that the mobile terminal is currently in the standby screen, the mobile terminal may detect the current state of the mobile terminal through a set sensor.
In step 102, the state of the fingerprint icon is determined based on the current state of the mobile terminal.
The states of the fingerprint icons comprise a display state and a non-display state, the display state is used for indicating that the fingerprint icons are displayed in the display screen of the mobile terminal, and the non-display state is used for indicating that the fingerprint icons are not displayed in the display screen of the mobile terminal.
In the embodiment of the disclosure, the state of the mobile terminal may be detected by a sensor disposed in the mobile terminal, and then, the state of the fingerprint icon may be determined based on the state of the mobile terminal, where the state of the fingerprint icon includes a display state and a non-display state, the display state is used to indicate that the fingerprint icon is displayed in the display screen of the mobile terminal, and the non-display state is used to indicate that the fingerprint icon is displayed in the display screen of the mobile terminal.
Optionally, an acceleration sensor is arranged in the mobile terminal;
detecting a current state of the mobile terminal through a sensor provided in the mobile terminal, including:
when receiving a first acceleration collected by an acceleration sensor at the current moment, obtaining a second acceleration collected last time before the current moment;
if the difference value between the first acceleration and the second acceleration is smaller than a first preset value, determining that the current state of the mobile terminal is a static state;
and if the difference value between the first acceleration and the second acceleration is larger than a second preset value, determining that the current state of the mobile terminal is a violent motion state.
Optionally, determining the state of the fingerprint icon based on the current state of the mobile terminal includes:
when the current state of the mobile terminal is a static state or a violent motion state, determining that the state of the fingerprint icon is a non-display state;
and when the current state of the mobile terminal is not a static state and is not a violent motion state, determining that the state of the fingerprint icon is a display state.
Optionally, a touch sensor is arranged at a designated position of a side frame of the mobile terminal;
detecting a current state of the mobile terminal through a sensor provided in the mobile terminal, including:
detecting a touch signal by a touch sensor, the touch signal being a signal generated at a designated position touched by a user;
if the touch signal is detected, determining that the current state of the mobile terminal is a handheld state;
and if the touch signal is not detected, determining that the current state of the mobile terminal is not the handheld state.
Optionally, determining the state of the fingerprint icon based on the current state of the mobile terminal includes:
when the current state of the mobile terminal is a handheld state, determining that the state of the fingerprint icon is a display state;
and when the current state of the mobile terminal is not the handheld state, determining that the state of the fingerprint icon is a non-display state.
Optionally, a distance sensor is arranged in the mobile terminal;
detecting a current state of the mobile terminal through a sensor provided in the mobile terminal, including:
detecting the distance between the mobile terminal and the shelter through a distance sensor at the current moment;
when the distance between the mobile terminal and the shelter is smaller than the preset distance, determining that the current state of the mobile terminal is a sheltered state;
accordingly, determining the state of the fingerprint icon based on the current state of the mobile terminal includes:
and when the current state of the mobile terminal is the shielded state, determining that the state of the fingerprint icon is the non-display state.
Optionally, after detecting the distance between the mobile terminal and the shelter through the distance sensor at the current moment, the method further includes:
when the distance between the mobile terminal and the shelter is not smaller than the preset distance, acquiring the state of the mobile terminal which is determined for the last time before the current time;
when the state of the mobile terminal which is determined last time before the current moment is the shielded state, determining that the current state of the mobile terminal is the shielding release state;
accordingly, determining the state of the fingerprint icon based on the current state of the mobile terminal includes:
and when the current state of the mobile terminal is the shielding release state, determining that the state of the fingerprint icon is the display state.
All the above optional technical solutions can be combined arbitrarily to form optional embodiments of the present disclosure, and the embodiments of the present disclosure are not described in detail again.
In the embodiment of the present disclosure, various sensors may be provided in the mobile terminal, for example, an acceleration sensor, a gravity sensor, a touch sensor, an optical sensor, and the like may be provided, and the mobile terminal may determine a current state of the mobile terminal using different sensors, thereby deciding whether to display a fingerprint icon according to the detected state. An implementation manner in which the mobile terminal detects a current motion state of the mobile terminal using an acceleration sensor and/or a gravity sensor, thereby displaying a fingerprint icon according to the current motion state will be described with reference to fig. 2.
Fig. 2 is a diagram illustrating a method for displaying an on-screen fingerprint icon, which may be applied to a mobile terminal, according to an exemplary embodiment, and as shown in fig. 2, the method includes the steps of:
in step 201, a current motion state of the mobile terminal is detected by an acceleration sensor and/or a gravity sensor provided in the mobile terminal.
In the embodiment of the disclosure, the mobile terminal may detect the current motion state of the mobile terminal through the acceleration collected by the acceleration sensor. The mobile terminal can receive a first acceleration acquired by the acceleration sensor at the current moment, and when the first acceleration is received, the mobile terminal can acquire a second acceleration acquired last time before the current moment; and if the difference value between the first acceleration and the second acceleration is smaller than a first preset value, determining that the current state of the mobile terminal is a static state. If the difference between the first acceleration and the second acceleration is greater than a second preset value, it may be determined that the current state of the mobile terminal is a violent motion state.
Generally, when the mobile terminal is in a severe motion state, there will be a large difference between the acceleration measured by the acceleration sensor at the present moment and the acceleration measured at the last moment. For example, when a user runs with the mobile terminal, there will be a large difference in the acceleration measured by the acceleration sensor at different times. When the mobile terminal is in a stationary state, the acceleration will be kept at a fixed value, that is, the accelerations measured by the acceleration sensor at the current time and the last time will be equal. Further, in consideration of the measurement deviation of the acceleration sensor, even if the accelerations measured at the present time and the previous time are not completely equal, the difference between the two accelerations does not differ too much. Based on this, after the mobile terminal receives the first acceleration, the mobile terminal can acquire a second acceleration acquired by the acceleration sensor at the latest time at the current moment, the first acceleration and the second acceleration are compared, if the difference between the first acceleration and the second acceleration is smaller than a first preset difference, it is indicated that the change of the acceleration of the mobile terminal is small, and at this time, the mobile terminal can be determined to be in a static state. If the difference value between the first acceleration and the second acceleration is larger than a second preset value, the acceleration of the mobile terminal is greatly changed, and at this time, it can be determined that the mobile terminal is in a violent motion state. And if the difference between the first acceleration and the second acceleration is neither less than the first preset value nor greater than the second preset value, it indicates that the mobile terminal is currently moving, but does not belong to a violent movement, that is, in this case, the current state of the mobile terminal is neither a static state nor a violent movement state.
The first preset value may refer to a maximum deviation that may exist in accelerations acquired at two moments before and after the mobile terminal is in a stationary state, and the second preset value may be a minimum difference value, determined through experiments, of the accelerations of the user at the two moments before and after the user holds the mobile terminal to swing the arm during the running process. Of course, the second preset value may also be a minimum difference value of the accelerations of the front and rear time points measured by tests in other severe motion scenes, which is not specifically limited in the embodiment of the present disclosure.
Optionally, in this embodiment of the present disclosure, when the mobile terminal detects the current motion state through the acceleration sensor, after receiving the first acceleration, the mobile terminal may obtain a plurality of second accelerations within a preset time period, and then, the mobile terminal may draw a time variation curve of the plurality of second accelerations and the first angular velocity, so as to determine the current motion state of the mobile terminal according to the time variation curve. Wherein the preset time period is from a certain time before the current time to the current time.
If the plotted change curve is a horizontal straight line, it indicates that the acceleration of the mobile terminal is always a fixed value in the preset time period, and at this time, the mobile terminal may be considered to be in a stationary state. If the obtained change curve fluctuates up and down and the mean value of the difference values between adjacent wave crests and wave troughs is larger than a second preset value, the mobile terminal can be considered to be in a violent motion state.
It should be noted that, in the embodiment of the present disclosure, the mobile terminal may detect the current motion state of the mobile terminal not only through the acceleration sensor, but also through the gravity sensor.
When the mobile terminal detects the current motion state by adopting the gravity sensor, the mobile terminal can receive the gravity components in three directions of a coordinate system established by the mobile terminal and collected by the gravity sensor, then the mobile terminal can obtain the gravity components in three directions collected last time before the current sampling moment, and compare the gravity components in the same direction, if the difference between the gravity components in the same direction is less than a third preset value, the mobile terminal can be determined to be in a static state at present. If any one of the differences between the gravity components in the same direction is greater than a fourth preset value, it may be determined that the mobile terminal is currently in a severe motion state.
Optionally, in a possible case, in order to more accurately determine the current motion state of the mobile terminal, the mobile terminal may also detect the current motion state of the mobile terminal by combining the acceleration sensor and the gravity sensor. For example, if the difference between the first acceleration and the second acceleration is smaller than a first preset difference, and the difference between the two gravity components in each direction is smaller than a third preset value, it may be said that the mobile terminal is currently in a motion state. If the difference between the first acceleration and the second acceleration is greater than a second preset difference, and the difference between two gravity components in any one of the three directions is greater than a fourth preset value, it may be determined that the mobile terminal is currently in a violent motion state.
In step 202, the state of the fingerprint icon is determined based on the current motion state of the mobile terminal.
After determining the current motion state of the mobile terminal, the state of the fingerprint icon may be determined according to the motion state. That is, the mobile terminal may decide whether to display the fingerprint icon in the display screen according to the current motion state.
When the mobile terminal is in a static state, the mobile terminal may be currently placed on a desktop or placed in another place, and at this time, the user may not need to start the fingerprint unlocking function, so that the mobile terminal may not display the fingerprint icon on the display screen, that is, the mobile terminal may determine the state of the fingerprint icon as a non-display state.
When the mobile terminal is in a violent motion state, the user may be in a violent motion state, at this time, on one hand, the user may not need to start the fingerprint unlocking function, and on the other hand, the user may not conveniently perform the fingerprint unlocking, so that, in this case, the mobile terminal may not display the fingerprint icon in the display screen, that is, the state of the fingerprint icon is determined as a non-display state.
When the current state of the mobile terminal is neither a static state nor a violent motion state, because the user is convenient to perform the fingerprint unlocking operation at the moment, and in this case, the possibility that the user needs to start the fingerprint unlocking function is also higher than the possibility of performing the fingerprint unlocking in the static state or the violent motion state, the mobile terminal can display the fingerprint icon on the display screen, that is, the mobile terminal can determine the state of the fingerprint icon as the display state.
It should be noted that, in the embodiment of the present disclosure, the non-display state of the fingerprint icon may refer to that the mobile terminal does not display the fingerprint icon in the display screen in the rest screen state, that is, if the mobile terminal is currently in the standby rest screen state, when it is determined that the state of the fingerprint icon is the non-display state, the mobile terminal may keep the entire display screen in the rest screen state. Similarly, the display state of the fingerprint icon may mean that the rest areas are in a screen-off state when the mobile terminal is in a standby screen-off state, and the fingerprint icon is displayed in the area provided with the fingerprint identification chip. That is, if the mobile terminal is currently in a standby screen-off state, when it is determined that the state of the fingerprint icon is the display state, the mobile terminal may light up an area of the display screen where the fingerprint identification chip is disposed and display the fingerprint icon in the area, and other areas of the display screen are still in the screen-off state.
Further, when the state of the fingerprint icon is determined to be a non-display state, that is, the mobile terminal does not display the fingerprint icon in the screen state, if the user needs to start the fingerprint unlocking function at this time, the user can trigger the mobile terminal to display the fingerprint icon by touching the display screen, that is, after the state of the fingerprint icon is determined to be the non-display state, the mobile terminal can detect whether a touch signal is received or not by the display screen, and if the touch signal is received, the fingerprint icon can be displayed in an area in which the fingerprint identification chip is arranged in the display screen.
In the embodiment of the disclosure, the mobile terminal may detect the current motion state of the mobile terminal through the acceleration sensor and/or the gravity sensor, and determine the state of the fingerprint icon according to the current motion state of the mobile terminal, so that the mobile terminal may display the fingerprint icon when the possibility that a user needs to start an unlocking fingerprint function is high, and may not display the fingerprint icon when the other possibilities are low, thereby satisfying the requirement of convenience of user fingerprint unlocking, and at the same time, effectively reducing the display time of the mobile terminal for displaying the fingerprint icon in the standby process, saving the system power consumption, and effectively improving the problems of display screen afterimage and screen burn caused by displaying the fingerprint icon for a long time.
The above embodiment describes a specific implementation process of detecting the current motion state of the mobile terminal through the acceleration sensor and/or the gravity sensor and determining the state of the fingerprint icon according to the current motion state of the mobile terminal, and next, a specific implementation process of detecting whether the mobile terminal is in a handheld state by using the touch sensor and determining whether to display the fingerprint icon according to the detected current state will be described with reference to fig. 3.
FIG. 3 is a flow chart illustrating a method of displaying an on-screen fingerprint icon in accordance with an exemplary embodiment. The method can be applied to a mobile terminal, as shown in fig. 3, and comprises the following steps:
in step 301, it is detected whether the current state of the mobile terminal is a handheld state through a touch sensor provided in the mobile terminal.
In the embodiments of the present disclosure, the touch sensor may be disposed at a designated position of a side bezel of the mobile terminal. The touch sensor may be a pressure type touch sensor, or may be a capacitance or resistance type touch sensor, wherein the designated position may be determined according to a position that a finger may touch when the user holds the mobile terminal. When a user touches a designated location, a touch sensor located at the designated location may generate a corresponding touch signal.
The mobile terminal can detect a touch signal through the touch sensor, and if the touch signal is detected, the current state of the mobile terminal can be determined to be a handheld state, that is, the mobile terminal is currently held by a user; if the touch signal is not detected, it may be determined that the current state of the mobile terminal is not a handheld state, that is, the user is not currently holding the mobile terminal.
Optionally, in this embodiment of the present disclosure, in order to avoid that the signal detected by the touch sensor is generated by a user's false touch, when the mobile terminal detects the touch signal, the duration of the touch signal may be further determined, if the duration of the touch signal is greater than a preset duration, the current state of the mobile terminal may be determined to be the handheld state, and if the duration of the touch signal is not greater than the preset duration, the current state of the mobile terminal may be considered not to be the handheld state.
In step 302, when the current state of the mobile terminal is the handheld state, the state of the fingerprint icon is determined to be the display state.
When the current state of the mobile terminal is the handheld state, it indicates that the possibility that the user needs to start the fingerprint unlocking function is high at present, and at this time, the mobile terminal may display the fingerprint icon in the area where the fingerprint identification chip is disposed in the display screen, that is, the mobile terminal may determine the state of the fingerprint icon as the display state.
It should be noted that, in the embodiment of the present disclosure, the display state may refer to that the remaining area is in a screen saver state when the mobile terminal is in a standby screen saver state, and the fingerprint icon is displayed in the area where the fingerprint identification chip is disposed. That is, when the mobile terminal is in a standby screen-saving state and the current state of the mobile terminal is determined to be a display state, the area provided with the fingerprint identification chip is lightened, the fingerprint icon is displayed in the area, and other areas of the display screen are still in a screen-saving state.
In step 303, when the current state of the mobile terminal is not the handheld state, the state of the fingerprint icon is determined to be a non-display state.
Considering that a user generally holds the mobile terminal when needing to unlock the fingerprint, when the current state of the mobile terminal is not the held state, it is indicated that the possibility that the user needs to start the fingerprint unlocking function currently is low, and at this time, the mobile terminal may not need to display the fingerprint icon on the display screen, that is, the mobile terminal may determine the state of the fingerprint icon as the non-display state.
It should be noted that the non-display state of the fingerprint icon may refer to that the mobile terminal does not display the fingerprint icon in the display screen in the rest screen state, that is, if the mobile terminal is currently in the standby rest screen state, when it is determined that the state of the fingerprint icon is the non-display state, the mobile terminal may keep the entire display screen in the rest screen state.
Further, when the state of the fingerprint icon is determined to be a non-display state, that is, the mobile terminal does not display the fingerprint icon in the screen state, if the user needs to start the fingerprint unlocking function at this time, the user can trigger the mobile terminal to display the fingerprint icon by touching the display screen, that is, after the state of the fingerprint icon is determined to be the non-display state, the mobile terminal can detect whether a touch signal is received or not by the display screen, and if the touch signal is received, the fingerprint icon can be displayed in an area in which the fingerprint identification chip is arranged in the display screen.
In the embodiment of the disclosure, the mobile terminal may detect whether the mobile terminal is in a handheld state through the touch sensor, and if the mobile terminal is in the handheld state, the state of the fingerprint icon is determined to be a display state, otherwise, the state of the fingerprint icon is determined to be a non-display state. Because the possibility that the user carries out fingerprint unlocking in the handheld state of the mobile terminal is far greater than the possibility that the mobile terminal is not in the handheld state, the mobile terminal determines whether to display a fingerprint icon by judging whether the mobile terminal is in the handheld state, the fingerprint icon can be displayed under the condition that the possibility that the user needs to start an unlocking fingerprint function is high, the fingerprint icon is not displayed under the condition that the other possibilities are low, the requirement of convenience of fingerprint unlocking of the user is met, meanwhile, the display time of the mobile terminal for displaying the fingerprint icon in the standby process can be effectively reduced, the system power consumption is saved, and the problems of display screen residual image and screen burn caused by long-time display of the fingerprint icon can be effectively solved.
It should be noted that, in the embodiment of the present disclosure, the mobile terminal may simultaneously combine the acceleration sensor, the gravity sensor and the touch sensor to detect the current state of the mobile terminal. That is, in practical applications, the display method shown in fig. 2 and the display method shown in fig. 3 may be combined to determine whether to display the fingerprint icon. For example, when the mobile terminal detects that the mobile terminal is not in a static state or a violent motion state at present, the mobile terminal can also detect whether the mobile terminal is in a handheld state at present, and if the mobile terminal is in the handheld state at present, the fingerprint icon is displayed. Or, when detecting that the mobile terminal is currently in the handheld state, the mobile terminal may further detect whether the mobile terminal is currently in a violent motion state, and if the mobile terminal is currently in the violent motion state, the fingerprint icon is not displayed. The above are only examples of several combinations given by the embodiment of the present disclosure, and in practical applications, the two manners may be flexibly fused to determine the time when the fingerprint icon needs to be displayed more accurately, so that the display time of the fingerprint icon is reduced, and the display time of the fingerprint icon is more suitable for the user's requirement.
The above embodiment describes a specific implementation process of detecting whether the mobile terminal is in a handheld state by using the touch sensor, and then determining whether to display the fingerprint icon according to the detected current state. Next, a specific implementation of detecting a current state of the mobile terminal using a distance sensor and/or an optical sensor and determining a state of a fingerprint icon according to the detected state will be described with reference to fig. 4.
FIG. 4 is a flowchart illustrating a method of displaying an on-screen fingerprint icon in accordance with an exemplary embodiment. The method can be applied to a mobile terminal, as shown in fig. 4, and comprises the following steps:
in step 401, the current state of the mobile terminal is detected by a distance sensor and/or an optical sensor.
In the embodiment of the present disclosure, a distance sensor and/or an optical sensor may also be provided in the mobile terminal. Through the distance sensor and/or the optical sensor, the mobile terminal can detect whether the mobile terminal is in a shielded state currently.
When the mobile terminal detects the current state by adopting the distance sensor, the mobile terminal can detect the distance between the mobile terminal and the shielding object at the current moment by the distance sensor, and when the distance between the mobile terminal and the shielding object is smaller than the preset distance, the current state of the mobile terminal can be determined to be the shielded state.
Generally, the distance sensor is disposed on a front panel of the mobile terminal and near a top of the mobile terminal, and the distance sensor generally corresponds to an effective detection distance, that is, when a distance between an object and the mobile terminal reaches the effective detection distance, the distance sensor can detect the object, and at this time, the object is called a shelter. Based on this, the mobile terminal can detect whether a shelter exists before the front panel of the mobile terminal through the distance sensor at the current moment, if the shelter exists, the distance sensor can detect the distance between the mobile terminal and the shelter and report the detected distance to the mobile terminal, and the mobile terminal can compare the distance reported by the distance sensor with the preset distance. If the distance detected by the distance sensor is smaller than the preset distance, it indicates that the mobile terminal is shielded by the current shielding object, and at this time, the mobile terminal can determine that the current state is the shielded state. Wherein the preset distance may be smaller than an effective detection distance of the distance sensor.
Further, when the distance between the mobile terminal and the distance sensor is not less than the preset distance, it indicates that the mobile terminal is not blocked by the blocking object at the current time, and at this time, the mobile terminal may further obtain the state of the mobile terminal determined last time before the current time, so as to determine whether the mobile terminal has just been switched from the blocked state to the current non-blocked state. If the acquired state of the mobile terminal determined last time is the blocked state, it may be stated that the blocking object before the mobile terminal is removed at the current time, that is, the mobile terminal is currently in the blocked release state.
Optionally, in the embodiment of the present disclosure, when an optical sensor is disposed in the mobile terminal, the mobile terminal may further detect the current state through the optical sensor.
Generally, when a mobile terminal is shielded, the ambient light level detected by the mobile terminal through an optical sensor will be less than the ambient light level detected when the mobile terminal is not shielded. Based on this, the mobile terminal may detect the current ambient light brightness through the optical sensor, and when the detected brightness is less than the preset brightness, it may be determined that the current state of the mobile terminal is the blocked state. Otherwise, it may be determined that the mobile terminal is currently in a non-occluded state. The preset brightness may be different according to the current time. For example, the preset brightness will be different when the current time is day and the current time is night. And, the preset brightness may be a minimum average brightness when the mobile terminal is not occluded, which is determined through experiments in different scenes.
Optionally, in order to more accurately determine the current state of the mobile terminal, the mobile terminal may further employ a distance sensor and an optical sensor to determine whether the mobile terminal is currently in an occluded state. For example, if the distance between the shielding object detected by the distance sensor and the mobile terminal is less than the preset distance, and the current ambient light brightness detected by the optical sensor is less than the preset brightness, the mobile terminal may determine that the mobile terminal is currently in the shielded state. If the distance between the shelter detected by the distance sensor and the mobile terminal is not less than the preset distance, or the current ambient light brightness detected by the optical sensor is not less than the preset brightness, the mobile terminal can determine that the mobile terminal is in a non-sheltered state. The above are only examples of several combinations given by the embodiments of the present disclosure, and in practical applications, the two sensors may be flexibly fused to determine the current state of the mobile terminal more accurately, so as to provide a more accurate basis for determining the state of the fingerprint icon.
In step 402, the state of the fingerprint icon is determined based on the current state of the mobile terminal.
When the mobile terminal determines that the current state is the blocked state, the mobile terminal may be currently in a user call state, or placed in a user pocket or bag, or the mobile terminal may be held in the hand of the user with the front panel facing the palm of the user, or may be in other blocked scenes. Under the above scenario, the possibility that the user needs to perform fingerprint unlocking is often low, and based on this, the mobile terminal may determine the state of the fingerprint icon as a non-display state, that is, under the condition that the mobile terminal is waiting for screen saving, the whole display screen of the mobile terminal may be kept in a screen saving state.
Further, when the mobile terminal determines that the current state is the shielding release state, considering that in a daily use scene, the mobile terminal is switched from the shielded state to the shielding release state, that is, the time when the user removes the shielding object before the mobile terminal, at this time, the possibility that the user needs to perform fingerprint unlocking is high, therefore, the mobile terminal may set the state of the fingerprint icon to the display state, that is, the mobile terminal may light up the area of the display screen where the fingerprint identification chip is disposed and display the fingerprint icon in the area, while the other areas of the display screen are still in the screen-saving state.
Further, when the state of the fingerprint icon is determined to be a non-display state, that is, the mobile terminal does not display the fingerprint icon in the screen state, if the user needs to start the fingerprint unlocking function at this time, the user can trigger the mobile terminal to display the fingerprint icon by touching the display screen, that is, after the state of the fingerprint icon is determined to be the non-display state, the mobile terminal can detect whether a touch signal is received or not by the display screen, and if the touch signal is received, the fingerprint icon can be displayed in an area in which the fingerprint identification chip is arranged in the display screen.
In the embodiment of the disclosure, the mobile terminal may detect whether the current state of the mobile terminal is a blocked state through the distance sensor and the optical sensor, when the current state of the mobile terminal is the blocked state, the mobile terminal may determine the state of the fingerprint icon as a non-display state, when the current state of the mobile terminal is not the blocked state, the mobile terminal may further determine whether the current state is a blockage-released state, and if the current state is the blockage-released state, the state of the fingerprint icon may be determined as a display state. Because the mobile terminal has low possibility of fingerprint unlocking by a user in a shielded state and has high possibility of fingerprint unlocking in a shielding release state, namely shielding release moment, accordingly, the mobile terminal can determine whether to display the fingerprint icon by determining whether the mobile terminal is in an occluded state and in an occlusion release state, and thus, it can be ensured that the fingerprint icon is displayed in case the user has a high probability of needing to activate the unlock fingerprint function, and is not displayed in case the remaining probability is low, the method has the advantages that the requirement of convenience for unlocking the fingerprint of the user is met, meanwhile, the display time of the fingerprint icon displayed by the mobile terminal in the standby process can be effectively reduced, the system power consumption is saved, and the problems of display screen image retention and screen burning caused by long-time display of the fingerprint icon can be effectively solved.
It should be noted that, in the embodiment of the present disclosure, the mobile terminal may simultaneously combine an acceleration sensor, a gravity sensor, a touch sensor, a distance sensor, and an optical sensor to detect the current state of the mobile terminal. That is, in practical applications, the display methods shown in fig. 2, 3 and 4 may be combined to determine whether to display the fingerprint icon more accurately. The specific combination mode may be flexibly combined according to different needs of different scenarios, and the embodiment of the present disclosure is not specifically limited herein.
Next, a description will be given of a display device of an on-screen fingerprint icon provided by an embodiment of the present disclosure.
FIG. 5A is a block diagram illustrating a display device of an on-screen fingerprint icon according to one exemplary embodiment. Referring to fig. 5A, the apparatus includes a detection module 501 and a determination module 502.
A detection module 501, configured to detect a current state of the mobile terminal through a sensor provided in the mobile terminal;
a determining module 502, configured to determine a state of the fingerprint icon based on a current state of the mobile terminal;
the states of the fingerprint icons comprise a display state and a non-display state, the display state is used for indicating that the fingerprint icons are displayed in the display screen of the mobile terminal, and the non-display state is used for indicating that the fingerprint icons are not displayed in the display screen of the mobile terminal.
Optionally, an acceleration sensor is arranged in the mobile terminal;
referring to fig. 5B, the detection module 501 includes:
the first obtaining submodule 5011 is configured to, when receiving a first acceleration collected by an acceleration sensor at a current time, obtain a second acceleration collected last before the current time;
a first determining submodule 5012 for determining that the current state of the mobile terminal is a stationary state if a difference between the first acceleration and the second acceleration is less than a first preset value;
the first determining sub-module 5012 is further configured to determine that the current state of the mobile terminal is a strong motion state if a difference between the first acceleration and the second acceleration is greater than a second preset value.
Optionally, the determining module 502 comprises:
the second determining submodule is used for determining the state of the fingerprint icon as a non-display state when the current state of the mobile terminal is a static state or a violent motion state;
and the second determining submodule is also used for determining the state of the fingerprint icon as a display state when the current state of the mobile terminal is not a static state and is not a violent motion state.
Optionally, a touch sensor is arranged at a designated position of a side frame of the mobile terminal;
referring to fig. 5C, the detection module 501 includes:
a first detection submodule 5013 for detecting a touch signal by the touch sensor, the touch signal being a signal generated at a designated position touched by a user;
a third determining sub-module 5014 for determining that the current state of the mobile terminal is the hand-held state if the touch signal is detected;
the third determining sub-module 5014 is further configured to determine that the current state of the mobile terminal is not the handheld state if the touch signal is not detected.
Optionally, the determining module 502 comprises:
the fourth determining submodule is used for determining the state of the fingerprint icon as a display state when the current state of the mobile terminal is a handheld state;
and the fourth determining submodule is also used for determining that the state of the fingerprint icon is a non-display state when the current state of the mobile terminal is not a handheld state.
Optionally, a distance sensor is arranged in the mobile terminal;
referring to fig. 5D, the detection module 501 includes:
the second detection submodule 5015 is configured to detect a distance between the mobile terminal and the barrier through the distance sensor at the current moment;
the fifth determining submodule 5016 is configured to determine that the current state of the mobile terminal is the shielded state when the distance between the mobile terminal and the shielding object is smaller than the preset distance;
accordingly, the determining module 502 includes:
and the sixth determining submodule is used for determining that the state of the fingerprint icon is a non-display state when the current state of the mobile terminal is a blocked state.
Optionally, the detection module 501 further includes:
the second obtaining submodule is used for obtaining the state of the mobile terminal which is determined for the last time before the current time when the distance between the mobile terminal and the shielding object is not smaller than the preset distance;
the fifth determining submodule is further used for determining that the current state of the mobile terminal is an occlusion release state when the state of the mobile terminal determined last before the current time is an occluded state;
accordingly, the determining module 502 includes:
and the sixth determining submodule is used for determining that the state of the fingerprint icon is the display state when the current state of the mobile terminal is the shielding release state.
In the embodiment of the disclosure, the state of the mobile terminal may be detected by a sensor disposed in the mobile terminal, and then, the state of the fingerprint icon may be determined based on the state of the mobile terminal, where the state of the fingerprint icon includes a display state and a non-display state, the display state is used to indicate that the fingerprint icon is displayed in the display screen of the mobile terminal, and the non-display state is used to indicate that the fingerprint icon is displayed in the display screen of the mobile terminal.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
FIG. 6 is a block diagram illustrating a display device 600 for an on-screen fingerprint icon according to an example embodiment. For example, the apparatus 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 6, apparatus 600 may include one or more of the following components: processing component 602, memory 604, power component 606, multimedia component 608, audio component 610, input/output (I/O) interface 612, sensor component 614, and communication component 616.
The processing component 602 generally controls overall operation of the device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 can include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operations at the apparatus 600. Examples of such data include instructions for any application or method operating on device 600, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 604 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power supply component 606 provides power to the various components of device 600. The power components 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power supplies for the apparatus 600.
The multimedia component 608 includes a screen that provides an output interface between the device 600 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 600 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 610 is configured to output and/or input audio signals. For example, audio component 610 includes a Microphone (MIC) configured to receive external audio signals when apparatus 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 614 includes one or more sensors for providing status assessment of various aspects of the apparatus 600. For example, the sensor component 614 may detect an open/closed state of the device 600, the relative positioning of components, such as a display and keypad of the device 600, the sensor component 614 may also detect a change in position of the device 600 or a component of the device 600, the presence or absence of user contact with the device 600, orientation or acceleration/deceleration of the device 600, and a change in temperature of the device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communications between the apparatus 600 and other devices in a wired or wireless manner. The apparatus 600 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the method of displaying the on-screen fingerprint icons provided by the embodiments shown in fig. 1-4 and described above.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 604 comprising instructions, executable by the processor 620 of the apparatus 600 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer-readable storage medium, wherein instructions of the storage medium, when executed by a processor of a mobile terminal, enable the mobile terminal to perform the method for displaying an on-screen fingerprint icon provided in the above embodiments.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (12)

1. A method for displaying an on-screen fingerprint icon, the method comprising:
detecting whether the mobile terminal is currently in a standby screen-off state or not in real time, and detecting the current state of the mobile terminal through an acceleration sensor arranged in the mobile terminal if the mobile terminal is detected to be currently in the standby screen-off state;
when receiving a first acceleration collected by the acceleration sensor at the current moment, obtaining a second acceleration collected last time before the current moment;
if the difference value between the first acceleration and the second acceleration is smaller than a first preset value, determining that the current state of the mobile terminal is a static state;
if the difference value between the first acceleration and the second acceleration is larger than a second preset value, determining that the current state of the mobile terminal is a violent motion state, wherein the first preset value is used for indicating the maximum deviation of the acceleration collected at the front moment and the rear moment of the mobile terminal in the static state, and the second preset value is used for indicating the minimum difference value of the acceleration at the front moment and the rear moment when the mobile terminal is held in the violent motion state to swing the arm, which is determined through experiments;
determining the state of a fingerprint icon based on the current state of the mobile terminal;
when the current state of the mobile terminal is the static state or the violent motion state, determining that the state of the fingerprint icon is a non-display state;
and when the current state of the mobile terminal is not the static state and not the violent motion state, determining that the state of the fingerprint icon is a display state, wherein the display state is used for indicating that the mobile terminal displays the fingerprint icon in an area provided with a fingerprint identification chip in the standby information screen state, and the rest areas are information screen states.
2. The method according to claim 1, wherein a touch sensor is arranged at a designated position of a side frame of the mobile terminal;
the detecting the current state of the mobile terminal through a sensor arranged in the mobile terminal comprises the following steps:
detecting a touch signal by the touch sensor, the touch signal being a signal generated when a user touches the designated location;
if the touch signal is detected, determining that the current state of the mobile terminal is a handheld state;
and if the touch signal is not detected, determining that the current state of the mobile terminal is not a handheld state.
3. The method of claim 2, wherein determining the state of the fingerprint icon based on the current state of the mobile terminal comprises:
when the current state of the mobile terminal is a handheld state, determining that the state of the fingerprint icon is a display state;
and when the current state of the mobile terminal is not the handheld state, determining that the state of the fingerprint icon is a non-display state.
4. The method according to claim 1, wherein a distance sensor is provided in the mobile terminal;
the detecting the current state of the mobile terminal through a sensor arranged in the mobile terminal comprises the following steps:
detecting the distance between the mobile terminal and a shelter through the distance sensor at the current moment;
when the distance between the mobile terminal and a shelter is smaller than a preset distance, determining that the current state of the mobile terminal is a sheltered state;
correspondingly, the determining the state of the fingerprint icon based on the current state of the mobile terminal comprises:
and when the current state of the mobile terminal is the shielded state, determining that the state of the fingerprint icon is the non-display state.
5. The method according to claim 4, wherein after detecting the distance between the mobile terminal and the obstruction by the distance sensor at the current moment, further comprising:
when the distance between the mobile terminal and a shelter is not smaller than the preset distance, acquiring the state of the mobile terminal which is determined for the last time before the current moment;
when the state of the mobile terminal which is determined last time before the current moment is a shielded state, determining that the current state of the mobile terminal is a shielding release state;
correspondingly, the determining the state of the fingerprint icon based on the current state of the mobile terminal comprises:
and when the current state of the mobile terminal is the shielding release state, determining that the state of the fingerprint icon is the display state.
6. An on-screen fingerprint icon display device, the device comprising:
the mobile terminal comprises a detection module, a display module and a display module, wherein the detection module is used for detecting whether the mobile terminal is in a standby screen-off state or not in real time, and detecting the current state of the mobile terminal through an acceleration sensor arranged in the mobile terminal if the mobile terminal is detected to be in the standby screen-off state;
the first acquisition submodule is used for acquiring a second acceleration acquired last time before the current moment when receiving the first acceleration acquired by the acceleration sensor at the current moment;
the first determining submodule is used for determining that the current state of the mobile terminal is a static state if the difference value between the first acceleration and the second acceleration is smaller than a first preset value, wherein the first preset value is used for indicating the maximum deviation of the acceleration acquired by the mobile terminal at the front moment and the rear moment in the static state, and the second preset value is used for indicating the minimum difference value of the acceleration at the front moment and the rear moment when the mobile terminal is held in a violent motion state and a swing arm is swung, which is determined through experiments;
the first determining submodule is further configured to determine that the current state of the mobile terminal is a violent motion state if a difference between the first acceleration and the second acceleration is greater than a second preset value;
the determining module is used for determining the state of the fingerprint icon based on the current state of the mobile terminal;
the second determining submodule is used for determining that the state of the fingerprint icon is a non-display state when the current state of the mobile terminal is the static state or the violent motion state;
the second determining submodule is further configured to determine that the state of the fingerprint icon is a display state when the current state of the mobile terminal is not the static state and not the violent motion state, where the display state is used to indicate that the mobile terminal displays the fingerprint icon in an area provided with a fingerprint identification chip in the standby screen-saving state, and the rest areas are screen-saving states.
7. The device according to claim 6, wherein a touch sensor is arranged at a designated position of the side frame of the mobile terminal;
the detection module comprises:
a first detection sub-module, configured to detect a touch signal through the touch sensor, where the touch signal is a signal generated when a user touches the designated location;
the third determining submodule is used for determining that the current state of the mobile terminal is a handheld state if the touch signal is detected;
the third determining submodule is further configured to determine that the current state of the mobile terminal is not a handheld state if the touch signal is not detected.
8. The apparatus of claim 7, wherein the determining module comprises:
the fourth determining submodule is used for determining that the state of the fingerprint icon is a display state when the current state of the mobile terminal is a handheld state;
the fourth determining submodule is further configured to determine that the state of the fingerprint icon is a non-display state when the current state of the mobile terminal is not a handheld state.
9. The device according to claim 6, wherein a distance sensor is arranged in the mobile terminal;
the detection module comprises:
the second detection submodule is used for detecting the distance between the mobile terminal and a shelter through the distance sensor at the current moment;
the fifth determining submodule is used for determining that the current state of the mobile terminal is a shielded state when the distance between the mobile terminal and a shielding object is smaller than the preset distance;
accordingly, the determining means comprises:
and the sixth determining submodule is used for determining that the state of the fingerprint icon is a non-display state when the current state of the mobile terminal is a blocked state.
10. The apparatus of claim 9, wherein the detection module further comprises:
the second obtaining submodule is used for obtaining the state of the mobile terminal which is determined for the last time before the current time when the distance between the mobile terminal and the shelter is not smaller than the preset distance;
the fifth determining submodule is further configured to determine that the current state of the mobile terminal is an occlusion release state when the state of the mobile terminal determined last before the current time is an occluded state;
accordingly, the determining means comprises:
and the sixth determining submodule is used for determining that the state of the fingerprint icon is a display state when the current state of the mobile terminal is the shielding release state.
11. An on-screen fingerprint icon display device, the device comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to the steps of any of the methods of claims 1-5.
12. A computer-readable storage medium having instructions stored thereon, wherein the instructions, when executed by a processor, implement the steps of any of the methods of claims 1-5.
CN201810012521.7A 2018-01-05 2018-01-05 Method and device for displaying fingerprint icon in screen and computer readable storage medium Active CN108255369B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810012521.7A CN108255369B (en) 2018-01-05 2018-01-05 Method and device for displaying fingerprint icon in screen and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810012521.7A CN108255369B (en) 2018-01-05 2018-01-05 Method and device for displaying fingerprint icon in screen and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108255369A CN108255369A (en) 2018-07-06
CN108255369B true CN108255369B (en) 2021-07-27

Family

ID=62725497

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810012521.7A Active CN108255369B (en) 2018-01-05 2018-01-05 Method and device for displaying fingerprint icon in screen and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108255369B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11449123B2 (en) * 2018-03-26 2022-09-20 Huawei Technologies Co., Ltd. Prompt information display method and electronic device
CN109408021A (en) * 2018-09-29 2019-03-01 北京小米移动软件有限公司 Method, apparatus, electronic equipment and the readable storage medium storing program for executing that control icon is shown
WO2020087481A1 (en) * 2018-11-02 2020-05-07 深圳市欢太科技有限公司 Application control method, computer readable storage medium, and electronic device
CN109583420B (en) * 2018-12-14 2021-02-05 京东方科技集团股份有限公司 Driving method and equipment of fingerprint identification device
CN109726695B (en) * 2019-01-03 2020-09-25 Oppo广东移动通信有限公司 Optical fingerprint icon display method, electronic device and computer readable storage medium
CN113325941B (en) * 2020-02-29 2022-07-12 荣耀终端有限公司 Method for displaying finger print under screen and electronic equipment
CN111897408A (en) * 2020-07-06 2020-11-06 珠海市魅族科技有限公司 Fingerprint identification method and device, electronic equipment and storage medium
CN112596600A (en) * 2020-12-16 2021-04-02 惠州Tcl移动通信有限公司 Screen unlocking method and device, storage medium and mobile terminal
CN114816604A (en) * 2021-01-27 2022-07-29 北京小米移动软件有限公司 Interface display control method and device, terminal equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106020782A (en) * 2016-05-27 2016-10-12 广东欧珀移动通信有限公司 Fingerprint unlocking control method and mobile terminal
CN106469013A (en) * 2015-08-17 2017-03-01 小米科技有限责任公司 Terminal, fingerprint Identification sensor awakening method and device
CN106716431A (en) * 2016-12-26 2017-05-24 深圳市汇顶科技股份有限公司 A fingerprint identification guide method and device
CN106940589A (en) * 2017-02-07 2017-07-11 宇龙计算机通信科技(深圳)有限公司 A kind of Terminal fingerprints detection management method, device and terminal
CN107092820A (en) * 2017-03-13 2017-08-25 宇龙计算机通信科技(深圳)有限公司 Terminal, ultrasonic fingerprint unlocking method and tripper
CN108701043A (en) * 2017-06-05 2018-10-23 华为技术有限公司 A kind of processing method and processing device of display

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9202099B2 (en) * 2012-06-29 2015-12-01 Apple Inc. Fingerprint sensing and enrollment
US20160364591A1 (en) * 2015-06-15 2016-12-15 Cypress Semiconductor Corporation Fingerprint Sensing Access for Security and Personalization in Apps and Devices

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106469013A (en) * 2015-08-17 2017-03-01 小米科技有限责任公司 Terminal, fingerprint Identification sensor awakening method and device
CN106020782A (en) * 2016-05-27 2016-10-12 广东欧珀移动通信有限公司 Fingerprint unlocking control method and mobile terminal
CN106716431A (en) * 2016-12-26 2017-05-24 深圳市汇顶科技股份有限公司 A fingerprint identification guide method and device
CN106940589A (en) * 2017-02-07 2017-07-11 宇龙计算机通信科技(深圳)有限公司 A kind of Terminal fingerprints detection management method, device and terminal
CN107092820A (en) * 2017-03-13 2017-08-25 宇龙计算机通信科技(深圳)有限公司 Terminal, ultrasonic fingerprint unlocking method and tripper
CN108701043A (en) * 2017-06-05 2018-10-23 华为技术有限公司 A kind of processing method and processing device of display

Also Published As

Publication number Publication date
CN108255369A (en) 2018-07-06

Similar Documents

Publication Publication Date Title
CN108255369B (en) Method and device for displaying fingerprint icon in screen and computer readable storage medium
US10642476B2 (en) Method and apparatus for single-hand operation on full screen
EP3182716A1 (en) Method and device for video display
WO2017124773A1 (en) Gesture recognition method and device
US20170031557A1 (en) Method and apparatus for adjusting shooting function
US10331231B2 (en) Mobile terminal and method for determining scrolling speed
CN107390932B (en) Edge false touch prevention method and device and computer readable storage medium
JP2017534086A (en) Fingerprint identification method and apparatus
US20190235745A1 (en) Method and device for displaying descriptive information
KR20170061636A (en) Method and device for preventing accidental touch of terminal with touch screen
CN106547461B (en) Operation processing method, device and equipment
US10234924B2 (en) Method and apparatus for displaying time on mobile device
CN106354504B (en) Message display method and device
EP3232301B1 (en) Mobile terminal and virtual key processing method
EP3249505B1 (en) Method and electronic device for controlling a state of a touch screen
CN110262692B (en) Touch screen scanning method, device and medium
US10061497B2 (en) Method, device and storage medium for interchanging icon positions
CN112905136A (en) Screen projection control method and device and storage medium
CN111522498A (en) Touch response method and device and storage medium
CN106325712B (en) Terminal display control method and device and terminal
CN106919302B (en) Operation control method and device of mobile terminal
US20160195992A1 (en) Mobile terminal and method for processing signals generated from touching virtual keys
CN110769114B (en) Call interface display method and device and mobile terminal
CN107329604B (en) Mobile terminal control method and device
CN111614815A (en) Terminal device, control method, device and storage medium

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
GR01 Patent grant
GR01 Patent grant