4819 Commits

Author SHA1 Message Date
Jeff Brown
c458ce98ce Add support for using the lid switch to turn off the screen.
Added a config option to allow the lid switch to turn off the
screen.  This is a closer match to what a lid switch should be
doing.

Removed an old feature to bypass keyguard when keyboard is visible
because the way it was plumbed in made bad assumptions about
the meaning of the lid switch.  Also, the last product we shipped
that had a physical keyboard turned this config option off.
So away it goes.  We can bring it back someday if we really want it.
It's questionable how useful the feature is anyhow, since it only
works when the keyguard is unsecure and when the lid switch is
unlikely to be jostled in the user's pocket.

Fixed a bug where we would tell the power manager that the keyboard
was visible even if the lid switch did not control the keyboard.
This used to cause the power manager to try to set the keyboard
brightness, which doesn't work.

Bug: 6377115
Bug: 6406726
Change-Id: Ic84b71d09563d51c92cd1cf132fa8bdee6509103
2012-04-30 15:48:42 -07:00
Philip Milne
65340c1682 Merge "Fixes for optical bounds feature." into jb-dev 2012-04-27 16:57:41 -07:00
Philip Milne
7a23b49a8c Fixes for optical bounds feature.
1. Make the feature opt-in (ViewGroup::layoutMode defaults to CLIP_BOUNDS) without inheritance.
2. Rename COMPONENT_BOUNDS to CLIP_BOUNDS.
3. Rename LAYOUT_BOUNDS to OPTICAL_BOUNDS.
4. Complete GridLayout implementation.
5. Change the default_gap between components to 8dp, to align with the Style Guide.

Change-Id: I8d40dfc5f4ca469f6424eb3ff60d07bec56e3a9f
2012-04-27 16:46:57 -07:00
Jeff Sharkey
6ee3fe8849 Merge "Migrate ringtone playback to SystemUI." into jb-dev 2012-04-27 16:28:32 -07:00
Adrian Ludwig
2c85f5119e Merge "Update the short strings associatd with permissions to improve readability." into jb-dev 2012-04-27 16:22:21 -07:00
Irfan Sheriff
a5ab608295 Merge "Switch to standard commands for pno & power save" into jb-dev 2012-04-27 14:44:26 -07:00
Jeff Sharkey
098d580cc2 Migrate ringtone playback to SystemUI.
Introduce IRingtonePlayer, which handles playback for both Ringtone
objects and Notifications. SystemUI now hosts this player, which it
registers with AudioService. It also keeps MediaPlayer instances
warm, and cleans them up after stop() or Binder death.

Move both Ringtone and NotificationManagerService to play back audio
through this new interface.

Bug: 6376128, 6350773
Change-Id: I1dcb86d16ee3c4f07cdb2248d33dcff4ead3609a
2012-04-27 14:15:05 -07:00
Irfan Sheriff
e2639d782e Switch to standard commands for pno & power save
Remove DRIVER commands and switch to cfg based commands

Bug: 6318223
Change-Id: I5e21c4bb554c2992a52fd3c1741629645b22ae43
2012-04-27 13:01:04 -07:00
Carlos Valdivia
d070293895 Merge "Add Account button now follow UX guidlines." into jb-dev 2012-04-27 12:57:06 -07:00
Eric Fischer
e167c9fcb3 Merge "Import translations. DO NOT MERGE" into jb-dev 2012-04-27 12:32:40 -07:00
Eric Fischer
83f2a1e903 Import translations. DO NOT MERGE
Change-Id: Idd0d5aa4657025a03423e155237f820da534ce87
2012-04-27 12:24:55 -07:00
Carlos Valdivia
adb85a4e48 Add Account button now follow UX guidlines.
Bug: 6387717
Change-Id: I4846c346fdbbe1ca34502a96e0277e9b305342b6
2012-04-27 12:01:27 -07:00
Daniel Sandler
9f65c4c34a Allow nav bar height to vary between portrait and landscape.
Change-Id: I1d69e0f4a1772bff6534c5c591e1def26d163708
2012-04-27 10:24:01 -04:00
Eric Fischer
2be1523ba9 Merge "Import translations. DO NOT MERGE" into jb-dev 2012-04-26 15:20:58 -07:00
Mike Lockwood
9ad1b11326 Merge "Make audio routing Intents protected" into jb-dev 2012-04-26 14:30:31 -07:00
Eric Fischer
85a0c7c80c Import translations. DO NOT MERGE
Change-Id: I61893c06aa4696d0349b0afe92940671feec1eb1
2012-04-26 13:57:37 -07:00
Amith Yamasani
51e8480176 Remove power menu on tablets.
It had been added temporarily for testing, reverting to old behavior.

Change-Id: I1ea3fc41de311ba44949eb7abb7db3057eef1357
2012-04-26 12:54:39 -07:00
Mike Lockwood
8f014059d3 Make audio routing Intents protected
These intents should only be sent by the system:

android.intent.action.HEADSET_PLUG
android.intent.action.ANALOG_AUDIO_DOCK_PLUG
android.intent.action.DIGITAL_AUDIO_DOCK_PLUG
android.intent.action.HDMI_AUDIO_PLUG
android.intent.action.USB_AUDIO_ACCESSORY_PLUG
android.intent.action.USB_AUDIO_DEVICE_PLUG

Change-Id: I7be41892a9c4e619ca3e1c892fad6f1f2714c74f
Signed-off-by: Mike Lockwood <lockwood@google.com>
2012-04-26 11:31:58 -07:00
Adrian Ludwig
dc4ff3b499 Update the short strings associatd with permissions to improve readability.
Change-Id: I1f6fe6b7a364aefe3f94f6ce8174a19bd4b38f24
2012-04-26 10:53:37 -07:00
Jeff Sharkey
6dcf382b1b Move RINGTONE_PICKER to handle external storage.
To give RINGTONE_PICKER external storage access, move it from system
to MediaProvider.  Fix OOBE when getRingtoneUri() kicked requery().

Bug: 6346701
Change-Id: I837002eef0580b8cdd8920a27b068c745995a8a3
2012-04-25 14:56:13 -07:00
Michael Jurka
2c8e19e81f Merge "New API to allow third-party apps to bind widgets" 2012-04-24 19:06:14 -07:00
Jim Miller
e4cd3b0d95 Merge "Fix 6299832: Add search target swipe action to navigation bar on phones" 2012-04-24 18:32:37 -07:00
Winson Chung
069ac9a78d Merge "Updating activity/task transition animations." 2012-04-24 18:24:08 -07:00
Winson Chung
dc6f79bf43 Updating activity/task transition animations.
Change-Id: I0d4295d269222310a5a6594fb379b9592dd9ced0
2012-04-24 18:14:45 -07:00
Jim Miller
e898ac59db Fix 6299832: Add search target swipe action to navigation bar on phones
This adds a feature to swipe upward on the navigation bar to invoke
voice search on phones.

Change-Id: I462076fd43b1c66c5bf624f00b297c6d3414a19a
2012-04-24 17:25:46 -07:00
Michael Jurka
61a5b0160d New API to allow third-party apps to bind widgets
Change-Id: I1a3761c1a0f557a32d4d3bdd0207567fec918ba7
2012-04-24 17:25:08 -07:00
Dianne Hackborn
8238e717df Add new signature-level permission to get details of tasks.
Third party apps now can't get access to the extras of the
intents associated with tasks, to keep private data in them
from leaking out.

Change-Id: I95af9e181ac42557bc8b981807e7ddd266a88d0e
2012-04-24 14:27:02 -07:00
Dianne Hackborn
dc5f9b7530 am 0172264b: am 294374bf: am 5e542108: Merge "Remove deprecation on android:enabled attribute."
* commit '0172264bda0b3b018815cb4cdf26b00ccb7d7fe5':
  Remove deprecation on android:enabled attribute.
2012-04-24 13:50:24 -07:00
Eric Fischer
3cfb680afe Merge "Import translations. DO NOT MERGE" 2012-04-24 13:05:29 -07:00
Eric Fischer
5d5440abeb Import translations. DO NOT MERGE
Change-Id: I256639001505523434884de60d949295152ed10d
2012-04-24 12:39:18 -07:00
Chris Wren
db41553eaf Merge "actions on notifications should stack vertically." 2012-04-24 11:19:30 -07:00
Chris Wren
78db1064a7 actions on notifications should stack vertically.
Bug: 6317471
Change-Id: Ic49b7c3c95dd5033b380655fb5671433b13959ac
2012-04-24 14:15:41 -04:00
Maurice Chu
2dfba0e6cf Fix build breakage resulting from change id: Ia1038f45
Corrected adding a backslash before apostrophes in the strings.xml file.

Change-Id: I83574042184c9abb78409441ddf2d0e58a68f207
2012-04-23 19:03:13 -07:00
Maurice Chu
8aae6a8e94 Changed the description of android.permission.READ_CONTACTS
Bug:6141955
Change-Id: Ia1038f45d4f72358446ec265130bb34f8b228f82
2012-04-23 17:34:59 -07:00
Chris Wren
b023bf85a0 let default notifications with actions get bigger that 64dp.
Bug: 6377749

Change-Id: I8c92ef67b59f7a44b61926c32480cce6990a1375
2012-04-23 13:51:52 -07:00
Eric Fischer
f4a5cc1b52 Import translations. DO NOT MERGE
Change-Id: I9e4dcac71ac7430b6b51e49b4e9c4f6882a7f8b7
2012-04-23 12:21:11 -07:00
Daniel Sandler
03c63ebebb Merge "Update SystemUI for sw600dp devices." 2012-04-23 04:48:35 -07:00
Daniel Sandler
4a066c5c77 Update SystemUI for sw600dp devices.
Devices between 600 and 719dp will now use the two-bar
(phone) SystemUI layout, or something like it, derived from
PhoneStatusBar. Devices above 720dp will use the system bar
from TabletStatusBar.

However, this distinction is not to be made based on dp, at
least, not by the SystemUI; the goal is to drive most of
this switch from the window manager. Therefore most of
SystemUI's sw600dp resources have been folded into the main
set of resources (renaming them to avoid collisions where
appropriate). This allows SystemUI to choose which set of
resources to use entirely by switching status bar
components, entirely independent of Configuration.

(For some resources, particularly around recents, it seemed
more expeditious to keep relying on the device
configuration, so those resources have been bumped up to
sw720dp.)

Bug: 6297838
Change-Id: I3f5414a6a718bdc83f51930d6878cdf97df48c9c
2012-04-21 00:19:47 -04:00
Dianne Hackborn
8ff0c9204e Merge "You can now long press on the power off menu to reboot to safe mode." 2012-04-20 18:58:53 -07:00
Dianne Hackborn
19caadc08f You can now long press on the power off menu to reboot to safe mode.
Change-Id: I3aa575285058cf5a3d89486d6b944f6ea13d645c
2012-04-20 17:50:26 -07:00
Svetoslav Ganov
72de206248 Merge "Adding support for traversing the content of a node info at granularity." 2012-04-20 15:26:24 -07:00
Svetoslav Ganov
aa780c1109 Adding support for traversing the content of a node info at granularity.
1. A view that creates an accessibility node info may add to the info
   a list of granularity labels. These are granularities by which the
   source view can iterate over its content. For example a text view
   may support character, word link while a web view may additionally
   support buttons, tables, etc. There are actions on accessibility
   node info to go to the next/previous at a given granularity which
   is passesed as an argument.

2. Added Bundle argument to the APIs for performing accessibility
   actions. This is generic and extensible.

bug:5932640

Change-Id: I328cbbb4cddfdee082ab2a8b7ff1bd7477d8d6f9
2012-04-20 15:12:13 -07:00
Eric Fischer
8883d39feb Import translations. DO NOT MERGE
Change-Id: I89581a8cbda2a5f62fc42d383acf34756640d3b9
2012-04-20 12:45:16 -07:00
Chris Wren
d84e593746 fix press feedback on notification rows
Change-Id: I50de2f4d6142c2553428abc853c820f4354d0640
Bug: 6362246
2012-04-20 09:40:11 -07:00
Svetoslav Ganov
fefd20e927 Adding an opt-in mechanism for gesture detection in AccessibilityService.
1. An accessibility service has to explicitly opt in to be notified
   for gestures by the system. There is only one accessibility service
   that handles gestures and in case it does not handle a gesture
   the system performs default handling. This default handling ensures
   that we have gesture navigation even if no accessibility service
   would like to participate/customize the interaction model.

bug:5932640

Change-Id: Id8194293bd94097b455e9388b68134a45dc3b8fa
2012-04-19 22:08:42 -07:00
Jake Hamby
d65c2be548 Merge "Add ContentProvider for apps to read received SMS cell broadcasts." 2012-04-19 16:15:42 -07:00
Jeff Sharkey
875f064316 Merge "Move SystemUI out of system UID." 2012-04-19 15:59:20 -07:00
Adam Powell
a131f4efee Merge "Adjust action bar tab policies" 2012-04-19 14:36:32 -07:00
Adam Powell
b8139af3dc Adjust action bar tab policies
Action bar tabs now stack in portrait mode on all screen sizes rather
than display embedded. This only affects apps with a targetSdkVersion
of JB or greater, as older apps may not be prepared for the different
measurement of the bar or have an appropriate stacked bar background
drawable.

Stacked action bar tabs now have a width limit. This prevents
super-wide tabs that can span the whole screen. The cluster of tabs
is centered if it does not span the full width.

Add ActionBarPolicy to give a single point to query for various action
bar measurements and behaviors that vary with configuration.

Change-Id: I01162ca009c14f6f0e712fc906b9db6382c738cd
2012-04-19 14:31:16 -07:00
Eric Fischer
6cb7e640aa Import translations. DO NOT MERGE
Change-Id: I6fada25138bbeda2cdaf4fd4e4b56bdb134fe33d
2012-04-19 12:42:24 -07:00