5524 Commits

Author SHA1 Message Date
Baligh Uddin
75900f7d89 Import translations. DO NOT MERGE
Change-Id: Ic8830e8e351d93506427aabed4f527dfe2f5888f
Auto-generated-cl: translation import
2012-08-14 11:05:04 -07:00
Baligh Uddin
9e1b5846d6 Merge "Import translations. DO NOT MERGE" into jb-mr1-dev 2012-08-13 16:07:41 -07:00
Baligh Uddin
038d56254c Import translations. DO NOT MERGE
Change-Id: Ibf3ae701adc0526c77f0a5327a5ae14d0f01980b
Auto-generated-cl: translation import
2012-08-13 11:53:55 -07:00
Jean-Baptiste Queru
0f6b0a658a am 82c2ff55: am d7b9c6c3: Merge "Added missing viewport meta tag to html resources"
* commit '82c2ff554682d4d3e99adb8ad4de664bb8a5bce9':
  Added missing viewport meta tag to html resources
2012-08-13 10:57:02 -07:00
Jean-Baptiste Queru
82c2ff5546 am d7b9c6c3: Merge "Added missing viewport meta tag to html resources"
* commit 'd7b9c6c356038ebced3461bb098b6a1ea1c7b222':
  Added missing viewport meta tag to html resources
2012-08-13 10:53:58 -07:00
Jean-Baptiste Queru
d7b9c6c356 Merge "Added missing viewport meta tag to html resources" 2012-08-13 10:38:23 -07:00
Amith Yamasani
258848d2ae User Manager service to manage users and query user details
Moved a bunch of methods from PackageManager to UserManager.

Fix launching of activities from recents to correct user.

Guest creation APIs

Change-Id: I0733405e6eb2829675665e225c759d6baa2b708f
2012-08-11 18:24:07 -07:00
Baligh Uddin
6cc7a9276b Merge "Import translations. DO NOT MERGE" into jb-mr1-dev 2012-08-10 15:54:38 -07:00
Nick Pelly
6fa9ad4afc Location overhaul, major commit.
Themes: Fused Location, Geofencing, LocationRequest.

API changes
o Fused location is always returned when asking for location by Criteria.
o Fused location is never returned as a LocationProvider object, nor returned
  as a provider String. This wouldn't make sense because the current API
  design assumes that LocationProvider's have fixed properties (accuracy, power
  etc).
o The fused location engine will tune itself based on the criteria passed
  by applications.
o Deprecate LocationProvider. Apps should use fused location (via Criteria
  class), instead of enumerating through LocationProvider objects. It is
  also over-engineered: designed for a world with a plethora of location
  providers that never materialized.
o The Criteria class is also over-engineered, with many methods that aren't
  currently used, but for now we won't deprecate them since they may have
  value in the future. It is now used to tune the fused location engine.
o Deprecate getBestProvider() and getProvider().
o Add getLastKnownLocation(Criteria), so we can return last known
  fused locations.
o Apps with only ACCESS_COARSE_LOCATION _can_ now use the GPS, but the location
  they receive will be fudged to a 1km radius. They can also use NETWORK
  and fused locatoins, which are fudged in the same way if necessary.
o Totally deprecate Criteria, in favor of LocationRequest.
  Criteria was designed to map QOS to a location provider. What we
  really need is to map QOS to _locations_.
  The death knell was the conflicting ACCURACY_ constants on
  Criteria, with values 1, 2, 3, 1, 2. Yes not a typo.
o Totally deprecate LocationProvider.
o Deprecate test/mock provider support. They require a named provider,
  which is a concept we are moving away from. We do not yet have a
  replacement, but I think its ok to deprecate since you also
  need to have 'allow mock locations' checked in developer settings.
  They will continue to work.
o Deprecate event codes associated with provider status. The fused
  provider is _always_ available.
o Introduce Geofence data object to provide an easier path fowards
  for polygons etc.

Implementation changes
o Fused implementation: incoming (GPS and NLP) location fixes are given
  a weight, that exponentially decays with respect to age and accuracy.
  The half-life of age is ~60 seconds, and the half-life of accuracy is
  ~20 meters. The fixes are weighted and combined to output a fused
  location.
o Move Fused Location impl into
  frameworks/base/packages/FusedLocation
o Refactor Fused Location behind the IProvider AIDL interface. This allow us
  to distribute newer versions of Fused Location in a new APK, at run-time.
o Introduce ServiceWatcher.java, to refactor code used for run-time upgrades of
  Fused Location, and the NLP.
o Fused Location is by default run in the system server (but can be moved to
  any process or pacakge, even at run-time).
o Plumb the Criteria requirements through to the Fused Location provider via
  ILocation.sendExtraCommand(). I re-used this interface to avoid modifying the
  ILocation interface, which would have broken run-time upgradability of the
  NLP.
o Switch the geofence manager to using fused location.
o Clean up 'adb shell dumpsys location' output.
o Introduce config_locationProviderPackageNames and
  config_overlay_locationProviderPackageNames to configure the default
  and overlay package names for Geocoder, NLP and FLP.
o Lots of misc cleanup.
o Improve location fudging. Apply random vector then quantize.
o Hide internal POJO's from clients of com.android.location.provider.jar
  (NLP and FLP). Introduce wrappers ProviderRequestUnbundled and
  ProviderPropertiesUnbundled.
o Introduce ProviderProperties to collapse all the provider accuracy/
  bearing/altitude/power plumbing (that is deprecated anyway).
o DELETE lots of code: DummyLocationProvider,
o Rename the (internal) LocationProvider to LocationProviderBase.
o Plumb pid, uid and packageName throughout
  LocationManagerService#Receiver to support future features.

TODO: The FLP and Geofencer have a lot of room to be more intelligent
TODO: Documentation
TODO: test test test

Change-Id: Iacefd2f176ed40ce1e23b090a164792aa8819c55
2012-08-10 14:57:09 -07:00
Adam Powell
3f9b24e531 Fix some Holo text color bugs
Fix Switch text color in Holo Light to contrast better - always light
text against the dark switch thumb.

Fix a bug where TextAppearance.Holo.Small.Inverse was using
?textColorPrimaryInverse instead of ?textColorSecondaryInverse.
("Small" TextAppearance always uses the secondary color.)

Bug 6967184

Change-Id: I039bf089d4c7aa257ec4f600df6c0d2066164194
2012-08-10 13:38:43 -07:00
Baligh Uddin
27f5b08c6e Import translations. DO NOT MERGE
Change-Id: Id5a310cbff83648052cf674e47e50aab30398fbb
Auto-generated-cl: translation import
2012-08-10 10:02:54 -07:00
Baligh Uddin
a28604840c Import translations. DO NOT MERGE
Change-Id: Icbcdd3a3c7dc300c30f23cc8870e8f6df63e22c6
Auto-generated-cl: translation import
2012-08-09 11:14:23 -07:00
Baligh Uddin
b7649306e9 Merge "Import translations. DO NOT MERGE" into jb-mr1-dev 2012-08-08 20:43:29 -07:00
Subir Jhanb
603af61a7c Add a new permission to have access to Gal Provider
BUG:6897999

Change-Id: Ie60963b7f3911b402b971e794178754e1b4f0a43
2012-08-08 14:31:45 -07:00
Baligh Uddin
36d60383c1 Import translations. DO NOT MERGE
Change-Id: Id596c71fef96c4ca0b23bdabcba326171d625ab5
Auto-generated-cl: translation import
2012-08-08 11:34:09 -07:00
Dianne Hackborn
537915828b Merge "More mult-user API work." into jb-mr1-dev 2012-08-08 10:22:49 -07:00
Daniel Sandler
5927d957ea Merge "Migrate Dreams default settings to DatabaseHelper." into jb-mr1-dev 2012-08-08 08:47:40 -07:00
Daniel Sandler
fdb7c36a10 Migrate Dreams default settings to DatabaseHelper.
Also switch Dreams on for all charging devices by default.

Change-Id: Iccbcc2906d55214320b2f467e88ba9cb188f4886
2012-08-08 08:38:48 -04:00
Dianne Hackborn
7d19e0242f More mult-user API work.
- You can now use android:singleUser with receivers and providers.
- New API to send ordered broadcasts as a user.
- New Process.myUserHandle() API.

For now I am trying out "user handle" as the name for the numbers
representing users.

Change-Id: I754c713ab172494bb4251bc7a37a17324a2e235e
2012-08-07 19:19:22 -07:00
Adam Powell
6571c7896d Fix padding in global actions list item
Re-align the icon edges with the expected amount of padding in the
long-press power dialog.

Change-Id: I0d2f86447e635d5c339b07c261716e12670dc06d
2012-08-07 17:39:56 -07:00
Adam Powell
4224790ffa Merge "Animate the action bar's Up chevron as it shows and hides." into jb-mr1-dev 2012-08-07 13:48:04 -07:00
Adam Powell
fd75eef161 Animate the action bar's Up chevron as it shows and hides.
Change-Id: I2cf0283cc644a62ad83cb5641b8f56cc8229b86f
2012-08-07 13:47:11 -07:00
Baligh Uddin
53bec9af8b Merge "Import translations. DO NOT MERGE" into jb-mr1-dev 2012-08-07 12:40:12 -07:00
Baligh Uddin
2cfa7d8943 Import translations. DO NOT MERGE
Change-Id: Ia88ed38a8472e03ac23c36dc8fe86643af9bb2d6
Auto-generated-cl: translation import
2012-08-07 12:24:57 -07:00
Dianne Hackborn
a419150573 Merge "Add power menu action to take a bug report" into jb-mr1-dev 2012-08-07 11:45:47 -07:00
Dianne Hackborn
5773bfdb7c Add power menu action to take a bug report
Change-Id: I5f58d99e9a27a1fc496fa54e0c0ee333087155da
2012-08-07 11:42:09 -07:00
Adam Powell
570470a332 Make ActionBar fail more cleanly when invalid heights are set
Also add "none" flag value for null displayOptions in xml

Change-Id: Ided3433638f02ba2a18ce08db265d7a8ac4f216c
2012-08-06 17:00:17 -07:00
Romain Guy
c09211911c Use correct color for default holo gradient
Change-Id: I7976c8d986da69dd312fe28cc6d88fc896bdf926
2012-08-03 17:21:04 -07:00
Romain Guy
5e80cacfad Replace stretched background textures with real gradients
Change-Id: I320733aaef191318d32fa823d9a6140585f49417
2012-08-03 16:17:14 -07:00
Ying Wang
a6216c67da Import translations. DO NOT MERGE
Change-Id: I96086039ac5b62a7a137990de380c95913e17f0f
Auto-generated-cl: translation import
2012-08-03 12:20:06 -07:00
John Spurlock
bc632a28e4 Re-enable dreams: frameworks/base
Enable feature in config. Expose Dream in public api for unbundled apps.
Unhide package.  Add isDreaming() method to service.

Re-arrange the Dream api a bit.  (use onStart as hook for subclasses).
Coordinate properly with power manager.

Replace old dock mode (don't fire old intent).

Change-Id: I1318d20cc1613e5d862f2913f2fcdc9719302cf7
Bug: 6921930
2012-08-03 08:51:17 -04:00
Dianne Hackborn
b4163a6e12 Add APIs for interacting across users.
- Expose the existing Context.sendBroadcast() as
  Context.sendBroadcastAsUser().
- Add new android:singleUser attribute for services.
- Add new INTERACT_ACROSS_USERS_FULL permission for full
  system-level access to cross-user interface (allows
  sendBroadcastAsUser() to send to any receiver).
- Add new INTERACT_ACROSS_USERS_FULL permission for
  more restricted cross-user interaction: this is required
  for android:singleUser, and allows you to use
  sendBroadcastAsUser() but only to send to your own
  receivers.

Change-Id: I0de88f6718e9505f4de72e3f45d29c0f503b76e9
2012-08-02 19:07:57 -07:00
Adam Powell
e468187870 Make MediaRouteButton focusable by default
Bug 6921236

Add a default contentDescription for MediaRouteButton.

Add long-press "cheat sheet" support to MediaRouteButtons created by
MediaRouteActionProvider for use in the action bar to match standard
action button behavior.

Change-Id: I313cfcb2349210765b084c3388095de4624009e8
2012-08-02 11:23:55 -07:00
Ying Wang
0bd4ca2f31 Import translations. DO NOT MERGE
Change-Id: I9800c2ea2bfd95bb615962f7b8e94dfc47a847ff
Auto-generated-cl: translation import
2012-08-01 12:50:06 -07:00
Satoshi Kataoka
3185869c65 Merge " Tentertively enable notification ime switcher" into jb-mr1-dev 2012-07-30 20:14:59 -07:00
Satoshi Kataoka
5e445c2e2c Tentertively enable notification ime switcher
Bug: 6883389

Change-Id: I90d216e0081c5c5b089ab7fe1396ace91f8b4434
2012-07-31 11:39:51 +09:00
Ying Wang
2d6cc0968e Import translations. DO NOT MERGE
Change-Id: Ic5a1446767d3a1e29bd62eeb080215a73a0728c0
Auto-generated-cl: translation import
2012-07-30 12:15:36 -07:00
Amith Yamasani
2b8c4b076d am 6232812a: am 61408a7e: Merge "Use correct layout style for Theme.Holo.Light." into jb-dev
* commit '6232812a8a398b7d1849e1959679010897ef82d2':
  Use correct layout style for Theme.Holo.Light.
2012-07-26 11:51:06 -07:00
Amith Yamasani
6232812a8a am 61408a7e: Merge "Use correct layout style for Theme.Holo.Light." into jb-dev
* commit '61408a7ed230b636263e6c410f62b1932a486ef9':
  Use correct layout style for Theme.Holo.Light.
2012-07-26 11:49:12 -07:00
Amith Yamasani
61408a7ed2 Merge "Use correct layout style for Theme.Holo.Light." into jb-dev 2012-07-26 11:46:54 -07:00
John Huang
543b2084b8 am 23ecb2cc: am 4c259f3d: am 3e6a9f01: Merge "Fix tethering APNs" into jb-dev
* commit '23ecb2cc0bf4c36c72f4b890e9effce5094a2984':
  Fix tethering APNs
2012-07-25 22:13:32 -07:00
Amith Yamasani
bfd070cfe1 Use correct layout style for Theme.Holo.Light.
Layout inherited from Theme.Light is incorrect.

Needed for fixes related to:
Bug: 6882764

Change-Id: I1c8217f8d9fcf7ece8fa5513766e7536a7c7e13d
2012-07-25 21:09:07 -07:00
John Huang
23ecb2cc0b am 4c259f3d: am 3e6a9f01: Merge "Fix tethering APNs" into jb-dev
* commit '4c259f3d7bfc635de89386bb72df8529dcaeee6a':
  Fix tethering APNs
2012-07-25 15:05:13 -07:00
Ying Wang
02f5c403ec Import translations. DO NOT MERGE
Change-Id: I77ba36c634b0f17682c88f7b7d255950fc2906be
Auto-generated-cl: translation import
2012-07-25 12:33:36 -07:00
John Huang
4c259f3d7b am 3e6a9f01: Merge "Fix tethering APNs" into jb-dev
* commit '3e6a9f01a5e69a3e452e04f92edfc21dcbdca3c3':
  Fix tethering APNs
2012-07-25 10:51:44 -07:00
Fabrice Di Meglio
e4f6a3351b Merge "Fix layout as there was a regression introduced in a previous CL" 2012-07-24 17:39:04 -07:00
Fabrice Di Meglio
b8a3942527 Merge "Introduce listPreferredItemPaddingStart/listPreferredItemPaddingEnd" 2012-07-24 17:21:56 -07:00
Fabrice Di Meglio
04bf7bbbf6 Fix layout as there was a regression introduced in a previous CL
- revert to the previous layout
- see https://googleplex-android-review.googlesource.com/#/c/182330/3

Change-Id: I854038547d845280bb3e1dadfe68eea4192635e4
2012-07-24 17:03:25 -07:00
Robert Greenwalt
8e49278672 Fix tethering APNs
Move DUN settings into carrier specific configs which also turn on dun-requirements.

bug:6828962
Change-Id: I2a79a58b385a04c4c534172af62182424cf2022b
2012-07-24 16:59:48 -07:00
Fabrice Di Meglio
f966ed949c Introduce listPreferredItemPaddingStart/listPreferredItemPaddingEnd
- see bug #5429822 UI should be mirrored for RTL locales (Arabic, Hebrew, farsi)

Change-Id: I7376b3c350ae9ce5034f3aac7105f61963c30c2d
2012-07-24 15:56:24 -07:00