1143 Commits

Author SHA1 Message Date
Daniel Sandler
56598cd4d3 Fix MENU icon weirdness.
(Broken by change I7cbb7bbf.)

Bug: 5308636
Change-Id: I30ca20f62bd140a823eb926a9a0521c4d6014680
2011-09-15 16:08:45 -04:00
Daniel Sandler
369711f89b Merge "Fix overlapping wifi and airplane icons." 2011-09-15 07:56:48 -07:00
Peter Ng
428dd26cd5 Merge "Status_bar_close that works on light and dark" 2011-09-14 20:27:14 -07:00
Peter Ng
669a8193bb Status_bar_close that works on light and dark
-No more blue, black works throughout all screens
-removed blue line from drop down handle because it was very problematic when a user has several notifications in their scrollview combined with the removal of fadingEdge vertical
-title_bar_shadow has an increased height

Change-Id: I8a291039b9c47c32ce289787612b050fd95e1fc4
2011-09-14 18:57:41 -07:00
Daniel Sandler
d9283b9031 Fix NPE.
Also remove unneeded log.

Bug: 5320647
Change-Id: If62b491ceb25d26195dea694fe0b5cd83c0f6305
2011-09-14 21:55:13 -04:00
Dianne Hackborn
ca7b656833 Merge "Fix issue #5283365: Rotating the device to portrait mode, hides the keyboard partly" 2011-09-14 17:58:18 -07:00
Dianne Hackborn
1f903c3b57 Fix issue #5283365: Rotating the device to portrait mode, hides the keyboard partly
PhoneWindowManager now takes full responsibility for deciding where the
navigation bar goes.  This gets rid of a bunch of race conditions with
determining layout while the nav bar is moving itself at the same time
the window manager is computing a new configuration.

Note that this breaks the "nav bar on left" option.  The current nav
bar code could also be cleaned up some more to completely drive its
behavior based on onSizeChanged() happening during relayout.

Change-Id: I1651d74c3464ba0d588aab3049e099c78420146a
2011-09-14 17:56:40 -07:00
Daniel Sandler
6da2b76ea4 Fix disappearing BACK button.
We weren't properly applying the disabled flags from one
orientation to the other. This crops up when the lockscreen
changes the flags and forces a reorientation at the same
time; the other orientation can become stale.

Bug: 5312123
Change-Id: I7cbb7bbf69e6d86cb47450bcdfa692a1f766cd5e
2011-09-14 16:04:59 -04:00
Jeff Brown
aab55bf3e3 Merge "Fix bug in KeyButtonView key injection logic. Bug: 5299191 Bug: 5300282" 2011-09-13 19:23:01 -07:00
Jeff Brown
98392efb24 Fix bug in KeyButtonView key injection logic.
Bug: 5299191
Bug: 5300282

Only send keys when mCode != 0.

Simplified the logic for repeating / non-repeating keys.
Key down / up are always correlated with touch down / up, the
only thing that's special is that we detect long press for
repeating keys and not for others.

Ensure that up or cancel is always sent for every key
that is generated.  Previously it was possible for keys to get
stuck down if touch moved out of the button's active area.

Removed the funky HOME long press timer.  We don't need it
since we can rely on the long-press flag instead.  Since the
system UI is in direct control of key repeating and long-press
behavior for the keys it inject, this eliminates the need for
special hacks to circumvent the timer.

Ensure that the same haptic feedback is provided for all keys,
including the recent apps key.  Previously this only worked
because the code was injecting a bogus key with code 0.

Don't generate repeated haptic feedback for virtual keys
even when those keys are injected.  This doesn't happen
for virtual keys synthesized by the InputReader because it
never injects repeats itself (the InputDispatcher synthesizes
them), but it is an issue for the KeyButtonView.

Change-Id: I8b3615dde738af28e76898d161d6ce9a883b59ec
2011-09-13 16:52:12 -07:00
Daniel Sandler
5ccff81a64 Fix overlapping wifi and airplane icons.
Bug: 5254547
Change-Id: If293be36c4e06a8fac6f728b1f96e5759fe20f6d
2011-09-13 15:17:58 -04:00
Daniel Sandler
49f5840734 Transparent notification shade.
Bug: 5270161 (fix opacity)
Bug: 5231194 (transparent shade)
Change-Id: Ib7130ef0718c092dc9f8149698625a49d7abb2b2
2011-09-13 00:35:52 -04:00
Daniel Sandler
fe172cc861 Fix the takeoff position of a flung windowshade.
We were carefully tracking the vertical offset between the view
origin and the user's incident touch, but not actually
including it when performing a fling. (This might have
worked at one point but been later buried under some
refactoring rubble.)

Bug: 5210198
Change-Id: I97ae883491a5dedf1b48683441096fe9938d118f
2011-09-12 22:18:41 -04:00
Michael Jurka
f1c8adc9ae Merge "Bug fixes in Recents" 2011-09-12 17:04:53 -07:00
Michael Jurka
0e8063a3b4 Bug fixes in Recents
- Making thumbnails invisible until loaded (fixes regression)
- Speed up dismiss animation from menu
- Make the max swipe velocity greater
- Make only the thumbnail and app title long-clickable
- No more click sound when tapping outside the thumbnails to dismiss Recents
- Tweaking color of recents app label text

Change-Id: If7b6cd59e92feb0472eb3ea266733549cb9f4d4b
2011-09-12 16:55:04 -07:00
Dianne Hackborn
83f9dfe0f0 Merge "Add boot mode where only "core apps" are started." 2011-09-12 15:07:51 -07:00
Jeff Brown
911fe30d58 Track status bar fling velocity using screen coords.
Bug: 5210198

Change-Id: I58630ab861c0934755a4aac4b96fdc5634c4a438
2011-09-12 14:21:17 -07:00
Jeff Brown
68ebcdf3fd Fix ACTION_CANCEL handling in status bar.
Bug: 5198231

Widgets always need to handle ACTION_CANCEL properly since
it can happen at any time, such as when the screen is turned
off or the screen is rotated, removed or reconfigured.

Change-Id: Ia30b14bb6f68cdde5286b4d72e69130e9fb38732
2011-09-12 14:12:17 -07:00
Dianne Hackborn
d2509fd835 Add boot mode where only "core apps" are started.
A core app is one that has coreApp="true" in its manifest tag.

The system can successfully boot (though a little painfully) with
only framework-res.apk, SettingsProvider.apk, SystemUI.apk,
DefaultContainerService.apk, and Launcher2.apk set as core apps.

Currently this boot mode is always turned off.

Change-Id: Ieaa4a8031c2c391a12996aa8d8b1d65fc2b09d6b
2011-09-12 12:29:43 -07:00
Eric Fischer
d61a3a1bed Merge "Import revised translations." 2011-09-12 10:22:21 -07:00
Daniel Sandler
aeb1167501 Merge "Hide navigation buttons when they are DISABLEd." 2011-09-12 10:06:53 -07:00
Eric Fischer
78cc91aa7d Import revised translations.
Change-Id: I6e7f33ff16557f7e9088c0aa66fd1c79ed376c75
2011-09-12 09:48:06 -07:00
satok
d2deee1eeb Merge "Fix the visiblity of the ime switcher icon." 2011-09-12 00:25:41 -07:00
satok
9747f8977c Fix the visiblity of the ime switcher icon.
Bug: 5288866
Change-Id: I99b4aee36c337b2fab1116e9245ddecd826c840c
2011-09-12 15:56:40 +09:00
Daniel Sandler
029d5877b0 Hide navigation buttons when they are DISABLEd.
Back is hidden by DISABLE_BACK; Home, Recents, and Menu are
hidden by DISABLE_NAVIGATION.

Bug: 5261576
Bug: 5284740 (confusion about visible inactive icons)
Change-Id: I410c133b737cc11d61bac0318dc24458353ee7b3
2011-09-12 01:02:30 -04:00
Ken Wakasa
e00633e49a Fix NPE
bug: 5290369
Change-Id: Ica450c49fc0bc89b1697eaa1086707f481f6be7e
2011-09-12 12:18:09 +09:00
Daniel Sandler
f4b783f8a7 Merge "Exit the keyguard when the user clicks a notification." 2011-09-11 17:08:50 -07:00
Daniel Sandler
8dbdee5b16 Merge "Fix bug swiping away NO_CLEAR notifications." 2011-09-11 17:08:41 -07:00
Daniel Sandler
92d331883a Exit the keyguard when the user clicks a notification.
(This only works if the keyguard is not secure, but then
again, the user can't access the notification panel in that
case anyway.)

Bug: 5173952
Change-Id: I8a6081d26c52843822b381d8ebe0fae94a03bef9
2011-09-11 16:30:03 -04:00
Daniel Sandler
113045ab9c Fix bug swiping away NO_CLEAR notifications.
Bug: 5121507
Change-Id: I798686cfc8506805298e1481a3d603ce700e12f4
2011-09-11 16:08:14 -04:00
John Huang
e16c279d4f Handle HSPAP.
We were missing a case statement for HSPAP when picking icons.
Treat it the same as the other HSPA types.

bug: 5286238
Change-Id: Ia222cc600a5920e057698ba8b0d2cc8e4836b500
2011-09-09 14:52:57 -07:00
Daniel Sandler
99f6ecc2fd Merge "Show roaming icon in status bar." 2011-09-09 10:39:04 -07:00
Ken Wakasa
758c787d7a Merge "Suppress "Automatic" subtype name in tablet's IME switcher panel" 2011-09-09 10:19:51 -07:00
Peter Ng
a6f61c5c39 Merge "Status bar close dragdown resized to 32dp" 2011-09-09 09:52:05 -07:00
Ken Wakasa
bbf0b66ede Suppress "Automatic" subtype name in tablet's IME switcher panel
bug: 5282718
Change-Id: Ibecd6309eba9ac2fe173be7db4ba353e5821bd43
2011-09-10 01:47:49 +09:00
Michael Jurka
6f90f2a1aa Merge "Updated Recent Apps visuals" 2011-09-08 20:36:54 -07:00
Peter Ng
02038e3cbb Updated Recent Apps visuals
-added padding to portrait and landscape layout recent item
-updated drawable stroke on press and drag

Change-Id: I98e0073f5fba6d13f041871337e4dc534bbc1460
2011-09-08 20:35:19 -07:00
Chet Haase
e2ca08765e Merge "Throw an exception if a both nav and system bars are configured" 2011-09-08 17:59:30 -07:00
Chet Haase
bc0009d48d Throw an exception if a both nav and system bars are configured
It was possible for a device to be configured to use a navigation bar
(by setting config_showNavigationBar to true in a config.xml file)
and to use a system bar (by being a tablet device of sufficient size).
The display metrics would be set up for both, but the SystemUI would ignore
the navigation bar, leading to conflict in what would be displayed and how
much room there was on the display. This change throws an exception,
causing SystemUI to fail, when this conflict is detected.

Change-Id: Ib5c19d50ff9444bc33fd53d3dcfa016adc4872ef
2011-09-08 16:19:50 -07:00
Peter Ng
bfc365f4a9 Status bar close dragdown resized to 32dp
Bug: 5160060
Change-Id: I6960aa025922cd9ad208b6ff4a1d9f132c380436
2011-09-08 15:43:52 -07:00
Jeff Sharkey
b0d89922b1 Merge "Always disable() through SBMS; watch date." 2011-09-08 15:22:51 -07:00
Dianne Hackborn
eeb1dca393 Fix issue #5139085: Some Recents items can't be killed
Change-Id: Ib4fa413266c4aa2223576ce0299be743358fdc26
2011-09-08 13:30:11 -07:00
Daniel Sandler
89d97131bd Show roaming icon in status bar.
This also refreshes the data type icon when the data
connection state changes, so it'll pick up network speed
changes (3G->4G, e.g.) that aren't accompanied by some other
radio state change.

Bug: 5278165
Bug: 5274807
Change-Id: Ic97252a9fb29bd3f2a927f6a57666809297ad60e
2011-09-08 16:00:03 -04:00
Jeff Sharkey
4519a02608 Always disable() through SBMS; watch date.
Touching StatusBar.disable() directly can make the cached value over
in StatusBarManagerService stale.  Instead, dispatch DISABLE_BACK
through setSystemUiVisibility() on tablets; it's unused on phones.

Also DISABLE_NOTIFICATION_TICKER when showing secure lockscreen, and
watch for TIME_CHANGED in DateView.

Bug: 5255469
Bug: 5242677
Change-Id: I4efaf9799b2f229f49d7024da5dafceacd5e08bb
2011-09-08 12:34:44 -07:00
Daniel Sandler
1cdf067f5f Fix notification disappearance animations.
Bug: 5262083
Change-Id: Iea99c69359352d536f1fe00b86f6748711c36e34
2011-09-07 22:13:29 -04:00
Daniel Sandler
cbdc9d2e9c Merge "Use holo_blue_light for statusbar clocks." 2011-09-07 08:25:59 -07:00
Daniel Sandler
b69f7015e7 Use hardware acceleration in all status bar windows.
(Only applies to high-end devices. In situations where
memory budget or GPU/overlay support are lacking these will
still be done in software.)

Bug: 5233443
Change-Id: I668def10598f6a818d8011ba6dd8d1dd5440ae5e
2011-09-06 18:05:58 -07:00
Peter Ng
090d31eaa3 Merge "Blue notify quicksettings icon implemented" 2011-09-06 16:42:54 -07:00
Peter Ng
f6bb1622ba Blue notify quicksettings icon implemented
-Increased quicksettings and clearall inherent asset padding to 32 from 16dp
-new touchstates for quicksettings and clearall
-clear all remains on the right and quicksettings remains left aligned to the right of the date

Bug: 5076789

Change-Id: I45d7da2d79b94822c04aa162ebef99ac79ce0368
2011-09-06 13:25:55 -07:00
Eric Fischer
8160270cfb Merge "Import revised translations." 2011-09-06 12:02:13 -07:00