52943 Commits

Author SHA1 Message Date
Fabrice Di Meglio
9d9f237270 Merge "Update Configuration for renaming and fixes" 2011-06-13 11:43:12 -07:00
Daniel Sandler
ad6352be88 Swipe to veto in notifications.
Yeah, it's pretty cool.

Change-Id: I2a4405a413ba9d1e521aa52a9a8c8e459583f9d0
2011-06-13 14:33:56 -04:00
Jamie Gennis
bd3e537980 Merge changes I56779420,I044e44e1,Ic5adfa29,Ied541ab8
* changes:
  SurfaceTexture: add some GL->GL tests.
  SurfaceTexture: fix up a comment.
  SurfaceTexture: add getTransformMatrix tests.
  SurfaceTexture: fix a getTransformMatrix crash.
2011-06-13 11:14:57 -07:00
Philip Milne
28b6711c4c Merge "Bugfix for GridLayout assuming that the x value of last column index is maximal. This is not the case when column indexes are defined incorrectly and GridLayout should still work in this case." 2011-06-13 11:13:09 -07:00
John Reck
7abf5a6215 Merge "Tweaks for webview snap" 2011-06-13 11:12:03 -07:00
Irfan Sheriff
ee32eed474 Merge "Fix driver start/stop handling" 2011-06-13 11:10:57 -07:00
Teng-Hui Zhu
3159886ede Merge "Fix a NPE if the Chrome Client is not setup" 2011-06-13 11:07:38 -07:00
Jamie Gennis
9deb930ebf SurfaceTexture: add some GL->GL tests.
This change adds some tests to verify streaming images from one GL
thread to another via SurfaceTexture.  Currently the tests do not
validate the correctness of the streamed images, but rather simply
verify that this streaming does not cause a deadlock.  3 of the 4 tests
are currently disabled because they do cause deadlocks on some devices.

Change-Id: I5677942053190063b97f370dba96c116711bc3bb
2011-06-13 10:50:13 -07:00
Jamie Gennis
4e03d327d6 SurfaceTexture: fix up a comment.
Change-Id: I044e44e17319e08af657a7ec9fa39100876fe862
2011-06-13 10:50:13 -07:00
Jamie Gennis
15e0d9f5e0 SurfaceTexture: add getTransformMatrix tests.
This change adds a test verifying that with no transform set on the
SurfaceTextureClient, the SurfaceTexture will return an identity
transform matrix.  It also verifies this same effect in the presence of
an additional call to native_window_set_buffer_count just before the
call to getTransformMatrix.

Bug: 4490420
Change-Id: Ic5adfa29b5696cc2b451433834e3758ef20c5edd
2011-06-13 10:50:13 -07:00
Jamie Gennis
eadfb673e7 SurfaceTexture: fix a getTransformMatrix crash.
This change moves the computation of the transform matrix out of
getTransformMatrix and instead performs the computation when
updateTexImage gets called.  This is needed in order for
getTransformMatrix to succeed even if the buffers have been freed (e.g.
by changing the buffer count) because the computation depends upon the
properties of the current GraphicBuffer.

Change-Id: Ied541ab8747b7ad604f862717135f9a16a816be9
Bug: 4490420
2011-06-13 10:50:12 -07:00
Philip Milne
51f17d5461 Bugfix for GridLayout assuming that the x value of last column index is maximal. This is not the case when column indexes are defined incorrectly and GridLayout should still work in this case.
Change-Id: I5deb3fb43ed1dd16dd20868854b96ebae4d30623
2011-06-13 10:44:49 -07:00
John Reck
2664d85f58 Tweaks for webview snap
Changed weighted average
 Increase horizontal snap

Change-Id: I7ed50e13b0b0ba409a8e655d38c704f72a3f2f78
2011-06-13 10:38:55 -07:00
Ben Komalo
1775a0c866 Merge "Open up setKeyManager/setTrustManager." 2011-06-13 10:32:26 -07:00
Glenn Kasten
041120754a Merge "Remove redundant memory barrier" 2011-06-13 10:30:29 -07:00
Teng-Hui Zhu
592b2a65b0 Fix a NPE if the Chrome Client is not setup
This can happen when applications are using WebView to show HTML5 video in
full screen mode while not setting up WebChromeClient correctly.

Change-Id: I6575e3364f04f6eaf800f854d60992fe6c3be651
2011-06-13 10:10:51 -07:00
Ben Komalo
193bc6d606 Open up setKeyManager/setTrustManager.
The improved keystore will allow clients (Email not the least of them)
to establish SSL connections using custom client certificates. In order
to do this properly, the socket factories they use to establish these
connections need to be able to customize their behavior.

Change-Id: I6e0fa04dd01bd6481dfdad5a71a63e0371d0ad8c
2011-06-13 10:04:36 -07:00
Martijn Coenen
112fdf612d Support for setting the NfcA transceive timeout (API).
Change-Id: I2c40fbc7e9101462afae18125feba30cf76ea5f2
2011-06-13 18:22:57 +02:00
Daniel Sandler
622d544197 Merge "Use the new animated notification layout on tablets." 2011-06-13 07:30:48 -07:00
Daniel Sandler
e0b4fe59f7 Merge "Rebuilt notification list using a new custom layout." 2011-06-13 07:29:39 -07:00
Daniel Sandler
08d08f667e Use the new animated notification layout on tablets.
(See change Ib46b2d3e.)

Change-Id: I46635ed97596bf1ebe65cd29ef80f3b189102d8a
2011-06-13 10:28:28 -04:00
repo sync
5891f55a16 Merge "Fix the issue of onNetwork in UI thread." 2011-06-13 03:09:27 -07:00
repo sync
c133781723 Fix the issue of onNetwork in UI thread.
bug:458435

This will temporarily start a thread for answering calls, we are
going to add a handler thread to handle this soon.

Change-Id: I9079038d671e1b1631c6e663fc2c3de297d97428
2011-06-13 17:46:41 +08:00
Debashish Chatterjee
492208439d Merge "Made VoicemailContract classes non-instantiable." 2011-06-13 02:10:32 -07:00
Jeff Sharkey
b3610666c6 Merge "Fix test-related build breakage." 2011-06-13 00:15:15 -07:00
Jeff Sharkey
af11d48595 Fix test-related build breakage.
Change-Id: I48a3dbbdc49d742d6ad19cff34ee8da4b3949bb8
2011-06-13 00:14:31 -07:00
Jeff Sharkey
fdfc3c7b9f Merge "External mutation of full NetworkPolicy set." 2011-06-12 23:24:50 -07:00
Jeff Sharkey
22c055e642 External mutation of full NetworkPolicy set.
Instead of embedding complex template coexistence rules into policy
service, rely on external editors to enforce, and offer atomic
get/set operations for full policy sets.

Generate default mobile policy when none exists, using default of 4GB
warning and cycle reset of current day.  Dispatch listener events
through Handler when holding internal lock, and catch CLASS_UNKNOWN
networks in 3G_LOWER template.

Change-Id: I063cf1eaf330e32b75d0697b89fc04488e6dfaea
2011-06-12 23:21:34 -07:00
Jeff Brown
cf892f926c Merge "Ensure the RemoteViewsAdapter cleans up its HandlerThread." 2011-06-12 15:25:14 -07:00
Jeff Sharkey
4a97122ebf Growable NetworkStats object instead of builder.
NetworkStats now grows in place with arraycopy() instead of callers
needing to know record count a priori.  Better growth calculation for
both NetworkStats and NetworkStatsHistory; 50% each time.  Better
estimates of buckets needed in calling services.

Change-Id: I3adbffa0b7407612cc6349d9135a8b4eb63cd440
2011-06-11 22:17:17 -07:00
Daniel Sandler
d42497e516 Rebuilt notification list using a new custom layout.
This will allow what is currently impossible with
layoutTransition: smoothly animating container bounds.

Current enter animation: alpha fade
Current exit animation: fade + slide right

Change-Id: Ib46b2d3ee982a276ca2142d360e62538e52b0897
Next: replace "X" with swipe-to-cancel.
2011-06-12 00:11:09 -04:00
Jeff Sharkey
39ebc2195e Persist UID stats, lazy loading, resize buckets.
Persisting detailed UID stats in separate "netstats_detail.bin" file
to enable different schedules for summary and detail polling.  Only
load detailed UID history on demand, since it's not needed during
boot.  Add test to verify UID stats are persisted across simulated
reboot.

Move external settings into well-named interface, which is still
backed by Settings.Secure.  During periodic poll events, resize any
history to match current bucket duration setting.  Test to verify.

Change-Id: I6366f3583a591f8ba859b0e5987daf8cafa4e95a
2011-06-11 17:55:56 -07:00
Iliyan Malchev
13010be779 CameraService: return stide when dequeueing a buffer
Change-Id: I11c7f0b57f7d619cdc392b2d34c538ae898de7ac
Signed-off-by: Iliyan Malchev <malchev@google.com>
2011-06-11 11:02:38 -07:00
Dan Morrill
653fd9cfac am 8688d470: Moving flag to a member field instead of a stack variable.
* commit '8688d4708117db446d6ba2855f1d8ad715bb4d72':
  Moving flag to a member field instead of a stack variable.
2011-06-11 09:52:50 -07:00
Jeff Brown
fc442bdea1 Ensure the RemoteViewsAdapter cleans up its HandlerThread.
Using a finalizer for this is kind of gross but it is robust.
We could try to hook onDetachedFromWindow() on the View
but that would introduce additional lifecycle management to
the adapter since a View could potentially be detached and then
reattached, so we might need to recreate the handler, etc.

Ideally this code should probably be changed to use AsyncTask.

Change-Id: I9ad5fff388411619363e4a075ed0244966b38726
2011-06-10 23:24:49 -07:00
Jeff Brown
0c2313dc4f Mimic Zygote preload steps when using wrappers.
Change-Id: I45f182a952920f328d092e5ac86fc0f1c35eb6c1
2011-06-10 23:24:28 -07:00
Jeff Brown
854bbfd961 Fix LockScreen regression.
Seems to be an incorrect layout change.  The original change
intended to modify the ID of the WaveView but instead a TextView
was blasted away.

Change-Id: I9039179a16c8bf7b322d8008b9c7e0e5ab47a629
2011-06-10 23:18:22 -07:00
Kenny Root
7a9db181a6 No position information for outside touches
When a window registers to listen for outside touches, it doesn't need
the position information for touches that land outside of its activity
for normal use cases.

This patch uses the foreground window's UID as a filter to determine
whether to pass the position information. This will allow applications
to continue to rely on touch information for inputs that were directed
at one of its other windows.

Bug: 4541250
Change-Id: If16eb1ec8404b797d991859eef55ac0a20a355a3
2011-06-10 22:53:16 -07:00
Jeff Brown
038b737c75 Fix regression handling negative sizes.
Change-Id: Ib177af2fce9be4dabffa801f64580b1ea7adc673
2011-06-10 22:52:54 -07:00
Svetoslav Ganov
eeee4d2c01 Final polish of the interrogation feature.
1. Added a new event type for notifying client accessibilitiy
   services for changes in the layout. The event is fired at
   most once for a given time frame and is delivered to clients
   only if it originates from the window that can be interrogated.

2. Exposed the findByText functionality in AccessibilityNodeInfo.
   This is very useful for an accessibility service since it allows
   searching for something the user knows is on the screen thus
   avoiding touch exploring the content. Touch exploring is
   excellent for learning the apps but knowing them search is
   much faster.

3. Fixed a bug causing an accessibiliby service not to receive
   the event source in case of more than one service is registered
   and one of them does not have paermission to interrogate the window.
   The same event was dispatched to multiple services but if one
   of them does not have interrogation permission the event is
   modified to remove the source causing subsequent serivices not
   to get the later.

4. Moved the getSource setSource methods to AccessibilityRecord
   instead in AccessibilityEvent.

5. Hiden some protected members in AccessibilityRecod which should
   not be made public since getters exist.

6. Added the View absolute coordinates in the screen to AccessibilityNodeInfo.
   This is needed for fast computation of relative positions of
   views from accessibility - common use case for the later.

7. Fixed a couple of marshalling bugs.

8. Added a test for the object contract of AccessibilityNodeInfo.

Change-Id: Id9dc50c33aff441e4c93d25ea316c9bbc4bd7a35
2011-06-10 21:10:46 -07:00
Jeff Sharkey
eaf7ce6067 Merge "Move data cycle methods to framework object." 2011-06-10 19:47:31 -07:00
Jeff Sharkey
cd2ca4038a Move data cycle methods to framework object.
Moved so they can be used by both system service and Settings UI, since
they both work with data usage cycles.  Still covered by tests.

Change-Id: I01c0c4db6da9457dd867c9167d31a5f9f8e5f5d9
2011-06-10 19:45:34 -07:00
Jeff Sharkey
57af6e7678 Merge "Interface-level network policy, persist policies." 2011-06-10 19:41:33 -07:00
Jeff Sharkey
21c9c45e5c Interface-level network policy, persist policies.
Define NetworkPolicy as cycle-reset day and warning/limit values, and
set/get through NetworkPolicyManager.  Watch ConnectivityManager for
network connection events, and apply quota rules based on matching
interfaces.  Policy service matches based on strong identity to support
IMSI-specific policy values.

Calculates remaining quota based on current stats recorded since the
last reset cycle day.  Tests to verify edge cases around February.

Persist network and UID policies in XML, and restore on boot.

Change-Id: Id40ba7d6eed6094fbd5e18e6331286c606880d80
2011-06-10 19:35:20 -07:00
Dianne Hackborn
27e4266a4d Merge "resolved conflicts for merge of ed1a9c77 to master" 2011-06-10 19:24:49 -07:00
Dianne Hackborn
7b1c0f679e resolved conflicts for merge of ed1a9c77 to master
Change-Id: I0ecf8ca6deaee165eea3cc9012f8ae139f52ea0c
2011-06-10 19:23:49 -07:00
Jeff Brown
f5b61013d2 Merge "Optimize StrictMode activity instance count check." 2011-06-10 19:01:11 -07:00
Jeff Brown
b7c82637e2 Merge "Always clear the Message when recycled." 2011-06-10 19:00:28 -07:00
Jeff Brown
bc38d3e44e Merge "Optimize orientation changes." 2011-06-10 18:59:21 -07:00
Jeff Brown
ad47ab3524 Merge "Make orientation changes happen sooner." 2011-06-10 18:58:46 -07:00