Home
last modified time | relevance | path

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

123

/cts/hostsidetests/incident/src/com/android/server/cts/
DIncidentdTest.java28 …final IncidentProto dump = getDump(IncidentProto.parser(), "incident " + destArg + " 2>/dev/null"); in testIncidentReportDump() local
30 SystemPropertiesTest.verifySystemPropertiesProto(dump.getSystemProperties(), filterLevel); in testIncidentReportDump()
32 StackTraceIncidentTest.verifyBackTraceProto(dump.getNativeTraces(), filterLevel); in testIncidentReportDump()
33 StackTraceIncidentTest.verifyBackTraceProto(dump.getHalTraces(), filterLevel); in testIncidentReportDump()
34 StackTraceIncidentTest.verifyBackTraceProto(dump.getJavaTraces(), filterLevel); in testIncidentReportDump()
37 … FingerprintIncidentTest.verifyFingerprintServiceDumpProto(dump.getFingerprint(), filterLevel); in testIncidentReportDump()
40 NetstatsIncidentTest.verifyNetworkStatsServiceDumpProto(dump.getNetstats(), filterLevel); in testIncidentReportDump()
42 SettingsIncidentTest.verifySettingsServiceDumpProto(dump.getSettings(), filterLevel); in testIncidentReportDump()
44 … NotificationIncidentTest.verifyNotificationServiceDumpProto(dump.getNotification(), filterLevel); in testIncidentReportDump()
46 … BatteryStatsIncidentTest.verifyBatteryStatsServiceDumpProto(dump.getBatterystats(), filterLevel); in testIncidentReportDump()
[all …]
DPowerIncidentTest.java34 final PowerManagerServiceDumpProto dump = in testPowerServiceDump() local
37 verifyPowerManagerServiceDumpProto(dump, PRIVACY_NONE); in testPowerServiceDump()
40 …static void verifyPowerManagerServiceDumpProto(PowerManagerServiceDumpProto dump, int filterLevel)… in verifyPowerManagerServiceDumpProto() argument
41 assertTrue(dump.getBatteryLevel() >= 0); in verifyPowerManagerServiceDumpProto()
42 assertTrue(dump.getBatteryLevel() <= 100); in verifyPowerManagerServiceDumpProto()
47 .contains(dump.getWakefulness().getValueDescriptor())); in verifyPowerManagerServiceDumpProto()
51 .contains(dump.getPlugType().getValueDescriptor())); in verifyPowerManagerServiceDumpProto()
55 .contains(dump.getDockState().getValueDescriptor())); in verifyPowerManagerServiceDumpProto()
58 dump.getSettingsAndConfiguration(); in verifyPowerManagerServiceDumpProto()
78 final PowerManagerServiceDumpProto.UidStateProto uid = dump.getUidStates(0); in verifyPowerManagerServiceDumpProto()
[all …]
DAlarmManagerIncidentTest.java38 final AlarmManagerServiceDumpProto dump = in testAlarmManagerServiceDump() local
41 verifyAlarmManagerServiceDumpProto(dump, PRIVACY_NONE); in testAlarmManagerServiceDump()
44 …static void verifyAlarmManagerServiceDumpProto(AlarmManagerServiceDumpProto dump, final int filter… in verifyAlarmManagerServiceDumpProto() argument
46 assertTrue(0 < dump.getCurrentTime()); in verifyAlarmManagerServiceDumpProto()
47 assertTrue(0 < dump.getElapsedRealtime()); in verifyAlarmManagerServiceDumpProto()
49 assertTrue(0 <= dump.getLastTimeChangeClockTime()); in verifyAlarmManagerServiceDumpProto()
50 assertTrue(0 <= dump.getLastTimeChangeRealtime()); in verifyAlarmManagerServiceDumpProto()
53 ConstantsProto settings = dump.getSettings(); in verifyAlarmManagerServiceDumpProto()
62 ForceAppStandbyTrackerProto forceAppStandbyTracker = dump.getForceAppStandbyTracker(); in verifyAlarmManagerServiceDumpProto()
77 if (!dump.getIsInteractive()) { in verifyAlarmManagerServiceDumpProto()
[all …]
DBatteryIncidentTest.java35 final BatteryServiceDumpProto dump = in testBatteryServiceDump() local
38 verifyBatteryServiceDumpProto(dump, PRIVACY_NONE); in testBatteryServiceDump()
41 static void verifyBatteryServiceDumpProto(BatteryServiceDumpProto dump, final int filterLevel) { in verifyBatteryServiceDumpProto() argument
42 if (!dump.getIsPresent()) { in verifyBatteryServiceDumpProto()
47 assertTrue(dump.getPlugged() != BatteryPluggedStateEnum.BATTERY_PLUGGED_WIRELESS); in verifyBatteryServiceDumpProto()
48 assertTrue(dump.getMaxChargingCurrent() >= 0); in verifyBatteryServiceDumpProto()
49 assertTrue(dump.getMaxChargingVoltage() >= 0); in verifyBatteryServiceDumpProto()
50 assertTrue(dump.getChargeCounter() >= 0); in verifyBatteryServiceDumpProto()
52 dump.getStatus() != BatteryStatusEnum.BATTERY_STATUS_INVALID); in verifyBatteryServiceDumpProto()
54 dump.getHealth() != BatteryHealthEnum.BATTERY_HEALTH_INVALID); in verifyBatteryServiceDumpProto()
[all …]
DNetstatsIncidentTest.java99 NetworkStatsServiceDumpProto dump = getDump(NetworkStatsServiceDumpProto.parser(), in testSanityCheck() local
102 CLog.d("First dump:\n" + dump.toString()); in testSanityCheck()
105 checkInterfaces(dump.getActiveInterfacesList()); in testSanityCheck()
106 checkInterfaces(dump.getActiveUidInterfacesList()); in testSanityCheck()
108 checkStats(dump.getDevStats(), /*withUid=*/ false, /*withTag=*/ false); in testSanityCheck()
109 checkStats(dump.getXtStats(), /*withUid=*/ false, /*withTag=*/ false); in testSanityCheck()
110 checkStats(dump.getUidStats(), /*withUid=*/ true, /*withTag=*/ false); in testSanityCheck()
111 checkStats(dump.getUidTagStats(), /*withUid=*/ true, /*withTag=*/ true); in testSanityCheck()
118 final long devRxPackets = sum(dump.getDevStats(), st, b -> b.getRxPackets()); in testSanityCheck()
119 final long devRxBytes = sum(dump.getDevStats(), st, b -> b.getRxBytes()); in testSanityCheck()
[all …]
DMemInfoIncidentTest.java28 final MemInfoDumpProto dump = in testMemInfoDump() local
31 verifyMemInfoDumpProto(dump, PRIVACY_NONE); in testMemInfoDump()
34 …static void verifyMemInfoDumpProto(MemInfoDumpProto dump, final int filterLevel) throws Exception { in verifyMemInfoDumpProto() argument
35 assertTrue(dump.getUptimeDurationMs() >= 0); in verifyMemInfoDumpProto()
36 assertTrue(dump.getElapsedRealtimeMs() >= 0); in verifyMemInfoDumpProto()
38 for (ProcessMemory pm : dump.getNativeProcessesList()) { in verifyMemInfoDumpProto()
42 for (AppData ad : dump.getAppProcessesList()) { in verifyMemInfoDumpProto()
46 for (MemItem mi : dump.getTotalPssByProcessList()) { in verifyMemInfoDumpProto()
49 for (MemItem mi : dump.getTotalPssByOomAdjustmentList()) { in verifyMemInfoDumpProto()
52 for (MemItem mi : dump.getTotalPssByCategoryList()) { in verifyMemInfoDumpProto()
[all …]
DDiskStatsProtoTest.java35 final DiskStatsServiceDumpProto dump = getDump(DiskStatsServiceDumpProto.parser(), in testDump() local
38 verifyDiskStatsServiceDumpProto(dump, PRIVACY_NONE, getDevice()); in testDump()
41 …static void verifyDiskStatsServiceDumpProto(DiskStatsServiceDumpProto dump, final int filterLevel,… in verifyDiskStatsServiceDumpProto() argument
43 assertTrue(dump.getPartitionsFreeSpaceCount() > 0); in verifyDiskStatsServiceDumpProto()
45 boolean testError = dump.getHasTestError(); in verifyDiskStatsServiceDumpProto()
47 assertNotNull(dump.getErrorMessage()); in verifyDiskStatsServiceDumpProto()
49 assertTrue(dump.getErrorMessage().isEmpty()); in verifyDiskStatsServiceDumpProto()
52 assertTrue(dump.getWrite512BLatencyMillis() < 100); // Less than 100ms in verifyDiskStatsServiceDumpProto()
54 assertTrue(dump.getWrite512BLatencyMillis() >= 0); // Non-negative in verifyDiskStatsServiceDumpProto()
55 assertTrue(dump.getBenchmarkedWriteSpeedKbps() >= 0); // Non-negative in verifyDiskStatsServiceDumpProto()
[all …]
DActivityManagerIncidentTest.java59 final ActivityManagerServiceDumpBroadcastsProto dump = getDump( in testDumpBroadcasts() local
63 assertTrue(dump.getReceiverListCount() > 0); in testDumpBroadcasts()
64 assertTrue(dump.getBroadcastQueueCount() > 0); in testDumpBroadcasts()
65 assertTrue(dump.getStickyBroadcastsCount() > 0); in testDumpBroadcasts()
69 for (BroadcastQueueProto queue : dump.getBroadcastQueueList()) { in testDumpBroadcasts()
84 ActivityManagerServiceDumpBroadcastsProto.MainHandler mainHandler = dump.getHandler(); in testDumpBroadcasts()
93 final ActivityManagerServiceDumpServicesProto dump = getDump( in testDumpServices() local
96 ActiveServicesProto activeServices = dump.getActiveServices(); in testDumpServices()
110 verifyActivityManagerServiceDumpServicesProto(dump, PRIVACY_NONE); in testDumpServices()
113 …tyManagerServiceDumpServicesProto(ActivityManagerServiceDumpServicesProto dump, final int filterLe… in verifyActivityManagerServiceDumpServicesProto() argument
[all …]
DPackageIncidentTest.java63 final PackageServiceDumpProto dump = in testPackageServiceDump() local
67 for (PackageProto pkg : dump.getPackagesList()) { in testPackageServiceDump()
93 verifyPackageServiceDumpProto(dump, PRIVACY_NONE); in testPackageServiceDump()
96 …static void verifyPackageServiceDumpProto(PackageServiceDumpProto dump, final int filterLevel) thr… in verifyPackageServiceDumpProto() argument
97 assertNotNull(dump.getVerifierPackage().getName()); in verifyPackageServiceDumpProto()
98 assertNotNull(dump.getSharedLibraries(0).getName()); in verifyPackageServiceDumpProto()
99 if (dump.getSharedLibraries(0).getIsJar()) { in verifyPackageServiceDumpProto()
100 assertNotNull(dump.getSharedLibraries(0).getPath()); in verifyPackageServiceDumpProto()
102 assertNotNull(dump.getSharedLibraries(0).getApk()); in verifyPackageServiceDumpProto()
104 assertNotNull(dump.getFeatures(0).getName()); in verifyPackageServiceDumpProto()
[all …]
DNotificationIncidentTest.java57 final NotificationServiceDumpProto dump = getDump(NotificationServiceDumpProto.parser(), in testNotificationRecords() local
60 assertTrue(dump.getRecordsCount() > 0); in testNotificationRecords()
62 for (NotificationRecordProto record : dump.getRecordsList()) { in testNotificationRecords()
87 final NotificationServiceDumpProto dump = getDump(NotificationServiceDumpProto.parser(), in testRankingConfig() local
90 verifyRankingHelperProto(dump.getRankingConfig(), PRIVACY_NONE); in testRankingConfig()
117 final NotificationServiceDumpProto dump = getDump(NotificationServiceDumpProto.parser(), in testZenMode() local
120 verifyZenModeProto(dump.getZen(), PRIVACY_NONE); in testZenMode()
168 …static void verifyNotificationServiceDumpProto(NotificationServiceDumpProto dump, final int filter… in verifyNotificationServiceDumpProto() argument
169 for (NotificationRecordProto nr : dump.getRecordsList()) { in verifyNotificationServiceDumpProto()
172 verifyZenModeProto(dump.getZen(), filterLevel); in verifyNotificationServiceDumpProto()
[all …]
DWindowManagerIncidentTest.java29 …static void verifyWindowManagerServiceDumpProto(WindowManagerServiceDumpProto dump, final int filt… in verifyWindowManagerServiceDumpProto() argument
30 verifyWindowManagerPolicyProto(dump.getPolicy(), filterLevel); in verifyWindowManagerServiceDumpProto()
31 verifyRootWindowContainerProto(dump.getRootWindowContainer(), filterLevel); in verifyWindowManagerServiceDumpProto()
32 verifyIdentifierProto(dump.getFocusedWindow(), filterLevel); in verifyWindowManagerServiceDumpProto()
33 verifyIdentifierProto(dump.getInputMethodWindow(), filterLevel); in verifyWindowManagerServiceDumpProto()
34 verifyAppTransitionProto(dump.getAppTransition(), filterLevel); in verifyWindowManagerServiceDumpProto()
DFingerprintIncidentTest.java38 final FingerprintServiceDumpProto dump = in testFingerprintServiceDump() local
41 verifyFingerprintServiceDumpProto(dump, PRIVACY_NONE); in testFingerprintServiceDump()
44 … static void verifyFingerprintServiceDumpProto(FingerprintServiceDumpProto dump, int filterLevel) { in verifyFingerprintServiceDumpProto() argument
45 for (int i = 0; i < dump.getUsersCount(); ++i) { in verifyFingerprintServiceDumpProto()
46 final FingerprintUserStatsProto userStats = dump.getUsers(i); in verifyFingerprintServiceDumpProto()
DUsbIncidentTest.java36 final UsbServiceDumpProto dump = getDump(UsbServiceDumpProto.parser(), in testUsbServiceDump() local
39 verifyUsbServiceDumpProto(dump, PRIVACY_NONE); in testUsbServiceDump()
42 …static void verifyUsbServiceDumpProto(UsbServiceDumpProto dump, final int filterLevel) throws Exce… in verifyUsbServiceDumpProto() argument
43 verifyUsbDeviceManagerProto(dump.getDeviceManager(), filterLevel); in verifyUsbServiceDumpProto()
44 verifyUsbHostManagerProto(dump.getHostManager(), filterLevel); in verifyUsbServiceDumpProto()
45 verifyUsbSettingsManagerProto(dump.getSettingsManager(), filterLevel); in verifyUsbServiceDumpProto()
DProcStatsProtoTest.java63 final ProcessStatsServiceDumpProto dump = getDump(ProcessStatsServiceDumpProto.parser(), in testDump() local
66 int N = dump.getProcstatsNow().getProcessStatsCount(); in testDump()
69 ProcessStatsProto ps = dump.getProcstatsNow().getProcessStats(i); in testDump()
DStackTraceIncidentTest.java24 static void verifyBackTraceProto(BackTraceProto dump, final int filterLevel) throws Exception { in verifyBackTraceProto() argument
26 for (BackTraceProto.Stack s : dump.getTracesList()) { in verifyBackTraceProto()
DPrintProtoTest.java51 PrintServiceDumpProto dump = getDump(PrintServiceDumpProto.parser(), in testDump() local
54 verifyPrintServiceDumpProto(dump, PRIVACY_NONE); in testDump()
57 …static void verifyPrintServiceDumpProto(PrintServiceDumpProto dump, final int filterLevel) throws … in verifyPrintServiceDumpProto() argument
58 if (dump.getUserStatesCount() > 0) { in verifyPrintServiceDumpProto()
59 PrintUserStateProto userState = dump.getUserStatesList().get(0); in verifyPrintServiceDumpProto()
63 for (PrintUserStateProto pus : dump.getUserStatesList()) { in verifyPrintServiceDumpProto()
DJobSchedulerIncidentTest.java34 final JobSchedulerServiceDumpProto dump = in testJobSchedulerServiceDump() local
37 verifyJobSchedulerServiceDumpProto(dump, PRIVACY_NONE); in testJobSchedulerServiceDump()
40 …static void verifyJobSchedulerServiceDumpProto(JobSchedulerServiceDumpProto dump, final int filter… in verifyJobSchedulerServiceDumpProto() argument
41 testConstantsProto(dump.getSettings()); in verifyJobSchedulerServiceDumpProto()
43 for (int u : dump.getStartedUsersList()) { in verifyJobSchedulerServiceDumpProto()
47 for (JobSchedulerServiceDumpProto.RegisteredJob rj : dump.getRegisteredJobsList()) { in verifyJobSchedulerServiceDumpProto()
52 for (StateControllerProto c : dump.getControllersList()) { in verifyJobSchedulerServiceDumpProto()
56 for (JobSchedulerServiceDumpProto.PriorityOverride po : dump.getPriorityOverridesList()) { in verifyJobSchedulerServiceDumpProto()
60 for (int buu : dump.getBackingUpUidsList()) { in verifyJobSchedulerServiceDumpProto()
64 testJobPackageHistoryProto(dump.getHistory(), filterLevel); in verifyJobSchedulerServiceDumpProto()
[all …]
DSettingsIncidentTest.java54 SettingsServiceDumpProto dump = getDump(SettingsServiceDumpProto.parser(), in testBasicStructure() local
57 verifySettingsServiceDumpProto(dump, PRIVACY_NONE); in testBasicStructure()
60 …static void verifySettingsServiceDumpProto(SettingsServiceDumpProto dump, final int filterLevel) t… in verifySettingsServiceDumpProto() argument
61 if (dump.getUserSettingsCount() > 0) { in verifySettingsServiceDumpProto()
62 UserSettingsProto userSettings = dump.getUserSettings(0); in verifySettingsServiceDumpProto()
72 verifySettings(dump.getGlobalSettings(), filterLevel); in verifySettingsServiceDumpProto()
DAppWidgetIncidentTest.java111 AppWidgetServiceDumpProto dump = getDump(AppWidgetServiceDumpProto.parser(), in prepare() local
114 for (WidgetProto widgetProto : dump.getWidgetsList()) { in prepare()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DImeEventStreamTestUtils.java109 "event not found within the timeout: " + stream.dump()); in expectEvent()
134 throw new NullPointerException("found event is null: " + stream.dump()); in expectEvent()
139 throw new RuntimeException("expectEvent failed: " + stream.dump(), e); in expectEvent()
245 throw new AssertionError("notExpectEvent failed: " + stream.dump());
251 throw new RuntimeException("notExpectEvent failed: " + stream.dump(), e);
309 throw new RuntimeException("notExpectEvent failed: " + stream.dump(), e);
/cts/tests/autofillservice/src/android/autofillservice/cts/
DAutofillLoggingTestRule.java63 dump(testName, t); in apply()
79 public void dump(@NonNull String testName, @NonNull Throwable t) {
DSafeCleanerRuleTest.java88 verify(mDumper).dump("Whatever", actualException); in testEmptyRule_testFails_withDumper()
114 verify(mDumper).dump("Whatever", actualException); in testOnlyTestFails_withDumper()
148 verify(mDumper).dump("Whatever", actualException); in testTestPass_oneRunnerFails_withDumper()
182 verify(mDumper).dump("Whatever", actualException); in testTestPass_oneExtraExceptionThrown_withDumper()
254 verify(mDumper).dump("Whatever", actualException); in testThrowTheKitchenSinkAKAEverybodyThrows_withDumper()
/cts/tests/tests/util/src/android/util/cts/
DArraySetTest.java195 private static <E> void dump(HashSet<E> set, ArraySet<E> array) { in dump() method in ArraySetTest
206 private static void dump(ArraySet set1, ArraySet set2) { in dump() method in ArraySetTest
248 if (DEBUG) dump(hashSet, arraySet); in testBasicArraySet()
254 dump(hashSet, arraySet); in testBasicArraySet()
262 dump(hashSet, arraySet); in testBasicArraySet()
279 dump(hashSet, arraySet); in testBasicArraySet()
284 dump(hashSet, arraySet); in testBasicArraySet()
300 dump(newSet, copySet);
/cts/tests/tests/content/src/android/content/pm/cts/
DActivityInfoTest.java112 mActivityInfo.dump(p, prefix); in testDump()
118 mActivityInfo.dump(null, ""); in testDump()
/cts/hostsidetests/seccomp/app/
Dgen_blacklist.py168 json.dump(allowed, f, sort_keys=True, indent=2)
172 json.dump(blocked, f, sort_keys=True, indent=2)

123