Searched refs:mStringWriter (Results 1 – 3 of 3) sorted by relevance
102 private StringWriter mStringWriter; field in TelephonyBackupAgentTest149 mStringWriter = new StringWriter(); in setUp()520 mTelephonyBackupAgent.putSmsMessagesToJson(mSmsCursor, new JsonWriter(mStringWriter)); in testBackupSms_NoSms()521 assertEquals(EMPTY_JSON_ARRAY, mStringWriter.toString()); in testBackupSms_NoSms()532 mTelephonyBackupAgent.putSmsMessagesToJson(mSmsCursor, new JsonWriter(mStringWriter)); in testBackupSms_AllSms()533 assertEquals(mAllSmsJson, mStringWriter.toString()); in testBackupSms_AllSms()543 mTelephonyBackupAgent.putSmsMessagesToJson(mSmsCursor, new JsonWriter(mStringWriter)); in testBackupSms_AllSmsWithExactFileLimit()544 assertEquals(mAllSmsJson, mStringWriter.toString()); in testBackupSms_AllSmsWithExactFileLimit()555 mTelephonyBackupAgent.putSmsMessagesToJson(mSmsCursor, new JsonWriter(mStringWriter)); in testBackupSms_AllSmsOneMessagePerFile()556 assertEquals("[" + mSmsJson[0] + "]", mStringWriter.toString()); in testBackupSms_AllSmsOneMessagePerFile()[all …]
46 private StringWriter mStringWriter; field in BugReportContentProviderTest51 mStringWriter = new StringWriter(); in setUp()52 mPrintWriter = new PrintWriter(mStringWriter); in setUp()75 assertThat(mStringWriter.toString()).isEmpty(); in dump_nullContext_notDumpsBatteryUsageData()82 assertThat(mStringWriter.toString()).isEmpty(); in dump_inWorkProfileMode_notDumpsBatteryUsageData()89 String dumpContent = mStringWriter.toString(); in dump_dumpsBatteryUsageHistory()
93 private StringWriter mStringWriter; field in BatteryBackupHelperTest112 mStringWriter = new StringWriter(); in setUp()113 mPrintWriter = new PrintWriter(mStringWriter); in setUp()381 assertThat(mStringWriter.toString().contains(expectedResult)).isTrue(); in verifyDumpHistoryData()