Commit Graph

1289 Commits

Author SHA1 Message Date
Daniel Sandler
fbf3089665 am 5cb62df6: am dd4ef49f: Persistent \'emergency calls\' banner in the notification panel.
* commit '5cb62df6bdac4aaab7a1c1b1ef849ec213ff028b':
  Persistent 'emergency calls' banner in the notification panel.
2012-07-27 15:51:31 -07:00
Daniel Sandler
5cb62df6bd am dd4ef49f: Persistent \'emergency calls\' banner in the notification panel.
* commit 'dd4ef49f4545dad2a6503d29e129472aba5392fc':
  Persistent 'emergency calls' banner in the notification panel.
2012-07-27 15:46:20 -07:00
Daniel Sandler
dd4ef49f45 Persistent 'emergency calls' banner in the notification panel.
While carrier info (or SSID for devices without mobile data)
will still be shown in a floating text view at the bottom of
the notification shade, emergency-calls-only mode will now
be shown in the notification panel header so that it cannot
be obscured by notifications.

Change-Id: I714b6801be2b9b631b86b51d229440445eff5e76
2012-07-27 11:19:54 -04:00
Daniel Sandler
1fbfd263ad am 08b7e785: am 7da1ad69: am c524ca27: Merge "Fix NPE on some phones at startup." into jb-dev
* commit '08b7e78597b06b3801d909c9e9ca1538ed9fc355':
  Fix NPE on some phones at startup.
2012-07-25 22:13:44 -07:00
Daniel Sandler
a7a83cef85 am 19351d5e: am f5221a86: am cb1aec34: Remove old unused DreamsDockLauncher.
* commit '19351d5e7a4b3bc95424f4ca5dded79b9826bd63':
  Remove old unused DreamsDockLauncher.
2012-07-25 22:13:25 -07:00
Daniel Sandler
08b7e78597 am 7da1ad69: am c524ca27: Merge "Fix NPE on some phones at startup." into jb-dev
* commit '7da1ad699989db8417ce54eb26697eae4a30f634':
  Fix NPE on some phones at startup.
2012-07-25 15:05:35 -07:00
Daniel Sandler
19351d5e7a am f5221a86: am cb1aec34: Remove old unused DreamsDockLauncher.
* commit 'f5221a86c4a7e0e0454732f6a4b95a33bbf334f2':
  Remove old unused DreamsDockLauncher.
2012-07-25 15:05:04 -07:00
Jeff Brown
a8b9defade Stop using raw display size except in window manager.
We don't actually need the raw size in these places.
The logical size is good enough.

Starting to move dependencies on surface flinger
and window manager out of the Display class.

Change-Id: I2065bee8e5bf7f42c5a452dd1e8479e40ebb0d37
2012-07-25 11:38:48 -07:00
Daniel Sandler
7da1ad6999 am c524ca27: Merge "Fix NPE on some phones at startup." into jb-dev
* commit 'c524ca275add1c84ef4e1e5c105058f44cac5efb':
  Fix NPE on some phones at startup.
2012-07-25 11:34:52 -07:00
Daniel Sandler
c524ca275a Merge "Fix NPE on some phones at startup." into jb-dev 2012-07-25 11:32:38 -07:00
Daniel Sandler
75fcac4eeb Fix NPE.
Bug: 6878563
Change-Id: I9a2afed6e2b517c2d6b54cea3d812fb84835fb00
2012-07-25 13:51:44 -04:00
Daniel Sandler
f5221a86c4 am cb1aec34: Remove old unused DreamsDockLauncher.
* commit 'cb1aec3403115467d1298fcabd45137eb483a1fe':
  Remove old unused DreamsDockLauncher.
2012-07-25 10:51:36 -07:00
Daniel Sandler
9af376e57a Fix NPE on some phones at startup.
Bug: 6877589
Change-Id: I65ff37b4cf6b59a72a7aa665f252f5fb34f3b183
2012-07-25 12:33:50 -04:00
Daniel Sandler
cb1aec3403 Remove old unused DreamsDockLauncher.
Bug: 6802065
Change-Id: I403b02ca7c78bb90eed712b3b6f846a4a6d68f8b
2012-07-25 11:00:49 -04:00
Daniel Sandler
9014345dda am 7d1ef0ce: am 3ee47ae7: Merge "Fix 6804479: "Emergency calls only" in notification shade" into jb-dev
* commit '7d1ef0cee7c61dea18216a80a00d437109b698d5':
  Fix 6804479: "Emergency calls only" in notification shade
2012-07-24 22:16:20 -07:00
Daniel Sandler
7d1ef0cee7 am 3ee47ae7: Merge "Fix 6804479: "Emergency calls only" in notification shade" into jb-dev
* commit '3ee47ae7ee0d0afc0a2bbe71636c31483b5502cd':
  Fix 6804479: "Emergency calls only" in notification shade
2012-07-24 22:13:56 -07:00
Daniel Sandler
0ae29275b8 Fix 6804479: "Emergency calls only" in notification shade
Add an additional codepath to the "no connectivity" logic in
NetworkController to allow the PLMN bubble up from the
GsmServiceStateTracker, where R.string.emergency_calls_only
is returned if we're in emergency call mode.

Bug: 6804479
Change-Id: I0a77261e4393cc0dc32bae3e631ef196b2342f06
2012-07-24 20:41:31 -04:00
Daniel Sandler
780d668bee Pressure info in captured gestures.
Change-Id: If72f8d5ea0cb748f60357441153d5fb8ac1b8143
2012-07-24 12:43:03 -04:00
Daniel Sandler
3380534a62 Collecting some data on notification panel gestures.
Look for it in /sdcard/statusbar_gestures.dat, in "JSON
lines" format: one list of gestures per line; each gesture
is itself a list of objects representing motion events and
tags (annotations).

Exploded example:

  [ // list of gestures
    [ // this starts a gesture
      {"type":"motion",
       "time":1347697,  // in SystemClock.uptimeMillis() base,
                        // like MotionEvents
       "action":"down", // down, up, move, cancel, else numeric
       "x":277.61,
       "y":1.00
      },
      {"type":"tag",
       "time":1347701,
       "tag":"tracking", // "tracking" or "fling"
       "info":"collapsed" // extra stuff
      },
      ... // more events
    ],
    ... // more gestures
  ]
  // newline
  [ // another list of gestures
    ...
  ]
  ...

Change-Id: Ifacbf03749c879cd82fb899289fb79a4bdd4fc3b
2012-07-24 12:43:02 -04:00
Adam Powell
0fc5b2bea0 Fun with Up navigation
For activities with a null taskAffinity, simply finish the current task.
(They probably shouldn't have specified a parentActivityName anyway.)

When launching into app info from ResolverActivity, launch the app info
page in the current task with FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET. Back
will return to the resolver, and Up will jump to Settings.

When launching into app info from RecentsPanelView or BaseStatusBar,
since this is a system affordance akin to notifications or widgets,
build the full task stack for the app info activity with
TaskStackBuilder and launch it as a new task.

Change-Id: I73b1941d0f52bd8b30382b5e17edd8ceb058c70d
2012-07-19 11:24:47 -07:00
Daniel Sandler
d290c9d1a4 am f22beb3f: am 0038ec11: Merge "Fix stuck status bars." into jb-dev
* commit 'f22beb3f2fae39568d1576254e4733c089da16f3':
  Fix stuck status bars.
2012-07-18 20:18:27 -07:00
Daniel Sandler
f22beb3f2f am 0038ec11: Merge "Fix stuck status bars." into jb-dev
* commit '0038ec1107baf179a54a2f10b6643f918b1e7059':
  Fix stuck status bars.
2012-07-18 20:14:33 -07:00
Daniel Sandler
ed930e5ad5 Fix stuck status bars.
An odd little bit of logic (attempting to defend against
the status bar getting stuck on orientation change) was
ironically causing it to get stuck if the bar was closed
twice in very rapid succession (which can happen if you
manage to click the settings button as the panel is about to
close).

Other tweaks to help defend against this sort of problem in
the future:

- When the screen goes off, immediately collapse the
  notification panel (without animation)
- When completing panel collapse, force the height of the
  expanded view to 0 (in case it ended up some other way by
  this point).
- Reduce a weird little glitch when you start
  animateCollapse() in the middle of a reveal animation.
  (The panel would jump to full height.)

Bug: 6765842
Change-Id: I233467c73e130f64401333319943289cbf3daa56
2012-07-18 01:33:56 -04:00
Greg Hackmann
bb033ea362 Don't force RGB-565 for tablet status bar
RGBX-8888 is preferred on some devices because the HW composer doesn't
support RGB-565.  SurfaceFlinger can map PixelFormat.OPAQUE to RGB-565
or RGBX-8888 depending on the NO_RGBX_8888 flag.

Change-Id: I6848b11f694188b606a5547b6dd386d933e30601
Signed-off-by: Greg Hackmann <ghackmann@google.com>
2012-07-13 13:48:52 -07:00
Wink Saville
5362f17ff5 Merge commit '1b003ef0' into mit
* commit '1b003ef0':
  Create telephony-common and mms-common

Change-Id: Ie8876541dbe7f4c933cf7d69910dd204538bc975
2012-07-11 18:15:50 -07:00
Wink Saville
a639b311e9 Create telephony-common and mms-common
These have been created to reduce the size and complexity
of frameworks/base.

mms-common was created by moving all of
  frameworks/base/core/java/com/google/android/mms
to:
   frameworks/opt/mms

telephony-common was created by moving some of
   frameworks/base/telephony
to:
   frameworks/opt/telephony

Change-Id: If6cb3c6ff952767fc10210f923dc0e4b343cd4ad
2012-07-11 16:02:08 -07:00
Daniel Sandler
3d0abf4490 am 97270ce8: am 5d0c689b: Merge "Logs to track bug 6765842." into jb-dev
* commit '97270ce8ce17d77f773a2cafa9176afd73cc6f84':
  Logs to track bug 6765842.
2012-07-03 12:17:31 -07:00
Daniel Sandler
97270ce8ce am 5d0c689b: Merge "Logs to track bug 6765842." into jb-dev
* commit '5d0c689b9b98be1b9be4d535ddb6f73142fd9b25':
  Logs to track bug 6765842.
2012-07-03 12:12:35 -07:00
Daniel Sandler
fdbac77e82 Logs to track bug 6765842.
It looks like we can get into a state where the notification
panel gets un-expanded, leaving an unsightly mess where your
status bar should be.

This change adds some additional info to the dumpsys output.

Bug: 6765842
Change-Id: Iecf2480bc7bdf5bb737863c0cbf9ad07d8523c0c
2012-07-03 14:35:05 -04:00
Dianne Hackborn
acc3da02e8 am 4be93bbe: am 074b54fb: Merge "Maybe fix issue #6756472: Share button is not defocusing the shade" into jb-dev
* commit '4be93bbe911c1a4471f81f0e261e9b13d9212c36':
  Maybe fix issue #6756472: Share button is not defocusing the shade
2012-06-28 17:45:40 -07:00
Dianne Hackborn
4be93bbe91 am 074b54fb: Merge "Maybe fix issue #6756472: Share button is not defocusing the shade" into jb-dev
* commit '074b54fbc0b6254c0ba308e0cf2e86c1cc929348':
  Maybe fix issue #6756472: Share button is not defocusing the shade
2012-06-28 17:42:23 -07:00
Dianne Hackborn
a194021650 Maybe fix issue #6756472: Share button is not defocusing the shade
I got this reproduce a few times, then wasn't able to.  I made this
change and then couldn't reproduce it.  Maybe it fixed it.

The change here is to explicitly pass in the handler class to
apply() and reapply(), instead of relying it being set as a member of
the RemoteViews class.  This is much cleaner and more explicitly about
setting that for the click callbacks.

Bug: 6756472
Change-Id: I8d029c3836501df3206c433838124b4be3890a8b
2012-06-28 16:34:35 -07:00
Michael Jurka
4f329cb77d Merge "Fix warnings and remove dead code" 2012-06-28 13:54:18 -07:00
Michael Jurka
a600fd9ba7 Fix warnings and remove dead code
Change-Id: Ifd1bcd8f5be181b115910f2f8918e1e50975a790
2012-06-28 13:47:41 -07:00
Chris Wren
5d77bd93b6 am 29a5e4a3: am 2761ccd4: Merge "Retain expanded state across more than one violent update." into jb-dev
* commit '29a5e4a3831e5bd38552fae33801fe25f4042591':
  Retain expanded state across more than one violent update.
2012-06-28 11:46:44 -07:00
Chris Wren
29a5e4a383 am 2761ccd4: Merge "Retain expanded state across more than one violent update." into jb-dev
* commit '2761ccd4799971b7ad696f6f94036ca16113c78d':
  Retain expanded state across more than one violent update.
2012-06-28 11:43:16 -07:00
Chris Wren
2761ccd479 Merge "Retain expanded state across more than one violent update." into jb-dev 2012-06-28 11:40:34 -07:00
Chris Wren
5ae1ea8400 Retain expanded state across more than one violent update.
Bug: 6680363
Change-Id: Iebf2387fc5c8774c1c001dde5a4608d4e60720aa
2012-06-28 14:35:43 -04:00
Daniel Sandler
caa2491139 am 51f755ab: am 9a8a28aa: Merge "Fix #6750492: NPE in tablet status bar" into jb-dev
* commit '51f755abfd31e8a41d6121cbeaa7a0727f0ea0ad':
  Fix #6750492: NPE in tablet status bar
2012-06-28 11:10:26 -07:00
Daniel Sandler
51f755abfd am 9a8a28aa: Merge "Fix #6750492: NPE in tablet status bar" into jb-dev
* commit '9a8a28aa72b9a4ebeaff3b30c497ce9bb5046083':
  Fix #6750492: NPE in tablet status bar
2012-06-28 11:07:32 -07:00
Daniel Sandler
9a8a28aa72 Merge "Fix #6750492: NPE in tablet status bar" into jb-dev 2012-06-28 11:02:57 -07:00
Dianne Hackborn
1101f37c47 am 19910f1f: am e680c722: Merge "Fix issue #6706369: Sometimes the "App info" popup shows..." into jb-dev
* commit '19910f1f1a250aa1e93d011e5404c837f1308546':
  Fix issue #6706369: Sometimes the "App info" popup shows...
2012-06-28 10:56:09 -07:00
Dianne Hackborn
19910f1f1a am e680c722: Merge "Fix issue #6706369: Sometimes the "App info" popup shows..." into jb-dev
* commit 'e680c72211434777d50c1e20e6c06b5a3cdc3207':
  Fix issue #6706369: Sometimes the "App info" popup shows...
2012-06-28 10:53:18 -07:00
Dianne Hackborn
e680c72211 Merge "Fix issue #6706369: Sometimes the "App info" popup shows..." into jb-dev 2012-06-28 10:50:45 -07:00
Daniel Sandler
15986c66cb Fix #6750492: NPE in tablet status bar
Pull down a bugfix from BaseStatusBar.

Bug: 6750492
Change-Id: I9bd04e3a800d4dd2222844d2848208d611b60fe0
2012-06-28 13:38:28 -04:00
Chris Wren
4aa86813d1 am a9ee110c: am 89304586: Merge "Retain expanded state across violent updates." into jb-dev
* commit 'a9ee110cd955a57ecec725f1357711876a418d2c':
  Retain expanded state across violent updates.
2012-06-28 04:36:43 -07:00
Chris Wren
a9ee110cd9 am 89304586: Merge "Retain expanded state across violent updates." into jb-dev
* commit '8930458639527448429362255af96e94f5aba5ed':
  Retain expanded state across violent updates.
2012-06-28 04:33:07 -07:00
Chris Wren
8930458639 Merge "Retain expanded state across violent updates." into jb-dev 2012-06-28 04:30:48 -07:00
Chris Wren
c9433ecb51 Retain expanded state across violent updates.
Bug: 6680363
Change-Id: I81e3b3a4e15b4ed240af62ad1023d4bbd9aaa646
2012-06-27 17:57:56 -04:00
John Spurlock
4c3cc7d4c9 am 928c8877: am c6a2fa8c: Merge "Disable assist gesture when keyguard is active" into jb-dev
* commit '928c88774db7d89036aef0f4286f7414b3a597f3':
  Disable assist gesture when keyguard is active
2012-06-27 13:33:08 -07:00