83363 Commits

Author SHA1 Message Date
Amith Yamasani
dda851ce9a am 7871b629: am f83d2d6f: Merge "User Manager service to manage users and query user details" into jb-mr1-dev
* commit '7871b629a63a542fb81179c9239c21255a7a42ad':
  User Manager service to manage users and query user details
2012-08-11 21:42:07 -07:00
Amith Yamasani
7871b629a6 am f83d2d6f: Merge "User Manager service to manage users and query user details" into jb-mr1-dev
* commit 'f83d2d6f6b4a23011226a7b9fee20dabf94820cb':
  User Manager service to manage users and query user details
2012-08-11 21:39:36 -07:00
Amith Yamasani
f83d2d6f6b Merge "User Manager service to manage users and query user details" into jb-mr1-dev 2012-08-11 21:37:08 -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
Daniel Sandler
467aa0d747 am 52d5ab27: am f7178d3c: Allow the secure keyguard to engage behind Dreams.
* commit '52d5ab27f18ad23bc12a48349cab44829b438d4d':
  Allow the secure keyguard to engage behind Dreams.
2012-08-11 07:46:16 -07:00
Daniel Sandler
52d5ab27f1 am f7178d3c: Allow the secure keyguard to engage behind Dreams.
* commit 'f7178d3cadfeb0101491eeea7d7f3b0d7c26dbe6':
  Allow the secure keyguard to engage behind Dreams.
2012-08-11 07:44:13 -07:00
Daniel Sandler
f7178d3cad Allow the secure keyguard to engage behind Dreams.
TYPE_DREAM windows are now considered for relevant window
flags alongside application windows.

Bug: 6961616
Change-Id: Idee3303276a8b69c7f07de1d6acdce64c6e1b863
2012-08-11 00:55:14 -04:00
Nick Pelly
e2a0b87b31 am e80693f6: am 75f0fac9: Merge "Fix a couple of bugs from the location overhaul." into jb-mr1-dev
* commit 'e80693f6fc4efd7e852a252a612011f7ea1ee17b':
  Fix a couple of bugs from the location overhaul.
2012-08-10 17:24:54 -07:00
Nick Pelly
e80693f6fc am 75f0fac9: Merge "Fix a couple of bugs from the location overhaul." into jb-mr1-dev
* commit '75f0fac91bd7fa67fa76cfdd4e163b9f35be0432':
  Fix a couple of bugs from the location overhaul.
2012-08-10 17:22:23 -07:00
Nick Pelly
75f0fac91b Merge "Fix a couple of bugs from the location overhaul." into jb-mr1-dev 2012-08-10 17:19:09 -07:00
Nick Pelly
08ca1046fe Fix a couple of bugs from the location overhaul.
Marshall LocationRequest array correctly.

Observe reportLocation from FusionEngine.

Actually deliver the setRequest message to fusion engine.

Change-Id: Iff64596fdd42f9fb06e563591dda9fbe0241533a
2012-08-10 17:17:32 -07:00
Jason Sams
5a6dabec6d am 83c75834: am 0e545e24: Merge "Fix build issue with new error checks." into jb-mr1-dev
* commit '83c7583487d9429a56f44857d4b5ea555df16147':
  Fix build issue with new error checks.
2012-08-10 16:34:01 -07:00
Jason Sams
83c7583487 am 0e545e24: Merge "Fix build issue with new error checks." into jb-mr1-dev
* commit '0e545e24f0818b0577d0e6284ba1b49356f84be7':
  Fix build issue with new error checks.
2012-08-10 16:32:17 -07:00
Jason Sams
0e545e24f0 Merge "Fix build issue with new error checks." into jb-mr1-dev 2012-08-10 16:30:05 -07:00
Jason Sams
dc39e86cdc Fix build issue with new error checks.
Change-Id: Iccb9c12e0427622964a52806652eaddfb5834240
2012-08-10 16:29:00 -07:00
Jason Sams
58c01879e7 am 66155dde: am a277cf8c: Merge "Implement ScriptGroup and add test." into jb-mr1-dev
* commit '66155dded29e2bcdccdc3ccdd894f6846ea179fa':
  Implement ScriptGroup and add test.
2012-08-10 16:09:37 -07:00
Ashish Sharma
f80f8a3ac9 am 35d875ad: am 77b25796: Merge "Setup idletimer for network interface." into jb-mr1-dev
* commit '35d875ade38abd8dba6b7756ca612167ce8bcad0':
  Setup idletimer for network interface.
2012-08-10 16:09:34 -07:00
Jason Sams
66155dded2 am a277cf8c: Merge "Implement ScriptGroup and add test." into jb-mr1-dev
* commit 'a277cf8cf6a0a5902edb83591a55a169aebaaaa0':
  Implement ScriptGroup and add test.
2012-08-10 16:08:23 -07:00
Ashish Sharma
35d875ade3 am 77b25796: Merge "Setup idletimer for network interface." into jb-mr1-dev
* commit '77b257967de44e031c313858a45fccdd6e89732f':
  Setup idletimer for network interface.
2012-08-10 16:06:26 -07:00
Jason Sams
a277cf8cf6 Merge "Implement ScriptGroup and add test." into jb-mr1-dev 2012-08-10 16:04:55 -07:00
Ashish Sharma
77b257967d Merge "Setup idletimer for network interface." into jb-mr1-dev 2012-08-10 16:04:07 -07:00
Jason Sams
423ebcb4dc Implement ScriptGroup and add test.
Change-Id: I6ce0479c20f425d501c759c15717aa8b418c3f5f
2012-08-10 16:02:33 -07:00
Baligh Uddin
b159080666 am 97cf1fbf: (-s ours) am 6cc7a927: Merge "Import translations. DO NOT MERGE" into jb-mr1-dev
* commit '97cf1fbff83dd186e3d73ebe25b5adf8816f54ef':
  Import translations. DO NOT MERGE
2012-08-10 15:58:48 -07:00
Haoyu Bai
0412423f06 Setup idletimer for network interface.
Cherry-picked from commit f71ca8a5728e425de61ba794c9653dd0b04f16e3 in
master. DO NOT MERGE

Change-Id: I6101c7ae041b4cc1237ce7a9983753dbdfa301d3
2012-08-10 15:58:34 -07:00
Baligh Uddin
97cf1fbff8 am 6cc7a927: Merge "Import translations. DO NOT MERGE" into jb-mr1-dev
* commit '6cc7a9276bdad8b230e35141204c949291350f0b':
  Import translations. DO NOT MERGE
2012-08-10 15:57:07 -07:00
Baligh Uddin
6cc7a9276b Merge "Import translations. DO NOT MERGE" into jb-mr1-dev 2012-08-10 15:54:38 -07:00
Baligh Uddin
9f435f4be0 Merge "Import translations. DO NOT MERGE" 2012-08-10 15:52:02 -07:00
Baligh Uddin
bb2d8a6f7a am 1cca5cb2: (-s ours) am ea777806: Merge "Import translations. DO NOT MERGE" into jb-mr1-dev
* commit '1cca5cb2f9a19acee7702eb875267474eb8cc01f':
  Import translations. DO NOT MERGE
2012-08-10 15:43:17 -07:00
Baligh Uddin
1cca5cb2f9 am ea777806: Merge "Import translations. DO NOT MERGE" into jb-mr1-dev
* commit 'ea777806eb02a50f3ccaf08251aa35aa542dc061':
  Import translations. DO NOT MERGE
2012-08-10 15:41:31 -07:00
Baligh Uddin
ea777806eb Merge "Import translations. DO NOT MERGE" into jb-mr1-dev 2012-08-10 15:38:42 -07:00
Baligh Uddin
f270e958d9 Merge "Import translations. DO NOT MERGE" 2012-08-10 15:37:32 -07:00
Nick Pelly
9e634f8e18 am db95ee9f: am 3914e4b7: Remove LocationManager#getLastKnownLocation(Criteria).
* commit 'db95ee9f61980d210c52cba2928b4c0d46f7fa26':
  Remove LocationManager#getLastKnownLocation(Criteria).
2012-08-10 15:32:31 -07:00
Nick Pelly
db95ee9f61 am 3914e4b7: Remove LocationManager#getLastKnownLocation(Criteria).
* commit '3914e4b7d12b014f73085cd6e34b6fd69ea26226':
  Remove LocationManager#getLastKnownLocation(Criteria).
2012-08-10 15:30:37 -07:00
Nick Pelly
3914e4b7d1 Remove LocationManager#getLastKnownLocation(Criteria).
This was never a public API, so we don't need to follow
an orderly deprecation. And it breaks a CTS test:

cts/tests/tests/location/src/android/location/cts/LocationManagerTest.java:521: reference to getLastKnownLocation is ambiguous, both method getLastKnownLocation(java.lang.String) in android.location.LocationManager and method getLastKnownLocation(android.location.Criteria) in android.location.LocationManager match
            mManager.getLastKnownLocation(null);
                    ^

Change-Id: I503267e4fa577ce4bf684239da777f11b0e511f5
2012-08-10 15:27:38 -07:00
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
b6c703fda4 am 6fa9ad4a: Location overhaul, major commit.
* commit '6fa9ad4afcd762aea519ff61811386c23d18ddb2':
  Location overhaul, major commit.
2012-08-10 15:03:00 -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
9cfa9b17a7 am 5681861a: am c47f80f1: Merge "Don\'t assume a default of \'false\' for TwoStatePreference" into jb-mr1-dev
* commit '5681861a9e104b80f9f6c7c8cf8ef313ed1cc128':
  Don't assume a default of 'false' for TwoStatePreference
2012-08-10 14:44:25 -07:00
Adam Powell
5681861a9e am c47f80f1: Merge "Don\'t assume a default of \'false\' for TwoStatePreference" into jb-mr1-dev
* commit 'c47f80f1ae96e3c8b6a750d68cc12dfbbca97254':
  Don't assume a default of 'false' for TwoStatePreference
2012-08-10 14:42:07 -07:00
Adam Powell
c47f80f1ae Merge "Don't assume a default of 'false' for TwoStatePreference" into jb-mr1-dev 2012-08-10 14:39:28 -07:00
Adam Powell
c1b07211b8 Don't assume a default of 'false' for TwoStatePreference
TwoStatePreference would treat a default value of false as having no
effect since it matched the initial value of the internal field. This
caused asymmetric behavior around persistence and listener
notification when the default was true (persisted) vs. false (not
persisted).

Standard behavior for most Preferences is to persist the default
value. Make TwoStatePreference (CheckBoxPreference and
SwitchPreference) follow this pattern.

Bug 5722690

Change-Id: I8b3cf55efc5dfd573b511913b48ced017f0432d8
2012-08-10 14:36:53 -07:00
Daniel Sandler
3f0e4e70d7 am fd36f14f: am f5fd82ac: Merge "Capture orientation change data in the gesture log." into jb-mr1-dev
* commit 'fd36f14f70789ac8cb67fc84105524d4a916ef31':
  Capture orientation change data in the gesture log.
2012-08-10 13:53:20 -07:00
Daniel Sandler
fd36f14f70 am f5fd82ac: Merge "Capture orientation change data in the gesture log." into jb-mr1-dev
* commit 'f5fd82acc3a7e87c8901e7ab3d5c4f28648c149f':
  Capture orientation change data in the gesture log.
2012-08-10 13:50:57 -07:00
Daniel Sandler
f5fd82acc3 Merge "Capture orientation change data in the gesture log." into jb-mr1-dev 2012-08-10 13:48:12 -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
76a844e6f3 am 7c6f724e: Merge "Fix some Holo text color bugs" into jb-mr1-dev
* commit '7c6f724e142d7715ae795fe8120be34fba680591':
  Fix some Holo text color bugs
2012-08-10 13:45:18 -07:00
Adam Powell
7c6f724e14 Merge "Fix some Holo text color bugs" into jb-mr1-dev 2012-08-10 13:41:52 -07:00
Daniel Sandler
747a9e986c Capture orientation change data in the gesture log.
Change-Id: I19719f82f1b6b6563b33edc85b4a8a259d04ba0c
2012-08-10 16:39:19 -04: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
Jean-Baptiste Queru
bc870a8c3d am 2287e17c: am 06439fd2: am cb80cb70: am 37548994: Merge "StorageManager: fix issue that GREF has increased to 2011 in system server with intel stress test."
* commit '2287e17c7612ee3dd0a10cab68c693d6f8333de2':
  StorageManager: fix issue that GREF has increased to 2011 in system server with intel stress test.
2012-08-10 12:52:39 -07:00