1963 Commits

Author SHA1 Message Date
Dianne Hackborn
d9b3b7e8e1 Fix issue #3202866: system server crash
Change-Id: Ied92164bea70f6cb8afe2c1c6ff4fc3836a209ab
2010-11-16 19:35:20 -08:00
Vasu Nori
6e2b2a660e return file uri from downloadmanager instead of content uri for public downloads
also add another public method to return mimetype for the given downloaded file
change is related to bug:3198355

Change-Id: I90bae443eec36968e0d533d9b07a514df369ac29
2010-11-16 17:58:22 -08:00
Adam Powell
ef70444768 Improve docs around ActionBar as noted in bug 3111444.
Rename method that was missed in previous ActionBar
refactoring. Deprecated previous version for compatibility for apps in
development.

Change-Id: I2c466aed8ed620aec5056026257e131fadf8843e
2010-11-16 15:08:35 -08:00
Dianne Hackborn
3a57fb9e9c Fix issue #3191573: PreferenceFragment.onActivityResult cannot
launch a new fragment on the same call.

There were some problems with the API design where you could do
things in such a way that a back stack entry that was not at the
top would get popped.  Ouch.  Hopefully this change prevents that
from being able to happen.

Change-Id: I8cbc952e12ddd231ff6c84b6e9bbf5125f449f04
2010-11-16 10:50:31 -08:00
Adam Powell
debf3bed9e Fix bug 2948913 - provide lifecycle notifications for action modes
Change-Id: I432e29a7bddb18bc32dfbe21a8ecd7d83158e3a0
2010-11-15 20:59:29 -08:00
Joe Onorato
fd52b18d9b The beginnings of the new status bar.
There is a lot of rough stuff still, but most of the functionality is here again.

Change-Id: I4b1241e61270f1434e798481afa83634233ee670
2010-11-15 11:52:33 -08:00
Patrick Scott
c12544a201 Offer a callback to intercept url requests.
The new callback allows applications to return a response for a particular url.
Deprecate onLoadResource in favor of the new api.  onLoadResource is not
currently being used by the new network stack and applications can post a
message from shouldInterceptRequest to handle onLoadResource.

Bug: 2905943
Change-Id: Icf48ab3110d85d76112b3c3b4a1a8c8a333b82f0
2010-11-15 09:19:38 -05:00
Dianne Hackborn
7eec10e6c9 Get rid of the extended themes.
We now decide whether to use a bitmap background based on whether the
window's drawing is hardware accelerated.  To do this, there is a new
"state_accelerated" that state list drawables can be parameterized on,
and the standard window background uses this to select a solid color
or bitmap drawable as appropriate.

Introduces a little hackery to have wm preview windows pretend like
they are hardware accelerated even if they aren't, so the preview looks
closer to the actual app.

Also Add a DialogWhenLarge variation for the light theme.

Change-Id: I215a79d5df65ba3eed52ab363cade9d8218a6588
2010-11-14 14:23:42 -08:00
Adam Powell
6af97e1c20 Revised assets for progress bars and indeterminate progress spinners.
Add support in ActionBar for activity-wide progress APIs.

Add ability for progress bars to set a target framerate rather than
the 5fps previously used.

Clean up some more dialog layouts using hardcoded styles rather than
theme attributes.

Change-Id: I8e88c7595e27c0b6f7829b598f2b084ac8501ae3
2010-11-12 19:06:40 -08:00
satok
b66d287e30 Add a setter of InputMethodSubtype to InputMethodManager
- Public API: void setCurrentInputMethodSubtype(int pos)

Change-Id: I55daa19ba924999def544bf841f00bf54852f3e1
2010-11-13 09:49:59 +09:00
satok
735cf38b8c Add a function to switch back to the last used IME
Change-Id: Iac7bcc2ee16dd04d91a3e75b160622d246788c9a
2010-11-13 08:00:25 +09:00
Jeff Brown
46e75294d5 Enable touch splitting for all windows by default.
New default only applies to applications with targetSdkVersion >=
HONEYCOMB.  Old applications default to no touch splitting for
their windows.

In addition, enabled split touch for various system windows.

Bug: 3049580
Change-Id: Idc8da9baa2cd8e1e4e76af8967d7b6a5ccb94427
2010-11-12 14:53:43 -08:00
Gilles Debunne
62e2fa24cd Update-api step missing after build fix.
Change-Id: I8c1cda587bc6dcf6302d14da58ea733b7b8d137a
2010-11-12 14:01:09 -08:00
Gilles Debunne
86b9c78e3e Added a flag for TextView that allows for text selection in read-only TextViews.
Bug 3101642

Change-Id: I5538e507043c89b02c07f3e1c1abc74a93467427
2010-11-12 11:33:01 -08:00
Dianne Hackborn
bdd19bc338 Add Theme.Holo.DialogWhenLarge
This theme gives you a dialog look when running on a large
or xlarge screen, otherwise a regular full-screen activity.

Also some new Fragment convenience APIs.

Change-Id: I3d97928ffaa4f3bdfd0cc5daf8823f9235c4ba68
2010-11-11 22:33:20 -08:00
Jim Miller
a4e28d1819 Add password expiration support to DevicePolicyManager.
Change-Id: Ib2629ec547c123ac489d7f4cbd4e0a1d4aa07620
2010-11-11 19:43:24 -08:00
Jason Bayer
3adf490a5a Add new keycodes initially used for GoogleTV devices.
Change-Id: I1b901037d6d401931dd3ec6f7d5e1e6ad165d1c9
2010-11-11 18:36:11 -08:00
Adam Powell
021aad952b First pass at styling progress bars for Holo.
Added attribute to let scale drawables size based on the intrinsic
width and height as a minimum. This helps prevent artifacts when
some 9-patches are used in situations like progress bars.

Change-Id: I168a232d3225afe9b5578a05a9b8634a1084404c
2010-11-11 14:53:29 -08:00
Jaikumar Ganesh
b0a1d01b4c Make AUDIO_STATE_CONNECTING in BluetoothHeadset public.
As the SCO connection is done on a separate thread, this
state is needed to prevent silent failures in case of APIs like
voicerecognition.

Change-Id: Id08725323a2c847df4d3bd9f60e42fde46100707
2010-11-11 10:59:48 -08:00
Adam Cohen
2f8b27bfe5 Fixing current.xml
Change-Id: Ida4077f26bb1bfd6e2070a3b58adabbcfd761c68
2010-11-10 18:20:31 -08:00
Adam Cohen
a02fdf1ba0 Adding widget auto-advance capability
Change-Id: I058573f40a48fd7b5c2efa5f1041a1199919a51a
2010-11-10 17:18:37 -08:00
Adam Powell
a4dba7f515 Fix bug 3183378 - make theme attribute selectableItemBackground public.
This will always be a reference to a state list drawable that shows
proper pressed/focused/etc background highlights for the current
theme.

Change-Id: I60671e581ad0fa8cc2f6a808beafa506784112de
2010-11-10 12:07:44 -08:00
Jesse Wilson
02dabd4ebe Update current.xml to be in sync with deprecated tags.
Change-Id: I2472b25a3c36b37f8d862b77c0a3cc4c1f757694
2010-11-09 11:32:32 -08:00
Jesse Wilson
762b33f949 am 2d2f10fa: am 28c74257: Add @Deprecated to match @deprecated where it\'s missing.
* commit '2d2f10fa3412adc07a08c25ba5d2df600fb654bf':
  Add @Deprecated to match @deprecated where it's missing.
2010-11-09 10:26:39 -08:00
Jesse Wilson
2d2f10fa34 am 28c74257: Add @Deprecated to match @deprecated where it\'s missing.
* commit '28c742573ccaeb55c16bc02fb25fdd86b8d1f76a':
  Add @Deprecated to match @deprecated where it's missing.
2010-11-09 10:17:33 -08:00
Jesse Wilson
28c742573c Add @Deprecated to match @deprecated where it's missing.
Change-Id: Ice95022671968386a601f32df7850f9baa1d2dd0
2010-11-09 10:10:11 -08:00
Wu-cheng Li
0a514792ed am 2ee0af48: am a48b70fa: Camera.open() should only return back-facing camera.
* commit '2ee0af48a3ebb4ac1bbf5e867850519b424e5a06':
  Camera.open() should only return back-facing camera.
2010-11-08 19:23:33 -08:00
Wu-cheng Li
0bae616364 am 6025ecec: am 17ae3597: Revert "android.hardware.Camera.open only returns back-facing camera."
* commit '6025ecec2a0c37cdd0b25c85f6ffc54e35b42426':
  Revert "android.hardware.Camera.open only returns back-facing camera."
2010-11-08 19:23:15 -08:00
Wu-cheng Li
f90a0e84fe am 28345ef6: am 07b88fef: android.hardware.Camera.open only returns back-facing camera.
* commit '28345ef6e1171bf5da792bb743c1a986a539ee4b':
  android.hardware.Camera.open only returns back-facing camera.
2010-11-08 19:22:53 -08:00
Wu-cheng Li
2ee0af48a3 am a48b70fa: Camera.open() should only return back-facing camera.
* commit 'a48b70fa8ff6363d1e5282be70f6be12bc0688dc':
  Camera.open() should only return back-facing camera.
2010-11-08 12:19:35 -08:00
Wu-cheng Li
6025ecec2a am 17ae3597: Revert "android.hardware.Camera.open only returns back-facing camera."
* commit '17ae359721ba74399e785369346509b776999d1f':
  Revert "android.hardware.Camera.open only returns back-facing camera."
2010-11-08 12:19:26 -08:00
Wu-cheng Li
28345ef6e1 am 07b88fef: android.hardware.Camera.open only returns back-facing camera.
* commit '07b88fefd4e6386ad3265da47d008b40e6a58891':
  android.hardware.Camera.open only returns back-facing camera.
2010-11-08 12:19:15 -08:00
Dianne Hackborn
ab36acb399 Fixe some stuff.
Addresses these bugs:

3061847 - With no headers, PreferenceActivity crashes
2888426 - minor typo in DevicePolicyManagerService.ActiveAdmin.writeToXml()
3159155 - IllegalStateException:"Can not perform this action after
    onSaveInstanceState" while dismissing a DialogFragment
3155995 - PopupWindow.showAtLocation does not respect LayoutParams

Also tweak the new fragment APIs to use abstract classes instead of
interfaces as base classes.

Change-Id: I9c0b4337fe0e304b737b5f7c2762762372bb3020
2010-11-08 10:46:19 -08:00
Wu-cheng Li
a48b70fa8f Camera.open() should only return back-facing camera.
Also update current.xml and 9.xml. setRotationHint was also
missing from 9.xml.
bug:3173302

Change-Id: Idd3f7417a4d35c65910e9b08a1bfd157b91e1baa
2010-11-09 02:20:02 +08:00
Wu-cheng Li
17ae359721 Revert "android.hardware.Camera.open only returns back-facing camera."
This reverts commit 07b88fefd4e6386ad3265da47d008b40e6a58891.
2010-11-09 01:34:05 +08:00
Wu-cheng Li
07b88fefd4 android.hardware.Camera.open only returns back-facing camera.
bug:3173302
Change-Id: I813e41b36c776246f151b66ef289cdf13a05dc2c
2010-11-08 12:38:48 +08:00
James Dong
08caf9e84f am bb97d7bb: am 0467b0ab: Merge "Add a new public API to support recording rotated videos" into gingerbread
* commit 'bb97d7bbf33393af842de1d8fd8512a24c73b6b3':
  Add a new public API to support recording rotated videos
2010-11-06 16:25:39 -07:00
James Dong
bb97d7bbf3 am 0467b0ab: Merge "Add a new public API to support recording rotated videos" into gingerbread
* commit '0467b0abfc94f959163d84eadedf6941e41c1882':
  Add a new public API to support recording rotated videos
2010-11-06 14:21:53 -07:00
Ray Chen
97a4f47411 Add more EXIF tags.
Change-Id: I1844d9c87bee9feb14c4b493b4af59a1752859c7
2010-11-06 18:37:09 +08:00
James Dong
ad8f19c6b3 Add a new public API to support recording rotated videos
o changed a comment about the rotation orientation from counter-clockwise
  to clockwise.

Change-Id: I16ad73ce1a55cc627d9a516e23d1325753b3037e
2010-11-05 15:53:00 -07:00
Jeff Brown
51e7fe7545 Rename the locked meta key constants for clarity.
Also added some tests for LED setting.

Change-Id: I3fd86322afd07ae8de52d1ccbc2fae2c6d586641
2010-11-05 13:27:35 -07:00
Dianne Hackborn
8fe044a3a9 Adjust window animations to better match UX spec.
This introduces new resources for interpolators that match the
types received from UX, and uses them appropriately in the animations.

Change-Id: I68c435ff1c8845c7854fa78f24e33157659b16d1
2010-11-05 10:50:58 -07:00
satok
9ef0283bdc Change API for getting InputMethodSubtype's mode from resource id to String
Change-Id: I00aa99f8ab9901d40806a6bb336ab718eb857e8b
2010-11-05 11:40:56 +09:00
Vasu Nori
5be894e636 add API to return Uri for the given downloaded file id & get mimetype
Change-Id: I1f5dd734e394db0056579a3a0c26862fee27981e
2010-11-04 17:57:24 -07:00
Dianne Hackborn
e213677037 Push the jumpDrawablesToCurrentState() thing off everywhere it should be.
Also add a new interface that items in AbsListView can implement to
adjust the bounds of the selection shown for them.  This will allow
contacts to use list view's regular selection facility rather than
implementing something special in their item views.

Change-Id: I29cbdbc7122111ee97e47fe7d6ec55ff07be79cc
2010-11-04 15:34:41 -07:00
Brian Carlstrom
6932d5e05f Add android.os.StrictMode.VmPolicy.Builder.detectLeakedClosableObjects API
Change-Id: I7b21b65e522d9533b97e286c7685234d06999d28
2010-11-04 15:10:29 -07:00
Daniel Sandler
b73617de46 Rotation lock.
IWindowManager now supports two new methods,
freezeRotation() and thawRotation(), that allow a caller to
temporarily stash the device's current rotation as the
default rotation (when no other constraints are present).

The system bar uses this to implement a user-accessible
rotation lock by calling freezeRotation() and then turning
off accelerometer-based display rotation; unless overridden
by an app, the display will continue to appear in the frozen
rotation until the rotation is unlocked by the user (either
via the rotation lock icon in the system bar or by checking
"rotate screen automatically" in Settings).

Bug: 2949639
Change-Id: Icd21c169d1053719590e72401f229424b254622f
2010-11-04 16:55:29 -04:00
Dianne Hackborn
ea9020e085 Add API to find out if there is a vibrator.
Change-Id: If29f6ee19448222433cad9fad325d0095a8e5737
2010-11-04 13:01:56 -07:00
Mike Lockwood
0b20b77ff5 MediaStore: Make definitions for Files table public
This provides a public API for the new MediaProvider support for
arbitrary file types.  MediaProvider is no longer limited to supporting
only media (audio, video, image and playlist files).
This also allows querying across multiple media file types and supports
navigating the directory hierarchy of the media storage via database queries.

BUG: 2984284

Change-Id: I6222a6d601a4641cc7e544335e45d05b194532b1
Signed-off-by: Mike Lockwood <lockwood@google.com>
2010-11-04 13:20:06 -04:00
Adam Powell
0c24a5514c Fix bug 3156280 - Fix several issues with tab navigation in action bars.
Add the ability to restrict a FragmentTransaction's ability to be
added to the back stack. (It doesn't make sense for tabs or other
scenarios to allow this.)

Change-Id: I8fa2edb5f35c365e2483010ad13eb9993f5e6570
2010-11-03 19:24:19 -07:00