Lines Matching defs:out

253         public void writeToParcel(Parcel out) {
254 out.writeInt(mCount.get());
255 out.writeInt(mLoadedCount);
256 out.writeInt(mLastCount);
257 out.writeInt(mUnpluggedCount);
272 * @param out the Parcel to be written to.
275 public static void writeCounterToParcel(Parcel out, Counter counter) {
277 out.writeInt(0); // indicates null
280 out.writeInt(1); // indicates non-null
282 counter.writeToParcel(out);
313 void writeSummaryFromParcelLocked(Parcel out) {
315 out.writeInt(count);
316 out.writeInt(count - mLoadedCount);
414 public void writeToParcel(Parcel out, long batteryRealtime) {
415 out.writeInt(mCount);
416 out.writeInt(mLoadedCount);
417 out.writeInt(mLastCount);
418 out.writeInt(mUnpluggedCount);
419 out.writeLong(computeRunTimeLocked(batteryRealtime));
420 out.writeLong(mLoadedTime);
421 out.writeLong(mLastTime);
422 out.writeLong(mUnpluggedTime);
456 * @param out the Parcel to be written to.
459 public static void writeTimerToParcel(Parcel out, Timer timer,
462 out.writeInt(0); // indicates null
465 out.writeInt(1); // indicates non-null
467 timer.writeToParcel(out, batteryRealtime);
515 void writeSummaryFromParcelLocked(Parcel out, long batteryRealtime) {
518 out.writeLong((runTime + 500) / 1000);
519 out.writeLong(((runTime - mLoadedTime) + 500) / 1000);
520 out.writeInt(mCount);
521 out.writeInt(mCount - mLoadedCount);
658 public void writeToParcel(Parcel out, long batteryRealtime) {
659 super.writeToParcel(out, batteryRealtime);
660 out.writeInt(mCurrentReportedCount);
661 out.writeInt(mUnpluggedReportedCount);
662 out.writeLong(mCurrentReportedTotalTime);
663 out.writeLong(mUnpluggedReportedTotalTime);
664 out.writeInt(mTrackingReportedValues ? 1 : 0);
667 void writeSummaryFromParcelLocked(Parcel out, long batteryRealtime) {
668 super.writeSummaryFromParcelLocked(out, batteryRealtime);
669 out.writeLong(mCurrentReportedTotalTime);
670 out.writeInt(mCurrentReportedCount);
671 out.writeInt(mTrackingReportedValues ? 1 : 0);
722 public void writeToParcel(Parcel out, long batteryRealtime) {
723 super.writeToParcel(out, batteryRealtime);
724 out.writeLong(mUpdateTime);
780 // active in the pool, before taking this one out of the pool.
901 // Stomp out any bad characters since this is from a circular buffer
1206 // Ignore any signal strength changes when radio was turned off or out of service.
1725 void writeToParcelLocked(Parcel out, long batteryRealtime) {
1726 out.writeInt(mWakelockStats.size());
1728 out.writeString(wakelockEntry.getKey());
1730 wakelock.writeToParcelLocked(out, batteryRealtime);
1733 out.writeInt(mSensorStats.size());
1735 out.writeInt(sensorEntry.getKey());
1737 sensor.writeToParcelLocked(out, batteryRealtime);
1740 out.writeInt(mProcessStats.size());
1742 out.writeString(procEntry.getKey());
1744 proc.writeToParcelLocked(out);
1747 out.writeInt(mPackageStats.size());
1749 out.writeString(pkgEntry.getKey());
1751 pkg.writeToParcelLocked(out);
1754 out.writeLong(mLoadedTcpBytesReceived);
1755 out.writeLong(mLoadedTcpBytesSent);
1756 out.writeLong(computeCurrentTcpBytesReceived());
1757 out.writeLong(computeCurrentTcpBytesSent());
1758 out.writeLong(mTcpBytesReceivedAtLastUnplug);
1759 out.writeLong(mTcpBytesSentAtLastUnplug);
1760 mWifiTurnedOnTimer.writeToParcel(out, batteryRealtime);
1761 mFullWifiLockTimer.writeToParcel(out, batteryRealtime);
1762 mAudioTurnedOnTimer.writeToParcel(out, batteryRealtime);
1763 mVideoTurnedOnTimer.writeToParcel(out, batteryRealtime);
1764 mScanWifiLockTimer.writeToParcel(out, batteryRealtime);
1765 mWifiMulticastTimer.writeToParcel(out, batteryRealtime);
1767 out.writeInt(0);
1769 out.writeInt(1);
1771 mUserActivityCounters[i].writeToParcel(out);
1891 void writeToParcelLocked(Parcel out, long batteryRealtime) {
1892 Timer.writeTimerToParcel(out, mTimerPartial, batteryRealtime);
1893 Timer.writeTimerToParcel(out, mTimerFull, batteryRealtime);
1894 Timer.writeTimerToParcel(out, mTimerWindow, batteryRealtime);
1934 void writeToParcelLocked(Parcel out, long batteryRealtime) {
1935 Timer.writeTimerToParcel(out, mTimer, batteryRealtime);
2053 void writeToParcelLocked(Parcel out) {
2057 out.writeLong(mUserTime);
2058 out.writeLong(mSystemTime);
2059 out.writeLong(mForegroundTime);
2060 out.writeInt(mStarts);
2061 out.writeLong(mLoadedUserTime);
2062 out.writeLong(mLoadedSystemTime);
2063 out.writeLong(mLoadedForegroundTime);
2064 out.writeInt(mLoadedStarts);
2065 out.writeLong(mLastUserTime);
2066 out.writeLong(mLastSystemTime);
2067 out.writeLong(mLastForegroundTime);
2068 out.writeInt(mLastStarts);
2069 out.writeLong(mUnpluggedUserTime);
2070 out.writeLong(mUnpluggedSystemTime);
2071 out.writeLong(mUnpluggedForegroundTime);
2072 out.writeInt(mUnpluggedStarts);
2074 out.writeInt(mSpeedBins.length);
2076 mSpeedBins[i].writeToParcel(out);
2264 void writeToParcelLocked(Parcel out) {
2265 out.writeInt(mWakeups);
2266 out.writeInt(mLoadedWakeups);
2267 out.writeInt(mLastWakeups);
2268 out.writeInt(mUnpluggedWakeups);
2270 out.writeInt(mServiceStats.size());
2272 out.writeString(servEntry.getKey());
2275 serv.writeToParcelLocked(out);
2428 void writeToParcelLocked(Parcel out) {
2429 out.writeLong(mStartTime);
2430 out.writeLong(mRunningSince);
2431 out.writeInt(mRunning ? 1 : 0);
2432 out.writeInt(mStarts);
2433 out.writeLong(mLaunchedTime);
2434 out.writeLong(mLaunchedSince);
2435 out.writeInt(mLaunched ? 1 : 0);
2436 out.writeInt(mLaunches);
2437 out.writeLong(mLoadedStartTime);
2438 out.writeInt(mLoadedStarts);
2439 out.writeInt(mLoadedLaunches);
2440 out.writeLong(mLastStartTime);
2441 out.writeInt(mLastStarts);
2442 out.writeInt(mLastLaunches);
2443 out.writeLong(mUnpluggedStartTime);
2444 out.writeInt(mUnpluggedStarts);
2445 out.writeInt(mUnpluggedLaunches);
3078 Parcel out = Parcel.obtain();
3079 writeSummaryToParcel(out);
3080 stream.write(out.marshall());
3081 out.recycle();
3318 * @param out the Parcel to be written to.
3320 public void writeSummaryToParcel(Parcel out) {
3326 out.writeInt(VERSION);
3328 out.writeInt(mStartCount);
3329 out.writeLong(computeBatteryUptime(NOW_SYS, STATS_TOTAL));
3330 out.writeLong(computeBatteryUptime(NOW_SYS, STATS_CURRENT));
3331 out.writeLong(computeBatteryRealtime(NOWREAL_SYS, STATS_TOTAL));
3332 out.writeLong(computeBatteryRealtime(NOWREAL_SYS, STATS_CURRENT));
3333 out.writeLong(computeUptime(NOW_SYS, STATS_TOTAL));
3334 out.writeLong(computeUptime(NOW_SYS, STATS_CURRENT));
3335 out.writeLong(computeRealtime(NOWREAL_SYS, STATS_TOTAL));
3336 out.writeLong(computeRealtime(NOWREAL_SYS, STATS_CURRENT));
3337 out.writeInt(mDischargeStartLevel);
3338 out.writeInt(mDischargeCurrentLevel);
3341 mScreenOnTimer.writeSummaryFromParcelLocked(out, NOWREAL);
3343 mScreenBrightnessTimer[i].writeSummaryFromParcelLocked(out, NOWREAL);
3345 mInputEventCounter.writeSummaryFromParcelLocked(out);
3346 mPhoneOnTimer.writeSummaryFromParcelLocked(out, NOWREAL);
3348 mPhoneSignalStrengthsTimer[i].writeSummaryFromParcelLocked(out, NOWREAL);
3350 mPhoneSignalScanningTimer.writeSummaryFromParcelLocked(out, NOWREAL);
3352 mPhoneDataConnectionsTimer[i].writeSummaryFromParcelLocked(out, NOWREAL);
3354 mWifiOnTimer.writeSummaryFromParcelLocked(out, NOWREAL);
3355 mWifiRunningTimer.writeSummaryFromParcelLocked(out, NOWREAL);
3356 mBluetoothOnTimer.writeSummaryFromParcelLocked(out, NOWREAL);
3358 out.writeInt(mKernelWakelockStats.size());
3362 out.writeInt(1);
3363 out.writeString(ent.getKey());
3364 ent.getValue().writeSummaryFromParcelLocked(out, NOWREAL);
3366 out.writeInt(0);
3370 out.writeInt(sNumSpeedSteps);
3372 out.writeInt(NU);
3374 out.writeInt(mUidStats.keyAt(iu));
3377 u.mWifiTurnedOnTimer.writeSummaryFromParcelLocked(out, NOWREAL);
3378 u.mFullWifiLockTimer.writeSummaryFromParcelLocked(out, NOWREAL);
3379 u.mAudioTurnedOnTimer.writeSummaryFromParcelLocked(out, NOWREAL);
3380 u.mVideoTurnedOnTimer.writeSummaryFromParcelLocked(out, NOWREAL);
3381 u.mScanWifiLockTimer.writeSummaryFromParcelLocked(out, NOWREAL);
3382 u.mWifiMulticastTimer.writeSummaryFromParcelLocked(out, NOWREAL);
3385 out.writeInt(0);
3387 out.writeInt(1);
3389 u.mUserActivityCounters[i].writeSummaryFromParcelLocked(out);
3394 out.writeInt(NW);
3398 out.writeString(ent.getKey());
3401 out.writeInt(1);
3402 wl.mTimerFull.writeSummaryFromParcelLocked(out, NOWREAL);
3404 out.writeInt(0);
3407 out.writeInt(1);
3408 wl.mTimerPartial.writeSummaryFromParcelLocked(out, NOWREAL);
3410 out.writeInt(0);
3413 out.writeInt(1);
3414 wl.mTimerWindow.writeSummaryFromParcelLocked(out, NOWREAL);
3416 out.writeInt(0);
3422 out.writeInt(NSE);
3426 out.writeInt(ent.getKey());
3429 out.writeInt(1);
3430 se.mTimer.writeSummaryFromParcelLocked(out, NOWREAL);
3432 out.writeInt(0);
3438 out.writeInt(NP);
3442 out.writeString(ent.getKey());
3444 out.writeLong(ps.mUserTime);
3445 out.writeLong(ps.mUserTime - ps.mLoadedUserTime);
3446 out.writeLong(ps.mSystemTime);
3447 out.writeLong(ps.mSystemTime - ps.mLoadedSystemTime);
3448 out.writeInt(ps.mStarts);
3449 out.writeInt(ps.mStarts - ps.mLoadedStarts);
3454 out.writeInt(NP);
3458 out.writeString(ent.getKey());
3460 out.writeInt(ps.mWakeups);
3461 out.writeInt(ps.mWakeups - ps.mLoadedWakeups);
3463 out.writeInt(NS);
3467 out.writeString(sent.getKey());
3470 out.writeLong(time);
3471 out.writeLong(time - ss.mLoadedStartTime);
3472 out.writeInt(ss.mStarts);
3473 out.writeInt(ss.mStarts - ss.mLoadedStarts);
3474 out.writeInt(ss.mLaunches);
3475 out.writeInt(ss.mLaunches - ss.mLoadedLaunches);
3481 out.writeLong(u.getTcpBytesReceived(STATS_TOTAL));
3482 out.writeLong(u.getTcpBytesSent(STATS_TOTAL));
3582 public void writeToParcel(Parcel out, int flags) {
3583 writeToParcelLocked(out, flags);
3587 void writeToParcelLocked(Parcel out, int flags) {
3593 out.writeInt(MAGIC);
3594 out.writeInt(mStartCount);
3595 out.writeLong(mBatteryUptime);
3596 out.writeLong(mBatteryLastUptime);
3597 out.writeLong(mBatteryRealtime);
3598 out.writeLong(mBatteryLastRealtime);
3599 mScreenOnTimer.writeToParcel(out, batteryRealtime);
3601 mScreenBrightnessTimer[i].writeToParcel(out, batteryRealtime);
3603 mInputEventCounter.writeToParcel(out);
3604 mPhoneOnTimer.writeToParcel(out, batteryRealtime);
3606 mPhoneSignalStrengthsTimer[i].writeToParcel(out, batteryRealtime);
3608 mPhoneSignalScanningTimer.writeToParcel(out, batteryRealtime);
3610 mPhoneDataConnectionsTimer[i].writeToParcel(out, batteryRealtime);
3612 mWifiOnTimer.writeToParcel(out, batteryRealtime);
3613 mWifiRunningTimer.writeToParcel(out, batteryRealtime);
3614 mBluetoothOnTimer.writeToParcel(out, batteryRealtime);
3615 out.writeLong(mUptime);
3616 out.writeLong(mUptimeStart);
3617 out.writeLong(mLastUptime);
3618 out.writeLong(mRealtime);
3619 out.writeLong(mRealtimeStart);
3620 out.writeLong(mLastRealtime);
3621 out.writeInt(mOnBattery ? 1 : 0);
3622 out.writeLong(batteryUptime);
3623 out.writeLong(mTrackBatteryUptimeStart);
3624 out.writeLong(batteryRealtime);
3625 out.writeLong(mTrackBatteryRealtimeStart);
3626 out.writeLong(mUnpluggedBatteryUptime);
3627 out.writeLong(mUnpluggedBatteryRealtime);
3628 out.writeInt(mDischargeStartLevel);
3629 out.writeInt(mDischargeCurrentLevel);
3630 out.writeLong(mLastWriteTime);
3632 out.writeLong(getMobileTcpBytesReceived(STATS_UNPLUGGED));
3633 out.writeLong(getMobileTcpBytesSent(STATS_UNPLUGGED));
3634 out.writeLong(getTotalTcpBytesReceived(STATS_UNPLUGGED));
3635 out.writeLong(getTotalTcpBytesSent(STATS_UNPLUGGED));
3638 out.writeLong(getRadioDataUptime());
3640 out.writeInt(getBluetoothPingCount());
3642 out.writeInt(mKernelWakelockStats.size());
3646 out.writeInt(1);
3647 out.writeString(ent.getKey());
3648 Timer.writeTimerToParcel(out, kwlt, batteryRealtime);
3650 out.writeInt(0);
3654 out.writeInt(sNumSpeedSteps);
3657 out.writeInt(size);
3659 out.writeInt(mUidStats.keyAt(i));
3662 uid.writeToParcelLocked(out, batteryRealtime);