Android Jellybean Keyguard Lock Screen

Source: Internet
Author: User

Android Keyguard 4.1 lock screen in the/frameworks/base/policy/src/com/android/internal/policy/impl, the first full module reading framework, there are many can not understand, I hope you can advise!

1.accountunlockscreen.java

When the user forgets their password, it calls the function to unlock it using their account password and reset the phone lock, which is very simple. The final Judgment success method is: Postoncheckpasswordresult ();

2.biometricsensorunlock.java

Biometric sensor unlock? Do not know how to translate, this is an interface, from the name of the analysis of the feeling is for the face unlock/fingerprint unlock or other biological related to the way of unlocking an interface reserved.

3.faceunlock.java

Facial unlocking, in which there is a Boolean variable called mservicerunning, that is to determine whether a service is running. It is not yet known what service is service, may be the main service to unlock the background running the module. The code sees the following found in the start () The time will bind a called Ifacelockinterface service.ifacelockinterface is a aidl file, I do not know what this means, may be the bottom of the lower-C + + implementation of a service? This file is mostly about Faceunlock view of the logical processing, what shows disappear, and did not see the principle of facial unlocking, do not know where to go, most likely in that service. But where is that service? Give me a big guide.

4.globalactions.java

Global behavior, this code is to handle the lock screen interface long press the Power key pop-up dialog. About Mute mode/flight mode and shutdown.

5.iconutilities.java

The icon tool, as if it were a tool class for image processing, provided a way to drawable the bitmap, and a way to draw bitmap

6.keyguardscreen.java

Keyboard lock interface.

7.keyguardscreencallback.java

Keyboard Lock interface callback.

8.keyguardstatusviewmanager.java

Management of keyboard lock status View, SIM card status/battery status/alarm/clock, etc.

9.keyguardupdatemonitor.java

Keyboard Lock update Monitor, the main function of this class is based on monitoring the state value of the system changes (such as: Time, SIM card status, battery power, using broadcast monitoring), based on this state value changes callback listening to the state information of the object instance. When it receives a state-changed broadcast, it notifies Keyguardstatusviewmanager to modify the status displayed on the interface.

10.keyguardviewbase.java

The keyboard lock base view provides a common set of methods for Lockpatternkeyguardview. The way to pay attention is that he listens to certain keyevent, and when he hears these keyevent, our app doesn't listen to these keyevent. The commonly used have keyevent_volume_up/down and so on.

11.keyguardviewcallback.java

The keyboard lock view callback, which provides a number of interfaces to accept user Action screen results.

12.keyguardviewmanager.java

Keyboard lock view Management, packaging the WindowManager function, provides the ability to add, remove the lock screen interface.

13.keyguardviewmediator.java

Core class, which is the only class that implements the Keyguardviewcallback. Function: This class provides some interfaces, by Phonewindowmanager, to access control keyguard .... The initialization of the class is created in the Policywindowmanager constructor. The lock screen event is handled through this class after pressing the power key.

14.keyguardviewproperties.java

Keyboard lock properties, which provide a common way to create an interface.

15.keyguardwindowcontroller.java

The keyboard locks the form controller, provides the common interface, determines whether this interface needs to display the Input Method window.

16.lockpatternkeyguardview.java

Graphics keyboard lock view, as the lockscreen and Unlockscreen interface of the carrier, control the display of which interface. Here is a question that can not be seen to unlock the mode storage mode, do not know is the database, or XML or something else, do not know that the big know?

17.lockpatternkeyguardviewproperties.java

The feeling is used to handle certain unlock interfaces that need to display the keyboard.

18.lockscreen.java

Lock screen interface, OK, I do not understand ... The way to pull the lock is there ...?

19.passwordunlockscreen.java

Password unlock the interface, this paragraph is very simple not to say.

20.patternunlockscreen.java

Graphic unlock interface.

21.phonefallbackeventhandler.java

Mobile phone fallback event processing, this code should be a lock screen interface selected some event processing, such as dragging the unlock box to the phone icon to open the phone interface.

22.phonelayoutinflater.java

Mobile phone layout filter, did not see understand.

23.phonewindow.java

Mobile phone form.

24.phonewindowmanager.java

Mobile form Management.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.