52590 Commits

Author SHA1 Message Date
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
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
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
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
Dianne Hackborn
ed1a9c778c am fc441bff: am fd63814a: Merge "Fix some problems with moving in and out of detached state." into honeycomb-mr2
* commit 'fc441bfff9eb68be08eb922ea05c78c5d6fba27a':
  Fix some problems with moving in and out of detached state.
2011-06-10 18:42:12 -07:00
Dianne Hackborn
fc441bfff9 am fd63814a: Merge "Fix some problems with moving in and out of detached state." into honeycomb-mr2
* commit 'fd63814abe8e81d5e1e0eb75b5a5a18034e9b4c6':
  Fix some problems with moving in and out of detached state.
2011-06-10 18:39:48 -07:00
Dianne Hackborn
fd63814abe Merge "Fix some problems with moving in and out of detached state." into honeycomb-mr2 2011-06-10 18:37:22 -07:00
Dianne Hackborn
afc4b283fd Fix some problems with moving in and out of detached state.
Loaders were not being re-initialized correctly when coming back
(this would also impact the back stack).  The ListView also wasn't
working correctly, and there were also problems with simply
re-using a Fragment instance after it had been removed.

Change-Id: I534b091ae09c0ef7ffffe9d68049e6840e8926b3
2011-06-10 18:34:54 -07:00
Fabrice Di Meglio
d2e743d3bb Merge "Refactor BiDiTest unit tests app" 2011-06-10 18:22:55 -07:00
Fabrice Di Meglio
7af05226b9 Refactor BiDiTest unit tests app
- make it more extensible (suppress tabs in favor of a list selection and fragments)

Change-Id: If6f6c3a33f7c03e00205edbeab2945024b477f0d
2011-06-10 18:20:47 -07:00
Jeff Brown
7e44283770 Optimize StrictMode activity instance count check.
This change attempts to avoid a periodic and costly 110ms
explicit GC and instance count operation when StrictMode
activity leak checking is enabled.

Change-Id: Ia90289ac3352c01c797ab3cc25456e3db68f220a
2011-06-10 18:13:31 -07:00
Jeff Brown
fc9ff4c834 Always clear the Message when recycled.
Clear the Message when it is recycled, even if it will not go
back into the Message pool.  This makes the behavior of recycle()
more consistent and ensures that the Message does not hold onto
other object after it has been recycled (useful in case there are
stale references to the Message lingering elsewhere).

Change-Id: I26b6a4b629f9c0b6bed70fdc42734919f30e64c4
2011-06-10 18:13:31 -07:00
Jeff Brown
2457237532 Optimize orientation changes.
Modified setRotation to allow it to restart a rotation in
progress as long as the rotation animation has not yet started.
This enables the system to recover more quickly from mispredicted
orientation changes.

Removed the call to System.gc() when freezing the display, which
added 60-80ms before we even started the orientation change.
We used to need this to make it less likely that an upcoming GC
would cause a pause during the window animation, but this is
not longer a concern with the concurrent GC in place.

Changed the wallpaper surface to be 32bit.  This accelerates
drawing and improves the overall appearance slightly.

Reduced code duplication in the WallpaperManager.

Change-Id: Ic6e5e8bdce4b970b11badddd0355baaed40df88a
2011-06-10 18:13:30 -07:00
Jim Miller
b505074e82 Add new MultiWaveView widget and integrate it into LockScreen
This adds a new multi-target widget to the framework and integrates
it into LockScreen.

Now with updated assets.

Change-Id: Ib41595b9e80a7be6d647f44c803a77f9e5bfeca9
2011-06-10 18:02:29 -07:00
Jim Miller
d408f4a835 am db26be1f: am 5fe24ec7: am 8daefb9c: Fix layout issue on table when device thinks there\'s a SIM.
* commit 'db26be1fa63e838b83e060a5e8a102321b9385fb':
  Fix layout issue on table when device thinks there's a SIM.
2011-06-10 17:47:44 -07:00
Jim Miller
db26be1fa6 am 5fe24ec7: am 8daefb9c: Fix layout issue on table when device thinks there\'s a SIM.
* commit '5fe24ec77d183774dfb06262b80b32be608480c7':
  Fix layout issue on table when device thinks there's a SIM.
2011-06-10 17:43:37 -07:00
Jim Miller
5fe24ec77d am 8daefb9c: Fix layout issue on table when device thinks there\'s a SIM.
* commit '8daefb9c63cce5e0a87ba38c40dd4f48be3809e1':
  Fix layout issue on table when device thinks there's a SIM.
2011-06-10 17:41:20 -07:00
Romain Guy
dc8f917719 Merge "Add missing API to current.txt" 2011-06-10 17:32:40 -07:00
John Wang
e1a4fcdeaa am cc44bea0: am 2addaf97: Merge "Add toString for IccCard Status and App." into honeycomb-LTE
* commit 'cc44bea0400bc6b6e995d66b705a4db0a77a7dfa':
  Add toString for IccCard Status and App.
2011-06-10 17:31:42 -07:00
Romain Guy
40b62576ff Add missing API to current.txt
Change-Id: Ia9469c5d1851741bf37c92c1c923e2558ed213a8
2011-06-10 17:30:48 -07:00
John Wang
cc44bea040 am 2addaf97: Merge "Add toString for IccCard Status and App." into honeycomb-LTE
* commit '2addaf97b319e257677ac3e5bbb772ba40cfa78a':
  Add toString for IccCard Status and App.
2011-06-10 17:28:11 -07:00
John Wang
2addaf97b3 Merge "Add toString for IccCard Status and App." into honeycomb-LTE 2011-06-10 17:19:42 -07:00
James Dong
8aec83eb15 Merge "Avoid duplicated code calculating the stts sample duration" 2011-06-10 16:23:41 -07:00
Jim Miller
8daefb9c63 Fix layout issue on table when device thinks there's a SIM.
bug:4411799
Change-Id: I9d9ef036d4cf424ed760e0db157bb1f020b7c678
2011-06-10 15:57:09 -07:00
Romain Guy
c0e9e4293a Merge "Add onSurfaceTextureDestroyed() callback." 2011-06-10 15:45:23 -07:00
Fabrice Di Meglio
40b62b9e66 Merge "Make View respect LAYOUT_DIRECTION_LOCALE" 2011-06-10 15:45:10 -07:00
Romain Guy
451ce44a18 Add onSurfaceTextureDestroyed() callback.
This is needed for Renderscript and it also makes implementations
of TextureView cleaner. This change also hooks up the onSurfaceTextureSizeCHanged()
callback whenever the view size changes.

Change-Id: I2f972ee4504d800329defefacf32cf20547d31a3
2011-06-10 15:44:09 -07:00
Nick Pelly
f74b9bf13b Merge "NFC: Submit the missing pieces of previous commit to fix build." 2011-06-10 15:23:37 -07:00
Nick Pelly
195c39cbce NFC: Submit the missing pieces of previous commit to fix build.
(remove stale code)

Change-Id: I0d08650b6d694ac4493cf0074696d4e1be7d9f87
2011-06-10 15:22:28 -07:00
Teng-Hui Zhu
4e6c1da41c am 5a9bbc34: am b5141a9f: am 90bdb69b: Merge "fix one NPE when webChromeClient don\'t have progress view support" into honeycomb-mr2
* commit '5a9bbc34cb2a83188b7407c4f7bae47e40593c34':
  fix one NPE when webChromeClient don't have progress view support
2011-06-10 15:21:26 -07:00
Robert Greenwalt
8b7eede0bc am 75612e9c: am 1ea549e8: Merge "CDMALTE: Get roaming status based on SID/NID" into honeycomb-LTE
* commit '75612e9c3f92364ba1f0a7fce46f1df11b0a14ca':
  CDMALTE: Get roaming status based on SID/NID
2011-06-10 15:21:22 -07:00
John Reck
b0e81da4b8 Merge "Tweak snap settings" 2011-06-10 14:57:33 -07:00
John Reck
75738725e7 Tweak snap settings
Different settings for horiz vs. vert snap
 Snap angle increase in snap mode

Change-Id: I105e79b0c6fae239beef0c311cddd748def2ad8b
2011-06-10 14:51:53 -07:00
Fabrice Di Meglio
26e432d25f Make View respect LAYOUT_DIRECTION_LOCALE
- update also unit tests for taking care of the locale direction
- code formatting on the layout test files

Change-Id: I4037eac3c572de9abb0178f36ca03803cc2c1522
2011-06-10 14:30:32 -07:00
Teng-Hui Zhu
5a9bbc34cb am b5141a9f: am 90bdb69b: Merge "fix one NPE when webChromeClient don\'t have progress view support" into honeycomb-mr2
* commit 'b5141a9fc7e841167c3e07f8797d8aef9a787d25':
  fix one NPE when webChromeClient don't have progress view support
2011-06-10 14:27:13 -07:00
Jean-Baptiste Queru
0bf732b70e Merge "Make AllAudio really include all audio" 2011-06-10 14:27:01 -07:00
Teng-Hui Zhu
b5141a9fc7 am 90bdb69b: Merge "fix one NPE when webChromeClient don\'t have progress view support" into honeycomb-mr2
* commit '90bdb69bf95e5865547a55260dd61744b0bcc911':
  fix one NPE when webChromeClient don't have progress view support
2011-06-10 14:22:52 -07:00
Teng-Hui Zhu
90bdb69bf9 Merge "fix one NPE when webChromeClient don't have progress view support" into honeycomb-mr2 2011-06-10 14:19:22 -07:00