2332 Commits

Author SHA1 Message Date
Daniel Sandler
687a3274f0 Remove the secure lock icon from the status bar.
Added in I0e08a952904cc4728621953a42806edf26eb8e46, but
takes up too much room.

An undocumented system setting, "show_status_bar_lock", can
be set to 1 (e.g. in Spare Parts) to bring this back.

Bug: 2511090
Change-Id: I8869ac18c303a786eeb7f1a0c4ae08529b45d59c
2010-03-15 21:33:56 -04:00
Jim Miller
1e5b478fe6 Merge "Fix 2428368: Fix most of the lockscreen orientation refresh bugs" 2010-03-15 15:33:44 -07:00
Jim Miller
5475906f53 Fix 2428368: Fix most of the lockscreen orientation refresh bugs
This change removes the legacy notification of orientation and configuration changed events
from KeyguardUpdateMonitor and moves them into the individual activities.  This was necessary
to guarantee order of events.

In addition, to minimize discrepencies due to notification lag, Keyguard screens (LockScreen,
PatternUnlock, etc.) are now responsible for handling onConfigurationChanged() notification and
forwarding them to LockPatternKeyguardView by a call to recreateMe() with the new configuration.

This also removes the hack that used to prevent drawing while the configuration was in flux.

Change-Id: I6b72e8c06cebb2c5c83e2debeb478e89b6f6f386
2010-03-12 17:35:59 -08:00
David Brown
baf8d09292 Accessibility: optionally allow Power key to end the current call.
This is part 2 of the fix for bug 2364220 "Accessibility improvements for
ending calls".

This change updates the POWER key logic in interceptKeyTq() to check the
value of Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR, which allows the
user to specify that the Power button should hang up while in-call,
instead of just turning off the screen.

Bug: 2364220

Change-Id: If6d8e3155f7d60142ab6fd61f0a9db7f0b0d95ab
2010-03-11 15:27:09 -08:00
Dianne Hackborn
5f3063e370 Update for new layout flow.
Now does lock screen and status bar management in the animation pass, to better
match actual changes on screen.

Change-Id: I9a68fcfa1968dfa71961bc164a6fda15b2cd7d47
2010-03-10 16:01:58 -08:00
Mike Lockwood
b101d99ee5 Move dock wakelock code to UiModeManagerService.
Change-Id: Ide758a9e68002b13ba2d61bd9e9701d449edb65b
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-03-05 15:46:24 -05:00
Dianne Hackborn
78968395dd Update to use new dock broadcasts. 2010-03-05 10:58:34 -08:00
Daniel Sandler
055ea248a4 Use new vibrate icon in power menu.
Change-Id: I54725ae73bac731a2078a9c61d75d77c0cbb3680
2010-03-05 09:34:52 -05:00
Jim Miller
0340b42992 Fix 2420689: Fix bug that prevents pattern unlock from showing lockout dialog.
This fixes the problem where the lockout dialog wasn't showing.  It also fixes a problem
where the "forgot pattern" button would stop working.
2010-03-04 13:26:17 -08:00
Dianne Hackborn
c20115c500 Fix issue #2445481: onNewIntent is called twice if SEARCH button is "long-pressed" 2010-03-02 23:32:01 -08:00
Jim Miller
8b9dda28c9 Fix 2481917: allows keyboards with overlapping qwerty/numeric keys to work w/o requiring hitting the <alt> key.
Some devices have a qwerty layout without separate numeric keys. This makes PIN entry painful.
The workaround is to set an explicit numeric key listener when in numeric mode.
2010-03-02 17:24:48 -08:00
Jim Miller
98f182f78e Merge "Fix 2447470: always update the battery status when it's below the threshold." 2010-03-02 13:00:17 -08:00
Dianne Hackborn
6019c9d9ca Pointer location in framework, no longer need to link common. 2010-03-01 21:43:11 -08:00
Daniel Sandler
82d6c68b39 Support refined vibrate/silent behavior.
See change I14cf91b0 for explanation and required framework
support.

Bug: 2457183
Change-Id: I09ad7d697ff17c24fc41744ed70add214d132bd3
2010-03-01 20:16:11 -05:00
Jim Miller
cdb70af791 Fix 2447470: always update the battery status when it's below the threshold.
Previously, the battery percentage was only shown when the battery level
transitioned below the LOW_BATTERY_THRESHOLD (20%).  This change makes it so it gets updated
whenever we get a battery status update where the level is below LOW_BATTERY_THRESHOLD.

Note: this only applies to the pattern unlock screen.
2010-03-01 16:51:43 -08:00
Jim Miller
0d9f798e9f Fix 2468960: Make sure unlock screen gets updated when SIM state changes.
Added code to let us lazily re-create the unlock screen when the SIM
status changes.  This fixes a bug where we sometimes show the Pattern/Password unlock
instead of the SIM PIN unlock due to an ordering issue with recent changes
to the telephony layer SIM update logic. It now correctly re-evaluates the SIM state
and updates the UI accordingly.
2010-02-25 21:33:48 -08:00
Jim Miller
c23024d327 Fix 2336057: Provide a way for the user to return to a call from LockScreen.
This makes the "Emergency call" button dual-purpose. If there's a call in progress,
the button will show "Return to call" and take them back to the call.
2010-02-25 20:14:06 -08:00
Dianne Hackborn
746c4c4464 Update to reflect android-common no longer in framework. 2010-02-24 20:03:34 -08:00
Daniel Sandler
aec967acab Move lockscreen sound effects to the system stream.
Bug: 2458106, 2451532
Change-Id: I01869e3fd461dc24aa3157bf38aba9d2967526ec
2010-02-22 15:11:05 -05:00
Daniel Sandler
f2d8e74c02 Suppress unlock noises while in-call.
Bug: 2458106
2010-02-22 13:27:55 -05:00
Jim Miller
43cfa0e2d3 Merge "Fix 2448345: Fix tactile feedback bug in password/PIN and pattern unlock." 2010-02-19 18:18:14 -08:00
Jim Miller
966b126ea7 Fix 2448345: Fix tactile feedback bug in password/PIN and pattern unlock. 2010-02-18 19:55:29 -08:00
Daniel Sandler
f129859ee8 Suppress screen lock sound effect on first boot.
Bug: 2453032
2010-02-18 11:42:36 -05:00
Jim Miller
015398f3fd Merge "Partial Fix for 2416967: Fix potential memory leak in PasswordUnlockScreen." 2010-02-16 23:30:40 -08:00
Jim Miller
42b432d84c Partial Fix for 2416967: Fix potential memory leak in PasswordUnlockScreen.
PasswordUnlockScreen was previously registering for multiple callbacks which *sometimes*
caused a memory leak because a reference stuck around in the callback list.  I wasn't able to
track down the cause, but it looks like an interaction between switching between various lockscreen
modes and ordering of CONFIGURATION_CHANGED events.

I found one instance where the callback was being registered twice (fixed).  However, I'm
still able to reproduce the bug but far less frequently.

As a workaround, I've added code to prevent adding additional callbacks and added logging to
detect when a callback is already registered.

Also fixed an instance where we'd recreate the password unlock screen in LockPatternKeyguardView.updateScreen()
so it should be quite a bit faster switching orientations now.

Renamed UnlockScreen.java to PatternUnlockScreen.java for consistency.
2010-02-16 20:18:54 -08:00
Daniel Sandler
676074890e Merge "Support for lockscreen/keyguard sound effects." 2010-02-12 20:33:46 -08:00
Wink Saville
d13e213396 am 79484171: am f010b5d2: Change EndCallBehavior while in UTS test mode.
Merge commit '794841710d11f59fd1736d1c889cc9b91f38f78e'

* commit '794841710d11f59fd1736d1c889cc9b91f38f78e':
  Change EndCallBehavior while in UTS test mode.
2010-02-12 16:02:27 -08:00
Wink Saville
72c94b9f38 am f010b5d2: Change EndCallBehavior while in UTS test mode.
Merge commit 'f010b5d26f1e1c93b93576995e76ffd63db2f96e' into eclair-plus-aosp

* commit 'f010b5d26f1e1c93b93576995e76ffd63db2f96e':
  Change EndCallBehavior while in UTS test mode.
2010-02-12 15:57:25 -08:00
Amith Yamasani
c33cb7117e Add a new KEYBOARD_TAP haptic feedback type for very short, low-latency vibration.
The minimum value varies from device to device, so this is useful for defining
the shortest and most efficient vibration. The VibratorService creates a Thread
when playing back vibration patterns, so this allows you to avoid thread creation
and associated scheduling delays by specifying a one-shot duration in the config
file.
2010-02-12 15:19:54 -08:00
Daniel Sandler
db783bdff3 Support for lockscreen/keyguard sound effects.
See sibling change to frameworks/base (including basic
lockscreen sounds).

Change-Id: I62bb16b90c47353a3ca4a531e7f7d5b446486dde
2010-02-12 16:36:00 -05:00
Dianne Hackborn
c777e071d1 Add pointer location to window manager. 2010-02-12 13:10:56 -08:00
Wink Saville
d2e6a33cb1 Change EndCallBehavior while in UTS test mode.
When in UTS test mode this reverts the behavior
of the end key as it was in cupcake. When not in
UTS test mode the behavior is as before the change.

The UTS test mode is enabled when presist.sys.uts-test-mode is 1.

Bug: 2402366
Change-Id: I81359f3870a1e4da513f76c32aecdb7dfdf3bacf
2010-02-12 12:12:06 -08:00
Adam Powell
18e5779ed6 Merge "Added haptic feedback support for scroll barriers" 2010-02-12 10:28:27 -08:00
Jim Miller
148e73eaed Fix 2431663: Ensure password field retains focus in PasswordUnlockScreen. 2010-02-11 15:44:01 -08:00
Adam Powell
9d86fafe63 Added haptic feedback support for scroll barriers 2010-02-10 11:40:31 -08:00
Jim Miller
668f06f34f Merge "Fix 2402303: Split Keyboard widget from LatinIME into reusable PasswordEntryKeyboardView" 2010-02-08 21:05:43 -08:00
Jim Miller
a781d01610 Fix 2402303: Split Keyboard widget from LatinIME into reusable PasswordEntryKeyboardView
- Added new PasswordEntryKeyboardView to internal/widgets.  Widget supports:
    - alpha mode with symbols (latin-1 only).
    - a numeric keyboard
    - IME emulation that applies keyboard input to arbitrary top-level view widget.
- Added new transparent assets to framework resources.
- Modified Keyguard and Keyguard layouts to use new PasswordEntryKeyboardView.
2010-02-05 18:59:25 -08:00
Daniel Sandler
e5fbe9b912 New "device is locked" status bar icon, part 2.
Shown whenever the secure lockscreen is (a) visible, or (b)
active but hidden due to a FLAG_SHOW_WHEN_LOCKED Activity.

Change-Id: I0e08a952904cc4728621953a42806edf26eb8e46
2010-02-05 17:04:47 -08:00
Mike Lockwood
28569306e3 Add implementation for ALLOW_LOCK_WHILE_SCREEN_ON flag to PhoneWindowManager
This allows the lockscreen to activate after the normal screen timeout while the
screen is on.  Needed for dock apps, screen savers, etc.

Change-Id: I25c3579e4363c2b19d503fdbd45d2ff41cdd11bb
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-01-29 07:15:43 -05:00
Jim Miller
b3f615907d Fix 2402303: Show pmf3k in front of PIN/Password unlock screens.
This came down to a decision; if we want to show other information (owner id, current playing song, etc.)
as well as continue to have an easy way to silence the device, we need to have two unlock screens in these cases.
We simply don't have enough room on these screens to show anything but the unlock widget and a small bit of text.

This change *does not* affect pattern unlock, which will continue to be a single unlock screen.
2010-01-28 13:17:11 -08:00
Jim Miller
92728a0974 am fe22c504: am f2be271d: Fix 2287263: Change carrier TextView to be 1 line and marquee if text is too long.
Merge commit 'fe22c50410029eaf37f3e8e910a8c5fdd5769c70'

* commit 'fe22c50410029eaf37f3e8e910a8c5fdd5769c70':
  Fix 2287263: Change carrier TextView to be 1 line and marquee if text is too long.
2010-01-28 12:37:42 -08:00
Jean-Baptiste Queru
d8e1e74ddb resolved conflicts for merge of 27b0373f to master
Change-Id: I49fc5a1bf545814449f0c89c7a69ef75cf71d00c
2010-01-28 09:57:00 -08:00
Jean-Baptiste Queru
5704f326e0 resolved conflicts for merge of f05f7ab1 to master
Change-Id: Id39b4f1f0aefb387261bbe721050814d5517cea1
2010-01-28 08:15:50 -08:00
Jean-Baptiste Queru
70cdb408cb resolved conflicts for merge of 73f1d8e4 to master
Change-Id: I7a7b3cc68124a0cd3fde220e22a05a914b4c0fce
2010-01-28 08:08:35 -08:00
Jim Miller
37ca7defa9 Merge "Fix 2385283,2379269: report unlock attempt success/fail to DevicePolicyManager Reports success/fail for password, pattern and account unlock. Tweak pattern timeout a bit to avoid timeouts." 2010-01-27 19:08:31 -08:00
Jim Miller
6fe0f0e46d Fix 2385283,2379269: report unlock attempt success/fail to DevicePolicyManager
Reports success/fail for password, pattern and account unlock.
Tweak pattern timeout a bit to avoid timeouts.
2010-01-27 18:14:37 -08:00
The Android Open Source Project
33cafac65a am 44f9f23e: merge from open-source master
Merge commit '44f9f23ea227c62ce9250f49f5bf338cbb5f5dd7'

* commit '44f9f23ea227c62ce9250f49f5bf338cbb5f5dd7':
  Added missing media keycode (KEYCODE_MEDIA_REWIND), removed duplicate keycode (KEYCODE_MEDIA_PREVIOUS)
2010-01-27 16:15:13 -08:00
Jim Miller
f3b777a9ef am f2be271d: Fix 2287263: Change carrier TextView to be 1 line and marquee if text is too long.
Merge commit 'f2be271d1dd84d09ee55041d61ac9b2b4ed4ba31' into eclair-plus-aosp

* commit 'f2be271d1dd84d09ee55041d61ac9b2b4ed4ba31':
  Fix 2287263: Change carrier TextView to be 1 line and marquee if text is too long.
2010-01-22 20:23:32 -08:00
Jim Miller
5bfb2e0d7c Fix 2287263: Change carrier TextView to be 1 line and marquee if text is too long.
This is intended as a workaround for the long text lines introduced in https://android-git.corp.google.com/g/#change,38100.
Added explicit TextView.setColor() to workaround bug with TextView.setSelected().
2010-01-22 19:38:42 -08:00
John Wang
d6a9355031 am 36a6ec17: Merge "Update carrier display in lockscreen." into eclair
Merge commit '36a6ec17ba8dc655d0bd1d9bc92afb1699e3aafe' into eclair-plus-aosp

* commit '36a6ec17ba8dc655d0bd1d9bc92afb1699e3aafe':
  Update carrier display in lockscreen.
2010-01-22 10:24:27 -08:00