OSDN Git Service

Move Keyguard to SystemUI
authorJason Monk <jmonk@google.com>
Tue, 31 Jan 2017 19:29:32 +0000 (14:29 -0500)
committerJason Monk <jmonk@google.com>
Fri, 10 Feb 2017 15:45:58 +0000 (07:45 -0800)
Test: make
Change-Id: I3abb67e2b022737d2aa0226bb07f3966ad68fff7

196 files changed:
packages/Keyguard/Android.mk [deleted file]
packages/Keyguard/test/Android.mk [deleted file]
packages/Keyguard/test/AndroidManifest.xml [deleted file]
packages/Keyguard/test/SampleTrustAgent/Android.mk [deleted file]
packages/Keyguard/test/SampleTrustAgent/AndroidManifest.xml [deleted file]
packages/Keyguard/test/SampleTrustAgent/res/layout-v26/sample_trust_agent_settings.xml [deleted file]
packages/Keyguard/test/SampleTrustAgent/res/layout/sample_trust_agent_settings.xml [deleted file]
packages/Keyguard/test/SampleTrustAgent/res/values/strings.xml [deleted file]
packages/Keyguard/test/SampleTrustAgent/res/xml-v26/sample_trust_agent.xml [deleted file]
packages/Keyguard/test/SampleTrustAgent/res/xml/sample_trust_agent.xml [deleted file]
packages/Keyguard/test/SampleTrustAgent/src/com/android/trustagent/test/SampleTrustAgent.java [deleted file]
packages/Keyguard/test/SampleTrustAgent/src/com/android/trustagent/test/SampleTrustAgentSettings.java [deleted file]
packages/Keyguard/test/res/drawable-hdpi/app_icon.png [deleted file]
packages/Keyguard/test/res/drawable-mdpi/app_icon.png [deleted file]
packages/Keyguard/test/res/drawable-xhdpi/app_icon.png [deleted file]
packages/Keyguard/test/res/layout/keyguard_test_activity.xml [deleted file]
packages/Keyguard/test/res/menu/optionmenu.xml [deleted file]
packages/Keyguard/test/res/values/strings.xml [deleted file]
packages/Keyguard/test/src/com/android/keyguard/test/KeyguardTestActivity.java [deleted file]
packages/SystemUI/Android.mk
packages/SystemUI/res-keyguard/drawable-hdpi/ic_done_wht.png [moved from packages/Keyguard/res/drawable-hdpi/ic_done_wht.png with 100% similarity]
packages/SystemUI/res-keyguard/drawable-hdpi/ic_lockscreen_sim.png [moved from packages/Keyguard/res/drawable-hdpi/ic_lockscreen_sim.png with 100% similarity]
packages/SystemUI/res-keyguard/drawable-hdpi/kg_security_lock_normal.png [moved from packages/Keyguard/res/drawable-hdpi/kg_security_lock_normal.png with 100% similarity]
packages/SystemUI/res-keyguard/drawable-mdpi/ic_done_wht.png [moved from packages/Keyguard/res/drawable-mdpi/ic_done_wht.png with 100% similarity]
packages/SystemUI/res-keyguard/drawable-mdpi/ic_lockscreen_sim.png [moved from packages/Keyguard/res/drawable-mdpi/ic_lockscreen_sim.png with 100% similarity]
packages/SystemUI/res-keyguard/drawable-mdpi/kg_security_lock_normal.png [moved from packages/Keyguard/res/drawable-mdpi/kg_security_lock_normal.png with 100% similarity]
packages/SystemUI/res-keyguard/drawable-xhdpi/ic_done_wht.png [moved from packages/Keyguard/res/drawable-xhdpi/ic_done_wht.png with 100% similarity]
packages/SystemUI/res-keyguard/drawable-xhdpi/ic_lockscreen_sim.png [moved from packages/Keyguard/res/drawable-xhdpi/ic_lockscreen_sim.png with 100% similarity]
packages/SystemUI/res-keyguard/drawable-xhdpi/kg_security_lock_normal.png [moved from packages/Keyguard/res/drawable-xhdpi/kg_security_lock_normal.png with 100% similarity]
packages/SystemUI/res-keyguard/drawable-xxhdpi/ic_done_wht.png [moved from packages/Keyguard/res/drawable-xxhdpi/ic_done_wht.png with 100% similarity]
packages/SystemUI/res-keyguard/drawable-xxxhdpi/ic_done_wht.png [moved from packages/Keyguard/res/drawable-xxxhdpi/ic_done_wht.png with 100% similarity]
packages/SystemUI/res-keyguard/drawable/ic_access_alarms_big.xml [moved from packages/Keyguard/res/drawable/ic_access_alarms_big.xml with 100% similarity]
packages/SystemUI/res-keyguard/drawable/ic_backspace_24dp.xml [moved from packages/Keyguard/res/drawable/ic_backspace_24dp.xml with 100% similarity]
packages/SystemUI/res-keyguard/drawable/ic_lockscreen_ime.xml [moved from packages/Keyguard/res/drawable/ic_lockscreen_ime.xml with 100% similarity]
packages/SystemUI/res-keyguard/drawable/ripple_drawable.xml [moved from packages/Keyguard/res/drawable/ripple_drawable.xml with 100% similarity]
packages/SystemUI/res-keyguard/layout/keyguard_bouncer.xml [moved from packages/Keyguard/res/layout/keyguard_bouncer.xml with 100% similarity]
packages/SystemUI/res-keyguard/layout/keyguard_emergency_carrier_area.xml [moved from packages/Keyguard/res/layout/keyguard_emergency_carrier_area.xml with 100% similarity]
packages/SystemUI/res-keyguard/layout/keyguard_host_view.xml [moved from packages/Keyguard/res/layout/keyguard_host_view.xml with 100% similarity]
packages/SystemUI/res-keyguard/layout/keyguard_message_area.xml [moved from packages/Keyguard/res/layout/keyguard_message_area.xml with 100% similarity]
packages/SystemUI/res-keyguard/layout/keyguard_message_area_large.xml [moved from packages/Keyguard/res/layout/keyguard_message_area_large.xml with 100% similarity]
packages/SystemUI/res-keyguard/layout/keyguard_num_pad_key.xml [moved from packages/Keyguard/res/layout/keyguard_num_pad_key.xml with 100% similarity]
packages/SystemUI/res-keyguard/layout/keyguard_password_view.xml [moved from packages/Keyguard/res/layout/keyguard_password_view.xml with 100% similarity]
packages/SystemUI/res-keyguard/layout/keyguard_pattern_view.xml [moved from packages/Keyguard/res/layout/keyguard_pattern_view.xml with 100% similarity]
packages/SystemUI/res-keyguard/layout/keyguard_pin_view.xml [moved from packages/Keyguard/res/layout/keyguard_pin_view.xml with 100% similarity]
packages/SystemUI/res-keyguard/layout/keyguard_presentation.xml [moved from packages/Keyguard/res/layout/keyguard_presentation.xml with 100% similarity]
packages/SystemUI/res-keyguard/layout/keyguard_sim_pin_view.xml [moved from packages/Keyguard/res/layout/keyguard_sim_pin_view.xml with 100% similarity]
packages/SystemUI/res-keyguard/layout/keyguard_sim_puk_view.xml [moved from packages/Keyguard/res/layout/keyguard_sim_puk_view.xml with 100% similarity]
packages/SystemUI/res-keyguard/layout/keyguard_status_area.xml [moved from packages/Keyguard/res/layout/keyguard_status_area.xml with 100% similarity]
packages/SystemUI/res-keyguard/layout/keyguard_status_view.xml [moved from packages/Keyguard/res/layout/keyguard_status_view.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-af/strings.xml [moved from packages/Keyguard/res/values-af/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-am/strings.xml [moved from packages/Keyguard/res/values-am/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-ar/strings.xml [moved from packages/Keyguard/res/values-ar/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-az/strings.xml [moved from packages/Keyguard/res/values-az/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-b+sr+Latn/strings.xml [moved from packages/Keyguard/res/values-b+sr+Latn/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-be/strings.xml [moved from packages/Keyguard/res/values-be/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-bg/strings.xml [moved from packages/Keyguard/res/values-bg/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-bn/strings.xml [moved from packages/Keyguard/res/values-bn/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-bs/strings.xml [moved from packages/Keyguard/res/values-bs/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-ca/strings.xml [moved from packages/Keyguard/res/values-ca/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-cs/strings.xml [moved from packages/Keyguard/res/values-cs/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-da/strings.xml [moved from packages/Keyguard/res/values-da/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-de/strings.xml [moved from packages/Keyguard/res/values-de/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-el/strings.xml [moved from packages/Keyguard/res/values-el/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-en-rAU/strings.xml [moved from packages/Keyguard/res/values-en-rAU/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-en-rGB/strings.xml [moved from packages/Keyguard/res/values-en-rGB/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-en-rIN/strings.xml [moved from packages/Keyguard/res/values-en-rIN/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-es-rUS/strings.xml [moved from packages/Keyguard/res/values-es-rUS/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-es/strings.xml [moved from packages/Keyguard/res/values-es/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-et/strings.xml [moved from packages/Keyguard/res/values-et/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-eu/strings.xml [moved from packages/Keyguard/res/values-eu/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-fa/strings.xml [moved from packages/Keyguard/res/values-fa/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-fi/strings.xml [moved from packages/Keyguard/res/values-fi/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-fr-rCA/strings.xml [moved from packages/Keyguard/res/values-fr-rCA/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-fr/strings.xml [moved from packages/Keyguard/res/values-fr/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-gl/strings.xml [moved from packages/Keyguard/res/values-gl/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-gu/strings.xml [moved from packages/Keyguard/res/values-gu/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-h560dp/dimens.xml [moved from packages/Keyguard/res/values-h560dp/dimens.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-h650dp/dimens.xml [moved from packages/Keyguard/res/values-h650dp/dimens.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-hi/strings.xml [moved from packages/Keyguard/res/values-hi/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-hr/strings.xml [moved from packages/Keyguard/res/values-hr/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-hu/strings.xml [moved from packages/Keyguard/res/values-hu/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-hy/strings.xml [moved from packages/Keyguard/res/values-hy/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-in/strings.xml [moved from packages/Keyguard/res/values-in/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-is/strings.xml [moved from packages/Keyguard/res/values-is/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-it/strings.xml [moved from packages/Keyguard/res/values-it/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-iw/strings.xml [moved from packages/Keyguard/res/values-iw/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-ja/strings.xml [moved from packages/Keyguard/res/values-ja/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-ka/strings.xml [moved from packages/Keyguard/res/values-ka/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-kk/strings.xml [moved from packages/Keyguard/res/values-kk/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-km/strings.xml [moved from packages/Keyguard/res/values-km/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-kn/strings.xml [moved from packages/Keyguard/res/values-kn/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-ko/strings.xml [moved from packages/Keyguard/res/values-ko/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-ky/strings.xml [moved from packages/Keyguard/res/values-ky/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-land/bools.xml [moved from packages/Keyguard/res/values-land/bools.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-land/integers.xml [moved from packages/Keyguard/res/values-land/integers.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-lo/strings.xml [moved from packages/Keyguard/res/values-lo/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-lt/strings.xml [moved from packages/Keyguard/res/values-lt/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-lv/strings.xml [moved from packages/Keyguard/res/values-lv/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-mcc262-mnc07/bools.xml [moved from packages/Keyguard/res/values-mcc262-mnc07/bools.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-mcc262-mnc08/bools.xml [moved from packages/Keyguard/res/values-mcc262-mnc08/bools.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-mcc262-mnc11/bools.xml [moved from packages/Keyguard/res/values-mcc262-mnc11/bools.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-mk/strings.xml [moved from packages/Keyguard/res/values-mk/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-ml/strings.xml [moved from packages/Keyguard/res/values-ml/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-mn/strings.xml [moved from packages/Keyguard/res/values-mn/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-mr/strings.xml [moved from packages/Keyguard/res/values-mr/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-ms/strings.xml [moved from packages/Keyguard/res/values-ms/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-my/dimens.xml [moved from packages/Keyguard/res/values-my/dimens.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-my/strings.xml [moved from packages/Keyguard/res/values-my/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-nb/strings.xml [moved from packages/Keyguard/res/values-nb/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-ne/strings.xml [moved from packages/Keyguard/res/values-ne/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-nl/strings.xml [moved from packages/Keyguard/res/values-nl/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-pa/strings.xml [moved from packages/Keyguard/res/values-pa/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-pl/strings.xml [moved from packages/Keyguard/res/values-pl/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-port/bools.xml [moved from packages/Keyguard/res/values-port/bools.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-port/integers.xml [moved from packages/Keyguard/res/values-port/integers.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-pt-rBR/strings.xml [moved from packages/Keyguard/res/values-pt-rBR/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-pt-rPT/strings.xml [moved from packages/Keyguard/res/values-pt-rPT/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-pt/strings.xml [moved from packages/Keyguard/res/values-pt/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-ro/strings.xml [moved from packages/Keyguard/res/values-ro/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-ru/strings.xml [moved from packages/Keyguard/res/values-ru/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-si/strings.xml [moved from packages/Keyguard/res/values-si/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-sk/strings.xml [moved from packages/Keyguard/res/values-sk/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-sl/strings.xml [moved from packages/Keyguard/res/values-sl/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-sq/strings.xml [moved from packages/Keyguard/res/values-sq/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-sr/strings.xml [moved from packages/Keyguard/res/values-sr/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-sv/strings.xml [moved from packages/Keyguard/res/values-sv/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-sw/strings.xml [moved from packages/Keyguard/res/values-sw/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-sw320dp/dimens.xml [moved from packages/Keyguard/res/values-sw320dp/dimens.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-sw360dp/dimens.xml [moved from packages/Keyguard/res/values-sw360dp/dimens.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-sw380dp/dimens.xml [moved from packages/Keyguard/res/values-sw380dp/dimens.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-sw540dp-port/dimens.xml [moved from packages/Keyguard/res/values-sw540dp-port/dimens.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-sw600dp-land/dimens.xml [moved from packages/Keyguard/res/values-sw600dp-land/dimens.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-sw600dp/alias.xml [moved from packages/Keyguard/res/values-sw600dp/alias.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-sw600dp/bools.xml [moved from packages/Keyguard/res/values-sw600dp/bools.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-sw600dp/dimens.xml [moved from packages/Keyguard/res/values-sw600dp/dimens.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-sw600dp/styles.xml [moved from packages/Keyguard/res/values-sw600dp/styles.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-sw720dp/dimens.xml [moved from packages/Keyguard/res/values-sw720dp/dimens.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-ta/strings.xml [moved from packages/Keyguard/res/values-ta/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-te/strings.xml [moved from packages/Keyguard/res/values-te/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-th/strings.xml [moved from packages/Keyguard/res/values-th/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-tl/strings.xml [moved from packages/Keyguard/res/values-tl/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-tr/strings.xml [moved from packages/Keyguard/res/values-tr/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-uk/strings.xml [moved from packages/Keyguard/res/values-uk/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-ur/strings.xml [moved from packages/Keyguard/res/values-ur/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-uz/strings.xml [moved from packages/Keyguard/res/values-uz/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-vi/strings.xml [moved from packages/Keyguard/res/values-vi/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-zh-rCN/strings.xml [moved from packages/Keyguard/res/values-zh-rCN/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-zh-rHK/strings.xml [moved from packages/Keyguard/res/values-zh-rHK/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-zh-rTW/strings.xml [moved from packages/Keyguard/res/values-zh-rTW/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values-zu/strings.xml [moved from packages/Keyguard/res/values-zu/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values/alias.xml [moved from packages/Keyguard/res/values/alias.xml with 100% similarity]
packages/SystemUI/res-keyguard/values/arrays.xml [moved from packages/Keyguard/res/values/arrays.xml with 100% similarity]
packages/SystemUI/res-keyguard/values/attrs.xml [moved from packages/Keyguard/res/values/attrs.xml with 100% similarity]
packages/SystemUI/res-keyguard/values/bools.xml [moved from packages/Keyguard/res/values/bools.xml with 100% similarity]
packages/SystemUI/res-keyguard/values/colors.xml [moved from packages/Keyguard/res/values/colors.xml with 100% similarity]
packages/SystemUI/res-keyguard/values/config.xml [moved from packages/Keyguard/res/values/config.xml with 100% similarity]
packages/SystemUI/res-keyguard/values/dimens.xml [moved from packages/Keyguard/res/values/dimens.xml with 100% similarity]
packages/SystemUI/res-keyguard/values/donottranslate.xml [moved from packages/Keyguard/res/values/donottranslate.xml with 100% similarity]
packages/SystemUI/res-keyguard/values/strings.xml [moved from packages/Keyguard/res/values/strings.xml with 100% similarity]
packages/SystemUI/res-keyguard/values/styles.xml [moved from packages/Keyguard/res/values/styles.xml with 100% similarity]
packages/SystemUI/scripts/copy_profile_icons.sh [moved from packages/Keyguard/scripts/copy_profile_icons.sh with 100% similarity]
packages/SystemUI/scripts/new_merge.py [moved from packages/Keyguard/scripts/new_merge.py with 100% similarity]
packages/SystemUI/src/com/android/keyguard/AlphaOptimizedImageButton.java [moved from packages/Keyguard/src/com/android/keyguard/AlphaOptimizedImageButton.java with 100% similarity]
packages/SystemUI/src/com/android/keyguard/AlphaOptimizedLinearLayout.java [moved from packages/Keyguard/src/com/android/keyguard/AlphaOptimizedLinearLayout.java with 100% similarity]
packages/SystemUI/src/com/android/keyguard/AlphaOptimizedRelativeLayout.java [moved from packages/Keyguard/src/com/android/keyguard/AlphaOptimizedRelativeLayout.java with 100% similarity]
packages/SystemUI/src/com/android/keyguard/CarrierText.java [moved from packages/Keyguard/src/com/android/keyguard/CarrierText.java with 100% similarity]
packages/SystemUI/src/com/android/keyguard/EmergencyButton.java [moved from packages/Keyguard/src/com/android/keyguard/EmergencyButton.java with 100% similarity]
packages/SystemUI/src/com/android/keyguard/EmergencyCarrierArea.java [moved from packages/Keyguard/src/com/android/keyguard/EmergencyCarrierArea.java with 100% similarity]
packages/SystemUI/src/com/android/keyguard/KeyguardAbsKeyInputView.java [moved from packages/Keyguard/src/com/android/keyguard/KeyguardAbsKeyInputView.java with 100% similarity]
packages/SystemUI/src/com/android/keyguard/KeyguardConstants.java [moved from packages/Keyguard/src/com/android/keyguard/KeyguardConstants.java with 100% similarity]
packages/SystemUI/src/com/android/keyguard/KeyguardDisplayManager.java [moved from packages/Keyguard/src/com/android/keyguard/KeyguardDisplayManager.java with 100% similarity]
packages/SystemUI/src/com/android/keyguard/KeyguardHostView.java [moved from packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java with 100% similarity]
packages/SystemUI/src/com/android/keyguard/KeyguardMessageArea.java [moved from packages/Keyguard/src/com/android/keyguard/KeyguardMessageArea.java with 100% similarity]
packages/SystemUI/src/com/android/keyguard/KeyguardPINView.java [moved from packages/Keyguard/src/com/android/keyguard/KeyguardPINView.java with 100% similarity]
packages/SystemUI/src/com/android/keyguard/KeyguardPasswordView.java [moved from packages/Keyguard/src/com/android/keyguard/KeyguardPasswordView.java with 100% similarity]
packages/SystemUI/src/com/android/keyguard/KeyguardPatternView.java [moved from packages/Keyguard/src/com/android/keyguard/KeyguardPatternView.java with 100% similarity]
packages/SystemUI/src/com/android/keyguard/KeyguardPinBasedInputView.java [moved from packages/Keyguard/src/com/android/keyguard/KeyguardPinBasedInputView.java with 100% similarity]
packages/SystemUI/src/com/android/keyguard/KeyguardSecurityCallback.java [moved from packages/Keyguard/src/com/android/keyguard/KeyguardSecurityCallback.java with 100% similarity]
packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java [moved from packages/Keyguard/src/com/android/keyguard/KeyguardSecurityContainer.java with 100% similarity]
packages/SystemUI/src/com/android/keyguard/KeyguardSecurityModel.java [moved from packages/Keyguard/src/com/android/keyguard/KeyguardSecurityModel.java with 100% similarity]
packages/SystemUI/src/com/android/keyguard/KeyguardSecurityView.java [moved from packages/Keyguard/src/com/android/keyguard/KeyguardSecurityView.java with 100% similarity]
packages/SystemUI/src/com/android/keyguard/KeyguardSecurityViewFlipper.java [moved from packages/Keyguard/src/com/android/keyguard/KeyguardSecurityViewFlipper.java with 100% similarity]
packages/SystemUI/src/com/android/keyguard/KeyguardSimPinView.java [moved from packages/Keyguard/src/com/android/keyguard/KeyguardSimPinView.java with 100% similarity]
packages/SystemUI/src/com/android/keyguard/KeyguardSimPukView.java [moved from packages/Keyguard/src/com/android/keyguard/KeyguardSimPukView.java with 100% similarity]
packages/SystemUI/src/com/android/keyguard/KeyguardStatusView.java [moved from packages/Keyguard/src/com/android/keyguard/KeyguardStatusView.java with 100% similarity]
packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java [moved from packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitor.java with 100% similarity]
packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitorCallback.java [moved from packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitorCallback.java with 100% similarity]
packages/SystemUI/src/com/android/keyguard/LatencyTracker.java [moved from packages/Keyguard/src/com/android/keyguard/LatencyTracker.java with 100% similarity]
packages/SystemUI/src/com/android/keyguard/LiftToActivateListener.java [moved from packages/Keyguard/src/com/android/keyguard/LiftToActivateListener.java with 100% similarity]
packages/SystemUI/src/com/android/keyguard/NumPadKey.java [moved from packages/Keyguard/src/com/android/keyguard/NumPadKey.java with 100% similarity]
packages/SystemUI/src/com/android/keyguard/ObscureSpeechDelegate.java [moved from packages/Keyguard/src/com/android/keyguard/ObscureSpeechDelegate.java with 100% similarity]
packages/SystemUI/src/com/android/keyguard/PasswordTextView.java [moved from packages/Keyguard/src/com/android/keyguard/PasswordTextView.java with 100% similarity]
packages/SystemUI/src/com/android/keyguard/SecurityMessageDisplay.java [moved from packages/Keyguard/src/com/android/keyguard/SecurityMessageDisplay.java with 100% similarity]
packages/SystemUI/src/com/android/keyguard/ViewMediatorCallback.java [moved from packages/Keyguard/src/com/android/keyguard/ViewMediatorCallback.java with 100% similarity]
packages/SystemUI/src/com/android/systemui/EventLogTags.logtags [moved from packages/Keyguard/src/com/android/systemui/EventLogTags.logtags with 100% similarity]
packages/SystemUI/tests/Android.mk

diff --git a/packages/Keyguard/Android.mk b/packages/Keyguard/Android.mk
deleted file mode 100644 (file)
index 38cf559..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-# Copyright (C) 2013 The Android Open Source Project
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#      http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-LOCAL_PATH:= $(call my-dir)
-
-include $(CLEAR_VARS)
-
-LOCAL_MODULE := SystemUI-tags
-
-LOCAL_SRC_FILES := src/com/android/systemui/EventLogTags.logtags
-
-include $(BUILD_STATIC_JAVA_LIBRARY)
-
-# ------------------
-
-include $(CLEAR_VARS)
-
-LOCAL_USE_AAPT2 := true
-
-LOCAL_SRC_FILES := $(call all-java-files-under, src) $(call all-subdir-Iaidl-files)
-
-LOCAL_MODULE := Keyguard
-
-LOCAL_CERTIFICATE := platform
-
-LOCAL_JAVA_LIBRARIES := SettingsLib
-
-LOCAL_STATIC_JAVA_LIBRARIES = SystemUI-tags
-
-LOCAL_PRIVILEGED_MODULE := true
-
-LOCAL_PROGUARD_FLAG_FILES := proguard.flags
-
-LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
-
-LOCAL_JAR_EXCLUDE_FILES := none
-
-include $(BUILD_STATIC_JAVA_LIBRARY)
-
-#include $(call all-makefiles-under,$(LOCAL_PATH))
diff --git a/packages/Keyguard/test/Android.mk b/packages/Keyguard/test/Android.mk
deleted file mode 100644 (file)
index 54224b7..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-# Copyright (C) 2013 The Android Open Source Project
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#      http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-LOCAL_PATH:= $(call my-dir)
-include $(CLEAR_VARS)
-
-LOCAL_USE_AAPT2 := true
-
-LOCAL_SRC_FILES := $(call all-java-files-under, src)
-
-LOCAL_PACKAGE_NAME := KeyguardTest
-
-# Remove these to verify permission checks are working correctly
-LOCAL_CERTIFICATE := platform
-LOCAL_PRIVILEGED_MODULE := true
-
-# LOCAL_PROGUARD_FLAG_FILES := proguard.flags
-
-include $(BUILD_PACKAGE)
diff --git a/packages/Keyguard/test/AndroidManifest.xml b/packages/Keyguard/test/AndroidManifest.xml
deleted file mode 100644 (file)
index 1638127..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/*
-** Copyright 2013, The Android Open Source Project
-**
-** Licensed under the Apache License, Version 2.0 (the "License");
-** you may not use this file except in compliance with the License.
-** You may obtain a copy of the License at
-**
-**     http://www.apache.org/licenses/LICENSE-2.0
-**
-** Unless required by applicable law or agreed to in writing, software
-** distributed under the License is distributed on an "AS IS" BASIS,
-** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-** See the License for the specific language governing permissions and
-** limitations under the License.
-*/
--->
-<manifest xmlns:android="http://schemas.android.com/apk/res/android"
-    package="com.android.keyguard.test">
-    <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="17"/>
-    <uses-permission android:name="android.permission.CONTROL_KEYGUARD" />
-    <application android:label="@string/app_name" android:icon="@drawable/app_icon">
-        <activity android:name=".KeyguardTestActivity"
-                android:label="@string/app_name"
-                android:theme="@android:style/Theme.DeviceDefault.Light">
-            <intent-filter>
-                <action android:name="android.intent.action.MAIN" />
-                <category android:name="android.intent.category.LAUNCHER" />
-            </intent-filter>
-        </activity>
-    </application>
-</manifest>
diff --git a/packages/Keyguard/test/SampleTrustAgent/Android.mk b/packages/Keyguard/test/SampleTrustAgent/Android.mk
deleted file mode 100644 (file)
index 6ffb018..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-# Copyright (C) 2014 The Android Open Source Project
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#      http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-LOCAL_PATH:= $(call my-dir)
-include $(CLEAR_VARS)
-
-LOCAL_USE_AAPT2 := true
-
-LOCAL_SRC_FILES := $(call all-java-files-under, src)
-
-LOCAL_PACKAGE_NAME := SampleTrustAgent
-
-# Remove this to verify permission checks are working correctly
-LOCAL_CERTIFICATE := platform
-
-LOCAL_MODULE_TAGS := tests
-
-# LOCAL_PROGUARD_FLAG_FILES := proguard.flags
-
-LOCAL_STATIC_ANDROID_LIBRARIES := android-support-v4
-
-include $(BUILD_PACKAGE)
diff --git a/packages/Keyguard/test/SampleTrustAgent/AndroidManifest.xml b/packages/Keyguard/test/SampleTrustAgent/AndroidManifest.xml
deleted file mode 100644 (file)
index edcea0e..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-  ~ Copyright (C) 2014 The Android Open Source Project
-  ~
-  ~ Licensed under the Apache License, Version 2.0 (the "License");
-  ~ you may not use this file except in compliance with the License.
-  ~ You may obtain a copy of the License at
-  ~
-  ~      http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing, software
-  ~ distributed under the License is distributed on an "AS IS" BASIS,
-  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  ~ See the License for the specific language governing permissions and
-  ~ limitations under the License
-  -->
-<manifest xmlns:android="http://schemas.android.com/apk/res/android"
-    package="com.android.trustagent.test">
-    <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="17"/>
-    <uses-permission android:name="android.permission.CONTROL_KEYGUARD" />
-    <uses-permission android:name="android.permission.PROVIDE_TRUST_AGENT" />
-    <application android:label="@string/app_name">
-      <service
-          android:name=".SampleTrustAgent"
-          android:label="@string/app_name"
-          android:permission="android.permission.BIND_TRUST_AGENT"
-          android:directBootAware="true"
-          android:exported="true">
-        <intent-filter>
-          <action android:name="android.service.trust.TrustAgentService" />
-          <category android:name="android.intent.category.DEFAULT" />
-        </intent-filter>
-        <meta-data android:name="android.service.trust.trustagent"
-                   android:resource="@xml/sample_trust_agent"/>
-      </service>
-
-      <activity
-          android:name=".SampleTrustAgentSettings"
-          android:label="@string/app_name"
-          android:exported="true"
-          android:launchMode="singleInstance" >
-          <intent-filter>
-              <action android:name="android.intent.action.MAIN" />
-              <category android:name="android.intent.category.LAUNCHER" />
-          </intent-filter>
-      </activity>
-    </application>
-</manifest>
diff --git a/packages/Keyguard/test/SampleTrustAgent/res/layout-v26/sample_trust_agent_settings.xml b/packages/Keyguard/test/SampleTrustAgent/res/layout-v26/sample_trust_agent_settings.xml
deleted file mode 100644 (file)
index 4669971..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-
-<!--
-  ~ Copyright (C) 2014 The Android Open Source Project
-  ~
-  ~ Licensed under the Apache License, Version 2.0 (the "License");
-  ~ you may not use this file except in compliance with the License.
-  ~ You may obtain a copy of the License at
-  ~
-  ~      http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing, software
-  ~ distributed under the License is distributed on an "AS IS" BASIS,
-  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  ~ See the License for the specific language governing permissions and
-  ~ limitations under the License
-  -->
-
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
-        android:orientation="vertical"
-        android:layout_width="match_parent"
-        android:layout_height="match_parent">
-    <Button android:id="@+id/enable_trust"
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:text="Grant trust for 30 seconds" />
-    <Button android:id="@+id/revoke_trust"
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:text="Revoke trust" />
-    <Button android:id="@+id/crash"
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:text="Crash" />
-    <CheckBox android:id="@+id/managing_trust"
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:paddingTop="8dp"
-            android:paddingBottom="8dp"
-            android:text="Managing trust" />
-    <CheckBox android:id="@+id/managing_trust_direct_boot"
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:paddingTop="8dp"
-            android:paddingBottom="8dp"
-            android:text="Managing trust direct boot"/>
-
-    <CheckBox android:id="@+id/report_unlock_attempts"
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:paddingTop="8dp"
-            android:paddingBottom="8dp"
-            android:text="Report unlock attempts" />
-    <CheckBox android:id="@+id/report_device_locked"
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:paddingTop="8dp"
-            android:paddingBottom="8dp"
-            android:text="Report device locked or unlocked" />
-
-    <LinearLayout
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content">
-        <Button android:id="@+id/check_device_locked"
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
-                android:text="Device locked?" />
-        <TextView android:id="@+id/check_device_locked_result"
-                android:layout_width="0dp"
-                android:layout_height="wrap_content"
-                android:layout_weight="1" />
-    </LinearLayout>
-
-</LinearLayout>
\ No newline at end of file
diff --git a/packages/Keyguard/test/SampleTrustAgent/res/layout/sample_trust_agent_settings.xml b/packages/Keyguard/test/SampleTrustAgent/res/layout/sample_trust_agent_settings.xml
deleted file mode 100644 (file)
index 00193ed..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-
-<!--
-  ~ Copyright (C) 2014 The Android Open Source Project
-  ~
-  ~ Licensed under the Apache License, Version 2.0 (the "License");
-  ~ you may not use this file except in compliance with the License.
-  ~ You may obtain a copy of the License at
-  ~
-  ~      http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing, software
-  ~ distributed under the License is distributed on an "AS IS" BASIS,
-  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  ~ See the License for the specific language governing permissions and
-  ~ limitations under the License
-  -->
-
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
-        android:orientation="vertical"
-        android:layout_width="match_parent"
-        android:layout_height="match_parent">
-    <Button android:id="@+id/enable_trust"
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:text="Grant trust for 30 seconds" />
-    <Button android:id="@+id/revoke_trust"
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:text="Revoke trust" />
-    <Button android:id="@+id/crash"
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:text="Crash" />
-    <CheckBox android:id="@+id/managing_trust"
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:paddingTop="8dp"
-            android:paddingBottom="8dp"
-            android:text="Managing trust" />
-    <CheckBox android:id="@+id/report_unlock_attempts"
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:paddingTop="8dp"
-            android:paddingBottom="8dp"
-            android:text="Report unlock attempts" />
-    <CheckBox android:id="@+id/report_device_locked"
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:paddingTop="8dp"
-            android:paddingBottom="8dp"
-            android:text="Report device locked or unlocked" />
-
-    <LinearLayout
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content">
-        <Button android:id="@+id/check_device_locked"
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
-                android:text="Device locked?" />
-        <TextView android:id="@+id/check_device_locked_result"
-                android:layout_width="0dp"
-                android:layout_height="wrap_content"
-                android:layout_weight="1" />
-    </LinearLayout>
-
-</LinearLayout>
\ No newline at end of file
diff --git a/packages/Keyguard/test/SampleTrustAgent/res/values/strings.xml b/packages/Keyguard/test/SampleTrustAgent/res/values/strings.xml
deleted file mode 100644 (file)
index 0c6b502..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-  ~ Copyright (C) 2014 The Android Open Source Project
-  ~
-  ~ Licensed under the Apache License, Version 2.0 (the "License");
-  ~ you may not use this file except in compliance with the License.
-  ~ You may obtain a copy of the License at
-  ~
-  ~      http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing, software
-  ~ distributed under the License is distributed on an "AS IS" BASIS,
-  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  ~ See the License for the specific language governing permissions and
-  ~ limitations under the License
-  -->
-
-<resources>
-    <string name="app_name">Sample Trust Agent</string>
-</resources>
\ No newline at end of file
diff --git a/packages/Keyguard/test/SampleTrustAgent/res/xml-v26/sample_trust_agent.xml b/packages/Keyguard/test/SampleTrustAgent/res/xml-v26/sample_trust_agent.xml
deleted file mode 100644 (file)
index 26d5aa0..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-  ~ Copyright (C) 2014 The Android Open Source Project
-  ~
-  ~ Licensed under the Apache License, Version 2.0 (the "License");
-  ~ you may not use this file except in compliance with the License.
-  ~ You may obtain a copy of the License at
-  ~
-  ~      http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing, software
-  ~ distributed under the License is distributed on an "AS IS" BASIS,
-  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  ~ See the License for the specific language governing permissions and
-  ~ limitations under the License
-  -->
-<trust-agent xmlns:android="http://schemas.android.com/apk/res/android"
-             android:settingsActivity=".SampleTrustAgentSettings"
-             android:unlockProfile="true" />
diff --git a/packages/Keyguard/test/SampleTrustAgent/res/xml/sample_trust_agent.xml b/packages/Keyguard/test/SampleTrustAgent/res/xml/sample_trust_agent.xml
deleted file mode 100644 (file)
index 6cd34bb..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-  ~ Copyright (C) 2014 The Android Open Source Project
-  ~
-  ~ Licensed under the Apache License, Version 2.0 (the "License");
-  ~ you may not use this file except in compliance with the License.
-  ~ You may obtain a copy of the License at
-  ~
-  ~      http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing, software
-  ~ distributed under the License is distributed on an "AS IS" BASIS,
-  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  ~ See the License for the specific language governing permissions and
-  ~ limitations under the License
-  -->
-<trust-agent xmlns:android="http://schemas.android.com/apk/res/android"
-             android:settingsActivity=".SampleTrustAgentSettings" />
diff --git a/packages/Keyguard/test/SampleTrustAgent/src/com/android/trustagent/test/SampleTrustAgent.java b/packages/Keyguard/test/SampleTrustAgent/src/com/android/trustagent/test/SampleTrustAgent.java
deleted file mode 100644 (file)
index 4b50cf8..0000000
+++ /dev/null
@@ -1,268 +0,0 @@
-/*
- * Copyright (C) 2014 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License
- */
-
-package com.android.trustagent.test;
-
-import android.content.BroadcastReceiver;
-import android.content.Context;
-import android.content.Intent;
-import android.content.IntentFilter;
-import android.content.SharedPreferences;
-import android.os.PersistableBundle;
-import android.os.UserManager;
-import android.preference.PreferenceManager;
-import android.service.trust.TrustAgentService;
-import android.support.v4.content.LocalBroadcastManager;
-import android.util.Log;
-import android.widget.Toast;
-
-import java.util.List;
-
-public class SampleTrustAgent extends TrustAgentService
-        implements SharedPreferences.OnSharedPreferenceChangeListener {
-
-    /**
-     * If true, allows anyone to control this trust agent, e.g. using adb:
-     * <pre>
-     * $ adb shell am broadcast -a action.sample_trust_agent.grant_trust\
-     *  -e extra.message SampleTrust\
-     *  --el extra.duration 1000 --ez extra.init_by_user false --ez extra.dismiss_keyguard false
-     * </pre>
-     */
-    private static final boolean ALLOW_EXTERNAL_BROADCASTS = false;
-
-    LocalBroadcastManager mLocalBroadcastManager;
-
-    private static final String ACTION_GRANT_TRUST = "action.sample_trust_agent.grant_trust";
-    private static final String ACTION_REVOKE_TRUST = "action.sample_trust_agent.revoke_trust";
-
-    private static final String EXTRA_MESSAGE = "extra.message";
-    private static final String EXTRA_DURATION = "extra.duration";
-    private static final String EXTRA_INITIATED_BY_USER = "extra.init_by_user";
-    private static final String EXTRA_DISMISS_KEYGUARD = "extra.dismiss_keyguard";
-
-    private static final String PREFERENCE_REPORT_UNLOCK_ATTEMPTS
-            = "preference.report_unlock_attempts";
-    private static final String PREFERENCE_MANAGING_TRUST
-            = "preference.managing_trust";
-    private static final String PREFERENCE_MANAGING_TRUST_DIRECT_BOOT
-            = "preference.managing_trust_direct_boot";
-    private static final String PREFERENCE_REPORT_DEVICE_LOCKED = "preference.report_device_locked";
-
-    private static final String TAG = "SampleTrustAgent";
-
-    private static final BroadcastReceiver mUnlockReceiver = new BroadcastReceiver() {
-        @Override
-        public void onReceive(Context context, Intent intent) {
-
-        }
-    };
-
-    private boolean mIsUserUnlocked;
-
-    @Override
-    public void onCreate() {
-        super.onCreate();
-        UserManager um = (UserManager) getSystemService(Context.USER_SERVICE);
-        mIsUserUnlocked = um.isUserUnlocked();
-        Log.i(TAG,, "onCreate, is user unlocked=" + mIsUserUnlocked);
-        mLocalBroadcastManager = LocalBroadcastManager.getInstance(this);
-
-        IntentFilter filter = new IntentFilter();
-        filter.addAction(ACTION_GRANT_TRUST);
-        filter.addAction(ACTION_REVOKE_TRUST);
-        if (!mIsUserUnlocked) {
-            filter.addAction(Intent.ACTION_BOOT_COMPLETED);
-        }
-        mLocalBroadcastManager.registerReceiver(mReceiver, filter);
-        if (ALLOW_EXTERNAL_BROADCASTS) {
-            registerReceiver(mReceiver, filter);
-        }
-
-        if (!mIsUserUnlocked) {
-            boolean trustManaged = getIsManagingTrustDirectBoot(this);
-            Log.i(TAG, "in Direct boot." + (trustManaged ? "manage" : "cannot manage") + "trust");
-            setManagingTrust(getIsManagingTrustDirectBoot(this));
-        } else {
-            onBootCompleted();
-        }
-    }
-
-    @Override
-    public void onTrustTimeout() {
-        super.onTrustTimeout();
-        logAndShowToast("onTrustTimeout(): timeout expired");
-    }
-
-    @Override
-    public void onDeviceLocked() {
-        super.onDeviceLocked();
-        if (getReportDeviceLocked(this)) {
-            logAndShowToast("onDeviceLocked(): device is now locked");
-        }
-    }
-
-    @Override
-    public void onDeviceUnlocked() {
-        super.onDeviceUnlocked();
-        if (getReportDeviceLocked(this)) {
-            logAndShowToast("onDeviceUnlocked(): device is now unlocked");
-        }
-    }
-
-    @Override
-    public void onUnlockAttempt(boolean successful) {
-        if (getReportUnlockAttempts(this)) {
-            logAndShowToast("onUnlockAttempt(successful=" + successful + ")");
-        }
-    }
-
-    private void logAndShowToast(String text) {
-        Log.i(TAG, text);
-        Toast.makeText(this, text, Toast.LENGTH_SHORT).show();
-    }
-
-    @Override
-    public boolean onConfigure(List<PersistableBundle> options) {
-        if (options != null) {
-           for (int i = 0; i < options.size(); i++) {
-               Log.v(TAG, "Policy options received: " + options.get(i));
-           }
-        } else {
-            Log.w(TAG, "onConfigure() called with no options");
-        }
-        // TODO: Handle options
-        return true; // inform DPM that we support it
-    }
-
-    @Override
-    public void onDestroy() {
-        super.onDestroy();
-        mLocalBroadcastManager.unregisterReceiver(mReceiver);
-        if (ALLOW_EXTERNAL_BROADCASTS) {
-            unregisterReceiver(mReceiver);
-        }
-        PreferenceManager.getDefaultSharedPreferences(this)
-                .unregisterOnSharedPreferenceChangeListener(this);
-    }
-
-    private void onBootCompleted() {
-        PreferenceManager.getDefaultSharedPreferences(this)
-                .registerOnSharedPreferenceChangeListener(this);
-        setManagingTrust(getIsManagingTrust(this));
-    }
-
-    private BroadcastReceiver mReceiver = new BroadcastReceiver() {
-        @Override
-        public void onReceive(Context context, Intent intent) {
-            String action = intent.getAction();
-            if (ACTION_GRANT_TRUST.equals(action)) {
-                int flags = 0;
-                if (intent.getBooleanExtra(EXTRA_INITIATED_BY_USER, false)) {
-                    flags |= TrustAgentService.FLAG_GRANT_TRUST_INITIATED_BY_USER;
-                }
-                if (intent.getBooleanExtra(EXTRA_DISMISS_KEYGUARD, false)) {
-                    flags |= TrustAgentService.FLAG_GRANT_TRUST_DISMISS_KEYGUARD;
-                }
-
-                try {
-                    grantTrust(intent.getStringExtra(EXTRA_MESSAGE),
-                            intent.getLongExtra(EXTRA_DURATION, 0), flags);
-                } catch (IllegalStateException e) {
-                    logAndShowToast("IllegalStateException: " + e.getMessage());
-                }
-            } else if (ACTION_REVOKE_TRUST.equals(action)) {
-                revokeTrust();
-            } else if (intent.ACTION_BOOT_COMPLETED.equals(action)) {
-                Log.d(TAG, "User unlocked and boot completed.");
-                onBootCompleted();
-            }
-        }
-    };
-
-    public static void sendGrantTrust(Context context,
-            String message, long durationMs, boolean initiatedByUser) {
-        Intent intent = new Intent(ACTION_GRANT_TRUST);
-        intent.putExtra(EXTRA_MESSAGE, message);
-        intent.putExtra(EXTRA_DURATION, durationMs);
-        intent.putExtra(EXTRA_INITIATED_BY_USER, initiatedByUser);
-        LocalBroadcastManager.getInstance(context).sendBroadcast(intent);
-    }
-
-    public static void sendRevokeTrust(Context context) {
-        Intent intent = new Intent(ACTION_REVOKE_TRUST);
-        LocalBroadcastManager.getInstance(context).sendBroadcast(intent);
-    }
-
-    public static void setReportUnlockAttempts(Context context, boolean enabled) {
-        SharedPreferences sharedPreferences = PreferenceManager
-                .getDefaultSharedPreferences(context);
-        sharedPreferences.edit().putBoolean(PREFERENCE_REPORT_UNLOCK_ATTEMPTS, enabled).apply();
-    }
-
-    public static boolean getReportUnlockAttempts(Context context) {
-        SharedPreferences sharedPreferences = PreferenceManager
-                .getDefaultSharedPreferences(context);
-        return sharedPreferences.getBoolean(PREFERENCE_REPORT_UNLOCK_ATTEMPTS, false);
-    }
-
-    public static void setReportDeviceLocked(Context context, boolean enabled) {
-        SharedPreferences sharedPreferences = PreferenceManager
-                .getDefaultSharedPreferences(context);
-        sharedPreferences.edit().putBoolean(PREFERENCE_REPORT_DEVICE_LOCKED, enabled).apply();
-    }
-
-    public static boolean getReportDeviceLocked(Context context) {
-        SharedPreferences sharedPreferences = PreferenceManager
-                .getDefaultSharedPreferences(context);
-        return sharedPreferences.getBoolean(PREFERENCE_REPORT_DEVICE_LOCKED, false);
-    }
-
-    public static void setIsManagingTrust(Context context, boolean enabled) {
-        SharedPreferences sharedPreferences = PreferenceManager
-                .getDefaultSharedPreferences(context);
-        Log.d("AAAA", "save manage trust preference. Enabled=" + enabled);
-        sharedPreferences.edit().putBoolean(PREFERENCE_MANAGING_TRUST, enabled).apply();
-    }
-
-    public static boolean getIsManagingTrust(Context context) {
-        SharedPreferences sharedPreferences = PreferenceManager
-                .getDefaultSharedPreferences(context);
-        return sharedPreferences.getBoolean(PREFERENCE_MANAGING_TRUST, false);
-    }
-
-    public static void setIsManagingTrustDirectBoot(Context context, boolean enabled) {
-        Context directBootContext = context.createDeviceProtectedStorageContext();
-        SharedPreferences sharedPreferences = PreferenceManager
-                .getDefaultSharedPreferences(directBootContext);
-        Log.d("AAAA", "save to direct boot preference. Enabled=" + enabled);
-        sharedPreferences.edit().putBoolean(PREFERENCE_MANAGING_TRUST_DIRECT_BOOT, enabled).apply();
-    }
-
-    public static boolean getIsManagingTrustDirectBoot(Context context) {
-        Context directBootContext = context.createDeviceProtectedStorageContext();
-        SharedPreferences sharedPreferences = PreferenceManager
-                .getDefaultSharedPreferences(directBootContext);
-        return sharedPreferences.getBoolean(PREFERENCE_MANAGING_TRUST_DIRECT_BOOT, false);
-    }
-
-    @Override
-    public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
-        if (PREFERENCE_MANAGING_TRUST.equals(key)) {
-            setManagingTrust(getIsManagingTrust(this));
-        }
-    }
-}
diff --git a/packages/Keyguard/test/SampleTrustAgent/src/com/android/trustagent/test/SampleTrustAgentSettings.java b/packages/Keyguard/test/SampleTrustAgent/src/com/android/trustagent/test/SampleTrustAgentSettings.java
deleted file mode 100644 (file)
index 1b17169..0000000
+++ /dev/null
@@ -1,111 +0,0 @@
-/*
- * Copyright (C) 2014 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License
- */
-
-package com.android.trustagent.test;
-
-import android.annotation.Nullable;
-import android.app.Activity;
-import android.app.KeyguardManager;
-import android.os.Bundle;
-import android.view.View;
-import android.widget.CheckBox;
-import android.widget.CompoundButton;
-import android.widget.TextView;
-
-public class SampleTrustAgentSettings extends Activity implements View.OnClickListener,
-        CompoundButton.OnCheckedChangeListener {
-
-    private static final int TRUST_DURATION_MS = 30 * 1000;
-
-    private CheckBox mReportUnlockAttempts;
-    private CheckBox mReportDeviceLocked;
-    private CheckBox mManagingTrust;
-    private CheckBox mManagingTrustDirectBoot;
-    private TextView mCheckDeviceLockedResult;
-
-    private KeyguardManager mKeyguardManager;
-
-
-    @Override
-    protected void onCreate(@Nullable Bundle savedInstanceState) {
-        super.onCreate(savedInstanceState);
-
-        mKeyguardManager = (KeyguardManager) getSystemService(KEYGUARD_SERVICE);
-
-        setContentView(R.layout.sample_trust_agent_settings);
-
-        findViewById(R.id.enable_trust).setOnClickListener(this);
-        findViewById(R.id.revoke_trust).setOnClickListener(this);
-        findViewById(R.id.crash).setOnClickListener(this);
-        findViewById(R.id.check_device_locked).setOnClickListener(this);
-
-        mReportUnlockAttempts = (CheckBox) findViewById(R.id.report_unlock_attempts);
-        mReportUnlockAttempts.setOnCheckedChangeListener(this);
-
-        mReportDeviceLocked = (CheckBox) findViewById(R.id.report_device_locked);
-        mReportDeviceLocked.setOnCheckedChangeListener(this);
-
-        mManagingTrust = (CheckBox) findViewById(R.id.managing_trust);
-        mManagingTrust.setOnCheckedChangeListener(this);
-        mManagingTrustDirectBoot = (CheckBox) findViewById(R.id.managing_trust_direct_boot);
-        mManagingTrustDirectBoot.setOnCheckedChangeListener(this);
-
-        mCheckDeviceLockedResult = (TextView) findViewById(R.id.check_device_locked_result);
-    }
-
-    @Override
-    protected void onResume() {
-        super.onResume();
-        mReportUnlockAttempts.setChecked(SampleTrustAgent.getReportUnlockAttempts(this));
-        mManagingTrust.setChecked(SampleTrustAgent.getIsManagingTrust(this));
-        mManagingTrustDirectBoot.setChecked(
-            SampleTrustAgent.getIsManagingTrustDirectBoot(this));
-        updateTrustedState();
-    }
-
-    @Override
-    public void onClick(View v) {
-        int id = v.getId();
-        if (id == R.id.enable_trust) {
-            SampleTrustAgent.sendGrantTrust(this, "SampleTrustAgent", TRUST_DURATION_MS,
-                    false /* initiatedByUser */);
-        } else if (id == R.id.revoke_trust) {
-            SampleTrustAgent.sendRevokeTrust(this);
-        } else if (id == R.id.crash) {
-            throw new RuntimeException("crash");
-        } else if (id == R.id.check_device_locked) {
-            updateTrustedState();
-        }
-    }
-
-    @Override
-    public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
-        if (buttonView == mReportUnlockAttempts) {
-            SampleTrustAgent.setReportUnlockAttempts(this, isChecked);
-        } else if (buttonView == mManagingTrust) {
-            SampleTrustAgent.setIsManagingTrust(this, isChecked);
-        } else if (buttonView == mReportDeviceLocked) {
-            SampleTrustAgent.setReportDeviceLocked(this, isChecked);
-        } else if (buttonView == mManagingTrustDirectBoot) {
-            SampleTrustAgent.setIsManagingTrustDirectBoot(this, isChecked);
-        }
-    }
-
-    private void updateTrustedState() {
-        mCheckDeviceLockedResult.setText(Boolean.toString(
-                mKeyguardManager.isDeviceLocked()));
-    }
-}
diff --git a/packages/Keyguard/test/res/drawable-hdpi/app_icon.png b/packages/Keyguard/test/res/drawable-hdpi/app_icon.png
deleted file mode 100644 (file)
index 732133c..0000000
Binary files a/packages/Keyguard/test/res/drawable-hdpi/app_icon.png and /dev/null differ
diff --git a/packages/Keyguard/test/res/drawable-mdpi/app_icon.png b/packages/Keyguard/test/res/drawable-mdpi/app_icon.png
deleted file mode 100644 (file)
index 30eb974..0000000
Binary files a/packages/Keyguard/test/res/drawable-mdpi/app_icon.png and /dev/null differ
diff --git a/packages/Keyguard/test/res/drawable-xhdpi/app_icon.png b/packages/Keyguard/test/res/drawable-xhdpi/app_icon.png
deleted file mode 100644 (file)
index c44a330..0000000
Binary files a/packages/Keyguard/test/res/drawable-xhdpi/app_icon.png and /dev/null differ
diff --git a/packages/Keyguard/test/res/layout/keyguard_test_activity.xml b/packages/Keyguard/test/res/layout/keyguard_test_activity.xml
deleted file mode 100644 (file)
index dab1088..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-**
-** Copyright 2013, The Android Open Source Project
-**
-** Licensed under the Apache License, Version 2.0 (the "License")
-** you may not use this file except in compliance with the License.
-** You may obtain a copy of the License at
-**
-**     http://www.apache.org/licenses/LICENSE-2.0
-**
-** Unless required by applicable law or agreed to in writing, software
-** distributed under the License is distributed on an "AS IS" BASIS,
-** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-** See the License for the specific language governing permissions and
-** limitations under the License.
-*/
--->
-
-<LinearLayout
-    xmlns:android="http://schemas.android.com/apk/res/android"
-    android:layout_width="match_parent"
-    android:layout_height="match_parent"
-    android:orientation="vertical"
-    android:gravity="center">
-
-    <Button android:id="@+id/do_keyguard"
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:text="@string/do_keyguard" />
-
-    <Button android:id="@+id/on_screen_turned_off"
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:text="@string/on_screen_turned_off" />
-
-    <Button android:id="@+id/on_screen_turned_on"
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:text="@string/on_screen_turned_on" />
-
-    <Button android:id="@+id/verify_unlock"
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:text="@string/verify_unlock" />
-
-</LinearLayout>
diff --git a/packages/Keyguard/test/res/menu/optionmenu.xml b/packages/Keyguard/test/res/menu/optionmenu.xml
deleted file mode 100644 (file)
index 22f300d..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<menu xmlns:android="http://schemas.android.com/apk/res/android">
-    <item android:id="@+id/none_menu_item"
-          android:title="@string/none_menu_item" />
-    <item android:id="@+id/pin_menu_item"
-          android:title="@string/pin_menu_item" />
-    <item android:id="@+id/password_menu_item"
-        android:title="@string/password_menu_item" />
-    <item android:id="@+id/pattern_menu_item"
-          android:title="@string/pattern_menu_item" />
-    <item android:id="@+id/sim_pin_menu_item"
-          android:title="@string/sim_pin_menu_item" />
-    <item android:id="@+id/sim_puk_menu_item"
-          android:title="@string/sim_puk_menu_item" />
-    <item android:id="@+id/add_widget_item"
-          android:title="@string/add_widget_item" />
-</menu>
diff --git a/packages/Keyguard/test/res/values/strings.xml b/packages/Keyguard/test/res/values/strings.xml
deleted file mode 100644 (file)
index 129204b..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/* //device/apps/common/assets/res/any/strings.xml
-**
-** Copyright 2013, The Android Open Source Project
-**
-** Licensed under the Apache License, Version 2.0 (the "License");
-** you may not use this file except in compliance with the License.
-** You may obtain a copy of the License at
-**
-**     http://www.apache.org/licenses/LICENSE-2.0
-**
-** Unless required by applicable law or agreed to in writing, software
-** distributed under the License is distributed on an "AS IS" BASIS,
-** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-** See the License for the specific language governing permissions and
-** limitations under the License.
-*/
--->
-<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
-    <string name="app_name">KeyguardTestActivity</string>
-    <string name="secure_app_name">UnifiedCamera</string>
-    <string name="none_menu_item">No security</string>
-    <string name="pin_menu_item">PIN</string>
-    <string name="password_menu_item">Password</string>
-    <string name="pattern_menu_item">Pattern</string>
-    <string name="sim_pin_menu_item">SIM PIN</string>
-    <string name="sim_puk_menu_item">SIM PUK</string>
-    <string name="add_widget_item">Choose widget...</string>
-    <string name="on_screen_turned_off">onScreenTurnedOff</string>
-    <string name="on_screen_turned_on">onScreenTurnedOn</string>
-    <string name="do_keyguard">doKeyguard</string>
-    <string name="verify_unlock">verifyUnlock</string>
-</resources>
diff --git a/packages/Keyguard/test/src/com/android/keyguard/test/KeyguardTestActivity.java b/packages/Keyguard/test/src/com/android/keyguard/test/KeyguardTestActivity.java
deleted file mode 100644 (file)
index e89c10e..0000000
+++ /dev/null
@@ -1,373 +0,0 @@
-/*
- * Copyright (C) 2012 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.android.keyguard.test;
-
-import com.android.internal.policy.IKeyguardShowCallback;
-import com.android.internal.policy.IKeyguardExitCallback;
-import com.android.internal.policy.IKeyguardService;
-
-import android.app.Activity;
-import android.app.AlertDialog;
-import android.app.admin.DevicePolicyManager;
-import android.content.ComponentName;
-import android.content.Context;
-import android.content.Intent;
-import android.content.ServiceConnection;
-import android.os.Bundle;
-import android.os.Handler;
-import android.os.IBinder;
-import android.os.RemoteException;
-import android.os.SystemClock;
-import android.provider.Settings;
-import android.util.Log;
-import android.view.Menu;
-import android.view.MenuInflater;
-import android.view.MenuItem;
-import android.view.View;
-import android.view.View.OnClickListener;
-import android.view.WindowManagerPolicy;
-
-import com.android.internal.widget.LockPatternUtils;
-import com.android.internal.widget.LockPatternView.Cell;
-
-import java.util.List;
-
-public class KeyguardTestActivity extends Activity implements OnClickListener {
-    private static final String KEYGUARD_PACKAGE = "com.android.keyguard";
-    private static final String KEYGUARD_CLASS = "com.android.keyguard.KeyguardService";
-    private static final String TAG = "LockScreenTestActivity";
-    private static final int MODE_NONE = 0;
-    private static final int MODE_PIN = 1;
-    private static final int MODE_PASSWORD = 2;
-    private static final int MODE_PATTERN = 3;
-    private static final int MODE_SIM_PIN = 4;
-    private static final int MODE_SIM_PUK = 5;
-    private static final String SECURITY_MODE = "security_mode";
-    Handler mHandler = new Handler();
-
-    IKeyguardService mService = null;
-
-    KeyguardShowCallback mKeyguardShowCallback = new KeyguardShowCallback();
-    KeyguardExitCallback mKeyguardExitCallback = new KeyguardExitCallback();
-
-    RemoteServiceConnection mConnection;
-    private boolean mSentSystemReady;
-
-    class KeyguardShowCallback extends IKeyguardShowCallback.Stub {
-
-        @Override
-        public void onShown(IBinder windowToken) throws RemoteException {
-            Log.v(TAG, "Keyguard is shown, windowToken = " + windowToken);
-        }
-    }
-
-    class KeyguardExitCallback extends IKeyguardExitCallback.Stub {
-
-        @Override
-        public void onKeyguardExitResult(final boolean success) throws RemoteException {
-            mHandler.post(new Runnable() {
-                @Override
-                public void run() {
-                    new AlertDialog.Builder(KeyguardTestActivity.this)
-                    .setMessage("Result: " + success)
-                    .setPositiveButton("OK", null)
-                    .show();
-                }
-            });
-        }
-    };
-
-    private class RemoteServiceConnection implements ServiceConnection {
-        public void onServiceConnected(ComponentName className, IBinder service) {
-            Log.v(TAG, "onServiceConnected()");
-            mService = IKeyguardService.Stub.asInterface(service);
-            try {
-                mService.asBinder().linkToDeath(new IBinder.DeathRecipient() {
-                    @Override
-                    public void binderDied() {
-                        new AlertDialog.Builder(KeyguardTestActivity.this)
-                            .setMessage("Oops! Keygued died")
-                            .setPositiveButton("OK", null)
-                            .show();
-                    }
-                }, 0);
-            } catch (RemoteException e) {
-                Log.w(TAG, "Couldn't linkToDeath");
-                e.printStackTrace();
-            }
-//            try {
-//                mService.onSystemReady();
-//            } catch (RemoteException e) {
-//                Log.v(TAG, "Remote service died trying to call onSystemReady");
-//                e.printStackTrace();
-//            }
-        }
-
-        public void onServiceDisconnected(ComponentName className) {
-            Log.v(TAG, "onServiceDisconnected()");
-            mService = null;
-        }
-    };
-
-    private void bindService() {
-        if (mConnection == null) {
-            mConnection = new RemoteServiceConnection();
-            Intent intent = new Intent();
-            intent.setClassName(KEYGUARD_PACKAGE, KEYGUARD_CLASS);
-            Log.v(TAG, "BINDING SERVICE: " + KEYGUARD_CLASS);
-            if (!bindService(intent, mConnection, Context.BIND_AUTO_CREATE)) {
-                Log.v(TAG, "FAILED TO BIND TO KEYGUARD!");
-            }
-        } else {
-            Log.v(TAG, "Service already bound");
-        }
-    }
-
-    @Override
-    protected void onCreate(Bundle savedInstanceState) {
-        super.onCreate(savedInstanceState);
-        setContentView(R.layout.keyguard_test_activity);
-        final int[] buttons = {
-                R.id.on_screen_turned_off, R.id.on_screen_turned_on,
-                R.id.do_keyguard, R.id.verify_unlock
-        };
-        for (int i = 0; i < buttons.length; i++) {
-            findViewById(buttons[i]).setOnClickListener(this);
-        }
-        Log.v(TAG, "Binding service...");
-        bindService();
-    }
-
-    @Override
-    protected void onSaveInstanceState(Bundle outState) {
-        super.onSaveInstanceState(outState);
-        outState.putInt(SECURITY_MODE, mSecurityMode);
-    }
-
-    @Override
-    protected void onRestoreInstanceState(Bundle savedInstanceState) {
-        super.onRestoreInstanceState(savedInstanceState);
-        setMode(savedInstanceState.getInt(SECURITY_MODE));
-    }
-
-// TODO: Find a secure way to inject mock into keyguard...
-//    @Override
-//    public boolean onCreateOptionsMenu(Menu menu) {
-//        MenuInflater inflater = getMenuInflater();
-//        inflater.inflate(R.menu.optionmenu, menu);
-//        return true;
-//    }
-
-    private void setMode(int mode) {
-        mTestSimPin = false;
-        mTestSimPuk = false;
-        mLockPasswordEnabled = false;
-        mLockPatternEnabled = false;
-        switch(mode) {
-            case MODE_NONE:
-                mSecurityModeMock = DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED;
-                break;
-            case MODE_PIN:
-                mSecurityModeMock = DevicePolicyManager.PASSWORD_QUALITY_NUMERIC;
-                mLockPasswordEnabled = true;
-                break;
-            case MODE_PASSWORD:
-                mSecurityModeMock = DevicePolicyManager.PASSWORD_QUALITY_ALPHABETIC;
-                mLockPasswordEnabled = true;
-                break;
-            case MODE_PATTERN:
-                mSecurityModeMock = DevicePolicyManager.PASSWORD_QUALITY_SOMETHING;
-                mLockPatternEnabled = true;
-                break;
-            case MODE_SIM_PIN:
-                mTestSimPin = true;
-                break;
-            case MODE_SIM_PUK:
-                mTestSimPuk = true;
-                break;
-        }
-        mSecurityMode = mode;
-    }
-
-    @Override
-    public boolean onOptionsItemSelected(MenuItem item) {
-        // Handle item selection
-        switch (item.getItemId()) {
-            case R.id.none_menu_item:
-                setMode(MODE_NONE);
-                break;
-            case R.id.pin_menu_item:
-                setMode(MODE_PIN);
-                break;
-            case R.id.password_menu_item:
-                setMode(MODE_PASSWORD);
-                break;
-            case R.id.pattern_menu_item:
-                setMode(MODE_PATTERN);
-                break;
-            case R.id.sim_pin_menu_item:
-                setMode(MODE_SIM_PIN);
-                break;
-            case R.id.sim_puk_menu_item:
-                setMode(MODE_SIM_PUK);
-                break;
-            case R.id.add_widget_item:
-                startWidgetPicker();
-                break;
-            default:
-                return super.onOptionsItemSelected(item);
-        }
-        try {
-            mService.doKeyguardTimeout(null);
-        } catch (RemoteException e) {
-            Log.e(TAG, "Remote service died");
-            e.printStackTrace();
-        }
-        return true;
-    }
-
-    private void startWidgetPicker() {
-        startActivity(new Intent(Settings.ACTION_SECURITY_SETTINGS));
-    }
-
-    @Override
-    public void onClick(View v) {
-        try {
-            switch (v.getId()) {
-            case R.id.on_screen_turned_on:
-                mService.onScreenTurnedOn(mKeyguardShowCallback);
-                break;
-            case R.id.on_screen_turned_off:
-                mService.onScreenTurnedOff(WindowManagerPolicy.OFF_BECAUSE_OF_USER);
-                break;
-            case R.id.do_keyguard:
-                if (!mSentSystemReady) {
-                    mSentSystemReady = true;
-                    mService.onSystemReady();
-                }
-                mService.doKeyguardTimeout(null);
-                break;
-            case R.id.verify_unlock:
-                mService.doKeyguardTimeout(null);
-                // Wait for keyguard to lock and then try this...
-                mHandler.postDelayed(new Runnable() {
-                    @Override
-                    public void run() {
-                        try {
-                            mService.verifyUnlock(mKeyguardExitCallback);
-                        } catch (RemoteException e) {
-                            Log.e(TAG, "Failed verifyUnlock()", e);
-                        }
-                    }
-                }, 5000);
-                break;
-            }
-        } catch (RemoteException e) {
-            Log.e(TAG, "onClick(): Failed due to remote exeption", e);
-        }
-    }
-
-    @Override
-    protected void onPause() {
-        super.onPause();
-        try {
-            if (mService != null) {
-                mService.setHidden(true);
-            }
-        } catch (RemoteException e) {
-            Log.e(TAG, "Remote service died");
-            e.printStackTrace();
-        }
-    }
-
-    protected void onResume() {
-        super.onResume();
-        try {
-            if (mService != null) {
-                mService.setHidden(false);
-            }
-        } catch (RemoteException e) {
-            Log.e(TAG, "Remote service died");
-            e.printStackTrace();
-        }
-    }
-
-    public int mSecurityModeMock;
-    private boolean mTestSimPin;
-    private boolean mTestSimPuk;
-    private boolean mLockPasswordEnabled;
-    public boolean mLockPatternEnabled;
-    private int mSecurityMode;
-
-    class LockPatternUtilsMock extends LockPatternUtils {
-        private long mDeadline;
-        public LockPatternUtilsMock(Context context) {
-            super(context);
-        }
-
-        @Override
-        public boolean checkPattern(List<Cell> pattern) {
-            return pattern.size() > 4;
-        }
-
-        @Override
-        public boolean checkPassword(String password) {
-            return password.length() > 4;
-        }
-        @Override
-        public long setLockoutAttemptDeadline() {
-            final long deadline = SystemClock.elapsedRealtime() + FAILED_ATTEMPT_TIMEOUT_MS;
-            mDeadline = deadline;
-            return deadline;
-        }
-        @Override
-        public boolean isLockScreenDisabled() {
-            return false;
-        }
-        @Override
-        public long getLockoutAttemptDeadline() {
-            return mDeadline;
-        }
-        @Override
-        public void reportFailedPasswordAttempt() {
-            // Ignored
-        }
-        @Override
-        public void reportSuccessfulPasswordAttempt() {
-            // Ignored
-        }
-        @Override
-        public boolean isLockPatternEnabled() {
-            return mLockPatternEnabled;
-        }
-
-        @Override
-        public boolean isLockPasswordEnabled() {
-            return mLockPasswordEnabled;
-        }
-
-        @Override
-        public int getKeyguardStoredPasswordQuality() {
-            return mSecurityModeMock;
-        }
-
-        public boolean isSecure() {
-            return mLockPatternEnabled || mLockPasswordEnabled || mTestSimPin || mTestSimPuk;
-        }
-
-    }
-}
index d1e1060..1ebfbad 100644 (file)
@@ -11,6 +11,14 @@ LOCAL_PROTO_JAVA_OUTPUT_PARAMS := optional_field_style=accessors
 
 include $(BUILD_STATIC_JAVA_LIBRARY)
 
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := SystemUI-tags
+
+LOCAL_SRC_FILES := src/com/android/systemui/EventLogTags.logtags
+
+include $(BUILD_STATIC_JAVA_LIBRARY)
+
 # ------------------
 
 include $(CLEAR_VARS)
@@ -23,7 +31,6 @@ LOCAL_SRC_FILES := $(call all-java-files-under, src) $(call all-Iaidl-files-unde
 
 LOCAL_STATIC_ANDROID_LIBRARIES := \
     SystemUIPluginLib \
-    Keyguard \
     android-support-v7-recyclerview \
     android-support-v7-preference \
     android-support-v7-appcompat \
@@ -32,6 +39,7 @@ LOCAL_STATIC_ANDROID_LIBRARIES := \
 
 LOCAL_STATIC_JAVA_LIBRARIES := \
     framework-protos \
+    SystemUI-tags \
     SystemUI-proto
 
 LOCAL_JAVA_LIBRARIES := telephony-common
@@ -42,6 +50,7 @@ LOCAL_CERTIFICATE := platform
 LOCAL_PRIVILEGED_MODULE := true
 
 LOCAL_PROGUARD_FLAG_FILES := proguard.flags
+LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res-keyguard $(LOCAL_PATH)/res
 
 ifneq ($(INCREMENTAL_BUILDS),)
     LOCAL_PROGUARD_ENABLED := disabled
@@ -52,6 +61,8 @@ endif
 
 include frameworks/base/packages/SettingsLib/common.mk
 
+LOCAL_AAPT_FLAGS := --extra-packages com.android.keyguard
+
 include $(BUILD_PACKAGE)
 
 include $(call all-makefiles-under,$(LOCAL_PATH))
index cefade0..8f5df7b 100644 (file)
@@ -32,10 +32,10 @@ LOCAL_SRC_FILES := $(call all-java-files-under, src) \
 
 LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res \
     frameworks/base/packages/SystemUI/res \
+    frameworks/base/packages/SystemUI/res-keyguard \
 
 LOCAL_STATIC_ANDROID_LIBRARIES := \
     SystemUIPluginLib \
-    Keyguard \
     android-support-v7-recyclerview \
     android-support-v7-preference \
     android-support-v7-appcompat \
@@ -52,7 +52,7 @@ LOCAL_STATIC_JAVA_LIBRARIES := \
 
 LOCAL_JAVA_LIBRARIES := android.test.runner telephony-common android.car
 
-LOCAL_AAPT_FLAGS := --extra-packages com.android.systemui
+LOCAL_AAPT_FLAGS := --extra-packages com.android.systemui:com.android.keyguard
 
 # sign this with platform cert, so this test is allowed to inject key events into
 # UI it doesn't own. This is necessary to allow screenshots to be taken