3145 Commits

Author SHA1 Message Date
Baligh Uddin
3e300c4693 Import translations. DO NOT MERGE
Change-Id: I95bed23285699c68b623ae0e36600ec5e813db8c
Auto-generated-cl: translation import
2012-08-13 13:20:03 -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
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
Baligh Uddin
ea777806eb Merge "Import translations. DO NOT MERGE" into jb-mr1-dev 2012-08-10 15:38:42 -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
Daniel Sandler
747a9e986c Capture orientation change data in the gesture log.
Change-Id: I19719f82f1b6b6563b33edc85b4a8a259d04ba0c
2012-08-10 16:39:19 -04:00
Baligh Uddin
63fe5cdc74 Import translations. DO NOT MERGE
Change-Id: I8948cd5b0992133db9dc8e676b5d43b54d672e85
Auto-generated-cl: translation import
2012-08-10 11:14:46 -07:00
Daniel Sandler
6950992645 Merge "More termination conditions for Dreams." into jb-mr1-dev 2012-08-10 07:26:15 -07:00
Daniel Sandler
a2fbe53f1e More termination conditions for Dreams.
Default implementation of Dreams will finish() on KEYCODE_BACK.

PhoneStatusBar will awaken() from any Dream when the Home key is pressed.

Change-Id: I55e2a5d533a7fb93debc4c54514dba3b9098f009
2012-08-10 01:19:03 -04:00
Baligh Uddin
03cfc54231 Import translations. DO NOT MERGE
Change-Id: I813d5cfc5f5b60e98f635dc62e9935299c903171
Auto-generated-cl: translation import
2012-08-09 12:32:26 -07:00
John Spurlock
634471edc4 Load default Dream settings into a clean db.
Set the Dream defaults during onCreate, not only onUpgrade.

Bug: 6959513
Change-Id: Ia93097edaf1150813c75b6be809db9c97987868f
2012-08-09 10:41:37 -04:00
Amith Yamasani
8264408f59 Start the correct settings from the status bar.
Added a new method to Context: startActivityAsUser() requiring the
INTERACT_ACROSS_USERS_FULL permission.

Show the correct Recents list, based on current user.
Added a getRecentTasksForUser() in ActivityManager. Hidden and requires
the INTERACT_ACROSS_USERS_FULL permission.

Change-Id: If5b56465efdd3ead36601a3b51ed4af157bbf35c
2012-08-08 16:52:53 -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
Jason Simmons
336b31c28a Merge "Add an empty stub status bar service implementation" into jb-mr1-dev 2012-08-07 16:14:50 -07:00
Nick Kralevich
6624afe37b Merge "Explicitly export content providers" into jb-mr1-dev 2012-08-07 08:55:25 -07:00
Nick Kralevich
45576ccd76 Explicitly export content providers
In a future version of Android, the default value for
<provider android:exported> will change from true to false.
Explicitly set android:exported="true"

Bug: 3306452

Change-Id: Iffe4dca4fefc92bb9f89698f149a87c16a7ce3c5
2012-08-06 17:42:12 -07:00
Christopher Tate
acad183238 Add an empty stub status bar service implementation
For kiosk-type devices that do not present any navigation UI.  This allows
for clean selection of the implementation based on resource overlays,
without the need for the tablet or phone status bar implementations to
accomodate the desired behaviors.

Bug 5824373

Change-Id: Idcec70eef437904edda452b69e5eb7a3cc7094f7
(cherry picked from commit 5717f80927944c141f059162ecd69649488f8049 in ics-aah)

Signed-off-by: Mike J. Chen <mjchen@google.com>
2012-08-06 14:40:50 -07:00
Daniel Sandler
f6a341248d Move lots of layout-port/ resources to layout/ .
The framework is no longer letting us skate by without a
default (unqualified) for of each resource; in particular,
the land/port aspect of the configuration appears to be
binding much later than it used to.

Bug: 6937365
Change-Id: I6bf72c76e707548168fefa9466dc196ffde33ab3
2012-08-06 15:29:09 -04:00
Wink Saville
bb01fd0111 am 1971df5d: am e20a19cb: Merge "show 3G icon for CDMA/1xRTT"
* commit '1971df5d4296f077cccff704201057a32b733235':
  show 3G icon for CDMA/1xRTT
2012-08-04 08:12:48 -07:00
Wink Saville
1971df5d42 am e20a19cb: Merge "show 3G icon for CDMA/1xRTT"
* commit 'e20a19cb541f8621f04be0f3d3501f2fc51a0e82':
  show 3G icon for CDMA/1xRTT
2012-08-04 08:07:49 -07:00
Chris Wren
5345c310af Merge "Don't allow the status bar to collapse things we're touching." into jb-mr1-dev 2012-08-03 09:52:09 -07:00
Madan Ankapura
68cad3a0fa show 3G icon for CDMA/1xRTT
when config_showMin3G is enabled to true in a CDMA device

Change-Id: I79a4fa200dc406fc7f9f4527165046541961ef69
Signed-off-by: Madan Ankapura <mankapur@sta.samsung.com>
2012-08-02 19:10:22 -07:00
Svetoslav Ganov
25dd892ce9 am e1c47324: am 9a59f6e0: Merge "Notification panel on tablet does not handle back and home key events." into jb-dev
* commit 'e1c47324fc22f86f378cb6ccc51e4554eec5156b':
  Notification panel on tablet does not handle back and home key events.
2012-08-02 16:07:35 -07:00
Svetoslav Ganov
e1c47324fc am 9a59f6e0: Merge "Notification panel on tablet does not handle back and home key events." into jb-dev
* commit '9a59f6e02fdcabbf2debd5b836b01f7b22a4b21a':
  Notification panel on tablet does not handle back and home key events.
2012-08-02 15:19:03 -07:00
Chris Wren
3ddab0dcc1 Don't allow the status bar to collapse things we're touching.
Bug: 6538918
Change-Id: Ie4e79aa593ac2097d0e6402f84816df934160687
2012-08-02 16:55:08 -04:00
Svetoslav Ganov
73b9c29b8b Notification panel on tablet does not handle back and home key events.
1. Notification panel on tablet does not handle back and home key events and
   as a result the notification panel stays open. Hence, after opening the
   notifications panel, pressing the back key on a keyboard will move back
   in the app instead closing the panel. Same happens for the home key.
   The expected behavior is if the panel is open the back button will dismiss
   it and the key should be consumed by the panel. The home key should hide
   the panel and the key should not be consumed by the panel so the system
   can do the right thing.

bug:6902903

Change-Id: I06e8ceea1f51b998e6703d70dcb3a24128d5a581
2012-08-02 13:44:30 -07:00
Chris Wren
86d00fb40a Venetian blinds policy for one-finger notification expansion.
Bug: 6538918
Change-Id: I8a6f860684b2477571f69eb4a79a5c106251b1a8
2012-08-02 10:30:51 -07:00
Daniel Sandler
fbf3089665 am 5cb62df6: am dd4ef49f: Persistent \'emergency calls\' banner in the notification panel.
* commit '5cb62df6bdac4aaab7a1c1b1ef849ec213ff028b':
  Persistent 'emergency calls' banner in the notification panel.
2012-07-27 15:51:31 -07:00
Daniel Sandler
5cb62df6bd am dd4ef49f: Persistent \'emergency calls\' banner in the notification panel.
* commit 'dd4ef49f4545dad2a6503d29e129472aba5392fc':
  Persistent 'emergency calls' banner in the notification panel.
2012-07-27 15:46:20 -07:00
Daniel Sandler
dd4ef49f45 Persistent 'emergency calls' banner in the notification panel.
While carrier info (or SSID for devices without mobile data)
will still be shown in a floating text view at the bottom of
the notification shade, emergency-calls-only mode will now
be shown in the notification panel header so that it cannot
be obscured by notifications.

Change-Id: I714b6801be2b9b631b86b51d229440445eff5e76
2012-07-27 11:19:54 -04:00
Daniel Sandler
1fbfd263ad am 08b7e785: am 7da1ad69: am c524ca27: Merge "Fix NPE on some phones at startup." into jb-dev
* commit '08b7e78597b06b3801d909c9e9ca1538ed9fc355':
  Fix NPE on some phones at startup.
2012-07-25 22:13:44 -07:00
Daniel Sandler
a7a83cef85 am 19351d5e: am f5221a86: am cb1aec34: Remove old unused DreamsDockLauncher.
* commit '19351d5e7a4b3bc95424f4ca5dded79b9826bd63':
  Remove old unused DreamsDockLauncher.
2012-07-25 22:13:25 -07:00
Daniel Sandler
08b7e78597 am 7da1ad69: am c524ca27: Merge "Fix NPE on some phones at startup." into jb-dev
* commit '7da1ad699989db8417ce54eb26697eae4a30f634':
  Fix NPE on some phones at startup.
2012-07-25 15:05:35 -07:00
Daniel Sandler
19351d5e7a am f5221a86: am cb1aec34: Remove old unused DreamsDockLauncher.
* commit 'f5221a86c4a7e0e0454732f6a4b95a33bbf334f2':
  Remove old unused DreamsDockLauncher.
2012-07-25 15:05:04 -07:00
Jeff Brown
a8b9defade Stop using raw display size except in window manager.
We don't actually need the raw size in these places.
The logical size is good enough.

Starting to move dependencies on surface flinger
and window manager out of the Display class.

Change-Id: I2065bee8e5bf7f42c5a452dd1e8479e40ebb0d37
2012-07-25 11:38:48 -07:00
Daniel Sandler
7da1ad6999 am c524ca27: Merge "Fix NPE on some phones at startup." into jb-dev
* commit 'c524ca275add1c84ef4e1e5c105058f44cac5efb':
  Fix NPE on some phones at startup.
2012-07-25 11:34:52 -07:00
Daniel Sandler
c524ca275a Merge "Fix NPE on some phones at startup." into jb-dev 2012-07-25 11:32:38 -07:00
Daniel Sandler
75fcac4eeb Fix NPE.
Bug: 6878563
Change-Id: I9a2afed6e2b517c2d6b54cea3d812fb84835fb00
2012-07-25 13:51:44 -04:00
Daniel Sandler
f5221a86c4 am cb1aec34: Remove old unused DreamsDockLauncher.
* commit 'cb1aec3403115467d1298fcabd45137eb483a1fe':
  Remove old unused DreamsDockLauncher.
2012-07-25 10:51:36 -07:00
Daniel Sandler
9af376e57a Fix NPE on some phones at startup.
Bug: 6877589
Change-Id: I65ff37b4cf6b59a72a7aa665f252f5fb34f3b183
2012-07-25 12:33:50 -04:00
Daniel Sandler
cb1aec3403 Remove old unused DreamsDockLauncher.
Bug: 6802065
Change-Id: I403b02ca7c78bb90eed712b3b6f846a4a6d68f8b
2012-07-25 11:00:49 -04:00
Daniel Sandler
9014345dda am 7d1ef0ce: am 3ee47ae7: Merge "Fix 6804479: "Emergency calls only" in notification shade" into jb-dev
* commit '7d1ef0cee7c61dea18216a80a00d437109b698d5':
  Fix 6804479: "Emergency calls only" in notification shade
2012-07-24 22:16:20 -07:00
Daniel Sandler
7d1ef0cee7 am 3ee47ae7: Merge "Fix 6804479: "Emergency calls only" in notification shade" into jb-dev
* commit '3ee47ae7ee0d0afc0a2bbe71636c31483b5502cd':
  Fix 6804479: "Emergency calls only" in notification shade
2012-07-24 22:13:56 -07:00
Daniel Sandler
0ae29275b8 Fix 6804479: "Emergency calls only" in notification shade
Add an additional codepath to the "no connectivity" logic in
NetworkController to allow the PLMN bubble up from the
GsmServiceStateTracker, where R.string.emergency_calls_only
is returned if we're in emergency call mode.

Bug: 6804479
Change-Id: I0a77261e4393cc0dc32bae3e631ef196b2342f06
2012-07-24 20:41:31 -04:00
Jim Miller
f33efd9c06 Merge "Fix 6847667: remove custom layout for 720dp device" 2012-07-24 17:21:56 -07:00
Jim Miller
76ae16be0c Fix 6847667: remove custom layout for 720dp device
The navigation buttons for the old 720dp device used to be left-justified.
They're now centered.  This change removes the 720dp configuration and
restores it to the original 600dp behavior, which is centered.

Change-Id: I98a2905bd015e12df74ab1f91551da0b0aecf805
2012-07-24 15:06:19 -07:00
Daniel Sandler
780d668bee Pressure info in captured gestures.
Change-Id: If72f8d5ea0cb748f60357441153d5fb8ac1b8143
2012-07-24 12:43:03 -04:00
Daniel Sandler
3380534a62 Collecting some data on notification panel gestures.
Look for it in /sdcard/statusbar_gestures.dat, in "JSON
lines" format: one list of gestures per line; each gesture
is itself a list of objects representing motion events and
tags (annotations).

Exploded example:

  [ // list of gestures
    [ // this starts a gesture
      {"type":"motion",
       "time":1347697,  // in SystemClock.uptimeMillis() base,
                        // like MotionEvents
       "action":"down", // down, up, move, cancel, else numeric
       "x":277.61,
       "y":1.00
      },
      {"type":"tag",
       "time":1347701,
       "tag":"tracking", // "tracking" or "fling"
       "info":"collapsed" // extra stuff
      },
      ... // more events
    ],
    ... // more gestures
  ]
  // newline
  [ // another list of gestures
    ...
  ]
  ...

Change-Id: Ifacbf03749c879cd82fb899289fb79a4bdd4fc3b
2012-07-24 12:43:02 -04:00