Home
last modified time | relevance | path

Searched refs:mStringWriter (Results 1 – 3 of 3) sorted by relevance

/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyBackupAgentTest.java102 private StringWriter mStringWriter; field in TelephonyBackupAgentTest
149 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 …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/bugreport/
DBugReportContentProviderTest.java46 private StringWriter mStringWriter; field in BugReportContentProviderTest
51 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()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryBackupHelperTest.java93 private StringWriter mStringWriter; field in BatteryBackupHelperTest
112 mStringWriter = new StringWriter(); in setUp()
113 mPrintWriter = new PrintWriter(mStringWriter); in setUp()
381 assertThat(mStringWriter.toString().contains(expectedResult)).isTrue(); in verifyDumpHistoryData()