70 Commits

Author SHA1 Message Date
Android (Google) Code Review
f8e258ee1b am 5616a7d: Merge change 459 into donut
Merge commit '5616a7d1dea1aecc8353bab144d14446aa33391a'

* commit '5616a7d1dea1aecc8353bab144d14446aa33391a':
  TypedProperties: initial commit
2009-04-29 13:11:33 -07:00
Android (Google) Code Review
137b0c9d64 am 0b8ffd1: Merge change 460 into donut
Merge commit '0b8ffd17bc6641fc522db3e842a868b6cdbf6d82'

* commit '0b8ffd17bc6641fc522db3e842a868b6cdbf6d82':
  More optimization of dumpsys output.
2009-04-29 13:11:27 -07:00
Android (Google) Code Review
5616a7d1de Merge change 459 into donut
* changes:
  TypedProperties: initial commit
2009-04-23 14:22:58 -07:00
Dianne Hackborn
1d442e0d99 More optimization of dumpsys output.
There are three major classes of changes here:

- Avoid writing lines where their values are often empty, false, or some other typical thing.
- Use partial writes to the PrintWriter to avoid creating temporary strings.
- Use StringBuilder where we need to generate real String objects (and where possible cache the result).
2009-04-22 18:03:21 -07:00
Dave Bort
c4d6dd0bbc TypedProperties: initial commit 2009-04-22 17:51:50 -07:00
Jean-Baptiste Queru
74008f608a Merge donut into master 2009-04-22 17:12:34 -07:00
Evan Millar
ac9fd3e423 Merge branch 'readonly-p4-master' 2009-04-18 23:36:20 -07:00
Evan Millar
74e258d63e AI 146854: am: CL 146853 Add kernel wakelock data to batteryinfo dump.
Original author: emillar

Automated import of CL 146854
2009-04-18 23:35:03 -07:00
Evan Millar
4482d8c8e4 Merge branch 'readonly-p4-donut' into donut 2009-04-18 12:27:51 -07:00
Evan Millar
c64edde69d AI 146853: Add kernel wakelock data to batteryinfo dump.
BUG=1755458

Automated import of CL 146853
2009-04-18 12:26:32 -07:00
Tammo Spalink
e564b19ed2 replaced integer * and % with shift operations, for performance 2009-04-16 14:48:19 +08:00
Tammo Spalink
83917db040 Initial code for cdma sms encode and decode, in java, with simple tests.
(direct cherry-pick of master 42/42/8)
2009-04-14 10:01:23 +08:00
Ficus Kirkpatrick
ed740498ca Add method on EncodedStringValue to transform a String[]. 2009-04-10 15:50:01 -07:00
Andy McFadden
599c918d97 AI 144931: Added a (hidden) way to "pre-cache" register maps.
The 50 methods that appeared on the GC stacks of the most applications
  require 13KB of native heap for their uncompressed register maps, and
  the full set took 5ms to uncompress.  Pre-computation doesn't represent
  a significant improvement in space or time, at the cost of a big pile
  of strings in ZygoteInit.
  I'm leaving the method in ZygoteInit, but it's not called, and the
  static final String[] of method descriptors is empty.  We may want to
  revisit this later.
  BUG=1729570

Automated import of CL 144931
2009-04-08 00:35:56 -07:00
Dianne Hackborn
6447ca30b8 Fix issue #1769910 (Track activity launch times)
The usage stats service now collects per-activity launch time stats.  There are a number of fixes and improvements to its statistics management and collection; it now operates its calendar in GMT and ensures that for checkin purposes it always reports one day and only one complete day to the checkin service.

Also change the checkin option from "-c" to "--checkin" since it is really a special thing.
2009-04-07 19:50:08 -07:00
Evan Millar
0ba31ed95e AI 144410: am: CL 144333 Change the way the battery level tracking code works in BatteryStats. Before we simply kept track of the last
2 levels as recorded at plug and unplug events. During charge cycles this would be useful because it would tell us
  what the start and end levels were in the last discharge cycle. However during a discharge cycle this information could
  be misleading as it would give you the level at the last unplug event (beginning the the discharge cycle) and last plug
  event (end of the previous discharge cycle).
  Now we are still keeping track of 2 values, but they are "discharge cycle start level" and "discharge cycle current level".
  During a discharge cycle this will give you the level the current discharge cycle started at, and the current level. During
  a charge cycle the same data will be supplied as before (the start/end of the last discharge cycle).
  Original author: emillar

Automated import of CL 144410
2009-04-02 23:28:45 -07:00
Evan Millar
633a1740ce AI 144333: Change the way the battery level tracking code works in BatteryStats. Before we simply kept track of the last
2 levels as recorded at plug and unplug events. During charge cycles this would be useful because it would tell us
  what the start and end levels were in the last discharge cycle. However during a discharge cycle this information could
  be misleading as it would give you the level at the last unplug event (beginning the the discharge cycle) and last plug
  event (end of the previous discharge cycle).
  Now we are still keeping track of 2 values, but they are "discharge cycle start level" and "discharge cycle current level".
  During a discharge cycle this will give you the level the current discharge cycle started at, and the current level. During
  a charge cycle the same data will be supplied as before (the start/end of the last discharge cycle).
  B=144249

Automated import of CL 144333
2009-04-02 16:36:33 -07:00
Doug Zongker
32a5a24b3f AI 144094: am: CL 144044 First cut of tunneling HTTP requests over gtalk connection:
- We define HttpRequest and HttpResponse protocol buffers.
  The RMQ mechanism is *not* used for these (though the
  messages define rmq id fields in case we want to start).
  - GTalkHttpClient will send an http request over the
  connection to MCS if:
  - gtalk_tunnel_http in gservices is turned on
  - the request destination is the android proxy
  - it can make a connection to gtalkservice
  The request falls back to using GoogleHttpClient if it can't
  be processed over the MCS connection.
  A few shortcuts are taken with cookie handling, but these
  are okay for the envisioned usage.
  Original author: dougz
  Merged from: //branches/donutburger/...

Automated import of CL 144094
2009-04-02 09:24:44 -07:00
Doug Zongker
0fc2c1392a AI 144044: First cut of tunneling HTTP requests over gtalk connection:
- We define HttpRequest and HttpResponse protocol buffers.
  The RMQ mechanism is *not* used for these (though the
  messages define rmq id fields in case we want to start).
  - GTalkHttpClient will send an http request over the
  connection to MCS if:
  - gtalk_tunnel_http in gservices is turned on
  - the request destination is the android proxy
  - it can make a connection to gtalkservice
  The request falls back to using GoogleHttpClient if it can't
  be processed over the MCS connection.
  A few shortcuts are taken with cookie handling, but these
  are okay for the envisioned usage.

Automated import of CL 144044
2009-04-01 12:01:43 -07:00
Dianne Hackborn
617f877c06 AI 143800: am: CL 143748 Fix issue #1743326 (More battery stats)
Adds stats for:
  - Number of raw user events that have happened in the system.
  - Number of times user activity has been reported, dividied by UID and type of activity.
  - Duration of screen brightness levels in 4 buckets.
  - Per-UID tracking of who has turned on Wifi and how long we can attribute it being on because of them.
  Original author: hackbod
  Merged from: //branches/cupcake/...

Automated import of CL 143800
2009-03-31 15:04:46 -07:00
Dianne Hackborn
bed30e1b6e AI 143823: am: CL 143800 am: CL 143748 Fix issue #1743326 (More battery stats)
Adds stats for:
  - Number of raw user events that have happened in the system.
  - Number of times user activity has been reported, dividied by UID and type of activity.
  - Duration of screen brightness levels in 4 buckets.
  - Per-UID tracking of who has turned on Wifi and how long we can attribute it being on because of them.
  Original author: hackbod
  Merged from: //branches/cupcake/...
  Original author: android-build
  Merged from: //branches/donutburger/...

Automated import of CL 143823
2009-03-31 14:46:20 -07:00
Satoshi Kataoka
0b4d64807e AI 143347: am: CL 143196 am: CL 142964 Add a function to clear styles in EditStyledText.
Add a function to change getBackground color.
  Add a function to check whether EditStyledText has styled text or not.
  Refactor function and variable names for readability.
  Original author: satok
  Merged from: //branches/cupcake/...
  Original author: android-build
  Merged from: //branches/donutburger/...

Automated import of CL 143347
2009-03-27 18:59:37 -07:00
Jean-Baptiste Queru
bf62297bd1 AI 143296: Merge from donut Change 143147
Automated import of CL 143296
2009-03-27 17:43:53 -07:00
Satoshi Kataoka
05a3c6870c AI 143196: am: CL 142964 Add a function to clear styles in EditStyledText.
Add a function to change getBackground color.
  Add a function to check whether EditStyledText has styled text or not.
  Refactor function and variable names for readability.
  Original author: satok
  Merged from: //branches/cupcake/...

Automated import of CL 143196
2009-03-27 17:27:28 -07:00
Dianne Hackborn
88fb1069bf AI 143147: Manual integration
Automated import of CL 143147
2009-03-27 14:59:22 -07:00
Romain Guy
9c802c1e95 Automated import from //branches/master/...@142575,142575 2009-03-25 15:07:31 -07:00
Romain Guy
870a2b0156 Automated import from //branches/donutburger/...@142470,142470 2009-03-24 22:46:33 -07:00
Dianne Hackborn
4840e143df Automated import from //branches/master/...@142348,142348 2009-03-24 22:40:29 -07:00
Dianne Hackborn
627bba736d Automated import from //branches/donutburger/...@142347,142347 2009-03-24 22:32:56 -07:00
Dianne Hackborn
eb785fa71a Automated import from //branches/master/...@141518,141518 2009-03-24 20:27:03 -07:00
Dianne Hackborn
d906b720b8 Automated import from //branches/donutburger/...@141515,141515 2009-03-24 20:26:37 -07:00
Bob Lee
886f3d69b7 Automated import from //branches/donutburger/...@141355,141355 2009-03-24 20:06:51 -07:00
Bob Lee
ef0996ffa3 Automated import from //branches/master/...@141357,141357 2009-03-24 20:06:19 -07:00
Satoshi Kataoka
df6601ac91 Automated import from //branches/donutburger/...@141168,141168 2009-03-24 19:42:46 -07:00
Satoshi Kataoka
1ab415f6e9 Automated import from //branches/master/...@141169,141169 2009-03-24 19:42:28 -07:00
Satoshi Kataoka
6eb7298019 Automated import from //branches/donutburger/...@141149,141149 2009-03-24 19:39:54 -07:00
Satoshi Kataoka
e1e5df58b2 Automated import from //branches/master/...@141151,141151 2009-03-24 19:39:35 -07:00
Satoshi Kataoka
5c70839ae3 Automated import from //branches/donutburger/...@141126,141126 2009-03-24 19:36:12 -07:00
Satoshi Kataoka
083c6b9fad Automated import from //branches/master/...@141127,141127 2009-03-24 19:35:55 -07:00
Satoshi Kataoka
51376451f1 Automated import from //branches/donutburger/...@141112,141112 2009-03-24 19:33:42 -07:00
Satoshi Kataoka
20a869863b Automated import from //branches/master/...@141113,141113 2009-03-24 19:33:27 -07:00
Dianne Hackborn
1bf5e22da7 Automated import from //branches/donutburger/...@141001,141001 2009-03-24 19:11:58 -07:00
Dianne Hackborn
51bf077883 Automated import from //branches/master/...@141004,141004 2009-03-24 19:11:41 -07:00
Satoshi Kataoka
6ef7af5089 Automated import from //branches/donutburger/...@140966,140966 2009-03-24 19:05:08 -07:00
Satoshi Kataoka
4312619934 Automated import from //branches/master/...@140968,140968 2009-03-24 19:05:08 -07:00
Debajit Ghosh
e259023ffc Automated import from //branches/donutburger/...@140817,140817 2009-03-24 18:36:00 -07:00
Debajit Ghosh
87231cfbbb Automated import from //branches/master/...@140820,140820 2009-03-24 18:35:54 -07:00
Satoshi Kataoka
2c4b6ac252 Automated import from //branches/master/...@140767,140767 2009-03-24 18:28:05 -07:00
Satoshi Kataoka
ce8f3a8eca Automated import from //branches/donutburger/...@140765,140765 2009-03-24 18:27:59 -07:00
Eric Shienbrood
f93f02fb8a Automated import from //branches/master/...@140680,140680 2009-03-24 18:14:17 -07:00