Commit Graph

1275 Commits

Author SHA1 Message Date
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
John Spurlock
928c88774d am c6a2fa8c: Merge "Disable assist gesture when keyguard is active" into jb-dev
* commit 'c6a2fa8cba32f5310a052cea2307b898f0522fab':
  Disable assist gesture when keyguard is active
2012-06-27 13:29:16 -07:00
John Spurlock
67ad368d4d Disable assist gesture when keyguard is active
Prevent search gesture from firing when keyguard is in restricted input mode,
e.g. in Emergency Dialer. Also disable the Home touch listener in this mode to
avoid bringing up the ring.  Affects both phone and tablets.

Bug: 6723749
Change-Id: I60f0aebfcce4cf7f66798ee1212ea326bdad3ef0
2012-06-27 09:32:55 -04:00
Dianne Hackborn
7f3b379e99 Fix issue #6706369: Sometimes the "App info" popup shows...
...even though I don't long press

When you start scrolling from a point between two notification
items, only the first down goes to SwipeHelper.onInterceptTouchEvent(),
and the following events go to SwipeHelper.onTouchEvent().  However
when we call SwipeHelper.onTouchEvent(), we immediately bail if we are
not in the drag state, so we never clear the pending long press event.

Bug: 6706369
Change-Id: Icc46fba62fe7ee334d8d62ac39195d7c3aeff705
2012-06-26 16:39:02 -07:00
Dianne Hackborn
a4b7f2f75e Use two fingers to work some magic...
Change-Id: Ibcb3dbd3d158c22da8277e544d81fb47eadccd49
2012-06-25 19:19:15 -07:00
Dianne Hackborn
e6c2d62efb am 9906e784: am 17990395: Merge "Fix issue #6717667: expanded notification actions don\'t work on the lock screen" into jb-dev
* commit '9906e784faca2cc8388a04fdc544722ea93d51be':
  Fix issue #6717667: expanded notification actions don't work on the lock screen
2012-06-25 18:17:15 -07:00
Dianne Hackborn
9906e784fa am 17990395: Merge "Fix issue #6717667: expanded notification actions don\'t work on the lock screen" into jb-dev
* commit '17990395bc62f8ce1bae4f1880899f231a8e613b':
  Fix issue #6717667: expanded notification actions don't work on the lock screen
2012-06-25 17:37:15 -07:00
Dianne Hackborn
17990395bc Merge "Fix issue #6717667: expanded notification actions don't work on the lock screen" into jb-dev 2012-06-25 17:35:36 -07:00
John Spurlock
9ac704fe1c am 4415838b: am b032f9fc: Merge "TabletStatusBar: Hide notifications during Setup Wizard" into jb-dev
* commit '4415838b4b7014cee4a4bd1bfaeafa39d177a503':
  TabletStatusBar: Hide notifications during Setup Wizard
2012-06-25 15:03:28 -07:00
John Spurlock
4415838b4b am b032f9fc: Merge "TabletStatusBar: Hide notifications during Setup Wizard" into jb-dev
* commit 'b032f9fc9d32ff4e73f8323573ca2c5e427e7a74':
  TabletStatusBar: Hide notifications during Setup Wizard
2012-06-25 15:00:50 -07:00
Dianne Hackborn
1927ae8a56 Fix issue #6717667: expanded notification actions don't work on the lock screen
FLAG_ACTIVITY_CLOSE_SYSTEM_DIALOGS was a mistake.

Instead, and the infrastructure for the status bar to take care
of closing and hiding things itself when you press these buttons,
just like it does for the main Intent of the notification.

Bug: 6717667
Change-Id: I1b22186e0cedc05f46a1a3ec78053a72afaf61b1
2012-06-25 14:28:48 -07:00
John Spurlock
3623128d13 TabletStatusBar: Hide notifications during Setup Wizard
Protect tablet users going through the initial setup wizard from trapping
themselves in Settings before the setup wizard is complete. A similar change
was already made for phones, so use the same logic.

Also hide quick-settings button (another way to get trapped in Settings) and
associated panel click handler.  Remove clear button since we're no longer
showing notification items.

Bug: 6704080
Change-Id: If7148cde9d18f493627f8367fd4b39d22e0d5ef1
2012-06-25 09:52:38 -04:00
Michael Jurka
0adefbd1d1 Merge "Remove duplicate code to update wallpaper" 2012-06-22 14:44:06 -07:00
Chris Wren
ef46aa157b am 70a7be07: am ed5cc0e1: revert I057b7ac0 now that the layouts are the expected height.
* commit '70a7be0799bd1af77c0bcf2472d9c7e46f53c3c1':
  revert I057b7ac0 now that the layouts are the expected height.
2012-06-21 16:46:58 -07:00
Chris Wren
70a7be0799 am ed5cc0e1: revert I057b7ac0 now that the layouts are the expected height.
* commit 'ed5cc0e1f7648962f5c93e1277d282be75bcd537':
  revert I057b7ac0 now that the layouts are the expected height.
2012-06-21 12:03:43 -07:00