Commit Graph

37651 Commits

Author SHA1 Message Date
Bo Liu
4474da7c74 am caf94773: Merge "Convert a attach/detach functor in ViewRootImpl to x64"
* commit 'caf947737d3e94d2f5d839ec1fa951df7937fdb2':
  Convert a attach/detach functor in ViewRootImpl to x64
2014-03-21 13:05:57 -07:00
Bo Liu
caf947737d Merge "Convert a attach/detach functor in ViewRootImpl to x64" 2014-03-21 20:00:35 +00:00
John Spurlock
5c076ac025 am 3daafcd7: Merge "Annotate framework vibrate calls with stream hints."
* commit '3daafcd7bab6e3ace72396576529e3049ab4c066':
  Annotate framework vibrate calls with stream hints.
2014-03-21 12:56:43 -07:00
John Spurlock
3daafcd7ba Merge "Annotate framework vibrate calls with stream hints." 2014-03-21 19:51:44 +00:00
Craig Mautner
5fc6747ed6 am f7ad8557: Apply FLAG_SHOW_WHEN_LOCKED within tasks.
* commit 'f7ad855718dc576a1618a54035b82e92356aa0d8':
  Apply FLAG_SHOW_WHEN_LOCKED within tasks.
2014-03-21 12:32:38 -07:00
Craig Mautner
f7ad855718 Apply FLAG_SHOW_WHEN_LOCKED within tasks.
If the bottommost fullscreen window of a task has FLAG_SHOW_WHEN_LOCKED
set then show all windows of the task that are above that window.

Fixes bug 13558398.

Change-Id: Ied8ada54efbb079eaf375470b2eae749e5551c24
2014-03-21 12:24:07 -07:00
Bo Liu
845535a76d Convert a attach/detach functor in ViewRootImpl to x64
Change-Id: I93c1df8abd0ecd1686e392cada099f9864926d33
2014-03-21 12:06:23 -07:00
Fabrice Di Meglio
72a3b9a136 am 7434fcec: Merge "Add support for enabled state for SearchIndexableData"
* commit '7434fcec6928e9e570f7ab0bf033f04ca5a13ba1':
  Add support for enabled state for SearchIndexableData
2014-03-21 11:44:21 -07:00
Fabrice Di Meglio
7434fcec69 Merge "Add support for enabled state for SearchIndexableData" 2014-03-21 18:38:58 +00:00
Fabrice Di Meglio
16f81e7542 Add support for enabled state for SearchIndexableData
- add "enabled" member which tells if the data will be
included into the search results.

Change-Id: I17f8c4b289b21061f7fc47f4902343fecb5ddc2c
2014-03-21 11:37:57 -07:00
John Spurlock
03e5344f06 am 824ad0e6: Merge "Unhide notification category."
* commit '824ad0e6f9c799f5b0faa2024e35fc6e714a681a':
  Unhide notification category.
2014-03-21 07:31:28 -07:00
John Spurlock
824ad0e6f9 Merge "Unhide notification category." 2014-03-21 14:26:55 +00:00
John Spurlock
fd7f1e0039 Unhide notification category.
Rename @hidden Notification.kind -> category, and flesh out
shared values.  Now a single value.

Update framework references, remove unused SystemUpdateService
magic value unused since 2012.

Change-Id: If06d19ff3a8c3125fca1457f5d3c665e2939c66c
2014-03-21 09:25:00 -04:00
John Spurlock
f9e1a0b369 Annotate framework vibrate calls with stream hints.
Migrate existing framework usages of Vibrator.vibrate to use
the new overload with an explicit stream hint.  This prevents
them from being blocked by rules targeting the unspecified stream.

For calls that pass the existing appops check in VibrateService,
pass streamHint down to the input device vibrator so we don't lose
the signal, but leave it up to InputManager to decide what to do
with it - currently unused.

Change-Id: I65c944e4010edea29a412bf57d8d7d3b8098b746
2014-03-21 08:57:53 -04:00
Winson Chung
5a7e7fdf94 am 7bcdb33d: Merge "Adding support for clipping window transition for alternate recents."
* commit '7bcdb33d859ffb70f235cc8e0f22a0598194ddf8':
  Adding support for clipping window transition for alternate recents.
2014-03-20 18:06:37 -07:00
Winson Chung
7bcdb33d85 Merge "Adding support for clipping window transition for alternate recents." 2014-03-21 01:02:44 +00:00
Winson Chung
399f62052a Adding support for clipping window transition for alternate recents.
Change-Id: Ic7df4e6c0396afc794ffc21694814c0a93f20f31
2014-03-20 17:39:19 -07:00
Christopher Tate
3defcfc741 am 6b904c8f: Merge "App widget backup/restore infrastructure"
* commit '6b904c8ffd8c044a9258db495b0cc7e5c5032e59':
  App widget backup/restore infrastructure
2014-03-20 12:53:28 -07:00
Christopher Tate
6b904c8ffd Merge "App widget backup/restore infrastructure" 2014-03-20 19:51:07 +00:00
Christopher Tate
adfe8b86e9 App widget backup/restore infrastructure
Backup/restore now supports app widgets.

An application involved with app widgets, either hosting or publishing,
now has associated data in its backup dataset related to the state of
widget instantiation on the ancestral device.  That data is processed
by the OS during restore so that the matching widget instances can be
"automatically" regenerated.

To take advantage of this facility, widget-using apps need to do two
things:  first, implement a backup agent and store whatever widget
state they need to properly deal with them post-restore (e.g. the
widget instance size & location, for a host); and second, implement
handlers for new AppWidgetManager broadcasts that describe how to
translate ancestral-dataset widget id numbers to the post-restore
world.  Note that a host or provider doesn't technically need to
store *any* data on its own via its agent; it just needs to opt in
to the backup/restore process by publishing an agent.  The OS will
then store a small amount of data on behalf of each widget-savvy
app within the backup dataset, and act on that data at restore time.

The broadcasts are AppWidgetManager.ACTION_APPWIDGET_RESTORED and
ACTION_APPWIDGET_HOST_RESTORED, and have three associated extras:

    EXTRA_APPWIDGET_OLD_IDS
    EXTRA_APPWIDGET_IDS
    EXTRA_HOST_ID [for the host-side broadcast]

The first two are same-sized arrays of integer widget IDs.  The
_OLD_IDS values are the widget IDs as known to the ancestral device.
The _IDS array holds the corresponding widget IDs in the new post-
restore environment.  The app should simply update the stored
widget IDs in its bookkeeping to the new values, and things are
off and running.  The HOST_ID extra, as one might expect, is the
app-defined host ID value of the particular host instance which
has just been restored.

The broadcasts are sent following the conclusion of the overall
restore pass.  This is because the restore might have occurred in a
tightly restricted lifecycle environment without content providers
or the package's custom Application class.  The _RESTORED broadcast,
however, is always delivered into a normal application environment,
so that the app can use its content provider etc as expected.

*All* widget instances that were processed over the course of the
system restore are indicated in the _RESTORED broadcast, even if
the backing provider or host is not yet installed.  The widget
participant is responsible for understanding that these are
promises that might be fulfilled later rather than necessarily
reflecting the immediate presentable widget state.  (Remember
that following a cloud restore, apps may be installed piecemeal
over a lengthy period of time.)  Telling the hosts up front
about all intended widget instances allows them to show placeholder
UI or similarly useful information rather than surprising the user
with piecemeal unexpected appearances.

The AppWidgetProvider helper class has been updated to add a new
callback, onRestored(...), invoked when the _RESTORED broadcast
is received.  The call to onRestored() is immediately followed by
an invocation of onUpdate() for the affected widgets because
they will need to have their RemoteViews regenerated under the
new ID values.

Bug 10622506
Bug 10707117

Change-Id: Ie0007cdf809600b880d91989c00c3c3b8a4f988b
2014-03-20 12:30:51 -07:00
Baligh Uddin
a02032ff5b am 576b6f2c: Fix Build
* commit '576b6f2c25ab388e9dbc3bfc4df445ca648e7253':
  Fix Build
2014-03-20 12:30:35 -07:00
Baligh Uddin
576b6f2c25 Fix Build 2014-03-20 12:26:04 -07:00
Svetoslav
9450faccd2 am aef4f6eb: Merge "Fix build"
* commit 'aef4f6ebc8f8eb1f9fbfbe4ae2556c9f1a26a63c':
  Fix build
2014-03-20 11:44:14 -07:00
Svetoslav
aef4f6ebc8 Merge "Fix build" 2014-03-20 18:39:44 +00:00
Svetoslav
a053d095ae Fix build
Change-Id: Icde98afd1471295320dc9042e1ecf680bb88ebd2
2014-03-20 11:39:13 -07:00
Paul Lawrence
a0076e7c1e am 8f1b1948: Merge "BatteryProperty: Add battery capacity property"
* commit '8f1b19488787c98244da5ae32299a153566188ec':
  BatteryProperty: Add battery capacity property
2014-03-20 11:16:07 -07:00
Paul Lawrence
8f1b194887 Merge "BatteryProperty: Add battery capacity property" 2014-03-20 18:11:29 +00:00
Paul Lawrence
5a43cc6ddd BatteryProperty: Add battery capacity property
Match change in native code
  https://googleplex-android-review.git.corp.google.com/#/c/427553/

Change-Id: I0049ccbbef59fbbc0e14b50b9af7481d87a6d48c
2014-03-20 18:10:06 +00:00
Svetoslav
f76b62f19e am 8e3feb15: Added accessibility APIs for introspecting interactive windows.
* commit '8e3feb15c5aec2c72b0ef120a1da325e1e8f0dda':
  Added accessibility APIs for introspecting interactive windows.
2014-03-20 09:56:59 -07:00
Svetoslav
8e3feb15c5 Added accessibility APIs for introspecting interactive windows.
1. The old introspection model was allowing querying only the active window
   which is the one the user is touching or the focused one if no window is
   touched. This was limiting as auto completion drop downs were not inspectable,
   there was not way to know when the IME toggles, non-focusable windows were
   not inspectable if the user taps them as until a screen-reader starts
   introspecting the users finger is up, accessibility focus was limited to
   only one window and the user couldn't use gestures to visit the whole UI,
   and other things I can't remember right now.

   The new APIs allow getting all interactive windows, i.e. ones that a
   sighted user can interact with. This prevents an accessibility service
   from interacting with content a sighter user cannot. The list of windows
   can be obtained from an accessibility service or the host window from an
   accessibility node info. Introspecting windows obey the same rules for
   introspecting node, i.e. the service has to declare this capability
   in its manifest.

   When some windows change accessibility services receive a new type
   of event. Initially the types of windows is very limited. We provide
   the bounds in screen, layer, and some other properties which are
   enough for a client to determined the spacial and hierarchical
   relationship of the windows.

2. Update the documentation in AccessibilityService for newer event types.

3. LongArray was not removing elements properly.

4. Composite accessibility node ids were not properly constructed as they
   are composed of two ints, each taking 32 bits. However, the values for
   undefined were -1 so composing a 64 long from -1, -1 prevents from getting
   back these values when unpacking.

5. Some apps were generating inconsistent AccessibilityNodeInfo tree. Added
   a check that enforces such trees to be well formed on dev builds.

6. Removed an necessary code for piping the touch exploration state to
   the policy as it should just use the AccessibilityManager from context.

7. When view's visibility changed it was not firing an event to notify
   clients it disappeared/appeared. Also ViewGroup was sending accessibility
   events for changes if the view is included for accessibility but this is
   wrong as there may be a service that want all nodes, hence events from them.
   The accessibility manager service takes care of delivering events from
   not important for accessibility nodes only to services that want such.

8. Several places were asking for prefetching of sibling but not predecessor
   nodes which resulted in prefetching of unconnected subtrees.

9. The local AccessibilityManager implementation was relying on the backing
   service being ready when it is created but it can be fetched from a context
   before that. If that happens the local manager was in a broken state forever.
   Now it is more robust and starts working properly once the backing service
   is up. Several places were lacking locking.

bug:13331285

Change-Id: Ie51166d4875d5f3def8d29d77973da4b9251f5c8
2014-03-20 16:52:59 +00:00
Jaewan Kim
6b4159281a am 34e2799c: Merge "EthernetDataTracker: Set more detailed status"
* commit '34e2799c612c348c5f728e5ae3deae7bbbfa8c60':
  EthernetDataTracker: Set more detailed status
2014-03-19 23:52:10 -07:00
Jaewan Kim
34e2799c61 Merge "EthernetDataTracker: Set more detailed status" 2014-03-20 06:48:40 +00:00
Fabrice Di Meglio
6926d3a585 am d0abcede: Merge "Introduce the SearchIndexablesProvider and its friends"
* commit 'd0abcedece5c749129af89cf096534c98a716d89':
  Introduce the SearchIndexablesProvider and its friends
2014-03-19 18:17:04 -07:00
Fabrice Di Meglio
d0abcedece Merge "Introduce the SearchIndexablesProvider and its friends" 2014-03-20 01:12:06 +00:00
Dianne Hackborn
7a5f7016d4 am 024a003d: Merge "batstats: fix wake lock tracking, service bug"
* commit '024a003d4c5b558ad5580cde4a99c2180bcd77fa':
  batstats: fix wake lock tracking, service bug
2014-03-19 17:48:45 -07:00
Dianne Hackborn
024a003d4c Merge "batstats: fix wake lock tracking, service bug" 2014-03-20 00:43:37 +00:00
Igor Murashkin
022f1d777f am 7d9a8ffd: camera: Fix setParameters for Preview FPS single/range values
* commit '7d9a8ffd08fa950eb14f8224f6090fe46ab4aa9f':
  camera: Fix setParameters for Preview FPS single/range values
2014-03-19 17:28:04 -07:00
Igor Murashkin
7d9a8ffd08 camera: Fix setParameters for Preview FPS single/range values
Bug: 12609188
Change-Id: I82ea6f5de2183dd046d4bf5683600c97f37ab4db
2014-03-20 00:21:44 +00:00
Wei Wang
e950bed144 am b4b66d2f: Merge "Move advetise clean up to callback code. fixes b/13289050"
* commit 'b4b66d2f3afe8154efeb86389bc47c046d21aecf':
  Move advetise clean up to callback code. fixes b/13289050
2014-03-19 17:15:19 -07:00
Dianne Hackborn
40c8725804 batstats: fix wake lock tracking, service bug
- Fix bug I introduced in handling wake lock changes where
  we weren't iterating over the new work sources correctly.
- Fix bug in ActiveServices that would wtf too much.
- Prepare to start tracking uptime in the battery history.

Change-Id: Ia94316be51bc6eab7b02f214a5c40c08e99cc3b1
2014-03-19 17:13:43 -07:00
Wei Wang
b4b66d2f3a Merge "Move advetise clean up to callback code. fixes b/13289050" 2014-03-20 00:12:23 +00:00
Wei Wang
809476525f Move advetise clean up to callback code. fixes b/13289050
Change-Id: Ibf3c772561125821817c947730cf21defafd4cb2
2014-03-20 00:04:27 +00:00
John Spurlock
4caf365abd am 87c28e27: Merge "Fix javadoc @links in Vibrator."
* commit '87c28e27c5c5ba7b8ad2944d299b05678e2ae87f':
  Fix javadoc @links in Vibrator.
2014-03-19 16:34:48 -07:00
John Spurlock
a1bfe65daa Fix javadoc @links in Vibrator.
Change-Id: I5143334735a1bcdf8252687e703c74656ff9d126
2014-03-19 19:29:34 -04:00
Fabrice Di Meglio
b49995d4d9 Introduce the SearchIndexablesProvider and its friends
- enable retrieval of search data to be indexed

Change-Id: I4a16408dec3d3305bf20107fb11eb2d1aee7fad5
2014-03-19 15:44:01 -07:00
John Spurlock
f198863c3c am 07cf4da1: Merge "Add stream-level suppression to vibrate/audio services."
* commit '07cf4da1d004b145ba8b9055bbff314ef68528f3':
  Add stream-level suppression to vibrate/audio services.
2014-03-19 15:02:26 -07:00
John Spurlock
07cf4da1d0 Merge "Add stream-level suppression to vibrate/audio services." 2014-03-19 21:58:19 +00:00
Wei Wang
6934ac0154 am ffbea5c7: Merge "Add status callback for start/stop advertising. Fixes b/13289050, b/13418851, also fixes 13418671."
* commit 'ffbea5c7daf2584039cda0a3a14b35433f789f19':
  Add status callback for start/stop advertising. Fixes b/13289050, b/13418851, also fixes 13418671.
2014-03-19 14:32:59 -07:00
Wei Wang
ffbea5c7da Merge "Add status callback for start/stop advertising. Fixes b/13289050, b/13418851, also fixes 13418671." 2014-03-19 21:29:59 +00:00
Jeff Brown
e51f9e2c8e am c768e1b6: am 3e1b03e4: am 5693d403: am 96abebd0: am 80af5316: am f260ed09: Merge "Fix inverted conditional in View.setFilterTouchesWhenObscured." into klp-dev
* commit 'c768e1b673fa02719db3e5323803c0109dd78ec9':
  Fix inverted conditional in View.setFilterTouchesWhenObscured.
2014-03-19 13:31:43 -07:00