3241 Commits

Author SHA1 Message Date
Dianne Hackborn
9beeb95c80 Merge "Turn off hinting by default for higher density displays." 2011-08-12 19:17:09 -07:00
Dianne Hackborn
f43fa5746e Turn off hinting by default for higher density displays.
Also adds an API for apps to control whether hinting is used.

Change-Id: I1a06b06255fbb8d0f02a8ce48c2cd60019088ed3
2011-08-12 18:59:39 -07:00
Eric Laurent
497b3fe725 Issue 5081351: isWiredHeadsetOn() permission.
AudioManager.isWiredHeadsetOn() should not require permission MODIFY_AUDIO_SETTINGS.
Remove permission checks on all getters in audio policy manager as permission enforcement
is really usefull for setters.
Also deprecate AudioManager.isWiredHeadsetOn() which name and implementation are deceptive.

Change-Id: I38f8df7c26c0d417bf0e2b74e4c11c2d143f2ecd
2011-08-12 17:43:35 -07:00
Adam Powell
9ca705e323 Fix bug 5075761 - Visual assets: CAB states
Integrate new assets for the contextual action bar (action modes).

Change-Id: I8439196f8b7466ce862e1c21a34b7ae1abf88f36
2011-08-11 21:54:47 -07:00
Adam Powell
9cc07c3939 Merge "More fun with action bars and themes!" 2011-08-11 14:59:52 -07:00
Adam Powell
f242368f38 More fun with action bars and themes!
Fix bug 5144738 - Allow user to define pressed state asset for action
bar. Added android:actionBarItemBackground theme attribute. This
allows themes to define item pressed states for the action bar
independent of the standard selectableItemBackground.

Fix bug 5145416 - Custom view in action bar should use themed context
when inflating resource ID. Also applies to tab custom views.

Fix bug 5135550 - Tab divider height / Color should match spec. Added
actionBarDivider theme attribute. Similar to actionBarItemBackground
above, this allows apps to maintain proper contrast when the bar has a
different contrast profile than the rest of the activity.

Fix bug 5154778 - Theme.Holo.Light.DarkActionBar in themes.xml and
search_bar.xml are still referencing the deprecated title_bar_shadow
when we should be pointing to ab_solid_shadow_holo

Change-Id: I5ef0084de28a7c2d2fa02ae1752884feab0f8523
2011-08-11 14:33:32 -07:00
Debashish Chatterjee
9092b6d522 Merge "Added FETCH_VOICEMAIL intent definition in VoicemailContract." 2011-08-11 12:19:01 -07:00
Dianne Hackborn
e09cd7914c Merge "New broadcast telling when an app is fully removed." 2011-08-11 11:35:07 -07:00
Debashish Chatterjee
267a2ec040 Added FETCH_VOICEMAIL intent definition in VoicemailContract.
Content provider does not directly use this intent. But it is fired by
the contacts app to request the voicemail source to fetch voicemail
audio of a single voicemail message.

The constant needs to live in the contracts file to serve as a common
definition between contacts and voicemail source apps.

Bug: 5114261
Change-Id: Ibf7b2a4c871d3561d2ca50d03f8182352fadd3ab
2011-08-11 18:07:25 +01:00
Chia-chi Yeh
ac0a0d06c2 Merge "Unhide APIs for user space VPN." 2011-08-10 17:42:45 -07:00
Dianne Hackborn
f9abb40590 New broadcast telling when an app is fully removed.
Change-Id: Ia516d826f302a01881fa92d9ffdc0adfbf669a4b
2011-08-10 17:15:17 -07:00
Bjorn Bringert
4519ff6aa3 Add PendingIntent extra for WEB_SEARCH intents
This allos apps (e.g. browsers) that launch web searches
to control how the search results page is opened. For example,
the Android Browser will use this to make sure that searches
typed in the browser address bar open in the Andorid Browser,
and not somewhere else.

Bug: 4988580
Change-Id: I4665c9812ca8d704adbaea22a3812188bb48d1d2
2011-08-10 16:20:25 -07:00
Dianne Hackborn
fd545de7cd Merge "New extended Intent protcols for installing/uninstalling apps." 2011-08-10 12:34:21 -07:00
Dianne Hackborn
271c2fe0eb New extended Intent protcols for installing/uninstalling apps.
Change-Id: I13be1cc58c91f51d521a1f0f734d2b2db7b2980b
2011-08-10 12:22:11 -07:00
Wu-cheng Li
aba367eea4 Merge "Unhide camera face detection API." 2011-08-10 02:55:29 -07:00
Nick Pelly
7ad291a5e7 Merge "Add NFC to airplane mode" 2011-08-09 22:27:22 -07:00
Romain Guy
37cc31c604 Merge "Add a return value for SurfaceTextureListener#onSurfaceTextureDestroyed." 2011-08-09 20:23:22 -07:00
Grace Kloba
402f055303 Add a return value for SurfaceTextureListener#onSurfaceTextureDestroyed.
If returns true, the SurfaceTexture will be released by TextureView.
If returns false, the client needs to release the SurfaceTexture.

Change-Id: I946f71e337ad4170c168854ac27e028b82489c8c
2011-08-09 18:47:17 -07:00
Wu-cheng Li
c0c683b334 Unhide camera face detection API.
bug:4460717
Change-Id: I8d72b0ada370acd6267c47deb654bb4bf1cfb538
2011-08-10 08:45:26 +08:00
Amith Yamasani
dd93a7923c Merge "Added methods to change text entry mode in SearchView." 2011-08-09 16:37:53 -07:00
Nick Pelly
8d32a01bd2 Add NFC to airplane mode
NFC now observes airplanes mode, and is by default toggleable in airplane mode.

Change-Id: I5f19d35422c9eb1cffb0b5e0631b3f3c5eeaedcf
2011-08-09 16:31:46 -07:00
Amith Yamasani
5607a38271 Added methods to change text entry mode in SearchView.
Bug: 5143618

Handle imeOptions and inputType attributes in SearchableInfo.
Methods to directly modify those attributes on SearchView.

Change-Id: I340617767f930ecb1b1ad5ab2696bc613982a20b
2011-08-09 15:16:08 -07:00
Jeff Sharkey
82f006f672 Merge "Add progress to Notification.Builder." 2011-08-09 14:01:09 -07:00
Jeff Sharkey
1c40013bb2 Add progress to Notification.Builder.
Provide method to surface progress when building a notification. Also
manages visibility of various items, including hiding the entire line
when unneeded.

Bug: 4022082, 3399877
Change-Id: I90d8fca383c746001aadc6c5f21c68a23bb937e5
2011-08-09 11:19:32 -07:00
Wu-cheng Li
08a907149e Merge "Unhide camera recording hint API." 2011-08-09 02:54:07 -07:00
Chia-chi Yeh
d0d85f26cb Unhide APIs for user space VPN.
Change-Id: I6f9ddb3fffe9e10cc2d34dda3ae8700b1af7e470
2011-08-08 18:26:28 -07:00
Chet Haase
8b699792b6 Fix cancellation of AnimatorSet when child animation has delay
Previously, AnimatorSet incorrectly checked whether child animations were
'running' to figure out what to cancel. If a child animation was started, but
sitting in a startDelay phase, it was not 'running', so the right cancel/end
events would not propagate.

The fix is to add a new isStarted() API to Animator, which returns true when
the animator has started (but not yet ended), regardless of whether the animator
has a startDelay or not. It's basically a superset of the existing isRunning()
method, which only returns true when an animator has actually started setting values.

Change-Id: I126814cb6637b58295b6d18d9b155235671f99be
2011-08-08 15:05:53 -07:00
satok
03b2ea1102 Support xml configuration file for the spell checker and add the spell checker subtype
Change-Id: I74715855525fc0a1282238d593ad37aefd42bfc3
2011-08-08 19:29:26 +09:00
Dianne Hackborn
b437e090ec Improved memory use reporting.
Change-Id: I38e53e6228bba92a142bafeedb5af8df4e4e5724
2011-08-05 18:18:05 -07:00
satok
0dc8bb25d2 Merge "API cleanup for the spell checker framework" 2011-08-05 03:59:06 -07:00
Debashish Chatterjee
e53eba0470 Removed permission READ_WRITE_OWN_VOICEMAIL from framework/base.
This permission has now been replaced by ADD_VOICEMAIL.

Bug: 5098551
Change-Id: Idc993f1674a66f0df3ec699ed14b2e5cfedfe3e8
2011-08-04 15:49:04 +01:00
satok
5357806980 API cleanup for the spell checker framework
Bug: 5110151

- Add a bundle to an argment of newSpellCheckerSession
- Expose SpellCheckerSessionImpl in SpellCheckerService
- Fix function names
- etc

Change-Id: Ia8ec783b7b4d5fcd18389854b445fc10fc502297
2011-08-04 12:53:56 +09:00
Mathias Agopian
452f035c31 Merge changes I689cb0c0,I09603218
* changes:
  Add a 'release' method to the SurfaceTexture public Java API
  Mark Window-Manager-specific APIs on android.view.Surface as @hide
2011-08-03 18:12:36 -07:00
Mathias Agopian
ec46b4e1ca Add a 'release' method to the SurfaceTexture public Java API
Bug: 5063618
Change-Id: I689cb0c01c14e597ccfb4eb0972e64fa570bd4e8
2011-08-03 17:23:44 -07:00
Romain Guy
e28cde6253 Merge "Added Device Default Themes." 2011-08-03 17:16:02 -07:00
Jeff Sharkey
a841e52401 Merge "Expose quota status for active network." 2011-08-03 17:05:21 -07:00
Andrew Sapperstein
d31d3887bb Added Device Default Themes.
Now we have device default themes that OEMs
can change without affecting the Holo theme
or its derivatives. Additionally, the device
default themes point to device default styles
that have stubs (while inheriting from their
holo analogs).

Change-Id: I91f4a828eca1ba4da1d5b073dd04a34e52534aa4
2011-08-03 17:02:01 -07:00
Mathias Agopian
b923066dee Mark Window-Manager-specific APIs on android.view.Surface as @hide
Bug: 5063337
Change-Id: I096032186acfc6b6a032636188e4d44907e46233
2011-08-03 14:44:48 -07:00
Wu-cheng Li
9c53f1c33a Unhide camera recording hint API.
bug:4266229
Change-Id: Ic9014e521e22a3940b9c2068ce38783f52d2ac31
2011-08-03 23:39:07 +08:00
Debashish Chatterjee
3f76ca47e2 Merge "Step1 of renaming READ_WRITE_OWN_VOICEMAIL to ADD_VOICEMAILS." 2011-08-03 06:06:30 -07:00
Debashish Chatterjee
766839cb6f Step1 of renaming READ_WRITE_OWN_VOICEMAIL to ADD_VOICEMAILS.
READ_WRITE_OWN_VOICEMAIL sounds a confusing name. Dianne recommened to
rename it to ADD_VOICEMAILS as this simply allows 3rd party apps to add
new voicemails to the system. The fact that we allow the app to acces
only its own voicemail is implicit and need not be highlighted in the
permission name. See bug: 5098551 for more details

This CL implements the 1st step of this change by adding the permission
ADD_VOICEMAILS. A follow up CL will remove READ_WRITE_OWN_VOICEMAIL once
content provider and contacts app have been modified to start using the
new ADD_VOICEMAILS permission instead.

Bug: 5098551
Change-Id: I515e7967bdb0e8498a60a32983f9122ce10dcc4a
2011-08-03 10:48:58 +01:00
satok
c660091696 Rename API name "RESULT_ATTR_LOOKS_TYPO"
Change-Id: I42ab73513de20ea9a39af734b358094269ca7fe4
2011-08-03 18:46:18 +09:00
Jeff Sharkey
f0ceede8ff Expose quota status for active network.
Create API to expose quota status derived from underlying network
policy.  This is designed to support applications making informed
decisions when performing network requests.

Fix bug with random stats generation, and write policy when changing
restrict background data flag.  Deprecate EXTRA_NETWORK_INFO, since
it varies based on UID.

Bug: 4517283, 5088603
Change-Id: Ic6893a8967f69937e466be226ba7bb86ef5a5d2d
2011-08-02 18:19:54 -07:00
Adam Powell
269248d112 Fix bug 5098288 - Rethink the suite of new themes
Cut down the list of new themes for ICS. Holo apps now have
Theme.Holo, Theme.Holo.Light, and Theme.Holo.Light.DarkActionBar to
choose from.

Add manifest attribute android:uiOptions to express
splitActionBarWhenNarrow. Other options may move into this later as
well. (DialogWhenLarge?) This attribute is valid on both activity and
application tags; application settings will serve as the default for
activities that do not explicitly set uiOptions.

uiOptions are not currently reflected in the startup window for new
activities.

Change-Id: Iffdc2ce4cc69f79c9bd4e541b7923286e6936c1e
2011-08-02 17:58:24 -07:00
Philip Milne
e10bcdb37c Merge "Fix for http://b/issue?id=5081478" 2011-08-02 16:22:26 -07:00
Philip Milne
899d592287 Fix for http://b/issue?id=5081478
GridLayout needs to call measure on children after it knows how large children should be

Also:

. Remove deprecated methods and XML attributes.
. Stop Spaces having margins by default.
. Remove getSpacers() and findUsed()
. Change default for row/columnOrderPreserved() from false to true.
. Improve automatic index allocation mechanism to use individual maxima.

Change-Id: Id79fbb2e70a0bf2002191ec2a9746547d896de72
2011-08-02 16:01:28 -07:00
Hugo Hudson
e2048cc73f Merge "Add OpenableColumns to the Voicemail table." 2011-08-02 10:55:13 -07:00
satok
aafd955fa8 Move SpellCheckerSession
SpellCheckerSession should be in android.view.textservice because this class will be used directly by users.

Change-Id: I0df6d7958adda421312b5f641ac4459ca4739cc9
2011-08-02 16:04:39 +09:00
Dianne Hackborn
ba39839444 Move ImageWallpaper to SystemUI process.
Nice to not load 4MB bitmaps in the system process.

Also, hey, with how we are now scrolling the surface instead of
the bitmap, there is no reason to keep that 4MB bitmap loaded in
to memory.  So don't.

Unfortunately it looks like for some reason the VM is still
holding on to the bitmap.  I'll need to figure out why.  Later.

Change-Id: Ib3503756144502fc5c8d5e294248c2417c4fe8c8
2011-08-01 17:55:54 -07:00
Adam Powell
b1eaf8f552 Merge "Fix bug 5090996 - Crash on tapping Menu on dial pad" 2011-08-01 17:20:06 -07:00