Home
last modified time | relevance | path

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

123

/cts/hostsidetests/incident/src/com/android/server/cts/
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 …]
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 …]
DIncidentdTest.java31 …final IncidentProto dump = getDump(IncidentProto.parser(), "incident " + destArg + " 2>/dev/null"); in testIncidentReportDump() local
33 SystemPropertiesTest.verifySystemPropertiesProto(dump.getSystemProperties(), filterLevel); in testIncidentReportDump()
35 StackTraceIncidentTest.verifyBackTraceProto(dump.getNativeTraces(), filterLevel); in testIncidentReportDump()
36 StackTraceIncidentTest.verifyBackTraceProto(dump.getHalTraces(), filterLevel); in testIncidentReportDump()
37 StackTraceIncidentTest.verifyBackTraceProto(dump.getJavaTraces(), filterLevel); in testIncidentReportDump()
40 … FingerprintIncidentTest.verifyFingerprintServiceDumpProto(dump.getFingerprint(), filterLevel); in testIncidentReportDump()
43 NetstatsIncidentTest.verifyNetworkStatsServiceDumpProto(dump.getNetstats(), filterLevel); in testIncidentReportDump()
45 SettingsIncidentTest.verifySettingsServiceDumpProto(dump.getSettings(), filterLevel); in testIncidentReportDump()
47 … NotificationIncidentTest.verifyNotificationServiceDumpProto(dump.getNotification(), filterLevel); in testIncidentReportDump()
49 … 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 …]
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 …]
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 …]
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 …]
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 …]
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.java74 final NotificationServiceDumpProto dump = getDump(NotificationServiceDumpProto.parser(), in testNotificationRecords() local
77 assertTrue(dump.getRecordsCount() > 0); in testNotificationRecords()
79 for (NotificationRecordProto record : dump.getRecordsList()) { in testNotificationRecords()
109 final NotificationServiceDumpProto dump = getDump(NotificationServiceDumpProto.parser(), in testRankingConfig() local
112 verifyRankingHelperProto(dump.getRankingConfig(), PRIVACY_NONE); in testRankingConfig()
139 final NotificationServiceDumpProto dump = getDump(NotificationServiceDumpProto.parser(), in testZenMode() local
142 verifyZenModeProto(dump.getZen(), PRIVACY_NONE); in testZenMode()
190 …static void verifyNotificationServiceDumpProto(NotificationServiceDumpProto dump, final int filter… in verifyNotificationServiceDumpProto() argument
191 for (NotificationRecordProto nr : dump.getRecordsList()) { in verifyNotificationServiceDumpProto()
194 verifyZenModeProto(dump.getZen(), filterLevel); in verifyNotificationServiceDumpProto()
[all …]
DWindowManagerIncidentTest.java30 …static void verifyWindowManagerServiceDumpProto(WindowManagerServiceDumpProto dump, final int filt… in verifyWindowManagerServiceDumpProto() argument
31 verifyWindowManagerPolicyProto(dump.getPolicy(), filterLevel); in verifyWindowManagerServiceDumpProto()
32 verifyRootWindowContainerProto(dump.getRootWindowContainer(), filterLevel); in verifyWindowManagerServiceDumpProto()
33 verifyIdentifierProto(dump.getFocusedWindow(), filterLevel); in verifyWindowManagerServiceDumpProto()
34 verifyIdentifierProto(dump.getInputMethodWindow(), 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()
DJobSchedulerIncidentTest.java35 final JobSchedulerServiceDumpProto dump = in testJobSchedulerServiceDump() local
38 verifyJobSchedulerServiceDumpProto(dump, PRIVACY_NONE); in testJobSchedulerServiceDump()
41 …static void verifyJobSchedulerServiceDumpProto(JobSchedulerServiceDumpProto dump, final int filter… in verifyJobSchedulerServiceDumpProto() argument
42 testConstantsProto(dump.getSettings()); in verifyJobSchedulerServiceDumpProto()
44 for (int u : dump.getStartedUsersList()) { in verifyJobSchedulerServiceDumpProto()
48 for (JobSchedulerServiceDumpProto.RegisteredJob rj : dump.getRegisteredJobsList()) { in verifyJobSchedulerServiceDumpProto()
53 for (StateControllerProto c : dump.getControllersList()) { in verifyJobSchedulerServiceDumpProto()
57 for (JobSchedulerServiceDumpProto.PriorityOverride po : dump.getPriorityOverridesList()) { in verifyJobSchedulerServiceDumpProto()
61 for (int buu : dump.getBackingUpUidsList()) { in verifyJobSchedulerServiceDumpProto()
65 testJobPackageHistoryProto(dump.getHistory(), filterLevel); in verifyJobSchedulerServiceDumpProto()
[all …]
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()
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()
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()
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()
DStackTraceIncidentTest.java24 static void verifyBackTraceProto(BackTraceProto dump, final int filterLevel) throws Exception { in verifyBackTraceProto() argument
26 for (BackTraceProto.Stack s : dump.getTracesList()) { in verifyBackTraceProto()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DImeEventStreamTestUtils.java110 "event not found within the timeout: " + stream.dump()); in expectEvent()
135 throw new NullPointerException("found event is null: " + stream.dump()); in expectEvent()
140 throw new RuntimeException("expectEvent failed: " + stream.dump(), e); in expectEvent()
263 throw new AssertionError("notExpectEvent failed: " + stream.dump());
269 throw new RuntimeException("notExpectEvent failed: " + stream.dump(), e);
327 throw new RuntimeException("notExpectEvent failed: " + stream.dump(), e);
/cts/tests/tests/permission/src/android/permission/cts/
DLocationAccessCheckTest.java457 JobSchedulerServiceDumpProto dump = getJobSchedulerDump(); in resetPermissionController() local
459 for (RegisteredJob job : dump.registeredJobs) { in resetPermissionController()
460 if (job.dump.sourceUserId == currentUserId) { in resetPermissionController()
461 assertNotEquals(job.dump.sourcePackageName, PERMISSION_CONTROLLER_PKG); in resetPermissionController()
484 JobSchedulerServiceDumpProto dump = getJobSchedulerDump(); in resetPermissionController() local
485 for (RegisteredJob job : dump.registeredJobs) { in resetPermissionController()
486 if (job.dump.sourceUserId == currentUserId in resetPermissionController()
487 && job.dump.sourcePackageName.equals(PERMISSION_CONTROLLER_PKG)) { in resetPermissionController()
/cts/tests/tests/util/src/android/util/cts/
DArrayMapTest.java316 private static void dump(Map map, ArrayMap array) { in dump() method in ArrayMapTest
328 private static void dump(ArrayMap map1, ArrayMap map2) { in dump() method in ArrayMapTest
339 private static void dump(Bundle bundle1, Bundle bundle2) { in dump() method in ArrayMapTest
383 dump(hashMap, arrayMap); in testBasicArrayMap()
390 dump(hashMap, arrayMap); in testBasicArrayMap()
397 dump(hashMap, arrayMap); in testBasicArrayMap()
408 dump(bundle, bundle2); in testBasicArrayMap()
424 dump(hashMap, arrayMap); in testBasicArrayMap()
441 dump(newMap, mapCopy);
515 dump(map1, map2);
/cts/common/device-side/util/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/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/tests/uiautomation/src/android/app/uiautomation/cts/
DUiAutomationLogRule.java70 dump(); in apply()
83 private void dump() throws IOException {
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DContentCaptureLoggingTestRule.java57 dump(testName, t); in apply()
65 public void dump(@NonNull String testName, @NonNull Throwable t) {

123