android.util.PrintWriterPrinter Java Examples
The following examples show how to use
android.util.PrintWriterPrinter.
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: LatinIME.java From Indic-Keyboard with Apache License 2.0 | 6 votes |
@Override protected void dump(final FileDescriptor fd, final PrintWriter fout, final String[] args) { super.dump(fd, fout, args); final Printer p = new PrintWriterPrinter(fout); p.println("LatinIME state :"); p.println(" VersionCode = " + ApplicationUtils.getVersionCode(this)); p.println(" VersionName = " + ApplicationUtils.getVersionName(this)); final Keyboard keyboard = mKeyboardSwitcher.getKeyboard(); final int keyboardMode = keyboard != null ? keyboard.mId.mMode : -1; p.println(" Keyboard mode = " + keyboardMode); final SettingsValues settingsValues = mSettings.getCurrent(); p.println(settingsValues.dump()); p.println(mDictionaryFacilitator.dump(this /* context */)); // TODO: Dump all settings values }
Example #2
Source File: CountryDetectorService.java From android_9.0.0_r45 with Apache License 2.0 | 6 votes |
@SuppressWarnings("unused") @Override protected void dump(FileDescriptor fd, PrintWriter fout, String[] args) { if (!DumpUtils.checkDumpPermission(mContext, TAG, fout)) return; if (!DEBUG) return; try { final Printer p = new PrintWriterPrinter(fout); p.println("CountryDetectorService state:"); p.println(" Number of listeners=" + mReceivers.keySet().size()); if (mCountryDetector == null) { p.println(" ComprehensiveCountryDetector not initialized"); } else { p.println(" " + mCountryDetector.toString()); } } catch (Exception e) { Slog.e(TAG, "Failed to dump CountryDetectorService: ", e); } }
Example #3
Source File: LatinIME.java From hackerskeyboard with Apache License 2.0 | 6 votes |
@Override protected void dump(FileDescriptor fd, PrintWriter fout, String[] args) { super.dump(fd, fout, args); final Printer p = new PrintWriterPrinter(fout); p.println("LatinIME state :"); p.println(" Keyboard mode = " + mKeyboardSwitcher.getKeyboardMode()); p.println(" mComposing=" + mComposing.toString()); p.println(" mPredictionOnForMode=" + mPredictionOnForMode); p.println(" mCorrectionMode=" + mCorrectionMode); p.println(" mPredicting=" + mPredicting); p.println(" mAutoCorrectOn=" + mAutoCorrectOn); p.println(" mAutoSpace=" + mAutoSpace); p.println(" mCompletionOn=" + mCompletionOn); p.println(" TextEntryState.state=" + TextEntryState.getState()); p.println(" mSoundOn=" + mSoundOn); p.println(" mVibrateOn=" + mVibrateOn); p.println(" mPopupOn=" + mPopupOn); }
Example #4
Source File: LatinIME.java From AOSP-Kayboard-7.1.2 with Apache License 2.0 | 6 votes |
@Override protected void dump(final FileDescriptor fd, final PrintWriter fout, final String[] args) { super.dump(fd, fout, args); final Printer p = new PrintWriterPrinter(fout); p.println("LatinIME state :"); p.println(" VersionCode = " + ApplicationUtils.getVersionCode(this)); p.println(" VersionName = " + ApplicationUtils.getVersionName(this)); final Keyboard keyboard = mKeyboardSwitcher.getKeyboard(); final int keyboardMode = keyboard != null ? keyboard.mId.mMode : -1; p.println(" Keyboard mode = " + keyboardMode); final SettingsValues settingsValues = mSettings.getCurrent(); p.println(settingsValues.dump()); p.println(mDictionaryFacilitator.dump(this /* context */)); // TODO: Dump all settings values }
Example #5
Source File: LatinIME.java From Android-Keyboard with Apache License 2.0 | 6 votes |
@Override protected void dump(final FileDescriptor fd, final PrintWriter fout, final String[] args) { super.dump(fd, fout, args); final Printer p = new PrintWriterPrinter(fout); p.println("LatinIME state :"); p.println(" VersionCode = " + ApplicationUtils.getVersionCode(this)); p.println(" VersionName = " + ApplicationUtils.getVersionName(this)); final Keyboard keyboard = KeyboardSwitcher.getInstance().getKeyboard(); final int keyboardMode = keyboard != null ? keyboard.mId.mMode : -1; p.println(" Keyboard mode = " + keyboardMode); final SettingsValues settingsValues = mSettings.getCurrent(); p.println(settingsValues.dump()); p.println(mDictionaryFacilitator.dump(this /* context */)); // TODO: Dump all settings values }
Example #6
Source File: LatinIME.java From openboard with GNU General Public License v3.0 | 6 votes |
@Override protected void dump(final FileDescriptor fd, final PrintWriter fout, final String[] args) { super.dump(fd, fout, args); final Printer p = new PrintWriterPrinter(fout); p.println("LatinIME state :"); p.println(" VersionCode = " + ApplicationUtils.getVersionCode(this)); p.println(" VersionName = " + ApplicationUtils.getVersionName(this)); final Keyboard keyboard = mKeyboardSwitcher.getKeyboard(); final int keyboardMode = keyboard != null ? keyboard.mId.mMode : -1; p.println(" Keyboard mode = " + keyboardMode); final SettingsValues settingsValues = mSettings.getCurrent(); p.println(settingsValues.dump()); p.println(mDictionaryFacilitator.dump(this /* context */)); // TODO: Dump all settings values }
Example #7
Source File: SpellCheckerInfo.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
/** * @hide */ public void dump(final PrintWriter pw, final String prefix) { pw.println(prefix + "mId=" + mId); pw.println(prefix + "mSettingsActivityName=" + mSettingsActivityName); pw.println(prefix + "Service:"); mService.dump(new PrintWriterPrinter(pw), prefix + " "); final int N = getSubtypeCount(); for (int i = 0; i < N; i++) { final SpellCheckerSubtype st = getSubtypeAt(i); pw.println(prefix + " " + "Subtype #" + i + ":"); pw.println(prefix + " " + "locale=" + st.getLocale() + " languageTag=" + st.getLanguageTag()); pw.println(prefix + " " + "extraValue=" + st.getExtraValue()); } }
Example #8
Source File: LatinIME.java From simple-keyboard with Apache License 2.0 | 5 votes |
@Override protected void dump(final FileDescriptor fd, final PrintWriter fout, final String[] args) { super.dump(fd, fout, args); final Printer p = new PrintWriterPrinter(fout); p.println("LatinIME state :"); p.println(" VersionCode = " + ApplicationUtils.getVersionCode(this)); p.println(" VersionName = " + ApplicationUtils.getVersionName(this)); final Keyboard keyboard = mKeyboardSwitcher.getKeyboard(); final int keyboardMode = keyboard != null ? keyboard.mId.mMode : -1; p.println(" Keyboard mode = " + keyboardMode); }
Example #9
Source File: LatinIME.java From LokiBoard-Android-Keylogger with Apache License 2.0 | 5 votes |
@Override protected void dump(final FileDescriptor fd, final PrintWriter fout, final String[] args) { super.dump(fd, fout, args); final Printer p = new PrintWriterPrinter(fout); p.println("LatinIME state :"); p.println(" VersionCode = " + ApplicationUtils.getVersionCode(this)); p.println(" VersionName = " + ApplicationUtils.getVersionName(this)); final Keyboard keyboard = mKeyboardSwitcher.getKeyboard(); final int keyboardMode = keyboard != null ? keyboard.mId.mMode : -1; p.println(" Keyboard mode = " + keyboardMode); }
Example #10
Source File: ActivityThread.java From AndroidComponentPlugin with Apache License 2.0 | 5 votes |
@Override public void dumpDbInfo(FileDescriptor fd, String[] args) { PrintWriter pw = new PrintWriter(new FileOutputStream(fd)); PrintWriterPrinter printer = new PrintWriterPrinter(pw); SQLiteDebug.dump(printer, args); pw.flush(); }
Example #11
Source File: InputMethodManager.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
void doDump(FileDescriptor fd, PrintWriter fout, String[] args) { final Printer p = new PrintWriterPrinter(fout); p.println("Input method client state for " + this + ":"); p.println(" mService=" + mService); p.println(" mMainLooper=" + mMainLooper); p.println(" mIInputContext=" + mIInputContext); p.println(" mActive=" + mActive + " mRestartOnNextWindowFocus=" + mRestartOnNextWindowFocus + " mBindSequence=" + mBindSequence + " mCurId=" + mCurId); p.println(" mFullscreenMode=" + mFullscreenMode); p.println(" mCurMethod=" + mCurMethod); p.println(" mCurRootView=" + mCurRootView); p.println(" mServedView=" + mServedView); p.println(" mNextServedView=" + mNextServedView); p.println(" mServedConnecting=" + mServedConnecting); if (mCurrentTextBoxAttribute != null) { p.println(" mCurrentTextBoxAttribute:"); mCurrentTextBoxAttribute.dump(p, " "); } else { p.println(" mCurrentTextBoxAttribute: null"); } p.println(" mServedInputConnectionWrapper=" + mServedInputConnectionWrapper); p.println(" mCompletions=" + Arrays.toString(mCompletions)); p.println(" mCursorRect=" + mCursorRect); p.println(" mCursorSelStart=" + mCursorSelStart + " mCursorSelEnd=" + mCursorSelEnd + " mCursorCandStart=" + mCursorCandStart + " mCursorCandEnd=" + mCursorCandEnd); p.println(" mNextUserActionNotificationSequenceNumber=" + mNextUserActionNotificationSequenceNumber + " mLastSentUserActionNotificationSequenceNumber=" + mLastSentUserActionNotificationSequenceNumber); }
Example #12
Source File: ReceiverList.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
void dump(PrintWriter pw, String prefix) { Printer pr = new PrintWriterPrinter(pw); dumpLocal(pw, prefix); String p2 = prefix + " "; final int N = size(); for (int i=0; i<N; i++) { BroadcastFilter bf = get(i); pw.print(prefix); pw.print("Filter #"); pw.print(i); pw.print(": BroadcastFilter{"); pw.print(Integer.toHexString(System.identityHashCode(bf))); pw.println('}'); bf.dumpInReceiverList(pw, pr, p2); } }
Example #13
Source File: ActiveInstrumentation.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
void dump(PrintWriter pw, String prefix) { pw.print(prefix); pw.print("mClass="); pw.print(mClass); pw.print(" mFinished="); pw.println(mFinished); pw.print(prefix); pw.println("mRunningProcesses:"); for (int i=0; i<mRunningProcesses.size(); i++) { pw.print(prefix); pw.print(" #"); pw.print(i); pw.print(": "); pw.println(mRunningProcesses.get(i)); } pw.print(prefix); pw.print("mTargetProcesses="); pw.println(Arrays.toString(mTargetProcesses)); pw.print(prefix); pw.print("mTargetInfo="); pw.println(mTargetInfo); if (mTargetInfo != null) { mTargetInfo.dump(new PrintWriterPrinter(pw), prefix + " ", 0); } if (mProfileFile != null) { pw.print(prefix); pw.print("mProfileFile="); pw.println(mProfileFile); } if (mWatcher != null) { pw.print(prefix); pw.print("mWatcher="); pw.println(mWatcher); } if (mUiAutomationConnection != null) { pw.print(prefix); pw.print("mUiAutomationConnection="); pw.println(mUiAutomationConnection); } pw.print(prefix); pw.print("mArguments="); pw.println(mArguments); }
Example #14
Source File: MockProvider.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
public void dump(PrintWriter pw, String prefix) { pw.println(prefix + mName); pw.println(prefix + "mHasLocation=" + mHasLocation); pw.println(prefix + "mLocation:"); mLocation.dump(new PrintWriterPrinter(pw), prefix + " "); pw.println(prefix + "mHasStatus=" + mHasStatus); pw.println(prefix + "mStatus=" + mStatus); pw.println(prefix + "mStatusUpdateTime=" + mStatusUpdateTime); pw.println(prefix + "mExtras=" + mExtras); }
Example #15
Source File: InputMethodService.java From android_9.0.0_r45 with Apache License 2.0 | 4 votes |
/** * Performs a dump of the InputMethodService's internal state. Override * to add your own information to the dump. */ @Override protected void dump(FileDescriptor fd, PrintWriter fout, String[] args) { final Printer p = new PrintWriterPrinter(fout); p.println("Input method service state for " + this + ":"); p.println(" mWindowCreated=" + mWindowCreated + " mWindowAdded=" + mWindowAdded); p.println(" mWindowVisible=" + mWindowVisible + " mWindowWasVisible=" + mWindowWasVisible + " mInShowWindow=" + mInShowWindow); p.println(" Configuration=" + getResources().getConfiguration()); p.println(" mToken=" + mToken); p.println(" mInputBinding=" + mInputBinding); p.println(" mInputConnection=" + mInputConnection); p.println(" mStartedInputConnection=" + mStartedInputConnection); p.println(" mInputStarted=" + mInputStarted + " mInputViewStarted=" + mInputViewStarted + " mCandidatesViewStarted=" + mCandidatesViewStarted); p.println(" mStartInputToken=" + mStartInputToken); if (mInputEditorInfo != null) { p.println(" mInputEditorInfo:"); mInputEditorInfo.dump(p, " "); } else { p.println(" mInputEditorInfo: null"); } p.println(" mShowInputRequested=" + mShowInputRequested + " mLastShowInputRequested=" + mLastShowInputRequested + " mShowInputFlags=0x" + Integer.toHexString(mShowInputFlags)); p.println(" mCandidatesVisibility=" + mCandidatesVisibility + " mFullscreenApplied=" + mFullscreenApplied + " mIsFullscreen=" + mIsFullscreen + " mExtractViewHidden=" + mExtractViewHidden); if (mExtractedText != null) { p.println(" mExtractedText:"); p.println(" text=" + mExtractedText.text.length() + " chars" + " startOffset=" + mExtractedText.startOffset); p.println(" selectionStart=" + mExtractedText.selectionStart + " selectionEnd=" + mExtractedText.selectionEnd + " flags=0x" + Integer.toHexString(mExtractedText.flags)); } else { p.println(" mExtractedText: null"); } p.println(" mExtractedToken=" + mExtractedToken); p.println(" mIsInputViewShown=" + mIsInputViewShown + " mStatusIcon=" + mStatusIcon); p.println("Last computed insets:"); p.println(" contentTopInsets=" + mTmpInsets.contentTopInsets + " visibleTopInsets=" + mTmpInsets.visibleTopInsets + " touchableInsets=" + mTmpInsets.touchableInsets + " touchableRegion=" + mTmpInsets.touchableRegion); p.println(" mShouldClearInsetOfPreviousIme=" + mShouldClearInsetOfPreviousIme); p.println(" mSettingsObserver=" + mSettingsObserver); }
Example #16
Source File: BroadcastFilter.java From android_9.0.0_r45 with Apache License 2.0 | 4 votes |
public void dump(PrintWriter pw, String prefix) { dumpInReceiverList(pw, new PrintWriterPrinter(pw), prefix); receiverList.dumpLocal(pw, prefix); }
Example #17
Source File: BroadcastFilter.java From AndroidComponentPlugin with Apache License 2.0 | 4 votes |
public void dump(PrintWriter pw, String prefix) { dumpInReceiverList(pw, new PrintWriterPrinter(pw), prefix); receiverList.dumpLocal(pw, prefix); }