5561 Commits

Author SHA1 Message Date
Jeff Brown
ae56520b36 am aa32f5f0: am 98365d76: Refactor for multi-display support.
* commit 'aa32f5f0db25a1553a353d93274f12432e5d07fc':
  Refactor for multi-display support.
2012-08-19 23:12:23 -07:00
Jeff Brown
98365d7663 Refactor for multi-display support.
Split WindowManagerImpl into two parts, the WindowManager
interface implementation remains where it is but the global
communications with the window manager are now handled by
the WindowManagerGlobal class.  This change greatly simplifies
the challenge of having separate WindowManager instances
for each Context.

Removed WindowManagerImpl.getDefault().  This represents the
bulk of this change.  Most of the usages of this method were
either to perform global functions (now handled by WindowManagerGlobal)
or to obtain the default display (now handled by DisplayManager).

Explicitly associate each new window with a display and make
the Display object available to the View hierarchy.

Add stubs for some new display manager API features.

Start to split apart the concepts of display id and layer stack.
since they operate at different layers of abstraction.
While it's true that each logical display uniquely corresponds to a
surface flinger layer stack, it is not necessarily the case that
they must use the same ids.  Added Display.getLayerStack()
and started using it in places where it was relatively easy to do.

Change-Id: I29ed909114dec86807c4d3a5059c3fa0358bea61
2012-08-19 22:42:08 -07:00
Amith Yamasani
91413e745d am 745ec38b: am 9c38d6e5: Merge "UserHandle to UserSerialNo mapping" into jb-mr1-dev
* commit '745ec38bdca1e86dd0093ade4a382880fda7743a':
  UserHandle to UserSerialNo mapping
2012-08-17 09:24:34 -07:00
Amith Yamasani
2a00329c6d UserHandle to UserSerialNo mapping
Use AtomicFile for usermanager files.

Added a MANAGE_USERS permission that apps (signature permission) can use
to create/query/modify/remove users.

Change-Id: I5cf232232d0539e7508df8ec9b216e29c2351cd9
2012-08-17 09:06:10 -07:00
Subir Jhanb
84404677b8 am b4b692f9: am 2ff0c048: Merge "Change directory permission to "signature|system"" into jb-mr1-dev
* commit 'b4b692f9a861041692d13363e594fbae2bbd7f87':
  Change directory permission to "signature|system"
2012-08-16 17:22:56 -07:00
Subir Jhanb
2ff0c04844 Merge "Change directory permission to "signature|system"" into jb-mr1-dev 2012-08-16 17:18:21 -07:00
Subir Jhanb
0224ccab3c Change directory permission to "signature|system"
Change-Id: I53dea6984b4577803fdead5caad0112503d2b4e5
2012-08-16 17:04:54 -07:00
Baligh Uddin
827827b288 Import translations. DO NOT MERGE
Change-Id: Ib951aec1483341190f6a4b9fb6135fc885b08fae
Auto-generated-cl: translation import
2012-08-16 13:23:00 -07:00
Baligh Uddin
9e77bcdf3f Import translations. DO NOT MERGE
Change-Id: I8cda507820505a293fb31f0e8e0b804e85036b54
Auto-generated-cl: translation import
2012-08-16 13:14:12 -07:00
Jeff Brown
23e3ba534c am 778a616f: am 7c964e78: Merge changes I39804ee6,I6a5a7ea2 into jb-mr1-dev
* commit '778a616febe81517dc149bc4adc72a3e27bbc49e':
  Use spline interpolation for auto-brightness.
  Add FloatMath.hypot.
2012-08-16 02:11:25 -07:00
Jeff Brown
7c964e7899 Merge changes I39804ee6,I6a5a7ea2 into jb-mr1-dev
* changes:
  Use spline interpolation for auto-brightness.
  Add FloatMath.hypot.
2012-08-16 02:07:27 -07:00
Jeff Brown
1a30b55036 Use spline interpolation for auto-brightness.
Strictly speaking, this is a change in behavior for all products.
Instead of using discrete zones, they will all now use spline
interpolation.  We could make this behavior configurable
but there seems to be little point to it.  The range of brightness
values used will be more or less the same as before, it's just
that what used to be the brightness value for all levels within
a particular zone now becomes the brightness value for the
highest level in that zone and lower values are used for lower
levels within the zone.

Change-Id: I39804ee630ba55f018e1e53c0576b28e7bd27931
2012-08-16 01:45:10 -07:00
Baligh Uddin
8d007aba51 Import translations. DO NOT MERGE
Change-Id: I48de2103a3da453d276248902647cb257ea9ecda
Auto-generated-cl: translation import
2012-08-15 15:19:20 -07:00
Baligh Uddin
a2ad798794 Import translations. DO NOT MERGE
Change-Id: Ia23016ed0e45aa2e904dbcb0e2cd54ae5cc92477
Auto-generated-cl: translation import
2012-08-15 15:10:39 -07:00
Baligh Uddin
edc8e71a68 Import translations. DO NOT MERGE
Change-Id: If52f9049a740fa722e7c15527b8d08921ae935bd
Auto-generated-cl: translation import
2012-08-14 11:15:55 -07:00
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
2fe50274df am 21849abc: am 0f6b0a65: am 82c2ff55: am d7b9c6c3: Merge "Added missing viewport meta tag to html resources"
* commit '21849abc95ca00b347cbbb53cb78e09ee55c9c7f':
  Added missing viewport meta tag to html resources
2012-08-13 11:01:03 -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
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
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
Baligh Uddin
9f435f4be0 Merge "Import translations. DO NOT MERGE" 2012-08-10 15:52:02 -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
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
c44eecb4ad Import translations. DO NOT MERGE
Change-Id: I5429a1dbfcbd08ea14d96f9fa15824e704fc4c7d
Auto-generated-cl: translation import
2012-08-10 10:11:17 -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
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