12748 Commits

Author SHA1 Message Date
Irfan Sheriff
d017f35232 Move wifiservice into its own package
Change-Id: I3ff378a29cb4dd191605b0b641147eba1f445d13
2013-02-21 08:48:18 -08:00
Craig Mautner
32b44d08e2 Add null check to setAppGroupId.
Fix bug 8217929.

Change-Id: I3bd54c32abcf6683c2fa75a85bf5025f47e09398
2013-02-21 08:26:06 -08:00
Craig Mautner
207493c40a am 5161f209: Fix crashing bug in validator.
* commit '5161f20925ec071e72c2b0eb084f7abaa9dffabf':
  Fix crashing bug in validator.
2013-02-20 16:58:42 -08:00
Craig Mautner
5161f20925 Fix crashing bug in validator.
Change-Id: I649bb7cfc2b42fbeda478edcaa3a56f3c23d4bc8
2013-02-20 16:54:05 -08:00
Craig Mautner
1c4586ceda am 07aa25da: Merge "Switch topRunning* and moveTaskTo*"
* commit '07aa25dab9b8f5592b2e9e7dbc708b5e3064c5ff':
  Switch topRunning* and moveTaskTo*
2013-02-20 16:42:18 -08:00
Craig Mautner
07aa25dab9 Merge "Switch topRunning* and moveTaskTo*" 2013-02-21 00:39:00 +00:00
Svetoslav
e5918b6c0a am 6f8218a4: Trying to unregister a semi connected accessibility service.
* commit '6f8218a442a8de50ef33d20263a59cd47c513e62':
  Trying to unregister a semi connected accessibility service.
2013-02-20 16:35:21 -08:00
Craig Mautner
11bf9a52eb Switch topRunning* and moveTaskTo*
- More of the Activity to Task changeover.
- Fix bug in validateAppTokens().
- Improved validation of changeover.
- Eliminated iterator classes.

Change-Id: I934a208eabfc9a2668e5a6162452e1406f2c8d3a
2013-02-20 16:29:07 -08:00
Svetoslav
6f8218a442 Trying to unregister a semi connected accessibility service.
When an accessibility service connects we get a callback in
    which we either add the service, if this service is in the list
    of connecting services (we still want the service to connect),
    or we unbind and clear the state, if the service is no longer in
    the list of connecting services (we do not want this service to
    connect because something change between the bind request and
    the connection callback).

    The problem is that when the service connects and it is not in
    the list of connecting services on service connected we called
    the clean up code before the connection was complete. However,
    the clean up code expects fully configured services. Now we
    fully connect the service and in case there is a problem -
    disconnect it.

    bug:8232627

Change-Id: I939e544e31ffc1406035265a012c180f2ca95d7c
2013-02-20 16:28:43 -08:00
Jim Miller
91757f98a5 am ab8e936e: Merge "Add explicit userId to AppWidget binder calls"
* commit 'ab8e936e852b984624087c97dffc4c74b250fc68':
  Add explicit userId to AppWidget binder calls
2013-02-20 16:04:56 -08:00
Jim Miller
a75a883fe9 Add explicit userId to AppWidget binder calls
Keyguard currently relies on being in the system process to grab the
given user's widgets.  When we split keyguard into a new process,
it will need to have access to user-specific info to instantiate a
specific user's widgets.  In order to accomplish this, we add an
explicit userid to each binder call as well as new permission
check to allow keyguard access.

This also fixes a potential race condition of having an incorrect user id
due to an async call to change the user.  Every binder call now has a specific
user id. The user id is either the calling process user's id or an explicit
one passed by applications like keyguard. It is created once when an
AppWidgetManager is instantiated and remains for the lifetime of the object.

Fixed bug where widgets sometimes didn't show up for secondary users.

Moved permission check in AppWidgetService into getImplForUser()

Refactored to use userid from context associated AppWidgetManager instance.

Clean up AppWidgetHost to use userId from Context.

Remove redundant userId check in checkPermission since it's handled by
ActivityManager.handleIncomingUser()

Removed redundant userid check.

Upload after rebase...

Change-Id: Iae3e20f2b342c323bb58768b3d22051510f8268b
2013-02-20 15:41:14 -08:00
Daniel Sandler
569e44a73b am fd171e43: Merge "Switch to system process before modifying rotation."
* commit 'fd171e43e4946ce5789e5dd8ade09a1cbf2a5ae0':
  Switch to system process before modifying rotation.
2013-02-20 13:39:12 -08:00
Daniel Sandler
fd171e43e4 Merge "Switch to system process before modifying rotation." 2013-02-20 21:35:53 +00:00
Daniel Sandler
3de830b82b Switch to system process before modifying rotation.
Bug: 8218133
Change-Id: Ib44d64d48dbdf3095182c409dd2211f6a3b726ad
2013-02-20 15:23:52 -05:00
Svetoslav
eede1a69dc am aa7cc1e2: Merge "Adding idle maintenance service."
* commit 'aa7cc1e2ab9856e9c57c1664020df60afaae3d72':
  Adding idle maintenance service.
2013-02-20 11:14:52 -08:00
Svetoslav
aa7cc1e2ab Merge "Adding idle maintenance service." 2013-02-20 19:11:07 +00:00
Craig Mautner
caca72a614 am 223b6b3b: Merge "Begin switch over to task based history."
* commit '223b6b3bfeb7cfa3e844abeb36c04ab5c8318446':
  Begin switch over to task based history.
2013-02-20 08:44:36 -08:00
Craig Mautner
223b6b3bfe Merge "Begin switch over to task based history." 2013-02-20 16:42:17 +00:00
Daniel Sandler
f643436729 am f025404a: Merge "New INotificationListener interface."
* commit 'f025404a8bbb0182dee42a6044ad888f443e7fe4':
  New INotificationListener interface.
2013-02-20 06:43:24 -08:00
Daniel Sandler
f025404a8b Merge "New INotificationListener interface." 2013-02-20 14:40:05 +00:00
Craig Mautner
5d9c7be84d Begin switch over to task based history.
- Introduce the task history and add to and remove from it with
verification.

Change-Id: If97e74f5a13f85acdb1521fc6d0b066a7e8584ae
2013-02-19 18:11:33 -08:00
Jeff Sharkey
478eb7769b am 22cb5b37: Merge "Migrate to using Mockito directly."
* commit '22cb5b37a572270788f00881727f483da373ec05':
  Migrate to using Mockito directly.
2013-02-19 15:33:00 -08:00
Jeff Sharkey
22cb5b37a5 Merge "Migrate to using Mockito directly." 2013-02-19 23:29:49 +00:00
Jeff Sharkey
3671b1e910 Migrate to using Mockito directly.
Change-Id: I1fcc5d1a780f5831bd6685f0735d4c0c6d245735
2013-02-19 15:28:19 -08:00
Dianne Hackborn
7ccb4e79ef am 79ad13f1: Merge "Implement display overscan support."
* commit '79ad13f172094117fab7e816f36a4b84ed241df0':
  Implement display overscan support.
2013-02-19 13:02:53 -08:00
Daniel Sandler
09a247e9a8 New INotificationListener interface.
Use with INotificationManager.registerListener(). Limited to
system only right now.

Change-Id: I65b6a8778267022cdc5e58eb75ae607a54b1cc52
2013-02-19 15:26:37 -05:00
Dianne Hackborn
c652de8141 Implement display overscan support.
The window manager now keeps track of the overscan of
each display, with an API to set it.  The overscan impacts
how it positions windows in the display.  There is a new set
of APIs for windows to say they would like to go into the
overscan region.  There is a call into the window manager to
set the overscan region for a display, and it now has a
concept of display settings that it stores presistently.

Also added a new "wm" command, moving the window manager
specific commands from the "am" command to there and adding
a new now to set the overscan region.

Change-Id: Id2c8092db64fd0a982274fedac7658d82f30f9ff
2013-02-19 12:08:58 -08:00
Jeff Sharkey
fb67f34eae am 736ef1e9: Merge "Better API for low disk space warnings."
* commit '736ef1e9dedbdd0c24e27f170034f2f869fd083f':
  Better API for low disk space warnings.
2013-02-19 10:22:06 -08:00
Jeff Sharkey
736ef1e9de Merge "Better API for low disk space warnings." 2013-02-19 18:18:53 +00:00
Satoshi Kataoka
e1ddccc3d2 am 7f7535fd: Fix an issue where voice input is not enabled by default for the secondary user
* commit '7f7535fd250a30ff5383b046295db88613fe719a':
  Fix an issue where voice input is not enabled by default for the secondary user
2013-02-17 21:32:45 -08:00
Satoshi Kataoka
7f7535fd25 Fix an issue where voice input is not enabled by default for the secondary user
Bug: 8205725
Change-Id: I438daf996ba48cdb34f0a6158a0cbb510aae931b
2013-02-18 14:08:07 +09:00
Jeff Sharkey
be72215c39 Better API for low disk space warnings.
Provides uniform interface to ask about low disk thresholds; can
be mocked by other tests.  Opens door to adjust thresholds based on
disk type.

Switch monitor service to using new API, and use filesystem paths
from Environment instead of hard-coding.

Change-Id: Ifdb536e36a453f1b67bc65849037ec3cc0232cf2
2013-02-15 16:59:55 -08:00
Svetoslav
8cf1921fc0 am 7f84ed31: Merge "Dynamically configurable accessibility flags mishandled."
* commit '7f84ed31f01997d4906e408c335f783a91d197d5':
  Dynamically configurable accessibility flags mishandled.
2013-02-15 15:29:25 -08:00
Svetoslav
7f84ed31f0 Merge "Dynamically configurable accessibility flags mishandled." 2013-02-15 23:26:59 +00:00
Svetoslav
9e065121fa Dynamically configurable accessibility flags mishandled.
A bug was preventing clearing dynamically settable accessibility
service flags.

bug:8051095

Change-Id: I6844b2f44e323bc741ac39983a892f1d28f3132b
2013-02-15 15:24:13 -08:00
Mathias Agopian
76f56dd598 am ceec31b7: Merge changes I5a218ca1,I853a76d9
* commit 'ceec31b7dab6a23e443d5dcbcfac4a23b720cfde':
  Refactoring: Rename SurfaceTextureClient to Surface
  clean-up following Surface split
2013-02-15 14:28:22 -08:00
Mathias Agopian
5280061794 Refactoring: Rename SurfaceTextureClient to Surface
Change-Id: I5a218ca11abeeec05e3a4c3cfc581bcc788814ea
2013-02-15 12:47:40 -08:00
Mathias Agopian
29479ebe10 clean-up following Surface split
Change-Id: I853a76d92d957ee38a36fcdd280d6407ec316987
2013-02-15 12:47:40 -08:00
Svetoslav
06bab4e2d3 am c145317d: Merge "User switch not handled properly in the accessibility manager service."
* commit 'c145317d0b19fbd1e7aff8519696146853367b89':
  User switch not handled properly in the accessibility manager service.
2013-02-15 12:33:21 -08:00
Svetoslav
5fec0c5ee5 User switch not handled properly in the accessibility manager service.
On user switch the transient state of the old user was not cleared
which means that when we switch back to this user the operational
state such as which event types were dispatched, what state was sent
to local managers, etc is stale. This leads to semi-updated state
and broken behavior. Now if the user becomes inactive, we are clearing
all transient state which will be recreated when the user becomes
active.

bug:8196652

Change-Id: Ie9e0d712b6d567e5074b328f1bb87afaa5395c06
2013-02-15 12:29:17 -08:00
Svetoslav
b3038ec7cf Adding idle maintenance service.
It is beneficial that there is a mechanism on the platform
to notify applications whether it is safe to perform somehow
expensive operations while the user is not using the device.
Thus, user experience will not be degraded. An example is
discarding of unused blocks on a mounted file system instead
of doing this on every write operation.

bug:8056794

Change-Id: I708bad9d3ce6c8f1d5a1c05c0abf46f81a3d464b
2013-02-15 11:04:11 -08:00
Craig Mautner
924bf18c75 am 22ee9aad: Merge "Reset and reuse Iterators and don\'t new() one."
# Via Android (Google) Code Review (1) and Craig Mautner (1)
* commit '22ee9aad834b055df1bd5d5544e37a63edc963fe':
  Reset and reuse Iterators and don't new() one.
2013-02-14 19:58:44 -08:00
Kenny Root
647771659c am 0786207b: am dc7b3e3b: am 9657ba0e: Merge "KeyStore: stop using state()"
# Via Android Git Automerger (2) and others
* commit '0786207be59d34a8ba8a7a1e93602002fac97587':
  KeyStore: stop using state()
2013-02-14 19:58:33 -08:00
Kristian Monsen
1456758802 resolved conflicts for merge of 58a1ca66 to master-chromium
Change-Id: I06b61e6d7d52b584eae03a95220381475b8bff0e
2013-02-14 19:48:27 -08:00
Craig Mautner
22ee9aad83 Merge "Reset and reuse Iterators and don't new() one." 2013-02-14 22:22:35 +00:00
Kenny Root
0786207be5 am dc7b3e3b: am 9657ba0e: Merge "KeyStore: stop using state()"
# Via Android Git Automerger (1) and others
* commit 'dc7b3e3b6e1aa3f347c7d843ee453688c4d90e29':
  KeyStore: stop using state()
2013-02-14 12:50:34 -08:00
Craig Mautner
343ad71d7c Reset and reuse Iterators and don't new() one.
Save time and memory by resuing permanent mTmpXxxIterator for
AllWindowsIterator and AppTokenIterator.

Change-Id: I2e5143364651d9471e9e70eee514d3f45d595468
2013-02-14 12:48:53 -08:00
Mathias Agopian
58a1ca6642 Merge "split Surface in two classes: SurfaceControl and Surface" 2013-02-14 20:25:08 +00:00
Mathias Agopian
3866f0d581 split Surface in two classes: SurfaceControl and Surface
SurfaceControl is the window manager side; it can
control the attributes of a surface but cannot push buffers
to it. Surface on the other hand is the application (producer)
side and is used to push buffers to the surface.

Change-Id: Ib6754c968924e87e8dd02a2073c7a447f729f4dd
2013-02-14 12:19:11 -08:00
Kenny Root
b9594ce9eb KeyStore: stop using state()
Change-Id: I721974fd95f8d1ab06a3fd1bbb4c9b4d9d1d7752
2013-02-14 12:06:51 -08:00