3103 Commits

Author SHA1 Message Date
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
75fcac4eeb Fix NPE.
Bug: 6878563
Change-Id: I9a2afed6e2b517c2d6b54cea3d812fb84835fb00
2012-07-25 13:51:44 -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
Jim Miller
f33efd9c06 Merge "Fix 6847667: remove custom layout for 720dp device" 2012-07-24 17:21:56 -07:00
Jim Miller
76ae16be0c Fix 6847667: remove custom layout for 720dp device
The navigation buttons for the old 720dp device used to be left-justified.
They're now centered.  This change removes the 720dp configuration and
restores it to the original 600dp behavior, which is centered.

Change-Id: I98a2905bd015e12df74ab1f91551da0b0aecf805
2012-07-24 15:06:19 -07: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
Ying Wang
7056cefb17 Import translations. DO NOT MERGE
Change-Id: I0d23965b0c760e9d0970c4a404ae3b8ae1921054
Auto-generated-cl: translation import
2012-07-23 11:58:31 -07:00
Ying Wang
2ff06437ae Import translations. DO NOT MERGE
Change-Id: I0f6f872984c04033f03960aec8312f86b0451fd0
Auto-generated-cl: translation import
2012-07-20 12:01:04 -07: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
0038ec1107 Merge "Fix stuck status bars." into jb-dev 2012-07-18 10:30:46 -07:00
John Spurlock
69b34dc1aa Fix systemui crash on Xoom startup
Make new bugdroid drawable available to non-hdpi device builds.
(moved to no-dpi for now)

It was getting optimized out during the build process.

Bug: 6828023
Change-Id: I31ac6ce2f50edc7f65d37b4b0f7513dd33a8b22d
2012-07-18 10:05:03 -04: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
Ying Wang
215f806482 Merge "Import translations. DO NOT MERGE" 2012-07-16 11:48:10 -07:00
Ying Wang
a45a568616 Import translations. DO NOT MERGE
Change-Id: I7b2ac5e0d46af6ba80cb6ad1cb38b143f9e4a4a5
Auto-generated-cl: translation import
2012-07-16 11:46:42 -07:00
Daniel Sandler
ef863701ae Switch to split status/nav bars on all device sizes.
Change-Id: Ie76aa4bdfd76e4a0ffb3949424ab28ef86ec54a1
2012-07-16 09:59:20 -07: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
Ying Wang
6eb86ac40c Merge "Import translations. DO NOT MERGE" 2012-07-13 13:40:33 -07:00
Ying Wang
e2e24f8dd7 Import translations. DO NOT MERGE
Change-Id: Iabb056f645a910f3fbaea1e51348c3bef385546e
Auto-generated-cl: translation import
2012-07-13 11:57:48 -07:00
Ying Wang
bc6db8eaa8 Import translations. DO NOT MERGE
Change-Id: I8c0c4a930f757e2dd0edd581fe6b815c845dd984
Auto-generated-cl: translation import
2012-07-13 11:57:03 -07:00
Ying Wang
a9becd0099 am c03f0a15: Merge "Import translations. DO NOT MERGE" into jb-dev
* commit 'c03f0a15578223208b48c1d946872d22a233ede4':
  Import translations. DO NOT MERGE
2012-07-12 12:04:49 -07:00
Ying Wang
0b92f42cb9 Import translations. DO NOT MERGE
Change-Id: Ie9da13842e58295df016befa6da667a7ac9a426d
Auto-generated-cl: translation import
2012-07-12 12:02:38 -07:00
Ying Wang
d792ef71cb Import translations. DO NOT MERGE
Change-Id: I11573dc6817d3ef1756ecb6c889e83129317d239
Auto-generated-cl: translation import
2012-07-12 12:00:03 -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
Justin Ho
d59bf6491c am b64e0f97: am 1b637fba: Merge "Remove gradients from navbar glow highlights." into jb-dev
* commit 'b64e0f971d03237a4fc6af101e76db669fb2fd15':
  Remove gradients from navbar glow highlights.
2012-07-11 07:40:35 -07:00
Justin Ho
b64e0f971d am 1b637fba: Merge "Remove gradients from navbar glow highlights." into jb-dev
* commit '1b637fbad4de204f737e2617da04eed7b334e945':
  Remove gradients from navbar glow highlights.
2012-07-11 07:38:02 -07:00
Daniel Sandler
25a916d6bc Remove gradients from navbar glow highlights.
Should reduce unsightly banding.

Bug: 6789484
Change-Id: I1bd552d571651ff614a867c2e52b8532b6e22749
2012-07-10 21:01:55 -04:00
Ying Wang
b1ac6afe7f Import translations. DO NOT MERGE
Change-Id: I64327f26c87a11b1395acd7dfa217c3fd386b133
Auto-generated-cl: translation import
2012-07-10 12:27:03 -07:00
Jim Miller
99d8fae5a0 Merge "Minor cleanup of left overs from GlowPadView integration." 2012-07-09 17:55:18 -07:00
Ying Wang
7893217fc0 Import translations. DO NOT MERGE
Change-Id: I2890a480cd440ac12b72399d5c0337b861427d9b
Auto-generated-cl: translation import
2012-07-09 12:13:43 -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
Eric Fischer
22881d06e2 Import translations. DO NOT MERGE
Change-Id: I71a10d97e9593fa75fe913fb78e3c579636d73cd
Auto-generated-cl: translation import
2012-07-02 12:42:21 -07:00
Jim Miller
a592d22473 Minor cleanup of left overs from GlowPadView integration.
- remove unused "chevron" assets
- reduce memory footprint in SystemUI by not loading unused handle drawable.

Change-Id: Iad1799d1a8a764c6abb4201520aa47ba84d33c38
2012-06-29 18:29:08 -07:00
Ying Wang
846387c13d Merge "Import translations. DO NOT MERGE" 2012-06-29 17:51:30 -07:00
Dianne Hackborn
c32e190ea6 resolved conflicts for merge of a9c38461 to master
Change-Id: Ie7044c4f9f15384c3edd328fa8e2932c731d9d5c
2012-06-29 16:23:49 -07:00
Dianne Hackborn
a9c3846194 am bfb752f8: Merge "Fix issue #6761130: Clearing app data in settings does not clear app\'s USB storage" into jb-dev
* commit 'bfb752f8f0e4d73dc251c19d2ef79649fbbe4fd1':
  Fix issue #6761130: Clearing app data in settings does not clear app's USB storage
2012-06-29 15:43:37 -07:00
Dianne Hackborn
183ce028f1 Fix issue #6761130: Clearing app data in settings does not clear app's USB storage
The package manager calls to clear data / clear cache were not also
having default container service clear the data on external storage.  Now
they do.

Change-Id: Ib5e5eb6adf2cac5a4cc094cc1a02ac8cfb6a2edf
2012-06-29 15:00:21 -07:00
Ying Wang
67992907ef Import translations. DO NOT MERGE
Change-Id: I0c5a7b310930b1197642c981768a39112c4eb562
Auto-generated-cl: translation import
2012-06-29 11:59:26 -07: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