82892 Commits

Author SHA1 Message Date
John Spurlock
7be1a3d67c Stop screensaver on incoming phone call.
Use notification manager as an indicator of when to stop the screensaver
due to immediately-needed user interaction.

Any notification with a fullScreenIntent will now exit the screensaver.

Bug: 6976796
Change-Id: Id91cd4c32f3fad018b56f4dfe24b37110bab32d8
2012-08-13 16:45:12 -04:00
Peter Ng
02123630ca Multiple design styleguide fixes
-Changing extras to videos
-new bullet item in swipeviews
-new in 4.0 removal
-Ui overview notification info
-reppling typo fixed

Bug: 6936546
Bug: 6936394
Bug: 6958972
Bug: 6960355
Bug: 6937850
Bug: 6937856
Bug: 6912380
Bug: 6941255
Bug: 6937723
Bug: 5836846
Bug: 6915055
Bug: 6915259
Bug: 6651973
Bug: 6937070
Bug: 6947018
Bug: 6924456
Bug: 6915152
Bug: 6936797
Bug: 6924201
Bug: 6922994
Bug: 6924137
Bug: 6907998
Bug: 6912377
Bug: 6937761
Bug: 6923664
Bug: 6946790
Bug: 6918869

Change-Id: Ic5f39fe5b9f56c911af8bde9a254007748f6530e
2012-08-13 13:22:21 -07:00
Baligh Uddin
3e300c4693 Import translations. DO NOT MERGE
Change-Id: I95bed23285699c68b623ae0e36600ec5e813db8c
Auto-generated-cl: translation import
2012-08-13 13:20:03 -07:00
Daniel Sandler
08d05e3d1d New status bar capable of multiple sliding panels.
There are some visual glitches but almost everything should
be put back pretty much where it was.

Change-Id: I2f9b0591d44599b07bd83f03c4e09e6dd98e1448
2012-08-13 15:23:51 -04:00
Kenny Root
0b4771e02f am 28dba4fc: Merge "Update preloaded-classes for JB"
* commit '28dba4fc394f0736e1d7bdf5601382c19c08f518':
  Update preloaded-classes for JB
2012-08-13 12:00:35 -07:00
Wink Saville
e0df2c4f5d am eca64977: Merge "Telephony: Signal Strength cleanup & LTE support"
* commit 'eca64977041c5df0c987bdae56006ebbe86de677':
  Telephony: Signal Strength cleanup & LTE support
2012-08-13 12:00:30 -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
Kenny Root
38cc2a5a3a am 3221bf27: am 438a0efc: Do not eject internal ASECs when storage unmounted
* commit '3221bf27ff6b8eebf360ed2496ad5c56b95fd689':
  Do not eject internal ASECs when storage unmounted
2012-08-13 11:42:20 -07:00
Kenny Root
28dba4fc39 Merge "Update preloaded-classes for JB" 2012-08-13 11:42:07 -07:00
Kenny Root
3221bf27ff am 438a0efc: Do not eject internal ASECs when storage unmounted
* commit '438a0efcfbee5dc953e8e5bbdf4cb3dbe94b3f80':
  Do not eject internal ASECs when storage unmounted
2012-08-13 11:40:10 -07:00
Wink Saville
eca6497704 Merge "Telephony: Signal Strength cleanup & LTE support" 2012-08-13 11:25:49 -07:00
Irfan Sheriff
4d1988699b Merge "Add timestamp in scan results" into jb-mr1-dev 2012-08-13 11:22:22 -07:00
Irfan Sheriff
b31f78f937 Add timestamp in scan results
Propogate 802.11 tsf details per scan result to the applications
and open up hidden access points

BUg: 2961159
Change-Id: I05658fd0cf010c0b36193db3f79422640e8b3a6b
2012-08-13 11:20:14 -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
Kenny Root
438a0efcfb Do not eject internal ASECs when storage unmounted
If the incoming request is to notify of storage unmounted, don't mess
with apps that are in internal ASECs.

Bug: 6948035
Change-Id: I63ffb895c4d994ee03a5a9bd6bb23f69c88e2a87
2012-08-13 10:51:09 -07:00
Jean-Baptiste Queru
d7b9c6c356 Merge "Added missing viewport meta tag to html resources" 2012-08-13 10:38:23 -07:00
Jean-Baptiste Queru
d0cfe02b26 am 0bf666a8: am 4da3769d: Merge "mediacodec: Don\'t crash if trying to open a codec that does not exist"
* commit '0bf666a875415bae7a1e575eea9b8e5e7762ff3d':
  mediacodec: Don't crash if trying to open a codec that does not exist
2012-08-13 09:49:51 -07:00
Kenny Root
4cfb30a22a am 1ad8bf56: am f0e87175: Merge "Remove useless TestRunner"
* commit '1ad8bf5660281d624759897e0403b35b29641ba2':
  Remove useless TestRunner
2012-08-13 09:49:46 -07:00
Jean-Baptiste Queru
0bf666a875 am 4da3769d: Merge "mediacodec: Don\'t crash if trying to open a codec that does not exist"
* commit '4da3769d30851f0b517a688a5c835715d7d0b0bf':
  mediacodec: Don't crash if trying to open a codec that does not exist
2012-08-13 09:48:24 -07:00
Kenny Root
1ad8bf5660 am f0e87175: Merge "Remove useless TestRunner"
* commit 'f0e87175ba579b43ce7f57b2502225b4d7731b97':
  Remove useless TestRunner
2012-08-13 09:48:20 -07:00
Jean-Baptiste Queru
4da3769d30 Merge "mediacodec: Don't crash if trying to open a codec that does not exist" 2012-08-13 09:30:11 -07:00
Kenny Root
f0e87175ba Merge "Remove useless TestRunner" 2012-08-13 09:01:36 -07:00
Martin Storsjo
e68323325b mediacodec: Don't crash if trying to open a codec that does not exist
Change-Id: If75e3156517993629f50622a84a9ac573fced815
2012-08-13 08:47:01 -07:00
SangWook Han
fd9cb499e5 Update preloaded-classes for JB
Change-Id: Id127308529d581c94bd2e911b637931156ce82c1
2012-08-12 19:46:51 +09: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
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
Jeff Brown
6a2ef12753 Add a toString() method to Sensor for debugging purposes.
Also made the class final, since it cannot be instantiated
by applications.

Change-Id: I540ad56d19debd99426d37b9b63c163827b4c2fc
2012-08-10 20:52:22 -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
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
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
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
6cc7a9276b Merge "Import translations. DO NOT MERGE" into jb-mr1-dev 2012-08-10 15:54:38 -07:00
Uma Maheswari Ramalingam
a44b137648 Telephony: Signal Strength cleanup & LTE support
Make signal strength parsing common for all modes

Add Support to calculate LTE
level for UI signal bar display

Update the lowest of Evdo/ CDMA dbm value
in phone status instead of using only CDMA dbm

Change-Id: I41bce658c536dc30558224c8ca76d6d70afb78ee
2012-08-10 15:44:31 -07:00
Baligh Uddin
ea777806eb Merge "Import translations. DO NOT MERGE" into jb-mr1-dev 2012-08-10 15:38:42 -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
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
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
f5fd82acc3 Merge "Capture orientation change data in the gesture log." into jb-mr1-dev 2012-08-10 13:48:12 -07:00
Adam Powell
7c6f724e14 Merge "Fix some Holo text color bugs" into jb-mr1-dev 2012-08-10 13:41:52 -07:00
Kenny Root
96ad6cb080 Remove useless TestRunner
InstrumentationTestRunner can enumerate the test cases to run without a
special TestRunner.

Change-Id: I5a49413440ef191f28a21034a318d9a9e3f8174b
2012-08-10 13:40:19 -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
06439fd29f am cb80cb70: am 37548994: Merge "StorageManager: fix issue that GREF has increased to 2011 in system server with intel stress test."
* commit 'cb80cb700d15319c20686998e822aed32a56adf5':
  StorageManager: fix issue that GREF has increased to 2011 in system server with intel stress test.
2012-08-10 12:44:12 -07:00