Java Code Examples for com.android.internal.util.IndentingPrintWriter#printPair()
The following examples show how to use
com.android.internal.util.IndentingPrintWriter#printPair() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: VolumeRecord.java From android_9.0.0_r45 with Apache License 2.0 | 6 votes |
public void dump(IndentingPrintWriter pw) { pw.println("VolumeRecord:"); pw.increaseIndent(); pw.printPair("type", DebugUtils.valueToString(VolumeInfo.class, "TYPE_", type)); pw.printPair("fsUuid", fsUuid); pw.printPair("partGuid", partGuid); pw.println(); pw.printPair("nickname", nickname); pw.printPair("userFlags", DebugUtils.flagsToString(VolumeRecord.class, "USER_FLAG_", userFlags)); pw.println(); pw.printPair("createdMillis", TimeUtils.formatForLogging(createdMillis)); pw.printPair("lastTrimMillis", TimeUtils.formatForLogging(lastTrimMillis)); pw.printPair("lastBenchMillis", TimeUtils.formatForLogging(lastBenchMillis)); pw.decreaseIndent(); pw.println(); }
Example 2
Source File: StorageVolume.java From android_9.0.0_r45 with Apache License 2.0 | 6 votes |
/** {@hide} */ public void dump(IndentingPrintWriter pw) { pw.println("StorageVolume:"); pw.increaseIndent(); pw.printPair("mId", mId); pw.printPair("mPath", mPath); pw.printPair("mInternalPath", mInternalPath); pw.printPair("mDescription", mDescription); pw.printPair("mPrimary", mPrimary); pw.printPair("mRemovable", mRemovable); pw.printPair("mEmulated", mEmulated); pw.printPair("mAllowMassStorage", mAllowMassStorage); pw.printPair("mMaxFileSize", mMaxFileSize); pw.printPair("mOwner", mOwner); pw.printPair("mFsUuid", mFsUuid); pw.printPair("mState", mState); pw.decreaseIndent(); }
Example 3
Source File: VolumeInfo.java From android_9.0.0_r45 with Apache License 2.0 | 6 votes |
public void dump(IndentingPrintWriter pw) { pw.println("VolumeInfo{" + id + "}:"); pw.increaseIndent(); pw.printPair("type", DebugUtils.valueToString(getClass(), "TYPE_", type)); pw.printPair("diskId", getDiskId()); pw.printPair("partGuid", partGuid); pw.printPair("mountFlags", DebugUtils.flagsToString(getClass(), "MOUNT_FLAG_", mountFlags)); pw.printPair("mountUserId", mountUserId); pw.printPair("state", DebugUtils.valueToString(getClass(), "STATE_", state)); pw.println(); pw.printPair("fsType", fsType); pw.printPair("fsUuid", fsUuid); pw.printPair("fsLabel", fsLabel); pw.println(); pw.printPair("path", path); pw.printPair("internalPath", internalPath); pw.decreaseIndent(); pw.println(); }
Example 4
Source File: PackageInstaller.java From android_9.0.0_r45 with Apache License 2.0 | 6 votes |
/** {@hide} */ public void dump(IndentingPrintWriter pw) { pw.printPair("mode", mode); pw.printHexPair("installFlags", installFlags); pw.printPair("installLocation", installLocation); pw.printPair("sizeBytes", sizeBytes); pw.printPair("appPackageName", appPackageName); pw.printPair("appIcon", (appIcon != null)); pw.printPair("appLabel", appLabel); pw.printPair("originatingUri", originatingUri); pw.printPair("originatingUid", originatingUid); pw.printPair("referrerUri", referrerUri); pw.printPair("abiOverride", abiOverride); pw.printPair("volumeUuid", volumeUuid); pw.printPair("grantedRuntimePermissions", grantedRuntimePermissions); pw.printPair("installerPackageName", installerPackageName); pw.println(); }
Example 5
Source File: StorageVolume.java From soundboard with GNU General Public License v3.0 | 6 votes |
public void dump(IndentingPrintWriter pw) { pw.println("StorageVolume:"); pw.increaseIndent(); pw.printPair("mId", mId); pw.printPair("mStorageId", mStorageId); pw.printPair("mPath", mPath); pw.printPair("mDescription", mDescription); pw.printPair("mPrimary", mPrimary); pw.printPair("mRemovable", mRemovable); pw.printPair("mEmulated", mEmulated); pw.printPair("mMtpReserveSize", mMtpReserveSize); pw.printPair("mAllowMassStorage", mAllowMassStorage); pw.printPair("mMaxFileSize", mMaxFileSize); pw.printPair("mOwner", mOwner); pw.printPair("mFsUuid", mFsUuid); pw.printPair("mState", mState); pw.decreaseIndent(); }
Example 6
Source File: PackageInstallerSession.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
@GuardedBy("mLock") private void dumpLocked(IndentingPrintWriter pw) { pw.println("Session " + sessionId + ":"); pw.increaseIndent(); pw.printPair("userId", userId); pw.printPair("mOriginalInstallerUid", mOriginalInstallerUid); pw.printPair("mInstallerPackageName", mInstallerPackageName); pw.printPair("mInstallerUid", mInstallerUid); pw.printPair("createdMillis", createdMillis); pw.printPair("stageDir", stageDir); pw.printPair("stageCid", stageCid); pw.println(); params.dump(pw); pw.printPair("mClientProgress", mClientProgress); pw.printPair("mProgress", mProgress); pw.printPair("mSealed", mSealed); pw.printPair("mPermissionsManuallyAccepted", mPermissionsManuallyAccepted); pw.printPair("mRelinquished", mRelinquished); pw.printPair("mDestroyed", mDestroyed); pw.printPair("mFds", mFds.size()); pw.printPair("mBridges", mBridges.size()); pw.printPair("mFinalStatus", mFinalStatus); pw.printPair("mFinalMessage", mFinalMessage); pw.println(); pw.decreaseIndent(); }
Example 7
Source File: DeviceStorageMonitorService.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
void dumpImpl(FileDescriptor fd, PrintWriter _pw, String[] args) { final IndentingPrintWriter pw = new IndentingPrintWriter(_pw, " "); if (args == null || args.length == 0 || "-a".equals(args[0])) { pw.println("Known volumes:"); pw.increaseIndent(); for (int i = 0; i < mStates.size(); i++) { final UUID uuid = mStates.keyAt(i); final State state = mStates.valueAt(i); if (StorageManager.UUID_DEFAULT.equals(uuid)) { pw.println("Default:"); } else { pw.println(uuid + ":"); } pw.increaseIndent(); pw.printPair("level", State.levelToString(state.level)); pw.printPair("lastUsableBytes", state.lastUsableBytes); pw.println(); pw.decreaseIndent(); } pw.decreaseIndent(); pw.println(); pw.printPair("mSeq", mSeq.get()); pw.printPair("mForceState", State.levelToString(mForceLevel)); pw.println(); pw.println(); } else { Shell shell = new Shell(); shell.exec(mRemoteService, null, fd, null, args, null, new ResultReceiver(null)); } }
Example 8
Source File: DiskInfo.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
public void dump(IndentingPrintWriter pw) { pw.println("DiskInfo{" + id + "}:"); pw.increaseIndent(); pw.printPair("flags", DebugUtils.flagsToString(getClass(), "FLAG_", flags)); pw.printPair("size", size); pw.printPair("label", label); pw.println(); pw.printPair("sysPath", sysPath); pw.decreaseIndent(); pw.println(); }