5532 Commits

Author SHA1 Message Date
Nick Pelly
ecdf2be6fe am b6c703fd: am 6fa9ad4a: Location overhaul, major commit.
* commit 'b6c703fda4995ccd702d4af65e12309d71732594':
  Location overhaul, major commit.
2012-08-10 15:05:27 -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
f5c94573c2 am 76a844e6: am 7c6f724e: Merge "Fix some Holo text color bugs" into jb-mr1-dev
* commit '76a844e6f30419c183fcc3b377dd52cd0c7ac26c':
  Fix some Holo text color bugs
2012-08-10 13:47:26 -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
1747cf158b Import translations. DO NOT MERGE
Change-Id: I96086f93081239211ccfe34ef83af25f1c1cdf62
Auto-generated-cl: translation import
2012-08-09 11:23:18 -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
Baligh Uddin
b078625fdf Merge "Import translations. DO NOT MERGE" 2012-08-08 20:39:56 -07:00
Subir Jhanb
015d0b3e7f am 95c29a8b: am 603af61a: Add a new permission to have access to Gal Provider BUG:6897999
* commit '95c29a8bbcf31c196044d6b645119d67b2c36e9f':
  Add a new permission to have access to Gal Provider BUG:6897999
2012-08-08 15:11:53 -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
0eb70f73f3 Import translations. DO NOT MERGE
Change-Id: Ia4a424e6a940a8837d2e05ec974990df18888395
Auto-generated-cl: translation import
2012-08-08 11:43:20 -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
128f16cfe0 am 852f06b3: am 53791582: Merge "More mult-user API work." into jb-mr1-dev
* commit '852f06b3fc84d559c2ff2ede2b8477bfd4c4ffa6':
  More mult-user API work.
2012-08-08 10:27:38 -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
12a4dcb0ae am cd500c67: am 5927d957: Merge "Migrate Dreams default settings to DatabaseHelper." into jb-mr1-dev
* commit 'cd500c670d440564af1c84c9f5c34ea07823df35':
  Migrate Dreams default settings to DatabaseHelper.
2012-08-08 08:52:30 -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
Baligh Uddin
8bba56a0c9 Merge "Import translations. DO NOT MERGE" 2012-08-07 19:31:17 -07: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
172aa0c924 am 6963f2c3: am 60b645f6: Merge "Fix padding in global actions list item" into jb-mr1-dev
* commit '6963f2c38c3d1f458e69a5b4390661e03936e267':
  Fix padding in global actions list item
2012-08-07 17:47:06 -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
77a572a8d3 am 60add06f: am 4224790f: Merge "Animate the action bar\'s Up chevron as it shows and hides." into jb-mr1-dev
* commit '60add06f3910d9f06f24b78ac69c89ad6c8deaa5':
  Animate the action bar's Up chevron as it shows and hides.
2012-08-07 13:52:48 -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
2c4316b908 Import translations. DO NOT MERGE
Change-Id: If7f690adfaada1f61adc0cf1ccb2a5d30d441218
Auto-generated-cl: translation import
2012-08-07 12:34:50 -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
Elliott Hughes
be53bae9c9 Merge "Switch DateUtils and Time over to using the CLDR for all week and month names." 2012-08-07 11:54:23 -07:00
Dianne Hackborn
ee8e74a005 am 6eff50de: am a4191505: Merge "Add power menu action to take a bug report" into jb-mr1-dev
* commit '6eff50de8172976c85e7cc1ca06ac398a2d6f367':
  Add power menu action to take a bug report
2012-08-07 11:51:11 -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
Elliott Hughes
99c406e42b Switch DateUtils and Time over to using the CLDR for all week and month names.
Change-Id: I92c73c269c6f90125cf834d434883595ba4b42d4
2012-08-06 19:41:22 -07:00
Adam Powell
6ab17ad40a am 51c6ae52: am ecbbfdd3: Merge "Make ActionBar fail more cleanly when invalid heights are set" into jb-mr1-dev
* commit '51c6ae52222240d300095f95518c4d20061d9eda':
  Make ActionBar fail more cleanly when invalid heights are set
2012-08-06 17:09:58 -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
Elliott Hughes
db9d339d4b Merge "Use ICU's CLDR data for "AM" and "PM" strings." 2012-08-06 09:40:32 -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