Home
last modified time | relevance | path

Searched refs:dump (Results 1 – 25 of 125) sorted by relevance

12345

/cts/tests/app/src/android/app/cts/
DActivityDumpTest.java58 String dump = dump(mActivity); in testAddDumpable_oneOnly() local
60 assertWithMessage("dump() (expected to have name)").that(dump).contains(DEFAULT_NAME); in testAddDumpable_oneOnly()
61 assertWithMessage("dump() (expected to have content)").that(dump).contains(DEFAULT_CONTENT); in testAddDumpable_oneOnly()
69 String dump = dump(mActivity); in testAddDumpable_twoWithDistinctNames() local
71 assertWithMessage("dump() (expected to have name1)").that(dump).contains("dump1"); in testAddDumpable_twoWithDistinctNames()
72 assertWithMessage("dump() (expected to have content1)").that(dump).contains("able1"); in testAddDumpable_twoWithDistinctNames()
73 assertWithMessage("dump() (expected to have name2)").that(dump).contains("dump2"); in testAddDumpable_twoWithDistinctNames()
74 assertWithMessage("dump() (expected to have content2)").that(dump).contains("able2"); in testAddDumpable_twoWithDistinctNames()
82 String dump = dump(mActivity); in testAddDumpable_twoWithSameName() local
84 assertWithMessage("dump() (expected to have name)").that(dump).contains("dump"); in testAddDumpable_twoWithSameName()
[all …]
/cts/hostsidetests/compilation/src/android/compilation/cts/
DCompilationTest.java141 String dump = mUtils.assertCommandSucceeds("pm art dump " + TEST_APP_PKG); in testArtService() local
142 assertThat(dump).contains("[status=verify]"); in testArtService()
143 assertThat(dump).doesNotContain("[status=speed-profile]"); in testArtService()
145 dump = mUtils.assertCommandSucceeds("dumpsys package " + TEST_APP_PKG); in testArtService()
146 assertThat(dump).contains("[status=verify]"); in testArtService()
147 assertThat(dump).doesNotContain("[status=speed-profile]"); in testArtService()
152 dump = mUtils.assertCommandSucceeds("pm art dump " + TEST_APP_PKG); in testArtService()
153 assertThat(dump).doesNotContain("[status=verify]"); in testArtService()
154 assertThat(dump).contains("[status=speed-profile]"); in testArtService()
156 dump = mUtils.assertCommandSucceeds("dumpsys package " + TEST_APP_PKG); in testArtService()
[all …]
DAdbRootDependentCompilationTest.java236 String dump = mUtils.assertCommandSucceeds("pm art dump " + STATUS_CHECKER_PKG); in testSecondaryDexUseLoading() local
237 Utils.dumpDoesNotContainDexFile(dump, "bad_1.apk"); in testSecondaryDexUseLoading()
238 Utils.dumpDoesNotContainDexFile(dump, "bad_2.apk"); in testSecondaryDexUseLoading()
239 Utils.dumpDoesNotContainDexFile(dump, "bad_3.apk"); in testSecondaryDexUseLoading()
240 Utils.dumpDoesNotContainDexFile(dump, "bad_4.apk"); in testSecondaryDexUseLoading()
241 Utils.dumpContainsDexFile(dump, "good_1.apk"); in testSecondaryDexUseLoading()
242 Utils.dumpContainsDexFile(dump, "good_2.apk"); in testSecondaryDexUseLoading()
243 Utils.dumpContainsDexFile(dump, "good_3.apk"); in testSecondaryDexUseLoading()
/cts/tests/tests/companion/core/src/android/companion/cts/core/
DDumpSysTest.kt113 val dump = SystemUtil.runShellCommand("dumpsys companiondevice") in dumpCurrentState() constant
115 val headerIndex0 = dump.indexOf("Companion Device Associations:") in dumpCurrentState()
118 val headerIndex1 = dump.indexOf("Companion Device Present:") in dumpCurrentState()
121 val headerIndex2 = dump.indexOf("Companion Device Application Controller:") in dumpCurrentState()
125 dump.substring(headerIndex0, headerIndex1), in dumpCurrentState()
126 dump.substring(headerIndex1, headerIndex2), in dumpCurrentState()
127 dump.substring(headerIndex2) in dumpCurrentState()
/cts/tests/app/ShortFgsTest/src/android/app/cts/shortfgstest/
DDumpProtoUtils.java49 private static void logProtoDump(byte[] dump, InvalidProtocolBufferNanoException th) { in logProtoDump() argument
51 if (dump == null) { in logProtoDump()
55 Log.e(TAG, "Length=" + dump.length); in logProtoDump()
56 Log.e(TAG, "Dump in UTF-8: " + new String(dump, StandardCharsets.UTF_8).trim()); in logProtoDump()
59 for (var s : Base64.encodeToString(dump, 0).split("\n")) { in logProtoDump()
69 byte[] dump = null; in parseProtoDumpsys()
72 return parser.apply(dump = getDump(command)); in parseProtoDumpsys()
74 logProtoDump(dump, e); in parseProtoDumpsys()
78 + new String(dump, StandardCharsets.UTF_8).trim(), in parseProtoDumpsys()
/cts/tests/accessibility/common/src/android/accessibility/cts/common/
DAccessibilityDumpOnFailureRule.java51 public void dump(int flag) { in dump() method in AccessibilityDumpOnFailureRule
52 AccessibilityDumper.getInstance().dump(flag); in dump()
62 AccessibilityDumper.getInstance().dump(); in failed()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/logcat/
DLogcat.java73 public String dump(Predicate<String> lineFilter) { in dump() method in Logcat
74 try (ShellCommandUtils.StreamingShellOutput sso = dump()){ in dump()
94 public ShellCommandUtils.StreamingShellOutput dump() { in dump() method in Logcat
122 String[] logs = dump(lineFilter).split("\n"); in recent()
129 try (ShellCommandUtils.StreamingShellOutput sso = dump()){ in findSystemServerExceptions()
/cts/tests/tests/car/src/android/car/cluster/cts/
DClusterHomeManagerTest.java156 var dump = DumpUtils.executeDumpShellCommand(CLUSTER_HOME_SERVICE); in testStartVisibilityMonitoring()
157 int count = Integer.valueOf(dump.get(DUMP_TPL_COUNT)); in testStartVisibilityMonitoring()
158 boolean visible = Boolean.parseBoolean(dump.get(DUMP_CLUSTER_VISIBLE)); in testStartVisibilityMonitoring()
159 mTestMonitoringSurface = dump.get(DUMP_CLUSTER_SURFACE); in testStartVisibilityMonitoring()
177 var dump = DumpUtils.executeDumpShellCommand(CLUSTER_HOME_SERVICE); in testStartVisibilityMonitoring()
178 int count = Integer.valueOf(dump.get(DUMP_TPL_COUNT)); in testStartVisibilityMonitoring()
179 boolean visible = Boolean.parseBoolean(dump.get(DUMP_CLUSTER_VISIBLE)); in testStartVisibilityMonitoring()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DWindowManagerTraceMonitor.java33 unique_session_name: "cts-windowmanager-dump"
66 byte[] dump = executeShellCommand("cat " + traceFile.getAbsolutePath()); in captureDump()
67 return dump; in captureDump()
/cts/hostsidetests/multiuser/dpc/src/com/android/cts/multiuser/dpc/
DDpcService.java38 protected void dump(FileDescriptor fd, PrintWriter writer, String[] args) { in dump() method in DpcService
53 super.dump(fd, writer, args); in dump()
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/app/
DVoiceInteractionHelperTest.java66 String dump = ShellUtils.runShellCommand("dumpsys voiceinteraction"); in isVoiceInteractionDisabledFromDump() local
68 .matcher(dump); in isVoiceInteractionDisabledFromDump()
/cts/hostsidetests/notification/src/android/app/notification/cts/
DNotificationHostTest.java112 NotificationServiceDumpProto dump = NotificationServiceDumpProto.parser() in hasNotificationListenerEnabled() local
115 if (dump.hasNotificationListeners()) { in hasNotificationListenerEnabled()
116 ManagedServicesProto managedServices = dump.getNotificationListeners(); in hasNotificationListenerEnabled()
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DContentCaptureLoggingTestRule.java59 dump(testName, t); in apply()
67 public void dump(@NonNull String testName, @NonNull Throwable t) {
DAbstractContentCaptureActivity.java159 final String dump = runShellCommand( in dumpIt() local
162 Log.v(mTag, "dump it: " + dump); in dumpIt()
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/
DAutofillLoggingTestRule.java65 dump(testName, t); in apply()
81 public void dump(@NonNull String testName, @NonNull Throwable t) {
/cts/tests/framework/base/windowmanager/backgroundactivity/src/android/server/wm/
DBackgroundActivityTestBase.java617 for (TaskStateDump dump : mTaskStateDumps) { in allTaskStateDumps()
618 if ("waitForCondition".equals(dump.name) && "waitForCondition".equals(lastDump.name) in allTaskStateDumps()
619 && dump.meta.equals(lastDump.meta) in allTaskStateDumps()
620 && dump.taskStates.equals(lastDump.taskStates)) { in allTaskStateDumps()
624 sb.append("\n----- " + dump.name + " t=" + Duration.between(mTestStartTime, dump.t) in allTaskStateDumps()
625 + " (" + dump.t + ") -----\n"); in allTaskStateDumps()
626 if (!dump.meta.equals(lastDump.meta)) { in allTaskStateDumps()
627 sb.append(dump.meta + "\n"); in allTaskStateDumps()
629 if (!dump.taskStates.equals(lastDump.taskStates)) { in allTaskStateDumps()
630 for (String s : dump.taskStates) { in allTaskStateDumps()
[all …]
/cts/tests/tests/car/src/android/car/cts/
DCarWifiManagerTest.java79 CarWifiDumpProto dump = ProtoUtils.getProto( in isPersistTetheringCapabilityEnabled() local
83 return dump.getPersistTetheringCapabilitiesEnabled(); in isPersistTetheringCapabilityEnabled()
/cts/hostsidetests/car/src/android/car/cts/
DCarTelemetryHostTest.java132 String dump = dumpTelemetryService(); in testSavingResultsAcrossReboot()
133 return dump.contains(scriptOutput1) && dump.contains(scriptOutput2); in testSavingResultsAcrossReboot()
/cts/common/device-side/bedstead/testapp/src/testapps/main/java/com/android/bedstead/testapp/
DUtils.java50 + TestApis.logcat().dump( in dealWithNoExistingActivityException()
88 + TestApis.logcat().dump( in dealWithConnectedAppsSdkException()
/cts/tests/tests/os/src/android/os/cts/
DBinderTest.java77 mBinder.dump(new FileDescriptor(), in testDump()
81 mBinder.dump(new FileDescriptor(), dumpArgs); in testDump()
278 public void dump(FileDescriptor fd, PrintWriter fout, String[] args) { in dump() method in BinderTest.MockBinder
279 super.dump(fd, fout, args); in dump()
/cts/tests/tests/content/src/android/content/pm/cts/
DActivityInfoTest.java65 info.dump(new StringBuilderPrinter(new StringBuilder()), ""); in testSimple()
154 mActivityInfo.dump(p, prefix); in testDump()
160 mActivityInfo.dump(null, ""); in testDump()
/cts/common/device-side/util-axt/tests/src/com/android/compatibility/common/util/
DSafeCleanerRuleTest.java87 verify(mDumper).dump("Whatever", actualException); in testEmptyRule_testFails_withDumper()
113 verify(mDumper).dump("Whatever", actualException); in testOnlyTestFails_withDumper()
147 verify(mDumper).dump("Whatever", actualException); in testTestPass_oneRunnerFails_withDumper()
196 verify(mDumper).dump("Whatever", actualException); in testTestPass_oneExtraExceptionThrown_withDumper()
297 verify(mDumper).dump("Whatever", actualException); in testThrowTheKitchenSinkAKAEverybodyThrows_withDumper()
/cts/tests/AlarmManager/src/android/alarmmanager/cts/
DAlarmReceiver.java109 sHistory.dump("History of quotaed alarms"); in dumpState()
110 sCompatHistory.dump("History of quotaed compat alarms"); in dumpState()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DImeEventStreamTestUtils.java138 + stream.dump()); in expectEvent()
150 "expectEvent " + combinedCondition + " interrupted: " + stream.dump(), e); in expectEvent()
326 "notExpectEvent " + combinedCondition + " failed: " + stream.dump());
333 "notExpectEvent " + combinedCondition + " failed: " + stream.dump(), e);
426 + lastEventName + " eventName=" + eventName + "\n" + stream.dump());
464 throw new RuntimeException("notExpectEvent failed: " + stream.dump(), e);
/cts/hostsidetests/appbinding/app/src/com/android/cts/appbinding/app/
DMyService.java25 protected void dump(FileDescriptor fd, PrintWriter writer, String[] args) { in dump() method in MyService

12345