313 Commits

Author SHA1 Message Date
Svetoslav Ganov
71f14a4e23 Merge "Touch exploration state set to clients asynchronously and depended on talking service being enabled." 2011-07-25 12:08:08 -07:00
Amith Yamasani
c018496ab2 Merge "Implement CollapsibleActionView on SearchView." 2011-07-25 12:07:32 -07:00
Adam Powell
5bd36eee86 Merge "Fix bug 5060033 - No text-editing toolbar when in a dialog" 2011-07-25 10:57:42 -07:00
satok
142d7575b5 [step4] Change service interface
Change-Id: Iaf86065a2a7f075c670ebdaa60a33a815dcb8113
2011-07-25 11:01:49 +09:00
satok
54e677ffb0 Merge "[Step 2] Add apis for spell checker settings" 2011-07-24 18:47:50 -07:00
satok
562ab585f9 [Step 2] Add apis for spell checker settings
Bug: 5057977

Change-Id: I4617b7f1487349c5de385e7392dbc39c69fa2ebc
2011-07-25 10:23:52 +09:00
satok
ab45c768bc Merge "Tweak APIs for SpellChecker" 2011-07-22 23:17:51 -07:00
satok
1bedd99761 Tweak APIs for SpellChecker
1. Move getSupellcheckerInfo to SpellCheckerSession
2. Change the interface of getSpellCheckerSession
3. Remove a flag in SuggestionsInfo

Change-Id: I3debe09e213fc0ab74618eb3504383f2a9447fd9
2011-07-23 14:56:04 +09:00
Adam Powell
0bd1d0a152 Fix bug 5060033 - No text-editing toolbar when in a dialog
Fix a bug that caused standalone action mode bars to not appear
properly or account for system insets such as the status bar.

Add public API to View to toggle the fitsSystemWindows attribute.

Change-Id: I5d7669425b930c5d23f9df26a45f544b706e8242
2011-07-22 19:39:00 -07:00
James Dong
aba28e7fec Merge "Deprecate two methods in MediaRecorder.java class" 2011-07-22 17:59:10 -07:00
Svetoslav Ganov
00aabf7d18 Touch exploration state set to clients asynchronously and depended on talking service being enabled.
1. Upon registration of an accessibility client the latter received only
   the accessiiblity state and waiting for the touch exploration state
   to be sent by the system in async manner. This led the very first
   check of touch exploration state is checked a wrong value to be reported.
   Now a state of the accessibility layer is returned to the client
   upon registration.

2. Removing the dependency on talking accessibility service to be enabled
   for getting into touch exploration mode. What if the user wants to use
   an accessibility service that shows a dialog with the text of the touched
   view?

bug:5051546

Change-Id: Ib377babb3f560929ee73bd3d8b0d277341ba23f7
2011-07-22 17:38:54 -07:00
Amith Yamasani
763bc07652 Implement CollapsibleActionView on SearchView.
Automatically handle expanding and collapsing in an ActionBar using
the new callback for Collapsible ActionViews.

Also clear the query text when collapsing.
Make sure that the 'x' doesn't show when in expanded mode with no text.

Change-Id: I7cba009c7cc9a1c264ec11c76315353cbde55c6c
2011-07-22 14:14:59 -07:00
James Dong
3ff98beeaf Deprecate two methods in MediaRecorder.java class
Change-Id: I98fbe628fe77867b97c04f44458948ede2f49d22
2011-07-22 11:45:50 -07:00
satok
7793719ca9 Merge "Create TextServiceManager and SpellCheckerService" 2011-07-21 22:59:48 -07:00
satok
988323c57b Create TextServiceManager and SpellCheckerService
Bug: 4176026

This CL inherits https://android-git.corp.google.com/g/112600

Spec of TextServiceManager
- Chooses the most applicable TextService(e.g. SpellCheckerService, WordBreakIteratorService..)
    for each locale

Spec of SpellCheckerService
- Returns whether the given string is a correct word or not
- Returns Suggestions for the given string

Change-Id: Iaa425c7915fe70767ad0b17bf6c6fbcd2a1200b2
2011-07-22 14:52:21 +09:00
Adam Powell
7ebb0bb157 Merge "Bug 5061529 - Save/restore action view state for menu items across invalidations." 2011-07-21 18:22:02 -07:00
Adam Powell
038f1c80af Bug 5061529 - Save/restore action view state for menu items across
invalidations.

This includes expand/collapse state.

Add CollapsibleActionView interface. Views can implement this to have
special behavior when they are presented as an expanding/collapsing
action view. This lets SearchView and others take care of fiddly
behavior (focus stealing; opening the IME) automatically without apps
needing to implement this themselves.

Change-Id: Ibbd1eb5fcf3e3a862419e9344ad50f896bd05e36
2011-07-21 16:10:01 -07:00
Romain Guy
6ee8c2495d Merge "Add looper profiling to adb shell am" 2011-07-21 15:31:59 -07:00
Romain Guy
7eabe55db6 Add looper profiling to adb shell am
To profile the looper, run the following command:

adb shell am profile looper start <process> <file>
adb shell am profile looper stop <process>

Change-Id: I781f156e473d7bdbb6d13aaffeeaae88bc01a69f
2011-07-21 14:56:34 -07:00
Gilles Debunne
d2bea20965 Merge "Bug 4534376: Suggestion popup is not clipped." 2011-07-21 13:33:13 -07:00
Gilles Debunne
31a41d35f6 Bug 4534376: Suggestion popup is not clipped.
This happened when the popup was larger than the screen because of a very long suggestion.
The text will now be ellipsized with a marquee (better than using 2 lines I believe).

Also removed the up layout that was intended to be used when the popup did not fit vertically.
The popup is moved up instead if needed.

Change-Id: Ie741610e74ade10c691614f1c30d0e17b213c698
2011-07-21 10:49:50 -07:00
Isaac Levy
d7b3e6a39b WifiWatchdogSM notification for first wifi disable
Also moved customizable settings into Settings.Secure and
added listeners for setting changes into the state machine.

Change-Id: Ia6859c71f7edae13062685867959adc423af4643
2011-07-21 10:34:56 -07:00
Jesse Wilson
92d3532b93 Appease Doclava for ReferenceQueue.remove()
Bug: http://b/5050245
Change-Id: I1a5483b01c9e27d990c5ea1758539aa423bf7616
2011-07-20 12:57:38 -07:00
Dave Santoro
32911e72af Merge "Updates and fixes for the social stream API." 2011-07-20 12:43:26 -07:00
Debashish Chatterjee
e23fc20e54 Merge "Removed READ_WRITE_ALL_VOICEMAILS permission from framework." 2011-07-20 11:54:56 -07:00
Fabrice Di Meglio
1180644280 Fix bug #4772392 Check what needs to be done for RTL specific new attributes that are in public.xml
- cleanup public.xml
- make BiDiTest makefile non visible to the build system
- provide file for injecting the new attributes by hand

Change-Id: I5037ec323066ebd254be51fff7070a5a0101dff7
2011-07-20 11:38:59 -07:00
Dave Santoro
040e6b302c Updates and fixes for the social stream API.
- Social stream photo updates should use the new photo storage
  system instead of storing the image content in BLOBs.
- Package names need to be text, not numbers.  The status update
  documentation was incorrect.
- Social stream photos will include a URI the caller can open to
  get the photo content.
- Removed the max photo bytes from the stream item limit query,
  as we'll do appropriate resizing with the photo storage system.

Change-Id: I103ee1340c1a3772ae37add3684b0658c241a49c
2011-07-20 11:33:31 -07:00
Debashish Chatterjee
cdf95e3102 Removed READ_WRITE_ALL_VOICEMAILS permission from framework.
This permission is meant to be a 'signature' permission and to be used
only by the contacts app. We recently moved it to framework/base as part
of opening up voicemail api into the SDK. However, the signature of
framework is different from contacts app. Consequently the contacts app
is not granted READ_WRITE_ALL_VOICEMAILS permission. This makes the
contacts app crash on start.

This fix removes the READ_WRITE_ALL_iVOICEMAILS from framework/base so
that the one defined in contacts provider is then used by the system.

Bug: 5054221

Change-Id: Iaa7a23fe95b0142978eff124e25fe2291dc7d212
2011-07-20 19:09:37 +01:00
Debashish Chatterjee
e8c3986b5c Merge "Voicemail content provider API for api council review." 2011-07-20 05:34:01 -07:00
Alon Albert
5a8ca580b0 Merge "Add a getter for the active tag" 2011-07-19 22:06:34 -07:00
Alon Albert
eaef351afc Add a getter for the active tag
Change-Id: I597e041867fba7efae41feea63fa196bc10e4aa2
2011-07-19 22:04:22 -07:00
Irfan Sheriff
35435997c7 Merge "Adding WifiInfo object in CONNECTED broadcast" 2011-07-19 19:42:35 -07:00
Adam Cohen
1bfaf561b7 Adding resizeMinWidth/Height to AppWidgetProviderInfo
Change-Id: I17dc27829938a3f25a664d8255965cf9b67cb17e
2011-07-19 18:39:40 -07:00
Isaac Levy
3550ac919c Adding WifiInfo object in CONNECTED broadcast
Adding a parsable wifiinfo object in Connected broadcast, public api.
The connected broadcast only occurs on successful setup on the wifi
interface, so in normal use is very infrequent (once if the wifi
sleeps, or once at new hotspots, etc...)

WifiInfo objects are small, <10 ints, <5 short strings, and contain info
that could be useful to listeners, such as SSID.

The alternative is to the poll the Wifi Manager, using getConnectionInfo.
Because the Wifi Manager can update state in its own thread, polling the
Wifi Manager might result in an info object that's out of sync from the
received broadcast.

Change-Id: Iafcec77f45dd094ea84e6022b7a40e8952ae8137
2011-07-19 16:39:34 -07:00
Doug Zongker
9d29d155c5 Merge "add rebootWipeCache call to RecoverySystem API" 2011-07-19 13:00:30 -07:00
Doug Zongker
3365120137 add rebootWipeCache call to RecoverySystem API
Also remove the never-used encrypted-filesystem-via-recovery stuff
that was stripped out of recovery a while ago.

Change-Id: I3349cba83daa9bc4765bd9b3f96d15000a801824
2011-07-19 12:45:09 -07:00
Wu-cheng Li
f55df0e26a Merge "Add camera new picture and new video broadcast intents." 2011-07-19 11:16:20 -07:00
Shimeng (Simon) Wang
ba6e855453 Merge "Add in i18n TLDs and new TLDs to the URL RegEx matcher." 2011-07-19 10:31:52 -07:00
Shimeng (Simon) Wang
52fc810f73 Add in i18n TLDs and new TLDs to the URL RegEx matcher.
also update APIs.

issue: 4384739
Change-Id: I946323d80f85fe43338fdc19c5858356faefa6cc
2011-07-19 10:20:49 -07:00
Debashish Chatterjee
5521e892f8 Voicemail content provider API for api council review.
This is a new content provider implemented to add visual voicemail
support in android.

Voicemail content provider is the central repository for storing
voicemails inserted by various voicemail sources. The content provider
also exposes a status table to let the voicemail source application
convey its current status to the system.

The primary application that reads from this content provider is the phone app.
The phone app shows voicemails along with other call entries within the
call log and optionally any relevent message about the voicemail source
status.

The implementation of this content provider can be found at
https://android-git.corp.google.com/w/?p=platform/packages/providers/ContactsProvider.git;a=blob;f=src/com/android/providers/contacts/VoicemailContentProvider.java

Change-Id: I8ad46aec20c70684f7bfa45530bbb90dd841d81a
2011-07-19 14:42:19 +01:00
satok
4273ed652a Merge "Enable IMEs to set additional subtypes in background" 2011-07-18 20:42:54 -07:00
Adam Powell
f178737f82 Fix bug 5031652 - offer a way to associate metadata with an ActionMode
Change-Id: Ic9d453b5c58eea922ec65423801e008d953bb25b
2011-07-18 16:32:00 -07:00
Adam Powell
c27cc947e4 Merge "Make the theme attribute actionModeStyle public." 2011-07-18 16:29:53 -07:00
Adam Powell
00db5195ab Make the theme attribute actionModeStyle public.
Change-Id: I53cd5e88dbd9df83c3e171277ce4a4da5faf8a8c
2011-07-18 16:28:55 -07:00
Dianne Hackborn
822036d00e Merge "Fix issue # 5017868: Twitter crashes on start:" 2011-07-18 16:03:08 -07:00
Wu-cheng Li
10e09c69d6 Add camera new picture and new video broadcast intents.
bug:4964321
Change-Id: I42b45cda2e6a30f3bdf6127e2594933f32ecbaeb
2011-07-19 06:19:26 +08:00
Romain Guy
6be3d5561c Add lock/unlockCanvas to TextureView
With this change, TextureView has feature parity with SurfaceView.

Change-Id: I4ef2da33420fc9590f868636ae72a5a6de61965b
2011-07-18 15:02:06 -07:00
Dianne Hackborn
78f80b4e71 Fix issue # 5017868: Twitter crashes on start:
unable to resolve static field 106 (DEBUG) in Landroid/util/Config

Config was removed, but apparently some apps are actually using it.
Put it back.

Change-Id: Iebcb94b1158abc5e8c3dd9855068d2e9223d8999
2011-07-18 13:20:04 -07:00
satok
91e88122cf Enable IMEs to set additional subtypes in background
Bug: 4591792

Change-Id: I7e61a576c56d1a3a56001bdf2fd51ad3801add01
2011-07-19 04:59:48 +09:00
Svetoslav Ganov
35bfedeaba Touch exploration separate setting and API to poll the latter state.
1. Seperated touch exploration to be a seperate setting rather being
   magically enabled by the system of accessiiblity is on the there
   is at leas one accessibility service that speaks enabled. Now
   there is a setting for requesting touch exploration but still the
   system will enabled it only if that makes sense i.e. accessibility
   is on and one accessibility service that speaks is enabled.

2. Added public API for checking of touch exploration is enabled.

3. Added description attribute in accessibility service declaration
   which will be shown to the user before enabling the service.

4. Added API for quick cloning of AccessibilityNodeInfo.

5. Added clone functionality to SparseArray, SparseIntArray, and
   SparseBooleanArray.

bug:5034010
bug:5033928

Change-Id: Ia442edbe55c20309244061cd9d24e0545c01b54f
2011-07-18 12:44:08 -07:00